PageSourceSearch

https://cdn.supademo.com/v3.24.5/_next/static/chunks/0hzj1iarczqxl.js

js supademo.com collected 2026-09-24 08:28:10 UTC 30,939 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="7a3972d0-b8ba-adb2-4cf7-c2f23ca28560")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,976634,385295,e=>{"use strict";var t=e.i(271350),r=e.i(916084),a=e.i(3600),n=e.i(873803);e.i(109974);var i=e.i(144261),s=e.i(926040),o=e.i(650653),d=e.i(519453),l=e.i(533637);try{var c=window;c._sentryModuleMetadata=c._sentryModuleMetadata||{},c._sentryModuleMetadata[(new c.Error).stack]=Object.assign({},c._sentryModuleMetadata[(new c.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let u=async()=>{let{redirectUrl:e}=(await o.default.get("/api/payment/portal")).data;e?(0,l.safeWindowOpen)({url:e}):console.error("Error creating checkout session")},p=async e=>{let t=(0,l.safeWindowOpen)({url:"about:blank",retainHandle:!0});t&&(t.opener=null);try{let r=e?`${d.paymentEndpoints.recovery}?workspaceId=${encodeURIComponent(e)}`:d.paymentEndpoints.recovery,a=(await o.default.get(r)).data.redirectUrl;if("string"!=typeof a||!a)throw Error("Unable to open payment recovery");if(t&&!t.closed)return void t.location.assign(a);(0,l.safeWindowOpen)({target:"_self",url:a,validateProtocol:!0})}catch(e){throw t?.close(),e}},m=async e=>{let t=(0,l.safeWindowOpen)({url:"about:blank",retainHandle:!0});t&&(t.opener=null);try{let r=(await o.default.post(d.paymentEndpoints.billingUpdate,e?{workspaceId:e}:{})).data.redirectUrl;if("string"!=typeof r||!r)throw Error("Unable to open payment method update");if(t&&!t.closed)return void t.location.assign(r);(0,l.safeWindowOpen)({target:"_self",url:r,validateProtocol:!0})}catch(e){throw t?.close(),e}};e.s(["openCustomerPortal",0,u,"openPaymentMethodUpdate",0,m,"openPaymentRecovery",0,p],385295);try{var y=window;y._sentryModuleMetadata=y._sentryModuleMetadata||{},y._sentryModuleMetadata[(new y.Error).stack]=Object.assign({},y._sentryModuleMetadata[(new y.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let g={"payment-method-declined":{buttonLabel:"Update payment method",description:"Update the payment method, then try again.",errorMessage:"We couldn't open the payment update. Try again or open Billing settings.",openRecovery:m,title:"Payment method declined"},"subscription-past-due":{buttonLabel:"Complete payment",description:"Complete the outstanding payment, then try again.",errorMessage:"We couldn't open the outstanding payment. Try again or open Billing settings.",openRecovery:p,title:"Payment needs attention"}};function f({className:e,type:o,workspaceId:d}){let[l,c]=(0,n.useState)(!1),[u,p]=(0,n.useState)(null),m=g[o],y=async()=>{c(!0),p(null);try{await m.openRecovery(d)}catch{p(m.errorMessage)}finally{c(!1)}};return(0,t.jsx)("div",{className:(0,s.cx)("supaToken rounded-lg border border-error_subtle bg-error-primary px-4 py-3",e),role:"alert",children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(r.AlertCircle,{"aria-hidden":"true",className:"mt-0.5 size-5 shrink-0 text-error-primary"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-error-primary",children:m.title}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-relaxed text-error-primary",children:m.description}),u?(0,t.jsx)("p",{className:"mt-2 text-sm font-medium text-error-primary",children:u}):null,(0,t.jsx)(i.Button,{className:"mt-3",color:"secondary-destructive",iconLeading:a.CreditCard02,isLoading:l,loadingText:"Opening...",onClick:y,size:"sm",children:m.buttonLabel})]})]})})}e.s(["PastDueBillingRecoveryNotice",0,function(e){return(0,t.jsx)(f,{...e,type:"subscription-past-due"})},"PaymentMethodRecoveryNotice",0,function(e){return(0,t.jsx)(f,{...e,type:"payment-method-declined"})}],976634)},591283,e=>{"use strict";var t=e.i(271350),r=e.i(873803),a=e.i(926040),n=e.i(900418);try{var i=window;i._sentryModuleMetadata=i._sentryModuleMetadata||{},i._sentryModuleMetadata[(new i.Error).stack]=Object.assign({},i._sentryModuleMetadata[(new i.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let s={xs:"*:data-icon:size-3 *:data-icon:stroke-[2.5px]",sm:"*:data-icon:size-4 *:data-icon:stroke-[2.25px]",md:"*:data-icon:size-5",lg:"*:data-icon:size-6",xl:"*:data-icon:size-7"}
2,o=(0,a.sortCx)({light:{base:"rounded-full",sizes:{xs:"size-6",sm:"size-8",md:"size-10",lg:"size-12",xl:"size-14"},colors:{brand:"bg-brand-secondary text-featured-icon-light-fg-brand",gray:"bg-tertiary text-featured-icon-light-fg-gray",error:"bg-error-secondary text-featured-icon-light-fg-error",warning:"bg-warning-secondary text-featured-icon-light-fg-warning",success:"bg-success-secondary text-featured-icon-light-fg-success"}},gradient:{base:"rounded-full text-fg-white before:absolute before:inset-0 before:size-full before:rounded-full before:border before:mask-b-from-0% after:absolute after:block after:rounded-full",sizes:{xs:"size-6 after:size-4.5 *:data-icon:size-3",sm:"size-8 after:size-6 *:data-icon:size-4",md:"size-10 after:size-7 *:data-icon:size-4",lg:"size-12 after:size-8 *:data-icon:size-5",xl:"size-14 after:size-10 *:data-icon:size-5"},colors:{brand:"before:border-utility-brand-200 before:bg-utility-brand-50 after:bg-brand-solid",gray:"before:border-utility-gray-200 before:bg-utility-gray-50 after:bg-secondary-solid",error:"before:border-utility-error-200 before:bg-utility-error-50 after:bg-error-solid",warning:"before:border-utility-warning-200 before:bg-utility-warning-50 after:bg-warning-solid",success:"before:border-utility-success-200 before:bg-utility-success-50 after:bg-success-solid"}},dark:{base:"text-fg-white shadow-xs-skeuomorphic before:absolute before:inset-px before:border before:border-white/12 before:mask-b-from-0%",sizes:{xs:"size-6 rounded-[5px] before:rounded-[4px]",sm:"size-8 rounded-md before:rounded-[5px]",md:"size-10 rounded-lg before:rounded-[7px]",lg:"size-12 rounded-[10px] before:rounded-[9px]",xl:"size-14 rounded-xl before:rounded-[11px]"},colors:{brand:"bg-brand-solid before:border-utility-brand-200/12",gray:"bg-secondary-solid before:border-utility-gray-200/12",error:"bg-error-solid before:border-utility-error-200/12",warning:"bg-warning-solid before:border-utility-warning-200/12",success:"bg-success-solid before:border-utility-success-200/12"}},modern:{base:"bg-primary shadow-xs-skeuomorphic ring-1 ring-primary ring-inset",sizes:{xs:"size-6 rounded-[5px]",sm:"size-8 rounded-md",md:"size-10 rounded-lg",lg:"size-12 rounded-[10px]",xl:"size-14 rounded-xl"},colors:{brand:"text-fg-brand-primary",gray:"text-fg-secondary",error:"text-fg-error-primary",warning:"text-fg-warning-primary",success:"text-fg-success-primary"}},"modern-neue":{base:"bg-primary_alt ring-1 ring-inset before:absolute before:inset-1 before:shadow-[0px_1px_2px_0px_rgba(0,0,0,0.1),0px_3px_3px_0px_rgba(0,0,0,0.09),1px_8px_5px_0px_rgba(0,0,0,0.05),2px_21px_6px_0px_rgba(0,0,0,0),0px_0px_0px_1px_rgba(0,0,0,0.08),1px_13px_5px_0px_rgba(0,0,0,0.01),0px_-2px_2px_0px_rgba(0,0,0,0.13)_inset] before:ring-1 before:ring-secondary_alt",sizes:{xs:"size-6 rounded-[6px] before:rounded-[3px]",sm:"size-8 rounded-[8px] before:rounded-[4px]",md:"size-10 rounded-[10px] before:rounded-[6px]",lg:"size-12 rounded-[12px] before:rounded-[8px]",xl:"size-14 rounded-[14px] before:rounded-[10px]"},colors:{brand:"",gray:"text-fg-secondary ring-primary",error:"",warning:"",success:""}},outline:{base:"before:absolute before:rounded-xl before:border-2 after:absolute after:rounded-xl after:border-2",sizes:{xs:"size-3 before:size-6 after:size-8.5",sm:"size-4 before:size-7 after:size-9.5",md:"size-5 before:size-8 after:size-10.5",lg:"size-6 before:size-9 after:size-11.5",xl:"size-7 before:size-10 after:size-12.5"},colors:{brand:"text-fg-brand-primary before:border-fg-brand-primary/30 after:border-fg-brand-primary/10",gray:"text-fg-tertiary before:border-fg-tertiary/30 after:border-fg-tertiary/10",error:"text-fg-error-primary before:border-fg-error-primary/30 after:border-fg-error-primary/10",warning:"text-fg-warning-primary before:border-fg-warning-primary/30 after:border-fg-warning-primary/10",success:"text-fg-success-primary before:border-fg-success-primary/30 after:border-fg-success-primary/10"}}});e.s(["FeaturedIcon",0,e=>{let{size:i="sm",theme:d="light",color:l="brand",icon:c,...u}=e;return(0,t.jsxs)("div",{...u,"data-featured-icon":!0,className:(0,a.cx)("supaToken relative flex shrink-0 items-center justify-center",s[i],o[d].base,o[d].sizes[i],o[d].colors[l],e.className),children:[(0,n.isReactComponent)(c)&&(0,t.jsx)(c,{"data-icon":!0,className:"z-1"}),(0,r.isValidElement)(c)&&(0,t.jsx)("div",{className:"z-1",children:c}),e.children]})}])},497650,e=>{"use strict";var t=e.i(271350),r=e.i(580415),a=e.i(904046),n=e.i(591283),i=e.i(926040);try{var s=window;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}e.s(["DialogLayout",0,e=>(0,t.jsxs)("div",{className:(0,i.cx)("supaToken relative flex flex-col gap-4 roun
2ded-xl bg-primary p-6 border border-secondary",e.className),children:[e.onClose&&(0,t.jsx)(a.CloseButton,{onClick:e.onClose,size:"sm",label:"Close",className:"absolute top-3 right-3"}),(0,t.jsxs)("div",{className:"flex flex-col gap-5",children:[void 0!==e.icon&&e.iconColor&&(0,t.jsx)(n.FeaturedIcon,{icon:e.icon,color:e.iconColor,theme:"outline",size:"lg"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(r.Heading,{slot:"title",className:"text-lg font-semibold text-primary",children:e.title}),e.description&&(0,t.jsx)("p",{className:"text-sm text-tertiary",children:e.description})]})]}),e.children,e.footer]})])},56440,770938,913104,971841,e=>{"use strict";var t=e.i(271350),r=e.i(916084),a=e.i(95740),n=e.i(266192),i=e.i(144261),s=e.i(766581),o=e.i(497650),d=e.i(873803),l=e.i(188214),c=e.i(901377),u=e.i(112531),p=e.i(926040);try{var m=window;m._sentryModuleMetadata=m._sentryModuleMetadata||{},m._sentryModuleMetadata[(new m.Error).stack]=Object.assign({},m._sentryModuleMetadata[(new m.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let y={narrow:"max-w-md",normal:"max-w-lg",wide:"max-w-xl",wider:"max-w-4xl",widest:"max-w-5xl",full:"max-w-full"},g={default:"supaToken fixed inset-0 z-modal flex min-h-dvh w-full items-end justify-center overflow-y-auto bg-overlay/70 px-4 pt-4 pb-[clamp(16px,8vh,64px)] outline-hidden backdrop-blur-[6px] sm:items-center sm:justify-center sm:p-8",workspace:"supaToken fixed inset-0 z-800 hidden h-dvh w-full items-stretch justify-stretch overflow-hidden bg-gray-500/75 p-6 outline-hidden md:flex"},f={default:"supaToken max-h-full w-full align-middle outline-hidden max-sm:overflow-y-auto max-sm:rounded-xl",workspace:"supaToken h-full max-h-full w-full max-w-full align-middle outline-hidden"},b=l.DialogTrigger,x=e=>{let{className:r,layout:a="default",...n}=e;return(0,t.jsx)(c.ModalOverlay,{...n,className:e=>(0,p.cx)(g[a],e.isEntering&&"duration-300 ease-out animate-in fade-in",e.isExiting&&"duration-200 ease-in animate-out fade-out","function"==typeof r?r(e):r)})},h=e=>{let{className:r,layout:a="default",size:n="normal",...i}=e;return(0,t.jsx)(c.Modal,{...i,className:e=>(0,p.cx)(f[a],"default"===a&&y[n],e.isEntering&&"duration-300 ease-out animate-in zoom-in-95",e.isExiting&&"duration-200 ease-in animate-out zoom-out-95","function"==typeof r?r(e):r)})},w=e=>{let[r,a]=(0,d.useState)(null);return(0,t.jsx)(l.Dialog,{...e,ref:a,className:(0,p.cx)("supaToken outline-hidden",e.className),children:a=>(0,t.jsx)(u.PortalContainerProvider,{container:r,children:"function"==typeof e.children?e.children(a):e.children})})};e.s(["Dialog",0,w,"DialogTrigger",0,b,"Modal",0,h,"ModalOverlay",0,x],770938);try{var M=window;M._sentryModuleMetadata=M._sentryModuleMetadata||{},M._sentryModuleMetadata[(new M.Error).stack]=Object.assign({},M._sentryModuleMetadata[(new M.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}n.InfoCircle,a.CheckCircle,r.AlertCircle,r.AlertCircle;var _=e.i(709625);try{var E=window;E._sentryModuleMetadata=E._sentryModuleMetadata||{},E._sentryModuleMetadata[(new E.Error).stack]=Object.assign({},E._sentryModuleMetadata[(new E.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let v={primary:{icon:n.InfoCircle,iconColor:"brand",confirmColor:"primary"},danger:{icon:_.AlertTriangle,iconColor:"error",confirmColor:"primary-destructive"},warning:{icon:_.AlertTriangle,iconColor:"warning",confirmColor:"primary"}},C={intent:"primary",confirmLabel:"Confirm",cancelLabel:"Cancel",loadingText:"Loading...",size:"narrow",isLoading:!1};e.s(["ConfirmDialog",0,e=>{let r=(0,s.withDefaults)(e,C),a=v[r.intent];return(0,t.jsx)(x,{className:r.overlayClassName,isOpen:r.isOpen,onOpenChange:r.onOpenChange,isDismissable:!r.isLoading,isKeyboardDismissDisabled:r.isLoading,children:(0,t.jsx)(h,{size:r.size,children:(0,t.jsx)(w,{children:(0,t.jsx)(o.DialogLayout,{title:r.title,description:r.description,icon:r.icon??a.icon,iconColor:a.iconColor,titleTestId:r.titleTestId,footer:(0,t.jsxs)("div",{className:"flex justify-end gap-3",children:[(0,t.jsx)(i.Button,{onClick:()=>{r.onCancel?r.onCancel():r.onOpenChange(!1)},color:"secondary",size:"sm",isDisabled:r.isLoading,children:r.cancelLabel}),(0,t.jsx)(i.Button,{onClick:r.onConfirm,color:a.confirmColor,size:"sm",isLoading:r.isLoading,loadingText:r.loadingText,isDisabled:r.isConfirmDisabled,children:r.confirmLabel})]}),children:r.children})})})})}],913104);var k=e.i(580415);try{var z=window;z._sentryModuleMetadata=z._sentryModuleMetadata||{},z._sentryModuleMetadata[(new z.Error).stack]=Object.assign({},z._sentryModuleMetadata[(new z.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let O={cancelLabel:"Cancel",isLoading:!1,isSubmitDisabled:!1,loadingText:"Saving...",showActions:!0,showCancel:!0,size:"normal",submitLabel:"Save"};e.s(["FormDialog",0,e=>{let r=(0,s.withDefaults)(e,O),a=!!r.showActions&&r.isLoading;return(0,t.jsx)(x,{isOpen:r.isOpen,onOpenChange:r.onOpenChange,isDismissable:!a,isKeyboardDismissDisabled:a,children:(0,t.jsx)(h,{size:r.size,children:(0,t.jsx)(w,{children:(0,t.jsxs)("div",{className:"supaToken flex max-h-[calc(100dvh-4rem)] flex-col rounded-xl bg-primary shadow-xl ring-1 ring-inset ring-border-secondary",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 p-6 pb-0",children:[r.leadingVisual&&(0,t.jsx)("div",{className:"flex size-10 shrink-0 items-center justify-center rounded-lg border border-secondary bg-primary shadow-xs",children:r.leadingVisual}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsx)(k.Heading,{slot:"title",className:"text-lg font-semibold text-primary",children:r.title}),r.description&&(0,t.jsx)("p",{className:"text-sm text-tertiary",children:r.description})]}),r.headerTrailing&&(0,t.jsx)("div",{className:"ml-auto shrink-0",children:r.headerTrailing})]}),(0,t.jsx)("div",{className:"pretty-scrollbar min-h-0 overflow-y-auto p-6",children:r.children}),r.showActions?(0,t.jsxs)("div",{className:"flex flex-col gap-3 border-t border-secondary px-6 py-4 sm:flex-row sm:items-center sm:justify-between",children:[r.footerLeading?(0,t.jsx)("div",{className:"min-w-0 sm:w-auto",children:r.footerLeading}):null,(0,t.jsxs)("div",{className:"flex w-full flex-wrap justify-end gap-3 sm:ml-auto sm:w-auto",children:[r.showCancel?(0,t.jsx)(i.Button,{onClick:()=>{r.onCancel?r.onCancel():r.onOpenChange(!1)},color:"secondary",size:"sm",isDisabled:r.isLoading,children:r.cancelLabel}):null,(0,t.jsx)(i.Button,{onClick:r.onSubmit,color:"primary",size:"sm",isDisabled:r.isSubmitDisabled||!r.onSubmit,isLoading:r.isLoading,loadingText:r.loadingText,children:r.submitLabel})]})]}):null]})})})})}],971841);try{var P=window;P._sentryModuleMetadata=P._sentryModuleMetadata||{},P._sentryModuleMetadata[(new P.Error).stack]=Object.assign({},P._sentryModuleMetadata[(new P.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}e.s([],56440)},112531,e=>{"use strict";var t=e.i(271350),r=e.i(873803);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let n=(0,r.createContext)(null);e.s(["PortalContainerProvider",0,function({container:e,children:r}){return(0,t.jsx)(n.Provider,{value:e,children:r})},"usePortalContainer",0,function(){let e=(0,r.useContext)(n),[t,a]=(0,r.useState)(null);return(0,r.useEffect)(()=>{a(document.body)},[]),e??t}])},156421,e=>{"use strict";try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}e.s(["API_ERROR_CODES",0,{enterpriseLicenseLimitReached:"ENTERPRISE_LICENSE_
2LIMIT_REACHED",htmlDemosPlanRequired:"HTML_DEMOS_PLAN_REQUIRED",htmlConvertedCopyFailed:"HTML_CONVERTED_COPY_FAILED",htmlStepsRequireHtmlDemo:"HTML_STEPS_REQUIRE_HTML_DEMO",inviteLinkJoinLimitReached:"INVITE_LINK_JOIN_LIMIT_REACHED",inviteLinkViewerLimitReached:"INVITE_LINK_VIEWER_LIMIT_REACHED",paymentMethodDeclined:"PAYMENT_METHOD_DECLINED",sandboxDemosPlanRequired:"SANDBOX_DEMOS_PLAN_REQUIRED",subscriptionPastDue:"SUBSCRIPTION_PAST_DUE"}])},77128,e=>{"use strict";var t=e.i(650653);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}function a(e){return"string"==typeof e&&e.trim()?e.trim():void 0}e.s(["getErrorMessage",0,function(e,r,{includeAxiosMessage:n=!0,includeErrorMessage:i=!0,ignoreGenericServerMessage:s=!0}={}){if(t.default.isAxiosError(e)){let t=a(e.response?.data?.error)??a(e.response?.data?.message);return t&&!(s&&"An unwanted error occurred."===t)?t:n&&e.message||r}return i&&e instanceof Error&&e.message||r}])},374686,e=>{"use strict";var t=e.i(650653),r=e.i(832356);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let n=r.z.discriminatedUnion("status",[r.z.object({status:r.z.literal("succeeded")}),r.z.object({status:r.z.literal("unchanged")}),r.z.object({clientSecret:r.z.string().min(1),invoiceId:r.z.string().min(1),operationId:r.z.string().uuid(),status:r.z.literal("requires_action")})]);var i=e.i(156421),s=e.i(519453);try{var o=window;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let d=null;class l extends Error{constructor(e){super(e),this.name="StripePaymentActionCancelledError"}}class c extends Error{constructor(e="We couldn't charge the workspace payment method."){super(e),this.name="StripePaymentMethodDeclinedError"}}function u(e,r){if(!t.default.isAxiosError(e))return!1;let a=e.response?.data;return null!==a&&"object"==typeof a&&"code"in a&&a.code===r}async function p(e){try{let r=(await t.default.post(s.paymentEndpoints.subscriptionPendingCancel,e)).data.status;return"cancelled"===r||"succeeded"===r?r:"unknown"}catch{return"unknown"}}async function m(e,t,{paymentMethodDeclined:r=!1}={}){let a=await p(e);if("succeeded"!==a){if("cancelled"===a){if(r)throw new c(t);throw new l(t)}throw Error(t)}}async function y(r,a={}){let i,o=n.safeParse(r);if(!o.success)throw Error("The billing update returned an unexpected response. Please try again.");let l=o.data;if("requires_action"!==l.status)return;let c={invoiceId:l.invoiceId,operationId:l.operationId,...a.workspaceId?{workspaceId:a.workspaceId}:{}};try{i=await (d??=e.A(400465).then(({loadStripe:e})=>e("pk_live_51NBn78DNBXQNFoJIfpm7DHXPnKycjatm2kBWUx92UciYqSSSefbG2qsgUSWSSsXkh367hTYX4pXXTh6pNprzrvxU00zQmhcLKT")).catch(e=>{throw d=null,e}))}catch{await m(c,"Payment confirmation is temporarily unavailable.");return}if(!i)return void await m(c,"Payment confirmation is temporarily unavailable.");a.onConfirmationRequired&&(await a.onConfirmationRequired(),await new Promise(e=>window.setTimeout(e,0)));let u=await i.confirmCardPayment(l.clientSecret);if(u.error)return void await m(c,u.error.message??"Payment confirmation was not completed.",{paymentMethodDeclined:"card_error"===u.error.type&&"payment_intent_authentication_failure"!==u.error.code});if("succeeded"!==u.paymentIntent.status)return void await m(c,"Payment confirmation was not completed.");if("succeeded"!==(await t.default.post(s.paymentEndpoints.subscriptionPendingConfirm,c)).data.status)throw Error("Payment was confirmed, but the update is still processing.")}e.s(["StripePaymentActionCancelledError",0,l,"completeStripePaymentAction",0,y,"isPaymentMethodDeclinedError",0,function(e){return e instanceof c||u(e,i.API_ERROR_CODES.paymentMethodDeclined)},"isSubscriptionPastDueError",0,function(e){return u(e,i.API_ERROR_CODES.subscriptionPastDue)}],374686)},766581,e=>{"use strict";try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}e.s(["withDefaults",0,function(e,t){let r={...t,...e};for(let e in t)void 0===r[e]&&(r[e]=t[e]);return r}])},669738,e=>{"use strict";var t=e.i(449831),r=e.i(863047),a=e.i(874038),n=e.i(172080),i=e.i(789429),s=e.i(873803);try{var o="u">typeof window?window:e.g;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}e.s(["useModalOverlay",0,function(e,o,d){let{overlayProps:l,underlayProps:c}=(0,r.useOverlay)({...e,isOpen:o.isOpen,onClose:o.close},d);return(0,n.usePreventScroll)({isDisabled:!o.isOpen}),(0,a.useOverlayFocusContain)(),(0,s.useEffect)(()=>
2{if(o.isOpen&&d.current)return(0,t.ariaHideOutside)([d.current],{shouldUseInert:!0})},[o.isOpen,d]),{modalProps:(0,i.mergeProps)(l),underlayProps:c}}])},916084,e=>{"use strict";var t=e.i(873803);try{var r="u">typeof window?window:e.g;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let a=({size:e=24,color:r="currentColor",...a})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},t.createElement("path",{d:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));a.displayName="AlertCircle",e.s(["AlertCircle",0,a])},709625,e=>{"use strict";var t=e.i(873803);try{var r="u">typeof window?window:e.g;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let a=({size:e=24,color:r="currentColor",...a})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},t.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));a.displayName="AlertTriangle",e.s(["AlertTriangle",0,a])},95740,e=>{"use strict";var t=e.i(873803);try{var r="u">typeof window?window:e.g;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let a=({size:e=24,color:r="currentColor",...a})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},t.createElement("path",{d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));a.displayName="CheckCircle",e.s(["CheckCircle",0,a])},3600,e=>{"use strict";var t=e.i(873803);try{var r="u">typeof window?window:e.g;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let a=({size:e=24,color:r="currentColor",...a})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},t.createElement("path",{d:"M22 10H2m9 4H6M2 8.2v7.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 19 4.08 19 5.2 19h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 17.48 22 16.92 22 15.8V8.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 5 19.92 5 18.8 5H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 6.52 2 7.08 2 8.2Z"}));a.displayName="CreditCard02",e.s(["CreditCard02",0,a])},580415,e=>{"use strict";var t=e.i(471706),r=e.i(41731),a=e.i(873803);try{var n="u">typeof window?window:e.g;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let i=(0,a.forwardRef)(function(e,n){[e,n]=(0,t.useContextProps)(e,n,r.HeadingContext);let{children:i,level:s=3,className:o,...d}=e,l=t.dom[`h${s}`];return a.default.createElement(l,{...d,ref:n,className:null!=o?o:"react-aria-Heading"},i)});e.s(["Heading",0,i])},901377,e=>{"use strict";var t=e.i(471706),r=e.i(188214),a=e.i(36510),n=e.i(669738),i=e.i(874038),s=e.i(384151),o=e.i(278433),d=e.i(566474),l=e.i(910402),c=e.i(110662),u=e.i(32405),p=e.i(873803);try{var m="u">typeof window?window:e.g;m._sentryModuleMetadata=m._sentryModuleMetadata||{},m._sentryModuleMetadata[(new m.Error).stack]=Object.assign({},m._sentryModuleMetadata[(new m.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let y="u">
2typeof document&&window.visualViewport;function g(){return{width:y?y.width*y.scale:document.documentElement.clientWidth,height:y?y.height*y.scale:document.documentElement.clientHeight}}var f=e.i(627612),b=e.i(789429),x=e.i(619547),h=e.i(999791),w=e.i(770021);try{var M="u">typeof window?window:e.g;M._sentryModuleMetadata=M._sentryModuleMetadata||{},M._sentryModuleMetadata[(new M.Error).stack]=Object.assign({},M._sentryModuleMetadata[(new M.Error).stack],{"_sentryBundlerPluginAppKey:supademo-app":!0})}catch(e){}let _=(0,p.createContext)(null),E=(0,p.createContext)(null),v=(0,p.forwardRef)(function(e,t){if((0,p.useContext)(E))return p.default.createElement(z,{...e,modalRef:t},e.children);let{isDismissable:r,isKeyboardDismissDisabled:a,isOpen:n,defaultOpen:i,onOpenChange:s,children:o,isEntering:d,isExiting:l,UNSTABLE_portalContainer:c,shouldCloseOnInteractOutside:u,...m}=e;return p.default.createElement(C,{isDismissable:r,isKeyboardDismissDisabled:a,isOpen:n,defaultOpen:i,onOpenChange:s,isEntering:d,isExiting:l,UNSTABLE_portalContainer:c,shouldCloseOnInteractOutside:u},p.default.createElement(z,{...m,modalRef:t},o))}),C=(0,p.forwardRef)(function(e,n){[e,n]=(0,t.useContextProps)(e,n,_);let i=(0,p.useContext)(r.OverlayTriggerStateContext),s=(0,w.useOverlayTriggerState)(e),l=null==e.isOpen&&null==e.defaultOpen&&i?i:s,c=(0,o.useObjectRef)(n),u=(0,p.useRef)(null),m=(0,d.useExitAnimation)(c,l.isOpen),y=(0,d.useExitAnimation)(u,l.isOpen),g=m||y||e.isExiting||!1,f=(0,a.useIsSSR)();return(l.isOpen||g)&&!f?p.default.createElement(k,{...e,state:l,isExiting:g,overlayRef:c,modalRef:u}):null});function k({UNSTABLE_portalContainer:e,...s}){let o,m=s.modalRef,{state:h}=s,{modalProps:w,underlayProps:M}=(0,n.useModalOverlay)(s,h,m),_=(0,d.useEnterAnimation)(s.overlayRef)||s.isEntering||!1,v=(0,t.useRenderProps)({...s,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:_,isExiting:s.isExiting,state:h}}),C=function(){let e=(0,a.useIsSSR)(),[t,r]=(0,p.useState)(()=>e?{width:0,height:0}:g());return(0,p.useEffect)(()=>{let e,t=e=>{r(t=>e.width===t.width&&e.height===t.height?t:e)},a=()=>{y&&y.scale>1||t(g())},n=r=>{y&&y.scale>1||(0,u.willOpenKeyboard)((0,l.getEventTarget)(r))&&(e=requestAnimationFrame(()=>{let e=(0,l.getActiveElement)();e&&(0,u.willOpenKeyboard)(e)||t({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return t(g()),(0,c.isIOS)()&&window.addEventListener("blur",n,!0),y?y.addEventListener("resize",a):window.addEventListener("resize",a),()=>{cancelAnimationFrame(e),(0,c.isIOS)()&&window.removeEventListener("blur",n,!0),y?y.removeEventListener("resize",a):window.removeEventListener("resize",a)}},[]),t}();if("u">typeof document){let e=(0,f.isScrollable)(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().height%1;o=e.scrollHeight-t}let z={...v.style,"--visual-viewport-height":C.height+"px","--page-height":void 0!==o?o+"px":void 0};return p.default.createElement(i.Overlay,{isExiting:s.isExiting,portalContainer:e},p.default.createElement(t.dom.div,{...(0,b.mergeProps)((0,x.filterDOMProps)(s,{global:!0}),M),...v,style:z,ref:s.overlayRef,"data-entering":_||void 0,"data-exiting":s.isExiting||void 0},p.default.createElement(t.Provider,{values:[[E,{modalProps:w,modalRef:m,isExiting:s.isExiting,isDismissable:s.isDismissable}],[r.OverlayTriggerStateContext,h]]},v.children)))}function z(e){let{modalProps:a,modalRef:n,isExiting:i,isDismissable:l}=(0,p.useContext)(E),c=(0,p.useContext)(r.OverlayTriggerStateContext),u=(0,p.useMemo)(()=>(0,h.mergeRefs)(e.modalRef,n),[e.modalRef,n]),m=(0,o.useObjectRef)(u),y=(0,d.useEnterAnimation)(m),g=(0,t.useRenderProps)({...e,defaultClassName:"react-aria-Modal",values:{isEntering:y,isExiting:i,state:c}});return p.default.createElement(t.dom.div,{...(0,b.mergeProps)((0,x.filterDOMProps)(e,{global:!0}),a),...g,ref:m,"data-entering":y||void 0,"data-exiting":i||void 0},l&&p.default.createElement(s.DismissButton,{onDismiss:c.close}),g.children)}e.s(["Modal",0,v,"ModalOverlay",0,C],901377)}]);
3
4//# debugId=7a3972d0-b8ba-adb2-4cf7-c2f23ca28560

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.