(()=>{"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 p=document.getElementsByTagName("script"),l=0;l<p.length;l++){var d=p[l];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,p=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);p<i.length;p++)a=i[p],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,p=window.wc.sanitize;var l=o(87),d=o(790);const u=(0,s.getPaymentMethodData)("paypal",{}),m=()=>(0,d.jsx)(l.RawHTML,{children:(0,p.sanitizeHTML)(u.description||"")}),w={name:"paypal",label:(0,d.jsx)("img",{src:`${s.WC_ASSET_URL}/images/paypal.png`,alt:(0,c.decodeEntities)(u.title||(0,i.__)("PayPal","woocommerce"))}),placeOrderButtonLabel:(0,i.__)("Proceed to PayPal","woocommerce"),content:(0,d.jsx)(m,{}),edit:(0,d.jsx)(m,{}),canMakePayment:()=>!0,ariaLabel:(0,c.decodeEntities)(u?.title||(0,i.__)("Payment via PayPal","woocommerce")),supports:{features:u.supports??[]}};if((0,a.registerPaymentMethod)(w),u.isButtonsEnabled){const e=(0,l.lazy)(()=>Promise.all([o.e(219),o.e(991)]).then(o.bind(o,991))),t=()=>{const t=u?.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:u.isProductPage,appSwitchRequestOrigin:u.appSwitchRequestOrigin};return(0,d.jsx)(l.Suspense,{fallback:null,children:(0,d.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,d.jsx)(t,{}),edit:(0,d.jsx)(t,{}),canMakePayment:()=>!0,supports:{features:["products"]}})}})();