(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6621],{45079:function(e,t,n){!function(e,t){"use strict";function n(){}function r(){}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,r.resetWarningCache=n;var o,i,u=(o=i={exports:{}},i.exports,o.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var u=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 u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var o={array: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:r,resetWarningCache:n};return o.PropTypes=o,o}(),i.exports);function a(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e){return(s="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 l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(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 f=function(e){var n=t.useRef(e);return t.useEffect(function(){n.current=e},[e]),n.current},d=function(e){return null!==e&&"object"===s(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),u=Object.keys(n);if(i.length!==u.length)return!1;for(var a={},c=0;c<i.length;c+=1)a[i[c]]=!0;for(var s=0;s<u.length;s+=1)a[u[s]]=!0;var l=Object.keys(a);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?c(c({},r||{}),{},l({},o,e[o])):r},null):null},h=function(e){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("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){if(d(e)&&"function"==typeof e.then)return{tag:"async",stripePromise:Promise.resolve(e).then(h)};var t=h(e);return null===t?{tag:"empty"}:{tag:"sync",stripe:t}},E=t.createContext(null);E.displayName="ElementsContext";var g=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},j=function(e){var n,r=e.stripe,o=e.options,i=e.children,u=t.useMemo(function(){return b(r)},[r]),a=function(e){if(Array.isArray(e))return e}(n=t.useState(function(){return{stripe:"sync"===u.tag?u.stripe:null,elements:"sync"===u.tag?u.stripe.elements(o):null}}))||function(e,t){var n,r,o=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=o){var i=[],u=!0,a=!1;try{for(o=o.call(e);!(u=(n=o.next()).done)&&(i.push(n.value),2!==i.length);u=!0);}catch(e){a=!0,r=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw r}}return i}}(n,2)||function(e,t){if(e){if("string"==typeof e)return p(e,2);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 p(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=a[0],s=a[1];t.useEffect(function(){var e=!0,t=function(e){s(function(t){return t.stripe?t:{stripe:e,elements:e.elements(o)}})};return"async"!==u.tag||c.stripe?"sync"!==u.tag||c.stripe||t(u.stripe):u.stripePromise.then(function(n){n&&e&&t(n)}),function(){e=!1}},[u,c,o]);var l=f(r);t.useEffect(function(){null!==l&&l!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[l,r]);var d=f(o);return t.useEffect(function(){if(c.elements){var e=v(o,d,["clientSecret","fonts"]);e&&c.elements.update(e)}},[o,d,c.elements]),t.useEffect(function(){var e=c.stripe;e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"1.10.0"}),e.registerAppInfo({name:"react-stripe-js",version:"1.10.0",url:"https://stripe.com/docs/stripe-js/react"}))},[c.stripe]),t.createElement(E.Provider,{value:c},i)};j.propTypes={stripe:u.any,options:u.object};var O=function(e){return g(t.useContext(E),e)},S=function(e){return(0,e.children)(O("mounts <ElementsConsumer>"))};S.propTypes={children:u.func.isRequired};var w=function(e){var n=t.useRef(e);return t.useEffect(function(){n.current=e},[e]),function(){n.current&&n.current.apply(n,arguments)}},k=function(){},C=function(e,n){var r="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),o=n?function(e){O("mounts <".concat(r,">"));var n=e.id,o=e.className;return t.createElement("div",{id:n,className:o})}:function(n){var o=n.id,i=n.className,u=n.options,a=void 0===u?{}:u,c=n.onBlur,s=void 0===c?k:c,l=n.onFocus,p=void 0===l?k:l,d=n.onReady,m=void 0===d?k:d,y=n.onChange,h=void 0===y?k:y,b=n.onEscape,E=void 0===b?k:b,g=n.onClick,j=void 0===g?k:g,S=n.onLoadError,C=void 0===S?k:S,P=n.onLoaderStart,A=void 0===P?k:P,_=O("mounts <".concat(r,">")).elements,T=t.useRef(null),x=t.useRef(null),B=w(m),R=w(s),I=w(p),N=w(j),L=w(h),M=w(E),W=w(C),q=w(A);t.useLayoutEffect(function(){if(null==T.current&&_&&null!=x.current){var t=_.create(e,a);T.current=t,t.mount(x.current),t.on("ready",function(){return B(t)}),t.on("change",L),t.on("blur",R),t.on("focus",I),t.on("escape",M),t.on("loaderror",W),t.on("loaderstart",q),t.on("click",N)}});var D=f(a);return t.useEffect(function(){if(T.current){var e=v(a,D,["paymentRequest"]);e&&T.current.update(e)}},[a,D]),t.useLayoutEffect(function(){return function(){T.current&&(T.current.destroy(),T.current=null)}},[]),t.createElement("div",{id:o,className:i,ref:x})};return o.propTypes={id:u.string,className:u.string,onChange:u.func,onBlur:u.func,onFocus:u.func,onReady:u.func,onClick:u.func,onLoadError:u.func,onLoaderStart:u.func,options:u.object},o.displayName=r,o.__elementType=e,o},P="undefined"==typeof window,A=C("auBankAccount",P),_=C("card",P),T=C("cardNumber",P),x=C("cardExpiry",P),B=C("cardCvc",P),R=C("fpxBank",P),I=C("iban",P),N=C("idealBank",P),L=C("p24Bank",P),M=C("epsBank",P),W=C("payment",P),q=C("paymentRequestButton",P),D=C("linkAuthentication",P),F=C("shippingAddress",P),U=C("affirmMessage",P),Y=C("afterpayClearpayMessage",P);e.AffirmMessageElement=U,e.AfterpayClearpayMessageElement=Y,e.AuBankAccountElement=A,e.CardCvcElement=B,e.CardElement=_,e.CardExpiryElement=x,e.CardNumberElement=T,e.Elements=j,e.ElementsConsumer=S,e.EpsBankElement=M,e.FpxBankElement=R,e.IbanElement=I,e.IdealBankElement=N,e.LinkAuthenticationElement=D,e.P24BankElement=L,e.PaymentElement=W,e.PaymentRequestButtonElement=q,e.ShippingAddressElement=F,e.useElements=function(){return O("calls useElements()").elements},e.useStripe=function(){return O("calls useStripe()").stripe},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(7653))},99404:function(e,t,n){"use strict";n.d(t,{J:function(){return f}});var r="https://js.stripe.com/v3",o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i=function(){for(var e=document.querySelectorAll('script[src^="'.concat(r,'"]')),t=0;t<e.length;t++){var n=e[t];if(o.test(n.src))return n}return null},u=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(r).concat(t);var o=document.head||document.body;if(!o)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n},a=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.36.0",startTime:t})},c=null,s=function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return a(r,n),r},l=Promise.resolve().then(function(){return null!==c?c:c=new Promise(function(e,t){if("undefined"==typeof window){e(null);return}if(window.Stripe,window.Stripe){e(window.Stripe);return}try{var n=i();n||(n=u(null)),n.addEventListener("load",function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))}),n.addEventListener("error",function(){t(Error("Failed to load Stripe.js"))})}catch(e){t(e);return}})}),p=!1;l.catch(function(e){p||console.warn(e)});var f=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];p=!0;var r=Date.now();return l.then(function(e){return s(e,t,r)})}}}]);
//# sourceMappingURL=6621-e5d7f7e832a0e2ff.js.map