import{i as e,n as t}from"./rolldown-runtime-ConPGZeh.js";import{$n as n,Gn as r,Lr as i,Nn as a,Sr as o,Yr as s,Zn as c,er as l,ir as u,li as d,oi as f,or as p,rr as m,wr as h}from"./vendor-primevue-D1-E3-0M.js";import{an as g,rn as _}from"./vendor-other-CT05lTmi.js";import{n as v,t as y}from"./Button-DXEyozJJ.js";import{fo as b,po as x}from"./dialogService-DIdX_hbW.js";var S,C,w,T,E,D,O,k,A,j,M,N,P,F=t((()=>{a(),_(),v(),b(),S={class:`flex h-full items-center justify-center p-6`},C={class:`max-w-[100vw] text-center lg:w-[500px]`},w={class:`mb-3 text-xl text-text-primary`},T={class:`mb-5 text-muted`},E={class:`mb-4 rounded bg-secondary-background px-3 py-2 text-left`},D={class:`mb-2 text-sm font-semibold text-text-primary`},O={class:`space-y-1.5 text-sm text-muted`},k={key:0,class:`mb-4 text-left`},A={key:0,class:`mt-2 rounded border-muted-background border p-4 font-mono text-xs text-muted-foreground break-all`},j={class:`mb-5 text-center text-sm text-gray-600`},M={href:`https://support.comfy.org`,class:`cursor-pointer text-blue-400 no-underline`,target:`_blank`,rel:`noopener noreferrer`},N={class:`flex flex-col gap-3`},P=p({__name:`CloudAuthTimeoutView`,props:{errorMessage:{}},setup(e){let t=g(),{logout:a}=x(),p=s(!1),handleRestart=async()=>{await a(),await t.replace({name:`cloud-login`})};return(e,t)=>(o(),l(`div`,S,[c(`div`,C,[c(`h2`,w,d(e.$t(`cloudOnboarding.authTimeout.title`)),1),c(`p`,T,d(e.$t(`cloudOnboarding.authTimeout.message`)),1),c(`div`,E,[c(`h3`,D,d(e.$t(`cloudOnboarding.authTimeout.troubleshooting`)),1),c(`ul`,O,[(o(!0),l(r,null,h(e.$tm(`cloudOnboarding.authTimeout.causes`),(e,n)=>(o(),l(`li`,{key:n,class:`flex gap-2`},[t[1]||=c(`span`,null,`•`,-1),c(`span`,null,d(e),1)]))),128))])]),e.errorMessage?(o(),l(`div`,k,[c(`button`,{class:`flex w-full items-center justify-between rounded bg-secondary-background px-4 py-2 text-sm text-text-secondary transition-colors hover:bg-secondary-background-hover border-0`,onClick:t[0]||=e=>p.value=!p.value},[c(`span`,null,d(e.$t(`cloudOnboarding.authTimeout.technicalDetails`)),1),c(`i`,{class:f([`pi`,p.value?`pi-chevron-up`:`pi-chevron-down`])},null,2)]),p.value?(o(),l(`div`,A,d(e.errorMessage),1)):n(``,!0)])):n(``,!0),c(`p`,j,[m(d(e.$t(`cloudOnboarding.authTimeout.helpText`))+` `,1),c(`a`,M,d(e.$t(`cloudOnboarding.authTimeout.supportLink`)),1),t[2]||=m(`. `)]),c(`div`,N,[u(y,{class:`w-full`,onClick:handleRestart},{default:i(()=>[m(d(e.$t(`cloudOnboarding.authTimeout.restart`)),1)]),_:1})])])]))}})})),I;t((()=>{F(),F(),I=P}))();export{I as default};
//# sourceMappingURL=CloudAuthTimeoutView-BFp22sSU.js.map