decocms 4.83.2 → 4.83.3
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-C-LWGksh.js → AlertCircle-BltJ6Mxy.js} +1 -1
- package/dist/client/assets/{AreaChart-BuQ7pYh_.js → AreaChart-CpBmNFZZ.js} +1 -1
- package/dist/client/assets/{ArrowUp-BeEo8zxR.js → ArrowUp-CYTVD4i5.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Cpd1Kvoc.js → ArrowUpRight-KZXrl8RO.js} +1 -1
- package/dist/client/assets/{CheckCircle-D6vue6JR.js → CheckCircle-DPOzFR6K.js} +1 -1
- package/dist/client/assets/{ChevronDown-Chms7f47.js → ChevronDown-C45MJhf-.js} +1 -1
- package/dist/client/assets/{ChevronRight-DGKhdwsU.js → ChevronRight-CHR9w0WV.js} +1 -1
- package/dist/client/assets/{ChevronUp-B2kc02W-.js → ChevronUp-CB-gUWaQ.js} +1 -1
- package/dist/client/assets/{Copy01-BLPcoB-x.js → Copy01-DZXV6WTp.js} +1 -1
- package/dist/client/assets/{DotsVertical-Bv_Wu1PR.js → DotsVertical-DSgUvQkr.js} +1 -1
- package/dist/client/assets/{Eye--S6NkM5F.js → Eye-1BqSeJXv.js} +1 -1
- package/dist/client/assets/{FilterLines-CVyIbk7P.js → FilterLines-Cwm6xDCE.js} +1 -1
- package/dist/client/assets/{Globe01-D8U_-ef0.js → Globe01-wTQLyGwk.js} +1 -1
- package/dist/client/assets/{Globe04-Cf7fSPDC.js → Globe04-pANVCUtg.js} +1 -1
- package/dist/client/assets/{HardDrive-BDXue_9V.js → HardDrive-krN3qYvB.js} +1 -1
- package/dist/client/assets/{Image01-BOJVTyLq.js → Image01-CaxE9zUG.js} +1 -1
- package/dist/client/assets/{Key01-DgOZ1Vl-.js → Key01-B9xdnc8x.js} +1 -1
- package/dist/client/assets/{LayoutLeft-uipFY-Sc.js → LayoutLeft-RhfSEkSx.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cq7tHe_6.js → LinkExternal01-CGTGYK0h.js} +1 -1
- package/dist/client/assets/{Monitor01-C0kqyHBJ.js → Monitor01-1VmWHG0k.js} +1 -1
- package/dist/client/assets/{Package-2_HSkxNk.js → Package-CBorSvDN.js} +1 -1
- package/dist/client/assets/{Palette-DUf6RWjx.js → Palette-DLXcT5Ip.js} +1 -1
- package/dist/client/assets/{Play-D27HpOrJ.js → Play-Z-EfnT2J.js} +1 -1
- package/dist/client/assets/{Plus-CX4xPpn4.js → Plus-ej4sfxWI.js} +1 -1
- package/dist/client/assets/{SearchLg-EiBSceY9.js → SearchLg-COXRq0kg.js} +1 -1
- package/dist/client/assets/{SearchMd-CjaEgvWB.js → SearchMd-iOyrzKSR.js} +1 -1
- package/dist/client/assets/{Settings02-5t6-pGmO.js → Settings02-DO3c0hUy.js} +1 -1
- package/dist/client/assets/{Shield01-DxxbOkrj.js → Shield01-BVDyEJiQ.js} +1 -1
- package/dist/client/assets/{Star01-DBLmagOx.js → Star01-DvzIremA.js} +1 -1
- package/dist/client/assets/{Stars01-D-dD7V12.js → Stars01-_V87SU19.js} +1 -1
- package/dist/client/assets/{Stars02-BHQ6SybJ.js → Stars02-B_knJhjE.js} +1 -1
- package/dist/client/assets/{Sun-7RqH2_Dg.js → Sun-NA0W5K4z.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Dm27fxw8.js → SwitchHorizontal01-8mukXik8.js} +1 -1
- package/dist/client/assets/{Tool01-Bk7pamHg.js → Tool01-BKz30703.js} +1 -1
- package/dist/client/assets/{Tool02-CngweHED.js → Tool02-DF4wEV0L.js} +1 -1
- package/dist/client/assets/{Trash01-Bi1KaIxH.js → Trash01-DXhAjasB.js} +1 -1
- package/dist/client/assets/{TrendUp01-DsSWSiUz.js → TrendUp01-CdPwIZPG.js} +1 -1
- package/dist/client/assets/{Upload01-BWPUocl6.js → Upload01-CMdpXxUq.js} +1 -1
- package/dist/client/assets/{User01-s23e9wZl.js → User01-xcnOfGdh.js} +1 -1
- package/dist/client/assets/{Users01-CNMhmtlD.js → Users01-DMgMrzjc.js} +1 -1
- package/dist/client/assets/{Users03-CTnD7KhC.js → Users03-CWA_havj.js} +1 -1
- package/dist/client/assets/{X-CLk-1WTe.js → X-Cp0AjBA7.js} +1 -1
- package/dist/client/assets/{XCircle-2O_4kWp7.js → XCircle-BqELyRTX.js} +1 -1
- package/dist/client/assets/{XClose-DSEAQFLe.js → XClose-D0hPWJkK.js} +1 -1
- package/dist/client/assets/{Zap-BAgOs3IO.js → Zap-B6vin2-a.js} +1 -1
- package/dist/client/assets/{ZapSquare-T3uj9o0S.js → ZapSquare-7Fs9X9Yr.js} +1 -1
- package/dist/client/assets/{ZoomOut-B7mxhvah.js → ZoomOut-BZTnbhP5.js} +1 -1
- package/dist/client/assets/{access-gate-avJTtHpg.js → access-gate-BAdn8IKr.js} +1 -1
- package/dist/client/assets/{add-section-modal-BL-x5qaG.js → add-section-modal-C7NHNNt8.js} +1 -1
- package/dist/client/assets/{agent-icon-D18juLx-.js → agent-icon-CiTl48Lp.js} +1 -1
- package/dist/client/assets/{agents-list-DLkLGDrw.js → agents-list-DXybhKZv.js} +1 -1
- package/dist/client/assets/{ai-providers-KsLhnp0X.js → ai-providers-BbLHsSyx.js} +1 -1
- package/dist/client/assets/{alert-Bele4j8y.js → alert-CmpwLqbe.js} +1 -1
- package/dist/client/assets/{alert-dialog-BNeEAttR.js → alert-dialog-DJrtDnJO.js} +1 -1
- package/dist/client/assets/{app-editor-B0BrwnQg.js → app-editor-bZcSnRmV.js} +1 -1
- package/dist/client/assets/{auth-D4yHRD2-.js → auth-XnxxEwr5.js} +1 -1
- package/dist/client/assets/{auth-catchall-CNZ3D5s7.js → auth-catchall-Cxl-yjdb.js} +1 -1
- package/dist/client/assets/{auth-entry-C-qYM8sO.js → auth-entry-CUL8UkSt.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DYTsk60r.js → auth-split-layout-DG68ggR0.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BlDhuvWq.js → authenticate-and-persist-oauth-CnLRGoBM.js} +1 -1
- package/dist/client/assets/{automation-list-row-XKqqDi6F.js → automation-list-row-Nkaziv9h.js} +1 -1
- package/dist/client/assets/{automation-runs-C0y-Gi-l.js → automation-runs-BenCurrg.js} +1 -1
- package/dist/client/assets/{automations-DdZPK7BE.js → automations-CN2atgME.js} +1 -1
- package/dist/client/assets/{autosend-Pu6JcU1z.js → autosend-CRJdeC5_.js} +1 -1
- package/dist/client/assets/{avatar-CB-s6LW3.js → avatar-DT0rqDqr.js} +1 -1
- package/dist/client/assets/{badge-D2OV8wRl.js → badge-D5s1860l.js} +1 -1
- package/dist/client/assets/{block-document-CMsWkopF.js → block-document-BETOwKGe.js} +1 -1
- package/dist/client/assets/{brand-context-DWWqlpVW.js → brand-context-FdUTKfJ5.js} +1 -1
- package/dist/client/assets/{buckets-Bml_f-qW.js → buckets-Cm0SFAz6.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-CwTU2Dke.js → bulk-category-panel-CAjGF-JB.js} +1 -1
- package/dist/client/assets/{calendar-Cy0H8dDP.js → calendar-DiYxbOe7.js} +1 -1
- package/dist/client/assets/{capability-load-error-C8Uwu5_s.js → capability-load-error-DBEbnF7l.js} +1 -1
- package/dist/client/assets/{card-BJLhqcLf.js → card-CVF2Z9or.js} +1 -1
- package/dist/client/assets/{category-editor-CfWwzNXf.js → category-editor-Bkgj4nFa.js} +1 -1
- package/dist/client/assets/{chat-context-BzGsRBEi.js → chat-context-DScS8psZ.js} +1 -1
- package/dist/client/assets/{checkbox-fY0uDGwg.js → checkbox-CGSFVz1t.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B08QkmvU.js → cli-auth-success-qa5qg70-.js} +1 -1
- package/dist/client/assets/{collection-detail-BZt_Ibwr.js → collection-detail-CF8M49Qs.js} +1 -1
- package/dist/client/assets/{collection-display-button-Cc0b3ED_.js → collection-display-button-CF7J4NNk.js} +1 -1
- package/dist/client/assets/{collection-search-Bv843kn7.js → collection-search-Bmr4mXA3.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DjmKYjAk.js → collection-table-wrapper-CxCCI34M.js} +1 -1
- package/dist/client/assets/{collection-tabs-B6yGaiCr.js → collection-tabs-DoS3HsFI.js} +1 -1
- package/dist/client/assets/{command-DWwqFTuu.js → command-D5O8bF71.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-dLv4vpps.js → commerce-onboarding-3IK04tR5.js} +1 -1
- package/dist/client/assets/{companions-core-NOLgowrv.js → companions-core-BSZhKLdK.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-DEpb0pcU.js → connect-desktop-dialog-WvKkzanr.js} +1 -1
- package/dist/client/assets/{connection-card-o0DDUNHv.js → connection-card-CXz46t4H.js} +1 -1
- package/dist/client/assets/{connection-detail-Cswj6S4W.js → connection-detail-BFIeDvSU.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-EPDDGUte.js → connection-form-helpers-D66YZrv9.js} +1 -1
- package/dist/client/assets/{connections-6qWoAdqX.js → connections-DQYFyP0N.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-D-2tGt-o.js → decopilot-sse-pool-fzCZV2FF.js} +1 -1
- package/dist/client/assets/{dialog-BFqbrhnG.js → dialog-Bj2fsNVF.js} +1 -1
- package/dist/client/assets/{domain-settings-IW5nZczN.js → domain-settings-D9TDhUUP.js} +1 -1
- package/dist/client/assets/{drawer-Cl_dvusi.js → drawer-hSJSV0VX.js} +1 -1
- package/dist/client/assets/{dropdown-menu-EfeTZxQL.js → dropdown-menu-BmnVEK9j.js} +1 -1
- package/dist/client/assets/{empty-state-DQOY2xmV.js → empty-state-CrwQiRbh.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C6T0yo3M.js → extract-connection-data-CLHklHMt.js} +1 -1
- package/dist/client/assets/{file-explorer-BIc5X5VW.js → file-explorer-JDQR3igJ.js} +1 -1
- package/dist/client/assets/{file-type-icon-D2keXo94.js → file-type-icon-CjtW_EKu.js} +1 -1
- package/dist/client/assets/{files-CSH75kzv.js → files-apXzYOOV.js} +1 -1
- package/dist/client/assets/{form-CGKisGk6.js → form-B3ss7zyz.js} +1 -1
- package/dist/client/assets/{general-BfoX5LCV.js → general-CrEhsdbc.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BRMhPL_0.js → github-repo-picker-CV_vV32R.js} +1 -1
- package/dist/client/assets/{hooks-BSMoXVbD.js → hooks-DoJbaPOb.js} +1 -1
- package/dist/client/assets/{index-BCsh3PYH.js → index-B33lgsZX.js} +1 -1
- package/dist/client/assets/{index-DSgOediN.js → index-Bwr7A1e6.js} +1 -1
- package/dist/client/assets/{index-D2HwJQV5.js → index-C6VQmb5F.js} +2 -2
- package/dist/client/assets/{index-CUgYJaPV.js → index-CPw65aX_.js} +1 -1
- package/dist/client/assets/{index-CAIYhjul.js → index-CPzeLvpv.js} +3 -3
- package/dist/client/assets/{index-ByT194y-.js → index-CRIurAz3.js} +1 -1
- package/dist/client/assets/{index-BKqtjTbw.js → index-CXPjVFaQ.js} +1 -1
- package/dist/client/assets/{index-CXCcDBTq.js → index-ChwM9l4E.js} +1 -1
- package/dist/client/assets/{index-H4hcES42.js → index-Cy6iEpAK.js} +1 -1
- package/dist/client/assets/{index-S3X52veH.js → index-D2D4iP55.js} +1 -1
- package/dist/client/assets/{index-Rb2bYeF_.js → index-DEs_ACwv.js} +1 -1
- package/dist/client/assets/{index-DrJmHyyo.js → index-DiuL6IYC.js} +1 -1
- package/dist/client/assets/{index-BmwqFaiy.js → index-DpwkyCAS.js} +27 -27
- package/dist/client/assets/{index-ChtsFoQQ.js → index-ZkHeR0Y8.js} +1 -1
- package/dist/client/assets/{index-redirect-CEHG6qWB.js → index-redirect-BPlGr-30.js} +1 -1
- package/dist/client/assets/{input-Dzav8ivG.js → input-CFDlaaLx.js} +1 -1
- package/dist/client/assets/{integration-icon-Db96f3jT.js → integration-icon-NExukTTe.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-9O6Lre1u.js → invite-member-dialog-BJLxJtbe.js} +1 -1
- package/dist/client/assets/{label-DaAsoL9V.js → label-Bgzv3znS.js} +1 -1
- package/dist/client/assets/{layout-Br8401sd.js → layout-DYGKorBw.js} +1 -1
- package/dist/client/assets/{login-DceebZPc.js → login-Cvh9vDq0.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Bzb4iSTT.js → mcp-oauth-CWoNDceu.js} +1 -1
- package/dist/client/assets/{members-DJky7gY8.js → members-B50cQweG.js} +1 -1
- package/dist/client/assets/{monaco-editor-c4RVis_9.js → monaco-editor-DtQbtFXR.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CgDrRjXa.js → monitoring-stats-row-B1eJJCdW.js} +1 -1
- package/dist/client/assets/{multi-select-DswivzJU.js → multi-select-DrL-uXbn.js} +1 -1
- package/dist/client/assets/{oauth-callback-N8Kmr_2u.js → oauth-callback-CkwzDC9j.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B07g_XT9.js → oauth-callback-ai-provider-CprzbTec.js} +1 -1
- package/dist/client/assets/{onboarding-BKAjTwg-.js → onboarding-DTua64Pc.js} +1 -1
- package/dist/client/assets/{org-install-HCB4vzUC.js → org-install-DwOf4OfV.js} +1 -1
- package/dist/client/assets/{org-layout-C0Q-q-fX.js → org-layout-BDvFD0BL.js} +1 -1
- package/dist/client/assets/{organization-choice-D9DKvqVz.js → organization-choice-ah0QzZh1.js} +1 -1
- package/dist/client/assets/{orgs-BrqG5BVm.js → orgs-ByzWwqO1.js} +1 -1
- package/dist/client/assets/{page-seo-form-DZCzqL8q.js → page-seo-form-CshzPKTn.js} +1 -1
- package/dist/client/assets/page-seo-sheet-CqFzDweu.js +1 -0
- package/dist/client/assets/{popover-Zrs8wv0F.js → popover-GLcqGwrV.js} +1 -1
- package/dist/client/assets/{post-editor-CdSGWiLa.js → post-editor-DpddhNpN.js} +1 -1
- package/dist/client/assets/{primitives-CSHAedU0.js → primitives-FkszfdyS.js} +1 -1
- package/dist/client/assets/{profile-L8yVo8jE.js → profile-CAD2WOKv.js} +1 -1
- package/dist/client/assets/project-app-view-BAu-8uvc.js +1 -0
- package/dist/client/assets/record-editor-C9c7AHCv.js +1 -0
- package/dist/client/assets/redirect-editor-DrMKfK1Y.js +1 -0
- package/dist/client/assets/registry-AFJkCX6L.js +2 -0
- package/dist/client/assets/{registry-layout-ftVzyud_.js → registry-layout-CL3Ink_2.js} +1 -1
- package/dist/client/assets/{reports--rTbu3V7.js → reports-SAtCXsub.js} +1 -1
- package/dist/client/assets/{require-capability-BYn5Rk3O.js → require-capability-B1PN0eEj.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CoT_XXkN.js → required-auth-layout-DJoWkQKd.js} +1 -1
- package/dist/client/assets/{reset-password-CgNFAvmH.js → reset-password-CKUS_wS4.js} +1 -1
- package/dist/client/assets/{roles-DMRweu6k.js → roles-HgnqbuYI.js} +1 -1
- package/dist/client/assets/{search-input-Cq8-y1F0.js → search-input-DMH0FqNh.js} +1 -1
- package/dist/client/assets/{secrets-CmPAp_up.js → secrets-BbPkTbrF.js} +1 -1
- package/dist/client/assets/{sections-editor-wyl18rw9.js → sections-editor-7KIVS72T.js} +1 -1
- package/dist/client/assets/{select-peZlJuYe.js → select-F9_kjFJU.js} +1 -1
- package/dist/client/assets/select-model-BDck7HMW.js +4 -0
- package/dist/client/assets/{self-tool-result-DYrHsoN8.js → self-tool-result-idl7McJq.js} +1 -1
- package/dist/client/assets/{seo-editor-BJVKSK5H.js → seo-editor-Idy1rbrU.js} +1 -1
- package/dist/client/assets/{settings-layout-CPUHm_YX.js → settings-layout-jrS1vUNa.js} +1 -1
- package/dist/client/assets/{settings-section-B1GgY2if.js → settings-section-LyNFY3FV.js} +1 -1
- package/dist/client/assets/{shell-controls-C_p4ZmTF.js → shell-controls-Av5g79-9.js} +1 -1
- package/dist/client/assets/{shell-layout-CTslVDtx.js → shell-layout-IGy4w-JV.js} +1 -1
- package/dist/client/assets/{sidebar-BjlDvhlo.js → sidebar-DxJ46dNl.js} +1 -1
- package/dist/client/assets/{skeleton-DeOjoVUO.js → skeleton-C637U3CZ.js} +1 -1
- package/dist/client/assets/{sso-D363gW46.js → sso-Bp6hOV1O.js} +1 -1
- package/dist/client/assets/{store-DvP7myd4.js → store-BDc_Jqkn.js} +1 -1
- package/dist/client/assets/store-registry-DyW2rI_N.js +2 -0
- package/dist/client/assets/{studio-tools-C0-5Z8k5.js → studio-tools-BiScRaZ9.js} +1 -1
- package/dist/client/assets/{switch-DG2ijYXZ.js → switch-D3PUOhLK.js} +1 -1
- package/dist/client/assets/{table-fSAZqdik.js → table-Bn_rEvE7.js} +1 -1
- package/dist/client/assets/{tabs-59hacXBf.js → tabs-QJA2yUyz.js} +1 -1
- package/dist/client/assets/{textarea-B9TUwSCj.js → textarea-V8pv1dNk.js} +1 -1
- package/dist/client/assets/{toggle-group-CP4FEYCM.js → toggle-group-Bf4mxsLh.js} +1 -1
- package/dist/client/assets/{toolbar-Bn_kiKpu.js → toolbar-ZdT33O-6.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DChgCAZk.js → toolbar-icon-button-By0yIGM8.js} +1 -1
- package/dist/client/assets/{tooltip-DBcnpVTx.js → tooltip-CvQZg4vG.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B0J5EZdH.js → use-ai-providers-D03RDptV.js} +1 -1
- package/dist/client/assets/{use-automations-CajzdSeA.js → use-automations-BvRj5P6v.js} +1 -1
- package/dist/client/assets/{use-autosave-BvYo7aS2.js → use-autosave-BiViXaqh.js} +1 -1
- package/dist/client/assets/{use-capability-CEtXiCRz.js → use-capability-C-oXXYJQ.js} +1 -1
- package/dist/client/assets/{use-clock-tick-r_qU_UzB.js → use-clock-tick-hXpFWi6j.js} +1 -1
- package/dist/client/assets/{use-collections-DHkHvLr2.js → use-collections-DYdGIg5l.js} +1 -1
- package/dist/client/assets/{use-connection-DRK2N5z2.js → use-connection-BML2TUoy.js} +1 -1
- package/dist/client/assets/{use-copy-BHgKL0On.js → use-copy-B5uGqyuR.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DaHNk0Ix.js → use-create-virtual-mcp-BcX_Kv1b.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CBxkub0J.js → use-debounced-autosave-lgc7ocLL.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Bc5YBXDl.js → use-debounced-value-C2skJpvP.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CbUWlpHm.js → use-deco-credits-sZO5ip0G.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-lkWlYZO4.js → use-decopilot-events-QTK5Zo8O.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Bz-L6aVH.js → use-delete-connection-C2Jvej_H.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BmRZ12zi.js → use-deployment-admin-Bq6GrMmu.js} +1 -1
- package/dist/client/assets/{use-file-configs-CRDwG08w.js → use-file-configs-CDTlNU2y.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-C_OzT98l.js → use-infinite-scroll-Bs4b3CKK.js} +1 -1
- package/dist/client/assets/{use-join-requests-x3YhuWSS.js → use-join-requests-DJ8netHm.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-RbS9dxNI.js → use-mcp-auth-status-BzksUW9C.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BRDJsS2i.js → use-mcp-client-Cr0wl_bf.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-TLy2HClY.js → use-mcp-tools-Csk7sq3g.js} +1 -1
- package/dist/client/assets/{use-members-T2DIW2PV.js → use-members-DBIzFrsq.js} +1 -1
- package/dist/client/assets/{use-mobile-COWtBi3l.js → use-mobile-8fjZ_ok-.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DWAHU44q.js → use-navigate-to-agent-CnqkxH4A.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BICeQnTF.js → use-org-auth-client-C-dIfIJP.js} +1 -1
- package/dist/client/assets/{use-org-sso-Bd_0B726.js → use-org-sso-HcIGfZK6.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DobbYYRj.js → use-organization-roles-D-ou5XCB.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BJBqMmWF.js → use-organization-settings-CwpCXpKR.js} +1 -1
- package/dist/client/assets/{use-registry-app-C_q3DUZv.js → use-registry-app-CGrH5ox5.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CmUf1QlB.js → use-registry-connections-CXPOqhcO.js} +1 -1
- package/dist/client/assets/{use-secrets-O5sD2Bgz.js → use-secrets-D1Oh6QRL.js} +1 -1
- package/dist/client/assets/{use-status-sounds-B96xiiHa.js → use-status-sounds-DTrbbuq0.js} +1 -1
- package/dist/client/assets/{use-view-mode-BJOrvC1j.js → use-view-mode-298quQE5.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-63tB8KYL.js → use-virtual-mcp-TVYmV-RO.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-gX0RVYjX.js +1 -0
- package/dist/client/assets/{useRouterState-BNyrcIx8.js → useRouterState-ccAaKn3U.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Bjo2O8qN.js +1 -0
- package/dist/client/assets/{users-DWHrGlvz.js → users-B-K71hUj.js} +1 -1
- package/dist/client/assets/{variant-calendar-BVX3kYfI.js → variant-calendar-FX999I3r.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DBojFra_.js → view-mode-toggle-Cisl2Dwz.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +445 -445
- package/dist/server/server.js +304 -304
- package/package.json +1 -1
- package/dist/client/assets/page-seo-sheet-MkscnSYp.js +0 -1
- package/dist/client/assets/project-app-view-D7_4EXf8.js +0 -1
- package/dist/client/assets/record-editor-sr_hR6uA.js +0 -1
- package/dist/client/assets/redirect-editor-DYiAiFDJ.js +0 -1
- package/dist/client/assets/registry-2F4l4D0M.js +0 -2
- package/dist/client/assets/select-model-DI8jnYOT.js +0 -4
- package/dist/client/assets/store-registry-r9GmOZET.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BSKFC7YM.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cwnl9Xjp.js +0 -1
package/dist/client/assets/{use-org-auth-client-BICeQnTF.js → use-org-auth-client-C-dIfIJP.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,C,a as i}from"./index-
|
|
1
|
+
import{c as x,C,a as i}from"./index-CPzeLvpv.js";function q(){const e=x.c(32),{org:O}=C(),o=O.id;let z;e[0]!==o?(z=R=>(f=>i.organization[R]({...f??{},organizationId:o})),e[0]=o,e[1]=z):z=e[1];const t=z;let M;e[2]!==o?(M=R=>(f=>{const y={...f??{}},h=y.query??{};return y.query={...h,organizationId:o},i.organization[R](y)}),e[2]=o,e[3]=M):M=e[3];const n=M;let a,r;e[4]!==n?(a=n("listMembers"),r=n("listRoles"),e[4]=n,e[5]=a,e[6]=r):(a=e[5],r=e[6]);let l,s,c,g,u,m,d,v,b;e[7]!==t?(g=t("inviteMember"),u=t("removeMember"),m=t("updateMemberRole"),d=t("addMember"),v=t("createRole"),b=t("updateRole"),l=t("deleteRole"),s=t("cancelInvitation"),c=t("update"),e[7]=t,e[8]=l,e[9]=s,e[10]=c,e[11]=g,e[12]=u,e[13]=m,e[14]=d,e[15]=v,e[16]=b):(l=e[8],s=e[9],c=e[10],g=e[11],u=e[12],m=e[13],d=e[14],v=e[15],b=e[16]);let p;e[17]!==n?(p=n("getActiveMember"),e[17]=n,e[18]=p):p=e[18];let I;return e[19]!==l||e[20]!==s||e[21]!==c||e[22]!==p||e[23]!==a||e[24]!==r||e[25]!==g||e[26]!==u||e[27]!==m||e[28]!==d||e[29]!==v||e[30]!==b?(I={organization:{listMembers:a,listRoles:r,inviteMember:g,removeMember:u,updateMemberRole:m,addMember:d,createRole:v,updateRole:b,deleteRole:l,cancelInvitation:s,update:c,getActiveMember:p,acceptInvitation:i.organization.acceptInvitation,rejectInvitation:i.organization.rejectInvitation,getInvitation:i.organization.getInvitation,list:i.organization.list,create:i.organization.create,getFullOrganization:i.organization.getFullOrganization}},e[19]=l,e[20]=s,e[21]=c,e[22]=p,e[23]=a,e[24]=r,e[25]=g,e[26]=u,e[27]=m,e[28]=d,e[29]=v,e[30]=b,e[31]=I):I=e[31],I}export{q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,m as S,n as r,d as y,K as c}from"./index-
|
|
1
|
+
import{c as u,m as S,n as r,d as y,K as c}from"./index-CPzeLvpv.js";async function f(i,a,e){const s=await fetch(i,a);if(!s.ok){const t=await s.json().catch(()=>null);throw new Error(t?.error||e)}return s.json()}function m(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoStatus(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/status`,void 0,"Failed to check SSO status"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function q(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoConfig(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/config`,void 0,"Failed to fetch SSO config"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function C(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)},"Failed to save SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function O(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=()=>f(`/api/${a}/sso/config`,{method:"DELETE"},"Failed to delete SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function d(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:l})},"Failed to toggle SSO enforcement"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}export{q as a,C as b,O as c,d,m as u};
|
package/dist/client/assets/{use-organization-roles-DobbYYRj.js → use-organization-roles-D-ou5XCB.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as R}from"./use-org-auth-client-
|
|
1
|
+
import{u as R}from"./use-org-auth-client-C-dIfIJP.js";import{C as b,m as P,K as y}from"./index-CPzeLvpv.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function B(t){return t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const u=[];let c=!1;const a=new Set;let s=!1,f=0,e=!1;for(const[l,o]of Object.entries(t)){if(l==="self"){o.includes("*")?i=!0:n.push(...o);continue}if(l==="models"){o.includes("*:*")?e=!0:f=o.length;continue}if(l==="*"){if(c=!0,o.includes("*"))s=!0;else for(const r of o)a.add(r);continue}if(u.push(l),o.includes("*"))s=!0;else for(const r of o)a.add(r)}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(a),allowsAllTools:s,modelCount:f,allowsAllModels:e}}function I(){const{locator:t}=b(),n=R(),{data:i,isLoading:u,error:c,refetch:a}=P({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const e=await n.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),s=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(i&&Array.isArray(i))for(const e of i){const l=e.role;if(!l||w.some(h=>h.value===l))continue;const{staticPermissions:o,allowsAllStaticPermissions:r,connectionIds:g,allowsAllConnections:m,toolNames:p,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(e.permission);s.push({id:e.id,role:l,label:B(l),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:r?-1:o.length,allowsAllStaticPermissions:r,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:p.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(e=>!e.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:a}}export{I as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,C as g,m as E,K as d,n as I,d as D,r as b}from"./index-
|
|
1
|
+
import{c as l,C as g,m as E,K as d,n as I,d as D,r as b}from"./index-CPzeLvpv.js";import{W as C}from"./use-mcp-client-Cr0wl_bf.js";import{c as G,u as M}from"./studio-tools-BiScRaZ9.js";const O={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null,reports_only:null},N={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function w(t,e){return{queryKey:d.organizationSettings(e),queryFn:async()=>{try{return await G(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...O,organizationId:e}}},staleTime:6e4}}function _(t){const e=l.c(6),{org:s}=g();let n;e[0]!==s.id||e[1]!==s.slug?(n=w(s.slug,s.id),e[0]=s.id,e[1]=s.slug,e[2]=n):n=e[2];const i=t;let r;return e[3]!==n||e[4]!==i?(r={...n,select:i},e[3]=n,e[4]=i,e[5]=r):r=e[5],E(r)}function Z(t,e){const s=l.c(3);let n;s[0]!==t||s[1]!==e?(n=w(e,t),s[0]=t,s[1]=e,s[2]=n):n=s[2];const{data:i}=E(n);return i??null}function S(){const t=l.c(9),{org:e}=g(),s=M(),n=I();let i;t[0]!==e||t[1]!==s?(i=async o=>{const u=await s.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...o});if(!u)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return u},t[0]=e,t[1]=s,t[2]=i):i=t[2];let r;t[3]!==e||t[4]!==n?(r=o=>{n.setQueryData(d.organizationSettings(e.id),u=>({...u??O,...o}))},t[3]=e,t[4]=n,t[5]=r):r=t[5];let a;return t[6]!==i||t[7]!==r?(a={mutationFn:i,onSuccess:r},t[6]=i,t[7]=r,t[8]=a):a=t[8],D(a)}function Q(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:N}function F(){const{data:t}=_(P);return t??N}function P(t){return Q(t.simple_mode)}function j(){const t=l.c(7),e=S();let s,n;t[0]!==e?(s=(r,a)=>e.mutate({simple_mode:r},a),n=(r,a)=>e.mutateAsync({simple_mode:r},a),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function B(){const{data:t}=_($);return t??!1}function $(t){return t.reports_only??!1}function x(){const{data:t}=_(U);return t??null}function U(t){return t.registry_config}function L(){const t=l.c(7),e=S();let s,n;t[0]!==e?(s=(r,a)=>e.mutate({registry_config:r},a),n=(r,a)=>e.mutateAsync({registry_config:r},a),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function v(){const{data:t}=_(k);return t??null}function k(t){return t.default_home_agents}function q(){const t=l.c(7),e=S();let s,n;t[0]!==e?(s=(r,a)=>e.mutate({default_home_agents:r},a),n=(r,a)=>e.mutateAsync({default_home_agents:r},a),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function J(){const t=l.c(14),{org:e}=g(),s=q(),n=I();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=Promise.resolve(),t[0]=i):i=t[0];const r=b.useRef(i);let a;t[1]!==e.id?(a=d.organizationSettings(e.id),t[1]=e.id,t[2]=a):a=t[2];const o=a;let u;t[3]!==o||t[4]!==n?(u=()=>n.getQueryData(o)?.default_home_agents?.ids??[],t[3]=o,t[4]=n,t[5]=u):u=t[5];const y=u;let m;t[6]!==o||t[7]!==e.slug||t[8]!==n||t[9]!==s?(m=z=>{const T=r.current.then(async()=>{const A=n.getQueryData(o),h=z(A?.default_home_agents?.ids??[]);if(h!==null){n.setQueryData(o,c=>c&&{...c,default_home_agents:{ids:h}});try{await s.mutateAsync({ids:h}),await n.refetchQueries({queryKey:d.homeNextActions(e.slug),type:"active"})}catch(c){const R=c;throw n.setQueryData(o,A),R}}});return r.current=T.catch(K),T},t[6]=o,t[7]=e.slug,t[8]=n,t[9]=s,t[10]=m):m=t[10];const p=m;let f;return t[11]!==p||t[12]!==y?(f={currentIds:y,apply:p},t[11]=p,t[12]=y,t[13]=f):f=t[13],f}function K(){}function V(){const t=l.c(5),{org:e}=g(),s=x();let n;t[0]!==e.id?(n=C.REGISTRY(e.id),t[0]=e.id,t[1]=n):n=t[1];const i=n;let r;return t[2]!==i||t[3]!==s?(r=a=>{if(!s)return a===i;const o=s.registries[a];return o?o.enabled:a===i},t[2]=i,t[3]=s,t[4]=r):r=t[4],r}export{v as a,J as b,V as c,Z as d,F as e,j as f,x as g,L as h,B as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,j as m,C as f}from"./index-
|
|
1
|
+
import{c as d,j as m,C as f}from"./index-CPzeLvpv.js";import{W as g,u as C}from"./use-mcp-client-Cr0wl_bf.js";import{u as x}from"./use-mcp-tools-Csk7sq3g.js";function I(n){const s=d.c(4),{size:e,className:t}=n;let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o=m.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"}),s[0]=o):o=s[0];let r;return s[1]!==t||s[2]!==e?(r=m.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",className:t,children:o}),s[1]=t,s[2]=e,s[3]=r):r=s[3],r}function P(n,s){const e=d.c(12),{org:t}=f();let o;e[0]!==t.id?(o=g.REGISTRY(t.id),e[0]=t.id,e[1]=o):o=e[1];const r=o;let i;e[2]!==t.id||e[3]!==t.slug||e[4]!==r?(i={connectionId:r,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=r,e[5]=i):i=e[5];const u=C(i);let l;e[6]!==n?(l={name:n},e[6]=n,e[7]=l):l=e[7];const a=s?.enabled??!0;let c;return e[8]!==u||e[9]!==l||e[10]!==a?(c={client:u,toolName:"COLLECTION_REGISTRY_APP_GET",toolArguments:l,enabled:a,staleTime:3e5,select:h},e[8]=u,e[9]=l,e[10]=a,e[11]=c):c=e[11],x(c)}function h(n){return n.structuredContent?.item??null}export{I as G,P as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,C as R}from"./index-
|
|
1
|
+
import{c as C,C as R}from"./index-CPzeLvpv.js";import{u as p}from"./use-connection-BML2TUoy.js";import{W as a}from"./use-mcp-client-Cr0wl_bf.js";import{g as y}from"./use-organization-settings-CwpCXpKR.js";function M(){const e=C.c(19),{org:i}=R(),o=y();let l;e[0]!==i.id?(l=a.REGISTRY(i.id),e[0]=i.id,e[1]=l):l=e[1];const d=l;let f;e[2]!==i.id?(f=a.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=f):f=e[3];const g=f;let r;e[4]!==g||e[5]!==d?(r=[d,g],e[4]=g,e[5]=d,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const u of s)t.add(u)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const m=p();let n;e[12]!==m?(n=m??[],e[12]=m,e[13]=n):n=e[13];let c;if(e[14]!==t||e[15]!==n){let s;e[17]!==t?(s=u=>t.has(u.id),e[17]=t,e[18]=s):s=e[18],c=n.filter(s),e[14]=t,e[15]=n,e[16]=c}else c=e[16];return c}export{M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,C as a,K as c,v as f,n as y,d as S}from"./index-
|
|
1
|
+
import{c as r,C as a,K as c,v as f,n as y,d as S}from"./index-CPzeLvpv.js";import{u as l}from"./studio-tools-BiScRaZ9.js";function E(){const e=r.c(7),{org:o}=a(),n=l();let i;e[0]!==o.id?(i=c.secrets(o.id),e[0]=o.id,e[1]=i):i=e[1];let t;e[2]!==n?(t=async()=>await n.call("SECRET_LIST",{}),e[2]=n,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:u}=f(s);return u.secrets}function p(){const e=r.c(8),{org:o}=a(),n=l(),i=y();let t;e[0]!==n?(t=async d=>await n.call("SECRET_CREATE",{...d}),e[0]=n,e[1]=t):t=e[1];let s;e[2]!==o||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:c.secrets(o.id)})},e[2]=o,e[3]=i,e[4]=s):s=e[4];let u;return e[5]!==t||e[6]!==s?(u={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=u):u=e[7],S(u)}export{p as a,E as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,U as u}from"./index-
|
|
1
|
+
import{c as r,U as u}from"./index-CPzeLvpv.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-QTK5Zo8O.js";const p=new Set(["completed","failed","requires_action"]);function U(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{U as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,r as f}from"./index-
|
|
1
|
+
import{c as p,r as f}from"./index-CPzeLvpv.js";import{u as w}from"./use-mobile-8fjZ_ok-.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,C as d,al as P,m as p}from"./index-
|
|
1
|
+
import{c as a,C as d,al as P,m as p}from"./index-CPzeLvpv.js";import{b as L,a as S,u as V}from"./use-collections-DYdGIg5l.js";import{S as g,u as C}from"./use-mcp-client-Cr0wl_bf.js";function y(e){const t=a.c(5);let s;t[0]!==e?(s=e===void 0?{}:e,t[0]=e,t[1]=s):s=t[1];const n=s,{org:i}=d();let o;t[2]!==i.id||t[3]!==i.slug?(o={connectionId:g,orgId:i.id,orgSlug:i.slug},t[2]=i.id,t[3]=i.slug,t[4]=o):o=t[4];const l=C(o);return L(i.id,"VIRTUAL_MCP",l,n)}function b(e){const t=a.c(3),{org:s}=d();let n;t[0]!==s.id||t[1]!==s.slug?(n={connectionId:g,orgId:s.id,orgSlug:s.slug},t[0]=s.id,t[1]=s.slug,t[2]=n):n=t[2];const i=C(n);return V(s.id,"VIRTUAL_MCP",e??void 0,i)}function R(e){const t=a.c(15),{org:s}=d();let n;t[0]!==s.id||t[1]!==s.slug?(n={connectionId:g,orgId:s.id,orgSlug:s.slug},t[0]=s.id,t[1]=s.slug,t[2]=n):n=t[2];const i=C(n);let o,l,c;t[3]!==e||t[4]!==s.id?(o=[...e].sort(),c=p,l=P.virtualMcpLastUsed(s.id,o),t[3]=e,t[4]=s.id,t[5]=o,t[6]=l,t[7]=c):(o=t[5],l=t[6],c=t[7]);const f=o.length>0;let u;t[8]!==i||t[9]!==o?(u=async()=>{const M=(await i.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},m=new Map;for(const I of M.items)m.set(I.id,I);return m},t[8]=i,t[9]=o,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==f||t[13]!==u?(r={queryKey:l,enabled:f,staleTime:3e4,queryFn:u},t[11]=l,t[12]=f,t[13]=u,t[14]=r):r=t[14],c(r)}function E(){const e=a.c(3),{org:t}=d();let s;e[0]!==t.id||e[1]!==t.slug?(s={connectionId:g,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=s):s=e[2];const n=C(s);return S(t.id,"VIRTUAL_MCP",n)}export{b as a,E as b,R as c,y as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./use-infinite-scroll-Bs4b3CKK.js";import{dK as i}from"./index-CPzeLvpv.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aZ as s,r as a,a_ as c,a$ as i}from"./index-
|
|
1
|
+
import{aZ as s,r as a,a_ as c,a$ as i}from"./index-CPzeLvpv.js";function f(r){const n=s({warn:r?.router===void 0}),t=r?.router||n,u=a.useRef(void 0);return c(t.stores.__store,e=>{if(r?.select){if(r.structuralSharing??t.options.defaultStructuralSharing){const o=i(u.current,r.select(e));return u.current=o,o}return r.select(e)}return e})}export{f as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./use-infinite-scroll-Bs4b3CKK.js";import{dK as u,ab as n}from"./index-CPzeLvpv.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,r as F,a as I,m as R,d as V,j as t,K,B as T,t as $}from"./index-
|
|
1
|
+
import{c as B,r as F,a as I,m as R,d as V,j as t,K,B as T,t as $}from"./index-CPzeLvpv.js";import{P as b}from"./index-CPw65aX_.js";import{C as q}from"./collection-table-wrapper-CxCCI34M.js";import{E}from"./empty-state-CrwQiRbh.js";import{S as z}from"./search-input-DMH0FqNh.js";import{A as D}from"./avatar-DT0rqDqr.js";import{B as U}from"./badge-D5s1860l.js";import{u as L}from"./use-debounced-value-C2skJpvP.js";import{a as k}from"./admin-fetch-CCSvjTk1.js";import{f as M}from"./format-time-BnbuEtat.js";import{g as O}from"./get-initials-D-f_fDFw.js";import"./sidebar-DxJ46dNl.js";import"./LayoutLeft-RhfSEkSx.js";import"./use-mobile-8fjZ_ok-.js";import"./X-Cp0AjBA7.js";import"./tooltip-CvQZg4vG.js";import"./table-Bn_rEvE7.js";import"./ArrowUp-CYTVD4i5.js";import"./SearchMd-iOyrzKSR.js";import"./User01-xcnOfGdh.js";import"./differenceInSeconds-NQ4PDo0z.js";function Ne(){const e=B.c(31),[r,P]=F.useState("");let c;e[0]!==r?(c=r.trim(),e[0]=r,e[1]=c):c=e[1];const s=L(c,300),{data:A}=I.useSession(),S=A?.user?.id;let a;e[2]!==s?(a=K.deploymentAdminUsers(s),e[2]=s,e[3]=a):a=e[3];let i;e[4]!==s?(i=()=>{const l=new URLSearchParams({limit:"100"});return s&&l.set("searchValue",s),k(`/api/_admin/users?${l}`)},e[4]=s,e[5]=i):i=e[5];let d;e[6]!==a||e[7]!==i?(d={queryKey:a,queryFn:i},e[6]=a,e[7]=i,e[8]=d):d=e[8];const{data:y,isLoading:v,isError:w}=R(d);let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u={mutationFn:H,onSuccess:G,onError:Y},e[9]=u):u=e[9];const f=V(u);let p;e[10]!==y?.users?(p=y?.users??[],e[10]=y?.users,e[11]=p):p=e[11];const C=p;let h,x,g;e[12]===Symbol.for("react.memo_cache_sentinel")?(h={id:"user",header:"User",render:W,cellClassName:"flex-1 min-w-0"},x={id:"verified",header:"Email",render:Q,cellClassName:"w-28 shrink-0"},g={id:"created",header:"Created",render:J,cellClassName:"w-48 shrink-0"},e[12]=h,e[13]=x,e[14]=g):(h=e[12],x=e[13],g=e[14]);let j;e[15]!==S||e[16]!==f?(j=[h,x,g,{id:"actions",header:"",render:l=>t.jsx(T,{variant:"outline",size:"sm",disabled:l.id===S||f.isPending,onClick:()=>f.mutate(l.id),children:"Impersonate"}),cellClassName:"w-32 shrink-0"}],e[15]=S,e[16]=f,e[17]=j):j=e[17];const _=j;let n;e[18]!==r?(n=t.jsx(z,{value:r,onChange:P,placeholder:"Search users by email or name...",className:"w-full md:w-[375px]"}),e[18]=r,e[19]=n):n=e[19];let o;e[20]!==s||e[21]!==w?(o=w?t.jsx(E,{title:"Failed to load users",description:"Something went wrong. Refresh to try again."}):t.jsx(E,{title:"No users found",description:s?`No users match "${s}"`:"No users yet."}),e[20]=s,e[21]=w,e[22]=o):o=e[22];let m;e[23]!==_||e[24]!==v||e[25]!==o||e[26]!==C?(m=t.jsx(q,{columns:_,data:C,isLoading:v,emptyState:o}),e[23]=_,e[24]=v,e[25]=o,e[26]=C,e[27]=m):m=e[27];let N;return e[28]!==n||e[29]!==m?(N=t.jsx(b,{children:t.jsx(b.Content,{children:t.jsx(b.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[n,m]})})})}),e[28]=n,e[29]=m,e[30]=N):N=e[30],N}function J(e){return t.jsx("span",{className:"text-sm text-foreground",children:M(e.createdAt)})}function Q(e){return e.emailVerified?t.jsx(U,{variant:"outline",className:"text-success border-success/20",children:"Verified"}):t.jsx(U,{variant:"outline",className:"text-muted-foreground",children:"Unverified"})}function W(e){return t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(D,{url:e.image??void 0,fallback:O(e.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:e.name||"Unknown"}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:e.email})]})]})}function Y(e){$.error(e instanceof Error?e.message:"Failed to impersonate user")}function G(){window.location.href="/"}function H(e){return k("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{Ne as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,r as U,j as o,l as J,B as Y}from"./index-CAIYhjul.js";import{w as ct,T as et,f as mt}from"./agent-icon-D18juLx-.js";import{i as dt}from"./ChevronRight-DGKhdwsU.js";import{L as pt}from"./label-DaAsoL9V.js";import{m as nt}from"./automation-runs-C0y-Gi-l.js";import{S as ft}from"./switch-DG2ijYXZ.js";import{T as ut,b as ht,a as gt}from"./tooltip-DBcnpVTx.js";import{V as xt}from"./view-mode-toggle-DBojFra_.js";import"./AlertCircle-C-LWGksh.js";import"./Tool01-Bk7pamHg.js";import"./ArrowUp-BeEo8zxR.js";import"./Settings02-5t6-pGmO.js";import"./Tool02-CngweHED.js";import"./XCircle-2O_4kWp7.js";import"./ArrowUpRight-Cpd1Kvoc.js";import"./TrendUp01-DsSWSiUz.js";import"./ZapSquare-T3uj9o0S.js";import"./ZoomOut-B7mxhvah.js";import"./Users03-CTnD7KhC.js";import"./CheckCircle-D6vue6JR.js";import"./ChevronUp-B2kc02W-.js";import"./ChevronDown-Chms7f47.js";import"./DotsVertical-Bv_Wu1PR.js";import"./Stars02-BHQ6SybJ.js";import"./Copy01-BLPcoB-x.js";import"./Globe01-D8U_-ef0.js";import"./Eye--S6NkM5F.js";import"./FilterLines-CVyIbk7P.js";import"./Star01-DBLmagOx.js";import"./Globe04-Cf7fSPDC.js";import"./SwitchHorizontal01-Dm27fxw8.js";import"./HardDrive-BDXue_9V.js";import"./Image01-BOJVTyLq.js";import"./Key01-DgOZ1Vl-.js";import"./LayoutLeft-uipFY-Sc.js";import"./LinkExternal01-Cq7tHe_6.js";import"./Monitor01-C0kqyHBJ.js";import"./Sun-7RqH2_Dg.js";import"./Package-2_HSkxNk.js";import"./Palette-DUf6RWjx.js";import"./Play-D27HpOrJ.js";import"./Plus-CX4xPpn4.js";import"./SearchLg-EiBSceY9.js";import"./SearchMd-CjaEgvWB.js";import"./Shield01-DxxbOkrj.js";import"./Stars01-D-dD7V12.js";import"./Trash01-Bi1KaIxH.js";import"./Upload01-BWPUocl6.js";import"./User01-s23e9wZl.js";import"./Users01-CNMhmtlD.js";import"./XClose-DSEAQFLe.js";import"./X-CLk-1WTe.js";import"./Zap-BAgOs3IO.js";import"./select-peZlJuYe.js";import"./useInfiniteQuery-BSKFC7YM.js";import"./use-infinite-scroll-C_OzT98l.js";import"./use-connection-DRK2N5z2.js";import"./use-collections-DHkHvLr2.js";import"./use-mcp-client-BRDJsS2i.js";import"./auth-D4yHRD2-.js";import"./use-virtual-mcp-63tB8KYL.js";import"./card-BJLhqcLf.js";import"./sidebar-BjlDvhlo.js";import"./use-mobile-COWtBi3l.js";import"./table-fSAZqdik.js";import"./empty-state-DQOY2xmV.js";import"./use-members-T2DIW2PV.js";import"./use-org-auth-client-BICeQnTF.js";import"./use-clock-tick-r_qU_UzB.js";import"./use-automations-CajzdSeA.js";import"./studio-tools-C0-5Z8k5.js";import"./useSuspenseInfiniteQuery-Cwnl9Xjp.js";import"./avatar-CB-s6LW3.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BHgKL0On.js";import"./file-type-icon-D2keXo94.js";import"./dialog-BFqbrhnG.js";import"./tab-id-BijBBRwE.js";import"./hooks-BSMoXVbD.js";import"./decopilot-sse-pool-D-2tGt-o.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-BzGsRBEi.js";import"./autosend-Pu6JcU1z.js";import"./use-ai-providers-B0J5EZdH.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-lkWlYZO4.js";import"./use-organization-settings-BJBqMmWF.js";import"./monaco-editor-c4RVis_9.js";import"./index-CXCcDBTq.js";import"./index-S3X52veH.js";import"./calendar-Cy0H8dDP.js";import"./shell-layout-CTslVDtx.js";import"./required-auth-layout-CoT_XXkN.js";import"./use-org-sso-Bd_0B726.js";import"./integration-icon-Db96f3jT.js";import"./use-navigate-to-agent-DWAHU44q.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BuQ7pYh_.js";import"./form-CGKisGk6.js";import"./input-Dzav8ivG.js";const bt=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),yt=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Tt=new Date(-864e13),vt=new Date(864e13),jt=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,wt=/\/flags\/multivariate\.ts$/;function Nt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function kt(e){if(!e||typeof e!="object")return null;const{start:t,end:n}=e,r=typeof t=="string",l=typeof n=="string";if(!r&&!l)return null;const s=r?new Date(t):Tt,m=l?new Date(n):vt;return Number.isNaN(s.getTime())||Number.isNaN(m.getTime())||r&&l&&m.getTime()<=s.getTime()?null:{start:s,end:m,openStart:!r,openEnd:!l}}function rt(e,t){if(!e||typeof e!="object")return;const n=e.__resolveType;if(typeof n=="string"){if(bt.has(n)){const r=kt(e);r&&t.push(r);return}if(yt.has(n)){const r=e.matchers;if(Array.isArray(r))for(const l of r)rt(l,t)}}}function _t(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!jt.test(t))return!1;const n=e.variants;return Array.isArray(n)}function Mt(e){if(typeof e=="string"){const a=e.trim();if(a.length===0)return null;try{const i=new URL(a).pathname.split("/").filter(Boolean),d=i[i.length-1];if(d)return decodeURIComponent(d)}catch{}return a.length>80?`${a.slice(0,77)}…`:a}if(!e||typeof e!="object")return null;const t=e,n=t.config,l=t.desktop?.media,s=[t.title,t.name,t.label,t.alt,n?.title,n?.name,n?.typeAlert?.message,l?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const a of s)if(typeof a=="string"&&a.trim().length>0)return a.trim();const m=t.__resolveType;if(typeof m=="string"){const c=(m.split("/").pop()??m).replace(/\.(tsx?|jsx?)$/i,"");if(c.length>0)return c}return null}function Et(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];typeof r=="number"?t.length>0?t[t.length-1]+=`[${r}]`:t.push(`[${r}]`):t.push(r)}return t.join(" · ")}function W(e,t,n,r,l){if(_t(e)){const s=e.variants,m=e.__resolveType,a=wt.test(m)?"":Et(r);s.forEach((c,i)=>{if(!c||typeof c!="object")return;const d=c,p=[];if(rt(d.rule,p),p.length===0)return;const x=Mt(d.value)??(a||n);for(const h of p)l.push({blockKey:t,blockLabel:n,innerPath:a,variantIndex:i,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:x,flagResolveType:m})});for(let c=0;c<s.length;c++){const i=s[c];i&&typeof i=="object"&&W(i.value,t,n,[...r,"variants",c,"value"],l)}return}if(Array.isArray(e)){for(let s=0;s<e.length;s++)W(e[s],t,n,[...r,s],l);return}if(e&&typeof e=="object")for(const[s,m]of Object.entries(e))s!=="__resolveType"&&W(m,t,n,[...r,s],l)}function St(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e))W(r,n,Nt(n),[],t);return t.sort((n,r)=>n.start.getTime()-r.start.getTime())}function At(e){const t=[...new Set(e)].sort(),n=new Map;return t.forEach((r,l)=>{const s=l*137.508%360;n.set(r,{bg:`oklch(0.62 0.14 ${s})`,text:"white",border:`oklch(0.50 0.14 ${s})`})}),n}const Dt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function st(e,t){return e.get(t)??Dt}const $t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ot=["January","February","March","April","May","June","July","August","September","October","November","December"],it=1440*60*1e3;function P(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function at(e){return new Date(e.getFullYear(),e.getMonth(),1)}function F(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function z(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function K(e,t){return Math.round((P(e).getTime()-P(t).getTime())/it)}function Ct(e){const t=(e.getTime()-P(e).getTime())/it;return Math.min(Math.max(t,0),1)}function q(e,t){return K(e,t)+Ct(e)}function Rt(e){const t=z(e,-e.getDay()),n=[];for(let r=0;r<6;r++){const l=[];for(let s=0;s<7;s++)l.push(z(t,r*7+s));n.push(l)}for(;n.length>0&&n[n.length-1].every(r=>r.getMonth()!==e.getMonth());)n.pop();return n}function Lt(e,t){const n=P(e[0]),r=z(n,7),l=n.getTime(),s=r.getTime(),m=[];for(const i of t){const d=P(i.start),p=P(i.end);if(p.getTime()<n.getTime()||d.getTime()>=r.getTime())continue;const u=d.getTime()<n.getTime()?n:d,x=p.getTime()>=r.getTime()?z(r,-1):p,h=K(u,n),g=K(x,u)+1;if(g<=0)continue;const b=Math.max(i.start.getTime(),l),y=Math.min(i.end.getTime(),s),T=q(new Date(b),n),f=Math.max(q(new Date(y),n)-T,0);f<=0||m.push({variant:i,startCol:h,span:g,leftUnits:T,widthUnits:f})}m.sort((i,d)=>i.startCol-d.startCol||d.span-i.span||i.variant.blockKey.localeCompare(d.variant.blockKey));const a=[],c=[];for(const i of m){let d=a.findIndex(p=>p<=i.startCol);d===-1&&(d=a.length,a.push(0)),a[d]=i.startCol+i.span,c.push({...i,lane:d})}return c}const Q=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ot(e){const t=e.openStart?"Always":Q.format(e.start),n=e.openEnd?"Ongoing":Q.format(e.end);return`${t} → ${n}`}function Pt(e){const t=V.c(17),{variant:n}=e;let r;t[0]!==n.blockLabel?(r=o.jsx("div",{className:"font-semibold",children:n.blockLabel}),t[0]=n.blockLabel,t[1]=r):r=t[1];let l;t[2]!==n.innerPath?(l=n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),t[2]=n.innerPath,t[3]=l):l=t[3];let s;t[4]!==n.blockLabel||t[5]!==n.innerPath||t[6]!==n.label?(s=n.label!==n.blockLabel&&n.label!==n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.label}),t[4]=n.blockLabel,t[5]=n.innerPath,t[6]=n.label,t[7]=s):s=t[7];let m;t[8]!==n?(m=Ot(n),t[8]=n,t[9]=m):m=t[9];let a;t[10]!==m?(a=o.jsx("div",{className:"mt-1",children:m}),t[10]=m,t[11]=a):a=t[11];let c;return t[12]!==r||t[13]!==l||t[14]!==s||t[15]!==a?(c=o.jsx(gt,{children:o.jsxs("div",{className:"text-xs",children:[r,l,s,a]})}),t[12]=r,t[13]=l,t[14]=s,t[15]=a,t[16]=c):c=t[16],c}const X=16;function It(e,t){const n=e?"transparent":"#000 0",r=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${n}, #000 ${X}px, #000 calc(100% - ${X}px), ${r})`}function lt(e){const t=V.c(26),{variant:n,color:r,style:l,children:s,fadeStart:m,fadeEnd:a}=e,c=m===void 0?!1:m,i=a===void 0?!1:a;let d;t[0]!==i||t[1]!==c?(d=It(c,i),t[0]=i,t[1]=c,t[2]=d):d=t[2];const p=d;let u;t[3]!==c?(u=c&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=c,t[4]=u):u=t[4];let x;t[5]!==i?(x=i&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=i,t[6]=x):x=t[6];let h;t[7]!==p?(h=p&&{maskImage:p,WebkitMaskImage:p},t[7]=p,t[8]=h):h=t[8];let g;t[9]!==r.bg||t[10]!==r.text||t[11]!==l||t[12]!==u||t[13]!==x||t[14]!==h?(g={background:r.bg,color:r.text,borderRadius:4,...u,...x,...h,...l},t[9]=r.bg,t[10]=r.text,t[11]=l,t[12]=u,t[13]=x,t[14]=h,t[15]=g):g=t[15];let b;t[16]!==s?(b=o.jsx("span",{className:"truncate",children:s}),t[16]=s,t[17]=b):b=t[17];let y;t[18]!==g||t[19]!==b?(y=o.jsx(ut,{asChild:!0,children:o.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:g,children:b})}),t[18]=g,t[19]=b,t[20]=y):y=t[20];let T;t[21]!==n?(T=o.jsx(Pt,{variant:n}),t[21]=n,t[22]=T):T=t[22];let f;return t[23]!==T||t[24]!==y?(f=o.jsxs(ht,{children:[y,T]}),t[23]=T,t[24]=y,t[25]=f):f=t[25],f}function Kn(e){const t=V.c(49),{decofile:n}=e,[r,l]=U.useState("calendar"),[s,m]=U.useState(Bt),[a,c]=U.useState(!1);let i,d,p;if(t[0]!==n||t[1]!==a){const S=St(n);i=S.filter(Ht).length,p=a?S:S.filter(Vt),d=At(p.map(Ft)),t[0]=n,t[1]=a,t[2]=i,t[3]=d,t[4]=p}else i=t[2],d=t[3],p=t[4];const u=d;let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=()=>m(at(new Date)),t[5]=x):x=t[5];const h=x;let g;t[6]!==r?(g=()=>m(S=>r==="calendar"?F(S,-1):F(S,-3)),t[6]=r,t[7]=g):g=t[7];const b=g;let y;t[8]!==r?(y=()=>m(S=>r==="calendar"?F(S,1):F(S,3)),t[8]=r,t[9]=y):y=t[9];const T=y;let f;t[10]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(Y,{variant:"outline",size:"sm",onClick:h,children:"Today"}),t[10]=f):f=t[10];let N;t[11]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx(ct,{size:16}),t[11]=N):N=t[11];let k;t[12]!==b?(k=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:b,"aria-label":"Previous",children:N}),t[12]=b,t[13]=k):k=t[13];let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx(dt,{size:16}),t[14]=_):_=t[14];let M;t[15]!==T?(M=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:T,"aria-label":"Next",children:_}),t[15]=T,t[16]=M):M=t[16];const A=ot[s.getMonth()];let E;t[17]!==s?(E=s.getFullYear(),t[17]=s,t[18]=E):E=t[18];let v;t[19]!==A||t[20]!==E?(v=o.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[A," ",E]}),t[19]=A,t[20]=E,t[21]=v):v=t[21];let j;t[22]!==v||t[23]!==k||t[24]!==M?(j=o.jsxs("div",{className:"flex items-center gap-2",children:[f,k,M,v]}),t[22]=v,t[23]=k,t[24]=M,t[25]=j):j=t[25];let D;t[26]!==i||t[27]!==a?(D=i>0&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(ft,{id:"show-ongoing",checked:a,onCheckedChange:c}),o.jsxs(pt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:["Show ongoing (",i,")"]})]}),t[26]=i,t[27]=a,t[28]=D):D=t[28];let L;t[29]===Symbol.for("react.memo_cache_sentinel")?(L={value:"calendar",icon:o.jsx(et,{}),label:"Calendar"},t[29]=L):L=t[29];let I;t[30]===Symbol.for("react.memo_cache_sentinel")?(I=[L,{value:"timeline",icon:o.jsx(mt,{}),label:"Timeline"}],t[30]=I):I=t[30];let w;t[31]!==r?(w=o.jsx(xt,{value:r,onValueChange:l,options:I}),t[31]=r,t[32]=w):w=t[32];let R;t[33]!==D||t[34]!==w?(R=o.jsxs("div",{className:"flex items-center gap-4",children:[D,w]}),t[33]=D,t[34]=w,t[35]=R):R=t[35];let $;t[36]!==j||t[37]!==R?($=o.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,R]}),t[36]=j,t[37]=R,t[38]=$):$=t[38];let C;t[39]!==u||t[40]!==s||t[41]!==i||t[42]!==a||t[43]!==p||t[44]!==r?(C=p.length===0?o.jsx(Wt,{hiddenOngoing:a?0:i}):r==="calendar"?o.jsx(Ut,{monthStart:s,variants:p,colorMap:u}):o.jsx(Jt,{monthStart:s,variants:p,colorMap:u}),t[39]=u,t[40]=s,t[41]=i,t[42]=a,t[43]=p,t[44]=r,t[45]=C):C=t[45];let O;return t[46]!==$||t[47]!==C?(O=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[$,C]}),t[46]=$,t[47]=C,t[48]=O):O=t[48],O}function Ft(e){return e.blockKey}function Vt(e){return!e.openEnd}function Ht(e){return e.openEnd}function Bt(){return at(new Date)}function Wt(e){const t=V.c(3),{hiddenOngoing:n}=e,r=n===void 0?0:n;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(et,{size:24,className:"text-muted-foreground/60"}),t[0]=l):l=t[0];let s;return t[1]!==r?(s=o.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[l,r>0?o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No dated variants in view."}),o.jsxs("div",{className:"text-xs text-muted-foreground/80",children:[r," ongoing"," ",r===1?"variant is":"variants are"," hidden — enable “Show ongoing” to view."]})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No scheduled variants."}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]})]}),t[1]=r,t[2]=s):s=t[2],s}const G=20,Z=2,tt=28,zt=6;function Ut(e){const t=V.c(17),{monthStart:n,variants:r,colorMap:l}=e;let s,m,a,c,i;if(t[0]!==l||t[1]!==n||t[2]!==r){const u=Rt(n),x=P(new Date);s=nt,i="flex-1 min-h-0",m="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:$t.map(Gt)}),t[8]=a):a=t[8],c=u.map((h,g)=>{const b=Lt(h,r),y=b.reduce(Yt,0),T=tt+y*(G+Z)+8;return o.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((f,N)=>{const k=f.getMonth()===n.getMonth(),_=f.getTime()===x.getTime();return o.jsx("div",{className:J("border-r last:border-r-0 px-2 pt-1.5 text-xs",k?"bg-background":"bg-muted/30 text-muted-foreground"),children:o.jsx("span",{className:J("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",_&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},N)}),b.map((f,N)=>{const k=st(l,f.variant.blockKey),_=tt+f.lane*(G+Z),M=f.leftUnits/7*100,A=f.widthUnits/7*100,E=f.variant.openStart&&g===0,v=f.variant.openEnd&&g===u.length-1;return o.jsxs(lt,{variant:f.variant,color:k,fadeStart:E,fadeEnd:v,style:{top:_,left:`calc(${M}% + 2px)`,width:`calc(${A}% - 4px)`,minWidth:zt,height:G},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&o.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${g}-${N}`)})]},g)}),t[0]=l,t[1]=n,t[2]=r,t[3]=s,t[4]=m,t[5]=a,t[6]=c,t[7]=i}else s=t[3],m=t[4],a=t[5],c=t[6],i=t[7];let d;t[9]!==m||t[10]!==a||t[11]!==c?(d=o.jsxs("div",{className:m,children:[a,c]}),t[9]=m,t[10]=a,t[11]=c,t[12]=d):d=t[12];let p;return t[13]!==s||t[14]!==i||t[15]!==d?(p=o.jsx(s,{className:i,children:d}),t[13]=s,t[14]=i,t[15]=d,t[16]=p):p=t[16],p}function Yt(e,t){return Math.max(e,t.lane+1)}function Gt(e){return o.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const B=4,Kt=32,H=240;function Jt(e){const t=V.c(27),{monthStart:n,variants:r,colorMap:l}=e,s=n;let m,a,c,i,d,p;if(t[0]!==l||t[1]!==n||t[2]!==s||t[3]!==r){const h=F(n,B),g=new Date,b=new Map;for(const v of r){const j=b.get(v.blockKey)??[];j.push(v),b.set(v.blockKey,j)}const y=Array.from(b.entries()).sort(Xt),T=h.getTime()-s.getTime(),f=v=>(Math.max(s.getTime(),Math.min(h.getTime(),v.getTime()))-s.getTime())/T*100;let N;t[10]!==s?(N=(v,j)=>F(s,j),t[10]=s,t[11]=N):N=t[11];const k=Array.from({length:B},N),_=g.getTime()>=s.getTime()&&g.getTime()<=h.getTime()?f(g):null;m=nt,p="flex-1 min-h-0",a="min-w-[900px] relative";let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:{width:H},children:"Variant / Block"}),t[12]=M):M=t[12];let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A={gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},t[13]=A):A=t[13];const E=k.map(Qt);t[14]!==E?(c=o.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[M,o.jsx("div",{className:"flex-1 grid",style:A,children:E})]}),t[14]=E,t[15]=c):c=t[15],t[16]!==_?(i=_!==null&&o.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${H}px + (100% - ${H}px) * ${_} / 100)`},children:o.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:"Today"})}),t[16]=_,t[17]=i):i=t[17],d=y.map(v=>{const[j,D]=v,L=st(l,j),I=D[0]?.blockLabel??j;return o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:o.jsx("div",{className:"px-3 truncate",style:{width:H},children:I})}),D.map((w,R)=>o.jsxs("div",{className:"flex border-b items-center",style:{height:Kt},children:[o.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:H},children:[o.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:L.bg}}),o.jsx("span",{className:"truncate text-foreground/80",children:w.label})]}),o.jsxs("div",{className:"relative flex-1 h-full",children:[o.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},children:k.map(qt)}),(()=>{const $=Math.max(w.start.getTime(),s.getTime()),C=Math.min(w.end.getTime(),h.getTime());if(C<=$)return null;const O=f(new Date($)),S=f(new Date(C))-O;return o.jsx(lt,{variant:w,color:L,fadeStart:w.openStart,fadeEnd:w.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${S}% - 2px)`,height:22},children:w.label})})()]})]},R))]},j)}),t[0]=l,t[1]=n,t[2]=s,t[3]=r,t[4]=m,t[5]=a,t[6]=c,t[7]=i,t[8]=d,t[9]=p}else m=t[4],a=t[5],c=t[6],i=t[7],d=t[8],p=t[9];let u;t[18]!==a||t[19]!==c||t[20]!==i||t[21]!==d?(u=o.jsxs("div",{className:a,children:[c,i,d]}),t[18]=a,t[19]=c,t[20]=i,t[21]=d,t[22]=u):u=t[22];let x;return t[23]!==m||t[24]!==p||t[25]!==u?(x=o.jsx(m,{className:p,children:u}),t[23]=m,t[24]=p,t[25]=u,t[26]=x):x=t[26],x}function qt(e,t){return o.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function Qt(e,t){return o.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ot[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Xt(e,t){return e[0].localeCompare(t[0])}export{Kn as VariantCalendar};
|
|
1
|
+
import{c as V,r as U,j as o,l as J,B as Y}from"./index-CPzeLvpv.js";import{w as ct,T as et,f as mt}from"./agent-icon-CiTl48Lp.js";import{i as dt}from"./ChevronRight-CHR9w0WV.js";import{L as pt}from"./label-Bgzv3znS.js";import{m as nt}from"./automation-runs-BenCurrg.js";import{S as ft}from"./switch-D3PUOhLK.js";import{T as ut,b as ht,a as gt}from"./tooltip-CvQZg4vG.js";import{V as xt}from"./view-mode-toggle-Cisl2Dwz.js";import"./AlertCircle-BltJ6Mxy.js";import"./Tool01-BKz30703.js";import"./ArrowUp-CYTVD4i5.js";import"./Settings02-DO3c0hUy.js";import"./Tool02-DF4wEV0L.js";import"./XCircle-BqELyRTX.js";import"./ArrowUpRight-KZXrl8RO.js";import"./TrendUp01-CdPwIZPG.js";import"./ZapSquare-7Fs9X9Yr.js";import"./ZoomOut-BZTnbhP5.js";import"./Users03-CWA_havj.js";import"./CheckCircle-DPOzFR6K.js";import"./ChevronUp-CB-gUWaQ.js";import"./ChevronDown-C45MJhf-.js";import"./DotsVertical-DSgUvQkr.js";import"./Stars02-B_knJhjE.js";import"./Copy01-DZXV6WTp.js";import"./Globe01-wTQLyGwk.js";import"./Eye-1BqSeJXv.js";import"./FilterLines-Cwm6xDCE.js";import"./Star01-DvzIremA.js";import"./Globe04-pANVCUtg.js";import"./SwitchHorizontal01-8mukXik8.js";import"./HardDrive-krN3qYvB.js";import"./Image01-CaxE9zUG.js";import"./Key01-B9xdnc8x.js";import"./LayoutLeft-RhfSEkSx.js";import"./LinkExternal01-CGTGYK0h.js";import"./Monitor01-1VmWHG0k.js";import"./Sun-NA0W5K4z.js";import"./Package-CBorSvDN.js";import"./Palette-DLXcT5Ip.js";import"./Play-Z-EfnT2J.js";import"./Plus-ej4sfxWI.js";import"./SearchLg-COXRq0kg.js";import"./SearchMd-iOyrzKSR.js";import"./Shield01-BVDyEJiQ.js";import"./Stars01-_V87SU19.js";import"./Trash01-DXhAjasB.js";import"./Upload01-CMdpXxUq.js";import"./User01-xcnOfGdh.js";import"./Users01-DMgMrzjc.js";import"./XClose-D0hPWJkK.js";import"./X-Cp0AjBA7.js";import"./Zap-B6vin2-a.js";import"./select-F9_kjFJU.js";import"./useInfiniteQuery-gX0RVYjX.js";import"./use-infinite-scroll-Bs4b3CKK.js";import"./use-connection-BML2TUoy.js";import"./use-collections-DYdGIg5l.js";import"./use-mcp-client-Cr0wl_bf.js";import"./auth-XnxxEwr5.js";import"./use-virtual-mcp-TVYmV-RO.js";import"./card-CVF2Z9or.js";import"./sidebar-DxJ46dNl.js";import"./use-mobile-8fjZ_ok-.js";import"./table-Bn_rEvE7.js";import"./empty-state-CrwQiRbh.js";import"./use-members-DBIzFrsq.js";import"./use-org-auth-client-C-dIfIJP.js";import"./use-clock-tick-hXpFWi6j.js";import"./use-automations-BvRj5P6v.js";import"./studio-tools-BiScRaZ9.js";import"./useSuspenseInfiniteQuery-Bjo2O8qN.js";import"./avatar-DT0rqDqr.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-B5uGqyuR.js";import"./file-type-icon-CjtW_EKu.js";import"./dialog-Bj2fsNVF.js";import"./tab-id-BijBBRwE.js";import"./hooks-DoJbaPOb.js";import"./decopilot-sse-pool-fzCZV2FF.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-DScS8psZ.js";import"./autosend-CRJdeC5_.js";import"./use-ai-providers-D03RDptV.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-QTK5Zo8O.js";import"./use-organization-settings-CwpCXpKR.js";import"./monaco-editor-DtQbtFXR.js";import"./index-ChwM9l4E.js";import"./index-D2D4iP55.js";import"./calendar-DiYxbOe7.js";import"./shell-layout-IGy4w-JV.js";import"./required-auth-layout-DJoWkQKd.js";import"./use-org-sso-HcIGfZK6.js";import"./integration-icon-NExukTTe.js";import"./use-navigate-to-agent-CnqkxH4A.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CpBmNFZZ.js";import"./form-B3ss7zyz.js";import"./input-CFDlaaLx.js";const bt=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),yt=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Tt=new Date(-864e13),vt=new Date(864e13),jt=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,wt=/\/flags\/multivariate\.ts$/;function Nt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function kt(e){if(!e||typeof e!="object")return null;const{start:t,end:n}=e,r=typeof t=="string",l=typeof n=="string";if(!r&&!l)return null;const s=r?new Date(t):Tt,m=l?new Date(n):vt;return Number.isNaN(s.getTime())||Number.isNaN(m.getTime())||r&&l&&m.getTime()<=s.getTime()?null:{start:s,end:m,openStart:!r,openEnd:!l}}function rt(e,t){if(!e||typeof e!="object")return;const n=e.__resolveType;if(typeof n=="string"){if(bt.has(n)){const r=kt(e);r&&t.push(r);return}if(yt.has(n)){const r=e.matchers;if(Array.isArray(r))for(const l of r)rt(l,t)}}}function _t(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!jt.test(t))return!1;const n=e.variants;return Array.isArray(n)}function Mt(e){if(typeof e=="string"){const a=e.trim();if(a.length===0)return null;try{const i=new URL(a).pathname.split("/").filter(Boolean),d=i[i.length-1];if(d)return decodeURIComponent(d)}catch{}return a.length>80?`${a.slice(0,77)}…`:a}if(!e||typeof e!="object")return null;const t=e,n=t.config,l=t.desktop?.media,s=[t.title,t.name,t.label,t.alt,n?.title,n?.name,n?.typeAlert?.message,l?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const a of s)if(typeof a=="string"&&a.trim().length>0)return a.trim();const m=t.__resolveType;if(typeof m=="string"){const c=(m.split("/").pop()??m).replace(/\.(tsx?|jsx?)$/i,"");if(c.length>0)return c}return null}function Et(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];typeof r=="number"?t.length>0?t[t.length-1]+=`[${r}]`:t.push(`[${r}]`):t.push(r)}return t.join(" · ")}function W(e,t,n,r,l){if(_t(e)){const s=e.variants,m=e.__resolveType,a=wt.test(m)?"":Et(r);s.forEach((c,i)=>{if(!c||typeof c!="object")return;const d=c,p=[];if(rt(d.rule,p),p.length===0)return;const x=Mt(d.value)??(a||n);for(const h of p)l.push({blockKey:t,blockLabel:n,innerPath:a,variantIndex:i,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:x,flagResolveType:m})});for(let c=0;c<s.length;c++){const i=s[c];i&&typeof i=="object"&&W(i.value,t,n,[...r,"variants",c,"value"],l)}return}if(Array.isArray(e)){for(let s=0;s<e.length;s++)W(e[s],t,n,[...r,s],l);return}if(e&&typeof e=="object")for(const[s,m]of Object.entries(e))s!=="__resolveType"&&W(m,t,n,[...r,s],l)}function St(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e))W(r,n,Nt(n),[],t);return t.sort((n,r)=>n.start.getTime()-r.start.getTime())}function At(e){const t=[...new Set(e)].sort(),n=new Map;return t.forEach((r,l)=>{const s=l*137.508%360;n.set(r,{bg:`oklch(0.62 0.14 ${s})`,text:"white",border:`oklch(0.50 0.14 ${s})`})}),n}const Dt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function st(e,t){return e.get(t)??Dt}const $t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ot=["January","February","March","April","May","June","July","August","September","October","November","December"],it=1440*60*1e3;function P(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function at(e){return new Date(e.getFullYear(),e.getMonth(),1)}function F(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function z(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function K(e,t){return Math.round((P(e).getTime()-P(t).getTime())/it)}function Ct(e){const t=(e.getTime()-P(e).getTime())/it;return Math.min(Math.max(t,0),1)}function q(e,t){return K(e,t)+Ct(e)}function Rt(e){const t=z(e,-e.getDay()),n=[];for(let r=0;r<6;r++){const l=[];for(let s=0;s<7;s++)l.push(z(t,r*7+s));n.push(l)}for(;n.length>0&&n[n.length-1].every(r=>r.getMonth()!==e.getMonth());)n.pop();return n}function Lt(e,t){const n=P(e[0]),r=z(n,7),l=n.getTime(),s=r.getTime(),m=[];for(const i of t){const d=P(i.start),p=P(i.end);if(p.getTime()<n.getTime()||d.getTime()>=r.getTime())continue;const u=d.getTime()<n.getTime()?n:d,x=p.getTime()>=r.getTime()?z(r,-1):p,h=K(u,n),g=K(x,u)+1;if(g<=0)continue;const b=Math.max(i.start.getTime(),l),y=Math.min(i.end.getTime(),s),T=q(new Date(b),n),f=Math.max(q(new Date(y),n)-T,0);f<=0||m.push({variant:i,startCol:h,span:g,leftUnits:T,widthUnits:f})}m.sort((i,d)=>i.startCol-d.startCol||d.span-i.span||i.variant.blockKey.localeCompare(d.variant.blockKey));const a=[],c=[];for(const i of m){let d=a.findIndex(p=>p<=i.startCol);d===-1&&(d=a.length,a.push(0)),a[d]=i.startCol+i.span,c.push({...i,lane:d})}return c}const Q=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ot(e){const t=e.openStart?"Always":Q.format(e.start),n=e.openEnd?"Ongoing":Q.format(e.end);return`${t} → ${n}`}function Pt(e){const t=V.c(17),{variant:n}=e;let r;t[0]!==n.blockLabel?(r=o.jsx("div",{className:"font-semibold",children:n.blockLabel}),t[0]=n.blockLabel,t[1]=r):r=t[1];let l;t[2]!==n.innerPath?(l=n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),t[2]=n.innerPath,t[3]=l):l=t[3];let s;t[4]!==n.blockLabel||t[5]!==n.innerPath||t[6]!==n.label?(s=n.label!==n.blockLabel&&n.label!==n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.label}),t[4]=n.blockLabel,t[5]=n.innerPath,t[6]=n.label,t[7]=s):s=t[7];let m;t[8]!==n?(m=Ot(n),t[8]=n,t[9]=m):m=t[9];let a;t[10]!==m?(a=o.jsx("div",{className:"mt-1",children:m}),t[10]=m,t[11]=a):a=t[11];let c;return t[12]!==r||t[13]!==l||t[14]!==s||t[15]!==a?(c=o.jsx(gt,{children:o.jsxs("div",{className:"text-xs",children:[r,l,s,a]})}),t[12]=r,t[13]=l,t[14]=s,t[15]=a,t[16]=c):c=t[16],c}const X=16;function It(e,t){const n=e?"transparent":"#000 0",r=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${n}, #000 ${X}px, #000 calc(100% - ${X}px), ${r})`}function lt(e){const t=V.c(26),{variant:n,color:r,style:l,children:s,fadeStart:m,fadeEnd:a}=e,c=m===void 0?!1:m,i=a===void 0?!1:a;let d;t[0]!==i||t[1]!==c?(d=It(c,i),t[0]=i,t[1]=c,t[2]=d):d=t[2];const p=d;let u;t[3]!==c?(u=c&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=c,t[4]=u):u=t[4];let x;t[5]!==i?(x=i&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=i,t[6]=x):x=t[6];let h;t[7]!==p?(h=p&&{maskImage:p,WebkitMaskImage:p},t[7]=p,t[8]=h):h=t[8];let g;t[9]!==r.bg||t[10]!==r.text||t[11]!==l||t[12]!==u||t[13]!==x||t[14]!==h?(g={background:r.bg,color:r.text,borderRadius:4,...u,...x,...h,...l},t[9]=r.bg,t[10]=r.text,t[11]=l,t[12]=u,t[13]=x,t[14]=h,t[15]=g):g=t[15];let b;t[16]!==s?(b=o.jsx("span",{className:"truncate",children:s}),t[16]=s,t[17]=b):b=t[17];let y;t[18]!==g||t[19]!==b?(y=o.jsx(ut,{asChild:!0,children:o.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:g,children:b})}),t[18]=g,t[19]=b,t[20]=y):y=t[20];let T;t[21]!==n?(T=o.jsx(Pt,{variant:n}),t[21]=n,t[22]=T):T=t[22];let f;return t[23]!==T||t[24]!==y?(f=o.jsxs(ht,{children:[y,T]}),t[23]=T,t[24]=y,t[25]=f):f=t[25],f}function Kn(e){const t=V.c(49),{decofile:n}=e,[r,l]=U.useState("calendar"),[s,m]=U.useState(Bt),[a,c]=U.useState(!1);let i,d,p;if(t[0]!==n||t[1]!==a){const S=St(n);i=S.filter(Ht).length,p=a?S:S.filter(Vt),d=At(p.map(Ft)),t[0]=n,t[1]=a,t[2]=i,t[3]=d,t[4]=p}else i=t[2],d=t[3],p=t[4];const u=d;let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=()=>m(at(new Date)),t[5]=x):x=t[5];const h=x;let g;t[6]!==r?(g=()=>m(S=>r==="calendar"?F(S,-1):F(S,-3)),t[6]=r,t[7]=g):g=t[7];const b=g;let y;t[8]!==r?(y=()=>m(S=>r==="calendar"?F(S,1):F(S,3)),t[8]=r,t[9]=y):y=t[9];const T=y;let f;t[10]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(Y,{variant:"outline",size:"sm",onClick:h,children:"Today"}),t[10]=f):f=t[10];let N;t[11]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx(ct,{size:16}),t[11]=N):N=t[11];let k;t[12]!==b?(k=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:b,"aria-label":"Previous",children:N}),t[12]=b,t[13]=k):k=t[13];let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx(dt,{size:16}),t[14]=_):_=t[14];let M;t[15]!==T?(M=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:T,"aria-label":"Next",children:_}),t[15]=T,t[16]=M):M=t[16];const A=ot[s.getMonth()];let E;t[17]!==s?(E=s.getFullYear(),t[17]=s,t[18]=E):E=t[18];let v;t[19]!==A||t[20]!==E?(v=o.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[A," ",E]}),t[19]=A,t[20]=E,t[21]=v):v=t[21];let j;t[22]!==v||t[23]!==k||t[24]!==M?(j=o.jsxs("div",{className:"flex items-center gap-2",children:[f,k,M,v]}),t[22]=v,t[23]=k,t[24]=M,t[25]=j):j=t[25];let D;t[26]!==i||t[27]!==a?(D=i>0&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(ft,{id:"show-ongoing",checked:a,onCheckedChange:c}),o.jsxs(pt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:["Show ongoing (",i,")"]})]}),t[26]=i,t[27]=a,t[28]=D):D=t[28];let L;t[29]===Symbol.for("react.memo_cache_sentinel")?(L={value:"calendar",icon:o.jsx(et,{}),label:"Calendar"},t[29]=L):L=t[29];let I;t[30]===Symbol.for("react.memo_cache_sentinel")?(I=[L,{value:"timeline",icon:o.jsx(mt,{}),label:"Timeline"}],t[30]=I):I=t[30];let w;t[31]!==r?(w=o.jsx(xt,{value:r,onValueChange:l,options:I}),t[31]=r,t[32]=w):w=t[32];let R;t[33]!==D||t[34]!==w?(R=o.jsxs("div",{className:"flex items-center gap-4",children:[D,w]}),t[33]=D,t[34]=w,t[35]=R):R=t[35];let $;t[36]!==j||t[37]!==R?($=o.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,R]}),t[36]=j,t[37]=R,t[38]=$):$=t[38];let C;t[39]!==u||t[40]!==s||t[41]!==i||t[42]!==a||t[43]!==p||t[44]!==r?(C=p.length===0?o.jsx(Wt,{hiddenOngoing:a?0:i}):r==="calendar"?o.jsx(Ut,{monthStart:s,variants:p,colorMap:u}):o.jsx(Jt,{monthStart:s,variants:p,colorMap:u}),t[39]=u,t[40]=s,t[41]=i,t[42]=a,t[43]=p,t[44]=r,t[45]=C):C=t[45];let O;return t[46]!==$||t[47]!==C?(O=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[$,C]}),t[46]=$,t[47]=C,t[48]=O):O=t[48],O}function Ft(e){return e.blockKey}function Vt(e){return!e.openEnd}function Ht(e){return e.openEnd}function Bt(){return at(new Date)}function Wt(e){const t=V.c(3),{hiddenOngoing:n}=e,r=n===void 0?0:n;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(et,{size:24,className:"text-muted-foreground/60"}),t[0]=l):l=t[0];let s;return t[1]!==r?(s=o.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[l,r>0?o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No dated variants in view."}),o.jsxs("div",{className:"text-xs text-muted-foreground/80",children:[r," ongoing"," ",r===1?"variant is":"variants are"," hidden — enable “Show ongoing” to view."]})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No scheduled variants."}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]})]}),t[1]=r,t[2]=s):s=t[2],s}const G=20,Z=2,tt=28,zt=6;function Ut(e){const t=V.c(17),{monthStart:n,variants:r,colorMap:l}=e;let s,m,a,c,i;if(t[0]!==l||t[1]!==n||t[2]!==r){const u=Rt(n),x=P(new Date);s=nt,i="flex-1 min-h-0",m="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:$t.map(Gt)}),t[8]=a):a=t[8],c=u.map((h,g)=>{const b=Lt(h,r),y=b.reduce(Yt,0),T=tt+y*(G+Z)+8;return o.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((f,N)=>{const k=f.getMonth()===n.getMonth(),_=f.getTime()===x.getTime();return o.jsx("div",{className:J("border-r last:border-r-0 px-2 pt-1.5 text-xs",k?"bg-background":"bg-muted/30 text-muted-foreground"),children:o.jsx("span",{className:J("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",_&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},N)}),b.map((f,N)=>{const k=st(l,f.variant.blockKey),_=tt+f.lane*(G+Z),M=f.leftUnits/7*100,A=f.widthUnits/7*100,E=f.variant.openStart&&g===0,v=f.variant.openEnd&&g===u.length-1;return o.jsxs(lt,{variant:f.variant,color:k,fadeStart:E,fadeEnd:v,style:{top:_,left:`calc(${M}% + 2px)`,width:`calc(${A}% - 4px)`,minWidth:zt,height:G},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&o.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${g}-${N}`)})]},g)}),t[0]=l,t[1]=n,t[2]=r,t[3]=s,t[4]=m,t[5]=a,t[6]=c,t[7]=i}else s=t[3],m=t[4],a=t[5],c=t[6],i=t[7];let d;t[9]!==m||t[10]!==a||t[11]!==c?(d=o.jsxs("div",{className:m,children:[a,c]}),t[9]=m,t[10]=a,t[11]=c,t[12]=d):d=t[12];let p;return t[13]!==s||t[14]!==i||t[15]!==d?(p=o.jsx(s,{className:i,children:d}),t[13]=s,t[14]=i,t[15]=d,t[16]=p):p=t[16],p}function Yt(e,t){return Math.max(e,t.lane+1)}function Gt(e){return o.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const B=4,Kt=32,H=240;function Jt(e){const t=V.c(27),{monthStart:n,variants:r,colorMap:l}=e,s=n;let m,a,c,i,d,p;if(t[0]!==l||t[1]!==n||t[2]!==s||t[3]!==r){const h=F(n,B),g=new Date,b=new Map;for(const v of r){const j=b.get(v.blockKey)??[];j.push(v),b.set(v.blockKey,j)}const y=Array.from(b.entries()).sort(Xt),T=h.getTime()-s.getTime(),f=v=>(Math.max(s.getTime(),Math.min(h.getTime(),v.getTime()))-s.getTime())/T*100;let N;t[10]!==s?(N=(v,j)=>F(s,j),t[10]=s,t[11]=N):N=t[11];const k=Array.from({length:B},N),_=g.getTime()>=s.getTime()&&g.getTime()<=h.getTime()?f(g):null;m=nt,p="flex-1 min-h-0",a="min-w-[900px] relative";let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:{width:H},children:"Variant / Block"}),t[12]=M):M=t[12];let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A={gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},t[13]=A):A=t[13];const E=k.map(Qt);t[14]!==E?(c=o.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[M,o.jsx("div",{className:"flex-1 grid",style:A,children:E})]}),t[14]=E,t[15]=c):c=t[15],t[16]!==_?(i=_!==null&&o.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${H}px + (100% - ${H}px) * ${_} / 100)`},children:o.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:"Today"})}),t[16]=_,t[17]=i):i=t[17],d=y.map(v=>{const[j,D]=v,L=st(l,j),I=D[0]?.blockLabel??j;return o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:o.jsx("div",{className:"px-3 truncate",style:{width:H},children:I})}),D.map((w,R)=>o.jsxs("div",{className:"flex border-b items-center",style:{height:Kt},children:[o.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:H},children:[o.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:L.bg}}),o.jsx("span",{className:"truncate text-foreground/80",children:w.label})]}),o.jsxs("div",{className:"relative flex-1 h-full",children:[o.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},children:k.map(qt)}),(()=>{const $=Math.max(w.start.getTime(),s.getTime()),C=Math.min(w.end.getTime(),h.getTime());if(C<=$)return null;const O=f(new Date($)),S=f(new Date(C))-O;return o.jsx(lt,{variant:w,color:L,fadeStart:w.openStart,fadeEnd:w.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${S}% - 2px)`,height:22},children:w.label})})()]})]},R))]},j)}),t[0]=l,t[1]=n,t[2]=s,t[3]=r,t[4]=m,t[5]=a,t[6]=c,t[7]=i,t[8]=d,t[9]=p}else m=t[4],a=t[5],c=t[6],i=t[7],d=t[8],p=t[9];let u;t[18]!==a||t[19]!==c||t[20]!==i||t[21]!==d?(u=o.jsxs("div",{className:a,children:[c,i,d]}),t[18]=a,t[19]=c,t[20]=i,t[21]=d,t[22]=u):u=t[22];let x;return t[23]!==m||t[24]!==p||t[25]!==u?(x=o.jsx(m,{className:p,children:u}),t[23]=m,t[24]=p,t[25]=u,t[26]=x):x=t[26],x}function qt(e,t){return o.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function Qt(e,t){return o.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ot[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Xt(e,t){return e[0].localeCompare(t[0])}export{Kn as VariantCalendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,r as T,l as f,j as i}from"./index-
|
|
1
|
+
import{c as $,r as T,l as f,j as i}from"./index-CPzeLvpv.js";import{b as k,T as I,a as P}from"./tooltip-CvQZg4vG.js";const M={sm:{button:"size-7",buttonWithLabel:"h-7",icon:"size-4"},md:{button:"size-9",buttonWithLabel:"h-9",icon:"size-5"},lg:{button:"size-12",buttonWithLabel:"h-12",icon:"size-6"}};function B(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:C,fullWidth:L,className:z}=E,_=C===void 0?"sm":C,b=L===void 0?!1:L;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const R=T.useRef(h);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},t[1]=x):x=t[1];const[d,S]=T.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),m=R.current[e];m&&S({left:m.offsetLeft,width:m.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),T.useEffect(g,p);const n=M[_];let l;t[6]!==z?(l=f("relative flex gap-0 bg-muted rounded-lg",z),t[6]=z,t[7]=l):l=t[7];let a;t[8]!==n||t[9]!==b||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,m)=>{const j=i.jsxs("button",{ref:V=>{R.current[m]=V},type:"button",onClick:()=>y(e.value),className:f("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",b?"flex-1 h-12 px-4":e.label?f(n.buttonWithLabel,"px-3"):n.button),children:[i.jsx("span",{className:f("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",n.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:f("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=n,t[9]=b,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=b?"h-12":n.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==l||t[25]!==a?(v=i.jsxs("div",{className:l,children:[a,u]}),t[23]=u,t[24]=l,t[25]=a,t[26]=v):v=t[26],v}export{B as V};
|
package/dist/client/index.html
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
57
57
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
58
58
|
<meta name="apple-mobile-web-app-title" content="deco Studio" />
|
|
59
|
-
<script type="module" crossorigin src="/assets/index-
|
|
59
|
+
<script type="module" crossorigin src="/assets/index-CPzeLvpv.js"></script>
|
|
60
60
|
<link rel="stylesheet" crossorigin href="/assets/index-C-1vh7Fd.css">
|
|
61
61
|
</head>
|
|
62
62
|
<body>
|