"use strict";
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d600ae86-efd3-5ef8-b229-dcc5f801a08b")}catch(e){}}();
(globalThis.webpackChunkwoocommerce_shipping=globalThis.webpackChunkwoocommerce_shipping||[]).push([[474],{2248(e,t,r){r.r(t),r.d(t,{API_FETCH_ACCOUNT_SETTINGS:()=>n,API_SAVE_ACCOUNT_SETTINGS:()=>c});var a=r(1455),o=r.n(a),s=r(1302);const n=async()=>await o()({path:(0,s.ec)(),method:"GET"}),c=async e=>await o()({path:(0,s.ec)(),method:"POST",data:e.payload})},3712(e,t,r){r.d(t,{C:()=>o,Q:()=>a});const a="SETTINGS/SAVE",o="SETTINGS/UPDATE_FORM_DATA"},6474(e,t,r){r.d(t,{registerSettingsStore:()=>c,settingsStore:()=>n});var a=r(7143),o=r(9523),s=r(8223);let n;const c=()=>{n=n||(0,s.y)(),(0,a.select)(o.uM)||(0,a.register)(n)}},7021(e,t,r){r.r(t),r.d(t,{saveSettings:()=>o,updateFormData:()=>s});var a=r(3712);function*o({payload:e}){const t=yield{type:"API_SAVE_ACCOUNT_SETTINGS",payload:e};return{type:a.Q,result:t}}function s(e,t){return{type:a.C,payload:{[e]:t}}}},8108(e,t,r){r.r(t),r.d(t,{getAddPaymentMethodURL:()=>o,getConfigMeta:()=>d,getConfigSettings:()=>c,getEnabledServices:()=>i,getPaymentMethods:()=>s,getSelectedPaymentMethod:()=>n,getSettings:()=>a});const a=e=>e,o=e=>{var t;return null!==(t=e.formMeta?.add_payment_method_url)&&void 0!==t?t:"https://wordpress.com/me/purchases/add-credit-card"},s=e=>{var t;return null!==(t=e.formMeta?.payment_methods)&&void 0!==t?t:[]},n=e=>e.formData?.selected_payment_method_id,c=e=>e.formData,d=e=>e.formMeta,i=e=>{var t;return null!==(t=e?.enabledServices)&&void 0!==t?t:[]}},8223(e,t,r){r.d(t,{y:()=>m});var a=r(7143),o=r(6161),s=r(9488),n=r(8108),c=r(7021),d=r(2248),i=r(9523);const l={reducer:s.W,selectors:{...n},actions:{...c},controls:d},u={},m=()=>(0,a.createReduxStore)(i.uM,{reducer:l.reducer,actions:l.actions,selectors:l.selectors,controls:{...o.controls,...l.controls},resolvers:u})},9488(e,t,r){r.d(t,{W:()=>s});var a=r(3712);const o=(0,r(9131).F5)(),s=(e=o,{type:t,...r})=>{switch(t){case a.Q:return{...e,...r.settings};case a.C:return{...e,formData:{...e.formData,...r.payload}}}return e}}}]);
//# sourceMappingURL=474.js.map
//# debugId=d600ae86-efd3-5ef8-b229-dcc5f801a08b
