| Server IP : 146.59.209.152 / Your IP : 216.73.216.25 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/ |
Upload File : |
/*! For license information please see index.js.LICENSE.txt */
(()=>{var e,t,o,n,r={8358(e,t,o){"use strict";o.d(t,{A:()=>s});var n=o(1609),r=o(1673);function a(e,t){let o,r,s=[];for(let n=0;n<e.length;n++){const a=e[n];if("string"!==a.type){if(void 0===t[a.value])throw new Error(`Invalid interpolation, missing component node: \`${a.value}\``);if("object"!=typeof t[a.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${a.value}\``);if("componentClose"===a.type)throw new Error(`Missing opening component token: \`${a.value}\``);if("componentOpen"===a.type){o=t[a.value],r=n;break}s.push(t[a.value])}else s.push(a.value)}if(o){const i=function(e,t){const o=t[e];let n=0;for(let r=e+1;r<t.length;r++){const e=t[r];if(e.value===o.value){if("componentOpen"===e.type){n++;continue}if("componentClose"===e.type){if(0===n)return r;n--}}}throw new Error("Missing closing component token `"+o.value+"`")}(r,e),c=a(e.slice(r+1,i),t),m=(0,n.cloneElement)(o,{},c);if(s.push(m),i<e.length-1){const o=a(e.slice(i+1),t);s=s.concat(o)}}return s=s.filter(Boolean),0===s.length?null:1===s.length?s[0]:(0,n.createElement)(n.Fragment,null,...s)}function s(e){const{mixedString:t,components:o,throwErrors:n}=e;if(!o)return t;if("object"!=typeof o){if(n)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const s=(0,r.A)(t);try{return a(s,o)}catch(e){if(n)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}},1673(e,t,o){"use strict";function n(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function r(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(n)}o.d(t,{A:()=>r})},7677(e,t,o){"use strict";o.d(t,{A:()=>r});var n=o(6087);const r=(0,n.forwardRef)(function({icon:e,size:t=24,...o},r){return(0,n.cloneElement)(e,{width:t,height:t,...o,ref:r})})},8351(e,t,o){"use strict";o.d(t,{A:()=>a});var n=o(5573),r=o(4848);const a=(0,r.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(n.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})})},4079(e,t,o){"use strict";o.d(t,{A:()=>a});var n=o(5573),r=o(4848);const a=(0,r.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(n.Path,{d:"M3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zm-1.338 4.877c-.314.22-.412.452-.412.623 0 .171.098.403.412.623.312.218.783.377 1.338.377.825 0 1.605.233 2.198.648.59.414 1.052 1.057 1.052 1.852 0 .795-.461 1.438-1.052 1.852-.41.286-.907.486-1.448.582v.316a.75.75 0 01-1.5 0v-.316a3.64 3.64 0 01-1.448-.582c-.59-.414-1.052-1.057-1.052-1.852a.75.75 0 011.5 0c0 .171.098.403.412.623.312.218.783.377 1.338.377s1.026-.159 1.338-.377c.314-.22.412-.452.412-.623 0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377-.825 0-1.605-.233-2.198-.648-.59-.414-1.052-1.057-1.052-1.852 0-.795.461-1.438 1.052-1.852a3.64 3.64 0 011.448-.582V7.5a.75.75 0 011.5 0v.316c.54.096 1.039.296 1.448.582.59.414 1.052 1.057 1.052 1.852a.75.75 0 01-1.5 0c0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377s-1.026.159-1.338.377z"})})},8851(e,t,o){"use strict";o.d(t,{A:()=>a});var n=o(5573),r=o(4848);const a=(0,r.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})})},5837(e,t,o){"use strict";o.d(t,{A:()=>y}),o(1609);var n=o(7723),r=o(6087),a=o(195),s=o(4164),i=o(8351),c=o(8851),m=o(9031),l=o(5588),d=o(4788),u=o(6427),p=o(4848);const h={success:i.A,error:l.A,warning:m.A,info:c.A},y=({icon:e,children:t,actions:o=[],className:i,status:c="info",isDismissible:m=!0,onRemove:l})=>{((e,t)=>{const o="string"==typeof t?t:(0,r.renderToString)(t),n="error"===e?"assertive":"polite";(0,r.useEffect)(()=>{o&&(0,a.speak)(o,n)},[o,n])})(c,t);const y=!0===e?h[c]:e,f=(0,s.A)(i,"wcpay-banner-notice","is-"+c);return(0,p.jsxs)("div",{className:f,children:[y&&(0,p.jsx)(u.Icon,{icon:y,className:"wcpay-banner-notice__icon"}),(0,p.jsxs)("div",{className:"wcpay-banner-notice__content",children:[t,o.length>0&&(0,p.jsx)("div",{className:"wcpay-banner-notice__actions",children:o.map(({className:e,label:t,variant:o,onClick:n,url:r,urlTarget:a},s)=>{let i=o;return"primary"!==o&&(i=r?"link":"secondary"),(0,p.jsx)(u.Button,{href:r,variant:i,onClick:r?void 0:n,className:e,target:a,__next40pxDefaultSize:!0,children:t},s)})})]}),m&&(0,p.jsx)(u.Button,{className:"wcpay-banner-notice__dismiss",icon:d.A,label:(0,n.__)("Dismiss this notice","woocommerce-payments"),onClick:()=>l?.(),showTooltip:!1,__next40pxDefaultSize:!0})]})}},9199(e,t,o){"use strict";o.d(t,{A:()=>i});var n=o(1609),r=o(7723),a=o(5798),s=o(4848);class i extends n.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){return this.state.error?(0,s.jsxs)(a.A,{icon:!0,status:"error",isDismissible:!1,children:[(0,r.__)("There was an error rendering this view. Please contact support for assistance if the problem persists.","woocommerce-payments"),(0,s.jsx)("br",{}),this.state.error.toString()]}):this.props.children}}},8307(e,t,o){"use strict";o.d(t,{A:()=>r}),o(1609);var n=o(4848);const r=(0,n.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})})},4858(e,t,o){"use strict";o.d(t,{A:()=>r}),o(1609);var n=o(4848);const r=(0,n.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})})},5798(e,t,o){"use strict";o.d(t,{A:()=>m}),o(1609);var n=o(6427),r=o(4164),a=o(5955),s=o(9031),i=o(4275),c=o(4848);const m=function(e){const{icon:t,actions:o,children:m,buttonVariant:l,...d}=e;d.className=(0,r.A)("wcpay-inline-notice",`wcpay-inline-${d.status}-notice`,d.className);let u=t;if(!0===u)switch(d.status){case"success":u=(0,c.jsx)(a.A,{});break;case"error":case"warning":u=(0,c.jsx)(s.A,{});break;default:u=(0,c.jsx)(i.A,{})}const p="wcpay-inline-notice__action",h=o?.map((e,t)=>"url"in e?(0,c.jsx)("a",{className:p,href:e.url,children:e.label},t):(0,c.jsx)(n.Button,{className:p,onClick:e.onClick,isBusy:e.isBusy??!1,disabled:e.disabled??!1,variant:l,children:e.label},t));return(0,c.jsx)(n.Notice,{...d,children:(0,c.jsxs)(n.Flex,{align:"center",justify:"flex-start",children:[u&&(0,c.jsx)(n.FlexItem,{className:`wcpay-inline-notice__icon wcpay-inline-${d.status}-notice__icon`,children:(0,c.jsx)(n.Icon,{icon:u,size:24})}),(0,c.jsxs)(n.FlexItem,{className:`wcpay-inline-notice__content wcpay-inline-${d.status}-notice__content`,children:[m,h&&(0,c.jsx)(n.Flex,{className:"wcpay-inline-notice__content__actions",align:"baseline",justify:"flex-start",gap:4,children:h})]})]})})}},7583(e,t,o){"use strict";o.d(t,{A:()=>i});var n=o(1609),r=o(6082),a=o(9199),s=o(4848);const i=({children:e,id:t="",maxWidth:o,isNarrow:i,className:c=""})=>{const m=o?{maxWidth:o}:void 0,l=[c,"woocommerce-payments-page"];return i&&l.push("is-narrow"),(0,n.useEffect)(()=>{const e="undefined"!=typeof wcpaySettings?wcpaySettings.fraudServices:[];(0,r.A)(e)},[]),(0,s.jsx)("div",{id:t,className:l.join(" "),style:m,children:(0,s.jsx)(a.A,{children:e})})}},2872(e,t,o){"use strict";o.d(t,{A:()=>f});var n=o(1609),r=o(6427),a=o(7723),s=o(4236),i=o(5837),c=o(8358),m=o(8846),l=o(2461),d=o(2159),u=o(9199),p=o(402),h=o(612),y=o(4848);const f=({from:e,source:t})=>{const[o,f]=(0,n.useState)(!1);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(i.A,{status:"warning",className:"sandbox-mode-notice",isDismissible:!1,children:[(0,h.g)()&&!(0,h._t)()&&(0,c.A)({mixedString:(0,a.sprintf)((0,a.__)("{{div}}{{strong}}You're using a test account.{{/strong}} To accept payments from shoppers, {{switchToLiveLink}}activate your %1$s account.{{/switchToLiveLink}}{{/div}}{{learnMoreIcon/}}","woocommerce-payments"),"WooPayments"),components:{div:(0,y.jsx)("div",{}),strong:(0,y.jsx)("strong",{}),learnMoreIcon:(0,y.jsx)(d.C,{buttonIcon:(0,y.jsx)(s.A,{}),buttonLabel:(0,a.__)("Learn more about test accounts","woocommerce-payments"),maxWidth:"250px",content:(0,y.jsx)(y.Fragment,{children:(0,c.A)({mixedString:(0,a.sprintf)((0,a.__)("A test account gives you access to all %1$s features while checkout transactions are simulated. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),"WooPayments"),components:{learnMoreLink:(0,y.jsx)(m.Link,{href:"https://woocommerce.com/document/woopayments/testing-and-troubleshooting/test-accounts/",target:"_blank",rel:"noreferrer",type:"external",onClick:()=>(0,l.yM)("wcpay_overview_sandbox_mode_learn_more_clicked",{account_type:"test",is_dev_mode:!1})})}})})}),switchToLiveLink:(0,y.jsx)(r.Button,{variant:"link",onClick:()=>{(0,l.yM)("wcpay_setup_live_payments_modal_open",{from:e,source:t}),f(!0)},__next40pxDefaultSize:!0})}}),(0,h.g)()&&(0,h._t)()&&(0,c.A)({mixedString:(0,a.sprintf)((0,a.__)("{{div}}{{strong}}You're using a test account.{{/strong}} ⚠️ Development mode is enabled for the store! There can be no live onboarding process while using development, testing, or staging WordPress environments!{{/div}}{{learnMoreIcon/}}","woocommerce-payments"),"WooPayments"),components:{div:(0,y.jsx)("div",{}),strong:(0,y.jsx)("strong",{}),learnMoreIcon:(0,y.jsx)(d.C,{buttonIcon:(0,y.jsx)(s.A,{}),buttonLabel:(0,a.__)("Learn more about development mode","woocommerce-payments"),maxWidth:"250px",content:(0,y.jsx)(y.Fragment,{children:(0,c.A)({mixedString:(0,a.sprintf)((0,a.__)("To begin accepting real payments, please go to the live store or change your {{wpEnvLink}}WordPress environment{{/wpEnvLink}} to a production one. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),"WooPayments"),components:{wpEnvLink:(0,y.jsx)(m.Link,{type:"external",target:"_blank",rel:"noreferrer",href:"https://make.wordpress.org/core/2020/08/27/wordpress-environment-types/"}),learnMoreLink:(0,y.jsx)(m.Link,{href:"https://woocommerce.com/document/woopayments/testing-and-troubleshooting/test-accounts/#developer-notes",target:"_blank",rel:"noreferrer",type:"external",onClick:()=>(0,l.yM)("wcpay_overview_sandbox_mode_learn_more_clicked",{account_type:"test",is_dev_mode:!0})})}})})})}}),(0,h.pA)()&&!(0,h._t)()&&(0,c.A)({mixedString:(0,a.sprintf)((0,a.__)("{{div}}{{strong}}You're using a sandbox test account.{{/strong}} To accept real payments from shoppers, you will need to first {{resetAccountLink}}reset your account{{/resetAccountLink}} and, then, provide additional details about your business.{{/div}}{{learnMoreIcon/}}","woocommerce-payments"),"WooPayments"),components:{div:(0,y.jsx)("div",{}),strong:(0,y.jsx)("strong",{}),resetAccountLink:(0,y.jsx)(m.Link,{href:"https://woocommerce.com/document/woopayments/startup-guide/#resetting",target:"_blank",rel:"noreferrer",type:"external"}),learnMoreIcon:(0,y.jsx)(d.C,{buttonIcon:(0,y.jsx)(s.A,{}),buttonLabel:(0,a.__)("Learn more about sandbox accounts","woocommerce-payments"),maxWidth:"250px",content:(0,y.jsx)(y.Fragment,{children:(0,c.A)({mixedString:(0,a.sprintf)((0,a.__)("A sandbox account gives you access to all %1$s features while checkout transactions are simulated. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),"WooPayments"),components:{learnMoreLink:(0,y.jsx)(m.Link,{href:"https://woocommerce.com/document/woopayments/startup-guide/#sign-up-process",target:"_blank",rel:"noreferrer",type:"external",onClick:()=>(0,l.yM)("wcpay_overview_sandbox_mode_learn_more_clicked",{account_type:"sandbox",is_dev_mode:!1})})}})})})}}),(0,h.pA)()&&(0,h._t)()&&(0,c.A)({mixedString:(0,a.sprintf)((0,a.__)("{{div}}{{strong}}You are using a sandbox test account.{{/strong}} ⚠️ Development mode is enabled for the store! There can be no live onboarding process while using development, testing, or staging WordPress environments!{{/div}}{{learnMoreIcon/}}","woocommerce-payments"),"WooPayments"),components:{div:(0,y.jsx)("div",{}),strong:(0,y.jsx)("strong",{}),learnMoreIcon:(0,y.jsx)(d.C,{buttonIcon:(0,y.jsx)(s.A,{}),buttonLabel:(0,a.__)("Learn more about development mode","woocommerce-payments"),maxWidth:"250px",content:(0,y.jsx)(y.Fragment,{children:(0,c.A)({mixedString:(0,a.sprintf)((0,a.__)("To begin accepting real payments, please go to the live store or change your {{wpEnvLink}}WordPress environment{{/wpEnvLink}} to a production one. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),"WooPayments"),components:{wpEnvLink:(0,y.jsx)(m.Link,{type:"external",target:"_blank",rel:"noreferrer",href:"https://make.wordpress.org/core/2020/08/27/wordpress-environment-types/"}),learnMoreLink:(0,y.jsx)(m.Link,{href:"https://woocommerce.com/document/woopayments/testing-and-troubleshooting/test-accounts/#developer-notes",target:"_blank",rel:"noreferrer",type:"external",onClick:()=>(0,l.yM)("wcpay_overview_sandbox_mode_learn_more_clicked",{account_type:"sandbox",is_dev_mode:!0})})}})})})}})]}),o&&(0,y.jsx)(u.A,{children:(0,y.jsx)(p.A,{from:e,source:t,onClose:()=>f(!1)})})]})}},402(e,t,o){"use strict";o.d(t,{A:()=>p});var n=o(1609),r=o(7723),a=o(612),s=o(6427),i=o(7677),c=o(4079),m=o(8307),l=o(4858),d=o(2461),u=o(4848);const p=({from:e,source:t,onClose:o})=>{const[p,h]=(0,n.useState)(!1);return(0,u.jsxs)(s.Modal,{title:(0,r.__)("Activate payments on your store","woocommerce-payments"),className:"wcpay-setup-real-payments-modal",isDismissible:!0,onRequestClose:()=>{h(!1),(0,d.yM)("wcpay_setup_live_payments_modal_exit",{from:e,source:t}),o()},children:[(0,u.jsxs)("div",{className:"wcpay-setup-real-payments-modal__content",children:[(0,u.jsx)("div",{className:"wcpay-setup-real-payments-modal__content__item",children:(0,u.jsx)("p",{children:(0,r.__)("Before continuing, please make sure that you're aware of the following:","woocommerce-payments")})}),(0,u.jsxs)("div",{className:"wcpay-setup-real-payments-modal__content__item-flex",children:[(0,u.jsx)("div",{children:(0,u.jsx)(i.A,{icon:m.A})}),(0,u.jsx)("p",{className:"wcpay-setup-real-payments-modal__content__item-flex__description",children:(0,r.__)("Your test account will be deactivated, but your transactions can be found in your order history.","woocommerce-payments")})]}),(0,u.jsxs)("div",{className:"wcpay-setup-real-payments-modal__content__item-flex",children:[(0,u.jsx)("div",{children:(0,u.jsx)(i.A,{icon:l.A})}),(0,u.jsx)("p",{className:"wcpay-setup-real-payments-modal__content__item-flex__description",children:(0,r.sprintf)((0,r.__)("To use %s, you will need to verify your business details.","woocommerce-payments"),"WooPayments")})]}),(0,u.jsxs)("div",{className:"wcpay-setup-real-payments-modal__content__item-flex",children:[(0,u.jsx)("div",{children:(0,u.jsx)(i.A,{icon:c.A})}),(0,u.jsx)("p",{className:"wcpay-setup-real-payments-modal__content__item-flex__description",children:(0,r.__)("In order to receive payouts, you will need to provide your bank details.","woocommerce-payments")})]})]}),(0,u.jsx)("div",{className:"wcpay-setup-real-payments-modal__footer",children:(0,u.jsx)(s.Button,{variant:"primary",isBusy:p,disabled:p,onClick:()=>{h(!0),(0,d.yM)("wcpay_onboarding_flow_setup_live_payments",{from:e,source:t}),window.location.href=(0,a.hT)({page:"wc-settings",tab:"checkout",path:"/woopayments/onboarding",source:t,from:"wcpay-setup-live-payments"})},__next40pxDefaultSize:!0,children:(0,r.__)("Activate payments","woocommerce-payments")})})]})}},2159(e,t,o){"use strict";o.d(t,{C:()=>l,s:()=>m});var n=o(1609),r=o(4164),a=o(8468),s=o(6427),i=o(6394),c=o(4848);const m=({isVisible:e,onHide:t=a.noop,children:o,buttonIcon:r,buttonLabel:m,buttonSize:l=16,...d})=>{const[u,p]=(0,n.useState)(!1),[h,y]=(0,n.useState)(!1),f=()=>{p(!0)},_=()=>{p(!1),t()};return(0,c.jsx)("button",{className:"wcpay-tooltip__content-wrapper",onMouseEnter:f,onMouseLeave:_,onFocus:f,onBlur:_,onClick:()=>{y(e=>!e),h&&t()},type:"button",children:(0,c.jsx)(i.A,{...d,onHide:()=>{p(!1),y(!1),t()},isVisible:e||u||h,children:r?(0,c.jsx)(s.Icon,{icon:r,size:l,"aria-label":m}):o})})},l=({isVisible:e,onHide:t=a.noop,buttonIcon:o,buttonLabel:m,buttonSize:l=16,children:d,className:u,maxWidth:p,...h})=>{const[y,f]=(0,n.useState)(!1),_=(0,n.useRef)(null);return(0,c.jsx)("button",{className:"wcpay-tooltip__content-wrapper wcpay-tooltip--click__content-wrapper",onClick:()=>{f(e=>!e),y&&t()},type:"button",ref:_,children:(0,c.jsx)(i.A,{...h,parentElement:_.current||void 0,onHide:()=>{f(!1),t()},maxWidth:p,isVisible:e||y,className:(0,r.A)("wcpay-tooltip--click__tooltip",u),children:o?(0,c.jsx)("div",{tabIndex:0,role:"button","aria-label":m,children:(0,c.jsx)(s.Icon,{icon:o,size:l})}):d})})}},6394(e,t,o){"use strict";o.d(t,{A:()=>d});var n=o(1609),r=o(5795),a=o(4164),s=o(8468),i=o(4848);const c=document.getElementById("wpbody-content")||document.body,m=(e,t)=>!(!t||t!==e.target&&!(e.target instanceof Node&&t.contains(e.target))),l=(0,n.memo)(({children:e,parentElement:t})=>{const o=(0,n.useRef)(null);return o.current||(o.current=document.createElement("div"),t.appendChild(o.current)),(0,n.useEffect)(()=>()=>{o.current&&(t.removeChild(o.current),o.current=null)},[t]),(0,r.createPortal)(e,o.current)}),d=({className:e,children:t,content:o,parentElement:r=c,hideDelayMs:d=600,isVisible:u,onHide:p,maxWidth:h="250px"})=>{const y=(0,n.useRef)(null),f=(0,n.useRef)(null),_=((e,{hideDelayMs:t=600,triggerRef:o,tooltipRef:r,parentElement:a,onHide:i=s.noop})=>{const[c,l]=(0,n.useState)(e),d=(0,n.useRef)(!1),u=(0,n.useRef)(i);return(0,n.useEffect)(()=>{u.current=i},[i]),(0,n.useEffect)(()=>{let o=null;if(d.current){if(e)return a.dispatchEvent(new Event("wcpay-tooltip-open")),void l(!0);if(c)return o=setTimeout(()=>{l(!1),u.current()},t),()=>{o&&clearTimeout(o)}}else d.current=!0},[l,t,e,c,a]),(0,n.useEffect)(()=>{if(!c)return;const e=()=>{l(!1),u.current()},t=e=>{m(e,o.current?.firstChild)||m(e,r.current)||(l(!1),u.current())};return document.addEventListener("click",t),a.addEventListener("wcpay-tooltip-open",e),()=>{document.removeEventListener("click",t),a.removeEventListener("wcpay-tooltip-open",e)}},[e,c,o,r,a]),c})(!!u,{hideDelayMs:d,triggerRef:y,tooltipRef:f,parentElement:r,onHide:p});return(0,n.useEffect)(()=>{const e=()=>{if(!_)return;const e=f.current,t=y.current?.firstChild;if(!e||!t)return;if(!(t instanceof HTMLElement))return;e.style.maxWidth=h;const o=window.innerWidth-16;e.offsetWidth>o&&(e.style.maxWidth=`${o}px`);const n=t.getBoundingClientRect(),r=e.getBoundingClientRect().height;e.style.top=n.top-r-8+"px";const a=t.offsetWidth/2+n.left,s=e.offsetWidth,i=window.innerWidth-s-8,c=Math.max(8,Math.min(a-s/2,i));e.style.left=`${c}px`,e.style.visibility="visible",e.style.opacity="1"};e();const t=(0,s.debounce)(e,150);return window.addEventListener("resize",t),document.addEventListener("scroll",t),()=>{window.removeEventListener("resize",t),document.removeEventListener("scroll",t)}},[_,h]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"wcpay-tooltip__content-wrapper",ref:y,children:t}),_&&(0,i.jsx)(l,{parentElement:r,children:(0,i.jsx)("div",{ref:f,className:(0,a.A)("wcpay-tooltip__tooltip-wrapper",{"is-hiding":!u}),role:"tooltip",children:(0,i.jsx)("div",{className:(0,a.A)("wcpay-tooltip__tooltip",e),children:o})})})]})}},6820(e,t,o){"use strict";o.d(t,{A:()=>n});const n=(0,o(1609).createContext)({isActive:!1,setActive:()=>null,isCompleted:!1,setCompleted:()=>null,taskId:""})},3138(e,t,o){"use strict";o.d(t,{C:()=>n});const n="/wc/v3/payments"},776(e,t,o){"use strict";o.d(t,{Qc:()=>d,ac:()=>i,uW:()=>c});var n=o(7723),r=o(7074),a=o(5362);const s=Object.entries(a.j).map(([e,t])=>({label:t,value:e})).filter(function(e){return null!=e}),i=["needs_response","warning_needs_response"],c=[{label:(0,n.__)("Dispute currency","woocommerce-payments"),param:"store_currency_is",staticParams:["paged","per_page","orderby","order","search","filter","status_is","status_is","date_before","date_after","date_between"],showFilters:()=>!1,filters:[{label:(0,n.__)("All currencies","woocommerce-payments"),value:"---"}],defaultValue:"---"},{label:(0,n.__)("Show","woocommerce-payments"),param:"filter",staticParams:["paged","per_page","orderby","order","search","store_currency_is"],showFilters:()=>!0,filters:[{label:(0,n.__)("Needs response","woocommerce-payments"),value:"awaiting_response"},{label:(0,n.__)("All disputes","woocommerce-payments"),value:"all"},{label:(0,n.__)("Advanced filters","woocommerce-payments"),value:"advanced"}]}],m=(0,r.P)("wcVersion"),l=parseFloat(m),d={title:l<7.8?(0,n.__)("Disputes match {{select /}} filters","woocommerce-payments"):(0,n.__)("Disputes match <select /> filters","woocommerce-payments"),filters:{date:{labels:{add:(0,n.__)("Disputed on date","woocommerce-payments"),remove:(0,n.__)("Remove dispute date filter","woocommerce-payments"),rule:(0,n.__)("Select a dispute date filter match","woocommerce-payments"),title:l<7.8?(0,n.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,n.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),filter:(0,n.__)("Select a dispute date","woocommerce-payments")},rules:[{value:"before",label:(0,n.__)("Before","woocommerce-payments")},{value:"after",label:(0,n.__)("After","woocommerce-payments")},{value:"between",label:(0,n.__)("Between","woocommerce-payments")}],input:{component:"Date"}},status:{labels:{add:(0,n.__)("Status","woocommerce-payments"),remove:(0,n.__)("Remove dispute status filter","woocommerce-payments"),rule:(0,n.__)("Select a dispute status filter match","woocommerce-payments"),title:l<7.8?(0,n.__)("{{title}}Status{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,n.__)("<title>Status</title> <rule /> <filter />","woocommerce-payments"),filter:(0,n.__)("Select a dispute status","woocommerce-payments")},rules:[{value:"is",label:(0,n._x)("Is","dispute status","woocommerce-payments")},{value:"is_not",label:(0,n._x)("Is not","dispute status","woocommerce-payments")}],input:{component:"SelectControl",options:s}}}}},5362(e,t,o){"use strict";o.d(t,{O:()=>r,j:()=>a});var n=o(7723);const r={bank_cannot_process:{display:(0,n.__)("Bank cannot process","woocommerce-payments")},check_returned:{display:(0,n.__)("Check returned","woocommerce-payments")},credit_not_processed:{display:(0,n.__)("Credit not processed","woocommerce-payments"),overview:[(0,n.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,n.__)("If your customer was not refunded appropriately, you will need to accept the dispute, or resolve the issue with your customer. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,n.__)("The customer claims that the purchased product was returned or the transaction was otherwise canceled, but you have not yet provided a refund or credit.","woocommerce-payments")],required:[(0,n.__)("Demonstrate that you have refunded your customer through other means or that your customer is not entitled to a refund. You cannot issue a refund while a payment is being disputed. If you believe that your customer was entitled a refund that you did not provide, you can accept the dispute.","woocommerce-payments")],respond:[(0,n.__)("You should first get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,n.__)("If the cardholder agrees to withdraw the dispute, you should still submit evidence for the dispute using the forms on the next screen. In addition to the following evidence, your submission should include correspondence with the cardholder saying they would withdraw the dispute and a written statement from their card issuer confirming that the dispute has been withdrawn.","woocommerce-payments")],claim:(0,n.__)("The cardholder claims a credit was not processed.","woocommerce-payments")},customer_initiated:{display:(0,n.__)("Customer initiated","woocommerce-payments")},debit_not_authorized:{display:(0,n.__)("Debit not authorized","woocommerce-payments")},duplicate:{display:(0,n.__)("Duplicate","woocommerce-payments"),overview:[(0,n.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,n.__)("If there were duplicate payments, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,n.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments")],required:[(0,n.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments")],respond:[(0,n.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),(0,n.__)("If they were not, collect any and all information documenting that each payment was made separately, such as copies of receipts. If the receipts don’t include the items purchased, be sure to include an itemized list. Each receipt should clearly indicate that the payments are for separate purchases of items or services. If you’ve been able to get in touch with the customer you should be sure to address any concerns they had in your evidence.","woocommerce-payments"),(0,n.__)("If there have been two or more separate payments, you should get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,n.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments")],claim:(0,n.__)("The cardholder claims this is a duplicate transaction.","woocommerce-payments")},fraudulent:{display:(0,n.__)("Transaction unauthorized","woocommerce-payments"),overview:[(0,n.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,n.__)("If you believe the payment was actually made using a stolen credit card, you will need to accept the dispute. The credit card networks place liability for accepting unauthorized transactions with you, the business.","woocommerce-payments")],summary:[(0,n.__)("This is the most common reason for a dispute, and happens when a cardholder claims that they didn’t authorize the payment. This can happen if the card was lost or stolen and used to make an unauthorized transaction. It can also happen if the cardholder doesn’t recognize the payment as it appears on the billing statement from their card issuer.","woocommerce-payments")],required:[(0,n.__)("Provide adequate payment and order details so that a legitimate customer recognizes it, or proves to the card issuer that their cardholder authorized the transaction.","woocommerce-payments")],respond:[(0,n.__)("Try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction.","woocommerce-payments"),(0,n.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,n.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments")],claim:(0,n.__)("The cardholder claims this is an unauthorized transaction.","woocommerce-payments")},general:{display:(0,n.__)("General","woocommerce-payments"),overview:[(0,n.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments")],summary:[(0,n.__)("This is an uncategorized dispute, so you should contact the customer for additional details to find out why the payment was disputed.","woocommerce-payments")]},incorrect_account_details:{display:(0,n.__)("Incorrect account details","woocommerce-payments")},insufficient_funds:{display:(0,n.__)("Insufficient funds","woocommerce-payments")},product_not_received:{display:(0,n.__)("Product not received","woocommerce-payments"),overview:[(0,n.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,n.__)("If you can not prove the customer received their product or service, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,n.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments")],required:[(0,n.__)("Prove that the customer received a physical product or offline service, or made use of a digital product or online service. This must have occurred prior to the date the dispute was initiated.","woocommerce-payments")],respond:[(0,n.__)("First, get in touch with your customer. Understanding why they filed the dispute will be important for helping make sure your customer gets the product and will give you critical information to prevent this from happening to others.","woocommerce-payments"),(0,n.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments")],claim:(0,n.__)("The cardholder claims they did not receive the product.","woocommerce-payments")},product_unacceptable:{display:(0,n.__)("Product unacceptable","woocommerce-payments"),overview:[(0,n.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,n.__)("If you can not prove the customer received their product or service as described, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,n.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments")],required:[(0,n.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments")],respond:[(0,n.__)("If the product or service is as described, provide specific information (invoice, contract, etc.) to refute the cardholder’s claims. Quality disputes are where the customer does not agree with the condition of merchandise or service received (e.g., a car repair situation or quality of a hotel room). There may be instances where you will need to obtain a neutral third-party opinion to help corroborate your claim against the cardholder. Provide as much specific information and documentation as possible to refute the cardholder’s claims. It is recommended that you address each point that the cardholder has made.","woocommerce-payments"),(0,n.__)("If the customer has not yet returned the product or canceled the service, provide specific information to that effect. You should double-check your incoming shipping records to verify that you have not received a return before you respond. If you have processed a credit or reversal for this transaction, provide evidence of this which includes the amount and date processed.","woocommerce-payments"),(0,n.__)("For products that have been repaired or replaced, provide evidence that the cardholder agreed to a repair or replacement, it has been received by the customer, and the repair or replacement has not since been disputed.","woocommerce-payments"),(0,n.__)("If your customer made no attempt to return the product or cancel the service, or if you provided a replacement product or service, make sure to note that as well.","woocommerce-payments"),(0,n.__)("If the customer withdraws their dispute you should still submit evidence using the forms on the next screen. Be sure to provide a letter or email from the cardholder stating that they are no longer in dispute.","woocommerce-payments")],claim:(0,n.__)("The cardholder claims the product was unacceptable.","woocommerce-payments")},subscription_canceled:{display:(0,n.__)("Subscription canceled","woocommerce-payments"),overview:[(0,n.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,n.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancellation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,n.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments")],required:[(0,n.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments")],respond:[(0,n.__)("First, get in touch with your customer. If you understand what they believe happened, there is a chance for you to explain the misunderstanding or to make it right. ","woocommerce-payments"),(0,n.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,n.__)("Otherwise, use the forms on the next screen to submit evidence that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments")],claim:(0,n.__)("The cardholder claims a subscription was canceled.","woocommerce-payments")},unrecognized:{display:(0,n.__)("Unrecognized","woocommerce-payments"),overview:[(0,n.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,n.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancellation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,n.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments")],required:[(0,n.__)("Get your customer to withdraw the dispute by helping them identify the payment. Otherwise, challenge the dispute with appropriate evidence that proves the purchase was legitimate. ","woocommerce-payments")],respond:[(0,n.__)("First, try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction. Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,n.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments")]},noncompliant:{display:(0,n.__)("Non-compliant","woocommerce-payments"),claim:(0,n.__)("Your customer’s bank claims this payment violates Visa’s rules.","woocommerce-payments"),summary:[(0,n.__)("This transaction is being reviewed under Visa’s network compliance rules.","woocommerce-payments")]}},a={warning_needs_response:(0,n.__)("Inquiry: Response needed","woocommerce-payments"),warning_under_review:(0,n.__)("Inquiry: Under review","woocommerce-payments"),warning_closed:(0,n.__)("Inquiry: Closed","woocommerce-payments"),needs_response:(0,n.__)("Response needed","woocommerce-payments"),under_review:(0,n.__)("Under review","woocommerce-payments"),charge_refunded:(0,n.__)("Charge refunded","woocommerce-payments"),won:(0,n.__)("Won","woocommerce-payments"),lost:(0,n.__)("Lost","woocommerce-payments")}},9513(e,t,o){"use strict";o.d(t,{HB:()=>u,Y6:()=>i,eA:()=>c,lO:()=>d,ng:()=>l,se:()=>m});var n=o(6154),r=o.n(n),a=o(776),s=o(4937);const i=({dueBy:e,days:t})=>{if(!e)return!1;const o="number"==typeof e?r().unix(e):r().utc(e,!0);if(!o.isValid())return!1;const n=r()().utc(),a=o.diff(n,"days",!0)<=t,s=n.isAfter(o);return a&&!s},c=e=>a.ac.includes(e),m=e=>e.startsWith("warning"),l=e=>m(e)||"won"===e,d=e=>!!e&&("noncompliant"===e.reason||(e.enhanced_eligibility_types||[]).includes("visa_compliance")),u=(e,t)=>{if(void 0!==e.effective_fee){if(null===e.effective_fee)return;return t?(0,s.$9)(e.effective_fee.amount,e.effective_fee.currency):(0,s.vv)(e.effective_fee.amount,e.effective_fee.currency)}const o=(e=>{const t=e.balance_transactions.find(e=>"dispute"===e.reporting_category);if(!e.balance_transactions.find(e=>"dispute_reversal"===e.reporting_category))return t})(e);if(o)return t?(0,s.$9)(o.fee,o.currency):(0,s.vv)(o.fee,o.currency)}},6082(e,t,o){"use strict";o.d(t,{A:()=>s});var n=o(3938),r=o(1053);const a={sift:n.A,stripe:r.A},s=e=>{for(const t in e){const o=a[t];o&&e[t]&&o(e[t])}};(Object.getOwnPropertyDescriptor(s,"name")||{}).writable||Object.defineProperty(s,"name",{value:"default",configurable:!0})},3938(e,t,o){"use strict";o.d(t,{A:()=>r});const n="https://cdn.sift.com/s.js",r=({beacon_key:e,session_id:t,user_id:o})=>{const r=window._sift=window._sift||[];if(r.push(["_setAccount",e]),r.push(["_setUserId",o]),r.push(["_setSessionId",t]),r.push(["_trackPageview"]),!document.querySelector(`[src="${n}"]`)){const e=document.createElement("script");e.src=n,e.async=!0,document.body.appendChild(e)}};(Object.getOwnPropertyDescriptor(r,"name")||{}).writable||Object.defineProperty(r,"name",{value:"default",configurable:!0})},1053(e,t,o){"use strict";o.d(t,{A:()=>r});const n="https://js.stripe.com/v3",r=()=>{if(!document.querySelector(`[src^="${n}"]`)){const e=document.createElement("script");e.src=n,e.async=!0,document.body.appendChild(e)}};(Object.getOwnPropertyDescriptor(r,"name")||{}).writable||Object.defineProperty(r,"name",{value:"default",configurable:!0})},3448(e,t,o){"use strict";o.d(t,{A:()=>m});var n=o(1609),r=o(6427),a=o(7723),s=o(612);const i={title:(0,s.wx)()?(0,a.__)("Reset your test account","woocommerce-payments"):(0,a.__)("Reset account","woocommerce-payments"),description:(0,s.wx)()?(0,a.sprintf)((0,a.__)("When you reset your test account, all payment data — including your %1$s account details, test transactions, and payouts history — will be lost. Your order history will remain. This action cannot be undone, but you can create a new test account at any time.","woocommerce-payments"),"WooPayments"):(0,a.sprintf)((0,a.__)("When you reset your account, all payment data — including your %1$s account details, test transactions, and payouts history — will be lost. Your order history will remain. This action cannot be undone, but you can create a new test account at any time.","woocommerce-payments"),"WooPayments"),beforeContinue:(0,a.__)("Before you continue","woocommerce-payments"),step1:(0,a.sprintf)((0,a.__)("Your %s account will be reset, and all data will be lost.","woocommerce-payments"),"WooPayments"),step2:(0,a.__)("You will have to re-confirm your business and banking details.","woocommerce-payments"),step3:(0,a.__)("Once confirmed, this cannot be undone.","woocommerce-payments"),confirmation:(0,a.__)("Are you sure you want to continue?","woocommerce-payments"),cancel:(0,a.__)("Cancel","woocommerce-payments"),reset:(0,a.__)("Yes, reset account","woocommerce-payments")};var c=o(4848);const m=e=>{const{isVisible:t,onDismiss:o,onSubmit:a}=e,[m,l]=(0,n.useState)(!1);return t?(0,c.jsxs)(r.Modal,{title:i.title,className:"wcpay-reset-account-modal",onRequestClose:()=>{l(!1),o()},children:[(0,c.jsx)("p",{className:"wcpay-reset-account-modal__headline",children:i.description}),(0,c.jsxs)("div",{className:"wcpay-reset-account-modal__content",children:[!(0,s.wx)()&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("b",{children:i.beforeContinue}),(0,c.jsxs)("ol",{children:[(0,c.jsx)("li",{children:i.step1}),(0,c.jsx)("li",{children:i.step2}),(0,c.jsx)("li",{children:i.step3})]}),(0,c.jsx)(r.CardDivider,{})]}),(0,c.jsx)("b",{children:i.confirmation})]}),(0,c.jsxs)("div",{className:"wcpay-reset-account-modal__footer",children:[(0,c.jsx)(r.Button,{variant:"tertiary",onClick:()=>{l(!1),o()},__next40pxDefaultSize:!0,children:i.cancel}),(0,c.jsx)(r.Button,{variant:"primary",isDestructive:!0,isBusy:m,disabled:m,onClick:()=>{l(!0),a()},__next40pxDefaultSize:!0,children:i.reset})]})]}):null}},1686(e,t,o){"use strict";o.d(t,{x:()=>T,M:()=>N});var n=o(7723),r=o(6087),a=o(1609),s=o(4848);const i={errors:{invalid_address_city_state_postal_code:(0,n.__)("The combination of the city, state, and postal code in the provided address could not be validated.","woocommerce-payments"),invalid_street_address:(0,n.__)("The street name and/or number for the provided address could not be validated.","woocommerce-payments"),invalid_tos_acceptance:(0,r.createInterpolateElement)((0,n.__)("The existing terms of service signature has been invalidated because the account’s tax ID has changed. The account needs to accept the terms of service again. For more information, see <a>this documentation</a>.","woocommerce-payments"),{a:(0,s.jsx)("a",{href:"https://stripe.com/docs/connect/update-verified-information",target:"_blank",rel:"noopener noreferrer"})}),invalid_representative_country:(0,n.__)("The representative must have an address in the same country as the company.","woocommerce-payments"),verification_document_address_mismatch:(0,n.__)("The address on the document did not match the address on the account. Upload a document with a matching address or update the address on the account.","woocommerce-payments"),verification_document_address_missing:(0,n.__)("The company address was missing on the document. Upload a document that includes the address.","woocommerce-payments"),verification_document_corrupt:(0,n.__)("The uploaded file for the document was invalid or corrupt. Upload a new file of the document.","woocommerce-payments"),verification_document_country_not_supported:(0,n.__)("The provided document was from an unsupported country.","woocommerce-payments"),verification_document_dob_mismatch:(0,n.__)("The date of birth (DOB) on the document did not match the DOB on the account. Upload a document with a matching DOB or update the DOB on the account.","woocommerce-payments"),verification_document_duplicate_type:(0,n.__)("The same type of document was used twice. Two unique types of documents are required for verification. Upload two different documents.","woocommerce-payments"),verification_document_expired:(0,n.__)("The document could not be used for verification because it has expired. If it’s an identity document, its expiration date must be after the date the document was submitted. If it’s an address document, the issue date must be within the last six months.","woocommerce-payments"),verification_document_failed_copy:(0,n.__)("The document could not be verified because it was detected as a copy (e.g., photo or scan). Upload the original document.","woocommerce-payments"),verification_document_failed_greyscale:(0,n.__)("The document could not be used for verification because it was in greyscale. Upload a color copy of the document.","woocommerce-payments"),verification_document_failed_other:(0,r.createInterpolateElement)((0,n.__)("The document could not be verified for an unknown reason. Ensure that the document follows the <a>guidelines for document uploads</a>","woocommerce-payments"),{a:(0,s.jsx)("a",{href:"https://stripe.com/docs/connect/identity-verification-api#acceptable-verification-documents",target:"_blank",rel:"noopener noreferrer"})}),verification_document_failed_test_mode:(0,r.createInterpolateElement)((0,n.__)("A test data helper was supplied to simulate verification failure. Refer to the documentation for <a>test file tokens</a>.","woocommerce-payments"),{a:(0,s.jsx)("a",{href:"https://stripe.com/docs/connect/testing#test-file-tokens",target:"_blank",rel:"noopener noreferrer"})}),verification_document_fraudulent:(0,n.__)("The document was identified as altered or falsified.","woocommerce-payments"),verification_document_id_number_mismatch:(0,n.__)("The company ID number on the account could not be verified. Correct any errors in the ID number field or upload a document that includes the ID number.","woocommerce-payments"),verification_document_id_number_missing:(0,n.__)("The company ID number was missing on the document. Upload a document that includes the ID number.","woocommerce-payments"),verification_document_incomplete:(0,n.__)("The document was cropped or missing important information. Upload a complete scan of the document.","woocommerce-payments"),verification_document_invalid:(0,r.createInterpolateElement)((0,n.__)("The uploaded file was not one of the valid document types. Ensure that the document follows the <a>guidelines for document uploads</a>.","woocommerce-payments"),{a:(0,s.jsx)("a",{href:"https://stripe.com/docs/connect/identity-verification-api#acceptable-verification-documents",target:"_blank",rel:"noopener noreferrer"})}),verification_document_issue_or_expiry_date_missing:(0,n.__)("The issue or expiry date is missing on the document. Upload a document that includes the issue and expiry dates.","woocommerce-payments"),verification_document_manipulated:(0,n.__)("The document was identified as altered or falsified.","woocommerce-payments"),verification_document_missing_back:(0,n.__)("The uploaded file was missing the back of the document. Upload a complete scan of the document.","woocommerce-payments"),verification_document_missing_front:(0,n.__)("The uploaded file was missing the front of the document. Upload a complete scan of the document.","woocommerce-payments"),verification_document_name_mismatch:(0,n.__)("The name on the document did not match the name on the account. Upload a document with a matching name or update the name on the account.","woocommerce-payments"),verification_document_name_missing:(0,n.__)("The company name was missing on the document. Upload a document that includes the company name.","woocommerce-payments"),verification_document_nationality_mismatch:(0,n.__)("The nationality on the document did not match the person’s stated nationality. Update the person’s stated nationality, or upload a document that matches it.","woocommerce-payments"),verification_document_not_readable:(0,r.createInterpolateElement)((0,n.__)("The document could not be read. Ensure that the document follows the <a>guidelines for document uploads</a>.","woocommerce-payments"),{a:(0,s.jsx)("a",{href:"https://stripe.com/docs/connect/identity-verification-api#acceptable-verification-documents",target:"_blank",rel:"noopener noreferrer"})}),verification_document_not_signed:(0,n.__)("A valid signature is missing on the document. Upload a document that includes a valid signature.","woocommerce-payments"),verification_document_not_uploaded:(0,n.__)("No document was uploaded. Upload the document again.","woocommerce-payments"),verification_document_photo_mismatch:(0,n.__)("The document was identified as altered or falsified.","woocommerce-payments"),verification_document_too_large:(0,n.__)("The uploaded file exceeded the 10 MB size limit. Resize the document and upload the new file.","woocommerce-payments"),verification_document_type_not_supported:(0,r.createInterpolateElement)((0,n.__)("The provided document type was not accepted. Ensure that the document follows the <a>guidelines for document uploads</a>.","woocommerce-payments"),{a:(0,s.jsx)("a",{href:"https://stripe.com/docs/connect/identity-verification-api#acceptable-verification-documents",target:"_blank",rel:"noopener noreferrer"})}),verification_failed_address_match:(0,n.__)("The address on the account could not be verified. Correct any errors in the address field or upload a document that includes the address.","woocommerce-payments"),verification_failed_business_iec_number:(0,n.__)("The Importer Exporter Code (IEC) number could not be verified. Correct any errors in the company’s IEC number field. (India only)","woocommerce-payments"),verification_failed_document_match:(0,n.__)("The document could not be verified. Upload a document that includes the company name, ID number, and address fields.","woocommerce-payments"),verification_failed_id_number_match:(0,n.__)("The company ID number on the account could not be verified. Correct any errors in the ID number field or upload a document that includes the ID number.","woocommerce-payments"),verification_failed_keyed_identity:(0,n.__)("The person’s keyed-in identity information could not be verified. Correct any errors or upload a document that matches the identity fields (e.g., name and date of birth) entered.","woocommerce-payments"),verification_failed_keyed_match:(0,n.__)("The keyed-in information on the account could not be verified. Correct any errors in the company name, ID number, or address fields. You can also upload a document that includes those fields.","woocommerce-payments"),verification_failed_name_match:(0,n.__)("The company name on the account could not be verified. Correct any errors in the company name field or upload a document that includes the company name.","woocommerce-payments"),verification_failed_residential_address:(0,n.__)("We could not verify that the person resides at the provided address. The address must be a valid physical address where the individual resides and cannot be a P.O. Box.","woocommerce-payments"),verification_failed_tax_id_match:(0,n.__)("The tax ID on the account cannot be verified by the IRS. Either correct any possible errors in the company name or tax ID, or upload a document that contains those fields.","woocommerce-payments"),verification_failed_tax_id_not_issued:(0,r.createInterpolateElement)((0,n.__)("The tax ID on the account was not recognized by the IRS. Refer to the support article for <a>newly-issued tax ID numbers</a>.","woocommerce-payments"),{a:(0,s.jsx)("a",{href:"https://support.stripe.com/questions/newly-issued-us-tax-id-number-tin-not-verifying",target:"_blank",rel:"noopener noreferrer"})}),verification_failed_other:(0,n.__)("Verification failed for an unknown reason. Correct any errors and resubmit the required fields.","woocommerce-payments"),verification_missing_owners:(0,n.__)("We have identified owners that haven’t been added on the account. Add any missing owners to the account.","woocommerce-payments"),verification_missing_executives:(0,n.__)("We have identified executives that haven’t been added on the account. Add any missing executives to the account.","woocommerce-payments"),verification_requires_additional_memorandum_of_associations:(0,n.__)("We have identified holding companies with significant percentage ownership. Upload a Memorandum of Association for each of the holding companies.","woocommerce-payments"),invalid_dob_age_under_18:(0,n.__)("Underage. Age must be at least 18.","woocommerce-payments")},tasks:{go_live:{title:(0,n.__)("Activate payments","woocommerce-payments"),time:(0,n.__)("10 minutes","woocommerce-payments")}}};var c=o(6154),m=o.n(c),l=o(6476),d=o(4937),u=o(612),p=o(2461),h=o(9513),y=o(7564);const f=(e,t)=>e.filter(e=>(0,h.Y6)({dueBy:e.due_by,days:t})),_=e=>{const t=(e=[...e].filter(e=>""!==e.due_by).sort((e,t)=>m()(e.due_by).diff(m()(t.due_by)))).length;if(0===t)return null;const o=f(e,1).length,r=f(e,3).length,a={key:`dispute-resolution-task-${e.map(e=>e.dispute_id).join("-")}`,title:"",content:"",level:1,completed:!1,expanded:!0,expandable:!0,isDismissable:!1,showActionButton:!0,actionLabel:(0,n.__)("Respond now","woocommerce-payments"),action:()=>{(0,p.yM)("wcpay_overview_task_click",{task:"dispute-resolution-task",active_dispute_count:t});const o=(0,l.getHistory)();if(1===t){const t=e[0].charge_id;o.push((0,u.hT)({page:"wc-admin",path:"/payments/transactions/details",id:t}))}else o.push((0,u.hT)({page:"wc-admin",path:"/payments/disputes",filter:"awaiting_response"}))},onClick:()=>{},dataAttrs:{"data-urgent":!!(r>=1)}};if(1===t){const t=e[0],r=(0,d.vv)(t.amount,t.currency);return a.title=o>=1?(0,n.sprintf)((0,n.__)("Respond to a dispute for %s – Last day","woocommerce-payments"),r):(0,n.sprintf)((0,n.__)("Respond to a dispute for %s","woocommerce-payments"),r),a.content=o>=1?(0,n.sprintf)((0,n.__)("Respond today by %s","woocommerce-payments"),(0,y._)(t.due_by,{customFormat:"g:i A"})):(0,n.sprintf)((0,n.__)("By %s – %s left to respond","woocommerce-payments"),(0,y._)(t.due_by),m().utc(t.due_by).fromNow(!0)),a}const s=e.reduce((e,t)=>{const{currency:o}=t;return e.includes(o)?e:[...e,o]},[]);if(s.length>1)a.title=(0,n.sprintf)((0,n.__)("Respond to %d active disputes","woocommerce-payments"),t);else{const o=e.reduce((e,t)=>e+t.amount,0);a.title=(0,n.sprintf)((0,n.__)("Respond to %d active disputes for a total of %s","woocommerce-payments"),t,(0,d.vv)(o,s[0]))}const i=f(e,7).length;return a.content=o>=1?(0,n.sprintf)((0,n.__)("Final day to respond to %d of the disputes","woocommerce-payments"),o):(0,n.sprintf)((0,n.__)("Last week to respond to %d of the disputes","woocommerce-payments"),i),a.actionLabel=(0,n.__)("See disputes","woocommerce-payments"),a};var w=o(3832);const g=e=>{const t=()=>{(0,p.yM)("wcpay_overview_task_click",{task:"reconnect-wpcom",source:"wcpay-reconnect-wpcom-task"}),window.location.href=(0,w.addQueryArgs)(e,{from:"WCPAY_OVERVIEW",source:"wcpay-reconnect-wpcom-user-task"})};return{key:"reconnect-wpcom-user",level:1,content:"",title:(0,n.sprintf)((0,n.__)("Reconnect %s","woocommerce-payments"),"WooPayments"),additionalInfo:(0,n.sprintf)((0,n.__)("%s is missing a connected WordPress.com account. Some functionality will be limited without a connected account.","woocommerce-payments"),"WooPayments"),completed:!1,onClick:t,action:t,actionLabel:(0,n.__)("Reconnect","woocommerce-payments"),expandable:!0,expanded:!0,showActionButton:!0}};var v=o(6427);const b={button:(0,n.__)("Finish setup","woocommerce-payments"),heading:(0,n.sprintf)((0,n.__)("Update %s business details","woocommerce-payments"),"WooPayments"),restrictedDescription:(0,n.__)("Payments and payouts are disabled for this account until missing information is updated. Please update the following information in the Stripe dashboard.","woocommerce-payments"),restrictedSoonDescription:(0,n.__)("Additional information is required to verify your business. Update by %s to avoid a disruption in payouts.","woocommerce-payments"),updateBusinessDetails:(0,n.__)("Update business details","woocommerce-payments"),cancel:(0,n.__)("Cancel","woocommerce-payments")},x=({errorMessages:e,accountStatus:t,accountLink:o,currentDeadline:r})=>{const[i,c]=(0,a.useState)(!0),m=()=>{c(!1)};return(0,s.jsx)(s.Fragment,{children:i&&(0,s.jsxs)(v.Modal,{title:b.updateBusinessDetails,isDismissible:!0,className:"wcpay-update-business-details-modal",shouldCloseOnClickOutside:!1,onRequestClose:m,children:[(0,s.jsx)("div",{className:"wcpay-update-business-details-modal__wrapper",children:(0,s.jsxs)("div",{className:"wcpay-update-business-details-modal__body",children:[(0,s.jsx)("p",{children:"restricted_soon"===t&&r?(0,n.sprintf)(b.restrictedSoonDescription,(0,y.J)(r,{customFormat:"ga M j, Y"})):b.restrictedDescription}),e.map((e,t)=>(0,s.jsx)(v.Notice,{status:"warning",isDismissible:!1,children:e},t))]})}),(0,s.jsx)("hr",{}),(0,s.jsxs)("div",{className:"wcpay-update-business-details-modal__footer",children:[(0,s.jsx)(v.Button,{variant:"secondary",onClick:m,__next40pxDefaultSize:!0,children:b.cancel}),(0,s.jsx)(v.Button,{variant:"primary",onClick:()=>{(0,p.yM)("wcpay_account_details_link_clicked",{source:"wcpay-update-business-details-task"}),window.open(o,"_blank")},__next40pxDefaultSize:!0,children:b.updateBusinessDetails})]})]})})},k=(e,t,o,a,i,c)=>{const m="restricted_soon"===t,l="restricted"===t&&i,d=e.length>1,h=1===e.length,f=o?(0,w.addQueryArgs)(o,{from:"WCPAY_OVERVIEW",source:"wcpay-update-business-details-task"}):"";let _,g,v="";m&&a?(g=(0,n.sprintf)((0,n.__)("Update by %s to avoid a disruption in payouts.","woocommerce-payments"),(0,y.J)(a,{customFormat:"ga M j, Y"})),h?(_=e[0],v=(0,s.jsxs)(s.Fragment,{children:[_," ",g]})):v=g):l&&(v=h?e[0]:c?(0,n.__)("Payments and payouts are disabled for this account until missing business information is updated.","woocommerce-payments"):(0,n.__)("Payments and payouts are disabled for this account until setup is completed.","woocommerce-payments"));const b=()=>{if("complete"!==t&&"enabled"!==t)if(d)(()=>{let n=document.querySelector("#wcpay-update-business-details-container");n||(n=document.createElement("div"),n.id="wcpay-update-business-details-container",document.body.appendChild(n)),(0,r.render)((0,s.jsx)(x,{errorMessages:e,accountStatus:t,accountLink:o,currentDeadline:a},Date.now()),n)})();else{let e="wcpay-update-business-details-task";c||(e="wcpay-finish-setup-task"),(0,p.yM)("wcpay_account_details_link_clicked",{source:e}),c?window.open(f,"_blank"):window.location.href=(0,u.hT)({page:"wc-settings",tab:"checkout",path:"/woopayments/onboarding",source:"wcpay-finish-setup-task",from:"WCPAY_OVERVIEW"})}};let k;return k=d?(0,n.__)("More details","woocommerce-payments"):c?(0,n.__)("Update","woocommerce-payments"):(0,n.__)("Finish setup","woocommerce-payments"),{key:c?"update-business-details":"complete-setup",level:1,title:c?(0,n.sprintf)((0,n.__)("Update %s business details","woocommerce-payments"),"WooPayments"):(0,n.sprintf)((0,n.__)("Finish setting up %s","woocommerce-payments"),"WooPayments"),content:v,completed:"complete"===t||"enabled"===t,onClick:b,action:b,actionLabel:k,expandable:!0,expanded:!0,showActionButton:!0}};var j=o(5338),S=o(402);const A=()=>{const[e,t]=(0,a.useState)(!0);return e?(0,s.jsx)(S.A,{from:"WCPAY_GO_LIVE_TASK",source:"wcpay-go-live-task",onClose:()=>t(!1)}):(0,s.jsx)(s.Fragment,{})},E=()=>{const e=()=>{(0,p.yM)("wcpay_overview_task_click",{task:"go-live",source:"wcpay-go-live-task"});const e=document.createElement("div");e.id="wcpay-golivemodal-container",document.body.appendChild(e),(0,j.H)(e).render((0,s.jsx)(A,{}))};return{key:"go-live-payments",level:3,content:"",title:i.tasks.go_live.title,time:i.tasks.go_live.time,completed:!1,onClick:e,action:e,expandable:!1,showActionButton:!1}},C=["invalid_value_other"],T=({showUpdateDetailsTask:e,wpcomReconnectUrl:t,activeDisputes:o=[],showGoLiveTask:n=!1})=>{const{status:r,currentDeadline:a,pastDue:s,accountLink:c,requirements:m,detailsSubmitted:l}=wcpaySettings.accountStatus,d=(()=>{const e=i.errors,t=m?.errors?.filter(e=>!C.includes(e.code)),o=t?.map(t=>e[t.code]||t.reason);return Array.from(new Set(o||[]))})(),p=e,h=!!o&&f(o,7).length>0,y=wcpaySettings.isAccountConnected&&(0,u.wx)(!1)&&n;return[p&&k(d,r??"",c??"",Number(a)??null,s??!1,l??!0),t&&g(t),h&&_(o),y&&E()].filter(Boolean).filter(e=>null!==e)},N=(e,t)=>{if(e.completed||t.completed)return e.completed?1:-1;const o=e.level||3,n=t.level||3;return o===n?0:o>n?1:-1}},6148(e,t,o){"use strict";o.d(t,{A:()=>n});const n=(0,o(1609).createContext)(window.wcpaySettings)},2461(e,t,o){"use strict";o.d(t,{yM:()=>a});var n=o(8490),r=o.n(n);const a=(e,t={})=>{if(window.wcpaySettings){Object.assign(t,{is_test_mode:wcpaySettings.testMode,jetpack_connected:wcpaySettings.isJetpackConnected,wcpay_version:wcpaySettings.version,woo_country_code:wcpaySettings.connect.country,hosting_provider:wcpaySettings.trackingInfo?.hosting_provider});for(const e in t)void 0===t[e]&&delete t[e]}r()(()=>{(wc?.tracks?.recordEvent??wcTracks.recordEvent)(e,t)})}},7564(e,t,o){"use strict";o.d(t,{J:()=>i,_:()=>s});var n=o(8443),r=o(6154),a=o.n(r);function s(e,t={}){const{customFormat:o=null,includeTime:r=!1,separator:s=" / ",timezone:i}=t,c=a().utc(e).toISOString(),m=o||`${window.wcpaySettings.dateFormat}${r?`${s}${window.wcpaySettings.timeFormat}`:""}`;return(0,n.dateI18n)(m,c,i)}function i(e,t={}){const{customFormat:o=null,includeTime:r=!1,separator:s=" / ",timezone:i}=t,c=a().unix(e).utc().toISOString(),m=o||`${window.wcpaySettings.dateFormat}${r?`${s}${window.wcpaySettings.timeFormat}`:""}`;return(0,n.dateI18n)(m,c,i)}},612(e,t,o){"use strict";o.d(t,{CK:()=>j,Jo:()=>p,Qp:()=>w,_E:()=>b,_t:()=>y,fy:()=>x,g:()=>d,gk:()=>S,h6:()=>g,hT:()=>f,pA:()=>u,tT:()=>_,wx:()=>h,x1:()=>k,xb:()=>v});var n=o(3832),r=o(8468),a=o(6154),s=o.n(a),i=o(8443),c=o(3138),m=o(3577);const l=e=>null!==e&&("function"==typeof e||"object"==typeof e),d=()=>{const e=wcpaySettings?.accountStatus;return!(!wcpaySettings?.isAccountConnected||!l(e)||e?.isLive||!e?.testDrive)},u=()=>{const e=wcpaySettings?.accountStatus;return!(!wcpaySettings?.isAccountConnected||!l(e)||e?.isLive||e?.testDrive)},p=(e=!1)=>l(wcpaySettings)&&wcpaySettings.hasOwnProperty("testMode")&&!!wcpaySettings.testMode||e,h=(e=!1)=>l(wcpaySettings)&&wcpaySettings.hasOwnProperty("testModeOnboarding")&&!!wcpaySettings.testModeOnboarding||e,y=(e=!1)=>l(wcpaySettings)&&wcpaySettings.hasOwnProperty("devMode")&&!!wcpaySettings.devMode||e,f=e=>(0,n.addQueryArgs)("admin.php",e),_=e=>{const t=`${wpApiSettings.root.replace(/\/$/,"")}`;return(0,n.addQueryArgs)(`${t}${c.C}/documents/${e}`,{_wpnonce:wpApiSettings.nonce})},w=(e,t)=>{const o="object"==typeof e?e:{},n={page:"wc-admin",path:"/payments/connect",source:o.source?.replace(/[^\w-]+/g,"")||"unknown",from:t},r={...o,...n};return f(r)},g=(e,t)=>{const o="object"==typeof e?e:{},n={page:"wc-admin",path:"/payments/overview",source:o.source?.replace(/[^\w-]+/g,"")||"unknown",from:t},r={...o,...n};return f(r)},v=()=>f({page:"wc-settings",tab:"checkout",section:"woocommerce_payments"}),b=e=>(0,r.capitalize)(e).replace(/_/g," "),x=()=>s()(new Date).format("Z"),k=(e,t=!1)=>{const o=t?s()(e).endOf("day").utc().toISOString():s()(e).startOf("day").utc().toISOString();return e&&(0,i.dateI18n)("Y-m-d H:i:s",o,!0)},j=e=>{const t=document.documentElement.lang,o={thousandSeparator:","};return["fr","pl"].some(e=>t.startsWith(e))?o.thousandSeparator=" ":"de-CH"===t?o.thousandSeparator="'":["de","nl","it","es","pt"].some(e=>t.startsWith(e))&&(o.thousandSeparator="."),(0,r.partial)(m.numberFormat,o)(e)},S=(e,t)=>{const o=e=>e.split("-")[0].split(".").map(Number),[n=0,r=0,a=0]=o(e),[s=0,i=0,c=0]=o(t);return n>s||n===s&&r>i||n===s&&r===i&&a>=c}},1379(e,t,o){"use strict";o.d(t,{p:()=>a});var n=o(2838),r=o.n(n);const a=e=>({__html:r().sanitize(e,{ALLOWED_TAGS:["a","b","em","i","strong","p","br"],ALLOWED_ATTR:["target","href","rel","name","download"]})})},7074(e,t,o){"use strict";o.d(t,{P:()=>n});const n=e=>{const t=window.wc?.wcSettings,o=t?.getSetting?.(e);return null==o?"":String(o)}},4937(e,t,o){"use strict";o.d(t,{$9:()=>s.$9,EH:()=>s.EH,KX:()=>a.A,OY:()=>s.OY,Or:()=>s.Or,nJ:()=>r.A,o5:()=>s.o5,rx:()=>s.rx,vv:()=>s.vv,yM:()=>n.yM});var n=o(2461),r=o(6148),a=o(6820),s=(o(687),o(544))},544(e,t,o){"use strict";o.d(t,{$9:()=>h,EH:()=>y,OY:()=>m,Or:()=>c,bN:()=>g,o5:()=>d,rx:()=>l,vv:()=>u});var n=o(7723),r=o(4111),a=o.n(r),s=o(8468);const i={aud:(0,n.__)("Australian dollar","woocommerce-payments"),cad:(0,n.__)("Canadian dollar","woocommerce-payments"),chf:(0,n.__)("Swiss franc","woocommerce-payments"),dkk:(0,n.__)("Danish krone","woocommerce-payments"),eur:(0,n.__)("Euro","woocommerce-payments"),gbp:(0,n.__)("Pound sterling","woocommerce-payments"),nok:(0,n.__)("Norwegian krone","woocommerce-payments"),nzd:(0,n.__)("New Zealand dollar","woocommerce-payments"),sek:(0,n.__)("Swedish krona","woocommerce-payments"),usd:(0,n.__)("United States (US) dollar","woocommerce-payments")},c=e=>i[e.toLowerCase()]||e.toUpperCase(),m=(e,t=null)=>{const{currencyData:o,connect:{country:n="US"}}=wcpaySettings,r=(0,s.find)(o,{code:e.toUpperCase()});if(r){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||o[n]){const e=t?(0,s.find)(o,{code:t.toUpperCase()}):o[n];e&&(r.decimalSeparator=e.decimalSeparator,r.thousandSeparator=e.thousandSeparator,r.symbolPosition=e.symbolPosition)}return a()(r)}return null},l=e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase()),d=(e,t)=>(l(t)||(e/=100),e),u=(e,t="USD",o=null,n=!1)=>{const r=l(t);r||(e/=100);const i=e<0,c=i?-1*e:e,d=i?"-":"",u=n?(e=>{const t=e.toUpperCase(),{currencyData:o,connect:{country:n="US"}}=wcpaySettings;if(o[n]?.code===t)return a()(o[n]);const r=(0,s.find)(o,{code:t});if(r){const{defaultLocale:e={}}=r;return e.hasOwnProperty("decimalSeparator")&&e.hasOwnProperty("thousandSeparator")&&e.hasOwnProperty("symbolPosition")&&(r.decimalSeparator=e.decimalSeparator,r.thousandSeparator=e.thousandSeparator,r.symbolPosition=e.symbolPosition),a()(r)}return null})(t):m(t,o);if(null===u)return d+_(c,t,r);try{return d+("function"==typeof u.formatAmount?w(u.formatAmount(c)):w(u.formatCurrency(c)))}catch(e){return d+w(_(c,t,r))}},p=(e,t)=>(-1===e.toString().indexOf(t)&&(e=e+" "+t),e),h=(e,t="USD",o=!1,n=null)=>{let r=u(e,t,n);return wcpaySettings.shouldUseExplicitPrice?(o&&(r=f(r)),p(r,t.toUpperCase())):r},y=(e,t,o,r)=>{if(!e.currency||!t.currency)return;const i=l(e.currency)?1:100;return`${h(i,e.currency,!0,r)} → ${function(e,t,o){const{currencyData:r}=wcpaySettings;let i="number"==typeof t.amount&&"number"==typeof e.amount&&0!==e.amount?Math.abs(t.amount/e.amount):0;"number"==typeof o&&(i=o),l(t.currency)&&(i*=100),l(e.currency)&&(i/=100);const c=(0,s.find)(r,{code:t.currency.toUpperCase()}),m=i<1?6:5,d=l(t.currency);c||(0,n.sprintf)(d?"%i %s":"%.5f %s",i,t.currency.toUpperCase());const u=a()({...c,precision:m});return p(function(e=""){return e.split(" ").map(e=>(0,s.endsWith)(e,"0")?(0,s.trimEnd)(e,"0"):e).join(" ")}(f(u.formatAmount(i))),t.currency.toUpperCase())}(e,t,o)}: ${h(Math.abs(t.amount),t.currency,!1,r)}`};function f(e){return e.replace(/[^0-9,.' ]/g,"").trim()}function _(e,t,o){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:o})}catch(r){return(0,n.sprintf)(o?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function w(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}const g=(e,t)=>{if((e=e.toUpperCase())===(t=t.toUpperCase()))return!1;const{currencyData:o}=wcpaySettings,n=(0,s.find)(o,{code:e}),r=(0,s.find)(o,{code:t});return!(!n||!r)&&n.symbol===r.symbol}},687(e,t,o){"use strict";o(7723)},2838(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,o){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,o)}function o(e,n,r){return o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,o,n){var r=[null];r.push.apply(r,o);var a=new(Function.bind.apply(e,r));return n&&t(a,n.prototype),a},o.apply(null,arguments)}function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var a=Object.hasOwnProperty,s=Object.setPrototypeOf,i=Object.isFrozen,c=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor,l=Object.freeze,d=Object.seal,u=Object.create,p="undefined"!=typeof Reflect&&Reflect,h=p.apply,y=p.construct;h||(h=function(e,t,o){return e.apply(t,o)}),l||(l=function(e){return e}),d||(d=function(e){return e}),y||(y=function(e,t){return o(e,n(t))});var f,_=C(Array.prototype.forEach),w=C(Array.prototype.pop),g=C(Array.prototype.push),v=C(String.prototype.toLowerCase),b=C(String.prototype.toString),x=C(String.prototype.match),k=C(String.prototype.replace),j=C(String.prototype.indexOf),S=C(String.prototype.trim),A=C(RegExp.prototype.test),E=(f=TypeError,function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return y(f,t)});function C(e){return function(t){for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return h(e,t,n)}}function T(e,t,o){var n;o=null!==(n=o)&&void 0!==n?n:v,s&&s(e,null);for(var r=t.length;r--;){var a=t[r];if("string"==typeof a){var c=o(a);c!==a&&(i(t)||(t[r]=c),a=c)}e[a]=!0}return e}function N(e){var t,o=u(null);for(t in e)!0===h(a,e,[t])&&(o[t]=e[t]);return o}function O(e,t){for(;null!==e;){var o=m(e,t);if(o){if(o.get)return C(o.get);if("function"==typeof o.value)return C(o.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var M=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=l(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),R=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=l(["#text"]),W=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),B=l(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=d(/<%[\w\W]*|[\w\W]*%>/gm),Y=d(/\${[\w\W]*}/gm),q=d(/^data-[\-\w.\u00B7-\uFFFF]/),V=d(/^aria-[\-\w]+$/),G=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=d(/^(?:\w+script|data):/i),Q=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=d(/^html$/i),Z=d(/^[a-z][.\w]*(-[.\w]+)+$/i),X=function(){return"undefined"==typeof window?null:window};return function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),r=function(e){return t(e)};if(r.version="2.5.6",r.removed=[],!o||!o.document||9!==o.document.nodeType)return r.isSupported=!1,r;var a=o.document,s=o.document,i=o.DocumentFragment,c=o.HTMLTemplateElement,m=o.Node,d=o.Element,u=o.NodeFilter,p=o.NamedNodeMap,h=void 0===p?o.NamedNodeMap||o.MozNamedAttrMap:p,y=o.HTMLFormElement,f=o.DOMParser,C=o.trustedTypes,ee=d.prototype,te=O(ee,"cloneNode"),oe=O(ee,"nextSibling"),ne=O(ee,"childNodes"),re=O(ee,"parentNode");if("function"==typeof c){var ae=s.createElement("template");ae.content&&ae.content.ownerDocument&&(s=ae.content.ownerDocument)}var se=function(t,o){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null,r="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(r)&&(n=o.currentScript.getAttribute(r));var a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(C,a),ie=se?se.createHTML(""):"",ce=s,me=ce.implementation,le=ce.createNodeIterator,de=ce.createDocumentFragment,ue=ce.getElementsByTagName,pe=a.importNode,he={};try{he=N(s).documentMode?s.documentMode:{}}catch(e){}var ye={};r.isSupported="function"==typeof re&&me&&void 0!==me.createHTMLDocument&&9!==he;var fe,_e,we=H,ge=$,ve=Y,be=q,xe=V,ke=K,je=Q,Se=Z,Ae=G,Ee=null,Ce=T({},[].concat(n(M),n(I),n(D),n(P),n(z))),Te=null,Ne=T({},[].concat(n(W),n(B),n(U),n(F))),Oe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Me=null,Ie=null,De=!0,Le=!0,Pe=!1,Re=!0,ze=!1,We=!0,Be=!1,Ue=!1,Fe=!1,He=!1,$e=!1,Ye=!1,qe=!0,Ve=!1,Ge=!0,Ke=!1,Qe={},Je=null,Ze=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xe=null,et=T({},["audio","video","img","source","image","track"]),tt=null,ot=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",st=at,it=!1,ct=null,mt=T({},[nt,rt,at],b),lt=["application/xhtml+xml","text/html"],dt=null,ut=s.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(t){dt&&dt===t||(t&&"object"===e(t)||(t={}),t=N(t),fe=fe=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,_e="application/xhtml+xml"===fe?b:v,Ee="ALLOWED_TAGS"in t?T({},t.ALLOWED_TAGS,_e):Ce,Te="ALLOWED_ATTR"in t?T({},t.ALLOWED_ATTR,_e):Ne,ct="ALLOWED_NAMESPACES"in t?T({},t.ALLOWED_NAMESPACES,b):mt,tt="ADD_URI_SAFE_ATTR"in t?T(N(ot),t.ADD_URI_SAFE_ATTR,_e):ot,Xe="ADD_DATA_URI_TAGS"in t?T(N(et),t.ADD_DATA_URI_TAGS,_e):et,Je="FORBID_CONTENTS"in t?T({},t.FORBID_CONTENTS,_e):Ze,Me="FORBID_TAGS"in t?T({},t.FORBID_TAGS,_e):{},Ie="FORBID_ATTR"in t?T({},t.FORBID_ATTR,_e):{},Qe="USE_PROFILES"in t&&t.USE_PROFILES,De=!1!==t.ALLOW_ARIA_ATTR,Le=!1!==t.ALLOW_DATA_ATTR,Pe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ze=t.SAFE_FOR_TEMPLATES||!1,We=!1!==t.SAFE_FOR_XML,Be=t.WHOLE_DOCUMENT||!1,He=t.RETURN_DOM||!1,$e=t.RETURN_DOM_FRAGMENT||!1,Ye=t.RETURN_TRUSTED_TYPE||!1,Fe=t.FORCE_BODY||!1,qe=!1!==t.SANITIZE_DOM,Ve=t.SANITIZE_NAMED_PROPS||!1,Ge=!1!==t.KEEP_CONTENT,Ke=t.IN_PLACE||!1,Ae=t.ALLOWED_URI_REGEXP||Ae,st=t.NAMESPACE||at,Oe=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Oe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Oe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Oe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ze&&(Le=!1),$e&&(He=!0),Qe&&(Ee=T({},n(z)),Te=[],!0===Qe.html&&(T(Ee,M),T(Te,W)),!0===Qe.svg&&(T(Ee,I),T(Te,B),T(Te,F)),!0===Qe.svgFilters&&(T(Ee,D),T(Te,B),T(Te,F)),!0===Qe.mathMl&&(T(Ee,P),T(Te,U),T(Te,F))),t.ADD_TAGS&&(Ee===Ce&&(Ee=N(Ee)),T(Ee,t.ADD_TAGS,_e)),t.ADD_ATTR&&(Te===Ne&&(Te=N(Te)),T(Te,t.ADD_ATTR,_e)),t.ADD_URI_SAFE_ATTR&&T(tt,t.ADD_URI_SAFE_ATTR,_e),t.FORBID_CONTENTS&&(Je===Ze&&(Je=N(Je)),T(Je,t.FORBID_CONTENTS,_e)),Ge&&(Ee["#text"]=!0),Be&&T(Ee,["html","head","body"]),Ee.table&&(T(Ee,["tbody"]),delete Me.tbody),l&&l(t),dt=t)},yt=T({},["mi","mo","mn","ms","mtext"]),ft=T({},["foreignobject","annotation-xml"]),_t=T({},["title","style","font","a","script"]),wt=T({},I);T(wt,D),T(wt,L);var gt=T({},P);T(gt,R);var vt=function(e){g(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},bt=function(e,t){try{g(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(He||$e)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},xt=function(e){var t,o;if(Fe)e="<remove></remove>"+e;else{var n=x(e,/^[\r\n\t ]+/);o=n&&n[0]}"application/xhtml+xml"===fe&&st===at&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var r=se?se.createHTML(e):e;if(st===at)try{t=(new f).parseFromString(r,fe)}catch(e){}if(!t||!t.documentElement){t=me.createDocument(st,"template",null);try{t.documentElement.innerHTML=it?ie:r}catch(e){}}var a=t.body||t.documentElement;return e&&o&&a.insertBefore(s.createTextNode(o),a.childNodes[0]||null),st===at?ue.call(t,Be?"html":"body")[0]:Be?t.documentElement:a},kt=function(e){return le.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null,!1)},jt=function(e){return e instanceof y&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},St=function(t){return"object"===e(m)?t instanceof m:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},At=function(e,t,o){ye[e]&&_(ye[e],function(e){e.call(r,t,o,dt)})},Et=function(e){var t;if(At("beforeSanitizeElements",e,null),jt(e))return vt(e),!0;if(A(/[\u0080-\uFFFF]/,e.nodeName))return vt(e),!0;var o=_e(e.nodeName);if(At("uponSanitizeElement",e,{tagName:o,allowedTags:Ee}),e.hasChildNodes()&&!St(e.firstElementChild)&&(!St(e.content)||!St(e.content.firstElementChild))&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent))return vt(e),!0;if("select"===o&&A(/<template/i,e.innerHTML))return vt(e),!0;if(7===e.nodeType)return vt(e),!0;if(We&&8===e.nodeType&&A(/<[/\w]/g,e.data))return vt(e),!0;if(!Ee[o]||Me[o]){if(!Me[o]&&Tt(o)){if(Oe.tagNameCheck instanceof RegExp&&A(Oe.tagNameCheck,o))return!1;if(Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(o))return!1}if(Ge&&!Je[o]){var n=re(e)||e.parentNode,a=ne(e)||e.childNodes;if(a&&n)for(var s=a.length-1;s>=0;--s){var i=te(a[s],!0);i.__removalCount=(e.__removalCount||0)+1,n.insertBefore(i,oe(e))}}return vt(e),!0}return e instanceof d&&!function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:st,tagName:"template"});var o=v(e.tagName),n=v(t.tagName);return!!ct[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===at?"svg"===o:t.namespaceURI===nt?"svg"===o&&("annotation-xml"===n||yt[n]):Boolean(wt[o]):e.namespaceURI===nt?t.namespaceURI===at?"math"===o:t.namespaceURI===rt?"math"===o&&ft[n]:Boolean(gt[o]):e.namespaceURI===at?!(t.namespaceURI===rt&&!ft[n])&&!(t.namespaceURI===nt&&!yt[n])&&!gt[o]&&(_t[o]||!wt[o]):!("application/xhtml+xml"!==fe||!ct[e.namespaceURI]))}(e)?(vt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!A(/<\/no(script|embed|frames)/i,e.innerHTML)?(ze&&3===e.nodeType&&(t=e.textContent,t=k(t,we," "),t=k(t,ge," "),t=k(t,ve," "),e.textContent!==t&&(g(r.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(vt(e),!0)},Ct=function(e,t,o){if(qe&&("id"===t||"name"===t)&&(o in s||o in ut))return!1;if(Le&&!Ie[t]&&A(be,t));else if(De&&A(xe,t));else if(!Te[t]||Ie[t]){if(!(Tt(e)&&(Oe.tagNameCheck instanceof RegExp&&A(Oe.tagNameCheck,e)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(e))&&(Oe.attributeNameCheck instanceof RegExp&&A(Oe.attributeNameCheck,t)||Oe.attributeNameCheck instanceof Function&&Oe.attributeNameCheck(t))||"is"===t&&Oe.allowCustomizedBuiltInElements&&(Oe.tagNameCheck instanceof RegExp&&A(Oe.tagNameCheck,o)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(o))))return!1}else if(tt[t]);else if(A(Ae,k(o,je,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==j(o,"data:")||!Xe[e])if(Pe&&!A(ke,k(o,je,"")));else if(o)return!1;return!0},Tt=function(e){return"annotation-xml"!==e&&x(e,Se)},Nt=function(t){var o,n,a,s;At("beforeSanitizeAttributes",t,null);var i=t.attributes;if(i){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te};for(s=i.length;s--;){var m=o=i[s],l=m.name,d=m.namespaceURI;if(n="value"===l?o.value:S(o.value),a=_e(l),c.attrName=a,c.attrValue=n,c.keepAttr=!0,c.forceKeepAttr=void 0,At("uponSanitizeAttribute",t,c),n=c.attrValue,We&&A(/((--!?|])>)|<\/(style|title)/i,n))bt(l,t);else if(!c.forceKeepAttr&&(bt(l,t),c.keepAttr))if(Re||!A(/\/>/i,n)){ze&&(n=k(n,we," "),n=k(n,ge," "),n=k(n,ve," "));var u=_e(t.nodeName);if(Ct(u,a,n)){if(!Ve||"id"!==a&&"name"!==a||(bt(l,t),n="user-content-"+n),se&&"object"===e(C)&&"function"==typeof C.getAttributeType)if(d);else switch(C.getAttributeType(u,a)){case"TrustedHTML":n=se.createHTML(n);break;case"TrustedScriptURL":n=se.createScriptURL(n)}try{d?t.setAttributeNS(d,l,n):t.setAttribute(l,n),jt(t)?vt(t):w(r.removed)}catch(e){}}}else bt(l,t)}At("afterSanitizeAttributes",t,null)}},Ot=function e(t){var o,n=kt(t);for(At("beforeSanitizeShadowDOM",t,null);o=n.nextNode();)At("uponSanitizeShadowNode",o,null),Et(o)||(o.content instanceof i&&e(o.content),Nt(o));At("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t){var n,s,c,l,d,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((it=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!St(t)){if("function"!=typeof t.toString)throw E("toString is not a function");if("string"!=typeof(t=t.toString()))throw E("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(o.toStaticHTML)||"function"==typeof o.toStaticHTML){if("string"==typeof t)return o.toStaticHTML(t);if(St(t))return o.toStaticHTML(t.outerHTML)}return t}if(Ue||ht(u),r.removed=[],"string"==typeof t&&(Ke=!1),Ke){if(t.nodeName){var p=_e(t.nodeName);if(!Ee[p]||Me[p])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof m)1===(s=(n=xt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?n=s:n.appendChild(s);else{if(!He&&!ze&&!Be&&-1===t.indexOf("<"))return se&&Ye?se.createHTML(t):t;if(!(n=xt(t)))return He?null:Ye?ie:""}n&&Fe&&vt(n.firstChild);for(var h=kt(Ke?t:n);c=h.nextNode();)3===c.nodeType&&c===l||Et(c)||(c.content instanceof i&&Ot(c.content),Nt(c),l=c);if(l=null,Ke)return t;if(He){if($e)for(d=de.call(n.ownerDocument);n.firstChild;)d.appendChild(n.firstChild);else d=n;return(Te.shadowroot||Te.shadowrootmod)&&(d=pe.call(a,d,!0)),d}var y=Be?n.outerHTML:n.innerHTML;return Be&&Ee["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&A(J,n.ownerDocument.doctype.name)&&(y="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+y),ze&&(y=k(y,we," "),y=k(y,ge," "),y=k(y,ve," ")),se&&Ye?se.createHTML(y):y},r.setConfig=function(e){ht(e),Ue=!0},r.clearConfig=function(){dt=null,Ue=!1},r.isValidAttribute=function(e,t,o){dt||ht({});var n=_e(e),r=_e(t);return Ct(n,r,o)},r.addHook=function(e,t){"function"==typeof t&&(ye[e]=ye[e]||[],g(ye[e],t))},r.removeHook=function(e){if(ye[e])return w(ye[e])},r.removeHooks=function(e){ye[e]&&(ye[e]=[])},r.removeAllHooks=function(){ye={}},r}()}()},5955(e,t,o){"use strict";t.A=function(e){var t=e.size,o=void 0===t?24:t,n=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],0<=t.indexOf(o)||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],0<=t.indexOf(o)||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a),m=["gridicon","gridicons-checkmark",i,!1,!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",s({className:m,height:o,width:o,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414z"})))};var n,r=(n=o(1609))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t,o=1;o<arguments.length;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)}},4788(e,t,o){"use strict";t.A=function(e){var t=e.size,o=void 0===t?24:t,n=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],0<=t.indexOf(o)||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],0<=t.indexOf(o)||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a),m=["gridicon","gridicons-cross-small",i,!1,!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",s({className:m,height:o,width:o,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})))};var n,r=(n=o(1609))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t,o=1;o<arguments.length;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)}},4236(e,t,o){"use strict";t.A=function(e){var t=e.size,o=void 0===t?24:t,n=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],0<=t.indexOf(o)||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],0<=t.indexOf(o)||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a),m=["gridicon","gridicons-help-outline",i,!!function(e){return 0==e%18}(o)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",s({className:m,height:o,width:o,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 8a4 4 0 00-8 0h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2a1 1 0 00-1 1v2h2v-1.141A3.991 3.991 0 0016 10zm-3 6h-2v2h2v-2z"})))};var n,r=(n=o(1609))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t,o=1;o<arguments.length;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)}},4275(e,t,o){"use strict";t.A=function(e){var t=e.size,o=void 0===t?24:t,n=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],0<=t.indexOf(o)||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],0<=t.indexOf(o)||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a),m=["gridicon","gridicons-info-outline",i,!!function(e){return 0==e%18}(o)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",s({className:m,height:o,width:o,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})))};var n,r=(n=o(1609))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t,o=1;o<arguments.length;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)}},9031(e,t,o){"use strict";t.A=function(e){var t=e.size,o=void 0===t?24:t,n=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],0<=t.indexOf(o)||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],0<=t.indexOf(o)||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a),m=["gridicon","gridicons-notice-outline",i,!!function(e){return 0==e%18}(o)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",s({className:m,height:o,width:o,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var n,r=(n=o(1609))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t,o=1;o<arguments.length;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)}},5588(e,t,o){"use strict";t.A=function(e){var t=e.size,o=void 0===t?24:t,n=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],0<=t.indexOf(o)||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],0<=t.indexOf(o)||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a),m=["gridicon","gridicons-notice",i,!!function(e){return 0==e%18}(o)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",s({className:m,height:o,width:o,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})))};var n,r=(n=o(1609))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t,o=1;o<arguments.length;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)}},5338(e,t,o){"use strict";var n=o(5795);t.H=n.createRoot,n.hydrateRoot},1020(e,t,o){"use strict";var n=o(1609),r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function m(e,t,o){var n,a={},m=null,l=null;for(n in void 0!==o&&(m=""+o),void 0!==t.key&&(m=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!c.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:r,type:e,key:m,ref:l,props:a,_owner:i.current}}t.Fragment=a,t.jsx=m,t.jsxs=m},4848(e,t,o){"use strict";e.exports=o(1020)},2308(e,t,o){"use strict";e.exports=o.p+"../assets/images/cards/diners.svg?ver=62451ea54fcf12af5e0d"},2858(e,t,o){"use strict";e.exports=o.p+"../assets/images/cards/unionpay.svg?ver=e60ed9d9db08315ff5c9"},5979(e,t,o){"use strict";e.exports=o.p+"../assets/images/woopayments.svg?ver=e7864bfe9a160ad2811a"},1609(e){"use strict";e.exports=window.React},5795(e){"use strict";e.exports=window.ReactDOM},8468(e){"use strict";e.exports=window.lodash},6154(e){"use strict";e.exports=window.moment},8846(e){"use strict";e.exports=window.wc.components},1554(e){"use strict";e.exports=window.wc.csvExport},4111(e){"use strict";e.exports=window.wc.currency},314(e){"use strict";e.exports=window.wc.data},4908(e){"use strict";e.exports=window.wc.experimental},6476(e){"use strict";e.exports=window.wc.navigation},3577(e){"use strict";e.exports=window.wc.number},195(e){"use strict";e.exports=window.wp.a11y},1455(e){"use strict";e.exports=window.wp.apiFetch},6427(e){"use strict";e.exports=window.wp.components},9491(e){"use strict";e.exports=window.wp.compose},7143(e){"use strict";e.exports=window.wp.data},6161(e){"use strict";e.exports=window.wp.dataControls},8443(e){"use strict";e.exports=window.wp.date},8490(e){"use strict";e.exports=window.wp.domReady},6087(e){"use strict";e.exports=window.wp.element},2619(e){"use strict";e.exports=window.wp.hooks},8537(e){"use strict";e.exports=window.wp.htmlEntities},7723(e){"use strict";e.exports=window.wp.i18n},5573(e){"use strict";e.exports=window.wp.primitives},3832(e){"use strict";e.exports=window.wp.url},6942(e,t){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=s(e,a(o)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)n.call(e,o)&&e[o]&&(t=s(t,o));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},4164(e,t,o){"use strict";function n(e){var t,o,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=n(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}o.d(t,{A:()=>r});const r=function(){for(var e,t,o=0,r="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=n(e))&&(r&&(r+=" "),r+=t);return r}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var o=a[e]={exports:{}};return r[e].call(o.exports,o,o.exports,s),o.exports}s.m=r,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var r=Object.create(null);s.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&o;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(e=>a[e]=()=>o[e]);return a.default=()=>o,s.d(r,a),r},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,o)=>(s.f[o](e,t),t),[])),s.u=e=>"chunks/"+({48:"wcpay-documents",551:"wcpay-payouts",1505:"reports-balance-actions",2151:"wcpay-reports",3791:"wcpay-multi-currency-setup",4596:"wcpay-money-movement",5838:"reports-fees",6231:"reports-balance",6513:"wcpay-onboarding",7554:"wcpay-capital",7668:"wcpay-fraud-protection",9031:"wcpay-overview",9159:"wcpay-card-readers"}[e]||e)+".js?ver="+{48:"7664de532b7510ea2922",252:"f60c80dbf8c019cc3c8e",551:"0520deec2a7d292d1dc7",1505:"eabf1dd26209433afe0a",2151:"ab7b3b3d0d42a985dda4",2504:"c705e069b2464be77725",2768:"03cd760470d5cfcd256c",3686:"33646697718d0beafc5f",3791:"5f18180e27e2f40917b4",4596:"adcd44c83eeba9839f5a",5033:"451c9f8aa44f63ae911b",5262:"40906b55763b5481c6d7",5838:"9dbd72e4c8d1c1c0d342",6231:"78ed68389b1a9b5a6c5c",6513:"43c418f8843188b621ad",6669:"681fd7be3daf150834a8",6880:"6b00af28b0a7d7d15f54",7554:"dac16f5112055cddadf4",7668:"6f6096d5280d653e32a4",9031:"9c79aa3803b6846e3d65",9159:"ab7c263cd36e6b56a052",9481:"4ae5f2115733649a5e96"}[e],s.miniCssF=e=>(({48:"wcpay-documents",551:"wcpay-payouts",2151:"wcpay-reports",3791:"wcpay-multi-currency-setup",4596:"wcpay-money-movement",5838:"reports-fees",6231:"reports-balance",6513:"wcpay-onboarding",7554:"wcpay-capital",7668:"wcpay-fraud-protection",9031:"wcpay-overview",9159:"wcpay-card-readers"}[e]||e)+".css"),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},n="woocommerce-payments:",s.l=(e,t,r,a)=>{if(o[e])o[e].push(t);else{var i,c;if(void 0!==r)for(var m=document.getElementsByTagName("script"),l=0;l<m.length;l++){var d=m[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+r){i=d;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",n+r),i.src=e),o[e]=[t];var u=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach(e=>e(n)),t)return t(n)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=u.bind(null,i.onerror),i.onload=u.bind(null,i.onload),c&&document.head.appendChild(i)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var n=o.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=o[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{if("undefined"!=typeof document){var e={3057:0};s.f.miniCss=(t,o)=>{e[t]?o.push(e[t]):0!==e[t]&&{48:1,551:1,2151:1,3791:1,4596:1,5262:1,5838:1,6231:1,6513:1,7554:1,7668:1,9031:1,9159:1}[t]&&o.push(e[t]=(e=>new Promise((t,o)=>{var n=s.miniCssF(e),r=s.p+n;if(((e,t)=>{for(var o=document.getElementsByTagName("link"),n=0;n<o.length;n++){var r=(s=o[n]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(r===e||r===t))return s}var a=document.getElementsByTagName("style");for(n=0;n<a.length;n++){var s;if((r=(s=a[n]).getAttribute("data-href"))===e||r===t)return s}})(n,r))return t();((e,t,o,n,r)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",s.nc&&(a.nonce=s.nc),a.onerror=a.onload=o=>{if(a.onerror=a.onload=null,"load"===o.type)n();else{var s=o&&o.type,i=o&&o.target&&o.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+": "+i+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=s,c.request=i,a.parentNode&&a.parentNode.removeChild(a),r(c)}},a.href=t,document.head.appendChild(a)})(e,r,0,t,o)}))(t).then(()=>{e[t]=0},o=>{throw delete e[t],o}))}}})(),(()=>{var e={3057:0};s.f.j=(t,o)=>{var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else{var r=new Promise((o,r)=>n=e[t]=[o,r]);o.push(n[2]=r);var a=s.p+s.u(t),i=new Error;s.l(a,o=>{if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var r=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.src;i.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",i.name="ChunkLoadError",i.type=r,i.request=a,n[1](i)}},"chunk-"+t,t)}};var t=(t,o)=>{var n,r,[a,i,c]=o,m=0;if(a.some(t=>0!==e[t])){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);c&&c(s)}for(t&&t(o);m<a.length;m++)r=a[m],s.o(e,r)&&e[r]&&e[r][0](),e[r]=0},o=globalThis.webpackChunkwoocommerce_payments=globalThis.webpackChunkwoocommerce_payments||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),s.nc=void 0,s.p=window.wcpayAssets.url,(()=>{"use strict";var e=s(1609),t=s(7723),o=s(2619),n=s(6427);window.wp.mediaelement;var r=s(1455),a=s.n(r),i=s(3832),c=s(6942),m=s.n(c),l=s(6087);const d=({className:t="",percent:o=0,color:n="#674399",bgcolor:r="var(--wp-admin-theme-color)"})=>{const a={backgroundColor:r},s={backgroundColor:n,width:`${o}%`,display:0===o?"none":"inherit"};return(0,e.createElement)("div",{className:`woocommerce-onboarding-progress-bar ${t}`},(0,e.createElement)("div",{className:"woocommerce-onboarding-progress-bar__container",style:a},(0,e.createElement)("div",{className:"woocommerce-onboarding-progress-bar__filler",style:s})))},u=({children:e,className:t})=>(0,l.createElement)("div",{className:m()("woocommerce-onboarding-loader",t)},e);u.Layout=({children:e,className:t})=>(0,l.createElement)("div",{className:m()("woocommerce-onboarding-loader-wrapper",t)},(0,l.createElement)("div",{className:m()("woocommerce-onboarding-loader-container",t)},e)),u.Illustration=({children:e})=>(0,l.createElement)(l.Fragment,null,e),u.Title=({children:e,className:t})=>(0,l.createElement)("h1",{className:m()("woocommerce-onboarding-loader__title",t)},e),u.ProgressBar=({progress:e,className:t})=>(0,l.createElement)(d,{className:m()("progress-bar",t),percent:null!=e?e:0,color:"var(--wp-admin-theme-color)",bgcolor:"#E0E0E0"}),u.Subtext=({children:e,className:t})=>(0,l.createElement)("p",{className:m()("woocommerce-onboarding-loader__paragraph",t)},e),u.Sequence=({interval:e,shouldLoop:t=!0,children:o,onChange:n=()=>{}})=>{const[r,a]=(0,l.useState)(0),s=l.Children.count(o);(0,l.useEffect)(()=>{const o=setInterval(()=>{a(e=>{const r=e+1;if(t){const e=r%s;return n(e),e}return r<s?(n(r),r):(clearInterval(o),e)})},e);return()=>clearInterval(o)},[e,o,t,s]);const i=l.Children.toArray(o)[r];return(0,l.createElement)(l.Fragment,null,i)};var p=s(2461),h=s(7583),y=s(5837),f=s(8358),_=s(4848);const w={button:{jetpack_not_connected:(0,t.__)("Connect your store","woocommerce-payments"),account_not_connected:(0,t.__)("Verify business details","woocommerce-payments"),account_invalid:(0,t.__)("Finish business details verifications","woocommerce-payments"),sandbox:(0,t.__)("Create test account","woocommerce-payments"),reset:(0,t.__)("Reset account","woocommerce-payments")},heading:e=>(0,t.sprintf)((0,t.__)("Hi%s, Welcome to %s!","woocommerce-payments"),e?` ${e}`:"","WooPayments"),paymentMethods:{deposits:{title:(0,t.__)("Payouts","woocommerce-payments"),value:(0,t.__)("Automatic - Daily","woocommerce-payments")},capture:{title:(0,t.__)("Payments capture","woocommerce-payments"),value:(0,t.__)("Capture on order","woocommerce-payments")},recurring:{title:(0,t.__)("Recurring payments","woocommerce-payments"),value:(0,t.__)("Supported","woocommerce-payments")}},usp1:(0,t.__)("Offer card payments, Apple Pay, iDEAL | Wero, Affirm, Afterpay, and accept in-person payments with the Woo mobile app.","woocommerce-payments"),usp2:(0,t.__)("Sell to international markets and accept over 135 currencies with local payment methods.","woocommerce-payments"),usp3:(0,t.__)("Earn recurring revenue and get payouts into your bank account.","woocommerce-payments"),sandboxMode:{title:(0,t.__)("I'm setting up a store for someone else.","woocommerce-payments"),description:(0,t.sprintf)((0,t.__)("This option will set up a %s test account using test data. When you’re ready to launch your store, switching to live payments is easy.","woocommerce-payments"),"WooPayments")},sandboxModeNotice:(0,f.A)({mixedString:(0,t.__)("Test mode is enabled, only test accounts will be created. If you want to process live transactions, please {{learnMoreLink}}disable it{{/learnMoreLink}}.","woocommerce-payments"),components:{learnMoreLink:(0,_.jsx)("a",{href:"https://woocommerce.com/document/woopayments/testing-and-troubleshooting/sandbox-mode/",target:"_blank",rel:"noreferrer"})}}),setupErrorNotice:(0,t.sprintf)((0,t.__)("Please <b>complete your %1$s setup</b> to process payments.","woocommerce-payments"),"WooPayments"),infoNotice:{description:{jetpack_connected:(0,t.__)("You'll need to verify your business and payment details to ","woocommerce-payments"),jetpack_not_connected:(0,t.__)("To ensure safe and secure transactions, a WordPress.com account is required before you can verify your business details.","woocommerce-payments")},button:(0,t.__)("enable payouts.","woocommerce-payments")},infoModal:{title:(0,t.sprintf)((0,t.__)("Verifying your information with %s","woocommerce-payments"),"WooPayments"),whyWeAsk:{heading:(0,t.__)("Why we ask for personal financial information","woocommerce-payments"),description:(0,t.sprintf)((0,t.__)("As you continue the process of signing up for %s, we'll ask for information about your business, including the business owner's date of birth and tax ID number. We know you may wonder why we ask for this information, and how it will be used. The “Know Your Customer” process, explained below, helps us provide a safe, ethical environment for all financial transactions.","woocommerce-payments"),"WooPayments")},whatIsKyc:{heading:(0,t.__)("What is “Know Your Customer”?","woocommerce-payments"),description:(0,t.__)("“Know Your Customer” standards are used by banks and other financial institutions to confirm that customers are who they say they are. By confirming their customers' identities, banks and financial institutions can help keep transactions safe from fraud and other suspicious activities.","woocommerce-payments")},whyShareInfo:{heading:(0,t.__)("Why do I have to share this information?","woocommerce-payments"),description:(0,t.__)("Before we build a payment relationship with a customer, we ask for the information listed above to validate the business owner's identity and tax ID number, and to ensure that we can connect the listed bank account with the business itself.","woocommerce-payments"),description2:(0,t.__)("The ultimate goal of the “Know Your Customer” process is to help your business get up and running with payments as soon as possible while protecting your business and your customers. We follow the same regulations as other financial institutions so that we can ensure we operate in an ethical and trustworthy manner. We want to protect your business and the payments that we manage for you. The “Know Your Customer” process helps us protect you.","woocommerce-payments")},whatElse:{heading:(0,t.__)("What else should I keep in mind while completing this process?","woocommerce-payments"),description:(0,t.sprintf)((0,t.__)("If you're setting up %s for someone else, it's best to have that person complete the account creation process. As you can see above, we ask for very specific information about the business owner - and you might not have all the details at hand. It's not always possible to change account information once it's been saved, especially if the site accepts live transactions before the correct account information is entered.","woocommerce-payments"),"WooPayments")},isMyDataSafe:{heading:(0,t.sprintf)((0,t.__)("Is my data safe with %s?","woocommerce-payments"),"WooPayments"),description:(0,t.sprintf)((0,t.__)("We take every step required to safeguard your personal data. %s is built in partnership with Stripe to store your data in a safe and secure manner.","woocommerce-payments"),"WooPayments")},howQuickly:{heading:(0,t.__)("How quickly will you confirm my identity and allow me to process payments?","woocommerce-payments"),description:(0,t.__)("We'll do our best to work with Stripe to confirm your identity as quickly as we can. Typically, we'll confirm your application within a couple of days.","woocommerce-payments")},whatInformation:{heading:(0,t.__)("What information should I have at hand before I start the “Know Your Customer” process?","woocommerce-payments"),description:(0,t.__)("Here's a brief list of the information you'll need to finish payment signup:","woocommerce-payments")},businessOwnerInfo:{heading:(0,t.__)("Business owner info:","woocommerce-payments"),fields:[(0,t.__)("Legal name","woocommerce-payments"),(0,t.__)("Date of birth","woocommerce-payments"),(0,t.__)("Home address","woocommerce-payments"),(0,t.__)("Email address","woocommerce-payments"),(0,t.__)("Mobile phone number","woocommerce-payments"),(0,t.__)("Bank account information","woocommerce-payments"),(0,t.__)("Social Security number (SSN) or Taxpayer Identification Number","woocommerce-payments")]},businessInfo:{heading:(0,t.__)("Business info:","woocommerce-payments"),fields:[(0,t.__)("Country where your business is based","woocommerce-payments"),(0,t.__)("Type of business","woocommerce-payments"),(0,t.__)("Industry","woocommerce-payments"),(0,t.__)("Company address","woocommerce-payments"),(0,t.__)("Company phone number","woocommerce-payments"),(0,t.__)("Company URL","woocommerce-payments")]}},stepsHeading:(0,t.__)("You’re only steps away from getting paid","woocommerce-payments"),step1:{heading:(0,t.__)("Create and connect your account","woocommerce-payments"),description:(0,t.__)("To ensure safe and secure transactions, a WordPress.com account is required.","woocommerce-payments")},step2:{heading:(0,t.__)("Provide a few business details","woocommerce-payments"),description:(0,t.__)("Next we’ll ask you to verify your business and payment details to enable payouts.","woocommerce-payments")},step3:{heading:(0,t.__)("Setup complete!","woocommerce-payments"),description:(0,t.sprintf)((0,t.__)("You’re ready to start using the features and benefits of %s.","woocommerce-payments"),"WooPayments")},onboardingDisabled:(0,t.__)("We've temporarily paused new account creation. We'll notify you when we resume!","woocommerce-payments"),incentive:{limitedTimeOffer:(0,t.__)("Limited time offer","woocommerce-payments"),details:(0,t.__)("Discount will be applied to payments processed via WooPayments upon completion of installation, setup, and connection.","woocommerce-payments"),termsAndConditions:e=>(0,l.createInterpolateElement)((0,t.__)("*See <a>Terms and Conditions</a> for details.","woocommerce-payments"),{a:(0,_.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer"})}),error:(0,t.__)("There was an error applying the promotion. Please contact support for assistance if the problem persists","woocommerce-payments")},nonSupportedCountry:(0,l.createInterpolateElement)((0,t.sprintf)((0,t.__)("<b>%1$s is not currently available in your location</b>. To be eligible for %1$s, your business address must be in one of the following <a>supported countries</a>.","woocommerce-payments"),"WooPayments"),{b:(0,_.jsx)("b",{}),a:(0,_.jsx)("a",{href:"https://woocommerce.com/document/woopayments/compatibility/countries/",target:"_blank",rel:"noopener noreferrer"})})};var g=s(1379);const v=e=>(0,_.jsxs)("div",{className:"connect-account-page__incentive",children:[(0,_.jsx)("div",{className:"connect-account-page__incentive-pill",children:w.incentive.limitedTimeOffer}),(0,_.jsx)("h2",{dangerouslySetInnerHTML:(0,g.p)(e.description+"*")}),(0,_.jsx)("p",{children:w.incentive.details}),(0,_.jsx)("p",{children:w.incentive.termsAndConditions(e.tc_url)})]});var b=s(4164);const x=()=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"-4 -4 24 24",children:(0,_.jsx)("path",{fillRule:"evenodd",d:"M8 1.33a4.67 4.67 0 0 0-2.67 8.5v1.5c0 .37.3.67.67.67h4c.37 0 .67-.3.67-.67v-1.5A4.66 4.66 0 0 0 8 1.33ZM6 14c0 .37.3.67.67.67h2.66c.37 0 .67-.3.67-.67v-.67H6V14Zm3.33-4.87.57-.4a3.33 3.33 0 1 0-3.8 0l.57.4v1.54h2.66V9.13Z",clipRule:"evenodd"})});(Object.getOwnPropertyDescriptor(x,"name")||{}).writable||Object.defineProperty(x,"name",{value:"default",configurable:!0});const k=({color:e,className:t,children:o})=>(0,_.jsxs)("div",{className:(0,b.A)("wcpay-component-tip-box",e,t),children:[(0,_.jsx)(x,{}),(0,_.jsx)("div",{className:"wcpay-component-tip-box__content",children:o})]}),j=e=>e.map(e=>(0,_.jsx)("li",{children:e},e)),S=()=>{const[o,r]=(0,e.useState)(!1),a=()=>r(!1);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(k,{color:"yellow",children:[wcpaySettings.isJetpackConnected?w.infoNotice.description.jetpack_connected:w.infoNotice.description.jetpack_not_connected,wcpaySettings.isJetpackConnected&&(0,_.jsx)(n.Button,{variant:"link",onClick:()=>{(0,p.yM)("wcpay_connect_account_kyc_modal_opened"),r(!0)},__next40pxDefaultSize:!0,children:w.infoNotice.button})]}),o&&(0,_.jsxs)(n.Modal,{title:w.infoModal.title,isDismissible:!0,shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,onRequestClose:a,className:"connect-account-page__info-modal",children:[(0,_.jsxs)("div",{children:[(0,_.jsxs)("h4",{children:[w.infoModal.whyWeAsk.heading," "]}),(0,_.jsx)("p",{children:w.infoModal.whyWeAsk.description}),(0,_.jsxs)("h4",{children:[w.infoModal.whatIsKyc.heading," "]}),(0,_.jsx)("p",{children:w.infoModal.whatIsKyc.description}),(0,_.jsxs)("h4",{children:[w.infoModal.whyShareInfo.heading," "]}),(0,_.jsx)("p",{children:w.infoModal.whyShareInfo.description}),(0,_.jsx)("p",{children:w.infoModal.whyShareInfo.description2}),(0,_.jsxs)("h4",{children:[w.infoModal.whatElse.heading," "]}),(0,_.jsx)("p",{children:w.infoModal.whatElse.description}),(0,_.jsxs)("h4",{children:[w.infoModal.isMyDataSafe.heading," "]}),(0,_.jsx)("p",{children:w.infoModal.isMyDataSafe.description}),(0,_.jsxs)("h4",{children:[w.infoModal.howQuickly.heading," "]}),(0,_.jsx)("p",{children:w.infoModal.howQuickly.description}),(0,_.jsxs)("h4",{children:[w.infoModal.whatInformation.heading," "]}),(0,_.jsx)("p",{children:w.infoModal.whatInformation.description}),(0,_.jsxs)(n.Notice,{status:"warning",isDismissible:!1,children:[(0,_.jsx)("b",{children:w.infoModal.businessOwnerInfo.heading}),(0,_.jsx)("ul",{children:j(w.infoModal.businessOwnerInfo.fields)})]}),(0,_.jsxs)(n.Notice,{status:"warning",isDismissible:!1,children:[(0,_.jsx)("b",{children:w.infoModal.businessInfo.heading}),(0,_.jsx)("ul",{children:j(w.infoModal.businessInfo.fields)})]})]}),(0,_.jsx)("hr",{}),(0,_.jsx)("div",{className:"connect-account-page__info-modal__footer",children:(0,_.jsx)(n.Button,{variant:"primary",onClick:a,__next40pxDefaultSize:!0,children:(0,t.__)("Got it","woocommerce-payments")})})]})]})};var A=s(8846);const E=({countries:e,onDeclined:o,onConfirmed:r})=>{const[a,s]=(0,l.useState)(!0),[i,c]=(0,l.useState)(!1);if(!a)return null;const m=()=>{s(!1),o()},d=(0,f.A)({mixedString:(0,t.sprintf)((0,t.__)("It appears you're attempting to set up %1$s from an unsupported country. In order to complete the set up of %1$s, your store is required to have a business entity in one of the following countries: {{list /}} {{link}}Learn more{{/link}} about setting up business entities in foreign countries.","woocommerce-payments"),"WooPayments"),components:{link:(0,_.jsx)(n.ExternalLink,{href:"https://woocommerce.com/document/woopayments/compatibility/countries/"}),list:(0,_.jsx)(A.List,{items:e})}});return(0,_.jsx)(n.Modal,{title:"WooPayments",isDismissible:!0,shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,onRequestClose:m,className:"woocommerce-payments__onboarding_location_check-modal",children:(0,_.jsxs)("div",{className:"woocommerce-payments__onboarding_location_check-wrapper",children:[(0,_.jsx)("div",{className:"woocommerce-payments__onboarding_location_check-modal-message",children:d}),(0,_.jsxs)("div",{className:"woocommerce-payments__onboarding_location_check-footer",children:[(0,_.jsx)(n.Button,{variant:"secondary",onClick:()=>{c(!0),r()},isBusy:i,__next40pxDefaultSize:!0,children:(0,t.__)("Continue","woocommerce-payments")}),(0,_.jsx)(n.Button,{variant:"primary",onClick:m,disabled:i,__next40pxDefaultSize:!0,children:(0,t.__)("Cancel","woocommerce-payments")})]})]})})};var C=s(5979);const T=s.p+"../assets/images/illustrations/setup.svg?ver=c62f1a23d71c0cf65264";var N=s(5798);const O=s.p+"../assets/images/payment-method-icons/visa.svg?ver=fc7cc4d4e752bdf85f3d",M=s.p+"../assets/images/payment-method-icons/mastercard.svg?ver=4d62eb12903d72705eba",I=s.p+"../assets/images/payment-method-icons/amex.svg?ver=f55d5deea3391ea7797b",D=s.p+"../assets/images/payment-method-icons/discover.svg?ver=9c04fa2a8eed50cc729c",L=s.p+"../assets/images/payment-method-icons/woopay.svg?ver=1ae20ff280e9f28b8d04",P=s.p+"../assets/images/payment-method-icons/applepay.svg?ver=1fd43f54eb27f793a6fb",R=s.p+"../assets/images/payment-method-icons/afterpay.svg?ver=6b99c8084d7d9413b72d",z=s.p+"../assets/images/payment-method-icons/affirm.svg?ver=b81e03e18a236fb4504c",W=s.p+"../assets/images/payment-method-icons/klarna.svg?ver=c0d2eb713b53a3ce326a",B=s.p+"../assets/images/payment-method-icons/grabpay.svg?ver=2d907ee22ceb6da257d0",U=s.p+"../assets/images/payment-method-icons/jcb.svg?ver=b92eddb8dc7464c4f46c",F=s.p+"../assets/images/payment-method-icons/gpay.svg?ver=0969c91684552e5dda51",H=s.p+"../assets/images/cards/cartes_bancaires.svg?ver=d30151baf3e66bac2776";var $=s(2858),Y=s(2308);const q=s.p+"../assets/images/cards/eftpos.svg?ver=c3943400388ac6bbaf0a",V=s.p+"../assets/images/payment-methods/ideal.svg?ver=29bbe311542fbda8edab",G=s.p+"../assets/images/payment-methods/bancontact.svg?ver=b1739ae958760f6f9733",K=s.p+"../assets/images/payment-methods/eps.svg?ver=7bd9ed62d1b21ca35ceb",Q=[{name:"visa",component:O},{name:"mastercard",component:M},{name:"amex",component:I},{name:"discover",component:D},{name:"woopay",component:L},{name:"applepay",component:P},{name:"googlepay",component:F},{name:"afterpay",component:R},{name:"affirm",component:z},{name:"klarna",component:W},{name:"cartebancaire",component:H},{name:"unionpay",component:$},{name:"diners",component:Y},{name:"eftpos",component:q},{name:"jcb",component:U},{name:"bancontact",component:G},{name:"becs",component:s.p+"../assets/images/payment-methods/becs.svg?ver=b99989d8a8e0050ea6b1"},{name:"eps",component:K},{name:"ideal",component:V},{name:"przelewy24",component:s.p+"../assets/images/payment-methods/przelewy24.svg?ver=f250356af47efe26461c"},{name:"grabpay",component:B},{name:"wechat_pay",component:s.p+"../assets/images/payment-method-icons/wechat-pay.svg?ver=0d8dce3ac11a73b55758"}],J=({maxElements:t=10,isWooPayEligible:o=!1})=>{const[r,a]=(0,e.useState)(t),[s,i]=(0,e.useState)(!1),c=(0,e.useRef)(),m=o?20:19,l=e=>o?e:e+1;(0,e.useEffect)(()=>{const e=()=>{window.innerWidth<=480?a(5):window.innerWidth<=768?a(7):a(t)};e(),window.addEventListener("resize",e)},[t]);const d=Q.slice(0,l(r)).filter(e=>o||"woopay"!==e.name),u=Q.slice(l(r)).filter(e=>o||"woopay"!==e.name),p=()=>{c.current&&clearTimeout(c.current),i(!0)},h=()=>{c.current=setTimeout(()=>{i(!1)},300)};return(0,e.useEffect)(()=>()=>{c.current&&clearTimeout(c.current)},[]),(0,_.jsxs)("div",{className:"connect-account-page__payment-methods--logos",children:[d.slice(0,r).map(e=>(0,_.jsx)("img",{alt:e.name,src:e.component,width:38,height:24},e.name)),r<m&&(0,_.jsxs)("div",{className:"connect-account-page__payment-methods--logos-count",onClick:()=>i(!s),onMouseEnter:p,onMouseLeave:h,role:"button",tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||i(!s)},children:["+ ",m-r,s&&(0,_.jsx)(n.Popover,{position:"bottom left",className:"connect-account-page__payment-methods--logos-popover",noArrow:!0,onClose:()=>i(!1),onMouseEnter:p,onMouseLeave:h,children:(0,_.jsx)("div",{className:"connect-account-page__payment-methods--logos connect-account-page__payment-methods--logos-inside-popover",onMouseEnter:p,onMouseLeave:h,children:u.map(e=>(0,_.jsx)("img",{alt:e.name,src:e.component,width:38,height:24},e.name))})})]})]})},Z=s.p+"../assets/images/woo-logo.svg?ver=c57e105ad8f268f8edde";var X=s(612),ee=s(3448),te=s(2872),oe=s(8537),ne=s(5338);const re=()=>(0,_.jsx)(y.A,{icon:!0,status:"warning",isDismissible:!1,children:w.sandboxModeNotice}),ae=({progress:e})=>(0,_.jsxs)(u,{className:"connect-account-page__preloader",children:[(0,_.jsx)("img",{className:"logo",src:Z,alt:""}),(0,_.jsxs)(u.Layout,{children:[(0,_.jsx)(u.Illustration,{children:(0,_.jsx)("img",{src:T,alt:"setup",style:{maxWidth:"223px"}})}),(0,_.jsx)(u.Title,{children:(0,t.__)("Finishing payments setup","woocommerce-payments")}),(0,_.jsx)(u.ProgressBar,{progress:e??0}),(0,_.jsx)(u.Sequence,{interval:0,children:(0,t.__)("In just a few moments, you'll be ready to test payments on your store.","woocommerce-payments")})]})]}),se=()=>{const o=wcSettings.admin?.currentUserData?.first_name,r=wcpaySettings.connectIncentive,[s,c]=(0,e.useState)(!1),[m,l]=(0,e.useState)(wcpaySettings.errorMessage),[d,u]=(0,e.useState)(!1),[f,b]=(0,e.useState)(!1),[x,k]=(0,e.useState)(!1),[j,A]=(0,e.useState)(5),T=(0,e.useRef)(j);let O;T.current=j;const{connectUrl:M,connect:{availableCountries:I,country:D},testModeOnboarding:L,isJetpackConnected:P,isAccountConnected:R,isAccountValid:z}=wcpaySettings,W=!!I[D],B=new URLSearchParams(window.location.search),U=()=>{const e=B.get("source")?.replace(/[^\w-]+/g,"");if(e&&"unknown"!==e)return e;if(M.includes("source=")){const e=new URL(M).searchParams.get("source");if(e&&"unknown"!==e)return e}let t="wcpay-connect-page";switch(B.get("from")||""){case"WCADMIN_PAYMENT_TASK":t="wcadmin-payment-task";break;case"WCADMIN_PAYMENT_SETTINGS":t="wcadmin-settings-page";break;case"WCADMIN_PAYMENT_INCENTIVE":t="wcadmin-incentive-page"}return t},F=()=>B.get("from")?.replace(/[^\w-]+/g,"")||"",H=e=>{(0,p.yM)("wcpay_connect_account_clicked",{wpcom_connection:P?"Yes":"No",...r&&{incentive_id:r.id},sandbox_mode:e,path:"payments_connect_v2",from:F(),source:U()})},$=(e,t)=>{if(T.current<e){const e=T.current+t;A(e)}},Y=(e={})=>{a()({path:"/wc/v3/payments/accounts",method:"GET"}).then(t=>{if($(100,6),t&&t.status&&!t.status.includes("pending")||T.current>95||(o=O,Math.round((Date.now()-o)/1e3)>40)){A(100);const t={test_drive:"true","wcpay-sandbox-success":"true",source:U(),from:"WCPAY_CONNECT",redirect_to_settings_page:B.get("redirect_to_settings_page")||""};window.location.href=(0,i.addQueryArgs)(M,{...t,...e})}else setTimeout(()=>Y(e),2500);var o})},q=async()=>{O=Date.now(),A(5),b(!0),H(!0);const e=(0,i.addQueryArgs)(M,{test_drive:"true",capabilities:B.get("capabilities")||""}),t=setInterval($,2500,40,5);wcpaySettings.isJetpackConnected?(k(!0),fetch(e,{method:"GET",redirect:"follow",credentials:"same-origin",headers:{"content-type":"application/json",pragma:"no-cache","cache-control":"no-cache"}}).then(e=>e.json()).then(e=>{e?.success&&e?.data?.redirect_to?(clearInterval(t),A(40),new URLSearchParams(e.data.redirect_to).get("wcpay-connection-success")?Y({"wcpay-connection-success":"1"}):window.location.href=(0,i.addQueryArgs)(e.data.redirect_to,{test_drive:"true",test_drive_error:"true"})):window.location.href=(0,i.addQueryArgs)(window.location.href,{test_drive_error:"true"})}).catch(()=>{window.location.href=(0,i.addQueryArgs)(window.location.href,{test_drive_error:"true"})})):window.location.href=(0,i.addQueryArgs)(e,{auto_start_test_drive_onboarding:"true"})};(0,e.useEffect)(()=>{(0,p.yM)("page_view",{path:"payments_connect_v2",...r&&{incentive_id:r.id},from:F(),source:U()}),wcpaySettings.isJetpackConnected&&B.get("auto_start_test_drive_onboarding")&&q()},[]);let V=!1;m&&m.includes("account setup session")&&(V=!0);const G="true"===B.get("test_drive_error");!m&&G&&l((0,t.__)("An error occurred while setting up your sandbox account. Please try again!","woocommerce-payments"));let K=w.button.jetpack_not_connected;return P&&(K=w.button.account_not_connected,V||!R||z||(K=w.button.account_invalid)),!m&&(!P&&R||P&&R&&!z)&&l(w.setupErrorNotice),(0,_.jsxs)(h.A,{isNarrow:!0,id:"connect-account-page",className:"connect-account-page",children:[m&&(0,_.jsx)(y.A,{status:"error",icon:!0,isDismissible:!1,children:(0,_.jsx)("div",{dangerouslySetInnerHTML:(0,g.p)((0,oe.decodeEntities)(m))})}),wcpaySettings.onBoardingDisabled?(0,_.jsx)(n.Card,{children:(0,_.jsx)(n.CardBody,{children:w.onboardingDisabled})}):(0,_.jsxs)(_.Fragment,{children:[!W&&(0,_.jsx)(y.A,{status:"error",isDismissible:!1,children:w.nonSupportedCountry}),!R&&L?(0,_.jsx)(re,{}):R&&!z&&L&&P&&(0,_.jsx)(te.A,{from:"WCPAY_CONNECT",source:"wcpay-connect-page"}),(0,_.jsxs)(n.Card,{children:[(0,_.jsxs)("div",{className:"connect-account-page__heading",children:[(0,_.jsx)("img",{src:C,alt:"logo"}),(0,_.jsx)("h2",{children:w.heading(o)})]}),(0,_.jsx)("div",{className:"connect-account-page__content",children:(0,_.jsx)(S,{})}),(0,_.jsxs)("div",{className:"connect-account-page__payment-methods",children:[(0,_.jsx)(J,{maxElements:10,isWooPayEligible:wcpaySettings.isWooPayStoreCountryAvailable}),(0,_.jsxs)("div",{className:"connect-account-page__payment-methods__description",children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("p",{children:w.paymentMethods.deposits.title}),(0,_.jsx)("span",{children:w.paymentMethods.deposits.value})]}),(0,_.jsx)("div",{className:"connect-account-page__payment-methods__description__divider"}),(0,_.jsxs)("div",{children:[(0,_.jsx)("p",{children:w.paymentMethods.capture.title}),(0,_.jsx)("span",{children:w.paymentMethods.capture.value})]}),(0,_.jsx)("div",{className:"connect-account-page__payment-methods__description__divider"}),(0,_.jsxs)("div",{children:[(0,_.jsx)("p",{children:w.paymentMethods.recurring.title}),(0,_.jsx)("span",{children:w.paymentMethods.recurring.value})]})]})]}),(0,_.jsxs)("div",{className:"connect-account-page__buttons",children:[(0,_.jsx)(n.Button,{variant:"primary",isBusy:d,disabled:d||V,onClick:async()=>{if(u(!0),H(!1),r)try{const e=await a()({path:`/wc-analytics/admin/notes/experimental-activate-promo/${r.id}`,method:"POST"});if(!e?.success)throw new Error}catch(e){l(w.incentive.error)}if(!W)return(()=>{const e=Object.values(I).sort().map(e=>({title:e})),t=document.createElement("div");t.id="wcpay-onboarding-location-check-container",(0,ne.H)(t).render((0,_.jsx)(E,{countries:e,onDeclined:()=>{u(!1)},onConfirmed:()=>{window.location.href=(0,i.addQueryArgs)(M,{source:U(),from:"WCPAY_CONNECT"})}})),document.body.appendChild(t)})();window.location.href=(0,i.addQueryArgs)(M,{source:U(),from:"WCPAY_CONNECT"})},__next40pxDefaultSize:!0,children:K}),R&&(!wcpaySettings.accountStatus.detailsSubmitted||(0,X.wx)())&&(0,_.jsx)(n.Button,{variant:"tertiary",onClick:()=>c(!0),__next40pxDefaultSize:!0,children:w.button.reset})]})]}),!R&&r&&(0,_.jsx)(v,{...r}),!R&&(0,_.jsx)(n.Panel,{className:"connect-account-page__sandbox-mode-panel",children:(0,_.jsxs)(n.PanelBody,{title:w.sandboxMode.title,initialOpen:!1,children:[(0,_.jsx)(N.A,{icon:!0,status:"info",isDismissible:!1,children:w.sandboxMode.description}),(0,_.jsx)(n.Button,{variant:"secondary",isBusy:f,disabled:f,onClick:q,__next40pxDefaultSize:!0,children:w.button.sandbox})]})}),(0,_.jsx)(ee.A,{isVisible:s,onDismiss:()=>c(!1),onSubmit:()=>{window.location.href=(0,i.addQueryArgs)(wcpaySettings.connectUrl,{"wcpay-reset-account":"true",from:"WCPAY_CONNECT",source:U()})}})]}),x&&(0,_.jsx)(ae,{progress:j})]})};var ie=s(9199),ce=s(1686);const me=t=>o=>(0,_.jsx)(ie.A,{children:(0,_.jsx)(e.Suspense,{fallback:(0,_.jsx)("div",{className:"wcpay-route-loading",children:(0,_.jsx)(n.Spinner,{})}),children:(0,_.jsx)(t,{...o})})}),le=me((0,e.lazy)(()=>Promise.all([s.e(9481),s.e(252),s.e(6669),s.e(5033),s.e(551)]).then(s.bind(s,1073)))),de=me((0,e.lazy)(()=>Promise.all([s.e(9481),s.e(252),s.e(6669),s.e(5033),s.e(551)]).then(s.bind(s,5408)))),ue=me((0,e.lazy)(()=>Promise.all([s.e(9481),s.e(252),s.e(6669),s.e(6880),s.e(4596)]).then(s.bind(s,3154)))),pe=me((0,e.lazy)(()=>Promise.all([s.e(9481),s.e(252),s.e(6669),s.e(6880),s.e(4596)]).then(s.bind(s,3119)))),he=me((0,e.lazy)(()=>Promise.all([s.e(9481),s.e(252),s.e(6669),s.e(6880),s.e(4596)]).then(s.bind(s,51)))),ye=me((0,e.lazy)(()=>Promise.all([s.e(9481),s.e(252),s.e(6669),s.e(6880),s.e(4596)]).then(s.bind(s,8518)))),fe=me((0,e.lazy)(()=>Promise.all([s.e(9481),s.e(252),s.e(6669),s.e(6880),s.e(4596)]).then(s.bind(s,8826)))),_e=me((0,e.lazy)(()=>Promise.all([s.e(2768),s.e(6513)]).then(s.bind(s,2218)))),we=me((0,e.lazy)(()=>Promise.all([s.e(2768),s.e(6513)]).then(s.bind(s,646)))),ge=me((0,e.lazy)(()=>Promise.all([s.e(2768),s.e(2504),s.e(9481),s.e(252),s.e(6880),s.e(5033),s.e(3686),s.e(9031)]).then(s.bind(s,6137)))),ve=me((0,e.lazy)(()=>Promise.all([s.e(9481),s.e(3791)]).then(s.bind(s,2546)).then(({MultiCurrencySetupPage:e})=>({default:e})))),be=me((0,e.lazy)(()=>Promise.all([s.e(9481),s.e(9159)]).then(s.bind(s,8799)))),xe=me((0,e.lazy)(()=>Promise.all([s.e(3686),s.e(7554)]).then(s.bind(s,6657)))),ke=me((0,e.lazy)(()=>Promise.all([s.e(252),s.e(48)]).then(s.bind(s,5918)))),je=me((0,e.lazy)(()=>s.e(2151).then(s.bind(s,9321)))),Se=me((0,e.lazy)(()=>Promise.all([s.e(9481),s.e(7668)]).then(s.bind(s,6882))));(0,o.addFilter)("woocommerce_admin_pages_list","woocommerce-payments",e=>{const{menuID:o,rootLink:n}=function(){const e=document.querySelector("#toplevel_page_wc-admin-path--payments-connect")?"connect":"overview";return{menuID:`toplevel_page_wc-admin-path--payments-${e}`,rootLink:[`/payments/${e}`,(0,t.__)("Payments","woocommerce-payments")]}}(),r=window.wcAdminFeatures&&window.wcAdminFeatures.navigation?"WooPayments":(0,t.__)("Connect","woocommerce-payments");return e.push({container:se,path:"/payments/connect",wpOpenMenu:o,breadcrumbs:[n,r],navArgs:{id:"wc-payments"},capability:"manage_woocommerce"}),e.push({container:_e,path:"/payments/onboarding",wpOpenMenu:o,breadcrumbs:[n,(0,t.__)("Onboarding","woocommerce-payments")],navArgs:{id:"wc-payments-onboarding"},capability:"manage_woocommerce"}),e.push({container:we,path:"/payments/onboarding/kyc",wpOpenMenu:o,breadcrumbs:[n,(0,t.__)("Continue onboarding","woocommerce-payments")],navArgs:{id:"wc-payments-continue-onboarding"},capability:"manage_woocommerce"}),e.push({container:ge,path:"/payments/overview",wpOpenMenu:o,breadcrumbs:[n,(0,t.__)("Overview","woocommerce-payments")],navArgs:{id:"wc-payments-overview"},capability:"manage_woocommerce"}),e.push({container:le,path:"/payments/payouts",wpOpenMenu:o,breadcrumbs:[n,(0,t.__)("Payouts","woocommerce-payments")],navArgs:{id:"wc-payments-deposits"},capability:"manage_woocommerce"}),e.push({container:de,path:"/payments/payouts/details",wpOpenMenu:o,breadcrumbs:[n,["/payments/payouts",(0,t.__)("Payouts","woocommerce-payments")],(0,t.__)("Payout details","woocommerce-payments")],navArgs:{id:"wc-payments-deposit-details",parentPath:"/payments/payouts"},capability:"manage_woocommerce"}),e.push({container:ue,path:"/payments/transactions",wpOpenMenu:o,breadcrumbs:[n,(0,t.__)("Transactions","woocommerce-payments")],navArgs:{id:"wc-payments-transactions"},capability:"manage_woocommerce"}),e.push({container:pe,path:"/payments/transactions/details",wpOpenMenu:o,breadcrumbs:[n,["/payments/transactions",(0,t.__)("Transactions","woocommerce-payments")],(0,t.__)("Payment details","woocommerce-payments")],navArgs:{id:"wc-payments-transaction-details",parentPath:"/payments/transactions"},capability:"manage_woocommerce"}),e.push({container:he,path:"/payments/disputes",wpOpenMenu:o,breadcrumbs:[n,(0,t.__)("Disputes","woocommerce-payments")],navArgs:{id:"wc-payments-disputes"},capability:"manage_woocommerce"}),e.push({container:ye,path:"/payments/disputes/details",wpOpenMenu:o,breadcrumbs:[n,["/payments/disputes",(0,t.__)("Disputes","woocommerce-payments")],(0,t.__)("Dispute details","woocommerce-payments")],navArgs:{id:"wc-payments-disputes-details-legacy-redirect",parentPath:"/payments/disputes"},capability:"manage_woocommerce"}),e.push({container:fe,path:"/payments/disputes/challenge",wpOpenMenu:o,breadcrumbs:[n,["/payments/disputes",(0,t.__)("Disputes","woocommerce-payments")],(0,t.__)("Challenge dispute","woocommerce-payments")],navArgs:{id:"wc-payments-disputes-challenge",parentPath:"/payments/disputes"},capability:"manage_woocommerce"}),function(e,o){wcpaySettings?.featureFlags?.reportsArea&&e.push(function({container:e,menuID:o,rootLink:n}){return{container:e,path:"/payments/reports",wpOpenMenu:o,breadcrumbs:[n,(0,t.__)("Reports","woocommerce-payments")],navArgs:{id:"wc-payments-reports"},capability:"manage_woocommerce"}}(o))}(e,{container:je,menuID:o,rootLink:n}),e.push({container:ve,path:"/payments/multi-currency-setup",wpOpenMenu:o,breadcrumbs:[n,(0,t.__)("Set up multiple currencies","woocommerce-payments")],capability:"manage_woocommerce"}),e.push({container:be,path:"/payments/card-readers",wpOpenMenu:o,breadcrumbs:[n,(0,t.__)("Card readers","woocommerce-payments")],navArgs:{id:"wc-payments-card-readers"},capability:"manage_woocommerce"}),e.push({container:xe,path:"/payments/loans",wpOpenMenu:o,breadcrumbs:[n,(0,t.__)("Capital Loans","woocommerce-payments")],navArgs:{id:"wc-payments-capital"},capability:"manage_woocommerce"}),wcpaySettings&&wcpaySettings.featureFlags.documents&&e.push({container:ke,path:"/payments/documents",wpOpenMenu:o,breadcrumbs:[n,(0,t.__)("Documents","woocommerce-payments")],navArgs:{id:"wc-payments-documents"},capability:"manage_woocommerce"}),wcpaySettings&&e.push({container:Se,path:"/payments/fraud-protection",wpOpenMenu:o,breadcrumbs:[n,"Settings"],capability:"manage_woocommerce"}),e}),(0,o.addFilter)("woocommerce_admin_onboarding_task_list","woocommerce-payments",e=>{const{showUpdateDetailsTask:t,wpcomReconnectUrl:o}=wcpaySettings;return[...e,...(0,ce.x)({showUpdateDetailsTask:t,wpcomReconnectUrl:o,showGoLiveTask:!0})]})})()})();