1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4310],{14908:(e,t,n)=>{function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{c:()=>g});var o,i="dahlia",a="https://js.stripe.com",c="".concat(a,"/").concat(i,"/stripe.js"),u=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,s=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,l=function(){for(var e=document.querySelectorAll('script[src^="'.concat(a,'"]')),t=0;t<e.length;t++){var n,r=e[t];if(n=r.src,u.test(n)||s.test(n))return r}return null},p=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(c).concat(t);var r=document.head||document.body;if(!r)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n},f=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"9.14.0",startTime:t})},d=null,m=null,y=null,v=function(e,t,n){if(null===e)return null;var o,a=t[0];if("string"!=typeof a)throw Error("Expected publishable key to be of type string, got type ".concat(r(a)," instead."));var c=a.match(/^pk_test/),u=3===(o=e.version)?"v3":o;c&&u!==i&&console.warn("Stripe.js@".concat(u," was loaded on the page, but @stripe/stripe-js@").concat("9.14.0"," expected Stripe.js@").concat(i,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var s=e.apply(void 0,t);return f(s,n),s},h=!1,b=function(){return o?o:o=(null!==d?d:(d=new Promise(function(e,t){if("undefined"==typeof window||"undefined"==typeof document)return void e(null);if(window.Stripe,window.Stripe)return void e(window.Stripe);try{var n,r=l();r?r&&null!==y&&null!==m&&(r.removeEventListener("load",y),r.removeEventListener("error",m),null==(n=r.parentNode)||n.removeChild(r),r=p(null)):r=p(null),y=function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))},m=function(e){t(Error("Failed to load Stripe.js",{cause:e}))},r.addEventListener("load",y),r.addEventListener("error",m)}catch(e){t(e);return}})).catch(function(e){return d=null,Promise.reject(e)})).catch(function(e){return o=null,Promise.reject(e)})};Promise.resolve().then(function(){return b()}).catch(function(e){h||console.warn(e)});var g=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];h=!0;var r=Date.now();return b().then(function(e){return v(e,t,r)})}},17695:(e,t,n)=>{n.d(t,{F5:()=>D,HH:()=>C,S8:()=>w,hA:()=>R,t2:()=>N});var r=n(14343),o=n(50084);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}
1finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=function(e,t,n){var o=!!n,i=r.useRef(n);r.useEffect(function(){i.current=n},[n]),r.useEffect(function(){if(!o||!e)return function(){};var n=function(){if(i.current)return i.current.apply(i,arguments)};return e.on(t,n),function(){e.off(t,n)}},[o,t,e,i])},f=function(e){var t=r.useRef(e);return r.useEffect(function(){t.current=e},[e]),t.current},d=function(e){return null!==e&&"object"===l(e)},m="[object Object]",y=function e(t,n){if(!d(t)||!d(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o=Object.prototype.toString.call(t)===m;if(o!==(Object.prototype.toString.call(n)===m))return!1;if(!o&&!r)return t===n;var i=Object.keys(t),a=Object.keys(n);if(i.length!==a.length)return!1;for(var c={},u=0;u<i.length;u+=1)c[i[u]]=!0;for(var s=0;s<a.length;s+=1)c[a[s]]=!0;var l=Object.keys(c);return l.length===i.length&&l.every(function(r){return e(t[r],n[r])})},v=function(e,t,n){return d(e)?Object.keys(e).reduce(function(r,o){var i=!d(t)||!y(e[o],t[o]);return n.includes(o)?(i&&console.warn("Unsupported prop change: options.".concat(o," is not a mutable property.")),r):i?u(u({},r||{}),{},a({},o,e[o])):r},null):null},h="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(null===e||d(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment)return e;throw Error(t)},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(d(e)&&"function"==typeof e.then)return{tag:"async",stripePromise:Promise.resolve(e).then(function(e){return b(e,t)})};var n=b(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},E=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"6.8.2"}),e.registerAppInfo({name:"react-stripe-js",version:"6.8.2",url:"https://stripe.com/docs/stripe-js/react"}))},S=r.createContext(null);S.displayName="ElementsContext";var j=function(e,t){if(!e)throw Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},w=function(e){var t=e.stripe,n=e.options,o=e.children,i=r.useMemo(function(){return g(t)},[t]),a=s(r.useState(function(){return{stripe:"sync"===i.tag?i.stripe:null,elements:"sync"===i.tag?i.stripe.elements(n):null}}),2),c=a[0],u=a[1];r.useEffect(function(){var e=!0,t=function(e){u(function(t){return t.stripe?t:{stripe:e,elements:e.elements(n)}})};return"async"!==i.tag||c.stripe?"sync"!==i.tag||c.stripe||t(i.stripe):i.stripePromise.then(function(n){n&&e&&t(n)}),function(){e=!1}},[i,c,n]);var l=f(t);r.useEffect(function(){null!==l&&l!==t&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[l,t]);var p=f(n);return r.useEffect(function(){if(c.elements){var e=v(n,p,["clientSecret","fonts"]);e&&c.elements.update(e)}},[n,p,c.elements]),r.useEffect(function(){E(c.stripe)},[c.stripe]),r.createElement(S.Provider,{value:c},o)};w.propTypes={stripe:o.any,options:o.object};var C=function(){var e;return(e="calls useElements()",j(r.useContext(S),e)).elements};o.func.isRequired;var k=r.createContext(null);k.displayName="CheckoutContext";var O=function(e){var t=r.useContext(k),n=r.useContext(S);if(!t)return j(n,e);if(!n)return t;throw Error("You cannot wrap the part of your app that ".concat(e," in both a checkout provider and <Elements> provider."))},P=["mode"],x=function(e,t,n){var i="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),a=t?function(e){O("mounts <".concat(i,">"));var t=e.id,n=e.className;return r.createElement("div",{id:t,className:n})}
1:function(t){var n,o=t.id,a=t.className,c=t.options,u=void 0===c?{}:c,l=t.onBlur,d=t.onFocus,m=t.onReady,y=t.onChange,h=t.onEscape,b=t.onClick,g=t.onLoadError,E=t.onLoaderStart,S=t.onNetworksChange,j=t.onConfirm,w=t.onCancel,C=t.onShippingAddressChange,k=t.onShippingRateChange,x=t.onSavedPaymentMethodRemove,A=t.onSavedPaymentMethodUpdate,N=t.onAvailablePaymentMethodsChange,R=O("mounts <".concat(i,">")),D="elements"in R?R.elements:null,I="checkoutState"in R?R.checkoutState:null,M=(null==I?void 0:I.type)==="success"||(null==I?void 0:I.type)==="loading"?I.sdk:null,_=s(r.useState(null),2),L=_[0],T=_[1],F=r.useRef(null),U=r.useRef(null);p(L,"blur",l),p(L,"focus",d),p(L,"escape",h),p(L,"click",b),p(L,"loaderror",g),p(L,"loaderstart",E),p(L,"networkschange",S),p(L,"confirm",j),p(L,"cancel",w),p(L,"shippingaddresschange",C),p(L,"shippingratechange",k),p(L,"savedpaymentmethodremove",x),p(L,"savedpaymentmethodupdate",A),p(L,"availablepaymentmethodschange",N),p(L,"change",y),m&&(n="expressCheckout"===e?m:function(){m(L)}),p(L,"ready",n),r.useLayoutEffect(function(){if(null===F.current&&null!==U.current&&(D||M)){var t=null;if(M)switch(e){case"paymentForm":t=M.createForm(u);break;case"payment":t=M.createPaymentElement(u);break;case"address":if("mode"in u){var n=u.mode,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(u,P);if("shipping"===n)t=M.createShippingAddressElement(r);else if("billing"===n)t=M.createBillingAddressElement(r);else throw Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":t=M.createExpressCheckoutElement(u);break;case"currencySelector":t=M.createCurrencySelectorElement();break;case"taxId":t=M.createTaxIdElement(u);break;case"contactDetails":t=M.createContactDetailsElement();break;case"terms":t=M.createTermsElement(u);break;default:throw Error("<".concat(i,"> is not supported inside a checkout provider. Use an <Elements> provider instead."))}else D&&(t=D.create(e,u));F.current=t,T(t),t&&t.mount(U.current)}},[D,M,u]);var B=f(u);return r.useEffect(function(){if(F.current){var e=v(u,B,["paymentRequest"]);e&&"update"in F.current&&F.current.update(e)}},[u,B]),r.useLayoutEffect(function(){return function(){if(F.current&&"function"==typeof F.current.destroy)try{F.current.destroy(),F.current=null}catch(e){}}},[]),r.createElement("div",{id:o,className:a,ref:U})};return a.propTypes={id:o.string,className:o.string,onChange:o.func,onBlur:o.func,onFocus:o.func,onReady:o.func,onEscape:o.func,onClick:o.func,onLoadError:o.func,onLoaderStart:o.func,onNetworksChange:o.func,onConfirm:o.func,onCancel:o.func,onShippingAddressChange:o.func,onShippingRateChange:o.func,onSavedPaymentMethodRemove:o.func,onSavedPaymentMethodUpdate:o.func,onAvailablePaymentMethodsChange:o.func,options:o.object},a.displayName=i,a.__elementType=e,a},A="undefined"==typeof window;r.createContext(null).displayName="EmbeddedCheckoutProviderContext";var N=function(){return O("calls useStripe()").stripe};x("auBankAccount",A);var R=x("card",A);x("cardNumber",A),x("cardExpiry",A),x("cardCvc",A),x("currencySelector",A);var D=x("iban",A);x("payment",A),x("expressCheckout",A),x("paymentRequestButton",A),x("linkAuthentication",A),x("contactDetails",A),x("address",A),x("shippingAddress",A),x("paymentMethodMessaging",A),x("taxId",A),x("issuingCardNumberDisplay",A),x("issuingCardCvcDisplay",A),x("issuingCardExpiryDisplay",A),x("issuingCardPinDisplay",A),x("issuingCardCopyButton",A),x("terms",A)}}]);
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.