(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[735],{7345: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;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:k;if(null===e||y(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment)return e;throw Error(t)},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k;if(y(e)&&"function"==typeof e.then)return{tag:"async",stripePromise:Promise.resolve(e).then(function(e){return E(e,t)})};var n=E(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},S=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"2.7.3"}),e.registerAppInfo({name:"react-stripe-js",version:"2.7.3",url:"https://stripe.com/docs/stripe-js/react"}))},j=t.createContext(null);j.displayName="ElementsContext";var x=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 provider."));return e},P=function(e){var n=e.stripe,r=e.options,o=e.children,i=t.useMemo(function(){return w(n)},[n]),c=a(t.useState(function(){return{stripe:"sync"===i.tag?i.stripe:null,elements:"sync"===i.tag?i.stripe.elements(r):null}}),2),u=c[0],s=c[1];t.useEffect(function(){var e=!0,t=function(e){s(function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}})};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,r]);var l=v(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 d=v(r);return t.useEffect(function(){if(u.elements){var e=g(r,d,["clientSecret","fonts"]);e&&u.elements.update(e)}},[r,d,u.elements]),t.useEffect(function(){S(u.stripe)},[u.stripe]),t.createElement(j.Provider,{value:u},o)};P.propTypes={stripe:h.any,options:h.object};var O=function(e){return x(t.useContext(j),e)},R=function(e){return(0,e.children)(O("mounts "))};R.propTypes={children:h.func.isRequired};var A=["on","session"],N=t.createContext(null);N.displayName="CustomCheckoutSdkContext";var I=function(e,t){if(!e)throw Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an provider."));return e},M=t.createContext(null);M.displayName="CustomCheckoutContext";var D=function(e,t){if(!e)return null;e.on,e.session;var n=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,A);return t?r(r({},n),t):r(r({},n),e.session())},T=function(e){var n=e.stripe,r=e.options,o=e.children,i=t.useMemo(function(){return w(n,"Invalid prop `stripe` supplied to `CustomCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},[n]),c=a(t.useState(null),2),u=c[0],s=c[1],l=a(t.useState(function(){return{stripe:"sync"===i.tag?i.stripe:null,customCheckoutSdk:null}}),2),d=l[0],p=l[1],f=function(e,t){p(function(n){return n.stripe&&n.customCheckoutSdk?n:{stripe:e,customCheckoutSdk:t}})},h=t.useRef(!1);t.useEffect(function(){var e=!0;return"async"!==i.tag||d.stripe?"sync"===i.tag&&i.stripe&&!h.current&&(h.current=!0,i.stripe.initCustomCheckout(r).then(function(e){e&&(f(i.stripe,e),e.on("change",s))})):i.stripePromise.then(function(t){t&&e&&!h.current&&(h.current=!0,t.initCustomCheckout(r).then(function(e){e&&(f(t,e),e.on("change",s))}))}),function(){e=!1}},[i,d,r,s]);var m=v(n);t.useEffect(function(){null!==m&&m!==n&&console.warn("Unsupported prop change on CustomCheckoutProvider: You cannot change the `stripe` prop after setting it.")},[m,n]);var b=v(r);t.useEffect(function(){if(d.customCheckoutSdk){!r.clientSecret||y(b)||C(r.clientSecret,b.clientSecret)||console.warn("Unsupported prop change: options.client_secret is not a mutable property.");var e,t,n=null==b?void 0:null===(e=b.elementsOptions)||void 0===e?void 0:e.appearance,o=null==r?void 0:null===(t=r.elementsOptions)||void 0===t?void 0:t.appearance;o&&!C(o,n)&&d.customCheckoutSdk.changeAppearance(o)}},[r,b,d.customCheckoutSdk]),t.useEffect(function(){S(d.stripe)},[d.stripe]);var g=t.useMemo(function(){return D(d.customCheckoutSdk,u)},[d.customCheckoutSdk,u]);return d.customCheckoutSdk?t.createElement(N.Provider,{value:d},t.createElement(M.Provider,{value:g},o)):null};T.propTypes={stripe:h.any,options:h.shape({clientSecret:h.string.isRequired,elementsOptions:h.object}).isRequired};var _=function(e){var n=t.useContext(N),r=t.useContext(j);if(n&&r)throw Error("You cannot wrap the part of your app that ".concat(e," in both and providers."));return n?I(n,e):x(r,e)},W=function(e,n){var r="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),o=n?function(e){_("mounts <".concat(r,">"));var n=e.id,o=e.className;return t.createElement("div",{id:n,className:o})}:function(n){var o,i=n.id,c=n.className,u=n.options,s=void 0===u?{}:u,l=n.onBlur,d=n.onFocus,p=n.onReady,f=n.onChange,h=n.onEscape,y=n.onClick,b=n.onLoadError,C=n.onLoaderStart,k=n.onNetworksChange,E=n.onConfirm,w=n.onCancel,S=n.onShippingAddressChange,j=n.onShippingRateChange,x=_("mounts <".concat(r,">")),P="elements"in x?x.elements:null,O="customCheckoutSdk"in x?x.customCheckoutSdk:null,R=a(t.useState(null),2),A=R[0],N=R[1],I=t.useRef(null),M=t.useRef(null);m(A,"blur",l),m(A,"focus",d),m(A,"escape",h),m(A,"click",y),m(A,"loaderror",b),m(A,"loaderstart",C),m(A,"networkschange",k),m(A,"confirm",E),m(A,"cancel",w),m(A,"shippingaddresschange",S),m(A,"shippingratechange",j),m(A,"change",f),p&&(o="expressCheckout"===e?p:function(){p(A)}),m(A,"ready",o),t.useLayoutEffect(function(){if(null===I.current&&null!==M.current&&(P||O)){var t=null;O?t=O.createElement(e,s):P&&(t=P.create(e,s)),I.current=t,N(t),t&&t.mount(M.current)}},[P,O,s]);var D=v(s);return t.useEffect(function(){if(I.current){var e=g(s,D,["paymentRequest"]);e&&I.current.update(e)}},[s,D]),t.useLayoutEffect(function(){return function(){if(I.current&&"function"==typeof I.current.destroy)try{I.current.destroy(),I.current=null}catch(e){}}},[]),t.createElement("div",{id:i,className:c,ref:M})};return o.propTypes={id:h.string,className:h.string,onChange:h.func,onBlur:h.func,onFocus:h.func,onReady:h.func,onEscape:h.func,onClick:h.func,onLoadError:h.func,onLoaderStart:h.func,onNetworksChange:h.func,onConfirm:h.func,onCancel:h.func,onShippingAddressChange:h.func,onShippingRateChange:h.func,options:h.object},o.displayName=r,o.__elementType=e,o},L="undefined"==typeof window,V=t.createContext(null);V.displayName="EmbeddedCheckoutProviderContext";var U=function(){var e=t.useContext(V);if(!e)throw Error(" must be used within ");return e},B=L?function(e){var n=e.id,r=e.className;return U(),t.createElement("div",{id:n,className:r})}:function(e){var n=e.id,r=e.className,o=U().embeddedCheckout,i=t.useRef(!1),a=t.useRef(null);return t.useLayoutEffect(function(){return!i.current&&o&&null!==a.current&&(o.mount(a.current),i.current=!0),function(){if(i.current&&o)try{o.unmount(),i.current=!1}catch(e){}}},[o]),t.createElement("div",{ref:a,id:n,className:r})},q=W("auBankAccount",L),Y=W("card",L),F=W("cardNumber",L),z=W("cardExpiry",L),Z=W("cardCvc",L),H=W("fpxBank",L),K=W("iban",L),X=W("idealBank",L),$=W("p24Bank",L),J=W("epsBank",L),G=W("payment",L),Q=W("expressCheckout",L),ee=W("paymentRequestButton",L),et=W("linkAuthentication",L),en=W("address",L),er=W("shippingAddress",L),eo=W("paymentMethodMessaging",L),ei=W("affirmMessage",L),ea=W("afterpayClearpayMessage",L);e.AddressElement=en,e.AffirmMessageElement=ei,e.AfterpayClearpayMessageElement=ea,e.AuBankAccountElement=q,e.CardCvcElement=Z,e.CardElement=Y,e.CardExpiryElement=z,e.CardNumberElement=F,e.CustomCheckoutProvider=T,e.Elements=P,e.ElementsConsumer=R,e.EmbeddedCheckout=B,e.EmbeddedCheckoutProvider=function(e){var n=e.stripe,r=e.options,o=e.children,i=t.useMemo(function(){return w(n,"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.")},[n]),c=t.useRef(null),u=t.useRef(null),s=a(t.useState({embeddedCheckout:null}),2),l=s[0],d=s[1];t.useEffect(function(){if(!u.current&&!c.current){var e=function(e){u.current||c.current||(u.current=e,c.current=u.current.initEmbeddedCheckout(r).then(function(e){d({embeddedCheckout:e})}))};"async"===i.tag&&!u.current&&(r.clientSecret||r.fetchClientSecret)?i.stripePromise.then(function(t){t&&e(t)}):"sync"===i.tag&&!u.current&&(r.clientSecret||r.fetchClientSecret)&&e(i.stripe)}},[i,r,l,u]),t.useEffect(function(){return function(){l.embeddedCheckout?(c.current=null,l.embeddedCheckout.destroy()):c.current&&c.current.then(function(){c.current=null,l.embeddedCheckout&&l.embeddedCheckout.destroy()})}},[l.embeddedCheckout]),t.useEffect(function(){S(u)},[u]);var p=v(n);t.useEffect(function(){null!==p&&p!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")},[p,n]);var f=v(r);return t.useEffect(function(){if(null!=f){if(null==r){console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them.");return}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!=f.clientSecret&&r.clientSecret!==f.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!=f.fetchClientSecret&&r.fetchClientSecret!==f.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!=f.onComplete&&r.onComplete!==f.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=f.onShippingDetailsChange&&r.onShippingDetailsChange!==f.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it.")}},[f,r]),t.createElement(V.Provider,{value:l},o)},e.EpsBankElement=J,e.ExpressCheckoutElement=Q,e.FpxBankElement=H,e.IbanElement=K,e.IdealBankElement=X,e.LinkAuthenticationElement=et,e.P24BankElement=$,e.PaymentElement=G,e.PaymentMethodMessagingElement=eo,e.PaymentRequestButtonElement=ee,e.ShippingAddressElement=er,e.useCustomCheckout=function(){e="calls useCustomCheckout()",I(t.useContext(N),e);var e,n=t.useContext(M);if(!n)throw Error("Could not find CustomCheckout Context; You need to wrap the part of your app that calls useCustomCheckout() in an provider.");return n},e.useElements=function(){return O("calls useElements()").elements},e.useStripe=function(){return _("calls useStripe()").stripe}}(t,n(2265))},42421:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let r=(0,n(78030).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},92940:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let r=(0,n(78030).Z)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},23787:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let r=(0,n(78030).Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},74697:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let r=(0,n(78030).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},64756:function(e,t,n){"use strict";n.d(t,{VY:function(){return ea},h4:function(){return eo},ck:function(){return er},fC:function(){return en},xz:function(){return ei}});var r=n(2265),o=n(98324),i=n(90976),a=n(1584),c=n(78149),u=n(91715),s=n(25171),l=n(1336),d=n(31383),p=n(53201),f=n(57437),h="Collapsible",[m,v]=(0,o.b)(h),[y,b]=m(h),C=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:i,disabled:a,onOpenChange:c,...l}=e,[d=!1,h]=(0,u.T)({prop:o,defaultProp:i,onChange:c});return(0,f.jsx)(y,{scope:n,disabled:a,contentId:(0,p.M)(),open:d,onOpenToggle:r.useCallback(()=>h(e=>!e),[h]),children:(0,f.jsx)(s.WV.div,{"data-state":j(d),"data-disabled":a?"":void 0,...l,ref:t})})});C.displayName=h;var g="CollapsibleTrigger",k=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=b(g,n);return(0,f.jsx)(s.WV.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":j(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,c.M)(e.onClick,o.onOpenToggle)})});k.displayName=g;var E="CollapsibleContent",w=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=b(E,e.__scopeCollapsible);return(0,f.jsx)(d.z,{present:n||o.open,children:e=>{let{present:n}=e;return(0,f.jsx)(S,{...r,ref:t,present:n})}})});w.displayName=E;var S=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:i,...c}=e,u=b(E,n),[d,p]=r.useState(o),h=r.useRef(null),m=(0,a.e)(t,h),v=r.useRef(0),y=v.current,C=r.useRef(0),g=C.current,k=u.open||d,w=r.useRef(k),S=r.useRef();return r.useEffect(()=>{let e=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,l.b)(()=>{let e=h.current;if(e){S.current=S.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,C.current=t.width,w.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),p(o)}},[u.open,o]),(0,f.jsx)(s.WV.div,{"data-state":j(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!k,...c,ref:m,style:{"--radix-collapsible-content-height":y?"".concat(y,"px"):void 0,"--radix-collapsible-content-width":g?"".concat(g,"px"):void 0,...e.style},children:k&&i})});function j(e){return e?"open":"closed"}var x=n(87513),P="Accordion",O=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[R,A,N]=(0,i.B)(P),[I,M]=(0,o.b)(P,[N,v]),D=v(),T=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,f.jsx)(R.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,f.jsx)(B,{...r,ref:t}):(0,f.jsx)(U,{...r,ref:t})})});T.displayName=P;var[_,W]=I(P),[L,V]=I(P,{collapsible:!1}),U=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},collapsible:a=!1,...c}=e,[s,l]=(0,u.T)({prop:n,defaultProp:o,onChange:i});return(0,f.jsx)(_,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:r.useCallback(()=>a&&l(""),[a,l]),children:(0,f.jsx)(L,{scope:e.__scopeAccordion,collapsible:a,children:(0,f.jsx)(F,{...c,ref:t})})})}),B=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},...a}=e,[c=[],s]=(0,u.T)({prop:n,defaultProp:o,onChange:i}),l=r.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[s]),d=r.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[s]);return(0,f.jsx)(_,{scope:e.__scopeAccordion,value:c,onItemOpen:l,onItemClose:d,children:(0,f.jsx)(L,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)(F,{...a,ref:t})})})}),[q,Y]=I(P),F=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:o,dir:i,orientation:u="vertical",...l}=e,d=r.useRef(null),p=(0,a.e)(d,t),h=A(n),m="ltr"===(0,x.gm)(i),v=(0,c.M)(e.onKeyDown,e=>{var t;if(!O.includes(e.key))return;let n=e.target,r=h().filter(e=>{var t;return!(null===(t=e.ref.current)||void 0===t?void 0:t.disabled)}),o=r.findIndex(e=>e.ref.current===n),i=r.length;if(-1===o)return;e.preventDefault();let a=o,c=i-1,s=()=>{(a=o+1)>c&&(a=0)},l=()=>{(a=o-1)<0&&(a=c)};switch(e.key){case"Home":a=0;break;case"End":a=c;break;case"ArrowRight":"horizontal"===u&&(m?s():l());break;case"ArrowDown":"vertical"===u&&s();break;case"ArrowLeft":"horizontal"===u&&(m?l():s());break;case"ArrowUp":"vertical"===u&&l()}null===(t=r[a%i].ref.current)||void 0===t||t.focus()});return(0,f.jsx)(q,{scope:n,disabled:o,direction:i,orientation:u,children:(0,f.jsx)(R.Slot,{scope:n,children:(0,f.jsx)(s.WV.div,{...l,"data-orientation":u,ref:p,onKeyDown:o?void 0:v})})})}),z="AccordionItem",[Z,H]=I(z),K=r.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...o}=e,i=Y(z,n),a=W(z,n),c=D(n),u=(0,p.M)(),s=r&&a.value.includes(r)||!1,l=i.disabled||e.disabled;return(0,f.jsx)(Z,{scope:n,open:s,disabled:l,triggerId:u,children:(0,f.jsx)(C,{"data-orientation":i.orientation,"data-state":et(s),...c,...o,ref:t,disabled:l,open:s,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})})});K.displayName=z;var X="AccordionHeader",$=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=Y(P,n),i=H(X,n);return(0,f.jsx)(s.WV.h3,{"data-orientation":o.orientation,"data-state":et(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});$.displayName=X;var J="AccordionTrigger",G=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=Y(P,n),i=H(J,n),a=V(J,n),c=D(n);return(0,f.jsx)(R.ItemSlot,{scope:n,children:(0,f.jsx)(k,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...c,...r,ref:t})})});G.displayName=J;var Q="AccordionContent",ee=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=Y(P,n),i=H(Q,n),a=D(n);return(0,f.jsx)(w,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Q;var en=T,er=K,eo=$,ei=G,ea=ee},38364:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var r=n(2265),o=n(25171),i=n(57437),a=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var c=a},9646:function(e,t,n){"use strict";n.d(t,{bU:function(){return w},fC:function(){return E}});var r=n(2265),o=n(78149),i=n(1584),a=n(98324),c=n(91715),u=n(47250),s=n(75238),l=n(25171),d=n(57437),p="Switch",[f,h]=(0,a.b)(p),[m,v]=f(p),y=r.forwardRef((e,t)=>{let{__scopeSwitch:n,name:a,checked:u,defaultChecked:s,required:p,disabled:f,value:h="on",onCheckedChange:v,...y}=e,[b,C]=r.useState(null),E=(0,i.e)(t,e=>C(e)),w=r.useRef(!1),S=!b||!!b.closest("form"),[j=!1,x]=(0,c.T)({prop:u,defaultProp:s,onChange:v});return(0,d.jsxs)(m,{scope:n,checked:j,disabled:f,children:[(0,d.jsx)(l.WV.button,{type:"button",role:"switch","aria-checked":j,"aria-required":p,"data-state":k(j),"data-disabled":f?"":void 0,disabled:f,value:h,...y,ref:E,onClick:(0,o.M)(e.onClick,e=>{x(e=>!e),S&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())})}),S&&(0,d.jsx)(g,{control:b,bubbles:!w.current,name:a,value:h,checked:j,required:p,disabled:f,style:{transform:"translateX(-100%)"}})]})});y.displayName=p;var b="SwitchThumb",C=r.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,o=v(b,n);return(0,d.jsx)(l.WV.span,{"data-state":k(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});C.displayName=b;var g=e=>{let{control:t,checked:n,bubbles:o=!0,...i}=e,a=r.useRef(null),c=(0,u.D)(n),l=(0,s.t)(t);return r.useEffect(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==n&&t){let r=new Event("click",{bubbles:o});t.call(e,n),e.dispatchEvent(r)}},[c,n,o]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function k(e){return e?"checked":"unchecked"}var E=y,w=C},62447:function(e,t,n){"use strict";n.d(t,{VY:function(){return N},aV:function(){return R},fC:function(){return O},xz:function(){return A}});var r=n(2265),o=n(78149),i=n(98324),a=n(53398),c=n(31383),u=n(25171),s=n(87513),l=n(91715),d=n(53201),p=n(57437),f="Tabs",[h,m]=(0,i.b)(f,[a.Pc]),v=(0,a.Pc)(),[y,b]=h(f),C=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:c,activationMode:f="automatic",...h}=e,m=(0,s.gm)(c),[v,b]=(0,l.T)({prop:r,onChange:o,defaultProp:i});return(0,p.jsx)(y,{scope:n,baseId:(0,d.M)(),value:v,onValueChange:b,orientation:a,dir:m,activationMode:f,children:(0,p.jsx)(u.WV.div,{dir:m,"data-orientation":a,...h,ref:t})})});C.displayName=f;var g="TabsList",k=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...o}=e,i=b(g,n),c=v(n);return(0,p.jsx)(a.fC,{asChild:!0,...c,orientation:i.orientation,dir:i.dir,loop:r,children:(0,p.jsx)(u.WV.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});k.displayName=g;var E="TabsTrigger",w=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...c}=e,s=b(E,n),l=v(n),d=x(s.baseId,r),f=P(s.baseId,r),h=r===s.value;return(0,p.jsx)(a.ck,{asChild:!0,...l,focusable:!i,active:h,children:(0,p.jsx)(u.WV.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":f,"data-state":h?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:d,...c,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(r)}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(r)}),onFocus:(0,o.M)(e.onFocus,()=>{let e="manual"!==s.activationMode;h||i||!e||s.onValueChange(r)})})})});w.displayName=E;var S="TabsContent",j=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:o,forceMount:i,children:a,...s}=e,l=b(S,n),d=x(l.baseId,o),f=P(l.baseId,o),h=o===l.value,m=r.useRef(h);return r.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,p.jsx)(c.z,{present:i||h,children:n=>{let{present:r}=n;return(0,p.jsx)(u.WV.div,{"data-state":h?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:f,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&a})}})});function x(e,t){return"".concat(e,"-trigger-").concat(t)}function P(e,t){return"".concat(e,"-content-").concat(t)}j.displayName=S;var O=C,R=k,A=w,N=j},47250:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(2265);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},13537:function(e,t,n){"use strict";n.d(t,{J:function(){return m}});var r,o="https://js.stripe.com/v3",i=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,a=function(){for(var e=document.querySelectorAll('script[src^="'.concat(o,'"]')),t=0;t element.");return r.appendChild(n),n},u=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"4.3.0",startTime:t})},s=null,l=null,d=null,p=function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return u(r,n),r},f=!1,h=function(){return r||(r=(null!==s?s:(s=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=a();r?r&&null!==d&&null!==l&&(r.removeEventListener("load",d),r.removeEventListener("error",l),null===(n=r.parentNode)||void 0===n||n.removeChild(r),r=c(null)):r=c(null),d=function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))},l=function(){t(Error("Failed to load Stripe.js"))},r.addEventListener("load",d),r.addEventListener("error",l)}catch(e){t(e);return}})).catch(function(e){return s=null,Promise.reject(e)})).catch(function(e){return r=null,Promise.reject(e)}))};Promise.resolve().then(function(){return h()}).catch(function(e){f||console.warn(e)});var m=function(){for(var e=arguments.length,t=Array(e),n=0;n