Files
Shifted/.next/static/chunks/274-8129539e3a75342f.js
2026-02-10 01:14:19 +00:00

1 line
13 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[274],{9376:function(e,t,n){"use strict";var r=n(5475);n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},8049:function(e,t,n){"use strict";var r=n(4397);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,c){if(c!==r){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 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:i,resetWarningCache:o};return n.PropTypes=n,n}},718:function(e,t,n){e.exports=n(8049)()},4397:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4604:function(e,t,n){"use strict";n.d(t,{Hn:function(){return _},MD:function(){return R},Wd:function(){return T},eK:function(){return w},lq:function(){return O}});var r=n(2265),o=n(718);function i(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?i(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e){return(u="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 a(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 i=[],c=!0,u=!1;try{for(o=o.call(e);!(c=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{c||null==o.return||o.return()}finally{if(u)throw r}}return i}}(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,i=r.useRef(n);r.useEffect(function(){i.current=n},[n]),r.useEffect(function(){if(!o||!e)return function(){};var n=function(){i.current&&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"===u(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),c=Object.keys(n);if(i.length!==c.length)return!1;for(var u={},a=0;a<i.length;a+=1)u[i[a]]=!0;for(var s=0;s<c.length;s+=1)u[c[s]]=!0;var l=Object.keys(u);return l.length===i.length&&l.every(function(r){return e(t[r],n[r])})},h=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||{}),{},a({},o,e[o])):r},null):null},v="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]:v;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]:v;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:"5.6.0"}),e.registerAppInfo({name:"react-stripe-js",version:"5.6.0",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]),c=s(r.useState(function(){return{stripe:"sync"===i.tag?i.stripe:null,elements:"sync"===i.tag?i.stripe.elements(n):null}}),2),u=c[0],a=c[1];r.useEffect(function(){var e=!0,t=function(e){a(function(t){return t.stripe?t:{stripe:e,elements:e.elements(n)}})};return"async"!==i.tag||u.stripe?"sync"!==i.tag||u.stripe||t(i.stripe):i.stripePromise.then(function(n){n&&e&&t(n)}),function(){e=!1}},[i,u,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(u.elements){var e=h(n,p,["clientSecret","fonts"]);e&&u.elements.update(e)}},[n,p,u.elements]),r.useEffect(function(){E(u.stripe)},[u.stripe]),r.createElement(S.Provider,{value:u},o)};w.propTypes={stripe:o.any,options:o.object};var O=function(){var e;return(e="calls useElements()",j(r.useContext(S),e)).elements};o.func.isRequired;var C=r.createContext(null);C.displayName="CheckoutContext",o.any,o.shape({clientSecret:o.oneOfType([o.string,o.instanceOf(Promise)]).isRequired,elementsOptions:o.object}).isRequired;var k=function(e){var t=r.useContext(C),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 <CheckoutProvider> and <Elements> providers."))},P=["mode"],x=function(e,t){var n="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),i=t?function(e){k("mounts <".concat(n,">"));var t=e.id,o=e.className;return r.createElement("div",{id:t,className:o})}:function(t){var o,i=t.id,c=t.className,u=t.options,a=void 0===u?{}:u,l=t.onBlur,d=t.onFocus,m=t.onReady,y=t.onChange,v=t.onEscape,b=t.onClick,g=t.onLoadError,E=t.onLoaderStart,S=t.onNetworksChange,j=t.onConfirm,w=t.onCancel,O=t.onShippingAddressChange,C=t.onShippingRateChange,x=t.onSavedPaymentMethodRemove,A=t.onSavedPaymentMethodUpdate,R=k("mounts <".concat(n,">")),_="elements"in R?R.elements:null,T="checkoutState"in R?R.checkoutState:null,I=(null==T?void 0:T.type)==="success"||(null==T?void 0:T.type)==="loading"?T.sdk:null,N=s(r.useState(null),2),L=N[0],M=N[1],q=r.useRef(null),F=r.useRef(null);p(L,"blur",l),p(L,"focus",d),p(L,"escape",v),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",O),p(L,"shippingratechange",C),p(L,"savedpaymentmethodremove",x),p(L,"savedpaymentmethodupdate",A),p(L,"change",y),m&&(o="expressCheckout"===e?m:function(){m(L)}),p(L,"ready",o),r.useLayoutEffect(function(){if(null===q.current&&null!==F.current&&(_||I)){var t=null;if(I)switch(e){case"paymentForm":t=I.createPaymentFormElement(a);break;case"payment":t=I.createPaymentElement(a);break;case"address":if("mode"in a){var r=a.mode,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(a,P);if("shipping"===r)t=I.createShippingAddressElement(o);else if("billing"===r)t=I.createBillingAddressElement(o);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=I.createExpressCheckoutElement(a);break;case"currencySelector":t=I.createCurrencySelectorElement();break;case"taxId":t=I.createTaxIdElement(a);break;default:throw Error("Invalid Element type ".concat(n,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else _&&(t=_.create(e,a));q.current=t,M(t),t&&t.mount(F.current)}},[_,I,a]);var W=f(a);return r.useEffect(function(){if(q.current){var e=h(a,W,["paymentRequest"]);e&&"update"in q.current&&q.current.update(e)}},[a,W]),r.useLayoutEffect(function(){return function(){if(q.current&&"function"==typeof q.current.destroy)try{q.current.destroy(),q.current=null}catch(e){}}},[]),r.createElement("div",{id:i,className:c,ref:F})};return i.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,options:o.object},i.displayName=n,i.__elementType=e,i},A="undefined"==typeof window;r.createContext(null).displayName="EmbeddedCheckoutProviderContext";var R=function(){return k("calls useStripe()").stripe};x("auBankAccount",A),x("card",A),x("cardNumber",A),x("cardExpiry",A),x("cardCvc",A),x("iban",A);var _=x("payment",A);x("expressCheckout",A),x("paymentRequestButton",A);var T=x("linkAuthentication",A);x("address",A),x("shippingAddress",A),x("paymentMethodMessaging",A),x("taxId",A)},8672:function(e,t,n){"use strict";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,{J:function(){return g}});var o,i="clover",c="https://js.stripe.com",u="".concat(c,"/").concat(i,"/stripe.js"),a=/^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(c,'"]')),t=0;t<e.length;t++){var n,r=e[t];if(n=r.src,a.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(u).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:"8.7.0",startTime:t})},d=null,m=null,y=null,h=function(e,t,n){if(null===e)return null;var o,c=t[0];if("string"!=typeof c)throw Error("Expected publishable key to be of type string, got type ".concat(r(c)," instead."));var u=c.match(/^pk_test/),a=3===(o=e.version)?"v3":o;u&&a!==i&&console.warn("Stripe.js@".concat(a," was loaded on the page, but @stripe/stripe-js@").concat("8.7.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},v=!1,b=function(){return o||(o=(null!==d?d:(d=new Promise(function(e,t){if("undefined"==typeof window||"undefined"==typeof document){e(null);return}if(window.Stripe,window.Stripe){e(window.Stripe);return}try{var n,r=l();r?r&&null!==y&&null!==m&&(r.removeEventListener("load",y),r.removeEventListener("error",m),null===(n=r.parentNode)||void 0===n||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){v||console.warn(e)});var g=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];v=!0;var r=Date.now();return b().then(function(e){return h(e,t,r)})}}}]);