import{r as e}from"./rolldown-runtime-DIIn1E2Q.js";import"./vendor-primevue-DGevbYGF.js";import"./vendor-firebase-yTFzdAQf.js";import{A as t,Bt as n,F as r,I as i,O as a,R as o,S as s,Ut as c,_t as l,et as u,j as d,kt as f,nt as p,o as m}from"./vendor-vue-core-BdhYaYlO.js";import"./vendor-other-D9HJWI2D.js";import"./useFeatureFlags-DLStzqlx.js";import"./api-C1WIrB4Z.js";import"./vendor-markdown-th9BvURy.js";import"./colorUtil-DJbZtU1U.js";import"./i18n-DKtnmyh4.js";import"./vendor-reka-ui-CSo89nDv.js";import{t as h}from"./Button-DHxPjNdi.js";import{Jr as g}from"./dialogService-CwVeD8j9.js";import"./extensionStore-By6c6sCD.js";import"./userStore-ChcnLOkA.js";import"./useErrorHandling-CWU_3R6Y.js";import"./useExternalLink-DZBh_BZs.js";import"./vendor-tiptap-BZHcjrm1.js";import"./markdownRendererUtil-J4WlXR5e.js";import"./Popover-_oREh-V5.js";var _={class:`flex h-full items-center justify-center p-6`},v={class:`max-w-[100vw] text-center lg:w-[500px]`},y={class:`mb-3 text-xl text-text-primary`},b={class:`mb-5 text-muted`},x={class:`mb-4 rounded bg-secondary-background px-3 py-2 text-left`},S={class:`mb-2 text-sm font-semibold text-text-primary`},C={class:`space-y-1.5 text-sm text-muted`},w={key:0,class:`mb-4 text-left`},T={key:0,class:`mt-2 rounded border-muted-background border p-4 font-mono text-xs text-muted-foreground break-all`},E={class:`mb-5 text-center text-sm text-gray-600`},D={href:`https://support.comfy.org`,class:`cursor-pointer text-blue-400 no-underline`,target:`_blank`,rel:`noopener noreferrer`},O={class:`flex flex-col gap-3`},k=o({__name:`CloudAuthTimeoutView`,props:{errorMessage:{}},setup(e){let o=m(),{logout:k}=g(),A=f(!1),handleRestart=async()=>{await k(),await o.replace({name:`cloud-login`})};return(e,o)=>(u(),d(`div`,_,[a(`div`,v,[a(`h2`,y,c(e.$t(`cloudOnboarding.authTimeout.title`)),1),a(`p`,b,c(e.$t(`cloudOnboarding.authTimeout.message`)),1),a(`div`,x,[a(`h3`,S,c(e.$t(`cloudOnboarding.authTimeout.troubleshooting`)),1),a(`ul`,C,[(u(!0),d(s,null,p(e.$tm(`cloudOnboarding.authTimeout.causes`),(e,t)=>(u(),d(`li`,{key:t,class:`flex gap-2`},[o[1]||=a(`span`,null,`•`,-1),a(`span`,null,c(e),1)]))),128))])]),e.errorMessage?(u(),d(`div`,w,[a(`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:o[0]||=e=>A.value=!A.value},[a(`span`,null,c(e.$t(`cloudOnboarding.authTimeout.technicalDetails`)),1),a(`i`,{class:n([`pi`,A.value?`pi-chevron-up`:`pi-chevron-down`])},null,2)]),A.value?(u(),d(`div`,T,c(e.errorMessage),1)):t(``,!0)])):t(``,!0),a(`p`,E,[r(c(e.$t(`cloudOnboarding.authTimeout.helpText`))+` `,1),a(`a`,D,c(e.$t(`cloudOnboarding.authTimeout.supportLink`)),1),o[2]||=r(`. `)]),a(`div`,O,[i(h,{class:`w-full`,onClick:handleRestart},{default:l(()=>[r(c(e.$t(`cloudOnboarding.authTimeout.restart`)),1)]),_:1})])])]))}});export{k as default};
//# sourceMappingURL=CloudAuthTimeoutView-ph6iI6Zu.js.map