decocms 4.330.0 → 4.330.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-jy0frqbf.js → AlertCircle-CuCiYdZg.js} +1 -1
- package/dist/client/assets/{AreaChart-B1x8DVFG.js → AreaChart-C-Trhubb.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BUQYrPiB.js → ArrowLeft-Cva2Om7L.js} +1 -1
- package/dist/client/assets/{ArrowUp-Avwdkd90.js → ArrowUp-CWbv1gkD.js} +1 -1
- package/dist/client/assets/{Check-CxhsqO-U.js → Check-Bd3ac_Zg.js} +1 -1
- package/dist/client/assets/{CheckCircle-FHm0D3iO.js → CheckCircle-CrSGUmio.js} +1 -1
- package/dist/client/assets/{ChevronRight-BiHn5vM-.js → ChevronRight-DCIZnWdw.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BbRv2olL.js → ChevronSelectorVertical-pT5KjH5A.js} +1 -1
- package/dist/client/assets/{ChevronUp-DKezAGzO.js → ChevronUp-Yq7tGyjC.js} +1 -1
- package/dist/client/assets/{Copy01-Bmz39xbH.js → Copy01-DxgSVDOO.js} +1 -1
- package/dist/client/assets/{CreditCard01-C5e5Hx42.js → CreditCard01-DWcUneaM.js} +1 -1
- package/dist/client/assets/{DotsVertical-8AlMAR5c.js → DotsVertical-C8tHdjIW.js} +1 -1
- package/dist/client/assets/{Download01-CPeLy8ol.js → Download01-GowpAvKZ.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-3LhkDp4X.js → ErrorBarContext-DuuJGlEY.js} +1 -1
- package/dist/client/assets/{Eye-DusgBAO3.js → Eye-D78vCvGs.js} +1 -1
- package/dist/client/assets/{GitBranch01-CfVfwURq.js → GitBranch01-BSfBkmSI.js} +1 -1
- package/dist/client/assets/{Globe01-wWGdeE3H.js → Globe01-Y0897GiS.js} +1 -1
- package/dist/client/assets/{HardDrive-CA1tnjg8.js → HardDrive-BXeE9G6T.js} +1 -1
- package/dist/client/assets/{Image01-DYzKv2ko.js → Image01--CncLRMT.js} +1 -1
- package/dist/client/assets/{Key01-CGEDvfUF.js → Key01-CM5E_Mcg.js} +1 -1
- package/dist/client/assets/{Link01-DXelhbvI.js → Link01-DxGIfF4o.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DNSJJFeL.js → LinkExternal01-1WZQRIRi.js} +1 -1
- package/dist/client/assets/{Monitor01-CH4zCn1-.js → Monitor01-BRTdi7-r.js} +1 -1
- package/dist/client/assets/{Package-Z0p4dNPa.js → Package-DJyR3XiX.js} +1 -1
- package/dist/client/assets/{Palette-3dQlQIWI.js → Palette-BB9j7Ce7.js} +1 -1
- package/dist/client/assets/{Play-DsDbYPnC.js → Play-CwPYqcym.js} +1 -1
- package/dist/client/assets/{Plus-sgFP0HSc.js → Plus-CRatcZfN.js} +1 -1
- package/dist/client/assets/{SearchMd-DUxlDNtX.js → SearchMd-DjQj5za7.js} +1 -1
- package/dist/client/assets/{Sector-B74hc5Ef.js → Sector-C3Ba_c3x.js} +1 -1
- package/dist/client/assets/{Settings02-BiZT44gx.js → Settings02-DYxI-B2M.js} +1 -1
- package/dist/client/assets/{Share07-BUsrOXMs.js → Share07-BS2uJ1eK.js} +1 -1
- package/dist/client/assets/{Shield01-BkWJSg7j.js → Shield01-CaX5W-R_.js} +1 -1
- package/dist/client/assets/{Stars01-D42AB0fG.js → Stars01-C5hP4JH5.js} +1 -1
- package/dist/client/assets/{Sun-CCthEe37.js → Sun-BR5Wft62.js} +1 -1
- package/dist/client/assets/{Tool01-Bww8mLXx.js → Tool01-CvRmbJUT.js} +1 -1
- package/dist/client/assets/{Tool02-CMTwSQ00.js → Tool02-DiACapR1.js} +1 -1
- package/dist/client/assets/{Trash01-Cy8JukTX.js → Trash01-DPwVFG18.js} +1 -1
- package/dist/client/assets/{TrendUp01-C1Wh3jCv.js → TrendUp01-C0XvBYZv.js} +1 -1
- package/dist/client/assets/{Upload01-Vx_sWXby.js → Upload01-KTZspEhw.js} +1 -1
- package/dist/client/assets/{User01-wgouKLSs.js → User01-ByiGxTH7.js} +1 -1
- package/dist/client/assets/{UserSquare-1xv6DUe1.js → UserSquare-CiHzITjO.js} +1 -1
- package/dist/client/assets/{Users01-C6KwtT99.js → Users01-DpNniP3R.js} +1 -1
- package/dist/client/assets/{Users03-EPnVo0bB.js → Users03-CkfVLmjL.js} +1 -1
- package/dist/client/assets/{XCircle-DiB9hL7i.js → XCircle-BeiwvNRm.js} +1 -1
- package/dist/client/assets/{XClose-C1xUyQZv.js → XClose-HECl2UKv.js} +1 -1
- package/dist/client/assets/{Zap-DSXl6Hp2.js → Zap-CvgPlPwo.js} +1 -1
- package/dist/client/assets/{ZoomOut-C-2R5l8I.js → ZoomOut-Xq47giWz.js} +1 -1
- package/dist/client/assets/{access-gate-BdiZftQz.js → access-gate-BOD_cWHi.js} +1 -1
- package/dist/client/assets/{agent-icon-CyHpCstK.js → agent-icon-ttmBFMYA.js} +1 -1
- package/dist/client/assets/{agents-list-KDoq76g0.js → agents-list-BefbOS6p.js} +1 -1
- package/dist/client/assets/{ai-providers-BrVf1e6J.js → ai-providers-D0zoLUUS.js} +1 -1
- package/dist/client/assets/{alert-CFsymptD.js → alert-D5mxA4gm.js} +1 -1
- package/dist/client/assets/{alert-dialog-DW1zmq7a.js → alert-dialog-CpsaPwVj.js} +1 -1
- package/dist/client/assets/{analytics-tab-BlBfbh2a.js → analytics-tab-DZfo4u-w.js} +1 -1
- package/dist/client/assets/api-keys-CwZt54HY.js +1 -0
- package/dist/client/assets/{api-keys-S2LvxycO.js → api-keys-DaObLbov.js} +1 -1
- package/dist/client/assets/{app-editor-DFmDheE3.js → app-editor-BUEFEHhG.js} +1 -1
- package/dist/client/assets/{auth-DgZXO_E8.js → auth-CbS4mr_4.js} +1 -1
- package/dist/client/assets/{auth-catchall-BpojlvjI.js → auth-catchall-D5K4FE4W.js} +1 -1
- package/dist/client/assets/{auth-entry-DB4_abZA.js → auth-entry-BASylOK5.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DsZoXTVd.js → auth-split-layout-DN5eY-hS.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BXQocgtU.js → authenticate-and-persist-oauth-xAlhdmIM.js} +1 -1
- package/dist/client/assets/{automation-list-row-C5K4rGy8.js → automation-list-row-VahGRD4F.js} +1 -1
- package/dist/client/assets/{automation-runs-CbmnlhbC.js → automation-runs-DsvF1fvS.js} +14 -14
- package/dist/client/assets/{automations-DlejsTXn.js → automations-CBoYjkbN.js} +1 -1
- package/dist/client/assets/{avatar-BHNnQU49.js → avatar-pAoUoehH.js} +1 -1
- package/dist/client/assets/{badge-Df0POpHX.js → badge-Es685dmE.js} +1 -1
- package/dist/client/assets/{block-document-C9jm1koE.js → block-document-BcQcPTWc.js} +1 -1
- package/dist/client/assets/{breadcrumb-EUBB2GC0.js → breadcrumb-DQdkT8PX.js} +1 -1
- package/dist/client/assets/{buckets-B_HtmkX0.js → buckets-CACszM5m.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-WadLNqYR.js → bulk-category-panel-GYrL29tX.js} +1 -1
- package/dist/client/assets/{capability-load-error-D_PjnnSN.js → capability-load-error-R-H_NWgI.js} +1 -1
- package/dist/client/assets/{cards-gW-s4zlH.js → cards-DKEQ_n5_.js} +1 -1
- package/dist/client/assets/{category-editor-Dsjpm8Rs.js → category-editor-DVSez75l.js} +1 -1
- package/dist/client/assets/{cdn-tab-OVIvDZML.js → cdn-tab-Do6cjaD8.js} +1 -1
- package/dist/client/assets/{chart-CQ4Em7wn.js → chart-DfkRh-kv.js} +1 -1
- package/dist/client/assets/{chat-context-DPbGstfa.js → chat-context-CpYNzg5B.js} +1 -1
- package/dist/client/assets/{checkbox-CUAxY5xy.js → checkbox-DlTpzbAe.js} +1 -1
- package/dist/client/assets/{choose-editor-CqIcKKAC.js → choose-editor-BbW-PV8j.js} +1 -1
- package/dist/client/assets/{cli-auth-success-osB4eK21.js → cli-auth-success-jM0Hquj1.js} +1 -1
- package/dist/client/assets/{client-icons-ErQpUWbT.js → client-icons-BDEN3I2t.js} +1 -1
- package/dist/client/assets/{collection-detail-D3FBmEm5.js → collection-detail-OKn4oJh9.js} +1 -1
- package/dist/client/assets/{collection-display-button-AMsRk-So.js → collection-display-button-Bv-AIA2b.js} +1 -1
- package/dist/client/assets/{collection-search-C22mEeLw.js → collection-search-CM5weFRm.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BJ3Neq9J.js → collection-table-wrapper-kXzOSC_6.js} +1 -1
- package/dist/client/assets/{collection-tabs-DTwxsscI.js → collection-tabs-D-562FCV.js} +1 -1
- package/dist/client/assets/{command-CRqAgH1a.js → command-DVspp8yR.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-B6_VUkvw.js → commerce-onboarding-BjgYb1RE.js} +1 -1
- package/dist/client/assets/{connect-CxVuoW2Z.js → connect-Bil4Y2zF.js} +1 -1
- package/dist/client/assets/{connect-layout-sj45J0Mr.js → connect-layout-DZ7FfrD1.js} +1 -1
- package/dist/client/assets/{connection-BWzxBGaR.js → connection-DpqeEnun.js} +1 -1
- package/dist/client/assets/{connection-card-FOWu6o2x.js → connection-card-D9pnLHHG.js} +1 -1
- package/dist/client/assets/{connection-detail-CiSJLPae.js → connection-detail-BfLi22hQ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-tCou3o46.js → connection-form-helpers-bRZshTTy.js} +1 -1
- package/dist/client/assets/{connections-DBSoZzyn.js → connections-B9mbcrTt.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Crs_YDp8.js → create-organization-dialog-DtJqMFEo.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BrId94vM.js → decopilot-sse-pool-BUix9GZ9.js} +1 -1
- package/dist/client/assets/{dialog-BdUmjS4-.js → dialog-BEISgJOW.js} +1 -1
- package/dist/client/assets/{domain-settings-CTbN1J2P.js → domain-settings-DHfo7qcY.js} +1 -1
- package/dist/client/assets/{drawer-D36n-WIv.js → drawer-CiKePUbm.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Dn-LBZem.js → dropdown-menu-D0AJ3bel.js} +1 -1
- package/dist/client/assets/{e2e-tab--nH1lXQP.js → e2e-tab-DXNgC9yU.js} +1 -1
- package/dist/client/assets/{editor-CyAR_I_A.js → editor-DNP4gvTy.js} +1 -1
- package/dist/client/assets/{empty-state-DxSmwhAQ.js → empty-state-5yqdolAA.js} +1 -1
- package/dist/client/assets/{empty-state-DLmWbVUB.js → empty-state-Cjsx8rHI.js} +1 -1
- package/dist/client/assets/{extract-connection-data-B1I5FGQh.js → extract-connection-data-CSgBgj12.js} +1 -1
- package/dist/client/assets/{file-explorer-Cbb3XtE4.js → file-explorer-BKOZ57Go.js} +1 -1
- package/dist/client/assets/{file-type-icon-CVdgx22A.js → file-type-icon-DJUeZ86c.js} +1 -1
- package/dist/client/assets/{folder-icon-D_WY3arE.js → folder-icon-BgdoPeYp.js} +1 -1
- package/dist/client/assets/{form-BvhSFZHb.js → form--RFplLnF.js} +1 -1
- package/dist/client/assets/{general-WcU5fWyG.js → general-Co5pNIBx.js} +1 -1
- package/dist/client/assets/{github-repo-picker-Cz94q9dS.js → github-repo-picker-B_K71aNa.js} +1 -1
- package/dist/client/assets/{hooks-SuxNrCzM.js → hooks-CP3cq3Qu.js} +1 -1
- package/dist/client/assets/{hosting-tab-Vlb9Z9ng.js → hosting-tab-ZISzC-o_.js} +1 -1
- package/dist/client/assets/{index-B18-trnw.js → index-BHaeE6K1.js} +1 -1
- package/dist/client/assets/{index-BjTjNr_G.js → index-BRKphdvt.js} +1 -1
- package/dist/client/assets/{index-Cd2r3_aA.js → index-BajXcmR5.js} +6 -6
- package/dist/client/assets/{index-CWs8c_71.js → index-Bc-jD4u7.js} +1 -1
- package/dist/client/assets/{index-BKZihWQd.js → index-Bkc6xZ6j.js} +1 -1
- package/dist/client/assets/{index-lSAvH_rL.js → index-CNyNddRy.js} +2 -2
- package/dist/client/assets/{index-BxLEr4iz.js → index-Cq3q0fo3.js} +1 -1
- package/dist/client/assets/{index-Ba4EfV0C.js → index-Ct1T_yIC.js} +1 -1
- package/dist/client/assets/{index-D87zQKXw.js → index-CwzGI5HZ.js} +1 -1
- package/dist/client/assets/{index-5qx3FSW_.js → index-DZWy8t2q.js} +1 -1
- package/dist/client/assets/{index-redirect-BL62_A_W.js → index-redirect-CYbCgP7u.js} +1 -1
- package/dist/client/assets/{infra-billing-jIqLmoI5.js → infra-billing-g-_XeQ0u.js} +1 -1
- package/dist/client/assets/{input-BdcqHmsD.js → input-D1NUtWYm.js} +1 -1
- package/dist/client/assets/{integration-icon-DTTuvbMM.js → integration-icon-WPtpt9Rl.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-BW87V_xF.js → invite-member-dialog-DuoP1Cdq.js} +1 -1
- package/dist/client/assets/{label-DFynpq17.js → label-MmK7a_nM.js} +1 -1
- package/dist/client/assets/{layout-CF6grxfQ.js → layout-CIsue2K0.js} +1 -1
- package/dist/client/assets/{login-DtED1ahd.js → login-APN8Oj63.js} +1 -1
- package/dist/client/assets/{markdown-t8p7flD6.js → markdown-BI7SQjXo.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DomiX3XJ.js → mcp-oauth-Q6FjuDjh.js} +1 -1
- package/dist/client/assets/{members-Ctc7ayH9.js → members-CnBC10Jd.js} +1 -1
- package/dist/client/assets/{monaco-editor-mHVc8yep.js → monaco-editor-DfLuS7c9.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CL1X09To.js → monitoring-stats-row-Cp4MMMAu.js} +1 -1
- package/dist/client/assets/{multi-select-Tgem-Hhf.js → multi-select-BNYd-2xo.js} +1 -1
- package/dist/client/assets/{oauth-callback-GxJ6DISd.js → oauth-callback-DOrZ0SfO.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Dgp581R5.js → oauth-callback-ai-provider-Bia30bN8.js} +1 -1
- package/dist/client/assets/{onboarding-CItp4Z7f.js → onboarding-CzwZ3383.js} +1 -1
- package/dist/client/assets/org-layout-DMfCklm7.js +1 -0
- package/dist/client/assets/{organization-choice-CKJgJUKz.js → organization-choice-FO7f1IVG.js} +1 -1
- package/dist/client/assets/{orgs-B2ojCkix.js → orgs-IJAFdYTK.js} +1 -1
- package/dist/client/assets/{page-seo-form-w8HjBh5r.js → page-seo-form-B5ydZAbl.js} +1 -1
- package/dist/client/assets/{popover-DqoSLPyP.js → popover-Hr-tzKjL.js} +1 -1
- package/dist/client/assets/{post-calendar-09DAXKhm.js → post-calendar-88SdqE8j.js} +1 -1
- package/dist/client/assets/{post-editor-D5yb1Jd9.js → post-editor-B3pEtTTZ.js} +1 -1
- package/dist/client/assets/{primitives-DTr9rusv.js → primitives-CJ_VQdez.js} +1 -1
- package/dist/client/assets/{profile-DQHF82sh.js → profile-L-r3Y6Nf.js} +1 -1
- package/dist/client/assets/{project-app-view-BON2Qo3G.js → project-app-view-52jhT_PH.js} +1 -1
- package/dist/client/assets/{project-icon-BIuwk_d_.js → project-icon-Ba5vzXje.js} +1 -1
- package/dist/client/assets/{prompts-DBh87Nh-.js → prompts-D8ZRw8iK.js} +1 -1
- package/dist/client/assets/record-editor-DTcT6KDV.js +1 -0
- package/dist/client/assets/redirect-editor-Clsah-04.js +1 -0
- package/dist/client/assets/registry-CL5-Hw0o.js +2 -0
- package/dist/client/assets/{registry-layout-DSBGNtl3.js → registry-layout-BjOd2gMC.js} +1 -1
- package/dist/client/assets/{reports-DXwcd3N8.js → reports-Cinj2I3u.js} +1 -1
- package/dist/client/assets/{require-capability-BRvSlC3v.js → require-capability-DC1Y92eL.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DFpZjgWz.js → required-auth-layout-Cbl0xwdT.js} +1 -1
- package/dist/client/assets/{reset-password-CSt7aD-W.js → reset-password-CoDbBtY3.js} +1 -1
- package/dist/client/assets/{review-settings-ll1dG96m.js → review-settings-BoO2X9g4.js} +1 -1
- package/dist/client/assets/{roles-BkIPtp-o.js → roles-DLwINhxn.js} +1 -1
- package/dist/client/assets/{schema-CnLqwTPD.js → schema-CrgotgmN.js} +1 -1
- package/dist/client/assets/{scroll-area-PP_r4msI.js → scroll-area-BonshNPm.js} +1 -1
- package/dist/client/assets/{search-input-DfOXuzww.js → search-input-BI1aULXe.js} +1 -1
- package/dist/client/assets/{secrets-5A0vK4C0.js → secrets-DeIc5zKh.js} +1 -1
- package/dist/client/assets/{sections-editor-Dm7uM18_.js → sections-editor-Ccf5hb1V.js} +1 -1
- package/dist/client/assets/{select-DX41f4VA.js → select-BYOpmP_A.js} +1 -1
- package/dist/client/assets/{select-model-DtEtPkIv.js → select-model-D5CfumSb.js} +1 -1
- package/dist/client/assets/{self-tool-result-CdKMJCXt.js → self-tool-result-BNcdeiNk.js} +1 -1
- package/dist/client/assets/{seo-editor-aQO3Fni3.js → seo-editor-GZacFvMq.js} +1 -1
- package/dist/client/assets/settings-layout-CMEFBz8g.js +1 -0
- package/dist/client/assets/{settings-sidebar-q0M_1AHR.js → settings-sidebar-DnPRWxR7.js} +1 -1
- package/dist/client/assets/{shell-controls-C6dFl2EC.js → shell-controls-5cCYtmU1.js} +1 -1
- package/dist/client/assets/{shell-layout-gA5hZo5F.js → shell-layout-D4CiL_2Q.js} +1 -1
- package/dist/client/assets/{skill-preview-DXO3ykC1.js → skill-preview-DBBoN6GG.js} +1 -1
- package/dist/client/assets/{skills-BYoh3bJo.js → skills-C5GUY3dl.js} +1 -1
- package/dist/client/assets/{sso-BI0wGWNb.js → sso-Cf1wC9wL.js} +1 -1
- package/dist/client/assets/{store-w5DiLQdh.js → store-4QMbu9Ff.js} +1 -1
- package/dist/client/assets/store-registry-B0CqQbWj.js +2 -0
- package/dist/client/assets/{switch-DW4RRppR.js → switch-qe2jtu2V.js} +1 -1
- package/dist/client/assets/{synced-repos-DGuZHHJX.js → synced-repos-DSdyaJKz.js} +1 -1
- package/dist/client/assets/{table-Cc0JpHRt.js → table-wk0e0e8H.js} +1 -1
- package/dist/client/assets/{tabs-C_0yZwsZ.js → tabs-JVy0UiCp.js} +1 -1
- package/dist/client/assets/{task-board-DkI8yDIf.js → task-board-BA1X4Ghf.js} +1 -1
- package/dist/client/assets/{task-route-jBzYs7u0.js → task-route-Cpd73XPp.js} +1 -1
- package/dist/client/assets/{tasks-_uhom2KC.js → tasks-W-ehhJXl.js} +1 -1
- package/dist/client/assets/{textarea-Dyj892-C.js → textarea-DmnoMECe.js} +1 -1
- package/dist/client/assets/{thread-intent-Bbkl_NvG.js → thread-intent-CCGOCh83.js} +1 -1
- package/dist/client/assets/{thread-route-C9hr7yjZ.js → thread-route-Cmxuwt9F.js} +1 -1
- package/dist/client/assets/{toggle-group-DuOU3Yna.js → toggle-group-DnSm7gUo.js} +1 -1
- package/dist/client/assets/{toolbar-DIlFGJBQ.js → toolbar-CbCB_Tzd.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CGvKs4Hb.js → toolbar-icon-button-Cj8dSeao.js} +1 -1
- package/dist/client/assets/{track-BQLynX7D.js → track-BUZCuF-X.js} +1 -1
- package/dist/client/assets/{types-yL1rZwC2.js → types-ba7sd1WT.js} +1 -1
- package/dist/client/assets/{use-ai-providers-C4A-yG8S.js → use-ai-providers-CRoo-9bL.js} +1 -1
- package/dist/client/assets/{use-automations-D1LLY7GK.js → use-automations-C63gNpiU.js} +1 -1
- package/dist/client/assets/{use-autosave-S3BS9dJB.js → use-autosave-tpdY_3bo.js} +1 -1
- package/dist/client/assets/{use-connection-DIMvnEsW.js → use-connection-C471fs_y.js} +1 -1
- package/dist/client/assets/{use-copy-CDL_kFPB.js → use-copy-DaWDg9qn.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BZjj2wtD.js → use-create-virtual-mcp-DY07YzLz.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-ClxVXQPW.js → use-debounced-autosave-BEJRTEmg.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BTGahjD6.js → use-debounced-value-7_0OJq_T.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-qYtca9N_.js → use-decopilot-events-DbsGg1E5.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DArfbR_g.js → use-delete-connection-BEEvMcDv.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DZgxyu-a.js → use-deployment-admin-Bf2_NpGL.js} +1 -1
- package/dist/client/assets/{use-destination-route-CTNH3xDX.js → use-destination-route-sRYWJOJH.js} +1 -1
- package/dist/client/assets/{use-file-configs-C93nUH97.js → use-file-configs-D0GQLwtF.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DeU5Rpn4.js → use-infinite-scroll-CTpxjdm_.js} +1 -1
- package/dist/client/assets/{use-join-requests-DSWsS1rN.js → use-join-requests-DxNgb1sY.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-upTMow-Z.js → use-mcp-auth-status-PxruyBoN.js} +1 -1
- package/dist/client/assets/{use-mcp-client-llSiXbX8.js → use-mcp-client-TiDAUohw.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BOxAK29u.js → use-mcp-prompts-RdRsrRV7.js} +1 -1
- package/dist/client/assets/{use-members-D_V3G9Gd.js → use-members-7qPEjP0w.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BooqwyPz.js → use-navigate-to-agent-CRMJOHmk.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BWThb-V9.js → use-org-auth-client-DS2A_knJ.js} +1 -1
- package/dist/client/assets/{use-org-sso-DJzTKHrH.js → use-org-sso-DD3niIFC.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CrdtsKsA.js → use-organization-roles-BNLRZrxk.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BfIVlNk5.js → use-organization-settings-Du9pbPba.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-yCX_W63n.js → use-panel-navigate-zJLsGUn2.js} +1 -1
- package/dist/client/assets/{use-registry-connections-8jKgVSu8.js → use-registry-connections-DNvr_d60.js} +1 -1
- package/dist/client/assets/{use-secrets-CHDcCDFt.js → use-secrets-BJhwPt1P.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Bnck9XZi.js → use-section-preview-base-DoUu0xPJ.js} +1 -1
- package/dist/client/assets/{use-status-sounds-D3Nv9moR.js → use-status-sounds-C0BKlSjL.js} +1 -1
- package/dist/client/assets/{use-tags-Bjvv3Ict.js → use-tags-CCt6yVYp.js} +1 -1
- package/dist/client/assets/{use-view-mode-Bj7dvmOc.js → use-view-mode-aN9lsdkL.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C5WBYfhP.js → use-virtual-mcp-Bh9ynqfO.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BSsxHSvy.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-Dn9OCAh0.js +1 -0
- package/dist/client/assets/{users-8qyHeXl2.js → users-BCg6m6X2.js} +1 -1
- package/dist/client/assets/{variant-calendar-CoASsVeg.js → variant-calendar-BxRoUvkv.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BOnt9KuJ.js → view-mode-toggle-CFzoipCQ.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +290 -290
- package/dist/server/server.js +197 -197
- package/package.json +1 -1
- package/dist/client/assets/api-keys-D3sWWgsA.js +0 -1
- package/dist/client/assets/org-layout-D6ojmqyV.js +0 -1
- package/dist/client/assets/record-editor-Dfnjy26m.js +0 -1
- package/dist/client/assets/redirect-editor-Dx846JCn.js +0 -1
- package/dist/client/assets/registry-DtIvqOVY.js +0 -2
- package/dist/client/assets/settings-layout-CeJtjB19.js +0 -1
- package/dist/client/assets/store-registry-UiEHPHdI.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DO69sta5.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BqTEtPhA.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V,F as Fe,r as v,e as me,o as z,j as t,l as N,B as xe,n as Be,m as Ve,K as ue,c as oe,b as be,h as _e}from"./index-lSAvH_rL.js";import{I as ee}from"./input-BdcqHmsD.js";import{i as ze}from"./use-is-desktop-app-BNujXJc_.js";import{r as Qe,R as He}from"./retry-CErkP7V6.js";const Le={submitEmailPassword:({mode:n,email:e,password:m,name:f})=>n==="sign_up"?V.signUp.email({email:e,password:m,name:f||""}):V.signIn.email({email:e,password:m}),requestPasswordReset:({email:n,redirectTo:e})=>V.requestPasswordReset({email:n,redirectTo:e}),sendOtp:({email:n})=>V.emailOtp.sendVerificationOtp({email:n,type:"sign-in"}),submitOtp:({email:n,otp:e})=>V.signIn.emailOtp({email:n,otp:e}),socialSignIn:({provider:n,callbackURL:e})=>V.signIn.social({provider:n,callbackURL:e}),ssoSignIn:({providerId:n,callbackURL:e})=>V.signIn.sso({providerId:n,callbackURL:e}),onAuthenticated:n=>{window.location.href=n}},ge="font-medium text-[#8CAA25] hover:underline disabled:opacity-50",Ke={signUpFailed:"Sign up failed",signInFailed:"Sign in failed",authenticationFailed:"Authentication failed",resetEmailFailed:"Failed to send reset email",otpSendFailed:"Failed to send code",invalidCode:"Invalid code",invalidEmail:"Invalid email address",invalidEmailOrPassword:"Invalid email or password. Please try again.",accountExists:"An account with this email already exists. Try signing in instead.",networkError:"Network error. Please check your connection and try again.",tooManyAttempts:"Too many attempts. Please wait a moment and try again.",invalidOrExpiredCode:"Invalid or expired code. Please try again.",genericError:"An error occurred. Please try again.",resetPasswordTitle:"Reset your password",verificationCodeTitle:"Enter verification code",welcomeTitle:"Welcome to deco",resetPasswordSubtitle:"We'll send you a reset link",codeSentTo:n=>`Code sent to ${n}`,defaultSubtitle:"Sign in or create a new account",resetEmailSent:"Check your email for a password reset link.",continueWith:n=>`Continue with ${n}`,divider:"or",emailLabel:"Email",emailPlaceholder:"Email address",sending:"Sending...",sendCode:"Send code",verificationCodeLabel:"Verification code",enterCodePlaceholder:"Enter code",verifying:"Verifying...",verify:"Verify",useDifferentEmail:"Use a different email",sendResetLink:"Send reset link",nameLabel:"Name",namePlaceholder:"Your name",passwordLabel:"Password",forgotPassword:"Forgot password?",creatingAccount:"Creating account...",signingIn:"Signing in...",continue:"Continue",backToSignIn:"Back to sign in",signInWithPassword:"Sign in with password instead",alreadyHaveAccount:"Already have an account? ",dontHaveAccount:"Don't have an account? ",signIn:"Sign in",signUp:"Sign up",signInWithEmailCode:"Sign in with email code"};function Ye({redirectUrl:n,callbackUrl:e="/",title:m,subtitle:f,brand:p,copy:u,variant:r="default",allowedSocialProviders:d,allowPassword:g=!0,onAuthEvent:k,actions:A}){const{emailAndPassword:C,resetPassword:w,emailOtp:y,socialProviders:S}=Fe(),o={...Le,...A},c=s=>{try{k?.(s)}catch{}},P=r==="compact",te=d?S.providers.filter(s=>d.includes(s.name)):S.providers,se=S.enabled&&te.length>0,le=C.enabled&&(g||!y.enabled&&!se),de=S.enabled&&S.providers.length>0&&!se&&!y.enabled&&!le?S.providers:te,h=S.enabled&&de.length>0,F=C.enabled&&(g||!y.enabled&&!h),[b,_]=v.useState(""),[L,Q]=v.useState(""),[$,O]=v.useState(""),[D,a]=v.useState(""),[x,M]=v.useState(!1),[W,q]=v.useState(()=>y.enabled?"emailOtp":globalThis.localStorage?.getItem("hasLoggedIn")!=="true"?"signUp":"signIn"),[j,H]=v.useState(""),[ye,ve]=v.useState(!1),[Te,he]=v.useState(null),i={...Ke,...u},ne=v.useId(),K=`${ne}-email`,Y=`${ne}-email-error`,we=`${ne}-name`,Ee=`${ne}-password`,Se=`${ne}-otp`,I=W==="signUp",U=W==="forgotPassword",T=W==="emailOtp",ie=me({mutationFn:async({email:s,password:l,name:R})=>{try{const Z=await o.submitEmailPassword({mode:I?"sign_up":"sign_in",email:s,password:l,name:R});if(Z.error)throw new Error(Z.error.message||(I?i.signUpFailed:i.signInFailed));return Z}catch(Z){throw Z instanceof Error?Z:new Error(i.authenticationFailed)}},onMutate:()=>{c({type:"started",method:"email_password",mode:I?"sign_up":"sign_in"})},onSuccess:()=>{c({type:"succeeded",method:"email_password",mode:I?"sign_up":"sign_in"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),o.onAuthenticated(n??e)},onError:s=>{c({type:"failed",method:"email_password",mode:I?"sign_up":"sign_in",stage:"authenticate",error:s instanceof Error?s.message:String(s)}),z(I?"user_signup_failed":"user_signin_failed",{error:s instanceof Error?s.message:String(s)})}}),re=me({mutationFn:async({email:s})=>{const l=await o.requestPasswordReset({email:s,redirectTo:"/reset-password"});if(l.error)throw new Error(l.error.message||i.resetEmailFailed);return l},onSuccess:()=>{z("password_reset_requested"),ve(!0)},onError:s=>{z("password_reset_request_failed",{error:s instanceof Error?s.message:String(s)})}}),G=me({mutationFn:async({email:s})=>{const l=await o.sendOtp({email:s});if(l.error)throw new Error(l.error.message||i.otpSendFailed);return l},onMutate:()=>{c({type:"started",method:"email_otp"})},onSuccess:()=>{c({type:"otp_sent",method:"email_otp"}),z("email_otp_sent"),M(!0)},onError:s=>{c({type:"failed",method:"email_otp",stage:"send_otp",error:s instanceof Error?s.message:String(s)}),z("email_otp_send_failed",{error:s instanceof Error?s.message:String(s)})}}),J=me({mutationFn:async({email:s,otp:l})=>{const R=await o.submitOtp({email:s,otp:l});if(R.error)throw new Error(R.error.message||i.invalidCode);return R},onMutate:()=>{c({type:"otp_submitted",method:"email_otp"})},onSuccess:()=>{c({type:"succeeded",method:"email_otp"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),o.onAuthenticated(n??e)},onError:s=>{c({type:"failed",method:"email_otp",stage:"verify_otp",error:s instanceof Error?s.message:String(s)}),z("email_otp_verify_failed",{error:s instanceof Error?s.message:String(s)})}}),ce=s=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s),pe=()=>{b.trim()&&!ce(b)&&H(i.invalidEmail)},Re=s=>{if(s.preventDefault(),!ce(b)){H(i.invalidEmail),c({type:"failed",method:"email_password",mode:I?"sign_up":"sign_in",stage:"validation",error:"invalid_email"});return}ie.mutate({email:b,password:L,name:$})},De=s=>{if(s.preventDefault(),!ce(b)){H(i.invalidEmail);return}re.mutate({email:b})},Me=s=>{if(s.preventDefault(),!ce(b)){H(i.invalidEmail),c({type:"failed",method:"email_otp",stage:"validation",error:"invalid_email"});return}G.mutate({email:b})},We=s=>{s.preventDefault(),J.mutate({email:b,otp:D})},X=s=>l=>{s(l.target.value),je&&ie.reset(),Ne&&re.reset(),Ae&&(G.reset(),J.reset()),s===_&&j&&H("")},ae=s=>{q(s),O(""),a(""),M(!1),H(""),ve(!1),he(null),ie.reset(),re.reset(),G.reset(),J.reset()},E=ie.isPending||re.isPending||G.isPending||J.isPending,je=ie.error,Ne=re.error,Ae=G.error||J.error,B=I?b.trim()&&L.trim()&&$.trim():U?b.trim():T?x?D.trim():b.trim():b.trim()&&L.trim(),qe=s=>{if(!s)return null;const l=s.message.toLowerCase();return l.includes("unauthorized")||l.includes("401")?i.invalidEmailOrPassword:l.includes("already exists")||l.includes("409")?i.accountExists:l.includes("network")||l.includes("fetch")?i.networkError:l.includes("rate limit")||l.includes("429")?i.tooManyAttempts:l.includes("invalid")&&l.includes("otp")?i.invalidOrExpiredCode:s.message||i.genericError},Pe=je||Ne||Ae||Te,Ue=async s=>{c({type:"started",method:"social",provider:s}),he(null);try{const l=await o.socialSignIn({provider:s,callbackURL:n??e});if(l.error)throw new Error(l.error.message||i.authenticationFailed)}catch(l){const R=l instanceof Error?l.message:String(l);c({type:"failed",method:"social",provider:s,stage:"redirect",error:R}),z("social_signin_failed",{provider:s,error:R}),he(l instanceof Error?l:new Error(R))}},$e=U?i.resetPasswordTitle:T&&x?i.verificationCodeTitle:m??i.welcomeTitle,Ce=U?i.resetPasswordSubtitle:T&&x?i.codeSentTo(b):f===void 0?i.defaultSubtitle:f;return t.jsxs("div",{className:N("grid w-full",P?"gap-5":"gap-10"),children:[p??t.jsxs("div",{children:[t.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),t.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h1",{className:N("font-medium",P?"text-xl leading-7":"text-2xl leading-8"),children:$e}),Ce&&t.jsx("p",{className:N("text-muted-foreground",P?"text-sm leading-5":"text-base leading-6"),children:Ce})]}),Pe&&t.jsx("div",{role:"alert",className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:qe(Pe)}),ye&&t.jsx("div",{role:"status",className:"rounded-xl bg-success/10 p-3 text-sm text-success text-center",children:i.resetEmailSent}),!U&&!(T&&x)&&h&&t.jsx("div",{className:"grid gap-2",children:de.map(s=>t.jsxs("button",{type:"button",disabled:E,onClick:()=>{Ue(s.name)},className:N("flex w-full items-center justify-center gap-3 bg-background px-3 text-sm font-medium text-foreground card-shadow transition-colors hover:bg-accent hover:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 dark:bg-input/30 dark:hover:bg-input/50",P?"h-11 rounded-lg":"h-12 rounded-xl"),children:[s.icon&&t.jsx("img",{src:s.icon,alt:"",className:N("h-5 w-5",s.name==="github"&&"dark:invert"),"aria-hidden":"true"}),i.continueWith(s.name.charAt(0).toUpperCase()+s.name.slice(1))]},s.name))}),!U&&!(T&&x)&&h&&(F||y.enabled)&&t.jsxs("div",{className:N("flex items-center gap-2.5",P?"my-0":"-my-4"),children:[t.jsx("div",{className:"h-px flex-1 bg-border"}),t.jsx("span",{className:N("text-muted-foreground",P?"text-sm":"text-base"),children:i.divider}),t.jsx("div",{className:"h-px flex-1 bg-border"})]}),T&&y.enabled&&t.jsx(t.Fragment,{children:x?t.jsxs("form",{onSubmit:We,className:N("grid gap-2",P&&"sm:grid-cols-[minmax(0,1fr)_auto] sm:items-start"),children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:Se,className:N("text-sm font-medium text-foreground",P&&"sr-only"),children:i.verificationCodeLabel}),t.jsx(ee,{id:Se,type:"text",placeholder:i.enterCodePlaceholder,value:D,onChange:X(a),required:!0,disabled:E,autoFocus:!0,inputMode:"numeric",autoComplete:"one-time-code",className:"h-11 rounded-lg"})]}),t.jsx("button",{type:"submit",disabled:E||!B,className:N("flex items-center justify-center rounded-lg bg-primary px-4 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/80 disabled:pointer-events-none disabled:opacity-50",P?"h-11 sm:w-auto":"h-12 w-full"),children:E?i.verifying:i.verify}),t.jsx("button",{type:"button",onClick:()=>{M(!1),a(""),G.reset(),J.reset()},disabled:E,className:N("mt-1 text-sm text-muted-foreground transition-colors hover:text-foreground",P&&"sm:col-span-2"),children:i.useDifferentEmail})]}):t.jsxs("form",{onSubmit:Me,className:N("grid gap-2",P&&"sm:grid-cols-[minmax(0,1fr)_auto] sm:items-start"),children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:K,className:N("text-sm font-medium text-foreground",P&&"sr-only"),children:i.emailLabel}),t.jsx(ee,{id:K,type:"email",placeholder:i.emailPlaceholder,value:b,onChange:X(_),onBlur:pe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!j,"aria-describedby":j?Y:void 0,className:"h-11 rounded-lg"}),j&&t.jsx("p",{id:Y,role:"alert",className:"text-xs text-destructive",children:j})]}),t.jsx("button",{type:"submit",disabled:E||!B,className:N("flex items-center justify-center rounded-lg bg-primary px-4 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/80 disabled:pointer-events-none disabled:opacity-50",P?"h-11 sm:w-auto":"h-12 w-full"),children:E?i.sending:i.sendCode})]})}),U&&F&&!ye&&t.jsxs("form",{onSubmit:De,className:"grid gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{htmlFor:K,className:"block text-sm font-medium text-foreground mb-2",children:i.emailLabel}),t.jsx(ee,{id:K,type:"email",placeholder:"you@example.com",value:b,onChange:X(_),onBlur:pe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!j,"aria-describedby":j?Y:void 0,className:"h-11 rounded-lg"}),j&&t.jsx("p",{id:Y,role:"alert",className:"text-xs text-destructive mt-1.5",children:j})]}),t.jsx(xe,{type:"submit",disabled:E||!B,className:"w-full font-semibold",size:"xl",children:E?i.sending:i.sendResetLink})]}),!U&&!T&&F&&t.jsxs("form",{onSubmit:Re,className:"grid gap-5",children:[I&&t.jsxs("div",{children:[t.jsx("label",{htmlFor:we,className:"block text-sm font-medium text-foreground mb-2",children:i.nameLabel}),t.jsx(ee,{id:we,type:"text",placeholder:i.namePlaceholder,value:$,onChange:X(O),required:!0,disabled:E,autoComplete:"name",className:"h-11 rounded-lg"})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:K,className:"block text-sm font-medium text-foreground mb-2",children:i.emailLabel}),t.jsx(ee,{id:K,type:"email",placeholder:"you@example.com",value:b,onChange:X(_),onBlur:pe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!j,"aria-describedby":j?Y:void 0,className:"h-11 rounded-lg"}),j&&t.jsx("p",{id:Y,role:"alert",className:"text-xs text-destructive mt-1.5",children:j})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-2",children:[t.jsx("label",{htmlFor:Ee,className:"block text-sm font-medium text-foreground",children:i.passwordLabel}),!I&&w.enabled&&t.jsx("button",{type:"button",onClick:()=>ae("forgotPassword"),className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:i.forgotPassword})]}),t.jsx(ee,{id:Ee,type:"password",placeholder:"••••••••",value:L,onChange:X(Q),required:!0,disabled:E,autoComplete:I?"new-password":"current-password",className:"h-11 rounded-lg"})]}),t.jsx("div",{className:N("overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.075,0.82,0.165,1)]",B?"max-h-[100px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:t.jsx("div",{className:N("p-1",!B&&"pointer-events-none"),children:t.jsx(xe,{type:"submit",disabled:E||!B,className:N("w-full font-semibold"),size:"xl","aria-hidden":!B,children:E?I?i.creatingAccount:i.signingIn:i.continue})})})]}),t.jsx("div",{className:"text-sm text-muted-foreground",children:U?t.jsx("button",{type:"button",onClick:()=>ae("signIn"),disabled:E,className:ge,children:i.backToSignIn}):T&&F?t.jsx("button",{type:"button",onClick:()=>ae("signIn"),disabled:E,className:ge,children:i.signInWithPassword}):!T&&F?t.jsxs(t.Fragment,{children:[I?i.alreadyHaveAccount:i.dontHaveAccount,t.jsx("button",{type:"button",onClick:()=>ae(I?"signIn":"signUp"),disabled:E,className:ge,children:I?i.signIn:i.signUp}),y.enabled&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"mx-2",children:"·"}),t.jsx("button",{type:"button",onClick:()=>ae("emailOtp"),disabled:E,className:ge,children:i.signInWithEmailCode})]})]}):null})]})}async function fe(){throw new Error("Tauri bridge is unavailable outside the desktop build")}function Ge(){const n=Be(),e=ze(),m=Ve({queryKey:ue.desktopAuthStatus(),queryFn:async()=>(await fe()).fetchAuthStatus(),enabled:e,staleTime:3e4,refetchOnWindowFocus:!0}),[f,p]=v.useState(!1),[u,r]=v.useState(null),[d,g]=v.useState(!1),[k,A]=v.useState(null);v.useEffect(()=>{},[e,n]);async function C(){p(!0),r(null);try{const o=await fe();await o.performAuthLogin();const c=await o.fetchAuthStatus();n.setQueryData(ue.desktopAuthStatus(),c)}catch(o){r(o instanceof Error?o.message:"Sign-in failed")}finally{p(!1)}}async function w(){p(!0);try{const o=await fe();await o.performAuthLogout();const c=await o.fetchAuthStatus();n.setQueryData(ue.desktopAuthStatus(),c)}finally{p(!1)}}async function y(){g(!0),A(null);let o;try{o=await fe()}catch(c){A(c instanceof Error?c.message:"Sign-in failed"),g(!1);return}try{await o.performAuthCompleteSession()}catch(c){A(c instanceof Error?c.message:"Sign-in failed")}finally{try{const c=await o.fetchAuthStatus();n.setQueryData(ue.desktopAuthStatus(),c)}finally{g(!1)}}}async function S(){await m.refetch()}return{status:m.data,isChecking:m.isLoading,isRetryingStatus:m.isFetching,isPending:f,loginError:u,login:C,logout:w,isCompletingSession:d,completeSessionError:k,completeSession:y,retryStatus:S}}function Je(n){return!(n.emailAndPassword.enabled||n.emailOtp.enabled||n.socialProviders.enabled)&&!n.sso.enabled&&n.magicLink.enabled}function Xe(){return oe.c(10),Ge(),null}function Ze(n){const e=oe.c(25),{onContinue:m,isPending:f,error:p}=n,u=be();let r;e[0]!==u?(r=u("common.authEntry.browserOnlyTitle"),e[0]=u,e[1]=r):r=e[1];let d;e[2]!==r?(d=t.jsx("h1",{className:"text-lg font-medium text-foreground",children:r}),e[2]=r,e[3]=d):d=e[3];let g;e[4]!==u?(g=u("common.authEntry.browserOnlyDescription"),e[4]=u,e[5]=g):g=e[5];let k;e[6]!==g?(k=t.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:g}),e[6]=g,e[7]=k):k=e[7];let A;e[8]!==d||e[9]!==k?(A=t.jsxs("div",{className:"flex flex-col gap-1",children:[d,k]}),e[8]=d,e[9]=k,e[10]=A):A=e[10];let C;e[11]!==m?(C=()=>{m()},e[11]=m,e[12]=C):C=e[12];let w;e[13]!==u?(w=u("common.authEntry.browserOnlyCta"),e[13]=u,e[14]=w):w=e[14];let y;e[15]!==f||e[16]!==C||e[17]!==w?(y=t.jsx(xe,{onClick:C,disabled:f,children:w}),e[15]=f,e[16]=C,e[17]=w,e[18]=y):y=e[18];let S;e[19]!==p?(S=p&&t.jsx("p",{className:"max-w-sm text-xs text-destructive",children:p}),e[19]=p,e[20]=S):S=e[20];let o;return e[21]!==A||e[22]!==y||e[23]!==S?(o=t.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[A,y,S]}),e[21]=A,e[22]=y,e[23]=S,e[24]=o):o=e[24],o}function Ie(n){const e=oe.c(8),{label:m,error:f}=n;let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(_e,{size:"lg"}),e[0]=p):p=e[0];let u;e[1]!==m?(u=m&&t.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[1]=m,e[2]=u):u=e[2];let r;e[3]!==f?(r=f&&t.jsx("p",{className:"max-w-sm text-xs text-destructive",children:f}),e[3]=f,e[4]=r):r=e[4];let d;return e[5]!==u||e[6]!==r?(d=t.jsxs("div",{className:"flex flex-col items-center gap-3 text-center",children:[p,u,r]}),e[5]=u,e[6]=r,e[7]=d):d=e[7],d}class ke{constructor(e){this.response=e}response}function et(n){return n.startsWith("/")&&!n.startsWith("//")?n:"/"}function tt({redirectTo:n,onAuthEvent:e}){const m=be(),[f,p]=v.useState(null),u=v.useEffectEvent(r=>{try{e?.(r)}catch{}});return v.useEffect(()=>{let r=!1;return(async()=>{u({type:"started",method:"local"});try{let d;try{d=await Qe(async()=>{const g=await fetch("/api/auth/custom/local-session",{method:"POST",credentials:"include"});if(g.status>=500)throw new ke(g);return g},{maxAttempts:5,minTimeout:1e3,maxTimeout:1e4,multiplier:2,jitter:0})}catch(g){if(g instanceof He&&g.cause instanceof ke)d=g.cause.response;else throw g}if(!d.ok){const g=await d.json().catch(()=>({}));throw new Error(g?.error||m("common.authEntry.autoLoginFailed"))}r||(u({type:"succeeded",method:"local"}),window.location.href=et(n))}catch(d){r||(u({type:"failed",method:"local",stage:"authenticate",error:d instanceof Error?d.message:String(d)}),p(d instanceof Error?d.message:m("common.authEntry.autoLoginFailed")))}})(),()=>{r=!0}},[n]),f?t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("p",{className:"text-destructive mb-2",children:m("common.authEntry.autoLoginFailedWithError",{error:f})}),t.jsx("p",{className:"text-muted-foreground text-sm",children:m("common.authEntry.tryRestartingServer")})]})}):t.jsx(Oe,{})}function Oe(){const n=oe.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsx(_e,{size:"lg",label:"Signing in"})}),n[0]=e):e=n[0],e}function st({callbackURL:n,providerId:e,ssoSignIn:m,onAuthEvent:f}){const p=v.useEffectEvent(r=>{try{f?.(r)}catch{}}),u=v.useEffectEvent(m);return v.useEffect(()=>{(async()=>{p({type:"started",method:"sso",provider:e});try{const r=await u({providerId:e,callbackURL:n});if(r.error)throw new Error(r.error.message||"SSO redirect failed")}catch(r){p({type:"failed",method:"sso",provider:e,stage:"redirect",error:r instanceof Error?r.message:String(r)})}})()},[e,n]),t.jsx(Oe,{})}function ot(n){const e=oe.c(51),{callbackUrl:m,redirectUrl:f,allowAutoLogin:p,title:u,subtitle:r,brand:d,copy:g,variant:k,allowedSocialProviders:A,allowPassword:C,onAuthEvent:w,onAuthenticated:y}=n,S=p===void 0?!0:p,o=be(),{sso:c,emailAndPassword:P,magicLink:te,emailOtp:se,socialProviders:le,localMode:de}=Fe(),h=Xe(),F=f||m;let b;e[0]!==y?(b=y?{onAuthenticated:y}:void 0,e[0]=y,e[1]=b):b=e[1];const _=b,L=h?.actions;let Q;e[2]!==_||e[3]!==L?(Q={...Le,..._,...L},e[2]=_,e[3]=L,e[4]=Q):Q=e[4];const $=Q;if(h?.isPending){let a;e[5]!==o?(a=o("common.authEntry.finishSignInInBrowser"),e[5]=o,e[6]=a):a=e[6];let x;return e[7]!==h.loginError||e[8]!==a?(x=t.jsx(Ie,{label:a,error:h.loginError}),e[7]=h.loginError,e[8]=a,e[9]=x):x=e[9],x}if(h?.isCompletingSession){let a;e[10]!==o?(a=o("common.authEntry.finishingSignIn"),e[10]=o,e[11]=a):a=e[11];let x;return e[12]!==h.completeSessionError||e[13]!==a?(x=t.jsx(Ie,{label:a,error:h.completeSessionError}),e[12]=h.completeSessionError,e[13]=a,e[14]=x):x=e[14],x}if(de&&S){let a;return e[15]!==w||e[16]!==F?(a=t.jsx(tt,{redirectTo:F,onAuthEvent:w}),e[15]=w,e[16]=F,e[17]=a):a=e[17],a}if(c.enabled){let a;return e[18]!==w||e[19]!==F||e[20]!==$.ssoSignIn||e[21]!==c.providerId?(a=t.jsx(st,{callbackURL:F,providerId:c.providerId,ssoSignIn:$.ssoSignIn,onAuthEvent:w}),e[18]=w,e[19]=F,e[20]=$.ssoSignIn,e[21]=c.providerId,e[22]=a):a=e[22],a}if(h&&Je({emailAndPassword:P,emailOtp:se,socialProviders:le,magicLink:te,sso:c})){let a;return e[23]!==h.isPending||e[24]!==h.login||e[25]!==h.loginError?(a=t.jsx(Ze,{onContinue:h.login,isPending:h.isPending,error:h.loginError}),e[23]=h.isPending,e[24]=h.login,e[25]=h.loginError,e[26]=a):a=e[26],a}if(P.enabled||te.enabled||se.enabled||le.enabled){const a=h?.loginError??h?.completeSessionError??null;let x;e[27]!==_||e[28]!==L?(x={..._,...L},e[27]=_,e[28]=L,e[29]=x):x=e[29];let M;e[30]!==C||e[31]!==A||e[32]!==d||e[33]!==m||e[34]!==g||e[35]!==w||e[36]!==f||e[37]!==r||e[38]!==x||e[39]!==u||e[40]!==k?(M=t.jsx(Ye,{redirectUrl:f,callbackUrl:m,title:u,subtitle:r,brand:d,copy:g,variant:k,allowedSocialProviders:A,allowPassword:C,onAuthEvent:w,actions:x}),e[30]=C,e[31]=A,e[32]=d,e[33]=m,e[34]=g,e[35]=w,e[36]=f,e[37]=r,e[38]=x,e[39]=u,e[40]=k,e[41]=M):M=e[41];const W=M;if(!a)return W;let q;e[42]!==a?(q=t.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:a}),e[42]=a,e[43]=q):q=e[43];let j;return e[44]!==W||e[45]!==q?(j=t.jsxs("div",{className:"grid gap-4",children:[q,W]}),e[44]=W,e[45]=q,e[46]=j):j=e[46],j}let O;e[47]!==o?(O=o("common.authEntry.noLoginOptions"),e[47]=o,e[48]=O):O=e[48];let D;return e[49]!==O?(D=t.jsx("div",{children:O}),e[49]=O,e[50]=D):D=e[50],D}export{Oe as A,ot as a,Ge as u};
|
|
1
|
+
import{a as V,F as Fe,r as v,e as me,o as z,j as t,l as N,B as xe,n as Be,m as Ve,K as ue,c as oe,b as be,h as _e}from"./index-CNyNddRy.js";import{I as ee}from"./input-D1NUtWYm.js";import{i as ze}from"./use-is-desktop-app-BNujXJc_.js";import{r as Qe,R as He}from"./retry-CErkP7V6.js";const Le={submitEmailPassword:({mode:n,email:e,password:m,name:f})=>n==="sign_up"?V.signUp.email({email:e,password:m,name:f||""}):V.signIn.email({email:e,password:m}),requestPasswordReset:({email:n,redirectTo:e})=>V.requestPasswordReset({email:n,redirectTo:e}),sendOtp:({email:n})=>V.emailOtp.sendVerificationOtp({email:n,type:"sign-in"}),submitOtp:({email:n,otp:e})=>V.signIn.emailOtp({email:n,otp:e}),socialSignIn:({provider:n,callbackURL:e})=>V.signIn.social({provider:n,callbackURL:e}),ssoSignIn:({providerId:n,callbackURL:e})=>V.signIn.sso({providerId:n,callbackURL:e}),onAuthenticated:n=>{window.location.href=n}},ge="font-medium text-[#8CAA25] hover:underline disabled:opacity-50",Ke={signUpFailed:"Sign up failed",signInFailed:"Sign in failed",authenticationFailed:"Authentication failed",resetEmailFailed:"Failed to send reset email",otpSendFailed:"Failed to send code",invalidCode:"Invalid code",invalidEmail:"Invalid email address",invalidEmailOrPassword:"Invalid email or password. Please try again.",accountExists:"An account with this email already exists. Try signing in instead.",networkError:"Network error. Please check your connection and try again.",tooManyAttempts:"Too many attempts. Please wait a moment and try again.",invalidOrExpiredCode:"Invalid or expired code. Please try again.",genericError:"An error occurred. Please try again.",resetPasswordTitle:"Reset your password",verificationCodeTitle:"Enter verification code",welcomeTitle:"Welcome to deco",resetPasswordSubtitle:"We'll send you a reset link",codeSentTo:n=>`Code sent to ${n}`,defaultSubtitle:"Sign in or create a new account",resetEmailSent:"Check your email for a password reset link.",continueWith:n=>`Continue with ${n}`,divider:"or",emailLabel:"Email",emailPlaceholder:"Email address",sending:"Sending...",sendCode:"Send code",verificationCodeLabel:"Verification code",enterCodePlaceholder:"Enter code",verifying:"Verifying...",verify:"Verify",useDifferentEmail:"Use a different email",sendResetLink:"Send reset link",nameLabel:"Name",namePlaceholder:"Your name",passwordLabel:"Password",forgotPassword:"Forgot password?",creatingAccount:"Creating account...",signingIn:"Signing in...",continue:"Continue",backToSignIn:"Back to sign in",signInWithPassword:"Sign in with password instead",alreadyHaveAccount:"Already have an account? ",dontHaveAccount:"Don't have an account? ",signIn:"Sign in",signUp:"Sign up",signInWithEmailCode:"Sign in with email code"};function Ye({redirectUrl:n,callbackUrl:e="/",title:m,subtitle:f,brand:p,copy:u,variant:r="default",allowedSocialProviders:d,allowPassword:g=!0,onAuthEvent:k,actions:A}){const{emailAndPassword:C,resetPassword:w,emailOtp:y,socialProviders:S}=Fe(),o={...Le,...A},c=s=>{try{k?.(s)}catch{}},P=r==="compact",te=d?S.providers.filter(s=>d.includes(s.name)):S.providers,se=S.enabled&&te.length>0,le=C.enabled&&(g||!y.enabled&&!se),de=S.enabled&&S.providers.length>0&&!se&&!y.enabled&&!le?S.providers:te,h=S.enabled&&de.length>0,F=C.enabled&&(g||!y.enabled&&!h),[b,_]=v.useState(""),[L,Q]=v.useState(""),[$,O]=v.useState(""),[D,a]=v.useState(""),[x,M]=v.useState(!1),[W,q]=v.useState(()=>y.enabled?"emailOtp":globalThis.localStorage?.getItem("hasLoggedIn")!=="true"?"signUp":"signIn"),[j,H]=v.useState(""),[ye,ve]=v.useState(!1),[Te,he]=v.useState(null),i={...Ke,...u},ne=v.useId(),K=`${ne}-email`,Y=`${ne}-email-error`,we=`${ne}-name`,Ee=`${ne}-password`,Se=`${ne}-otp`,I=W==="signUp",U=W==="forgotPassword",T=W==="emailOtp",ie=me({mutationFn:async({email:s,password:l,name:R})=>{try{const Z=await o.submitEmailPassword({mode:I?"sign_up":"sign_in",email:s,password:l,name:R});if(Z.error)throw new Error(Z.error.message||(I?i.signUpFailed:i.signInFailed));return Z}catch(Z){throw Z instanceof Error?Z:new Error(i.authenticationFailed)}},onMutate:()=>{c({type:"started",method:"email_password",mode:I?"sign_up":"sign_in"})},onSuccess:()=>{c({type:"succeeded",method:"email_password",mode:I?"sign_up":"sign_in"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),o.onAuthenticated(n??e)},onError:s=>{c({type:"failed",method:"email_password",mode:I?"sign_up":"sign_in",stage:"authenticate",error:s instanceof Error?s.message:String(s)}),z(I?"user_signup_failed":"user_signin_failed",{error:s instanceof Error?s.message:String(s)})}}),re=me({mutationFn:async({email:s})=>{const l=await o.requestPasswordReset({email:s,redirectTo:"/reset-password"});if(l.error)throw new Error(l.error.message||i.resetEmailFailed);return l},onSuccess:()=>{z("password_reset_requested"),ve(!0)},onError:s=>{z("password_reset_request_failed",{error:s instanceof Error?s.message:String(s)})}}),G=me({mutationFn:async({email:s})=>{const l=await o.sendOtp({email:s});if(l.error)throw new Error(l.error.message||i.otpSendFailed);return l},onMutate:()=>{c({type:"started",method:"email_otp"})},onSuccess:()=>{c({type:"otp_sent",method:"email_otp"}),z("email_otp_sent"),M(!0)},onError:s=>{c({type:"failed",method:"email_otp",stage:"send_otp",error:s instanceof Error?s.message:String(s)}),z("email_otp_send_failed",{error:s instanceof Error?s.message:String(s)})}}),J=me({mutationFn:async({email:s,otp:l})=>{const R=await o.submitOtp({email:s,otp:l});if(R.error)throw new Error(R.error.message||i.invalidCode);return R},onMutate:()=>{c({type:"otp_submitted",method:"email_otp"})},onSuccess:()=>{c({type:"succeeded",method:"email_otp"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),o.onAuthenticated(n??e)},onError:s=>{c({type:"failed",method:"email_otp",stage:"verify_otp",error:s instanceof Error?s.message:String(s)}),z("email_otp_verify_failed",{error:s instanceof Error?s.message:String(s)})}}),ce=s=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s),pe=()=>{b.trim()&&!ce(b)&&H(i.invalidEmail)},Re=s=>{if(s.preventDefault(),!ce(b)){H(i.invalidEmail),c({type:"failed",method:"email_password",mode:I?"sign_up":"sign_in",stage:"validation",error:"invalid_email"});return}ie.mutate({email:b,password:L,name:$})},De=s=>{if(s.preventDefault(),!ce(b)){H(i.invalidEmail);return}re.mutate({email:b})},Me=s=>{if(s.preventDefault(),!ce(b)){H(i.invalidEmail),c({type:"failed",method:"email_otp",stage:"validation",error:"invalid_email"});return}G.mutate({email:b})},We=s=>{s.preventDefault(),J.mutate({email:b,otp:D})},X=s=>l=>{s(l.target.value),je&&ie.reset(),Ne&&re.reset(),Ae&&(G.reset(),J.reset()),s===_&&j&&H("")},ae=s=>{q(s),O(""),a(""),M(!1),H(""),ve(!1),he(null),ie.reset(),re.reset(),G.reset(),J.reset()},E=ie.isPending||re.isPending||G.isPending||J.isPending,je=ie.error,Ne=re.error,Ae=G.error||J.error,B=I?b.trim()&&L.trim()&&$.trim():U?b.trim():T?x?D.trim():b.trim():b.trim()&&L.trim(),qe=s=>{if(!s)return null;const l=s.message.toLowerCase();return l.includes("unauthorized")||l.includes("401")?i.invalidEmailOrPassword:l.includes("already exists")||l.includes("409")?i.accountExists:l.includes("network")||l.includes("fetch")?i.networkError:l.includes("rate limit")||l.includes("429")?i.tooManyAttempts:l.includes("invalid")&&l.includes("otp")?i.invalidOrExpiredCode:s.message||i.genericError},Pe=je||Ne||Ae||Te,Ue=async s=>{c({type:"started",method:"social",provider:s}),he(null);try{const l=await o.socialSignIn({provider:s,callbackURL:n??e});if(l.error)throw new Error(l.error.message||i.authenticationFailed)}catch(l){const R=l instanceof Error?l.message:String(l);c({type:"failed",method:"social",provider:s,stage:"redirect",error:R}),z("social_signin_failed",{provider:s,error:R}),he(l instanceof Error?l:new Error(R))}},$e=U?i.resetPasswordTitle:T&&x?i.verificationCodeTitle:m??i.welcomeTitle,Ce=U?i.resetPasswordSubtitle:T&&x?i.codeSentTo(b):f===void 0?i.defaultSubtitle:f;return t.jsxs("div",{className:N("grid w-full",P?"gap-5":"gap-10"),children:[p??t.jsxs("div",{children:[t.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),t.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h1",{className:N("font-medium",P?"text-xl leading-7":"text-2xl leading-8"),children:$e}),Ce&&t.jsx("p",{className:N("text-muted-foreground",P?"text-sm leading-5":"text-base leading-6"),children:Ce})]}),Pe&&t.jsx("div",{role:"alert",className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:qe(Pe)}),ye&&t.jsx("div",{role:"status",className:"rounded-xl bg-success/10 p-3 text-sm text-success text-center",children:i.resetEmailSent}),!U&&!(T&&x)&&h&&t.jsx("div",{className:"grid gap-2",children:de.map(s=>t.jsxs("button",{type:"button",disabled:E,onClick:()=>{Ue(s.name)},className:N("flex w-full items-center justify-center gap-3 bg-background px-3 text-sm font-medium text-foreground card-shadow transition-colors hover:bg-accent hover:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 dark:bg-input/30 dark:hover:bg-input/50",P?"h-11 rounded-lg":"h-12 rounded-xl"),children:[s.icon&&t.jsx("img",{src:s.icon,alt:"",className:N("h-5 w-5",s.name==="github"&&"dark:invert"),"aria-hidden":"true"}),i.continueWith(s.name.charAt(0).toUpperCase()+s.name.slice(1))]},s.name))}),!U&&!(T&&x)&&h&&(F||y.enabled)&&t.jsxs("div",{className:N("flex items-center gap-2.5",P?"my-0":"-my-4"),children:[t.jsx("div",{className:"h-px flex-1 bg-border"}),t.jsx("span",{className:N("text-muted-foreground",P?"text-sm":"text-base"),children:i.divider}),t.jsx("div",{className:"h-px flex-1 bg-border"})]}),T&&y.enabled&&t.jsx(t.Fragment,{children:x?t.jsxs("form",{onSubmit:We,className:N("grid gap-2",P&&"sm:grid-cols-[minmax(0,1fr)_auto] sm:items-start"),children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:Se,className:N("text-sm font-medium text-foreground",P&&"sr-only"),children:i.verificationCodeLabel}),t.jsx(ee,{id:Se,type:"text",placeholder:i.enterCodePlaceholder,value:D,onChange:X(a),required:!0,disabled:E,autoFocus:!0,inputMode:"numeric",autoComplete:"one-time-code",className:"h-11 rounded-lg"})]}),t.jsx("button",{type:"submit",disabled:E||!B,className:N("flex items-center justify-center rounded-lg bg-primary px-4 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/80 disabled:pointer-events-none disabled:opacity-50",P?"h-11 sm:w-auto":"h-12 w-full"),children:E?i.verifying:i.verify}),t.jsx("button",{type:"button",onClick:()=>{M(!1),a(""),G.reset(),J.reset()},disabled:E,className:N("mt-1 text-sm text-muted-foreground transition-colors hover:text-foreground",P&&"sm:col-span-2"),children:i.useDifferentEmail})]}):t.jsxs("form",{onSubmit:Me,className:N("grid gap-2",P&&"sm:grid-cols-[minmax(0,1fr)_auto] sm:items-start"),children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:K,className:N("text-sm font-medium text-foreground",P&&"sr-only"),children:i.emailLabel}),t.jsx(ee,{id:K,type:"email",placeholder:i.emailPlaceholder,value:b,onChange:X(_),onBlur:pe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!j,"aria-describedby":j?Y:void 0,className:"h-11 rounded-lg"}),j&&t.jsx("p",{id:Y,role:"alert",className:"text-xs text-destructive",children:j})]}),t.jsx("button",{type:"submit",disabled:E||!B,className:N("flex items-center justify-center rounded-lg bg-primary px-4 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/80 disabled:pointer-events-none disabled:opacity-50",P?"h-11 sm:w-auto":"h-12 w-full"),children:E?i.sending:i.sendCode})]})}),U&&F&&!ye&&t.jsxs("form",{onSubmit:De,className:"grid gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{htmlFor:K,className:"block text-sm font-medium text-foreground mb-2",children:i.emailLabel}),t.jsx(ee,{id:K,type:"email",placeholder:"you@example.com",value:b,onChange:X(_),onBlur:pe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!j,"aria-describedby":j?Y:void 0,className:"h-11 rounded-lg"}),j&&t.jsx("p",{id:Y,role:"alert",className:"text-xs text-destructive mt-1.5",children:j})]}),t.jsx(xe,{type:"submit",disabled:E||!B,className:"w-full font-semibold",size:"xl",children:E?i.sending:i.sendResetLink})]}),!U&&!T&&F&&t.jsxs("form",{onSubmit:Re,className:"grid gap-5",children:[I&&t.jsxs("div",{children:[t.jsx("label",{htmlFor:we,className:"block text-sm font-medium text-foreground mb-2",children:i.nameLabel}),t.jsx(ee,{id:we,type:"text",placeholder:i.namePlaceholder,value:$,onChange:X(O),required:!0,disabled:E,autoComplete:"name",className:"h-11 rounded-lg"})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:K,className:"block text-sm font-medium text-foreground mb-2",children:i.emailLabel}),t.jsx(ee,{id:K,type:"email",placeholder:"you@example.com",value:b,onChange:X(_),onBlur:pe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!j,"aria-describedby":j?Y:void 0,className:"h-11 rounded-lg"}),j&&t.jsx("p",{id:Y,role:"alert",className:"text-xs text-destructive mt-1.5",children:j})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-2",children:[t.jsx("label",{htmlFor:Ee,className:"block text-sm font-medium text-foreground",children:i.passwordLabel}),!I&&w.enabled&&t.jsx("button",{type:"button",onClick:()=>ae("forgotPassword"),className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:i.forgotPassword})]}),t.jsx(ee,{id:Ee,type:"password",placeholder:"••••••••",value:L,onChange:X(Q),required:!0,disabled:E,autoComplete:I?"new-password":"current-password",className:"h-11 rounded-lg"})]}),t.jsx("div",{className:N("overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.075,0.82,0.165,1)]",B?"max-h-[100px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:t.jsx("div",{className:N("p-1",!B&&"pointer-events-none"),children:t.jsx(xe,{type:"submit",disabled:E||!B,className:N("w-full font-semibold"),size:"xl","aria-hidden":!B,children:E?I?i.creatingAccount:i.signingIn:i.continue})})})]}),t.jsx("div",{className:"text-sm text-muted-foreground",children:U?t.jsx("button",{type:"button",onClick:()=>ae("signIn"),disabled:E,className:ge,children:i.backToSignIn}):T&&F?t.jsx("button",{type:"button",onClick:()=>ae("signIn"),disabled:E,className:ge,children:i.signInWithPassword}):!T&&F?t.jsxs(t.Fragment,{children:[I?i.alreadyHaveAccount:i.dontHaveAccount,t.jsx("button",{type:"button",onClick:()=>ae(I?"signIn":"signUp"),disabled:E,className:ge,children:I?i.signIn:i.signUp}),y.enabled&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"mx-2",children:"·"}),t.jsx("button",{type:"button",onClick:()=>ae("emailOtp"),disabled:E,className:ge,children:i.signInWithEmailCode})]})]}):null})]})}async function fe(){throw new Error("Tauri bridge is unavailable outside the desktop build")}function Ge(){const n=Be(),e=ze(),m=Ve({queryKey:ue.desktopAuthStatus(),queryFn:async()=>(await fe()).fetchAuthStatus(),enabled:e,staleTime:3e4,refetchOnWindowFocus:!0}),[f,p]=v.useState(!1),[u,r]=v.useState(null),[d,g]=v.useState(!1),[k,A]=v.useState(null);v.useEffect(()=>{},[e,n]);async function C(){p(!0),r(null);try{const o=await fe();await o.performAuthLogin();const c=await o.fetchAuthStatus();n.setQueryData(ue.desktopAuthStatus(),c)}catch(o){r(o instanceof Error?o.message:"Sign-in failed")}finally{p(!1)}}async function w(){p(!0);try{const o=await fe();await o.performAuthLogout();const c=await o.fetchAuthStatus();n.setQueryData(ue.desktopAuthStatus(),c)}finally{p(!1)}}async function y(){g(!0),A(null);let o;try{o=await fe()}catch(c){A(c instanceof Error?c.message:"Sign-in failed"),g(!1);return}try{await o.performAuthCompleteSession()}catch(c){A(c instanceof Error?c.message:"Sign-in failed")}finally{try{const c=await o.fetchAuthStatus();n.setQueryData(ue.desktopAuthStatus(),c)}finally{g(!1)}}}async function S(){await m.refetch()}return{status:m.data,isChecking:m.isLoading,isRetryingStatus:m.isFetching,isPending:f,loginError:u,login:C,logout:w,isCompletingSession:d,completeSessionError:k,completeSession:y,retryStatus:S}}function Je(n){return!(n.emailAndPassword.enabled||n.emailOtp.enabled||n.socialProviders.enabled)&&!n.sso.enabled&&n.magicLink.enabled}function Xe(){return oe.c(10),Ge(),null}function Ze(n){const e=oe.c(25),{onContinue:m,isPending:f,error:p}=n,u=be();let r;e[0]!==u?(r=u("common.authEntry.browserOnlyTitle"),e[0]=u,e[1]=r):r=e[1];let d;e[2]!==r?(d=t.jsx("h1",{className:"text-lg font-medium text-foreground",children:r}),e[2]=r,e[3]=d):d=e[3];let g;e[4]!==u?(g=u("common.authEntry.browserOnlyDescription"),e[4]=u,e[5]=g):g=e[5];let k;e[6]!==g?(k=t.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:g}),e[6]=g,e[7]=k):k=e[7];let A;e[8]!==d||e[9]!==k?(A=t.jsxs("div",{className:"flex flex-col gap-1",children:[d,k]}),e[8]=d,e[9]=k,e[10]=A):A=e[10];let C;e[11]!==m?(C=()=>{m()},e[11]=m,e[12]=C):C=e[12];let w;e[13]!==u?(w=u("common.authEntry.browserOnlyCta"),e[13]=u,e[14]=w):w=e[14];let y;e[15]!==f||e[16]!==C||e[17]!==w?(y=t.jsx(xe,{onClick:C,disabled:f,children:w}),e[15]=f,e[16]=C,e[17]=w,e[18]=y):y=e[18];let S;e[19]!==p?(S=p&&t.jsx("p",{className:"max-w-sm text-xs text-destructive",children:p}),e[19]=p,e[20]=S):S=e[20];let o;return e[21]!==A||e[22]!==y||e[23]!==S?(o=t.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[A,y,S]}),e[21]=A,e[22]=y,e[23]=S,e[24]=o):o=e[24],o}function Ie(n){const e=oe.c(8),{label:m,error:f}=n;let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(_e,{size:"lg"}),e[0]=p):p=e[0];let u;e[1]!==m?(u=m&&t.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[1]=m,e[2]=u):u=e[2];let r;e[3]!==f?(r=f&&t.jsx("p",{className:"max-w-sm text-xs text-destructive",children:f}),e[3]=f,e[4]=r):r=e[4];let d;return e[5]!==u||e[6]!==r?(d=t.jsxs("div",{className:"flex flex-col items-center gap-3 text-center",children:[p,u,r]}),e[5]=u,e[6]=r,e[7]=d):d=e[7],d}class ke{constructor(e){this.response=e}response}function et(n){return n.startsWith("/")&&!n.startsWith("//")?n:"/"}function tt({redirectTo:n,onAuthEvent:e}){const m=be(),[f,p]=v.useState(null),u=v.useEffectEvent(r=>{try{e?.(r)}catch{}});return v.useEffect(()=>{let r=!1;return(async()=>{u({type:"started",method:"local"});try{let d;try{d=await Qe(async()=>{const g=await fetch("/api/auth/custom/local-session",{method:"POST",credentials:"include"});if(g.status>=500)throw new ke(g);return g},{maxAttempts:5,minTimeout:1e3,maxTimeout:1e4,multiplier:2,jitter:0})}catch(g){if(g instanceof He&&g.cause instanceof ke)d=g.cause.response;else throw g}if(!d.ok){const g=await d.json().catch(()=>({}));throw new Error(g?.error||m("common.authEntry.autoLoginFailed"))}r||(u({type:"succeeded",method:"local"}),window.location.href=et(n))}catch(d){r||(u({type:"failed",method:"local",stage:"authenticate",error:d instanceof Error?d.message:String(d)}),p(d instanceof Error?d.message:m("common.authEntry.autoLoginFailed")))}})(),()=>{r=!0}},[n]),f?t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("p",{className:"text-destructive mb-2",children:m("common.authEntry.autoLoginFailedWithError",{error:f})}),t.jsx("p",{className:"text-muted-foreground text-sm",children:m("common.authEntry.tryRestartingServer")})]})}):t.jsx(Oe,{})}function Oe(){const n=oe.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsx(_e,{size:"lg",label:"Signing in"})}),n[0]=e):e=n[0],e}function st({callbackURL:n,providerId:e,ssoSignIn:m,onAuthEvent:f}){const p=v.useEffectEvent(r=>{try{f?.(r)}catch{}}),u=v.useEffectEvent(m);return v.useEffect(()=>{(async()=>{p({type:"started",method:"sso",provider:e});try{const r=await u({providerId:e,callbackURL:n});if(r.error)throw new Error(r.error.message||"SSO redirect failed")}catch(r){p({type:"failed",method:"sso",provider:e,stage:"redirect",error:r instanceof Error?r.message:String(r)})}})()},[e,n]),t.jsx(Oe,{})}function ot(n){const e=oe.c(51),{callbackUrl:m,redirectUrl:f,allowAutoLogin:p,title:u,subtitle:r,brand:d,copy:g,variant:k,allowedSocialProviders:A,allowPassword:C,onAuthEvent:w,onAuthenticated:y}=n,S=p===void 0?!0:p,o=be(),{sso:c,emailAndPassword:P,magicLink:te,emailOtp:se,socialProviders:le,localMode:de}=Fe(),h=Xe(),F=f||m;let b;e[0]!==y?(b=y?{onAuthenticated:y}:void 0,e[0]=y,e[1]=b):b=e[1];const _=b,L=h?.actions;let Q;e[2]!==_||e[3]!==L?(Q={...Le,..._,...L},e[2]=_,e[3]=L,e[4]=Q):Q=e[4];const $=Q;if(h?.isPending){let a;e[5]!==o?(a=o("common.authEntry.finishSignInInBrowser"),e[5]=o,e[6]=a):a=e[6];let x;return e[7]!==h.loginError||e[8]!==a?(x=t.jsx(Ie,{label:a,error:h.loginError}),e[7]=h.loginError,e[8]=a,e[9]=x):x=e[9],x}if(h?.isCompletingSession){let a;e[10]!==o?(a=o("common.authEntry.finishingSignIn"),e[10]=o,e[11]=a):a=e[11];let x;return e[12]!==h.completeSessionError||e[13]!==a?(x=t.jsx(Ie,{label:a,error:h.completeSessionError}),e[12]=h.completeSessionError,e[13]=a,e[14]=x):x=e[14],x}if(de&&S){let a;return e[15]!==w||e[16]!==F?(a=t.jsx(tt,{redirectTo:F,onAuthEvent:w}),e[15]=w,e[16]=F,e[17]=a):a=e[17],a}if(c.enabled){let a;return e[18]!==w||e[19]!==F||e[20]!==$.ssoSignIn||e[21]!==c.providerId?(a=t.jsx(st,{callbackURL:F,providerId:c.providerId,ssoSignIn:$.ssoSignIn,onAuthEvent:w}),e[18]=w,e[19]=F,e[20]=$.ssoSignIn,e[21]=c.providerId,e[22]=a):a=e[22],a}if(h&&Je({emailAndPassword:P,emailOtp:se,socialProviders:le,magicLink:te,sso:c})){let a;return e[23]!==h.isPending||e[24]!==h.login||e[25]!==h.loginError?(a=t.jsx(Ze,{onContinue:h.login,isPending:h.isPending,error:h.loginError}),e[23]=h.isPending,e[24]=h.login,e[25]=h.loginError,e[26]=a):a=e[26],a}if(P.enabled||te.enabled||se.enabled||le.enabled){const a=h?.loginError??h?.completeSessionError??null;let x;e[27]!==_||e[28]!==L?(x={..._,...L},e[27]=_,e[28]=L,e[29]=x):x=e[29];let M;e[30]!==C||e[31]!==A||e[32]!==d||e[33]!==m||e[34]!==g||e[35]!==w||e[36]!==f||e[37]!==r||e[38]!==x||e[39]!==u||e[40]!==k?(M=t.jsx(Ye,{redirectUrl:f,callbackUrl:m,title:u,subtitle:r,brand:d,copy:g,variant:k,allowedSocialProviders:A,allowPassword:C,onAuthEvent:w,actions:x}),e[30]=C,e[31]=A,e[32]=d,e[33]=m,e[34]=g,e[35]=w,e[36]=f,e[37]=r,e[38]=x,e[39]=u,e[40]=k,e[41]=M):M=e[41];const W=M;if(!a)return W;let q;e[42]!==a?(q=t.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:a}),e[42]=a,e[43]=q):q=e[43];let j;return e[44]!==W||e[45]!==q?(j=t.jsxs("div",{className:"grid gap-4",children:[q,W]}),e[44]=W,e[45]=q,e[46]=j):j=e[46],j}let O;e[47]!==o?(O=o("common.authEntry.noLoginOptions"),e[47]=o,e[48]=O):O=e[48];let D;return e[49]!==O?(D=t.jsx("div",{children:O}),e[49]=O,e[50]=D):D=e[50],D}export{Oe as A,ot as a,Ge as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g,l as p,j as f}from"./index-
|
|
1
|
+
import{c as g,l as p,j as f}from"./index-CNyNddRy.js";function w(b){const e=g.c(20),{children:m,visual:r,align:j}=b,d=(j===void 0?"center":j)==="fill",x=d?"min-h-[100dvh] md:min-h-screen":"min-h-screen";let l;e[0]!==x?(l=p("flex w-full",x),e[0]=x,e[1]=l):l=e[1];const h=d?"h-[100dvh] justify-start pt-4 pb-8 md:h-auto":"justify-center py-6";let t;e[2]!==h?(t=p("flex flex-1 flex-col items-center bg-sidebar px-6 md:justify-center md:px-10 md:py-10",h),e[2]=h,e[3]=t):t=e[3];const u=d&&"flex min-h-0 flex-1 flex-col md:block md:flex-none";let s;e[4]!==u?(s=p("w-full max-w-[440px]",u),e[4]=u,e[5]=s):s=e[5];let i;e[6]!==m||e[7]!==s?(i=f.jsx("div",{className:s,children:m}),e[6]=m,e[7]=s,e[8]=i):i=e[8];let n;e[9]!==t||e[10]!==i?(n=f.jsx("section",{className:t,children:i}),e[9]=t,e[10]=i,e[11]=n):n=e[11];let c;e[12]!==r?(c=r??f.jsx("img",{src:"/onboarding-placeholder.png",alt:"",className:"absolute inset-0 h-full w-full object-cover"}),e[12]=r,e[13]=c):c=e[13];let a;e[14]!==c?(a=f.jsx("aside",{className:"relative hidden flex-1 overflow-hidden bg-muted md:flex",children:c}),e[14]=c,e[15]=a):a=e[15];let o;return e[16]!==a||e[17]!==l||e[18]!==n?(o=f.jsxs("main",{className:l,children:[n,a]}),e[16]=a,e[17]=l,e[18]=n,e[19]=o):o=e[19],o}export{w as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./index-
|
|
1
|
+
import"./index-CNyNddRy.js";import{i as u,a as p}from"./mcp-oauth-Q6FjuDjh.js";async function k({connectionId:n,orgId:s,orgSlug:o,persistFallback:r}){const c=new URL(`/api/${o}/mcp/${n}`,window.location.origin),i=await u({url:c.href,token:null,orgId:s});if(!i.supportsOAuth||i.isAuthenticated)return{ran:!1,ok:!0,error:null};const{token:t,tokenInfo:e,error:a}=await p({connectionId:n,orgSlug:o,scope:"offline_access"});if(a||!t)return{ran:!0,ok:!1,error:a??"no token received"};if(e)try{(await fetch(`/api/${o}/connections/${n}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:e.accessToken,refreshToken:e.refreshToken,expiresIn:e.expiresIn,scope:e.scope,clientId:e.clientId,clientSecret:e.clientSecret,tokenEndpoint:e.tokenEndpoint})})).ok||await r(t)}catch{await r(t)}else await r(t);return{ran:!0,ok:!0,error:null}}export{k as a};
|
package/dist/client/assets/{automation-list-row-C5K4rGy8.js → automation-list-row-VahGRD4F.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as G,b as J,r as U,l as W,j as t,B as X}from"./index-
|
|
1
|
+
import{c as G,b as J,r as U,l as W,j as t,B as X}from"./index-CNyNddRy.js";import{c as Y,d as Z,b as ee,f as te,g as se,e as ie,a as ne,A as oe}from"./alert-dialog-CpsaPwVj.js";import{D as ae,c as re,b as le,a as ce}from"./dropdown-menu-D0AJ3bel.js";import{A as me,ay as ue}from"./agent-icon-ttmBFMYA.js";import{i as de}from"./DotsVertical-C8tHdjIW.js";import{s as fe}from"./Trash01-DPwVFG18.js";import{i as ge}from"./Zap-CvgPlPwo.js";import{u as xe}from"./use-virtual-mcp-Bh9ynqfO.js";import{u as pe}from"./use-automations-C63gNpiU.js";function Le(c){const e=G.c(80),{automation:s,showAgent:a,onClick:n}=c,i=J(),{remove:o}=pe(),[l,O]=U.useState(!1),r=xe(a?s.virtual_mcp_id:void 0);let S;e[0]!==s.id||e[1]!==o?(S=()=>{o.mutate(s.id),O(!1)},e[0]=s.id,e[1]=o,e[2]=S):S=e[2];const I=S;let E;e[3]!==n?(E=m=>{m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},e[3]=n,e[4]=E):E=e[4];const H=E,V=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let u;e[5]!==V?(u=W("inline-block size-2 rounded-full shrink-0",V),e[5]=V,e[6]=u):u=e[6];const q=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==q?(d=i(q),e[7]=i,e[8]=q,e[9]=d):d=e[9];let f;e[10]!==u||e[11]!==d?(f=t.jsx("span",{className:u,"aria-label":d}),e[10]=u,e[11]=d,e[12]=f):f=e[12];let g;e[13]!==r?.icon||e[14]!==r?.title||e[15]!==s.name||e[16]!==a?(g=a&&t.jsx(me,{icon:r?.icon??null,name:r?.title??s.name,size:"xs",className:"shrink-0"}),e[13]=r?.icon,e[14]=r?.title,e[15]=s.name,e[16]=a,e[17]=g):g=e[17];let x;e[18]!==s.name?(x=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:s.name}),e[18]=s.name,e[19]=x):x=e[19];let p;e[20]!==r||e[21]!==a?(p=a&&r&&t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:["· ",r.title]}),e[20]=r,e[21]=a,e[22]=p):p=e[22];let h;e[23]!==p||e[24]!==x?(h=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[x,p]}),e[23]=p,e[24]=x,e[25]=h):h=e[25];let j;e[26]!==s.nearest_next_run_at||e[27]!==s.trigger_count?(j=t.jsx(we,{triggerCount:s.trigger_count,nextRunAt:s.nearest_next_run_at}),e[26]=s.nearest_next_run_at,e[27]=s.trigger_count,e[28]=j):j=e[28];let w;e[29]!==h||e[30]!==j?(w=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[h,j]}),e[29]=h,e[30]=j,e[31]=w):w=e[31];let F;e[32]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(ae,{asChild:!0,children:t.jsx(X,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100 transition-opacity",children:t.jsx(de,{size:16})})}),e[32]=F):F=e[32];let $,B;e[33]===Symbol.for("react.memo_cache_sentinel")?($=m=>{m.stopPropagation(),O(!0)},B=t.jsx(fe,{size:16}),e[33]=$,e[34]=B):($=e[33],B=e[34]);let v;e[35]!==i?(v=i("automations.automationListRow.delete"),e[35]=i,e[36]=v):v=e[36];let _;e[37]!==v?(_=t.jsx("div",{onClick:je,onKeyDown:he,role:"presentation",className:"shrink-0",children:t.jsxs(re,{children:[F,t.jsx(le,{align:"end",children:t.jsxs(ce,{variant:"destructive",onClick:$,children:[B,v]})})]})}),e[37]=v,e[38]=_):_=e[38];let b;e[39]!==H||e[40]!==n||e[41]!==w||e[42]!==_||e[43]!==f||e[44]!==g?(b=t.jsxs("div",{role:"button",tabIndex:0,onClick:n,onKeyDown:H,className:"group w-full flex items-center gap-3 px-4 py-3 border-b border-border text-left hover:bg-muted/50 transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[f,g,w,_]}),e[39]=H,e[40]=n,e[41]=w,e[42]=_,e[43]=f,e[44]=g,e[45]=b):b=e[45];let A;e[46]!==i?(A=i("automations.automationListRow.deleteTitle"),e[46]=i,e[47]=A):A=e[47];let D;e[48]!==A?(D=t.jsx(Y,{children:A}),e[48]=A,e[49]=D):D=e[49];let N;e[50]!==s.name||e[51]!==i?(N=i("automations.automationListRow.deleteDescription",{name:s.name}),e[50]=s.name,e[51]=i,e[52]=N):N=e[52];let R;e[53]!==N?(R=t.jsx(Z,{children:N}),e[53]=N,e[54]=R):R=e[54];let y;e[55]!==D||e[56]!==R?(y=t.jsxs(ee,{children:[D,R]}),e[55]=D,e[56]=R,e[57]=y):y=e[57];let C;e[58]!==i?(C=i("automations.automationListRow.cancel"),e[58]=i,e[59]=C):C=e[59];let L;e[60]!==C?(L=t.jsx(te,{children:C}),e[60]=C,e[61]=L):L=e[61];const Q=o.isPending;let k;e[62]!==i?(k=i("automations.automationListRow.deleteButton"),e[62]=i,e[63]=k):k=e[63];let P;e[64]!==I||e[65]!==o.isPending||e[66]!==k?(P=t.jsx(se,{onClick:I,disabled:Q,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:k}),e[64]=I,e[65]=o.isPending,e[66]=k,e[67]=P):P=e[67];let T;e[68]!==L||e[69]!==P?(T=t.jsxs(ie,{children:[L,P]}),e[68]=L,e[69]=P,e[70]=T):T=e[70];let z;e[71]!==y||e[72]!==T?(z=t.jsxs(ne,{children:[y,T]}),e[71]=y,e[72]=T,e[73]=z):z=e[73];let M;e[74]!==l||e[75]!==z?(M=t.jsx(oe,{open:l,onOpenChange:O,children:z}),e[74]=l,e[75]=z,e[76]=M):M=e[76];let K;return e[77]!==b||e[78]!==M?(K=t.jsxs(t.Fragment,{children:[b,M]}),e[77]=b,e[78]=M,e[79]=K):K=e[79],K}function he(c){return c.stopPropagation()}function je(c){return c.stopPropagation()}function we(c){const e=G.c(8),{triggerCount:s,nextRunAt:a}=c,n=J();if(s===0){let o;e[0]!==n?(o=n("automations.automationListRow.noTriggers"),e[0]=n,e[1]=o):o=e[1];let l;return e[2]!==o?(l=t.jsx("span",{className:"text-xs text-muted-foreground",children:o}),e[2]=o,e[3]=l):l=e[3],l}let i;return e[4]!==a||e[5]!==n||e[6]!==s?(i=t.jsx("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground min-w-0",children:a?t.jsxs(t.Fragment,{children:[t.jsx(ue,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.nextRun",{date:new Date(a).toLocaleString()})})]}):t.jsxs(t.Fragment,{children:[t.jsx(ge,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.triggers",{count:s})})]})}),e[4]=a,e[5]=n,e[6]=s,e[7]=i):i=e[7],i}export{Le as A};
|