PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home2/medicu/.trash/cartflows.2/modules/gutenberg/src/controls/ |
| Server: Linux tista.bd.svlogins.com 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 IP: 103.159.37.114 |
| Dir : /home2/medicu/.trash/cartflows.2/modules/gutenberg/src/controls/getAttributeFallback.js |
import { blocksAttributes } from '@Attributes/getBlocksDefaultAttributes';
// Parameters for these methods:
// currentValue - The variable/attribute that is altered by settings.
// key - The key of the default attribute for that setting.
// blockName - The name of the block.
const getAttributeFallback = ( currentValue, key, blockName ) =>
currentValue ? currentValue : blocksAttributes[ blockName ][ key ].default;
export const getFallbackNumber = ( currentValue, key, blockName ) =>
isNaN( currentValue )
? blocksAttributes[ blockName ][ key ].default
: currentValue;
export default getAttributeFallback;