1(()=>{"use strict";var t={1864(t,e,n){const r=window.wp.element,o=window.wp.i18n,i=window.wc.wcBlocksRegistry,a=window.wp.data;function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return l(s,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function s(){}function f(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(l(e={},r,function(){return this}),e),d=f.prototype=c.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,l(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=f,l(d,"constructor",f),l(f,"constructor",s),s.displayName="GeneratorFunction",l(f,o,"GeneratorFunction"),l(d),l(d,o,"Generator"),l(d,r,function(){return this}),l(d,"toString",function(){return"[object Generator]"}),(u=function(){return{w:i,m:y}})()}function l(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}l=function(t,e,n,r){function i(e,n){l(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},l(t,e,n,r)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){p(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function p(t,e,n){return(e=function(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function y(_x){return v.apply(this,arguments)}function v(){return t=u().m(function t(e){var n,r,o,i,a,c,l,s,p,d,y=arguments;return u().w(function(t){for(;;)switch(t.n){case 0:return n=e.endpoint,r=e.nonce,o=y.length>1&&void 0!==y[1]?y[1]:{},t.n=1,fetch(n,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(f({nonce:r},o))});case 1:return i=t.v,t.n=2,i.json();case 2:if((a=t.v).success){t.n=3;break}throw(d=new Error((null===(c=a.data)||void 0===c?void 0:c.message)||"")).isUserFacing=Boolean(null===(l=a.data)||void 0===l?void 0:l.message),d.errors=null===(s=a.data)||void 0===s?void 0:s.errors,d.refresh=Boolean(null===(p=a.data)||void 0===p?void 0:p.refresh),d;case 3:return t.a(2,a.data)}},t)}),v=function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){d(i,r,o,a,c,"next",t)}function c(t){d(i,r,o,a,c,"throw",t)}a(void 0)})},v.apply(this,arguments);var t}var m="__ppcpV6ScriptPromises";function b(t){var e=(window[m]||(window[m]={}),window[m]);return e[t]||(e[t]=new Promise(function(n,r){var o=document.createElement("script");o.src=t,o.async=!0,o.onload=n,o.onerror=function(){o.remove(),delete e[t],r(new Error("Failed to load script: ".concat(t)))},document.head.appendChild(o)})),e[t]}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function g(t,e,n){return(e=function(t){var e=function(t){if("object"!=h(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==h(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=g(g({},"googlepay",{configKey:"google_pay",sdkComponent:"googlepay-payments",gatewayId:"ppcp-googlepay"}
1),"applepay",{configKey:"apple_pay",sdkComponent:"applepay-payments",gatewayId:"ppcp-applepay",fundingSource:"apple_pay"}),S=Object.keys(w);function O(t){return S.filter(function(e){return function(t,e){var n;return!(null===(n=function(t,e){var n=w[e];return n?t[n.configKey]:void 0}(t,e))||void 0===n||!n.enabled)}(t,e)}).map(function(t){return w[t].sdkComponent})}function k(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return _(l,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(_(e={},r,function(){return this}),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,_(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,_(f,"constructor",l),_(l,"constructor",u),u.displayName="GeneratorFunction",_(l,o,"GeneratorFunction"),_(f),_(f,o,"Generator"),_(f,r,function(){return this}),_(f,"toString",function(){return"[object Generator]"}),(k=function(){return{w:i,m:p}})()}function _(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}_=function(t,e,n,r){function i(e,n){_(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},_(t,e,n,r)}function E(t){return function(t){if(Array.isArray(t))return P(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||A(t)||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 j(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||A(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e){if(t){if("string"==typeof t)return P(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(t,e):void 0}}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function C(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}var x="__ppcpV6InstancePromise",T="__ppcpV6ClientMetadataId";function I(){return window[x]||null}function G(){var t,e;return window[T]||(window[T]=(null===(t=window.crypto)||void 0===t||null===(e=t.randomUUID)||void 0===e?void 0:e.call(t))||"ppcp-".concat(Date.now(),"-").concat(Math.random().toString(16).slice(2))),window[T]}var N={product:"product-details",cart:"cart",checkout:"checkout","pay-now":"checkout","mini-cart":"mini-cart","cart
1-block":"cart","checkout-block":"checkout"};function L(t,e){return I()||(window[x]=function(_x,t){return D.apply(this,arguments)}(t,e).catch(function(t){throw delete window[x],t})),I()}function D(){var t;return t=k().m(function t(e,n){var r,o,i,a,c,u,l,s,f,p;return k().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([b(e.sdk_url),y(e.ajax.client_token)]);case 1:if(u=t.v,l=j(u,2),s=l[1],null!==(r=window.paypal)&&void 0!==r&&r.createInstance){t.n=2;break}throw new Error("PayPal SDK v6 global not found after script load.");case 2:return f=["paypal-payments","venmo-payments"],null!==(o=e.card_fields)&&void 0!==o&&o.enabled&&f.push("card-fields"),null!==(i=e.card_button)&&void 0!==i&&i.enabled&&f.push("paypal-guest-payments"),null!==(a=e.fastlane)&&void 0!==a&&a.enabled&&f.push("fastlane"),f.push.apply(f,E(O(e))),null!==(c=e.messages)&&void 0!==c&&c.enabled&&f.push("paypal-messages"),t.n=3,window.paypal.createInstance({clientToken:s.client_token,components:f,pageType:N[n]||"checkout",locale:e.locale,clientMetadataId:G()});case 3:return p=t.v,document.dispatchEvent(new CustomEvent("ppcp-sdk-v6-ready",{detail:{sdkInstance:p}})),t.a(2,p)}},t)}),D=function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){C(i,r,o,a,c,"next",t)}function c(t){C(i,r,o,a,c,"throw",t)}a(void 0)})},D.apply(this,arguments)}function R(){var t,e,n,r=window.wc_ppcp_sdk_v6?window.wc_ppcp_sdk_v6:((null===(e=window.wc)||void 0===e||null===(e=e.wcSettings)||void 0===e||null===(n=e.getSetting)||void 0===n?void 0:n.call(e,"paymentMethodData"))||{})["ppcp-sdk-v6"]||null;return null!=r&&null!==(t=r.fastlane)&&void 0!==t&&t.enabled?r:null}function F(t){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(t)}function M(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return B(l,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(B(e={},r,function(){return this}),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,B(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,B(f,"constructor",l),B(l,"constructor",u),u.displayName="GeneratorFunction",B(l,o,"GeneratorFunction"),B(f),B(f,o,"Generator"),B(f,r,function(){return this}),B(f,"toString",function(){return"[object Generator]"}),(M=function(){return{w:i,m:p}})()}function B(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}B=function(t,e,n,r){function i(e,n){B(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},B(t,e,n,r)}function U(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function H(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,q(r.key),r)}}function q(t){var e=function(t){if("object"!=F(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=F(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==F(e)?e:e+""}var J=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.namespace=e,this.connection=null,this.identity=null,this.profile=null,this.FastlaneCardComponent=null,this.FastlanePaymentComponent=null,this.FastlaneWatermarkComponent=null},e=[{key:"connect",value:function(t){var e=R();return e?this.connectV6(e,t):this.connectV5(t)}},{key:"connectV6",value:(n=M().m(function t(e,n){var r,o;return M().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,L(e,e.page_context||"checkout");case 1:return r=t.v,o=this,t.n=2,r.createFastlane(n);case 2:o.init.call(o,t.v);case 3:return t.a(2)}},t,this)}
1),r=function(){var t=this,e=arguments;return new Promise(function(r,o){var i=n.apply(t,e);function a(t){U(i,r,o,a,c,"next",t)}function c(t){U(i,r,o,a,c,"throw",t)}a(void 0)})},function(_x,t){return r.apply(this,arguments)})},{key:"connectV5",value:function(t){var e=this;return new Promise(function(n,r){window[e.namespace]?window[e.namespace].Fastlane(t).then(function(t){e.init(t),n()}).catch(function(t){console.error(t),r(t)}):r(new Error("Namespace ".concat(e.namespace," not found on window object")))})}},{key:"init",value:function(t){this.connection=t,this.identity=this.connection.identity,this.profile=this.connection.profile,this.FastlaneCardComponent=this.connection.FastlaneCardComponent,this.FastlanePaymentComponent=this.connection.FastlanePaymentComponent,this.FastlaneWatermarkComponent=this.connection.FastlaneWatermarkComponent}},{key:"setLocale",value:function(t){this.connection.setLocale(t)}}],e&&H(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n,r}();const W=J;function V(t){var e,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",i=null===(e=window.wc_ppcp_axo)||void 0===e?void 0:e.wp_debug,a=null===(n=window.wc_ppcp_axo)||void 0===n||null===(n=n.ajax)||void 0===n||null===(n=n.frontend_logger)||void 0===n?void 0:n.endpoint,c=null===(r=window.wc_ppcp_axo)||void 0===r?void 0:r.logging_enabled;if(i)switch(o){case"error":console.error("[AXO] ".concat(t));break;case"warn":console.warn("[AXO] ".concat(t));break;default:console.log("[AXO] ".concat(t))}a&&c&&fetch(a,{method:"POST",credentials:"same-origin",body:JSON.stringify({nonce:window.wc_ppcp_axo.ajax.frontend_logger.nonce,log:{message:t,level:o}})})}function K(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return $(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function X(t){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X(t)}var z=function(t){return"object"===X(t)&&null!==t},Q=function(t){return z(t)?Object.fromEntries(Object.entries(t).map(function(t){var e=K(t,2),n=e[0],r=e[1];return[n,z(r)?Q(r):r]}).filter(function(t){var e=K(t,2),n=(e[0],e[1]);return z(n)?Object.keys(n).length>0:function(t){return""!==t}(n)})):t};function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Z=["VISA","MASTERCARD","AMEX","DISCOVER"];const tt=function(t){var e=t.merchant_country||"US";return(0,r.useMemo)(function(){var n,r,o=new Set((null===(n=t.allowed_cards)||void 0===n?void 0:n[e])||Z),i=new Set((t.disable_cards||[]).map(function(t){return t.toUpperCase()}));return(r=o,function(t){if(Array.isArray(t))return Y(t)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return Y(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(t,e):void 0}}(r)||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.")}()).filter(function(t){return!i.has(t)})},[t.allowed_cards,t.disable_cards,e])};function et(t){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(t)}function nt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function rt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?nt(Object(n),!0).forEach(function(e){ot(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ot(t,e,n){return(e=function(t){var e=function(t){if("object"!=et(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==et(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var it="woocommerce-paypal-payments/axo-block",at={isPayPalLoaded:!1,isGuest:!0,isAxoActive:!1,isAxoScriptLoaded:!1,isEmailSubmitted:!1,isEmailLookupCompleted:!1,shippingAddress:null,cardDetails:null,phoneNumber:"",cardChangeHandler:null};if(!(0,a.select)(it)){var ct=(0,a.createReduxStore)(it,{reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:at,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_PAYPAL_LOADED":return rt(rt({},t),{},{isPayPalLoaded:e.payload});case"SET_IS_GUEST":return rt(rt({},t),{},{isGuest:e.payload});case"SET_IS_AXO_ACTIVE":return rt(rt({},t),{},{isAxoActive:e.payload});case"SET_IS_AXO_SCRIPT_LOADED":return rt(rt({},t),{},{isAxoScriptLoaded:e.payload});case"SET_IS_EMAIL_SUBMITTED":return rt(rt({},t),{},{isEmailSubmitted:e.payload});case"SET_IS_EMAIL_LOOKUP_COMPLETED":return rt(rt({},t),{},{isEmailLookupCompleted:e.payload});case"SET_SHIPPING_ADDRESS":return rt(rt({},t),{},{shippingAddress:e.payload});case"SET_CARD_DETAILS":return rt(rt({},t),{},{cardDetails:e.payload});case"SET_PHONE_NUMBER":return rt(rt({},t),{},{phoneNumber:e.payload});case"SET_CARD_CHANGE_HANDLER":return rt(rt({},t),{},{cardChangeHandler:e.payload});default:return t}},actions:{setIsPayPalLoaded:function(t){return{type:"SET_IS_PAYPAL_LOADED",payload:t}},setIsGuest:function(t){return{type:"SET_IS_GUEST",payload:t}},setIsAxoActive:function(t){return{type:"SET_IS_AXO_ACTIVE",payload:t}},setIsAxoScriptLoaded:function(t){return{type:"SET_IS_AXO_SCRIPT_LOADED",payload:t}},setIsEmailSubmitted:function(t){return{type:"SET_IS_EMAIL_SUBMITTED",payload:t}},setIsEmailLookupCompleted:function(t){return{type:"SET_IS_EMAIL_LOOKUP_COMPLETED",payload:t}},setShippingAddress:function(t){return{type:"SET_SHIPPING_ADDRESS",payload:t}},setCardDetails:function(t){return{type:"SET_CARD_DETAILS",payload:t}},setPhoneNumber:function(t){return{type:"SET_PHONE_NUMBER",payload:t}},setCardChangeHandler:function(t){return{type:"SET_CARD_CHANGE_HANDLER",payload:t}}},selectors:{getIsPayPalLoaded:function(t){return t.isPayPalLoaded},getIsGuest:function(t){return t.isGuest},getIsAxoActive:function(t){return t.isAxoActive},getIsAxoScriptLoaded:function(t){return t.isAxoScriptLoaded},getIsEmailSubmitted:function(t){return t.isEmailSubmitted},getIsEmailLookupCompleted:function(t){return t.isEmailLookupCompleted},getShippingAddress:function(t){return t.shippingAddress},getCardDetails:function(t){return t.cardDetails},getPhoneNumber:function(t){return t.phoneNumber},getCardChangeHandler:function(t){return t.cardChangeHandler}}});(0,a.register)(ct)}var ut=function(t){(0,a.dispatch)(it).setIsGuest(t)},lt=function(t){(0,a.dispatch)(it).setIsEmailLookupCompleted(t)};function st(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return ft(l,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);
1try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(ft(e={},r,function(){return this}),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,ft(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,ft(f,"constructor",l),ft(l,"constructor",u),u.displayName="GeneratorFunction",ft(l,o,"GeneratorFunction"),ft(f),ft(f,o,"Generator"),ft(f,r,function(){return this}),ft(f,"toString",function(){return"[object Generator]"}),(st=function(){return{w:i,m:p}})()}function ft(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}ft=function(t,e,n,r){function i(e,n){ft(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},ft(t,e,n,r)}function pt(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}const yt=function(t,e,n){var o,i,c=(o=(0,r.useState)(null),i=2,function(t){if(Array.isArray(t))return t}(o)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(o,i)||function(t,e){if(t){if("string"==typeof t)return dt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dt(t,e):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1],s=(0,r.useRef)(!1),f=(0,r.useRef)({axoConfig:e,ppcpConfig:n}),p=(0,r.useCallback)(Q,[]),d=(0,a.useSelect)(function(t){return{isPayPalLoaded:t(it).getIsPayPalLoaded()}},[]).isPayPalLoaded,y=tt(e),v=(0,r.useMemo)(function(){return p(f.current.axoConfig.style_options)},[p]),m=function(t){return(0,r.useMemo)(function(){var e=t.enabled_shipping_locations||[];return Array.isArray(e)?e:[]},[t.enabled_shipping_locations])}(e);return(0,r.useEffect)(function(){var e=function(){var e,n=(e=st().m(function e(){var n,r,o;return st().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!s.current&&!u&&d){e.n=1;break}return e.a(2);case 1:return s.current=!0,V("Init Fastlane"),e.p=2,r=new W(t),f.current.axoConfig.environment.is_sandbox&&window.localStorage.setItem("axoEnv","sandbox"),e.n=3,r.connect({locale:null===(n=f.current.ppcpConfig)||void 0===n?void 0:n.locale,styles:v,cardOptions:{allowedBrands:y},shippingAddressOptions:{allowedLocations:m}});case 3:r.setLocale("en_us"),l(r),e.n=5;break;case 4:e.p=4,o=e.v,V("Failed to initialize Fastlane: ".concat(o),"error");case 5:return e.p=5,s.current=!1,e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(t){pt(i,r,o,a,c,"next",t)}function c(t){pt(i,r,o,a,c,"throw",t)}a(void 0)})});return function(){return n.apply(this,arguments)}}();e()},[u,v,d,t,y,m]),(0,r.useEffect)(function(){f.current={axoConfig:e,ppcpConfig:n}},[e,n]),u},vt=function(){var t=(0,a.useSelect)(function(t){return t("wc/store/cart").getCustomerData()}),e=(0,a.useDispatch)("wc/store/cart"),n=e.setShippingAddress,o=e.setBillingAddress,i=(0,r.useCallback)(function(t){n(t)},[n]),c=(0,r.useCallback)(function(t){o(t)},[o]);return(0,r.useMemo)(function(){return{shippingAddress:t.shippingAddress,billingAddress:t.billingAddress,setShippingAddress:i,setBillingAddress:c}},[t.shippingAddress,t.billingAddress,i,c])};function mt(t,e){void 0===e&&(e={});var n=document.createElement("script");return n.src=t,Object.keys(e).forEach(function(t){n.setAttribute(t,e[t]),"data-csp-nonce"===t&&n.setAttribute("nonce",e["data-csp-nonce"])}),n}function bt(t,e){if(void 0===e&&(e=Promise),gt(t,e),"undefined"==typeof document)return e.resolve(null);var n=function(t){var e,n,r=t.sdkBaseUrl,o=t.environment,i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["sdkBaseUrl","environment"]),a=r||function(t){return"sandbox"===t?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}(o),c=i,u=Object.keys(c).filter(function(t){return void 0!==c[t]&&null!==c[t]&&""!==c[t]}).reduce(function(t,e){var n,r=c[e].toString();return n=function(t,e){return(e?"-":"")+t.toLowerCase()},"data"===(e=e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,n)).substring(0,4)||"crossorigin"===e?t.attributes[e]=r:t.queryParams[e]=r,t},{queryParams:{},attributes:{}}),l=u.queryParams,s=u.attributes;return l["merchant-id"]&&-1!==l["merchant-id"].indexOf(",")&&(s["data-merchant-id"]=l["merchant-id"],l["merchant-id"]="*"),{url:"".concat(a,"?").concat((e=l,n="",Object.keys(e).forEach(function(t){0!==n.length&&(n+="&"),n+=t+"="+e[t]}),n)),attributes:s}}(t),r=n.url,o=n.attributes,i=o["data-namespace"]||"paypal",a=ht(i);return o["data-js-sdk-library"]||(o["data-js-sdk-library"]="paypal-js"),function(t,e){var n=document.querySelector('script[src="'.concat(t,'"]'));if(null===n)return null;var r=mt(t,e),o=n.cloneNode();if(delete o.dataset.uidAuto,Object.keys(o.dataset).length!==Object.keys(r.dataset).length)return null;var i=!0;return Object.keys(o.dataset).forEach(function(t){o.dataset[t]!==r.dataset[t]&&(i=!1)}),i?n:null}(r,o)&&a?e.resolve(a):function(t,e){void 0===e&&(e=Promise),gt(t,e);var n=t.url,r=t.attributes;if("string"!=typeof n||0===n.length)throw new Error("Invalid url.");if(void 0!==r&&"object"!=typeof r)throw new Error("Expected attributes to be an object.");return new e(function(t,e){if("undefined"==typeof document)return t();!function(t){var e=t.onSuccess,n=t.onError,r=mt(t.url,t.attributes);r.onerror=n,r.onload=e,document.head.insertBefore(r,document.head.firstElementChild)}({url:n,attributes:r,onSuccess:function(){return t()},onError:function(){var t=new Error('The script "'.concat(n,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return e(t)}})})}({url:r,attributes:o},e).then(function(){var t=ht(i);if(t)return t;throw new Error("The window.".concat(i," global variable is not available."))})}function ht(t){return window[t]}function gt(t,e){if("object"!=typeof t||null===t)throw new Error("Expected an options object.");var n=t.environment;if(n&&"production"!==n&&"sandbox"!==n)throw new Error('The `environment` option must be either "production" or "sandbox".');if(void 0!==e&&"function"!=typeof e)throw new Error("Expected PromisePonyfill to be a function.")}function wt(t){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wt(t)}function St(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}
1finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||kt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ot(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=kt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var _n=0,r=function(){};return{s:r,n:function(){return _n>=t.length?{done:!0}:{done:!1,value:t[_n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}function kt(t,e){if(t){if("string"==typeof t)return _t(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_t(t,e):void 0}}function _t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Et(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,jt(r.key),r)}}function jt(t){var e=function(t){if("object"!=wt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==wt(e)?e:e+""}"function"==typeof SuppressedError&&SuppressedError;var At=function(){return t=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.paypal=null,this.buttons=new Map,this.messages=new Map,this.renderEventName="ppcp-render",document.ppcpWidgetBuilderStatus=function(){console.log({buttons:e.buttons,messages:e.messages})},jQuery(document).off(this.renderEventName).on(this.renderEventName,function(){e.renderAll()})},(e=[{key:"setPaypal",value:function(t){this.paypal=t,jQuery(document).trigger("ppcp-paypal-loaded",t)}},{key:"registerButtons",value:function(t,e){t=this.sanitizeWrapper(t),this.buttons.set(this.toKey(t),{wrapper:t,options:e})}},{key:"renderButtons",value:function(t){t=this.sanitizeWrapper(t);var e=this.toKey(t);if(this.buttons.has(e)&&!this.hasRendered(t)){var n=this.buttons.get(e),r=this.paypal.Buttons(n.options);if(r.isEligible()){var o=this.buildWrapperTarget(t);o&&(r.hasReturned()?r.resume():r.render(o))}else this.buttons.delete(e)}}},{key:"renderAllButtons",value:function(){var t,e=Ot(this.buttons);try{for(e.s();!(t=e.n()).done;){var n=St(t.value,1)[0];this.renderButtons(n)}}catch(t){e.e(t)}finally{e.f()}}},{key:"removeButtons",value:function(t){var e,n=Ot(this.buttons);try{for(n.s();!(e=n.n()).done;){var r=St(e.value,2),o=r[0],i=r[1];(Array.isArray(i.wrapper)?i.wrapper[0]:i.wrapper)===t&&this.buttons.delete(o)}}catch(t){n.e(t)}finally{n.f()}}},{key:"registerMessages",value:function(t,e){this.messages.set(t,{wrapper:t,options:e})}},{key:"renderMessages",value:function(t){var e=this;if(this.messages.has(t)){var n=this.messages.get(t);if(this.hasRendered(t))document.querySelector(t).setAttribute("data-pp-amount",n.options.amount);else{var r=this.paypal.Messages(n.options);r.render(n.wrapper),setTimeout(function(){e.hasRendered(t)||r.render(n.wrapper)},100)}}}},{key:"renderAllMessages",value:function(){var t,e=Ot(this.messages);try{for(e.s();!(t=e.n()).done;){var n=St(t.value,2),r=n[0];n[1],this.renderMessages(r)}}catch(t){e.e(t)}finally{e.f()}}},{key:"renderAll",value:function(){this.renderAllButtons(),this.renderAllMessages()}},{key:"hasRendered",value:function(t){var e=t;if(Array.isArray(t)){e=t[0];var n,r=Ot(t.slice(1));try{for(r.s();!(n=r.n()).done;)e+=" .item-"+n.value}catch(t){r.e(t)}finally{r.f()}}var o=document.querySelector(e);return o&&o.hasChildNodes()}},{key:"sanitizeWrapper",value:function(t){return Array.isArray(t)&&1===(t=t.filter(function(t){return!!t})).length&&(t=t[0]),t}},{key:"buildWrapperTarget",value:function(t){var e=t;if(Array.isArray(t)){var n=jQuery(t[0]);if(!n.length)return;var r="item-"+t[1],o=n.find("."+r);o.length||(o=jQuery('<div class="'.concat(r,'"></div>')),n.append(o)),e=o.get(0)}return jQuery(e).length?e:null}},{key:"toKey",value:function(t){return Array.isArray(t)?JSON.stringify(t):t}}])&&Et(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();window.widgetBuilder=window.widgetBuilder||new At;const Pt=window.widgetBuilder;var Ct=n.cjs(function(t,e){var n=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===r}(t)}(t)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(t,e){return!1!==e.clone&&e.isMergeableObject(t)?u((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function i(t,e,n){return t.concat(e).map(function(t){return o(t,n)})}function a(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}(t))}function c(t,e){try{return e in t}catch(t){return!1}}function u(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var l=Array.isArray(e);return l===Array.isArray(t)?l?r.arrayMerge(t,e,r):function(t,e,n){var r={};return n.isMergeableObject(t)&&a(t).forEach(function(e){r[e]=o(t[e],n)}),a(e).forEach(function(i){(function(t,e){return c(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(c(t,i)&&n.isMergeableObject(e[i])?r[i]=function(t,e){if(!e.customMerge)return u;var n=e.customMerge(t);return"function"==typeof n?n:u}(i,n)(t[i],e[i],n):r[i]=o(e[i],n))}),r}(t,e,r):o(e,r)}u.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,n){return u(t,n,e)},{})};var l=u;
1t.exports=l}),xt=n.n(Ct),Tt=function(t){return t.replace(/([-_]\w)/g,function(t){return t[1].toUpperCase()})},It=["checkout","checkout-block","pay-now"],Gt=function(t){var e=function(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[Tt(n)]=t[n]);return e}(t.url_params);t.script_attributes&&(e=xt()(e,t.script_attributes));var n=function(t){var e=function(t){var e,n,r;if(!0!==(null==t||null===(e=t.user)||void 0===e?void 0:e.is_logged))return null;var o=null==t||null===(n=t.save_payment_methods)||void 0===n?void 0:n.id_token;return o?!0===(null==t||null===(r=t.vault_component)||void 0===r?void 0:r.is_eligible)&&It.includes(null==t?void 0:t.context)?null:o:null}(t);return e?{"data-user-id-token":e}:{}}(t);return xt().all([e,n])};function Nt(t){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nt(t)}function Lt(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return Dt(l,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(Dt(e={},r,function(){return this}),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,Dt(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,Dt(f,"constructor",l),Dt(l,"constructor",u),u.displayName="GeneratorFunction",Dt(l,o,"GeneratorFunction"),Dt(f),Dt(f,o,"Generator"),Dt(f,r,function(){return this}),Dt(f,"toString",function(){return"[object Generator]"}),(Lt=function(){return{w:i,m:p}})()}function Dt(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Dt=function(t,e,n,r){function i(e,n){Dt(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},Dt(t,e,n,r)}function Rt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Ft(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rt(Object(n),!0).forEach(function(e){Mt(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Mt(t,e,n){return(e=function(t){var e=function(t){if("object"!=Nt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Nt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Nt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bt(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}var Ut=new Map,Ht=new Map,qt=function(){var t,e=(t=Lt().m(function t(e,n){var r,o;return Lt().w(function(t){for(;;)switch(t.n){case 0:if(e){t.n=1;break}throw new Error("Namespace is required");case 1:if(!Ut.has(e)){t.n=2;break}return console.log("Script already loaded for namespace: ".concat(e)),t.a(2,Ut.get(e));case 2:if(!Ht.has(e)){t.n=3;break}return console.log("Script loading in progress for namespace: ".concat(e)),t.a(2,Ht.get(e));case 3:return r=Ft(Ft({},Gt(n)),{},{"data-namespace":e}),o=new Promise(function(t,n){bt(r).then(function(n){Pt.setPaypal(n),Ut.set(e,n),console.log("Script loaded for namespace: ".concat(e)),t(n)}).catch(function(t){console.error("Failed to load script for namespace: ".concat(e),t),n(t)}).finally(function(){Ht.delete(e)})}),Ht.set(e,o),t.a(2,o)}},t)}),function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){Bt(i,r,o,a,c,"next",t)}function c(t){Bt(i,r,o,a,c,"throw",t)}a(void 0)})});return function(_x,t){return e.apply(this,arguments)}}();function Jt(t){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(t)}function Wt(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return Vt(l,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);
1try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(Vt(e={},r,function(){return this}),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,Vt(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,Vt(f,"constructor",l),Vt(l,"constructor",u),u.displayName="GeneratorFunction",Vt(l,o,"GeneratorFunction"),Vt(f),Vt(f,o,"Generator"),Vt(f,r,function(){return this}),Vt(f,"toString",function(){return"[object Generator]"}),(Wt=function(){return{w:i,m:p}})()}function Vt(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Vt=function(t,e,n,r){function i(e,n){Vt(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},Vt(t,e,n,r)}function Kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function $t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kt(Object(n),!0).forEach(function(e){Xt(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Xt(t,e,n){return(e=function(t){var e=function(t){if("object"!=Jt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Jt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zt(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Qt(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return Yt(l,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(Yt(e={},r,function(){return this}),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,Yt(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,Yt(f,"constructor",l),Yt(l,"constructor",u),u.displayName="GeneratorFunction",Yt(l,o,"GeneratorFunction"),Yt(f),Yt(f,o,"Generator"),Yt(f,r,function(){return this}),Yt(f,"toString",function(){return"[object Generator]"}),(Qt=function(){return{w:i,m:p}})()}function Yt(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Yt=function(t,e,n,r){function i(e,n){Yt(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},Yt(t,e,n,r)}function Zt(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}const te=function(t){var e=t.fastlaneSdk,n=t.name,o=void 0===n?"fastlane-watermark-container":n,i=t.includeAdditionalInfo,a=void 0===i||i,c=(0,r.useRef)(null),u=(0,r.useRef)(null);return(0,r.useEffect)(function(){var t=function(){var t,n=(t=Qt().m(function t(){var n,r;return Qt().w(function(t){for(;;)switch(t.p=t.n){case 0:if(c.current){t.n=1;break}return t.a(2);case 1:return c.current.innerHTML="",t.p=2,t.n=3,e.FastlaneWatermarkComponent({includeAdditionalInfo:a});case 3:n=t.v,u.current=n,n.render("#".concat(o)),t.n=5;break;case 4:t.p=4,r=t.v,V("Error rendering watermark: ".concat(r),"error");case 5:return t.a(2)}},t,null,[[2,4]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){Zt(i,r,o,a,c,"next",t)}function c(t){Zt(i,r,o,a,c,"throw",t)}a(void 0)})});return function(){return n.apply(this,arguments)}}();return t(),function(){c.current&&(c.current.innerHTML="")}},[e,o,a]),React.createElement("div",{id:o,ref:c})};var ee={container:null,root:null},ne=function(){if(ee.root&&ee.root.unmount(),ee.container)if(ee.container.parentNode)ee.container.parentNode.removeChild(ee.container);else{var t=document.querySelector(".wc-block-checkout-axo-block-watermark-container");t&&t.remove()}Object.assign(ee,{container:null,root:null})};const re=function(t){var e=t.fastlaneSdk,n=(0,a.useSelect)(function(t){return t(it).getIsAxoActive()}),o=(0,a.useSelect)(function(t){return t(it).getIsAxoScriptLoaded()}),i=window.wc_ppcp_axo;return(0,r.useEffect)(function(){if("1"===(null==i?void 0:i.show_watermark))return n||!n&&!o?(function(){var t=document.querySelector(".wp-block-woocommerce-checkout-contact-information-block .wc-block-components-text-input");if(t&&!ee.container){var e=t.querySelector('input[id="email"]');if(e){ee.container=document.createElement("div"),ee.container.setAttribute("class","wc-block-checkout-axo-block-watermark-container");var n=t.querySelector(".wc-block-axo-email-submit-button-container")||e;n.parentNode.insertBefore(ee.container,n.nextSibling),ee.root=(0,r.createRoot)(ee.container)}}}
1(),function(t){var e,n=t.isAxoActive,o=t.fastlaneSdk;e=n||t.isAxoScriptLoaded?n?(0,r.createElement)(te,{fastlaneSdk:o,name:"fastlane-watermark-email",includeAdditionalInfo:!0}):null:(0,r.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"}),ee.root&&ee.root.render(e)}({isAxoActive:n,isAxoScriptLoaded:o,fastlaneSdk:e})):ne(),ne},[e,n,o]),null},oe=function(t){var e=t.handleSubmit,n=(0,a.useSelect)(function(t){return{isGuest:t(it).getIsGuest(),isAxoActive:t(it).getIsAxoActive(),isEmailSubmitted:t(it).getIsEmailSubmitted()}}),r=n.isGuest,i=n.isAxoActive,c=n.isEmailSubmitted;return r&&i?React.createElement("button",{type:"button",onClick:e,className:"wc-block-components-button wp-element-button ".concat(c?"is-loading":""),disabled:c},React.createElement("span",{className:"wc-block-components-button__text",style:{visibility:c?"hidden":"visible"}},(0,o.__)("Continue","woocommerce-paypal-payments")),c&&React.createElement("span",{className:"wc-block-components-spinner","aria-hidden":"true",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})):null};function ie(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return ae(l,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(ae(e={},r,function(){return this}),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,ae(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,ae(f,"constructor",l),ae(l,"constructor",u),u.displayName="GeneratorFunction",ae(l,o,"GeneratorFunction"),ae(f),ae(f,o,"Generator"),ae(f,r,function(){return this}),ae(f,"toString",function(){return"[object Generator]"}),(ie=function(){return{w:i,m:p}})()}function ae(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}ae=function(t,e,n,r){function i(e,n){ae(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},ae(t,e,n,r)}function ce(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}var ue=null,le={container:null,root:null,unsubscribe:null},se=null,fe=function(){return ue||(ue=document.getElementById("email")),ue},pe=function(t,e){t&&e||V("Shipping or billing address is missing: ".concat(JSON.stringify({shippingAddress:t,billingAddress:e})),"warn");var n={shippingAddress:t,billingAddress:e};V("Snapshot data: ".concat(JSON.stringify(n)));try{localStorage.setItem("axoOriginalCheckoutFields",JSON.stringify(n))}catch(t){V("Error saving to localStorage: ".concat(t),"error")}},de=function(t,e,n){var r,o;V("Populating WooCommerce fields with profile data: ".concat(JSON.stringify(t)));var i=(0,a.dispatch)("wc/store/checkout");"function"==typeof i.__internalSetUseShippingAsBilling&&i.__internalSetUseShippingAsBilling(!1);var c=t.shippingAddress,u=c.address,l=c.name,s=c.phoneNumber,f={first_name:l.firstName,last_name:l.lastName,address_1:u.addressLine1,address_2:u.addressLine2||"",city:u.adminArea2,state:u.adminArea1||"",postcode:u.postalCode,country:u.countryCode,phone:s.nationalNumber};V("Setting WooCommerce shipping address: ".concat(JSON.stringify(f))),e(f);var p=null!==(r=null===(o=t.card)||void 0===o||null===(o=o.paymentSource)||void 0===o||null===(o=o.card)||void 0===o?void 0:o.billingAddress)&&void 0!==r?r:null;if(p){var d={first_name:t.name.firstName,last_name:t.name.lastName,address_1:p.addressLine1,address_2:p.addressLine2||"",city:p.adminArea2,state:p.adminArea1,postcode:p.postalCode,country:p.countryCode};V("Setting WooCommerce billing address: ".concat(JSON.stringify(d))),n(d)}"function"==typeof i.setEditingShippingAddress&&i.setEditingShippingAddress(!1),"function"==typeof i.setEditingBillingAddress&&i.setEditingBillingAddress(!1)};
1const ye=function(t){var e=t.onChangeShippingAddressClick;return React.createElement("a",{className:"wc-block-axo-change-link",role:"button",onClick:function(t){t.preventDefault(),e()}},(0,o.__)("Choose a different shipping address","woocommerce-paypal-payments"))},ve=function(t){var e=t.onChangeShippingAddressClick;return(0,r.useEffect)(function(){var t=document.querySelector("#shipping-fields .wc-block-components-checkout-step__heading");if(t&&!t.querySelector(".wc-block-checkout-axo-block-card__edit")){var n=document.createElement("span");n.className="wc-block-checkout-axo-block-card__edit",t.appendChild(n);var o=(0,r.createRoot)(n);return o.render(React.createElement(ye,{onChangeShippingAddressClick:e})),function(){o.unmount(),n.remove()}}},[e]),null};var me=function(t){if(!document.querySelector("#shipping-fields .wc-block-checkout-axo-block-card__edit")){var e=document.createElement("div");document.body.appendChild(e),(0,r.createRoot)(e).render(React.createElement(ve,{onChangeShippingAddressClick:t}))}};function be(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return he(l,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(he(e={},r,function(){return this}),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,he(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,he(f,"constructor",l),he(l,"constructor",u),u.displayName="GeneratorFunction",he(l,o,"GeneratorFunction"),he(f),he(f,o,"Generator"),he(f,r,function(){return this}),he(f,"toString",function(){return"[object Generator]"}),(be=function(){return{w:i,m:p}})()}function he(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}he=function(t,e,n,r){function i(e,n){he(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},he(t,e,n,r)}function ge(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}var we=function(t,e){V("Update the phone prefill value: ".concat(e)),t.updatePrefills({phoneNumber:e})};var Se="wc/store/checkout",Oe=function(){var t=(0,a.useSelect)(function(t){var e=t(Se);return{isEditingShippingAddress:!e.getEditingShippingAddress||e.getEditingShippingAddress(),isEditingBillingAddress:!e.getEditingBillingAddress||e.getEditingBillingAddress()}},[]),e=t.isEditingShippingAddress,n=t.isEditingBillingAddress,o=(0,a.useDispatch)(Se),i=o.setEditingShippingAddress,c=o.setEditingBillingAddress;return{isEditingShippingAddress:e,isEditingBillingAddress:n,setShippingAddressEditing:(0,r.useCallback)(function(t){"function"==typeof i&&i(t)},[i]),setBillingAddressEditing:(0,r.useCallback)(function(t){"function"==typeof c&&c(t)},[c])}};function ke(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return _e(l,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);
vendor: 4,768 bytes, line 1
1try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(_e(e={},r,function(){return this}),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,_e(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,_e(f,"constructor",l),_e(l,"constructor",u),u.displayName="GeneratorFunction",_e(l,o,"GeneratorFunction"),_e(f),_e(f,o,"Generator"),_e(f,r,function(){return this}),_e(f,"toString",function(){return"[object Generator]"}),(ke=function(){return{w:i,m:p}})()}function _e(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}_e=function(t,e,n,r){function i(e,n){_e(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},_e(t,e,n,r)}function Ee(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function je(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){Ee(i,r,o,a,c,"next",t)}function c(t){Ee(i,r,o,a,c,"throw",t)}a(void 0)})}}function Ae(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return Pe(l,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(Pe(e={},r,function(){return this}),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,Pe(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,Pe(f,"constructor",l),Pe(l,"constructor",u),u.displayName="GeneratorFunction",Pe(l,o,"GeneratorFunction"),Pe(f),Pe(f,o,"Generator"),Pe(f,r,function(){return this}),Pe(f,"toString",function(){return"[object Generator]"}),(Ae=function(){return{w:i,m:p}})()}function Pe(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Pe=function(t,e,n,r){function i(e,n){Pe(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},Pe(t,e,n,r)}function Ce(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function xe(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){Ce(i,r,o,a,c,"next",t)}function c(t){Ce(i,r,o,a,c,"throw",t)}a(void 0)})}}function Te(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return Ie(l,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);
1try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(Ie(e={},r,function(){return this}),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,Ie(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,Ie(f,"constructor",l),Ie(l,"constructor",u),u.displayName="GeneratorFunction",Ie(l,o,"GeneratorFunction"),Ie(f),Ie(f,o,"Generator"),Ie(f,r,function(){return this}),Ie(f,"toString",function(){return"[object Generator]"}),(Te=function(){return{w:i,m:p}})()}function Ie(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Ie=function(t,e,n,r){function i(e,n){Ie(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},Ie(t,e,n,r)}function Ge(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}const Ne=function(t,e,n,o,i){var c=(0,a.useDispatch)(it),u=c.setIsAxoActive,l=c.setIsAxoScriptLoaded,s=c.setShippingAddress,f=c.setCardDetails,p=c.setCardChangeHandler,d=function(t,e,n){var o=(0,a.useDispatch)(it).setIsPayPalLoaded,i=(0,a.useSelect)(function(t){return{isPayPalLoaded:t(it).getIsPayPalLoaded()}},[]).isPayPalLoaded;return(0,r.useEffect)(function(){var r=function(){var r,a=(r=Wt().m(function r(){var a,c,u,l;return Wt().w(function(r){for(;;)switch(r.p=r.n){case 0:if(!R()){r.n=1;break}return o(!0),r.a(2);case 1:if(i||!n){r.n=8;break}return a=window.wc_ppcp_axo,r.p=2,r.n=3,fetch(a.ajax.axo_script_attributes.endpoint,{method:"POST",credentials:"same-origin",body:JSON.stringify({nonce:a.ajax.axo_script_attributes.nonce})});case 3:return c=r.v,r.n=4,c.json();case 4:if((u=r.v).success){r.n=5;break}return V("Failed to load axo script attributes: ".concat(u.data.message),"error"),r.a(2);case 5:return r.n=6,qt(t,$t($t({},e),{},{script_attributes:$t($t({},e.script_attributes),{},{"data-sdk-client-token":u.data.sdk_client_token})}));case 6:o(!0),r.n=8;break;case 7:r.p=7,l=r.v,V("Error loading PayPal script for namespace: ".concat(t,". Error: ").concat(l),"error");case 8:return r.a(2)}},r,null,[[2,7]])}),function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){zt(i,n,o,a,c,"next",t)}function c(t){zt(i,n,o,a,c,"throw",t)}a(void 0)})});return function(){return a.apply(this,arguments)}}();r()},[e,n,i]),i}(t,e,n),y=function(t){var e=Oe().setBillingAddressEditing,n=vt().setBillingAddress,o=(0,a.useDispatch)(it).setCardDetails;return(0,r.useCallback)(xe(Ae().m(function r(){var i,a,c,u,l,s,f,p,d,y,v;return Ae().w(function(r){for(;;)switch(r.n){case 0:if(!t){r.n=4;break}return r.n=1,t.profile.showCardSelector();case 1:if(a=r.v,c=a.selectionChanged,u=a.selectedCard,!c||null==u||null===(i=u.paymentSource)||void 0===i||!i.card){r.n=3;break}return l=u.paymentSource.card,s=l.name,f=l.billingAddress,p="",d="",s&&(y=s.split(" "),p=y[0],d=y.slice(1).join(" ")),v={first_name:p,last_name:d,address_1:(null==f?void 0:f.addressLine1)||"",address_2:(null==f?void 0:f.addressLine2)||"",city:(null==f?void 0:f.adminArea2)||"",state:(null==f?void 0:f.adminArea1)||"",postcode:(null==f?void 0:f.postalCode)||"",country:(null==f?void 0:f.countryCode)||""},r.n=2,Promise.all([new Promise(function(t){o(u),t()}),new Promise(function(t){n(v),t()}),new Promise(function(t){e(!1),t()})]);case 2:r.n=4;break;case 3:V("Selected card or billing address is missing.","error");case 4:return r.a(2)}},r)})),[t,o,n,e])}(o),v=function(t,e){var n=Oe().setShippingAddressEditing,o=vt().setShippingAddress;return(0,r.useCallback)(je(ke().m(function r(){var i,a,c,u,l,s,f;return ke().w(function(r){for(;;)switch(r.n){case 0:if(!t){r.n=3;break}return r.n=1,t.profile.showShippingAddressSelector();case 1:if(i=r.v,a=i.selectionChanged,c=i.selectedAddress,!a){r.n=3;break}return e(c),u=c.address,l=c.name,s=c.phoneNumber,f={first_name:l.firstName,last_name:l.lastName,address_1:u.addressLine1,address_2:u.addressLine2||"",city:u.adminArea2,state:u.adminArea1||"",postcode:u.postalCode,country:u.countryCode,phone:s.nationalNumber},r.n=2,new Promise(function(t){o(f),t()});case 2:return r.n=3,new Promise(function(t){n(!1),t()});case 3:return r.a(2)}},r)})),[t,e,o,n])}(o,s),m=vt(),b=m.shippingAddress,h=m.billingAddress,g=m.setShippingAddress,w=m.setBillingAddress;return function(t){var e,n,o,i,c,u=(0,a.useDispatch)(it).setPhoneNumber,l=(0,a.useSelect)(function(t){return{phoneNumber:t(it).getPhoneNumber()}}).phoneNumber,s=vt(),f=s.shippingAddress,p=s.billingAddress,d=(0,r.useRef)((e=we,n={timeoutId:null,args:null},o=function(){n.timeoutId&&window.clearTimeout(n.timeoutId),n.timeoutId=null,n.args=null},i=function(){n.timeoutId&&(e.apply(null,n.args||[]),o())},c=function(){o();for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n.args=e,n.timeoutId=window.setTimeout(i,250)},c.cancel=o,c.flush=i,c)).current,y=(0,r.useCallback)(function(){var t=(null==p?void 0:p.phone)||"",e=(null==f?void 0:f.phone)||"",n=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/^\+?[01]+/,"").replace(/[^0-9]/g,"");return 10===t.length?t:""}(t||e);n&&n!==l&&u(n)},[p,f,l,u]);(0,r.useEffect)(function(){y()},[y]),(0,r.useEffect)(function(){t&&l&&d(t,l)},[d,t,l]),(0,r.useEffect)(function(){return function(){null!=d&&d.cancel&&d.cancel()}},[d])}(i),function(t){var e=(0,a.useDispatch)(it),n=e.setShippingAddress,o=e.setCardDetail
1s,i=e.setIsGuest,c=(0,r.useRef)(!1);(0,r.useEffect)(function(){if(t&&!c.current){var e=new URLSearchParams(window.location.search);if("1"===e.get("ppcp_fastlane_error")){e.delete("ppcp_fastlane_error");var r=new URL(window.location);r.search=e.toString(),window.history.replaceState({},"",r),c.current=!0;var a=function(){var e,r=(e=Te().m(function e(){var r,a,c,u,l;return Te().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,null==(r=document.getElementById("email"))||!r.value){e.n=3;break}return e.n=1,t.identity.lookupCustomerByEmail(r.value);case 1:if(a=e.v,wp.data.dispatch(it).setIsEmailSubmitted(!0),null==a||!a.customerContextId){e.n=3;break}return c=a.customerContextId,e.n=2,t.identity.triggerAuthenticationFlow(c);case 2:"succeeded"===(null==(u=e.v)?void 0:u.authenticationState)&&(l=u.profileData,i(!1),null!=l&&l.shippingAddress&&n(l.shippingAddress),null!=l&&l.card&&o(l.card),lt(!0));case 3:e.n=5;break;case 4:e.p=4,e.v,V("Failed to restore Fastlane session","warn");case 5:return e.a(2)}},e,null,[[0,4]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(t){Ge(i,r,o,a,c,"next",t)}function c(t){Ge(i,r,o,a,c,"throw",t)}a(void 0)})});return function(){return r.apply(this,arguments)}}();a()}}},[t,n,o,i])}(o),(0,r.useEffect)(function(){var t,e,n;t=".wc-block-components-express-payment--checkout, .wp-block-woocommerce-checkout-express-payment-block",e="wc-block-axo-is-authenticated",(n=function(){var n=document.querySelector(t);n?(0,a.select)(it).getIsGuest()?n.classList.remove(e):n.classList.add(e):V("Authentication class target element not found: ".concat(t),"warn")})(),(0,a.subscribe)(function(){n()}),function(){var t=".wp-block-woocommerce-checkout-fields-block",e="wc-block-axo-email-lookup-completed",n=function(){var n=document.querySelector(t);n?(0,a.select)(it).getIsEmailLookupCompleted()?n.classList.add(e):n.classList.remove(e):V("Email lookup completed class target element not found: ".concat(t),"warn")};n(),(0,a.subscribe)(function(){n()})}(),function(){var t=".wp-block-woocommerce-checkout-fields-block",e="wc-block-axo-is-loaded",n="wc-block-axo-is-authenticated",r="wc-block-axo-email-lookup-completed",o=function(){var o=document.querySelector(t);if(o){var i=(0,a.select)(it).getIsAxoActive(),c=(0,a.select)(it).getIsGuest(),u=(0,a.select)(it).getIsEmailLookupCompleted();i?o.classList.add(e):o.classList.remove(e),c?o.classList.remove(n):o.classList.add(n),u?o.classList.add(r):o.classList.remove(r)}else V("Checkout block class target element not found: ".concat(t),"warn")};o(),(0,a.subscribe)(function(){o()})}()},[]),(0,r.useEffect)(function(){if(function(t){var e=document.createElement("div");document.body.appendChild(e),(0,r.createRoot)(e).render((0,r.createElement)(re,{fastlaneSdk:t}))}(o),d&&o){l(!0),u(!0),p(y);var t=function(t,e,n,r,o,i,a,c,u){return function(){var l,s=(l=be().m(function l(s){var f,p,d,y,v;return be().w(function(l){for(;;)switch(l.p=l.n){case 0:if(l.p=0,V("Email value being looked up: ".concat(s)),t){l.n=1;break}throw new Error("FastlaneSDK is not initialized");case 1:if(t.identity){l.n=2;break}throw new Error("FastlaneSDK identity object is not available");case 2:return l.n=3,t.identity.lookupCustomerByEmail(s);case 3:if(f=l.v,V("Lookup response: ".concat(JSON.stringify(f))),f&&""===f.customerContextId&<(!0),f&&f.customerContextId){l.n=4;break}return V("No customerContextId found in the response","warn"),l.a(2);case 4:return l.n=5,t.identity.triggerAuthenticationFlow(f.customerContextId);case 5:if((p=l.v)&&p.authenticationState){l.n=6;break}throw new Error("Invalid authentication response");case 6:d=p.authenticationState,y=p.profileData,p&<(!0),"succeeded"===d?(r(o,i),ut(!1),y&&y.shippingAddress&&e(y.shippingAddress),y&&y.card&&n(y.card),V("Profile Data: ".concat(JSON.stringify(y))),de(y,a,c),me(u)):V("Authentication failed or did not succeed","warn"),l.n=8;break;case 7:throw l.p=7,v=l.v,V("Error during email lookup or authentication:\n\t\t\t\t".concat(v)),v;case 8:return l.a(2)}},l,null,[[0,7]])}),function(){var t=this,e=arguments;return new Promise(function(n,r){var o=l.apply(t,e);function i(t){ge(o,n,r,i,a,"next",t)}function a(t){ge(o,n,r,i,a,"throw",t)}i(void 0)})});return function(_x){return s.apply(this,arguments)}}()}(o,s,f,pe,b,h,g,w,v);
1!function(t){var e=fe();if(e){var n=function(){var n,r=(n=ie().m(function n(){var r;return ie().w(function(n){for(;;)switch(n.p=n.n){case 0:if(!wp.data.select(it).getIsEmailSubmitted()&&e.value){n.n=1;break}return n.a(2);case 1:return wp.data.dispatch(it).setIsEmailSubmitted(!0),o(),n.p=2,n.n=3,t(e.value);case 3:n.n=5;break;case 4:n.p=4,r=n.v,V("Error during email submission: ".concat(r),"error");case 5:return n.p=5,wp.data.dispatch(it).setIsEmailSubmitted(!1),o(),n.f(5);case 6:return n.a(2)}},n,null,[[2,4,5,6]])}),function(){var t=this,e=arguments;return new Promise(function(r,o){var i=n.apply(t,e);function a(t){ce(i,r,o,a,c,"next",t)}function c(t){ce(i,r,o,a,c,"throw",t)}a(void 0)})});return function(){return r.apply(this,arguments)}}();se=function(t){var e=wp.data.select(it).getIsAxoActive();"Enter"===t.key&&e&&(t.preventDefault(),n())},e.addEventListener("keydown",se),le.container||(le.container=document.createElement("div"),le.container.setAttribute("class","wc-block-axo-email-submit-button-container"),e.parentNode.insertBefore(le.container,e.nextSibling),le.root=(0,r.createRoot)(le.container));var o=function(){le.root&&le.root.render((0,r.createElement)(oe,{handleSubmit:n}))};o(),le.unsubscribe=wp.data.subscribe(function(){o()})}else V("Email input element not found. Functionality not added.","warn")}(t)}},[d,o,u,l,b,h,g,w,v,y,s,f,i,p]),d};function Le(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return De(l,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(De(e={},r,function(){return this}),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,De(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,De(f,"constructor",l),De(l,"constructor",u),u.displayName="GeneratorFunction",De(l,o,"GeneratorFunction"),De(f),De(f,o,"Generator"),De(f,r,function(){return this}),De(f,"toString",function(){return"[object Generator]"}),(Le=function(){return{w:i,m:p}})()}function De(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}De=function(t,e,n,r){function i(e,n){De(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},De(t,e,n,r)}function Re(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Fe(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){Re(i,r,o,a,c,"next",t)}function c(t){Re(i,r,o,a,c,"throw",t)}a(void 0)})}}function Me(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}
1finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Be(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Be(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Ue={VISA:"visa-light.svg",MASTERCARD:"mastercard-light.svg",AMEX:"amex-light.svg",DISCOVER:"discover-light.svg",DINERS:"dinersclub-light.svg",JCB:"jcb-light.svg",UNIONPAY:"unionpay-light.svg"};const He=function(t){t.fastlaneSdk,t.showWatermark;var e,n,o=(0,a.useSelect)(function(t){return{card:t(it).getCardDetails()}},[]).card,i=null!==(e=null==o||null===(n=o.paymentSource)||void 0===n?void 0:n.card)&&void 0!==e?e:{},c=i.brand,u=i.lastDigits,l=i.expiry,s=i.name,f=(0,r.useMemo)(function(){return Ue[c]?React.createElement("img",{className:"wc-block-axo-block-card__meta-icon",title:c,src:"".concat(window.wc_ppcp_axo.icons_directory).concat(Ue[c]),alt:c}):React.createElement("span",null,c)},[c]),p=l?"".concat(l.split("-")[1],"/").concat(l.split("-")[0]):"";return React.createElement("div",{className:"wc-block-checkout-axo-block-card"},React.createElement("div",{className:"wc-block-checkout-axo-block-card__inner"},React.createElement("div",{className:"wc-block-checkout-axo-block-card__content"},React.createElement("div",{className:"wc-block-checkout-axo-block-card__meta"},React.createElement("div",{className:"wc-block-checkout-axo-block-card__meta-logo"},f),React.createElement("div",{className:"wc-block-checkout-axo-block-card__meta-container"},React.createElement("div",{className:"wc-block-checkout-axo-block-card__meta-digits"},"â¢â¢â¢â¢ ".concat(u)),React.createElement("div",{className:"wc-block-checkout-axo-block-card__meta-name"},s),React.createElement("div",{className:"wc-block-checkout-axo-block-card__meta-expiry"},p))))))},qe=function(){var t=(0,a.useSelect)(function(t){return{isGuest:t(it).getIsGuest(),cardDetails:t(it).getCardDetails(),cardChangeHandler:t(it).getCardChangeHandler()}},[]),e=t.isGuest,n=t.cardDetails,i=t.cardChangeHandler;return!e&&n&&i?(0,r.createElement)("a",{className:"wc-block-checkout-axo-block-card__edit wc-block-axo-change-link",role:"button",onClick:function(t){t.preventDefault(),i()}},(0,o.__)("Choose a different card","woocommerce-paypal-payments")):null};function Je(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return We(l,"_invoke",function(n,r,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),c=s,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(We(e={},r,function(){return this}),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,We(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,We(f,"constructor",l),We(l,"constructor",u),u.displayName="GeneratorFunction",We(l,o,"GeneratorFunction"),We(f),We(f,o,"Generator"),We(f,r,function(){return this}),We(f,"toString",function(){return"[object Generator]"}),(Je=function(){return{w:i,m:p}})()}function We(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}We=function(t,e,n,r){function i(e,n){We(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},We(t,e,n,r)}function Ve(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Ke(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){Ve(i,r,o,a,c,"next",t)}function c(t){Ve(i,r,o,a,c,"throw",t)}a(void 0)})}}function $e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Xe=function(t){var e,n,o=t.fastlaneSdk,i=t.onPaymentLoad,c=(e=(0,r.useState)(!1),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}
1finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,n)||function(t,e){if(t){if("string"==typeof t)return $e(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$e(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1],s=(0,a.useSelect)(function(t){return{isGuest:t(it).getIsGuest(),isEmailLookupCompleted:t(it).getIsEmailLookupCompleted(),cardDetails:t(it).getCardDetails()}},[]),f=s.isGuest,p=s.isEmailLookupCompleted,d=s.cardDetails,y=window.wc_ppcp_axo,v=(0,r.useCallback)(Ke(Je().m(function t(){var e,n;return Je().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!(f&&p&&u||!f&&!d)){t.n=4;break}return t.p=1,t.n=2,o.FastlaneCardComponent({fields:{cardholderName:{enabled:"yes"===y.name_on_card}}});case 2:e=t.v,document.querySelector("#fastlane-card")&&(e.render("#fastlane-card"),i(e)),t.n=4;break;case 3:t.p=3,n=t.v,V("Error loading payment component: ".concat(n),"error");case 4:return t.a(2)}},t,null,[[1,3]])})),[f,p,u,d,o,i]);return(0,r.useEffect)(function(){f&&p&&l(!0)},[f,p]),(0,r.useEffect)(function(){u&&v()},[u,v]),function(){var t=wc.wcSettings.getSetting("ppcp-axo-gateway_data");return f&&!p?React.createElement("div",{id:"ppcp-axo-block-radio-content"},t.description):f&&p||!f&&!d?React.createElement("div",{id:"fastlane-card"}):React.createElement(He,{fastlaneSdk:o,showWatermark:!f})}()};const ze=function(t){var e=t.components,n=t.config,r=window.wc_ppcp_axo,o=e.PaymentMethodIcons;return React.createElement(React.Fragment,null,React.createElement("span",{dangerouslySetInnerHTML:{__html:n.title}}),React.createElement(o,{icons:null==r?void 0:r.card_icons}),React.createElement(qe,null))};function Qe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Ye="ppcpBlocksPaypalAxo",Ze=wc.wcSettings.getSetting("".concat("ppcp-axo-gateway","_data")),tn=function(t){var e,n,i,c,u,l=t.eventRegistration,s=t.emitResponse,f=l.onPaymentSetup,p=(c=(0,r.useState)(null),u=2,function(t){if(Array.isArray(t))return t}(c)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(c,u)||function(t,e){if(t){if("string"==typeof t)return Qe(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qe(t,e):void 0}}(c,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=p[0],y=p[1],v=function(t){var e=Me((0,r.useState)(!1),2),n=e[0],o=e[1],i=Me((0,r.useState)(t),2),a=i[0],c=i[1];return(0,r.useEffect)(function(){var t=function(){var t=R();if(t)return c(t),void o(!0);void 0!==window.PayPalCommerceGateway?(c(window.PayPalCommerceGateway),o(!0)):V("PayPal Commerce Gateway config not loaded.","error")};return"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t(),function(){document.removeEventListener("DOMContentLoaded",t)}},[]),{isConfigLoaded:n,ppcpConfig:a}}(Ze),m=v.isConfigLoaded,b=v.ppcpConfig,h=window.wc_ppcp_axo,g=yt(Ye,h,b),w=function(t,e,n){var o=(0,a.useSelect)(function(t){return{cardDetails:t(it).getCardDetails()}},[]).cardDetails;return(0,r.useCallback)(Fe(Le().m(function r(){var i,a,c;return Le().w(function(r){for(;;)switch(r.n){case 0:if(i=!(null==o||!o.id),(a=null==o?void 0:o.id)||!e){r.n=2;break}return r.n=1,e.getPaymentToken(n).then(function(t){return t.id});case 1:a=r.v;case 2:if(a){r.n=3;break}return c="tokenization error",e||(c="initialization error"),r.a(2,{type:t.responseTypes.ERROR,message:"Could not process the payment (".concat(c,")")});case 3:return r.a(2,{type:t.responseTypes.SUCCESS,meta:{paymentMethodData:{fastlane_member:i,axo_nonce:a}}})}},r)})),[null==o?void 0:o.id,t.responseTypes.ERROR,t.responseTypes.SUCCESS,e,n])}(s,d,(e=vt(),n=e.billingAddress,i=e.shippingAddress,(0,r.useMemo)(function(){var t,e=((t=n).first_name||t.last_name)&&t.address_1&&t.city&&t.postcode&&t.country?n:i;return{cardholderName:{fullName:"".concat(e.first_name," ").concat(e.last_name)},billingAddress:{addressLine1:e.address_1,addressLine2:e.address_2,adminArea1:e.state,adminArea2:e.city,postalCode:e.postcode,countryCode:e.country}}},[n,i]))),S=Ne(Ye,b,m,g,d),O=function(t,e,n){return(0,r.useEffect)(function(){var n=t(e);return function(){n()}},[t,e]),{handlePaymentLoad:(0,r.useCallback)(function(t){n(t)},[n])}}(f,w,y).handlePaymentLoad;return function(){var t=(0,a.useDispatch)(it),e=t.setIsAxoActive,n=t.setIsGuest,o=t.setIsEmailLookupCompleted,i=vt(),c=i.setShippingAddress,u=i.setBillingAddress;(0,r.useEffect)(function(){return function(){V("Cleaning up: Restoring WooCommerce fields"),function(t,e){var n;V("Attempting to restore original fields");try{n=localStorage.getItem("axoOriginalCheckoutFields"),V("Data retrieved from localStorage: ".concat(JSON.stringify(n)))}catch(t){V("Error retrieving from localStorage: ".concat(t),"error")}if(n)try{var r=JSON.parse(n);r.shippingAddress?t(r.shippingAddress):V("No shipping address found in saved data","warn"),r.billingAddress?(V("Restoring billing address:\n\t\t\t\t\t".concat(JSON.stringify(r.billingAddress))),e(r.billingAddress)):V("No billing address found in saved data","warn")}catch(t){V("Error parsing saved data: ".concat(t))}else V("No data found in localStorage under axoOriginalCheckoutFields","warn")}(c,u)}},[c,u]),(0,r.useEffect)(function(){return function(){var t,i;V("Cleaning up Axo component"),e(!1),n(!0),o(!1),(t=document.querySelector("#shipping-fields .wc-block-checkout-axo-block-card__edit"))&&((0,r.createRoot)(t).unmount(),t.remove()),ne(),le.root&&(V("Removing email functionality"),(i=fe())&&se&&i.removeEventListener("keydown",se),le.root&&le.root.unmount(),le.unsubscribe&&le.unsubscribe(),le.container&&le.container.parentNode&&le.container.parentNode.removeChild(le.container),le={container:null,root:null,unsubscribe:null},se=null)}},[])}(),m?S?g?React.createElement(Xe,{fastlaneSdk:g,onPaymentLoad:O}
1):React.createElement(React.Fragment,null,(0,o.__)("Loading Fastlaneâ¦","woocommerce-paypal-payments")):React.createElement(React.Fragment,null,(0,o.__)("Loading PayPal scriptâ¦","woocommerce-paypal-payments")):React.createElement(React.Fragment,null,(0,o.__)("Loading configurationâ¦","woocommerce-paypal-payments"))};(0,i.registerPaymentMethod)({name:Ze.id,label:React.createElement(ze,{config:Ze}),content:React.createElement(tn,null),edit:(0,r.createElement)(Ze.title),ariaLabel:Ze.title,canMakePayment:function(){return!0},supports:{showSavedCards:!0,features:Ze.supports}})}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{if(Array.isArray(e))for(var r=0;r<e.length;){var o=e[r++],i=e[r++];n.o(t,o)?0===i&&r++:0===i?Object.defineProperty(t,o,{enumerable:!0,value:e[r++]}):Object.defineProperty(t,o,{enumerable:!0,get:i})}else for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.hasOwn(t,e),n.cjs=t=>{const e={exports:{}};return t.call(e.exports,e,e.exports),e.exports},n(1864)})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.