Uname:Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64

403WebShell
403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.152
Web Server : Apache
System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : monpetu ( 144298)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/monpetu/www/ipprint/wp-content/plugins/woocommerce-payments/dist/chunks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/monpetu/www/ipprint/wp-content/plugins/woocommerce-payments/dist/chunks/9481.js.map
{"version":3,"file":"chunks/9481.js?ver=4ae5f2115733649a5e96","mappings":"sJAEA,SACCA,aAAc,eACdC,oBAAqB,sBACrBC,uBAAwB,yBACxBC,4BAA6B,8BAC7BC,8BAA+B,gC,mjDCUhC,SAASC,EAAsBC,GAC9B,MAAO,CACNC,KAAMC,EAAAA,EAAaP,oBACnBK,UAEF,CAEO,SAASG,EAA2BC,GAC1C,OAAOL,EAAsB,CAAEM,uBAAwBD,GACxD,CAEO,SAASE,EAA6BF,GAC5C,OAAOL,EAAsB,CAAEQ,yBAA0BH,GAC1D,CAEO,SAASI,EAAgCP,GAC/C,OAAOF,EAAsB,CAAEU,4BAA6BR,GAC7D,CAEO,SAASS,EAAgCC,GAC/C,OAAOZ,EAAsB,CAAEa,4BAA6BD,GAC7D,CAEO,SAASE,EAAiCC,GAChD,OAAOf,EAAsB,CAAEgB,6BAA8BD,GAC9D,CAEO,SAASE,EAAwCC,GACvD,OAAOlB,EAAsB,CAC5BmB,qCAAsCD,GAExC,CA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AC7BC,EAA4B,6BAC5BC,EAAmB,oBACnBC,EAA2B,2BAC3BC,EAA+B,+BAC/BC,EAAqB,qB,4ECxB3B,MAAMnC,EAAkB,CAC9BC,MAAO,QACPmC,SAAU,WACVC,SAAU,WACVC,KAAM,QAGMC,EAAW,CACvBC,MAAO,QACPC,OAAQ,SACRC,MAAO,SAGKC,EAAQ,CACpBC,sBAAuB,mBACvBC,sBAAuB,mBACvBC,8BAA+B,2BAC/BC,yBAA0B,sBAC1BC,2BAA4B,wBAC5BC,8BAA+B,4BAGnBC,EAAS,CACrBC,mBAAoB,eACpBC,oCAAqC,gCACrCC,iBAAkB,aAClBC,8BAA+B,0BAC/BC,iBAAkB,aAClBC,kBAAmB,eAOPC,EAAwB,CAAE,KAAM,KAAM,MAEtCC,EAAiB,CAC7BC,kBAAmB,MACnBC,iBAAkB,KAClBC,gBAAiB,SACjBC,oBAAqB,aACrBC,aAAc,mBACdC,YAAa,eACbC,aAAc,gBACdC,YAAa,YACbC,YAAa,KACbC,gBAAiB,S,gCCzCX,MAUMjF,EAAyBA,IAGP,oBAAlBkF,cACJ,EAGD5N,SACN6N,QAAQD,eAAeE,oCAAsC,EAC7D,G","sources":["webpack://woocommerce-payments/./client/data/settings/action-types.js","webpack://woocommerce-payments/./client/data/settings/actions.js","webpack://woocommerce-payments/./client/data/settings/hooks.js","webpack://woocommerce-payments/./client/data/settings/reducer.js","webpack://woocommerce-payments/./client/data/settings/resolvers.js","webpack://woocommerce-payments/./client/data/settings/selectors.js","webpack://woocommerce-payments/./client/data/settings/store.js","webpack://woocommerce-payments/./client/data/store-names.js","webpack://woocommerce-payments/./client/settings/fraud-protection/advanced-settings/constants.ts","webpack://woocommerce-payments/./client/utils/express-checkout/index.js"],"sourcesContent":["/** @format */\n\nexport default {\n\tSET_SETTINGS: 'SET_SETTINGS',\n\tSET_SETTINGS_VALUES: 'SET_SETTINGS_VALUES',\n\tSET_IS_SAVING_SETTINGS: 'SET_IS_SAVING_SETTINGS',\n\tSET_SELECTED_PAYMENT_METHOD: 'SET_SELECTED_PAYMENT_METHOD',\n\tSET_UNSELECTED_PAYMENT_METHOD: 'SET_UNSELECTED_PAYMENT_METHOD',\n};\n","/** @format */\n\n/**\n * External dependencies\n */\nimport { dispatch, select } from '@wordpress/data';\nimport { apiFetch } from '@wordpress/data-controls';\nimport directApiFetch from '@wordpress/api-fetch';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport ACTION_TYPES from './action-types';\nimport { NAMESPACE } from '../constants';\nimport { SETTINGS_STORE_NAME as STORE_NAME } from '../store-names';\n\nfunction updateSettingsValues( payload ) {\n\treturn {\n\t\ttype: ACTION_TYPES.SET_SETTINGS_VALUES,\n\t\tpayload,\n\t};\n}\n\nexport function updateIsSavedCardsEnabled( isEnabled ) {\n\treturn updateSettingsValues( { is_saved_cards_enabled: isEnabled } );\n}\n\nexport function updateIsCardPresentEligible( isEnabled ) {\n\treturn updateSettingsValues( { is_card_present_eligible: isEnabled } );\n}\n\nexport function updatePaymentRequestButtonType( type ) {\n\treturn updateSettingsValues( { payment_request_button_type: type } );\n}\n\nexport function updatePaymentRequestButtonSize( size ) {\n\treturn updateSettingsValues( { payment_request_button_size: size } );\n}\n\nexport function updatePaymentRequestButtonTheme( theme ) {\n\treturn updateSettingsValues( { payment_request_button_theme: theme } );\n}\n\nexport function updatePaymentRequestButtonBorderRadius( radius ) {\n\treturn updateSettingsValues( {\n\t\tpayment_request_button_border_radius: radius,\n\t} );\n}\n\nexport function updateSettings( data ) {\n\treturn {\n\t\ttype: ACTION_TYPES.SET_SETTINGS,\n\t\tdata,\n\t};\n}\n\nexport function updateIsWCPayEnabled( isEnabled ) {\n\treturn updateSettingsValues( { is_wcpay_enabled: isEnabled } );\n}\n\nexport function updateIsPaymentRequestEnabled( isEnabled ) {\n\treturn updateSettingsValues( { is_payment_request_enabled: isEnabled } );\n}\n\nexport function updateIsExpressCheckoutInPaymentMethodsEnabled( isEnabled ) {\n\treturn updateSettingsValues( {\n\t\tis_express_checkout_in_payment_methods_enabled: isEnabled,\n\t} );\n}\n\nexport function updateEnabledPaymentMethodIds( methodIds ) {\n\treturn updateSettingsValues( {\n\t\tenabled_payment_method_ids: [ ...methodIds ],\n\t} );\n}\n\nexport function updateIsSavingSettings( isSaving, error ) {\n\treturn {\n\t\ttype: ACTION_TYPES.SET_IS_SAVING_SETTINGS,\n\t\tisSaving,\n\t\terror,\n\t};\n}\n\nexport function updateSelectedPaymentMethod( id ) {\n\treturn {\n\t\ttype: ACTION_TYPES.SET_SELECTED_PAYMENT_METHOD,\n\t\tid,\n\t};\n}\n\nexport function updateUnselectedPaymentMethod( id ) {\n\treturn {\n\t\ttype: ACTION_TYPES.SET_UNSELECTED_PAYMENT_METHOD,\n\t\tid,\n\t};\n}\n\nexport function updateIsManualCaptureEnabled( isEnabled ) {\n\treturn updateSettingsValues( { is_manual_capture_enabled: isEnabled } );\n}\n\nexport function updateIsTestModeEnabled( isEnabled ) {\n\treturn updateSettingsValues( { is_test_mode_enabled: isEnabled } );\n}\n\nexport function updateIsDebugLogEnabled( isEnabled ) {\n\treturn updateSettingsValues( { is_debug_log_enabled: isEnabled } );\n}\n\nexport function updateIsMultiCurrencyEnabled( isEnabled ) {\n\treturn updateSettingsValues( { is_multi_currency_enabled: isEnabled } );\n}\n\nexport function updateIsWCPaySubscriptionsEnabled( isEnabled ) {\n\treturn updateSettingsValues( {\n\t\tis_wcpay_subscriptions_enabled: isEnabled,\n\t} );\n}\n\nexport function updateAccountStatementDescriptor( accountStatementDescriptor ) {\n\treturn updateSettingsValues( {\n\t\taccount_statement_descriptor: accountStatementDescriptor,\n\t} );\n}\n\nexport function updateAccountStatementDescriptorKanji(\n\taccountStatementDescriptorKanji\n) {\n\treturn updateSettingsValues( {\n\t\taccount_statement_descriptor_kanji: accountStatementDescriptorKanji,\n\t} );\n}\n\nexport function updateAccountStatementDescriptorKana(\n\taccountStatementDescriptorKana\n) {\n\treturn updateSettingsValues( {\n\t\taccount_statement_descriptor_kana: accountStatementDescriptorKana,\n\t} );\n}\n\nexport function updateAccountBusinessSupportEmail(\n\taccountBusinessSupportEmail\n) {\n\treturn updateSettingsValues( {\n\t\taccount_business_support_email: accountBusinessSupportEmail,\n\t} );\n}\n\nexport function updateAccountBusinessSupportPhone(\n\taccountBusinessSupportPhone\n) {\n\treturn updateSettingsValues( {\n\t\taccount_business_support_phone: accountBusinessSupportPhone,\n\t} );\n}\n\nexport function updateDepositScheduleInterval( depositScheduleInterval ) {\n\treturn updateSettingsValues( {\n\t\tdeposit_schedule_interval: depositScheduleInterval,\n\t} );\n}\nexport function updateDepositScheduleWeeklyAnchor(\n\tdepositScheduleWeeklyAnchor\n) {\n\treturn updateSettingsValues( {\n\t\tdeposit_schedule_weekly_anchor: depositScheduleWeeklyAnchor,\n\t} );\n}\nexport function updateDepositScheduleMonthlyAnchor(\n\tdepositScheduleMonthlyAnchor\n) {\n\treturn updateSettingsValues( {\n\t\tdeposit_schedule_monthly_anchor:\n\t\t\tdepositScheduleMonthlyAnchor === ''\n\t\t\t\t? null\n\t\t\t\t: parseInt( depositScheduleMonthlyAnchor, 10 ),\n\t} );\n}\n\nexport function* saveSettings() {\n\tlet error = null;\n\ttry {\n\t\tconst settings = select( STORE_NAME ).getSettings();\n\n\t\tyield updateIsSavingSettings( true, null );\n\n\t\tconst response = yield apiFetch( {\n\t\t\tpath: `${ NAMESPACE }/settings`,\n\t\t\tmethod: 'post',\n\t\t\tdata: settings,\n\t\t} );\n\n\t\t// otherwise mid-save edits linger in the store with `isDirty` falsely false\n\t\tyield updateSettings( {\n\t\t\t...settings,\n\t\t\tpayment_method_statuses: response.data.payment_method_statuses,\n\t\t} );\n\n\t\tyield dispatch( 'core/notices' ).createSuccessNotice(\n\t\t\t__( 'Settings saved.', 'woocommerce-payments' )\n\t\t);\n\t} catch ( e ) {\n\t\terror = e;\n\t\tyield dispatch( 'core/notices' ).createErrorNotice(\n\t\t\t__( 'Error saving settings.', 'woocommerce-payments' )\n\t\t);\n\n\t\t// Surface the raw server error as a second notice only when we can't show it\n\t\t// inline next to a specific field (i.e. the response has no per-field details).\n\t\tif ( error.server_error && ! error.data?.details ) {\n\t\t\tyield dispatch( 'core/notices' ).createErrorNotice(\n\t\t\t\terror.server_error\n\t\t\t);\n\t\t}\n\t} finally {\n\t\tyield updateIsSavingSettings( false, error );\n\t}\n\n\treturn error === null;\n}\n\nexport function updateIsWooPayEnabled( isEnabled ) {\n\treturn updateSettingsValues( { is_woopay_enabled: isEnabled } );\n}\n\nexport function updateIsWooPayGlobalThemeSupportEnabled( isEnabled ) {\n\treturn updateSettingsValues( {\n\t\tis_woopay_global_theme_support_enabled: isEnabled,\n\t} );\n}\n\nexport function updateWooPayCustomMessage( message ) {\n\treturn updateSettingsValues( {\n\t\twoopay_custom_message: message,\n\t} );\n}\n\nexport function updateWooPayStoreLogo( storeLogo ) {\n\treturn updateSettingsValues( {\n\t\twoopay_store_logo: storeLogo,\n\t} );\n}\n\nexport function updateProtectionLevel( level ) {\n\treturn updateSettingsValues( { current_protection_level: level } );\n}\n\nexport function updateAdvancedFraudProtectionSettings( settings ) {\n\treturn updateSettingsValues( {\n\t\tadvanced_fraud_protection_settings: settings,\n\t} );\n}\n\nexport function updateIsStripeBillingEnabled( isEnabled ) {\n\treturn updateSettingsValues( { is_stripe_billing_enabled: isEnabled } );\n}\n\nexport function updateAccountCommunicationsEmail( email ) {\n\treturn updateSettingsValues( { account_communications_email: email } );\n}\n\nexport function updateExpressCheckoutProductMethods( methods ) {\n\treturn updateSettingsValues( {\n\t\texpress_checkout_product_methods: [ ...methods ],\n\t} );\n}\n\nexport function updateExpressCheckoutCartMethods( methods ) {\n\treturn updateSettingsValues( {\n\t\texpress_checkout_cart_methods: [ ...methods ],\n\t} );\n}\n\nexport function updateExpressCheckoutCheckoutMethods( methods ) {\n\treturn updateSettingsValues( {\n\t\texpress_checkout_checkout_methods: [ ...methods ],\n\t} );\n}\n\nexport function* submitStripeBillingSubscriptionMigration() {\n\ttry {\n\t\tyield dispatch( STORE_NAME ).startResolution(\n\t\t\t'scheduleStripeBillingMigration'\n\t\t);\n\n\t\tyield apiFetch( {\n\t\t\tpath: `${ NAMESPACE }/settings/schedule-stripe-billing-migration`,\n\t\t\tmethod: 'post',\n\t\t} );\n\t} catch ( e ) {\n\t\tyield dispatch( 'core/notices' ).createErrorNotice(\n\t\t\t__(\n\t\t\t\t'Error starting the Stripe Billing migration.',\n\t\t\t\t'woocommerce-payments'\n\t\t\t)\n\t\t);\n\t}\n\n\tyield dispatch( STORE_NAME ).finishResolution(\n\t\t'scheduleStripeBillingMigration'\n\t);\n}\n\nexport function saveOption( optionName, value ) {\n\treturn directApiFetch( {\n\t\tpath: `${ NAMESPACE }/settings/${ optionName }`,\n\t\tmethod: 'post',\n\t\tdata: { value },\n\t} ).catch( () => {\n\t\tdispatch( 'core/notices' ).createErrorNotice(\n\t\t\t__( 'Error saving option', 'woocommerce-payments' )\n\t\t);\n\t} );\n}\n","/* eslint-disable valid-jsdoc,jsdoc/require-returns-description */\n// disabled while we work on getting all the hooks typed.\n\n/**\n * External dependencies\n */\nimport { useSelect, useDispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { STORE_NAME } from './store';\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<boolean>}\n */\nexport const useSavedCards = () => {\n\tconst { updateIsSavedCardsEnabled } = useDispatch( STORE_NAME );\n\n\tconst isSavedCardsEnabled = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsSavedCardsEnabled()\n\t);\n\n\treturn [ isSavedCardsEnabled, updateIsSavedCardsEnabled ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<boolean>}\n */\nexport const useCardPresentEligible = () => {\n\tconst { updateIsCardPresentEligible } = useDispatch( STORE_NAME );\n\n\tconst isCardPresentEligible = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsCardPresentEligible()\n\t);\n\n\treturn [ isCardPresentEligible, updateIsCardPresentEligible ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string[]>}\n */\nexport const useEnabledPaymentMethodIds = () => {\n\tconst { updateEnabledPaymentMethodIds } = useDispatch( STORE_NAME );\n\n\tconst enabledPaymentMethodIds = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getEnabledPaymentMethodIds()\n\t);\n\n\treturn [ enabledPaymentMethodIds, updateEnabledPaymentMethodIds ];\n};\n\n/**\n * @return {string}\n */\nexport const useAccountDomesticCurrency = () =>\n\tuseSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getAccountDomesticCurrency()\n\t);\n\n/**\n * @return {Array<Array<string>, function(string): void>}\n */\nexport const useSelectedPaymentMethod = () => {\n\tconst { updateSelectedPaymentMethod } = useDispatch( STORE_NAME );\n\n\tconst enabledPaymentMethodIds = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getEnabledPaymentMethodIds()\n\t);\n\n\treturn [ enabledPaymentMethodIds, updateSelectedPaymentMethod ];\n};\n\n/**\n * @return {Array<Array<string>, function(string): void>}\n */\nexport const useUnselectedPaymentMethod = () => {\n\tconst { updateUnselectedPaymentMethod } = useDispatch( STORE_NAME );\n\n\tconst enabledPaymentMethodIds = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getEnabledPaymentMethodIds()\n\t);\n\n\treturn [ enabledPaymentMethodIds, updateUnselectedPaymentMethod ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<boolean>}\n */\nexport const useDebugLog = () => {\n\tconst { updateIsDebugLogEnabled } = useDispatch( STORE_NAME );\n\n\tconst isDebugLogEnabled = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsDebugLogEnabled()\n\t);\n\n\treturn [ isDebugLogEnabled, updateIsDebugLogEnabled ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<boolean>}\n */\nexport const useTestMode = () => {\n\tconst { updateIsTestModeEnabled } = useDispatch( STORE_NAME );\n\n\tconst isTestModeEnabled = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsTestModeEnabled()\n\t);\n\n\treturn [ isTestModeEnabled, updateIsTestModeEnabled ];\n};\n\n/**\n * @return {boolean}\n */\nexport const useTestModeOnboarding = () =>\n\tuseSelect(\n\t\t( select ) => select( STORE_NAME ).getIsTestModeOnboarding(),\n\t\t[]\n\t);\n\n/**\n * @return {boolean}\n */\nexport const useDevMode = () =>\n\tuseSelect( ( select ) => select( STORE_NAME ).getIsDevModeEnabled(), [] );\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<boolean>}\n */\nexport const useMultiCurrency = () => {\n\tconst { updateIsMultiCurrencyEnabled } = useDispatch( STORE_NAME );\n\n\tconst isMultiCurrencyEnabled = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsMultiCurrencyEnabled()\n\t);\n\n\treturn [ isMultiCurrencyEnabled, updateIsMultiCurrencyEnabled ];\n};\n\nexport const useWCPaySubscriptions = () => {\n\tconst { updateIsWCPaySubscriptionsEnabled } = useDispatch( STORE_NAME );\n\n\tconst isWCPaySubscriptionsEnabled = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsWCPaySubscriptionsEnabled()\n\t);\n\tconst isWCPaySubscriptionsEligible = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsWCPaySubscriptionsEligible()\n\t);\n\n\treturn [\n\t\tisWCPaySubscriptionsEnabled,\n\t\tisWCPaySubscriptionsEligible,\n\t\tupdateIsWCPaySubscriptionsEnabled,\n\t];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string>}\n */\nexport const useAccountStatementDescriptor = () => {\n\tconst { updateAccountStatementDescriptor } = useDispatch( STORE_NAME );\n\n\tconst accountStatementDescriptor = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getAccountStatementDescriptor()\n\t);\n\n\treturn [ accountStatementDescriptor, updateAccountStatementDescriptor ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string>}\n */\nexport const useAccountStatementDescriptorKanji = () => {\n\tconst { updateAccountStatementDescriptorKanji } = useDispatch( STORE_NAME );\n\n\tconst accountStatementDescriptorKanji = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getAccountStatementDescriptorKanji()\n\t);\n\n\treturn [\n\t\taccountStatementDescriptorKanji,\n\t\tupdateAccountStatementDescriptorKanji,\n\t];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string>}\n */\nexport const useAccountStatementDescriptorKana = () => {\n\tconst { updateAccountStatementDescriptorKana } = useDispatch( STORE_NAME );\n\n\tconst accountStatementDescriptorKana = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getAccountStatementDescriptorKana()\n\t);\n\n\treturn [\n\t\taccountStatementDescriptorKana,\n\t\tupdateAccountStatementDescriptorKana,\n\t];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string>}\n */\nexport const useAccountBusinessSupportEmail = () => {\n\tconst { updateAccountBusinessSupportEmail } = useDispatch( STORE_NAME );\n\n\tconst accountBusinessSupportEmail = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getAccountBusinessSupportEmail()\n\t);\n\n\treturn [ accountBusinessSupportEmail, updateAccountBusinessSupportEmail ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string>}\n */\nexport const useAccountBusinessSupportPhone = () => {\n\tconst { updateAccountBusinessSupportPhone } = useDispatch( STORE_NAME );\n\n\tconst accountBusinessSupportPhone = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getAccountBusinessSupportPhone()\n\t);\n\n\treturn [ accountBusinessSupportPhone, updateAccountBusinessSupportPhone ];\n};\n\nexport const useDepositScheduleInterval = () => {\n\tconst { updateDepositScheduleInterval } = useDispatch( STORE_NAME );\n\n\tconst depositScheduleInterval = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getDepositScheduleInterval()\n\t);\n\n\treturn [ depositScheduleInterval, updateDepositScheduleInterval ];\n};\n\nexport const useDepositScheduleWeeklyAnchor = () => {\n\tconst { updateDepositScheduleWeeklyAnchor } = useDispatch( STORE_NAME );\n\n\tconst depositScheduleWeeklyAnchor = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getDepositScheduleWeeklyAnchor()\n\t);\n\n\treturn [ depositScheduleWeeklyAnchor, updateDepositScheduleWeeklyAnchor ];\n};\n\nexport const useDepositScheduleMonthlyAnchor = () => {\n\tconst { updateDepositScheduleMonthlyAnchor } = useDispatch( STORE_NAME );\n\n\tconst depositScheduleMonthlyAnchor = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getDepositScheduleMonthlyAnchor()\n\t);\n\n\treturn [ depositScheduleMonthlyAnchor, updateDepositScheduleMonthlyAnchor ];\n};\n\nexport const useDepositDelayDays = () =>\n\tuseSelect( ( select ) => select( STORE_NAME ).getDepositDelayDays(), [] );\n\nexport const useCompletedWaitingPeriod = () =>\n\tuseSelect( ( select ) => select( STORE_NAME ).getCompletedWaitingPeriod() );\n\n/**\n * @return {string}\n */\nexport const useDepositStatus = () =>\n\tuseSelect( ( select ) => select( STORE_NAME ).getDepositStatus(), [] );\n\n/**\n * @return {string}\n */\nexport const useDepositRestrictions = () =>\n\tuseSelect( ( select ) => select( STORE_NAME ).getDepositRestrictions() );\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<boolean>}\n */\nexport const useManualCapture = () => {\n\tconst { updateIsManualCaptureEnabled } = useDispatch( STORE_NAME );\n\n\tconst isManualCaptureEnabled = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsManualCaptureEnabled()\n\t);\n\n\treturn [ isManualCaptureEnabled, updateIsManualCaptureEnabled ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<boolean>}\n */\nexport const useIsWCPayEnabled = () => {\n\tconst { updateIsWCPayEnabled } = useDispatch( STORE_NAME );\n\n\tconst IsWCPayEnabled = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsWCPayEnabled()\n\t);\n\n\treturn [ IsWCPayEnabled, updateIsWCPayEnabled ];\n};\n\n/**\n * @return {string[]} Array of available payment method IDs.\n */\nexport const useGetAvailablePaymentMethodIds = () =>\n\tuseSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getAvailablePaymentMethodIds()\n\t);\n\n/**\n * @return {Record<string, {status: string, requirements: string[]}>}\n */\nexport const useGetPaymentMethodStatuses = () =>\n\tuseSelect( ( select ) => select( STORE_NAME ).getPaymentMethodStatuses() );\n\n/**\n * @return {string[]}\n */\nexport const useGetDuplicatedPaymentMethodIds = () =>\n\tuseSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getDuplicatedPaymentMethodIds()\n\t);\n\n/**\n * @return {Record<string, any>}\n */\nexport const useGetSettings = () =>\n\tuseSelect( ( select ) => select( STORE_NAME ).getSettings() );\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').SettingsState}\n */\nexport const useSettings = () => {\n\tconst { saveSettings } = useDispatch( STORE_NAME );\n\tconst isSaving = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).isSavingSettings()\n\t);\n\tconst isDirty = useSelect( ( select ) => select( STORE_NAME ).isDirty() );\n\n\tconst isLoading = useSelect( ( select ) => {\n\t\tselect( STORE_NAME ).getSettings();\n\t\tconst isResolving = select( STORE_NAME ).isResolving( 'getSettings' );\n\t\tconst hasFinishedResolving =\n\t\t\tselect( STORE_NAME ).hasFinishedResolution( 'getSettings' );\n\t\treturn isResolving || ! hasFinishedResolving;\n\t} );\n\n\treturn {\n\t\tisLoading,\n\t\tsaveSettings,\n\t\tisSaving,\n\t\tisDirty,\n\t};\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<boolean>}\n */\nexport const usePaymentRequestEnabledSettings = () => {\n\tconst { updateIsPaymentRequestEnabled } = useDispatch( STORE_NAME );\n\n\tconst isPaymentRequestEnabled = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsPaymentRequestEnabled()\n\t);\n\n\treturn [ isPaymentRequestEnabled, updateIsPaymentRequestEnabled ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<boolean>}\n */\nexport const useExpressCheckoutInPaymentMethodsEnabledSettings = () => {\n\tconst { updateIsExpressCheckoutInPaymentMethodsEnabled } =\n\t\tuseDispatch( STORE_NAME );\n\n\tconst isExpressCheckoutInPaymentMethodsEnabled = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsExpressCheckoutInPaymentMethodsEnabled()\n\t);\n\n\treturn [\n\t\tisExpressCheckoutInPaymentMethodsEnabled,\n\t\tupdateIsExpressCheckoutInPaymentMethodsEnabled,\n\t];\n};\n\n/**\n * Factory function to create a hook for managing express checkout method locations.\n *\n * @param {string} methodId The method identifier (e.g., 'payment_request', 'woopay').\n * @return {function(): import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string[]>}\n */\nconst makeExpressCheckoutLocationHook = ( methodId ) => () => {\n\tconst {\n\t\tupdateExpressCheckoutProductMethods,\n\t\tupdateExpressCheckoutCartMethods,\n\t\tupdateExpressCheckoutCheckoutMethods,\n\t} = useDispatch( STORE_NAME );\n\n\tconst productMethods = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getExpressCheckoutProductMethods()\n\t);\n\tconst cartMethods = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getExpressCheckoutCartMethods()\n\t);\n\tconst checkoutMethods = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getExpressCheckoutCheckoutMethods()\n\t);\n\n\tconst methodsListMap = {\n\t\tproduct: productMethods,\n\t\tcart: cartMethods,\n\t\tcheckout: checkoutMethods,\n\t};\n\tconst methodsUpdatersMap = {\n\t\tproduct: updateExpressCheckoutProductMethods,\n\t\tcart: updateExpressCheckoutCartMethods,\n\t\tcheckout: updateExpressCheckoutCheckoutMethods,\n\t};\n\n\tconst enabledLocations = [\n\t\tproductMethods.includes( methodId ) && 'product',\n\t\tcartMethods.includes( methodId ) && 'cart',\n\t\tcheckoutMethods.includes( methodId ) && 'checkout',\n\t].filter( Boolean );\n\n\tconst locationUpdater = ( location, isChecked ) => {\n\t\tmethodsUpdatersMap[ location ](\n\t\t\tisChecked\n\t\t\t\t? [ ...methodsListMap[ location ], methodId ]\n\t\t\t\t: methodsListMap[ location ].filter(\n\t\t\t\t\t\t( method ) => method !== methodId\n\t\t\t\t  )\n\t\t);\n\t};\n\n\treturn [ enabledLocations, locationUpdater ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string[]>}\n */\nexport const usePaymentRequestLocations =\n\tmakeExpressCheckoutLocationHook( 'payment_request' );\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string>}\n */\nexport const usePaymentRequestButtonType = () => {\n\tconst { updatePaymentRequestButtonType } = useDispatch( STORE_NAME );\n\n\tconst paymentRequestButtonType = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getPaymentRequestButtonType()\n\t);\n\n\treturn [ paymentRequestButtonType, updatePaymentRequestButtonType ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string>}\n */\nexport const usePaymentRequestButtonSize = () => {\n\tconst { updatePaymentRequestButtonSize } = useDispatch( STORE_NAME );\n\n\tconst paymentRequestButtonSize = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getPaymentRequestButtonSize()\n\t);\n\n\treturn [ paymentRequestButtonSize, updatePaymentRequestButtonSize ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string>}\n */\nexport const usePaymentRequestButtonTheme = () => {\n\tconst { updatePaymentRequestButtonTheme } = useDispatch( STORE_NAME );\n\n\tconst paymentRequestButtonTheme = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getPaymentRequestButtonTheme()\n\t);\n\n\treturn [ paymentRequestButtonTheme, updatePaymentRequestButtonTheme ];\n};\n\nexport const usePaymentRequestButtonBorderRadius = () => {\n\tconst { updatePaymentRequestButtonBorderRadius } =\n\t\tuseDispatch( STORE_NAME );\n\n\tconst paymentRequestButtonBorderRadius = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getPaymentRequestButtonBorderRadius()\n\t);\n\n\treturn [\n\t\tpaymentRequestButtonBorderRadius,\n\t\tupdatePaymentRequestButtonBorderRadius,\n\t];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').SavingError | null}\n */\nexport const useGetSavingError = () => {\n\treturn useSelect( ( select ) => select( STORE_NAME ).getSavingError(), [] );\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<boolean>}\n */\nexport const useWooPayEnabledSettings = () => {\n\tconst { updateIsWooPayEnabled } = useDispatch( STORE_NAME );\n\n\tconst isWooPayEnabled = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsWooPayEnabled()\n\t);\n\n\treturn [ isWooPayEnabled, updateIsWooPayEnabled ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<boolean>}\n */\nexport const useWooPayGlobalThemeSupportEnabledSettings = () => {\n\tconst { updateIsWooPayGlobalThemeSupportEnabled } =\n\t\tuseDispatch( STORE_NAME );\n\n\tconst isWooPayGlobalThemeSupportEnabled = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsWooPayGlobalThemeSupportEnabled()\n\t);\n\n\treturn [\n\t\tisWooPayGlobalThemeSupportEnabled,\n\t\tupdateIsWooPayGlobalThemeSupportEnabled,\n\t];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string>}\n */\nexport const useWooPayCustomMessage = () => {\n\tconst { updateWooPayCustomMessage } = useDispatch( STORE_NAME );\n\n\tconst wooPayCustomMessage = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getWooPayCustomMessage()\n\t);\n\n\treturn [ wooPayCustomMessage, updateWooPayCustomMessage ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string>}\n */\nexport const useWooPayStoreLogo = () => {\n\tconst { updateWooPayStoreLogo } = useDispatch( STORE_NAME );\n\n\tconst wooPayStoreLogo = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getWooPayStoreLogo()\n\t);\n\n\treturn [ wooPayStoreLogo, updateWooPayStoreLogo ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string[]>}\n */\nexport const useWooPayLocations = makeExpressCheckoutLocationHook( 'woopay' );\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<boolean>}\n */\nexport const useAmazonPayEnabledSettings = () => {\n\tconst { updateEnabledPaymentMethodIds } = useDispatch( STORE_NAME );\n\n\tconst enabledPaymentMethodIds = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getEnabledPaymentMethodIds()\n\t);\n\n\tconst isAmazonPayEnabled = enabledPaymentMethodIds.includes( 'amazon_pay' );\n\n\tconst updateIsAmazonPayEnabled = ( isEnabled ) => {\n\t\tif ( isEnabled ) {\n\t\t\tupdateEnabledPaymentMethodIds( [\n\t\t\t\t...enabledPaymentMethodIds,\n\t\t\t\t'amazon_pay',\n\t\t\t] );\n\t\t} else {\n\t\t\tupdateEnabledPaymentMethodIds(\n\t\t\t\tenabledPaymentMethodIds.filter(\n\t\t\t\t\t( method ) => method !== 'amazon_pay'\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t};\n\n\treturn [ isAmazonPayEnabled, updateIsAmazonPayEnabled ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string[]>}\n */\nexport const useAmazonPayLocations =\n\tmakeExpressCheckoutLocationHook( 'amazon_pay' );\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string>}\n */\nexport const useCurrentProtectionLevel = () => {\n\tconst { updateProtectionLevel } = useDispatch( STORE_NAME );\n\n\tconst currentProtectionLevel = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getCurrentProtectionLevel()\n\t);\n\n\treturn [ currentProtectionLevel, updateProtectionLevel ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').AdvancedFraudPreventionSettingsState}\n */\nexport const useAdvancedFraudProtectionSettings = () => {\n\tconst { updateAdvancedFraudProtectionSettings } = useDispatch( STORE_NAME );\n\n\tconst advancedFraudProtectionSettings = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getAdvancedFraudProtectionSettings()\n\t);\n\n\treturn [\n\t\tadvancedFraudProtectionSettings,\n\t\tupdateAdvancedFraudProtectionSettings,\n\t];\n};\n\n/**\n * @return {boolean}\n */\nexport const useWooPayShowIncompatibilityNotice = () =>\n\tuseSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getShowWooPayIncompatibilityNotice()\n\t);\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<boolean>}\n */\nexport const useStripeBilling = () => {\n\tconst { updateIsStripeBillingEnabled } = useDispatch( STORE_NAME );\n\n\tconst isStripeBillingEnabled = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getIsStripeBillingEnabled()\n\t);\n\n\treturn [ isStripeBillingEnabled, updateIsStripeBillingEnabled ];\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').StripeBillingMigrationState}\n */\nexport const useStripeBillingMigration = () => {\n\tconst { submitStripeBillingSubscriptionMigration } =\n\t\tuseDispatch( STORE_NAME );\n\n\treturn useSelect( ( select ) => {\n\t\tconst { getStripeBillingSubscriptionCount } = select( STORE_NAME );\n\t\tconst { getIsStripeBillingMigrationInProgress } = select( STORE_NAME );\n\t\tconst { isResolving } = select( STORE_NAME );\n\t\tconst hasResolved = select( STORE_NAME ).hasFinishedResolution(\n\t\t\t'scheduleStripeBillingMigration'\n\t\t);\n\t\tconst { getStripeBillingMigratedCount } = select( STORE_NAME );\n\n\t\treturn [\n\t\t\tgetIsStripeBillingMigrationInProgress(),\n\t\t\tgetStripeBillingMigratedCount(),\n\t\t\tgetStripeBillingSubscriptionCount(),\n\t\t\tsubmitStripeBillingSubscriptionMigration,\n\t\t\tisResolving( 'scheduleStripeBillingMigration' ),\n\t\t\thasResolved,\n\t\t];\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps -- submitStripeBillingSubscriptionMigration is stable\n\t}, [] );\n};\n\n/**\n * @return {import('wcpay/types/wcpay-data-settings-hooks').GenericSettingsHook<string>}\n */\nexport const useAccountCommunicationsEmail = () => {\n\tconst { updateAccountCommunicationsEmail } = useDispatch( STORE_NAME );\n\n\tconst accountCommunicationsEmail = useSelect( ( select ) =>\n\t\tselect( STORE_NAME ).getAccountCommunicationsEmail()\n\t);\n\n\treturn [ accountCommunicationsEmail, updateAccountCommunicationsEmail ];\n};\n","/** @format */\n\n/**\n * Internal dependencies\n */\nimport ACTION_TYPES from './action-types';\n\nconst defaultState = {\n\tisDirty: false,\n\tisSaving: false,\n\tsavingError: null,\n\tdata: {},\n};\n\nexport const receiveSettings = (\n\tstate = defaultState,\n\t{ type, ...action }\n) => {\n\tswitch ( type ) {\n\t\tcase ACTION_TYPES.SET_SETTINGS:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tdata: action.data,\n\t\t\t\tisDirty: false,\n\t\t\t};\n\n\t\tcase ACTION_TYPES.SET_SETTINGS_VALUES:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tsavingError: null,\n\t\t\t\tisDirty: true,\n\t\t\t\tdata: {\n\t\t\t\t\t...state.data,\n\t\t\t\t\t...action.payload,\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase ACTION_TYPES.SET_IS_SAVING_SETTINGS:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tisDirty:\n\t\t\t\t\taction.isSaving || action.error ? state.isDirty : false,\n\t\t\t\tisSaving: action.isSaving,\n\t\t\t\tsavingError: action.error,\n\t\t\t};\n\n\t\tcase ACTION_TYPES.SET_SELECTED_PAYMENT_METHOD:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tisDirty: true,\n\t\t\t\tdata: {\n\t\t\t\t\t...state.data,\n\t\t\t\t\tenabled_payment_method_ids:\n\t\t\t\t\t\tstate.data.enabled_payment_method_ids.concat(\n\t\t\t\t\t\t\taction.id\n\t\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase ACTION_TYPES.SET_UNSELECTED_PAYMENT_METHOD:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tisDirty: true,\n\t\t\t\tdata: {\n\t\t\t\t\t...state.data,\n\t\t\t\t\tenabled_payment_method_ids:\n\t\t\t\t\t\tstate.data.enabled_payment_method_ids.filter(\n\t\t\t\t\t\t\t( id ) => id !== action.id\n\t\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t};\n\t}\n\n\treturn state;\n};\n\nexport default receiveSettings;\n","/** @format */\n\n/**\n * External dependencies\n */\nimport { dispatch } from '@wordpress/data';\nimport { apiFetch } from '@wordpress/data-controls';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport { NAMESPACE } from '../constants';\nimport { updateSettings } from './actions';\n\n/**\n * Retrieve settings from the site's REST API.\n */\nexport function* getSettings() {\n\tconst path = `${ NAMESPACE }/settings`;\n\n\ttry {\n\t\tconst result = yield apiFetch( { path } );\n\t\tyield updateSettings( result );\n\t} catch ( e ) {\n\t\tyield dispatch( 'core/notices' ).createErrorNotice(\n\t\t\t__( 'Error retrieving settings.', 'woocommerce-payments' )\n\t\t);\n\t}\n}\n","/** @format */\n\n/**\n * Internal dependencies\n */\nimport { ProtectionLevel } from '../../settings/fraud-protection/advanced-settings/constants';\nimport { getDefaultBorderRadius } from 'wcpay/utils/express-checkout';\n\nconst EMPTY_OBJ = {};\nconst EMPTY_ARR = [];\n\nconst getSettingsState = ( state ) => {\n\tif ( ! state ) {\n\t\treturn EMPTY_OBJ;\n\t}\n\n\treturn state.settings || EMPTY_OBJ;\n};\n\nexport const getSettings = ( state ) => {\n\treturn getSettingsState( state ).data || EMPTY_OBJ;\n};\n\nexport const getDuplicatedPaymentMethodIds = ( state ) => {\n\treturn getSettings( state ).duplicated_payment_method_ids || EMPTY_OBJ;\n};\n\nexport const getIsWCPayEnabled = ( state ) => {\n\treturn getSettings( state ).is_wcpay_enabled || false;\n};\n\nexport const getEnabledPaymentMethodIds = ( state ) => {\n\treturn getSettings( state ).enabled_payment_method_ids || EMPTY_ARR;\n};\n\nexport const getAvailablePaymentMethodIds = ( state ) => {\n\treturn getSettings( state ).available_payment_method_ids || EMPTY_ARR;\n};\n\nexport const getPaymentMethodStatuses = ( state ) => {\n\treturn getSettings( state ).payment_method_statuses || EMPTY_OBJ;\n};\n\nexport const isSavingSettings = ( state ) => {\n\treturn getSettingsState( state ).isSaving || false;\n};\n\nexport const isDirty = ( state ) => {\n\treturn getSettingsState( state ).isDirty || false;\n};\n\nexport const getAccountStatementDescriptor = ( state ) => {\n\treturn getSettings( state ).account_statement_descriptor || '';\n};\n\nexport const getAccountStatementDescriptorKanji = ( state ) => {\n\treturn getSettings( state ).account_statement_descriptor_kanji || '';\n};\n\nexport const getAccountStatementDescriptorKana = ( state ) => {\n\treturn getSettings( state ).account_statement_descriptor_kana || '';\n};\n\nexport const getAccountBusinessSupportEmail = ( state ) => {\n\treturn getSettings( state ).account_business_support_email || '';\n};\n\nexport const getAccountBusinessSupportPhone = ( state ) => {\n\treturn getSettings( state ).account_business_support_phone || '';\n};\n\nexport const getAccountDomesticCurrency = ( state ) => {\n\treturn getSettings( state ).account_domestic_currency || '';\n};\n\nexport const getDepositScheduleInterval = ( state ) => {\n\treturn getSettings( state ).deposit_schedule_interval || '';\n};\n\nexport const getDepositScheduleWeeklyAnchor = ( state ) => {\n\treturn getSettings( state ).deposit_schedule_weekly_anchor || '';\n};\n\nexport const getDepositScheduleMonthlyAnchor = ( state ) => {\n\treturn getSettings( state ).deposit_schedule_monthly_anchor || '';\n};\n\nexport const getDepositDelayDays = ( state ) => {\n\treturn getSettings( state ).deposit_delay_days || '7'; // default to 7 days\n};\n\nexport const getCompletedWaitingPeriod = ( state ) => {\n\treturn getSettings( state ).deposit_completed_waiting_period || false;\n};\n\nexport const getDepositStatus = ( state ) => {\n\treturn getSettings( state ).deposit_status || '';\n};\n\nexport const getDepositRestrictions = ( state ) => {\n\treturn getSettings( state ).deposit_restrictions || '';\n};\n\nexport const getIsManualCaptureEnabled = ( state ) => {\n\treturn getSettings( state ).is_manual_capture_enabled || false;\n};\n\nexport const getIsTestModeEnabled = ( state ) => {\n\treturn getSettings( state ).is_test_mode_enabled || false;\n};\n\nexport const getIsTestModeOnboarding = ( state ) => {\n\treturn getSettings( state ).is_test_mode_onboarding || false;\n};\n\nexport const getIsDevModeEnabled = ( state ) => {\n\treturn getSettings( state ).is_dev_mode_enabled || false;\n};\n\nexport const getIsPaymentRequestEnabled = ( state ) => {\n\treturn getSettings( state ).is_payment_request_enabled || false;\n};\n\nexport const getIsExpressCheckoutInPaymentMethodsEnabled = ( state ) => {\n\treturn (\n\t\tgetSettings( state ).is_express_checkout_in_payment_methods_enabled ||\n\t\tfalse\n\t);\n};\n\nexport const getIsDebugLogEnabled = ( state ) => {\n\treturn getSettings( state ).is_debug_log_enabled || false;\n};\n\nexport const getIsMultiCurrencyEnabled = ( state ) => {\n\treturn getSettings( state ).is_multi_currency_enabled || false;\n};\n\nexport const getPaymentRequestButtonType = ( state ) => {\n\treturn getSettings( state ).payment_request_button_type || '';\n};\n\nexport const getPaymentRequestButtonSize = ( state ) => {\n\treturn getSettings( state ).payment_request_button_size || '';\n};\n\nexport const getPaymentRequestButtonTheme = ( state ) => {\n\treturn getSettings( state ).payment_request_button_theme || '';\n};\n\nexport const getPaymentRequestButtonBorderRadius = ( state ) => {\n\tconst radius = getSettings( state )?.payment_request_button_border_radius;\n\n\t// We can't use a || shorthand because 0 is a valid value.\n\tif ( radius === 0 || radius === '0' || radius ) {\n\t\treturn radius;\n\t}\n\treturn getDefaultBorderRadius();\n};\n\nexport const getIsSavedCardsEnabled = ( state ) => {\n\treturn getSettings( state ).is_saved_cards_enabled || false;\n};\n\nexport const getSavingError = ( state ) => {\n\treturn getSettingsState( state ).savingError;\n};\n\nexport const getIsCardPresentEligible = ( state ) => {\n\treturn getSettings( state ).is_card_present_eligible || false;\n};\n\nexport const getIsWCPaySubscriptionsEnabled = ( state ) => {\n\treturn getSettings( state ).is_wcpay_subscriptions_enabled || false;\n};\n\nexport const getIsWCPaySubscriptionsEligible = ( state ) => {\n\treturn getSettings( state ).is_wcpay_subscriptions_eligible || false;\n};\n\nexport const getIsSubscriptionsPluginActive = ( state ) => {\n\treturn getSettings( state ).is_subscriptions_plugin_active || false;\n};\n\nexport const getIsWooPayEnabled = ( state ) => {\n\treturn getSettings( state ).is_woopay_enabled || false;\n};\n\nexport const getIsWooPayGlobalThemeSupportEnabled = ( state ) => {\n\treturn getSettings( state ).is_woopay_global_theme_support_enabled || false;\n};\n\nexport const getWooPayCustomMessage = ( state ) => {\n\treturn getSettings( state ).woopay_custom_message || '';\n};\n\nexport const getWooPayStoreLogo = ( state ) => {\n\treturn getSettings( state ).woopay_store_logo || '';\n};\n\nexport const getCurrentProtectionLevel = ( state ) => {\n\treturn (\n\t\tgetSettings( state ).current_protection_level || ProtectionLevel.BASIC\n\t);\n};\n\nexport const getAdvancedFraudProtectionSettings = ( state ) => {\n\treturn getSettings( state ).advanced_fraud_protection_settings || EMPTY_ARR;\n};\n\nexport const getShowWooPayIncompatibilityNotice = ( state ) => {\n\treturn getSettings( state ).show_woopay_incompatibility_notice || false;\n};\n\nexport const getIsStripeBillingEnabled = ( state ) => {\n\treturn getSettings( state ).is_stripe_billing_enabled || false;\n};\n\nexport const getIsStripeBillingMigrationInProgress = ( state ) => {\n\treturn getSettings( state ).is_migrating_stripe_billing || false;\n};\n\nexport const getStripeBillingSubscriptionCount = ( state ) => {\n\treturn getSettings( state ).stripe_billing_subscription_count || 0;\n};\n\nexport const getStripeBillingMigratedCount = ( state ) => {\n\treturn getSettings( state ).stripe_billing_migrated_count || 0;\n};\n\nexport const getAccountCommunicationsEmail = ( state ) => {\n\treturn getSettings( state ).account_communications_email || '';\n};\n\nexport const getExpressCheckoutProductMethods = ( state ) => {\n\treturn getSettings( state ).express_checkout_product_methods || EMPTY_ARR;\n};\n\nexport const getExpressCheckoutCartMethods = ( state ) => {\n\treturn getSettings( state ).express_checkout_cart_methods || EMPTY_ARR;\n};\n\nexport const getExpressCheckoutCheckoutMethods = ( state ) => {\n\treturn getSettings( state ).express_checkout_checkout_methods || EMPTY_ARR;\n};\n","/** @format */\n\n/**\n * External dependencies\n */\nimport { createReduxStore, register, combineReducers } from '@wordpress/data';\nimport { controls } from '@wordpress/data-controls';\n\n/**\n * Internal dependencies\n */\nimport reducer from './reducer';\nimport * as selectors from './selectors';\nimport * as actions from './actions';\nimport * as resolvers from './resolvers';\nimport { SETTINGS_STORE_NAME } from '../store-names';\n\nexport const STORE_NAME = SETTINGS_STORE_NAME;\n\n// The reducer is nested under its slice key so selectors keep reading\n// `state.settings.…`, exactly as they did under the old combined store.\nexport const store = createReduxStore( STORE_NAME, {\n\treducer: combineReducers( { settings: reducer } ),\n\tactions,\n\tselectors,\n\tresolvers,\n\tcontrols,\n} );\n\nregister( store );\n","/** @format */\n\n/**\n * Per-slice @wordpress/data store names.\n *\n * This module is intentionally dependency-free. `store.js` (which calls\n * `register()`) imports its name from here, and so do the slice's resolvers and\n * actions — that way resolvers/actions never import `store.js`, which would\n * create a `store.js → resolvers → store.js` cycle that breaks when a resolver\n * or action module is imported on its own (e.g. in a unit test).\n */\n\nexport const DEPOSITS_STORE_NAME = 'wc/payments/deposits';\nexport const TRANSACTIONS_STORE_NAME = 'wc/payments/transactions';\nexport const CHARGES_STORE_NAME = 'wc/payments/charges';\nexport const TIMELINE_STORE_NAME = 'wc/payments/timeline';\nexport const DISPUTES_STORE_NAME = 'wc/payments/disputes';\nexport const SETTINGS_STORE_NAME = 'wc/payments/settings';\nexport const READERS_STORE_NAME = 'wc/payments/readers';\nexport const CAPITAL_STORE_NAME = 'wc/payments/capital';\nexport const DOCUMENTS_STORE_NAME = 'wc/payments/documents';\nexport const PAYMENT_INTENTS_STORE_NAME = 'wc/payments/paymentIntents';\nexport const AUTHORIZATIONS_STORE_NAME = 'wc/payments/authorizations';\nexport const FILES_STORE_NAME = 'wc/payments/files';\nexport const PM_PROMOTIONS_STORE_NAME = 'wc/payments/pmPromotions';\nexport const DISPUTE_READINESS_STORE_NAME = 'wc/payments/disputeReadiness';\nexport const REPORTS_STORE_NAME = 'wc/payments/reports';\n","/** @format */\n\nexport const ProtectionLevel = {\n\tBASIC: 'basic',\n\tADVANCED: 'advanced',\n\tSTANDARD: 'standard',\n\tHIGH: 'high',\n};\n\nexport const Outcomes = {\n\tBLOCK: 'block',\n\tREVIEW: 'review',\n\tALLOW: 'allow',\n};\n\nexport const Rules = {\n\tRULE_AVS_VERIFICATION: 'avs_verification',\n\tRULE_ADDRESS_MISMATCH: 'address_mismatch',\n\tRULE_INTERNATIONAL_IP_ADDRESS: 'international_ip_address',\n\tRULE_IP_ADDRESS_MISMATCH: 'ip_address_mismatch',\n\tRULE_ORDER_ITEMS_THRESHOLD: 'order_items_threshold',\n\tRULE_PURCHASE_PRICE_THRESHOLD: 'purchase_price_threshold',\n};\n\nexport const Checks = {\n\tCHECK_AVS_MISMATCH: 'avs_mismatch',\n\tCHECK_BILLING_SHIPPING_ADDRESS_SAME: 'billing_shipping_address_same',\n\tCHECK_IP_COUNTRY: 'ip_country',\n\tCHECK_IP_BILLING_COUNTRY_SAME: 'ip_billing_country_same',\n\tCHECK_ITEM_COUNT: 'item_count',\n\tCHECK_ORDER_TOTAL: 'order_total',\n};\n\n// Countries where AVS (Address Verification System) post code checks are\n// commonly supported by card issuers. AVS is unreliable or unsupported\n// elsewhere, so the AVS Mismatch filter only does something useful when a\n// store sells to at least one of these.\nexport const avsSupportedCountries = [ 'US', 'CA', 'GB' ];\n\nexport const CheckOperators = {\n\tLIST_OPERATOR_AND: 'and',\n\tLIST_OPERATOR_OR: 'or',\n\tOPERATOR_EQUALS: 'equals',\n\tOPERATOR_NOT_EQUALS: 'not_equals',\n\tOPERATOR_GTE: 'greater_or_equal',\n\tOPERATOR_GT: 'greater_than',\n\tOPERATOR_LTE: 'less_or_equal',\n\tOPERATOR_LT: 'less_than',\n\tOPERATOR_IN: 'in',\n\tOPERATOR_NOT_IN: 'not_in',\n};\n","/* global wcpayExpressCheckoutParams */\n\n/**\n * Retrieves express checkout config from global variable.\n *\n * @param {string} key The object property key.\n * @return {mixed} Value of the object prop or null.\n */\nexport const getExpressCheckoutConfig = ( key ) => {\n\tif (\n\t\ttypeof wcpayExpressCheckoutParams === 'object' &&\n\t\twcpayExpressCheckoutParams.hasOwnProperty( key )\n\t) {\n\t\treturn wcpayExpressCheckoutParams[ key ];\n\t}\n\treturn null;\n};\n\nexport const getDefaultBorderRadius = () => {\n\t// If wcpaySettings isn't loaded on the page where this is called we can\n\t// safely return the default value of 4.\n\tif ( typeof wcpaySettings === 'undefined' ) {\n\t\treturn 4;\n\t}\n\n\treturn parseInt(\n\t\twindow?.wcpaySettings?.defaultExpressCheckoutBorderRadius || 4,\n\t\t10\n\t);\n};\n\n/**\n * Construct WC AJAX endpoint URL.\n *\n * @param {string} ajaxURL  AJAX URL.\n * @param {string} endpoint Request endpoint URL.\n * @param {string} prefix   Optional prefix for endpoint action.\n * @return {string} URL with interpolated ednpoint.\n */\nexport const buildAjaxURL = ( ajaxURL, endpoint, prefix = 'wcpay_' ) =>\n\tajaxURL.toString().replace( '%%endpoint%%', prefix + endpoint );\n"],"names":["SET_SETTINGS","SET_SETTINGS_VALUES","SET_IS_SAVING_SETTINGS","SET_SELECTED_PAYMENT_METHOD","SET_UNSELECTED_PAYMENT_METHOD","updateSettingsValues","payload","type","ACTION_TYPES","updateIsSavedCardsEnabled","isEnabled","is_saved_cards_enabled","updateIsCardPresentEligible","is_card_present_eligible","updatePaymentRequestButtonType","payment_request_button_type","updatePaymentRequestButtonSize","size","payment_request_button_size","updatePaymentRequestButtonTheme","theme","payment_request_button_theme","updatePaymentRequestButtonBorderRadius","radius","payment_request_button_border_radius","updateSettings","data","updateIsWCPayEnabled","is_wcpay_enabled","updateIsPaymentRequestEnabled","is_payment_request_enabled","updateIsExpressCheckoutInPaymentMethodsEnabled","is_express_checkout_in_payment_methods_enabled","updateEnabledPaymentMethodIds","methodIds","enabled_payment_method_ids","updateIsSavingSettings","isSaving","error","updateSelectedPaymentMethod","id","updateUnselectedPaymentMethod","updateIsManualCaptureEnabled","is_manual_capture_enabled","updateIsTestModeEnabled","is_test_mode_enabled","updateIsDebugLogEnabled","is_debug_log_enabled","updateIsMultiCurrencyEnabled","is_multi_currency_enabled","updateIsWCPaySubscriptionsEnabled","is_wcpay_subscriptions_enabled","updateAccountStatementDescriptor","accountStatementDescriptor","account_statement_descriptor","updateAccountStatementDescriptorKanji","accountStatementDescriptorKanji","account_statement_descriptor_kanji","updateAccountStatementDescriptorKana","accountStatementDescriptorKana","account_statement_descriptor_kana","updateAccountBusinessSupportEmail","accountBusinessSupportEmail","account_business_support_email","updateAccountBusinessSupportPhone","accountBusinessSupportPhone","account_business_support_phone","updateDepositScheduleInterval","depositScheduleInterval","deposit_schedule_interval","updateDepositScheduleWeeklyAnchor","depositScheduleWeeklyAnchor","deposit_schedule_weekly_anchor","updateDepositScheduleMonthlyAnchor","depositScheduleMonthlyAnchor","deposit_schedule_monthly_anchor","parseInt","saveSettings","settings","select","STORE_NAME","getSettings","response","apiFetch","path","NAMESPACE","method","payment_method_statuses","dispatch","createSuccessNotice","__","e","createErrorNotice","server_error","details","updateIsWooPayEnabled","is_woopay_enabled","updateIsWooPayGlobalThemeSupportEnabled","is_woopay_global_theme_support_enabled","updateWooPayCustomMessage","message","woopay_custom_message","updateWooPayStoreLogo","storeLogo","woopay_store_logo","updateProtectionLevel","level","current_protection_level","updateAdvancedFraudProtectionSettings","advanced_fraud_protection_settings","updateIsStripeBillingEnabled","is_stripe_billing_enabled","updateAccountCommunicationsEmail","email","account_communications_email","updateExpressCheckoutProductMethods","methods","express_checkout_product_methods","updateExpressCheckoutCartMethods","express_checkout_cart_methods","updateExpressCheckoutCheckoutMethods","express_checkout_checkout_methods","submitStripeBillingSubscriptionMigration","startResolution","finishResolution","saveOption","optionName","value","directApiFetch","catch","useMultiCurrency","useDispatch","useSelect","getIsMultiCurrencyEnabled","useManualCapture","getIsManualCaptureEnabled","useGetSettings","useSettings","isSavingSettings","isDirty","isLoading","isResolving","hasFinishedResolving","hasFinishedResolution","makeExpressCheckoutLocationHook","methodId","productMethods","getExpressCheckoutProductMethods","cartMethods","getExpressCheckoutCartMethods","checkoutMethods","getExpressCheckoutCheckoutMethods","methodsListMap","product","cart","checkout","methodsUpdatersMap","includes","filter","Boolean","locationUpdater","location","isChecked","useCurrentProtectionLevel","getCurrentProtectionLevel","useAdvancedFraudProtectionSettings","getAdvancedFraudProtectionSettings","defaultState","savingError","receiveSettings","state","action","concat","result","EMPTY_OBJ","EMPTY_ARR","getSettingsState","getDuplicatedPaymentMethodIds","duplicated_payment_method_ids","getIsWCPayEnabled","getEnabledPaymentMethodIds","getAvailablePaymentMethodIds","available_payment_method_ids","getPaymentMethodStatuses","getAccountStatementDescriptor","getAccountStatementDescriptorKanji","getAccountStatementDescriptorKana","getAccountBusinessSupportEmail","getAccountBusinessSupportPhone","getAccountDomesticCurrency","account_domestic_currency","getDepositScheduleInterval","getDepositScheduleWeeklyAnchor","getDepositScheduleMonthlyAnchor","getDepositDelayDays","deposit_delay_days","getCompletedWaitingPeriod","deposit_completed_waiting_period","getDepositStatus","deposit_status","getDepositRestrictions","deposit_restrictions","getIsTestModeEnabled","getIsTestModeOnboarding","is_test_mode_onboarding","getIsDevModeEnabled","is_dev_mode_enabled","getIsPaymentRequestEnabled","getIsExpressCheckoutInPaymentMethodsEnabled","getIsDebugLogEnabled","getPaymentRequestButtonType","getPaymentRequestButtonSize","getPaymentRequestButtonTheme","getPaymentRequestButtonBorderRadius","getDefaultBorderRadius","getIsSavedCardsEnabled","getSavingError","getIsCardPresentEligible","getIsWCPaySubscriptionsEnabled","getIsWCPaySubscriptionsEligible","is_wcpay_subscriptions_eligible","getIsSubscriptionsPluginActive","is_subscriptions_plugin_active","getIsWooPayEnabled","getIsWooPayGlobalThemeSupportEnabled","getWooPayCustomMessage","getWooPayStoreLogo","ProtectionLevel","BASIC","getShowWooPayIncompatibilityNotice","show_woopay_incompatibility_notice","getIsStripeBillingEnabled","getIsStripeBillingMigrationInProgress","is_migrating_stripe_billing","getStripeBillingSubscriptionCount","stripe_billing_subscription_count","getStripeBillingMigratedCount","stripe_billing_migrated_count","getAccountCommunicationsEmail","SETTINGS_STORE_NAME","store","createReduxStore","reducer","combineReducers","actions","selectors","resolvers","controls","register","DEPOSITS_STORE_NAME","TRANSACTIONS_STORE_NAME","CHARGES_STORE_NAME","TIMELINE_STORE_NAME","DISPUTES_STORE_NAME","READERS_STORE_NAME","CAPITAL_STORE_NAME","DOCUMENTS_STORE_NAME","PAYMENT_INTENTS_STORE_NAME","AUTHORIZATIONS_STORE_NAME","FILES_STORE_NAME","PM_PROMOTIONS_STORE_NAME","DISPUTE_READINESS_STORE_NAME","REPORTS_STORE_NAME","ADVANCED","STANDARD","HIGH","Outcomes","BLOCK","REVIEW","ALLOW","Rules","RULE_AVS_VERIFICATION","RULE_ADDRESS_MISMATCH","RULE_INTERNATIONAL_IP_ADDRESS","RULE_IP_ADDRESS_MISMATCH","RULE_ORDER_ITEMS_THRESHOLD","RULE_PURCHASE_PRICE_THRESHOLD","Checks","CHECK_AVS_MISMATCH","CHECK_BILLING_SHIPPING_ADDRESS_SAME","CHECK_IP_COUNTRY","CHECK_IP_BILLING_COUNTRY_SAME","CHECK_ITEM_COUNT","CHECK_ORDER_TOTAL","avsSupportedCountries","CheckOperators","LIST_OPERATOR_AND","LIST_OPERATOR_OR","OPERATOR_EQUALS","OPERATOR_NOT_EQUALS","OPERATOR_GTE","OPERATOR_GT","OPERATOR_LTE","OPERATOR_LT","OPERATOR_IN","OPERATOR_NOT_IN","wcpaySettings","window","defaultExpressCheckoutBorderRadius"],"sourceRoot":""}

Youez - 2016 - github.com/yon3zu
LinuXploit