PageSourceSearch

https://cloudmysite.ai/assets/PaymentSuccessDialog-C-r3zina.js

js cloudmysite.ai collected 2026-10-05 15:12:48 UTC 17,384 bytes, 1 lines download raw bytes

1import{r as l,a as d,j as p}from"./jsx-runtime-C2UBfbyc.js";import{Y as j,S as M,U as z,V as B,W as I,X as E,Z as K,_ as Le,$ as Ae,a0 as G,a1 as Oe,a2 as ge,a3 as Me,a4 as he,a5 as be,a6 as Be,a7 as V,a8 as Q,a9 as Y,aa as A,ab as F,ac as Ye,ad as le,ae as ue,af as _e,ag as y,ah as we,ai as Ue,aj as xe,ak as Ve,al as se,am as Ee,an as ce,ao as U,ap as ye,aq as _,ar as ze,as as Ke,at as We,au as qe,av as He,aw as Xe,ax as Ge,ay as Qe,az as Ze,aA as de,aB as Je,aC as et,aD as tt,aE as pe}from"./Chat.client-D3wYdePh.js";import"./index-Ctn5E0jf.js";import"./contract-C8_2XbhZ.js";import"./amplify_outputs-ByhBuvRU.js";import"./logger-AqfA_hXV.js";import"./chat-YAQO4n_L.js";import"./index-CHoi3jgE.js";import"./index-DgoachrA.js";import"./artifactTitle-DNRdmHz0.js";import"./authenticated-chat-Yvg3yA_B.js";import"./resume-DQ2pc8eQ.js";import"./aiWorkspace-DNQ8NOJn.js";import"./auth-BYwTrny6.js";import"./API-DAFHaofH.js";import"./sync-DtNvzS6k.js";import"./HostedSignInButtons-BY3xXxUD.js";import"./index-qtUc8lsi.js";import"./react-toastify.esm-DcR-pTER.js";import"./clsx-B-dksMZM.js";import"./workbench-DVZ8UPcc.js";import"./preload-helper-CLcXU_4U.js";import"./chatMode-nkbEUJmy.js";import"./chatMedia-Bm3yTEDP.js";import"./networkQuality-MoaFJ23-.js";import"./clientImageAssets-BwBgCWfG.js";import"./index-D-j07sr6.js";import"./router-CdSor0Tc.js";import"./index-DG0jpFbZ.js";import"./index-SgDwteQq.js";import"./usePromptEnhancer-5VnOEynm.js";import"./pendingDashboardPromptAttachments-BmaqZ4u2.js";import"./index-CAsT1rfk.js";import"./index-DTbehiYO.js";import"./Dropdown-Dgl1XgmV.js";import"./index-D2RkbEbt.js";import"./index-CdmNQeNf.js";import"./classNames-D4DIdros.js";import"./supportLinks-D1aYQK4l.js";import"./proxy-gn4uqtVm.js";import"./BillingExperience-D-K1LAVQ.js";import"./service-D1r3_DgS.js";import"./createLucideIcon-C_AYRPVT.js";import"./video-CFxngqn5.js";import"./mic-vocal-20U2l1KN.js";import"./pricingData-DrQtaPwh.js";import"./platformPricing-tZHuNO2h.js";import"./useBillingSummary-BO9ufWot.js";import"./refresh-cw-BgmVbcS1.js";import"./gauge-DejO41ze.js";import"./credit-card-C6H2etZq.js";import"./file-text-Bq8boU8U.js";import"./circle-alert-BPTJID5T.js";import"./components-DKMMHsO5.js";import"./single-fetch-Bfr4o6AV.js";import"./shield-check-BYYH1pJ6.js";import"./search-ZlL_h0-r.js";import"./download-BNQ6jJBj.js";import"./Button-B5kdVOtM.js";import"./Dialog-DaMOFeJE.js";import"./check-6fU0F-bx.js";import"./ImageStudio-Bk7F7h1y.js";import"./imageStudio-BZ6yVwsW.js";import"./Input-DTMX85Mn.js";import"./Tabs-DNJS30xw.js";import"./imagePricing-Y4dpxEcZ.js";import"./useImagePricingPlan-Ddd2NPJk.js";import"./stripIndent-OpH14_i6.js";import"./workspaceHistorySource-CW8zU1pv.js";import"./index-Bj4CZp8v.js";import"./workspacePromptLaunch-Cfzl8mao.js";import"./googleDrive-2-J1c5so.js";import"./runtimeUsage-CUnLOScq.js";import"./homePromptDraft-Br7wJnvm.js";import"./mutations-Dba0hfjS.js";import"./d1RuntimeProduct-DuY39u3D.js";import"./genieWebsiteRazorpay--S7PVtZf.js";import"./homeReset-ClYxhsPV.js";import"./index-CDg6de0u.js";import"./routing-5g8LK-Iv.js";import"./ReportIssueLink-2gue2bLN.js";import"./ChatClientFallback-DRLUUO3H.js";import"./AuthWrapper-BR8lelxY.js";let rt=l.createContext(void 0);function nt(){return l.useContext(rt)}let J=l.createContext(null);J.displayName="DescriptionContext";function $e(){let e=l.useContext(J);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,$e),t}return e}function ot(){let[e,t]=l.useState([]);return[e.length>0?e.join(" "):void 0,l.useMemo(()=>function(r){let n=E(u=>(t(i=>[...i,u]),()=>t(i=>{let a=i.slice(),s=a.indexOf(u);return s!==-1&&a.splice(s,1),a}))),o=l.useMemo(()=>({register:n,slot:r.slot,name:r.name,props:r.props,value:r.value}),[n,r.slot,r.name,r.props,r.value]);return d.createElement(J.Provider,{value:o},r.children)},[t])]}let at="p";function it(e,t){let r=l.useId(),n=nt(),{id:o=`headlessui-description-${r}`,...u}=e,i=$e(),a=M(t);z(()=>i.register(o),[o,i.register]);let s=B({...i.slot,disabled:n||!1}),c={ref:a,...i.props,id:o};return I()({ourProps:c,theirProps:u,slot:s,defaultTag:at,name:i.name||"Description"})}let lt=j(it),ut=Object.assign(lt,{}),Z=new Map,O=new Map;function me(e){var t;let r=(t=O.get(e))!=null?t:0;return O.set(e,r+1),r!==0?()=>fe(e):(Z.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>fe(e))}function fe(e){var t;let r=(t=O.get(e))!=null?t:1;if(r===1?O.delete(e):O.set(e,r-1),r!==1)return;let n=Z.get(e);n&&(n["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,Z.delete(e))}function st(e,{allowed:t,disallowed:r}={}){let n=K(e,"inert-others");z(()=>{var o,u;if(!n)return;let i=Le();for(let s of(o=r?.())!=null?o:[])s&&i.add(me(s));let a=(u=t?.())!=null?u:[];for(let s of a){if(!s)continue;let c=Ae(s);if(!c)continue;let m=s.parentElement;for(;m&&m!==c.body;){for(let b of m.children)a.some(w=>b.contains(w))||i.add(me(b));m=m.parentElement}}return i.dispose},[n,t,r])}function ee(e,t){let r=l.useRef([]),n=E(e);l.useEffect(()=>{let o=[...r.current];for(let[u,i]of t.entries())if(r.current[u]!==i){let a=n(t,o);return r.current=t,a}},[n,...t])}function ct(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let T=[];ct(()=>{function e(t){if(!G(t.target)||t.target===document.body||T[0]===t.target)return;let r=t.target;r=r.closest(Oe),T.unshift(r??t.target),T=T.filter(n=>n!=null&&n.isConnected),T.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function dt(e,t=typeof document<"u"?document.defaultView:null,r){let n=K(e,"escape");ge(t,"keydown",o=>{n&&(o.defaultPrevented||o.key===Me.Escape&&r(o))})}function pt(){var e;let[t]=l.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[r,n]=l.useState((e=t?.matches)!=null?e:!1);return z(()=>{if(!t)return;function o(u){n(u.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),r}function Fe(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let r of e.current)Ue(r.current)&&t.add(r.current);return t}let mt="div";var P=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.Re
vendor: 4,720 bytes, line 1
1storeFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(P||{});function ft(e,t){let r=l.useRef(null),n=M(r,t),{initialFocus:o,initialFocusFallback:u,containers:i,features:a=15,...s}=e;he()||(a=0);let c=be(r.current);bt(a,{ownerDocument:c});let m=wt(a,{ownerDocument:c,container:r,initialFocus:o,initialFocusFallback:u});xt(a,{ownerDocument:c,container:r,containers:i,previousActiveElement:m});let b=Be(),w=E(v=>{if(!V(r.current))return;let k=r.current;(g=>g())(()=>{Q(b.current,{[Y.Forwards]:()=>{A(k,F.First,{skipElements:[v.relatedTarget,u]})},[Y.Backwards]:()=>{A(k,F.Last,{skipElements:[v.relatedTarget,u]})}})})}),x=K(!!(a&2),"focus-trap#tab-lock"),h=Ye(),D=l.useRef(!1),C={ref:n,onKeyDown(v){v.key=="Tab"&&(D.current=!0,h.requestAnimationFrame(()=>{D.current=!1}))},onBlur(v){if(!(a&4))return;let k=Fe(i);V(r.current)&&k.add(r.current);let g=v.relatedTarget;G(g)&&g.dataset.headlessuiFocusGuard!=="true"&&(Te(k,g)||(D.current?A(r.current,Q(b.current,{[Y.Forwards]:()=>F.Next,[Y.Backwards]:()=>F.Previous})|F.WrapAround,{relativeTo:v.target}):G(v.target)&&y(v.target)))}},$=I();return d.createElement(d.Fragment,null,x&&d.createElement(le,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:w,features:ue.Focusable}),$({ourProps:C,theirProps:s,defaultTag:mt,name:"FocusTrap"}),x&&d.createElement(le,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:w,features:ue.Focusable}))}let vt=j(ft),gt=Object.assign(vt,{features:P});function ht(e=!0){let t=l.useRef(T.slice());return ee(([r],[n])=>{n===!0&&r===!1&&xe(()=>{t.current.splice(0)}),n===!1&&r===!0&&(t.current=T.slice())},[e,T,t]),E(()=>{var r;return(r=t.current.find(n=>n!=null&&n.isConnected))!=null?r:null})}function bt(e,{ownerDocument:t}){let r=!!(e&8),n=ht(r);ee(()=>{r||Ve(t?.body)&&y(n())},[r]),_e(()=>{r&&y(n())})}function wt(e,{ownerDocument:t,container:r,initialFocus:n,initialFocusFallback:o}){let u=l.useRef(null),i=K(!!(e&1),"focus-trap#initial-focus"),a=we();return ee(()=>{if(e===0)return;if(!i){o!=null&&o.current&&y(o.current);return}let s=r.current;s&&xe(()=>{if(!a.current)return;let c=t?.activeElement;if(n!=null&&n.current){if(n?.current===c){u.current=c;return}}else if(s.contains(c)){u.current=c;return}if(n!=null&&n.current)y(n.current);else{if(e&16){if(A(s,F.First|F.AutoFocus)!==se.Error)return}else if(A(s,F.First)!==se.Error)return;if(o!=null&&o.current&&(y(o.current),t?.activeElement===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}u.current=t?.activeElement})},[o,i,e]),u}function xt(e,{ownerDocument:t,container:r,containers:n,previousActiveElement:o}){let u=we(),i=!!(e&4);ge(t?.defaultView,"focus",a=>{if(!i||!u.current)return;let s=Fe(n);V(r.current)&&s.add(r.current);let c=o.current;if(!c)return;let m=a.target;V(m)?Te(s,m)?(o.current=m,y(m)):(a.preventDefault(),a.stopPropagation(),y(c)):y(o.current)},!0)}function Te(e,t){for(let r of e)if(r.contains(t))return!0;return!1}var Et=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Et||{}),yt=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(yt||{});let $t={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},te=l.createContext(null);te.displayName="DialogContext";function W(e){let t=l.useContext(te);if(t===null){let r=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,W),r}return t}function Ft(e,t){return Q(t.type,$t,e,t)}let ve=j(function(e,t){let r=l.useId(),{id:n=`headlessui-dialog-${r}`,open:o,onClose:u,initialFocus:i,role:a="dialog",autoFocus:s=!0,__demoMode:c=!1,unmount:m=!1,...b}=e,w=l.useRef(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(w.current||(w.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let x=Ee();o===void 0&&x!==null&&(o=(x&_.Open)===_.Open);let h=l.useRef(null),D=M(h,t),C=be(h.current),$=o?0:1,[v,k]=l.useReducer(Ft,{titleId:null,descriptionId:null,panelRef:l.createRef()}),g=E(()=>u(!1)),re=E(f=>k({type:0,id:f})),S=he()?$===0:!1,[De,Ce]=ze(),ke={get current(){var f;return(f=v.panelRef.current)!=null?f:h.current}},q=Ke(),{resolveContainers:H}=We({mainTreeNode:q,portals:De,defaultContainers:[ke]}),ne=x!==null?(x&_.Closing)===_.Closing:!1;st(c||ne?!1:S,{allowed:E(()=>{var f,ie;return[(ie=(f=h.current)==null?void 0:f.closest("[data-headlessui-portal]"))!=null?ie:null]}),disallowed:E(()=>{var f;return[(f=q?.closest("body > *:not(#headlessui-portal-root)"))!=null?f:null]})});let N=qe.get(null);z(()=>{if(S)return N.actions.push(n),()=>N.actions.pop(n)},[N,n,S]);let oe=He(N,l.useCallback(f=>N.selectors.isTop(f,n),[N,n]));Xe(oe,H,f=>{f.preventDefault(),g()}
1),dt(oe,C?.defaultView,f=>{f.preventDefault(),f.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),g()}),Ge(c||ne?!1:S,C,H),Qe(S,h,g);let[Pe,je]=ot(),Se=l.useMemo(()=>[{dialogState:$,close:g,setTitleId:re,unmount:m},v],[$,g,re,m,v]),ae=B({open:$===0}),Ne={ref:D,id:n,role:a,tabIndex:-1,"aria-modal":c?void 0:$===0?!0:void 0,"aria-labelledby":v.titleId,"aria-describedby":Pe,unmount:m},Ie=!pt(),R=P.None;S&&!c&&(R|=P.RestoreFocus,R|=P.TabLock,s&&(R|=P.AutoFocus),Ie&&(R|=P.InitialFocus));let Re=I();return d.createElement(Ze,null,d.createElement(de,{force:!0},d.createElement(Je,null,d.createElement(te.Provider,{value:Se},d.createElement(et,{target:h},d.createElement(de,{force:!1},d.createElement(je,{slot:ae},d.createElement(Ce,null,d.createElement(gt,{initialFocus:i,initialFocusFallback:h,containers:H,features:R},d.createElement(tt,{value:g},Re({ourProps:Ne,theirProps:b,slot:ae,defaultTag:Tt,features:Dt,visible:$===0,name:"Dialog"})))))))))))}),Tt="div",Dt=pe.RenderStrategy|pe.Static;function Ct(e,t){let{transition:r=!1,open:n,...o}=e,u=Ee(),i=e.hasOwnProperty("open")||u!==null,a=e.hasOwnProperty("onClose");if(!i&&!a)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!i)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!u&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(n!==void 0||r)&&!o.static?d.createElement(ce,null,d.createElement(U,{show:n,transition:r,unmount:o.unmount},d.createElement(ve,{ref:t,...o}))):d.createElement(ce,null,d.createElement(ve,{ref:t,open:n,...o}))}let kt="div";function Pt(e,t){let r=l.useId(),{id:n=`headlessui-dialog-panel-${r}`,transition:o=!1,...u}=e,[{dialogState:i,unmount:a},s]=W("Dialog.Panel"),c=M(t,s.panelRef),m=B({open:i===0}),b=E(C=>{C.stopPropagation()}),w={ref:c,id:n,onClick:b},x=o?ye:l.Fragment,h=o?{unmount:a}:{},D=I();return d.createElement(x,{...h},D({ourProps:w,theirProps:u,slot:m,defaultTag:kt,name:"Dialog.Panel"}))}let jt="div";function St(e,t){let{transition:r=!1,...n}=e,[{dialogState:o,unmount:u}]=W("Dialog.Backdrop"),i=B({open:o===0}),a={ref:t,"aria-hidden":!0},s=r?ye:l.Fragment,c=r?{unmount:u}:{},m=I();return d.createElement(s,{...c},m({ourProps:a,theirProps:n,slot:i,defaultTag:jt,name:"Dialog.Backdrop"}))}let Nt="h2";function It(e,t){let r=l.useId(),{id:n=`headlessui-dialog-title-${r}`,...o}=e,[{dialogState:u,setTitleId:i}]=W("Dialog.Title"),a=M(t);l.useEffect(()=>(i(n),()=>i(null)),[n,i]);let s=B({open:u===0}),c={ref:a,id:n};return I()({ourProps:c,theirProps:o,slot:s,defaultTag:Nt,name:"Dialog.Title"})}let Rt=j(Ct),Lt=j(Pt);j(St);let At=j(It),X=Object.assign(Rt,{Panel:Lt,Title:At,Description:ut});function Ot(e){return new Date(e*1e3).toLocaleString("en-US",{month:"long",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"})}function Mt(e,t){const r=typeof e=="string"?Number(e):e;return Number.isNaN(r)?"":new Intl.NumberFormat(void 0,{style:"currency",currency:t,currencyDisplay:"symbol",minimumFractionDigits:2,maximumFractionDigits:2}).format(r)}function Bt(e){return e.toLowerCase()==="paid"?"Paid":e}function gn({isOpen:e,payment:t,onComplete:r}){return l.useEffect(()=>{if(!e)return;const n=setTimeout(r,4500);return()=>clearTimeout(n)},[e,r]),t?p.jsx(U,{appear:!0,show:e,as:l.Fragment,children:p.jsxs(X,{as:"div",className:"relative z-50",onClose:()=>{},children:[p.jsx(U.Child,{as:l.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:p.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm"})}),p.jsx("div",{className:"fixed inset-0 flex items-center justify-center px-4",children:p.jsx(U.Child,{as:l.Fragment,enter:"ease-out duration-200",enterFrom:"scale-95 opacity-0",enterTo:"scale-100 opacity-100",leave:"ease-in duration-150",leaveFrom:"scale-100 opacity-100",leaveTo:"scale-95 opacity-0",children:p.jsxs(X.Panel,{className:"w-full max-w-md rounded-2xl bg-bolt-elements-background-depth-2 p-6 shadow-2xl border border-bolt-elements-borderColor",children:[p.jsx("div",{className:"flex justify-center mb-4",children:p.jsx("div",{className:"i-ph:check-circle-fill text-green-500 text-5xl"})}),p.jsx(X.Title,{className:"text-xl font-semibold text-center text-white",children:"Payment Successful"}),p.jsxs("div",{className:"mt-6 space-y-3 rounded-xl bg-bolt-elements-background-depth-1 p-4 border border-bolt-elements-borderColor",children:[p.jsx(L,{label:"Payment Status",value:p.jsx("span",{className:"px-2 py-0.5 rounded-full bg-green-500/20 text-green-400 text-xs font-semibold",children:Bt(t.status)})}),p.jsx(L,{label:"Order ID",value:t.orderId,mono:!0}),p.jsx(L,{label:"Plan",value:t.productName}),p.jsx(L,{label:"Amount Paid",value:Mt(t.amount,t.currency)}),p.jsx(L,{label:"Payment Date",value:Ot(t.createdAt)})]}),p.jsx("p",{className:"mt-5 text-xs text-center text-bolt-elements-textTertiary",children:"Publishing your site… This will close automatically."})]})})})]})}):null}function L({label:e,value:t,mono:r}){return p.jsxs("div",{className:"flex items-center justify-between gap-4 text-sm",children:[p.jsx("span",{className:"text-bolt-elements-textTertiary",children:e}),p.jsx("span",{className:`text-white font-medium text-right ${r?"font-mono text-xs":""}`,children:t})]})}
1export{gn as PaymentSuccessDialog};

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.