1(self.webpackChunksomniumspace=self.webpackChunksomniumspace||[]).push([[1815],{14696:function(e,t,n){!function(e,t){"use strict";function n(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 r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e){return o="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},o(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(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}function u(e,t){if(null==e)return{};var n,r,o=i(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}function s(e,t){return a(e)||l(e,t)||p(e,t)||d()}function a(e){if(Array.isArray(e))return e}function l(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,c=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);i=!0);}catch(s){u=!0,o=s}finally{try{i||null==n.return||n.return()}finally{if(u)throw o}}return c}}function p(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.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)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(){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 m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var h,v,y,g,E={exports:{}};function C(){return v?h:(v=1,h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function b(){if(g)return y;g=1;var e=C();function t(){}function n(){}return n.resetWarningCache=t,y=function(){function r(t,n,r,o,c,i){if(i!==e){var u=new 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 o(){return r}r.isRequired=r;var c={array:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return c.PropTypes=c,c}}E.exports=b()();
vendor: 14,185 bytes, line 1
1var k=m(E.exports),S=function(e,n,r){var o=!!r,c=t.useRef(r);t.useEffect((function(){c.current=r}),[r]),t.useEffect((function(){if(!o||!e)return function(){};var t=function(){c.current&&c.current.apply(c,arguments)};return e.on(n,t),function(){e.off(n,t)}}),[o,n,e,c])},w=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),n.current},j=function(e){return null!==e&&"object"===o(e)},P=function(e){return j(e)&&"function"===typeof e.then},O=function(e){return j(e)&&"function"===typeof e.elements&&"function"===typeof e.createToken&&"function"===typeof e.createPaymentMethod&&"function"===typeof e.confirmCardPayment},x="[object Object]",A=function e(t,n){if(!j(t)||!j(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o=Object.prototype.toString.call(t)===x;if(o!==(Object.prototype.toString.call(n)===x))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 u={},s=0;s<c.length;s+=1)u[c[s]]=!0;for(var a=0;a<i.length;a+=1)u[i[a]]=!0;var l=Object.keys(u);if(l.length!==c.length)return!1;var p=t,f=n,d=function(t){return e(p[t],f[t])};return l.every(d)},R=function(e,t,n){return j(e)?Object.keys(e).reduce((function(o,i){var u=!j(t)||!A(e[i],t[i]);return n.includes(i)?(u&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),o):u?r(r({},o||{}),{},c({},i,e[i])):o}),null):null},I="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.",N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I;if(null===e||O(e))return e;throw new Error(t)},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I;if(P(e))return{tag:"async",stripePromise:Promise.resolve(e).then((function(e){return N(e,t)}))};var n=N(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},T=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"3.7.0"}),e.registerAppInfo({name:"react-stripe-js",version:"3.7.0",url:"https://stripe.com/docs/stripe-js/react"}))},_=t.createContext(null);_.displayName="ElementsContext";var Y=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},B=function(e){var n=e.stripe,r=e.options,o=e.children,c=t.useMemo((function(){return L(n)}),[n]),i=s(t.useState((function(){return{stripe:"sync"===c.tag?c.stripe:null,elements:"sync"===c.tag?c.stripe.elements(r):null}})),2),u=i[0],a=i[1];t.useEffect((function(){var e=!0,t=function(e){a((function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}}))};return"async"!==c.tag||u.stripe?"sync"!==c.tag||u.stripe||t(c.stripe):c.stripePromise.then((function(n){n&&e&&t(n)})),function(){e=!1}}),[c,u,r]);var l=w(n);t.useEffect((function(){null!==l&&l!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[l,n]);var p=w(r);return t.useEffect((function(){if(u.elements){var e=R(r,p,["clientSecret","fonts"]);e&&u.elements.update(e)}}),[r,p,u.elements]),t.useEffect((function(){T(u.stripe)}),[u.stripe]),t.createElement(_.Provider,{value:u},o)};B.propTypes={stripe:k.any,options:k.object};var U=function(e){var n=t.useContext(_);return Y(n,e)},M=function(){return U("calls useElements()").elements},D=function(e){return(0,e.children)(U("mounts <ElementsConsumer>"))};D.propTypes={children:k.func.isRequired};var W=["on","session"],q=t.createContext(null);q.displayName="CheckoutSdkContext";var F=function(e,t){if(!e)throw new Error("Could not find CheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an <CheckoutProvider> provider."));return e},$=t.createContext(null);$.displayName="CheckoutContext";var z=function(e,t){if(!e)return null;e.on,e.session;var n=u(e,W);return t?Object.assign(t,n):Object.assign(e.session(),n)},H="Invalid prop `stripe` supplied to `CheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",J=function(e){var n=e.stripe,r=e.options,o=e.children,c=t.useMemo((function(){return L(n,H)}),[n]),i=s(t.useState(null),2),u=i[0],a=i[1],l=s(t.useState((function(){return{stripe:"sync"===c.tag?c.stripe:null,checkoutSdk:null}})),2),p=l[0],f=l[1],d=function(e,t){f((function(n){return n.stripe&&n.checkoutSdk?n:{stripe:e,checkoutSdk:t}}))},m=t.useRef(!1);t.useEffect((function(){var e=!0;return"async"!==c.tag||p.stripe?"sync"===c.tag&&c.stripe&&!m.current&&(m.current=!0,c.stripe.initCheckout(r).then((function(e){e&&(d(c.stripe,e),e.on("change",a))}))):c.stripePromise.then((function(t){t&&e&&!m.current&&(m.current=!0,t.initCheckout(r).then((function(e){e&&(d(t,e),e.on("change",a))})))})),function(){e=!1}}),[c,p,r,a]);var h=w(n);t.useEffect((function(){null!==h&&h!==n&&console.warn("Unsupported prop change on CheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[h,n]);var v=w(r),y=w(p.checkoutSdk);t.useEffect((function(){var e,t;if(p.checkoutSdk){var n=null===v||void 0===v||null===(e=v.elementsOptions)||void 0===e?void 0:e.appearance,o=null===r||void 0===r||null===(t=r.elementsOptions)||void 0===t?void 0:t.appearance,c=!A(o,n),i=!y&&p.checkoutSdk;o&&(c||i)&&p.checkoutSdk.changeAppearance(o)}}),[r,v,p.checkoutSdk,y]),t.useEffect((function(){T(p.stripe)}),[p.stripe]);var g=t.useMemo((function(){return z(p.checkoutSdk,u)}),[p.checkoutSdk,u]);return p.checkoutSdk?t.createElement(q.Provider,{value:p},t.createElement($.Provider,{value:g},o)):null};J.propTypes={stripe:k.any,options:k.shape({fetchClientSecret:k.func.isRequired,elementsOptions:k.object}).isRequired};var V=function(e){var n=t.useContext(q);return F(n,e)},G=function(e){var n=t.useContext(q),r=t.useContext(_);if(n&&r)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."));return n?F(n,e):Y(r,e)},K=function(){V("calls useCheckout()");var e=t.useContext($);if(!e)throw new Error("Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an <CheckoutProvider> provider.");return e},Q=["mode"],X=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Z=function(e,n){var r="".concat(X(e),"Element"),o=n?function(e){G("mounts <".concat(r,">"));var n=e.id,o=e.className;return t.createElement("div",{id:n,className:o})}:function(n){var o,c=n.id,i=n.className,a=n.options,l=void 0===a?{}:a,p=n.onBlur,f=n.onFocus,d=n.onReady,m=n.onChange,h=n.onEscape,v=n.onClick,y=n.onLoadError,g=n.onLoaderStart,E=n.onNetworksChange,C=n.onConfirm,b=n.onCancel,k=n.onShippingAddressChange,j=n.onShippingRateChange,P=G("mounts <".concat(r,">")),O="elements"in P?P.elements:null,x="checkoutSdk"in P?P.checkoutSdk:null,A=s(t.useState(null),2),I=A[0],N=A[1],L=t.useRef(null),T=t.useRef(null);S(I,"blur",p),S(I,"focus",f),S(I,"escape",h),S(I,"click",v),S(I,"loaderror",y),S(I,"loaderstart",g),S(I,"networkschange",E),S(I,"confirm",C),S(I,"cancel",b),S(I,"shippingaddresschange",k),S(I,"shippingratechange",j),S(I,"change",m),d&&(o="expressCheckout"===e?d:function(){d(I)}),S(I,"ready",o),t.useLayoutEffect((function(){if(null===L.current&&null!==T.current&&(O||x)){var t=null;if(x)switch(e){case"payment":t=x.createPaymentElement(l);break;case"address":if(!("mode"in l))throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");var n=l.mode,o=u(l,Q);if("shipping"===n)t=x.createShippingAddressElement(o);else{if("billing"!==n)throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.");t=x.createBillingAddressElement(o)}break;case"expressCheckout":t=x.createExpressCheckoutElement(l);break;case"currencySelector":t=x.createCurrencySelectorElement();break;default:throw new Error("Invalid Element type ".concat(r,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else O&&(t=O.create(e,l));L.current=t,N(t),t&&t.mount(T.current)}}),[O,x,l]);var _=w(l);return t.useEffect((function(){if(L.current){var e=R(l,_,["paymentRequest"]);e&&"update"in L.current&&L.current.update(e)}}),[l,_]),t.useLayoutEffect((function(){return function(){if(L.current&&"function"===typeof L.current.destroy)try{L.current.destroy(),L.current=null}catch(e){}}}),[]),t.createElement("div",{id:c,className:i,ref:T})};return o.propTypes={id:k.string,className:k.string,onChange:k.func,onBlur:k.func,onFocus:k.func,onReady:k.func,onEscape:k.func,onClick:k.func,onLoadError:k.func,onLoaderStart:k.func,onNetworksChange:k.func,onConfirm:k.func,onCancel:k.func,onShippingAddressChange:k.func,onShippingRateChange:k.func,options:k.object},o.displayName=r,o.__elementType=e,o},ee="undefined"===typeof window,te=t.createContext(null);te.displayName="EmbeddedCheckoutProviderContext";var ne=function(){var e=t.useContext(te);if(!e)throw new Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return e},re="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.",oe=function(e){var n=e.stripe,r=e.options,o=e.children,c=t.useMemo((function(){return L(n,re)}),[n]),i=t.useRef(null),u=t.useRef(null),a=s(t.useState({embeddedCheckout:null}),2),l=a[0],p=a[1];t.useEffect((function(){if(!u.current&&!i.current){var e=function(e){u.current||i.current||(u.current=e,i.current=u.current.initEmbeddedCheckout(r).then((function(e){p({embeddedCheckout:e})})))};"async"!==c.tag||u.current||!r.clientSecret&&!r.fetchClientSecret?"sync"!==c.tag||u.current||!r.clientSecret&&!r.fetchClientSecret||e(c.stripe):c.stripePromise.then((function(t){t&&e(t)}))}}),[c,r,l,u]),t.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]),t.useEffect((function(){T(u)}),[u]);var f=w(n);t.useEffect((function(){null!==f&&f!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[f,n]);var d=w(r);return t.useEffect((function(){null!=d&&(null!=r?(void 0===r.clientSecret&&void 0===r.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=d.clientSecret&&r.clientSecret!==d.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!=d.fetchClientSecret&&r.fetchClientSecret!==d.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!=d.onComplete&&r.onComplete!==d.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=d.onShippingDetailsChange&&r.onShippingDetailsChange!==d.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=d.onLineItemsChange&&r.onLineItemsChange!==d.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")):console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them."))}),[d,r]),t.createElement(te.Provider,{value:l},o)},ce=function(e){var n=e.id,r=e.className,o=ne().embeddedCheckout,c=t.useRef(!1),i=t.useRef(null);return t.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]),t.createElement("div",{ref:i,id:n,className:r})},ie=function(e){var n=e.id,r=e.className;return ne(),t.createElement("div",{id:n,className:r})},ue=ee?ie:ce,se=function(){return G("calls useStripe()").stripe},ae=Z("auBankAccount",ee),le=Z("card",ee),pe=Z("cardNumber",ee),fe=Z("cardExpiry",ee),de=Z("cardCvc",ee),me=Z("fpxBank",ee),he=Z("iban",ee),ve=Z("idealBank",ee),ye=Z("p24Bank",ee),ge=Z("epsBank",ee),Ee=Z("payment",ee),Ce=Z("expressCheckout",ee),be=Z("currencySelector",ee),ke=Z("paymentRequestButton",ee),Se=Z("linkAuthentication",ee),we=Z("address",ee),je=Z("shippingAddress",ee),Pe=Z("paymentMethodMessaging",ee),Oe=Z("affirmMessage",ee),xe=Z("afterpayClearpayMessage",ee);e.AddressElement=we,e.AffirmMessageElement=Oe,e.AfterpayClearpayMessageElement=xe,e.AuBankAccountElement=ae,e.CardCvcElement=de,e.CardElement=le,e.CardExpiryElement=fe,e.CardNumberElement=pe,e.CheckoutProvider=J,e.CurrencySelectorElement=be,e.Elements=B,e.ElementsConsumer=D,e.EmbeddedCheckout=ue,e.EmbeddedCheckoutProvider=oe,e.EpsBankElement=ge,e.ExpressCheckoutElement=Ce,e.FpxBankElement=me,e.IbanElement=he,e.IdealBankElement=ve,e.LinkAuthenticationElement=Se,e.P24BankElement=ye,e.PaymentElement=Ee,e.PaymentMethodMessagingElement=Pe,e.PaymentRequestButtonElement=ke,e.ShippingAddressElement=je,e.useCheckout=K,e.useElements=M,e.useStripe=se}(t,n(47313))},68366:function(e,t,n){"use strict";n.d(t,{J:function(){return y}});var r,o="basil",c="https://js.stripe.com",i="".concat(c,"/").concat(o,"/stripe.js"),u=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,s=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,a="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",l=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");
vendor: 2,027 bytes, line 1
1n.src="".concat(i).concat(t);var r=document.head||document.body;if(!r)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n},p=null,f=null,d=null,m=function(e){return null!==p?p:(p=new Promise((function(t,n){if("undefined"!==typeof window&&"undefined"!==typeof document)if(window.Stripe&&e&&console.warn(a),window.Stripe)t(window.Stripe);else try{var r=function(){for(var e,t=document.querySelectorAll('script[src^="'.concat(c,'"]')),n=0;n<t.length;n++){var r=t[n];if(e=r.src,u.test(e)||s.test(e))return r}return null}();if(r&&e)console.warn(a);else if(r){if(r&&null!==d&&null!==f){var o;r.removeEventListener("load",d),r.removeEventListener("error",f),null===(o=r.parentNode)||void 0===o||o.removeChild(r),r=l(e)}}else r=l(e);d=function(e,t){return function(){window.Stripe?e(window.Stripe):t(new Error("Stripe.js not available"))}}(t,n),f=function(e){return function(t){e(new Error("Failed to load Stripe.js",{cause:t}))}}(n),r.addEventListener("load",d),r.addEventListener("error",f)}catch(i){return void n(i)}else t(null)}))).catch((function(e){return p=null,Promise.reject(e)}))},h=!1,v=function(){return r||(r=m(null).catch((function(e){return r=null,Promise.reject(e)})))};Promise.resolve().then((function(){return v()})).catch((function(e){h||console.warn(e)}));var y=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];h=!0;var r=Date.now();return v().then((function(e){return function(e,t,n){if(null===e)return null;var r=t[0].match(/^pk_test/),c=function(e){return 3===e?"v3":e}(e.version),i=o;r&&c!==i&&console.warn("Stripe.js@".concat(c," was loaded on the page, but @stripe/stripe-js@").concat("7.3.0"," expected Stripe.js@").concat(i,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var u=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"7.3.0",startTime:t})}(u,n),u}(e,t,r)}))}}}]);
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.