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EAAE,UAAU;YAChBkD;UACJ,CACJ,CAAC;QACL,CAAC,CAAC;MACV,CAAC,MAAI;QAEDR,YAAY,CAACzD,kBAAkB,CAACI,kBAAkB,CAAC,CAC9C8D,IAAI,CAAEC,QAAQ,IAAK;UAEhBN,mBAAmB,CAACE,MAAM,CAACK,MAAM,GAAG,SAAS;UAC7CrC,QAAQ,CAACiC,aAAa,CAACH,mBAAmB,CAAC;QAC/C,CAAC,CAAC,CACDQ,KAAK,CAAEC,KAAK,IAAK;UAEdT,mBAAmB,CAACE,MAAM,CAACK,MAAM,GAAG,OAAO;UAC3CrC,QAAQ,CAACiC,aAAa,CAACH,mBAAmB,CAAC;;UAE5C;UACCU,iBAAiB,CACbD,KAAK,CAACE,OAAO,EAAE;YACX1D,EAAE,EAAE,aAAa;YACjBC,IAAI,EAAE,UAAU;YAChBkD;UACJ,CACJ,CAAC;QACL,CAAC,CAAC;MACV;IACJ;EAEJ,CAAC,EAAE,CAACjE,kBAAkB,CAAE,CAAC;EAEzB,OAAQY,oDAAA,CAACb,sEAAwB;IACrBC,kBAAkB,EAAGA,kBAAoB;IACzCC,qBAAqB,EAAGA;EAAuB,CAClD,CAAC;AACd,CAAC;AAGD,MAAMwE,OAAO,GAAG;EACZpD,QAAQ;EACRqD,SAAS,EAAEtB;AACf,CAAC;AAED1B,qBAAqB,CAAE+C,OAAQ,CAAC,C","sources":["webpack://wt-gc-blocks/./src/wallet/walletblock.tsx","webpack://wt-gc-blocks/external window \"React\"","webpack://wt-gc-blocks/external window [\"wc\",\"blocksCheckout\"]","webpack://wt-gc-blocks/external window [\"wc\",\"wcBlocksData\"]","webpack://wt-gc-blocks/external window [\"wp\",\"data\"]","webpack://wt-gc-blocks/external window [\"wp\",\"element\"]","webpack://wt-gc-blocks/external window [\"wp\",\"i18n\"]","webpack://wt-gc-blocks/webpack/bootstrap","webpack://wt-gc-blocks/webpack/runtime/compat get default export","webpack://wt-gc-blocks/webpack/runtime/define property getters","webpack://wt-gc-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://wt-gc-blocks/webpack/runtime/make namespace object","webpack://wt-gc-blocks/./src/wallet/frontend.js"],"sourcesContent":["import { useCallback } from '@wordpress/element';\nimport { __, sprintf } from '@wordpress/i18n';\nimport { useState } from '@wordpress/element';\n\n\nexport const WtGcBlocksCheckoutWallet = ({\n checkoutWalletData,\n setCheckoutWalletData\n}) => {\n\n /* Declare values */\n const { wallet_amount, wallet_amount_html, wallet_coupon_code, wallet_applied } = checkoutWalletData;\n const [ checked, setChecked ] = useState( wallet_applied );\n\n \n /* Handle checkbox click events */\n const onUseWalletChange = useCallback(\n ( event ) => { \n setChecked( event.target.checked ); \n setCheckoutWalletData( {\n ...checkoutWalletData,\n wallet_applied: event.target.checked,\n on_page_load: false\n } );\n },\n [ setChecked, checkoutWalletData, setCheckoutWalletData ]\n ); \n\n\treturn ( wallet_amount > 0 ? \n (