(()=>{"use strict";var e,t,n={609:e=>{e.exports=window.React},790:e=>{e.exports=window.ReactJSXRuntime},703:e=>{e.exports=window.wc.wcSettings},455:e=>{e.exports=window.wp.apiFetch},143:e=>{e.exports=window.wp.data},87:e=>{e.exports=window.wp.element},723:e=>{e.exports=window.wp.i18n}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="webpackWcBlocksPaymentMethodExtensionJsonp:",o.l=(n,r,a,i)=>{if(e[n])e[n].push(r);else{var s,c;if(void 0!==a)for(var l=document.getElementsByTagName("script"),p=0;p<l.length;p++){var d=l[p];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+a){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+a),s.src=n),e[n]=[r];var u=(t,r)=>{s.onerror=s.onload=null,clearTimeout(m);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},m=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={722:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=a);var i=o.p+o.u(t),s=new Error;o.l(i,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,a,[i,s,c]=n,l=0;if(i.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);c&&c(o)}for(t&&t(n);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=globalThis.webpackChunkwebpackWcBlocksPaymentMethodExtensionJsonp=globalThis.webpackChunkwebpackWcBlocksPaymentMethodExtensionJsonp||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();const a=window.wc.wcBlocksRegistry;var i=o(723),s=o(703);const c=window.wp.htmlEntities,l=window.wc.sanitize;var p,d=o(87),u=o(790);const m=(0,s.getPaymentMethodData)("paypal",{}),w=()=>(0,u.jsx)(d.RawHTML,{children:(0,l.sanitizeHTML)(m.description||"")}),g={name:"paypal",label:(0,u.jsx)("img",{src:`${s.WC_ASSET_URL}/images/paypal.png`,alt:(0,c.decodeEntities)(m.title||(0,i.__)("PayPal","woocommerce"))}),placeOrderButtonLabel:(0,i.__)("Proceed to PayPal","woocommerce"),content:(0,u.jsx)(w,{}),edit:(0,u.jsx)(w,{}),canMakePayment:()=>!0,ariaLabel:(0,c.decodeEntities)(m?.title||(0,i.__)("Payment via PayPal","woocommerce")),supports:{features:null!==(p=m.supports)&&void 0!==p?p:[]}};if((0,a.registerPaymentMethod)(g),m.isButtonsEnabled){const e=(0,d.lazy)((()=>Promise.all([o.e(774),o.e(278)]).then(o.bind(o,278)))),t=()=>{const t=m?.buttonsOptions;if(!t||!t["client-id"])return null;const n={clientId:t["client-id"],merchantId:t["merchant-id"],partnerAttributionId:t["partner-attribution-id"],components:t.components,disableFunding:t["disable-funding"],enableFunding:t["enable-funding"],currency:t.currency,intent:t.intent,pageType:t["page-type"],isProductPage:m.isProductPage,appSwitchRequestOrigin:m.appSwitchRequestOrigin};return(0,u.jsx)(d.Suspense,{fallback:null,children:(0,u.jsx)(e,{...n})})};(0,a.registerExpressPaymentMethod)({name:(0,i.__)("PayPal","woocommerce"),title:(0,i.__)("PayPal","woocommerce"),description:(0,i.__)("PayPal Buttons","woocommerce"),gatewayId:"paypal",paymentMethodId:"paypal",content:(0,u.jsx)(t,{}),edit:(0,u.jsx)(t,{}),canMakePayment:()=>!0,supports:{features:["products"]}})}})();