1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4604],{48049:function(e,t,n){"use strict";var r=n(14397);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,i){if(i!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:o};return n.PropTypes=n,n}},40718:function(e,t,n){e.exports=n(48049)()},14397:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},74604:function(e,t,n){"use strict";n.d(t,{_j:function(){return R},vs:function(){return A}});var r=n(2265),o=n(40718);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 i(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){u(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 a(e){return(a="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)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=o){var c=[],i=!0,a=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(c.push(n.value),!t||c.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(a)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}(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,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}var p=function(e,t,n){var o=!!n,c=r.useRef(n);r.useEffect(function(){c.current=n},[n]),r.useEffect(function(){if(!o||!e)return function(){};var n=function(){if(c.current)return c.current.apply(c,arguments)};return e.on(t,n),function(){e.off(t,n)}},[o,t,e,c])},d=function(e){var t=r.useRef(e);return r.useEffect(function(){t.current=e},[e]),t.current},f=function(e){return null!==e&&"object"===a(e)},h="[object Object]",m=function e(t,n){if(!f(t)||!f(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o=Object.prototype.toString.call(t)===h;if(o!==(Object.prototype.toString.call(n)===h))return!1;if(!o&&!r)return t===n;var c=Object.keys(t),i=Object.keys(n);if(c.length!==i.length)return!1;for(var a={},u=0;u<c.length;u+=1)a[c[u]]=!0;for(var s=0;s<i.length;s+=1)a[i[s]]=!0;var l=Object.keys(a);return l.length===c.length&&l.every(function(r){return e(t[r],n[r])})},y="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.",g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;if(null===e||f(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment)return e;throw Error(t)},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;if(f(e)&&"function"==typeof e.then)return{tag:"async",stripePromise:Promise.resolve(e).then(function(e){return g(e,t)})};var n=g(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},b=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"6.6.0"}),e.registerAppInfo({name:"react-stripe-js",version:"6.6.0",url:"https://stripe.com/docs/stripe-js/react"}))},C=r.createContext(null);C.displayName="ElementsContext";var E=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};o.any,o.object,o.func.isRequired;var k=r.createContext(null);k.displayName="CheckoutContext";var S=function(e){var t=r.useContext(k),n=r.useContext(C);if(!t)return E(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"],O=function(e,t,n){var c="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),a=t?function(e){
1S("mounts <".concat(c,">"));var t=e.id,n=e.className;return r.createElement("div",{id:t,className:n})}:function(t){var n,o=t.id,a=t.className,l=t.options,h=void 0===l?{}:l,y=t.onBlur,g=t.onFocus,v=t.onReady,b=t.onChange,C=t.onEscape,E=t.onClick,k=t.onLoadError,O=t.onLoaderStart,w=t.onNetworksChange,j=t.onConfirm,x=t.onCancel,A=t.onShippingAddressChange,R=t.onShippingRateChange,I=t.onSavedPaymentMethodRemove,N=t.onSavedPaymentMethodUpdate,_=t.onAvailablePaymentMethodsChange,D=S("mounts <".concat(c,">")),U="elements"in D?D.elements:null,T="checkoutState"in D?D.checkoutState:null,L=(null==T?void 0:T.type)==="success"||(null==T?void 0:T.type)==="loading"?T.sdk:null,Y=s(r.useState(null),2),M=Y[0],B=Y[1],W=r.useRef(null),F=r.useRef(null);p(M,"blur",y),p(M,"focus",g),p(M,"escape",C),p(M,"click",E),p(M,"loaderror",k),p(M,"loaderstart",O),p(M,"networkschange",w),p(M,"confirm",j),p(M,"cancel",x),p(M,"shippingaddresschange",A),p(M,"shippingratechange",R),p(M,"savedpaymentmethodremove",I),p(M,"savedpaymentmethodupdate",N),p(M,"availablepaymentmethodschange",_),p(M,"change",b),v&&(n="expressCheckout"===e?v:function(){v(M)}),p(M,"ready",n),r.useLayoutEffect(function(){if(null===W.current&&null!==F.current&&(U||L)){var t=null;if(L)switch(e){case"paymentForm":t=L.createForm(h);break;case"payment":t=L.createPaymentElement(h);break;case"address":if("mode"in h){var n=h.mode,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(h,P);if("shipping"===n)t=L.createShippingAddressElement(r);else if("billing"===n)t=L.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=L.createExpressCheckoutElement(h);break;case"currencySelector":t=L.createCurrencySelectorElement();break;case"taxId":t=L.createTaxIdElement(h);break;case"contactDetails":t=L.createContactDetailsElement();break;default:throw Error("<".concat(c,"> is not supported inside a checkout provider. Use an <Elements> provider instead."))}else U&&(t=U.create(e,h));W.current=t,B(t),t&&t.mount(F.current)}},[U,L,h]);var q=d(h);return r.useEffect(function(){if(W.current){var e,t=(e=["paymentRequest"],f(h)?Object.keys(h).reduce(function(t,n){var r=!f(q)||!m(h[n],q[n]);return e.includes(n)?(r&&console.warn("Unsupported prop change: options.".concat(n," is not a mutable property.")),t):r?i(i({},t||{}),{},u({},n,h[n])):t},null):null);t&&"update"in W.current&&W.current.update(t)}},[h,q]),r.useLayoutEffect(function(){return function(){if(W.current&&"function"==typeof W.current.destroy)try{W.current.destroy(),W.current=null}catch(e){}}},[]),r.createElement("div",{id:o,className:a,ref:F})};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=c,a.__elementType=e,a},w="undefined"==typeof window,j=r.createContext(null);j.displayName="EmbeddedCheckoutProviderContext";var x=function(){var e=r.useContext(j);if(!e)throw Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return e},A=function(e){var t=e.stripe,n=e.options,o=e.children,c=r.useMemo(function(){return v(t,"Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},[t]),i=r.useRef(null),a=r.useRef(null),u=s(r.useState({embeddedCheckout:null}),2),l=u[0],p=u[1];r.useEffect(function(){if(!a.current&&!i.current){var e=function(e){a.current||i.current||(a.current=e,i.current=a.current.createEmbeddedCheckoutPage(n).then(function(e){p({embeddedCheckout:e})}))};"async"===c.tag&&!a.current&&(n.clientSecret||n.fetchClientSecret)?c.stripePromise.then(function(t){t&&e(t)}):"sync"===c.tag&&!a.current&&(n.clientSecret||n.fetchClientSecret)&&e(c.stripe)}},[c,n,l,a]),r.useEffect(function(){return function(){l.embeddedCheckout?(i.current=null,l.embeddedCheckout.destroy()):i.current&&i.current.then(function(){i.current=null,l.embeddedCheckout&&l.embeddedCheckout.destroy()})}},[l.embeddedCheckout]),r.useEffect(function(){b(a)},[a]);var f=d(t);r.useEffect(function(){null!==f&&f!==t&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")},[f,t]);var h=d(n);return r.useEffect(function(){if(null!=h){if(null==n){console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them.");return}void 0===n.clientSecret&&void 0===n.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=h.clientSecret&&n.clientSecret!==h.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=h.fetchClientSecret&&n.fetchClientSecret!==h.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=h.onComplete&&n.onComplete!==h.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=h.onShippingDetailsChange&&n.onShippingDetailsChange!==h.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=h.onLineItemsChange&&n.onLineItemsChange!==h.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")}},[h,n]),r.createElement(j.Provider,{value:l},o)},R=w?function(e){var t=e.id,n=e.className;return x(),r.createElement("div",{id:t,className:n})}:function(e){var t=e.id,n=e.className,o=x().embeddedCheckout,c=r.useRef(!1),i=r.useRef(null);return r.useLayoutEffect(function(){return!c.current&&o&&null!==i.current&&(o.mount(i.current),c.current=!0),function(){if(c.current&&o)try{o.unmount(),c.current=!1}catch(e){}}},[o]),r.createElement("div",{ref:i,id:t,className:n})};O("auBankAccount",w),O("card",w),O("cardNumber",w),O("cardExpiry",w),O("cardCvc",w),O("currencySelector",w),O("iban",w),O("payment",w),O("expressCheckout",w),O("paymentRequestButton",w),O("linkAuthentication",w),O("contactDetails",w),O("address",w),O("shippingAddress",w),O("paymentMethodMessaging",w),O("taxI
1d",w),O("issuingCardNumberDisplay",w),O("issuingCardCvcDisplay",w),O("issuingCardExpiryDisplay",w),O("issuingCardPinDisplay",w),O("issuingCardCopyButton",w)}}]);
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.