decocms 3.83.0 → 3.83.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-CqXnKI3D.js → AlertCircle-DM0HzopE.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-D_A_c-WP.js → ArrowUpRight-CoxAwUHc.js} +1 -1
- package/dist/client/assets/{CheckCircle-B6_BlhWA.js → CheckCircle-D5UuMIIH.js} +1 -1
- package/dist/client/assets/{ChevronDown-CsJyvcQs.js → ChevronDown-CW3qqv2x.js} +1 -1
- package/dist/client/assets/{ChevronLeft-cwkPjMhb.js → ChevronLeft-LzGuMB2U.js} +1 -1
- package/dist/client/assets/{ChevronRight-DbmfCIOT.js → ChevronRight-B0GGkNIH.js} +1 -1
- package/dist/client/assets/{ChevronUp-DTH787oJ.js → ChevronUp-DZQVuDwV.js} +1 -1
- package/dist/client/assets/{DotsVertical-DXADESRu.js → DotsVertical-CGmC-AuM.js} +1 -1
- package/dist/client/assets/{Eye-Cd9WdjRO.js → Eye-DRB5PFSd.js} +1 -1
- package/dist/client/assets/{FilterLines-DDE5Z7pT.js → FilterLines-uyaFw99Z.js} +1 -1
- package/dist/client/assets/{Globe01-BtWLhdgc.js → Globe01-J_5kAZ2G.js} +1 -1
- package/dist/client/assets/{Globe04-DVbA5z-S.js → Globe04-DzVxOgG6.js} +1 -1
- package/dist/client/assets/{HardDrive-Dv021FxK.js → HardDrive-BD491-6A.js} +1 -1
- package/dist/client/assets/{Key01-AxVsjzoW.js → Key01-DpArIwgm.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DFQX2HQS.js → LayoutLeft-i76gAzb8.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DFJC7MKi.js → LinkExternal01-BGVgwGxd.js} +1 -1
- package/dist/client/assets/{Monitor01-DzIaslp9.js → Monitor01-C4cglHcn.js} +1 -1
- package/dist/client/assets/{Palette-DRyOxvc4.js → Palette-NYPFTebi.js} +1 -1
- package/dist/client/assets/{Play-BGOeSWeu.js → Play-CIhVolnk.js} +1 -1
- package/dist/client/assets/{Plus-zfs5-JeK.js → Plus-DEhikgBr.js} +1 -1
- package/dist/client/assets/{SearchMd-DUUd_hhd.js → SearchMd-1YEF5GNC.js} +1 -1
- package/dist/client/assets/{Settings02-Gfe6bidH.js → Settings02-B_oiQbnJ.js} +1 -1
- package/dist/client/assets/{Shield01-5ohBHD7b.js → Shield01-BrCb9Fbq.js} +1 -1
- package/dist/client/assets/{Star01-BfbfCcYt.js → Star01-K5E2EVFR.js} +1 -1
- package/dist/client/assets/{Stars01-CDSyPsDa.js → Stars01-D-F-KCAY.js} +1 -1
- package/dist/client/assets/{Stars02-CNjkSD-c.js → Stars02-D5rVREl5.js} +1 -1
- package/dist/client/assets/{Sun-CduMeE8P.js → Sun-0LQy_BRh.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-C-8MujcR.js → SwitchHorizontal01-Y2S_GG49.js} +1 -1
- package/dist/client/assets/{Tool01-CyFZLY0Y.js → Tool01-B21_bo9F.js} +1 -1
- package/dist/client/assets/{Trash01-BwZvbUqV.js → Trash01-D4qJL0O5.js} +1 -1
- package/dist/client/assets/{Upload01-BENZkUL6.js → Upload01-B89V4QHh.js} +1 -1
- package/dist/client/assets/{User01-C6id_Jz0.js → User01-676cwM-d.js} +1 -1
- package/dist/client/assets/{Users01-DoemHjk2.js → Users01-Wg2zRTbW.js} +1 -1
- package/dist/client/assets/{Users03-DNFFVYi5.js → Users03-ClYFKrw1.js} +1 -1
- package/dist/client/assets/{X-DbKbpx_s.js → X-B9D2h3Td.js} +1 -1
- package/dist/client/assets/{XCircle-Dcz0bhP7.js → XCircle-CSFP3d9h.js} +1 -1
- package/dist/client/assets/{XClose-c_WWFEvr.js → XClose-DBh1WmP1.js} +1 -1
- package/dist/client/assets/{Zap-iEV7Y0HC.js → Zap-BRPDiIJ_.js} +1 -1
- package/dist/client/assets/{ZapSquare-C6FRNhWU.js → ZapSquare-Dnw5HzjO.js} +1 -1
- package/dist/client/assets/{ZoomOut-B6sxahLJ.js → ZoomOut-Cz0dpIX0.js} +1 -1
- package/dist/client/assets/{access-gate-Bw0npMv7.js → access-gate-BrhqO3VF.js} +1 -1
- package/dist/client/assets/{add-section-modal-KIiwcyif.js → add-section-modal-D2CiFRjh.js} +1 -1
- package/dist/client/assets/{agent-icon-Dwg5FgWW.js → agent-icon-o19yp48z.js} +1 -1
- package/dist/client/assets/{agents-list-BXDz7sZv.js → agents-list-CZG4qszH.js} +1 -1
- package/dist/client/assets/ai-providers-CO0WuHGD.js +1 -0
- package/dist/client/assets/{alert-CrUsXKEE.js → alert-D1A1Zc_j.js} +1 -1
- package/dist/client/assets/{alert-dialog-Cv06ffuC.js → alert-dialog-BOS0dCJh.js} +3 -3
- package/dist/client/assets/{app-editor-DjhMgCk8.js → app-editor-CIfs2FL1.js} +1 -1
- package/dist/client/assets/{auth-DEpXDpCk.js → auth-BdbahkUc.js} +1 -1
- package/dist/client/assets/{auth-catchall-CPgG-EzL.js → auth-catchall-CNPgs4YU.js} +1 -1
- package/dist/client/assets/{auth-entry-DSjmtoLb.js → auth-entry-B1WtHQhf.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BkUGPb-7.js → auth-split-layout-nvPMwr8u.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BELZfB_M.js → authenticate-and-persist-oauth-BMdVL1CA.js} +1 -1
- package/dist/client/assets/{automation-list-row-BQBXbnVC.js → automation-list-row-CyNcj0ry.js} +1 -1
- package/dist/client/assets/automation-runs-Bk8JCPKW.js +1 -0
- package/dist/client/assets/automations-D5t0_F84.js +1 -0
- package/dist/client/assets/{avatar-DPNVdynG.js → avatar-3AHqY5tt.js} +1 -1
- package/dist/client/assets/{badge-BAgfu3s3.js → badge-DAumNibn.js} +1 -1
- package/dist/client/assets/{block-document-L8I5bPmf.js → block-document-CyMP0Nwa.js} +1 -1
- package/dist/client/assets/brand-context-yzHlJmXd.js +1 -0
- package/dist/client/assets/buckets-D9fspdLY.js +1 -0
- package/dist/client/assets/{capability-load-error-DNDjRRk_.js → capability-load-error-B4Sf_UJj.js} +1 -1
- package/dist/client/assets/{card-Trr9Smsl.js → card-DPMEGAqZ.js} +1 -1
- package/dist/client/assets/category-editor-nDclmHNc.js +1 -0
- package/dist/client/assets/{chat-context-D2JYAjtU.js → chat-context-DANWEvls.js} +7 -7
- package/dist/client/assets/{checkbox-BkY2CRaN.js → checkbox-ByFK_aep.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CDezhRu8.js → cli-auth-success-s1Ge9151.js} +1 -1
- package/dist/client/assets/collection-detail-NWtLzyq5.js +1 -0
- package/dist/client/assets/{collection-display-button-BhW4iJuC.js → collection-display-button-CTz7X8CM.js} +1 -1
- package/dist/client/assets/{collection-search-IIs4O29o.js → collection-search-CQMKW4Jp.js} +1 -1
- package/dist/client/assets/{collection-tabs-DStxKs6K.js → collection-tabs-jlQTSy-i.js} +1 -1
- package/dist/client/assets/{command-DziWV9Wl.js → command-DNx5Uhv2.js} +1 -1
- package/dist/client/assets/commerce-onboarding-BGm-51c6.js +1 -0
- package/dist/client/assets/{connect-desktop-dialog-CEg8fHOJ.js → connect-desktop-dialog-BeQBPgXI.js} +1 -1
- package/dist/client/assets/{connection-card-CX4CTBla.js → connection-card-CHIFmA8R.js} +1 -1
- package/dist/client/assets/connection-detail-BTDN1t-U.js +1 -0
- package/dist/client/assets/{connection-form-helpers-_Xw7Jp1j.js → connection-form-helpers-CWhKbOwZ.js} +1 -1
- package/dist/client/assets/connections-Df79XqMS.js +1 -0
- package/dist/client/assets/{context-menu-WSPOvmVH.js → context-menu-DkDkJvo8.js} +1 -1
- package/dist/client/assets/{decopilot-CPXrk6Nc.js → decopilot-CmY0uQsK.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-Dc69PdCV.js → decopilot-sse-pool-CXkkAKQx.js} +1 -1
- package/dist/client/assets/{dialog-DC6TTwSU.js → dialog-fVpV_18N.js} +1 -1
- package/dist/client/assets/{domain-settings-C1pK704i.js → domain-settings-BIaZaqXi.js} +1 -1
- package/dist/client/assets/{drawer-D-qJMn42.js → drawer-iojIyQ7Z.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B3yjOr3B.js → dropdown-menu-HRW3zYBQ.js} +1 -1
- package/dist/client/assets/{empty-state-WkcHfsbi.js → empty-state-ySGQGV31.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D0kn1CiV.js → extract-connection-data-CrjpOcI0.js} +1 -1
- package/dist/client/assets/{file-explorer-rTq33vqz.js → file-explorer-D1OUZ8cU.js} +1 -1
- package/dist/client/assets/{file-type-icon-BphKjXRo.js → file-type-icon-BSAfTQY6.js} +1 -1
- package/dist/client/assets/{files-B7FZKUGh.js → files-Dvw5nwbp.js} +1 -1
- package/dist/client/assets/{form-g86n2zay.js → form-dD3QczZa.js} +1 -1
- package/dist/client/assets/{general-DQFzRc7X.js → general-C6KcKAXv.js} +1 -1
- package/dist/client/assets/github-repo-picker-YqP06Fto.js +1 -0
- package/dist/client/assets/{hooks-CpWosBE0.js → hooks-C3qiFxIG.js} +5 -5
- package/dist/client/assets/{import-from-deco-dialog-DHQFK9MP.js → import-from-deco-dialog-DDsiz0pE.js} +2 -2
- package/dist/client/assets/{index-BTDSQgHj.js → index-B7xwJlcR.js} +5 -5
- package/dist/client/assets/{index-Bnq_KeQl.js → index-BK10Xdph.js} +1 -1
- package/dist/client/assets/{index-V_z4g85O.js → index-BMCJlhk3.js} +24 -24
- package/dist/client/assets/{index-D0VHzTLF.js → index-BO-4uKUn.js} +1 -1
- package/dist/client/assets/index-BodEVjlg.js +1 -0
- package/dist/client/assets/{index-3BRPugsV.js → index-C102AH4s.js} +1 -1
- package/dist/client/assets/{index-B1povjSt.js → index-CXXnf1Qe.js} +1 -1
- package/dist/client/assets/{index-CKZ2Jo27.js → index-Ci5DmEN0.js} +1 -1
- package/dist/client/assets/{index-DDYqxneq.js → index-CpgQ8CBr.js} +1 -1
- package/dist/client/assets/{index-CmTvfvqV.js → index-Cvy8WHIB.js} +1 -1
- package/dist/client/assets/index-DDRZvmg6.css +1 -0
- package/dist/client/assets/{index-DPpLkDX2.js → index-DqK88OS0.js} +1 -1
- package/dist/client/assets/index-FKJOX04p.js +1 -0
- package/dist/client/assets/{index-UunSb5mF.js → index-jh_AV7fc.js} +1 -1
- package/dist/client/assets/{index-DeuQtcBQ.js → index-q8ngIE68.js} +1 -1
- package/dist/client/assets/{index-redirect-CgRpP2To.js → index-redirect-B05if20n.js} +1 -1
- package/dist/client/assets/{input-DVRfAVU3.js → input-Bk-XA8aE.js} +1 -1
- package/dist/client/assets/{integration-icon-DdvXmN6b.js → integration-icon-D5R24LMd.js} +1 -1
- package/dist/client/assets/{label-D1MGSLX0.js → label-DbgfgBJH.js} +1 -1
- package/dist/client/assets/{login-DlviF7QT.js → login-BnanKvfh.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DlBIPcRz.js → mcp-oauth-Ge7_9DJm.js} +1 -1
- package/dist/client/assets/{members-HLvKGfjN.js → members-OMqqgRie.js} +1 -1
- package/dist/client/assets/{monaco-editor-Adha2rD5.js → monaco-editor-CLbivzeA.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-DoSzHe4u.js → monitoring-stats-row-D988ksKz.js} +1 -1
- package/dist/client/assets/{oauth-callback-BLm1iokb.js → oauth-callback-CMcTYSQ9.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-8sG6eagR.js → oauth-callback-ai-provider-CPlg-Iun.js} +1 -1
- package/dist/client/assets/{onboarding-iZKUv6aI.js → onboarding-BQtZWhzG.js} +1 -1
- package/dist/client/assets/{org-install-C9Svi1Dd.js → org-install-EHXdq4o2.js} +1 -1
- package/dist/client/assets/{org-layout-B46TOnBU.js → org-layout-qDY2vnUU.js} +1 -1
- package/dist/client/assets/{organization-choice-D5AMR6f-.js → organization-choice-BOiOzldx.js} +1 -1
- package/dist/client/assets/{page-seo-form-DnlsqJ-m.js → page-seo-form-DeK8_ys8.js} +1 -1
- package/dist/client/assets/page-seo-sheet-CnuTSA1a.js +1 -0
- package/dist/client/assets/popover-BTH_4TON.js +1 -0
- package/dist/client/assets/{post-editor-BI1JMrba.js → post-editor-DJSqRdmQ.js} +1 -1
- package/dist/client/assets/{preview-dialog-CNgWM1Nd.js → preview-dialog-C4U9zVzk.js} +3 -3
- package/dist/client/assets/{primitives-1UYw8T7c.js → primitives-CXIIxbFE.js} +1 -1
- package/dist/client/assets/{profile-DlyPm-rk.js → profile-OkUeU-xS.js} +1 -1
- package/dist/client/assets/project-app-view-ClFsE-uv.js +1 -0
- package/dist/client/assets/record-editor-Ba_-uY6W.js +1 -0
- package/dist/client/assets/registry-OeyyY_3h.js +2 -0
- package/dist/client/assets/{registry-layout-k5bH_SdU.js → registry-layout-CmbVIFjk.js} +1 -1
- package/dist/client/assets/{require-capability-Cnsb8ohV.js → require-capability-B3YVeyKQ.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BrqLeeGH.js → required-auth-layout-hwOac595.js} +1 -1
- package/dist/client/assets/{reset-password-Du_C_DrW.js → reset-password-DYADQ6t-.js} +1 -1
- package/dist/client/assets/roles-CwZxDmMd.js +1 -0
- package/dist/client/assets/{save-status-B7sExUGT.js → save-status-cz-ufgN_.js} +1 -1
- package/dist/client/assets/{scroll-area-wkOEFA0d.js → scroll-area-BliS1K3p.js} +1 -1
- package/dist/client/assets/{search-input-R9PP00jU.js → search-input-CUOcSr_7.js} +1 -1
- package/dist/client/assets/secrets-CyW5acaW.js +1 -0
- package/dist/client/assets/{sections-editor-Din5M3E7.js → sections-editor-Dv8SUTjk.js} +1 -1
- package/dist/client/assets/select-8EVXQGwX.js +1 -0
- package/dist/client/assets/{select-model-GwKBIN6-.js → select-model-iQAMpxgJ.js} +1 -1
- package/dist/client/assets/{seo-editor-C4-hewoS.js → seo-editor-BNVUsXCz.js} +1 -1
- package/dist/client/assets/{settings-layout-nQ4HGRFy.js → settings-layout-D-yUHTQc.js} +1 -1
- package/dist/client/assets/{settings-section-C5yP5Si0.js → settings-section-DHTir3TC.js} +1 -1
- package/dist/client/assets/{sheet-B6_wuIQB.js → sheet-ZPG9h0Fj.js} +1 -1
- package/dist/client/assets/{shell-controls-BCEkmDxf.js → shell-controls-Zawsretc.js} +1 -1
- package/dist/client/assets/shell-layout-CWAvk5Go.js +1 -0
- package/dist/client/assets/{shell-route-loading-BpGUKC4D.js → shell-route-loading-mpOo6h4k.js} +1 -1
- package/dist/client/assets/{sidebar-BC3PqZZk.js → sidebar-DU6XXtnA.js} +1 -1
- package/dist/client/assets/{skeleton-D_8-XLai.js → skeleton-CKrKTMUA.js} +1 -1
- package/dist/client/assets/{sortable.esm-g-r61mRK.js → sortable.esm-B3t9DDZ6.js} +1 -1
- package/dist/client/assets/{sso-D-jPiEUA.js → sso-CERYxMuj.js} +1 -1
- package/dist/client/assets/store-mnbDCvL0.js +1 -0
- package/dist/client/assets/store-registry-CJLz8NHB.js +2 -0
- package/dist/client/assets/{studio-tools-CcWLJIL3.js → studio-tools-BdR8-wJW.js} +1 -1
- package/dist/client/assets/switch-DLwkt3ng.js +1 -0
- package/dist/client/assets/{table-DlwTq8lg.js → table-CHbuq2So.js} +1 -1
- package/dist/client/assets/tabs-C3tau4Eq.js +1 -0
- package/dist/client/assets/{task-status-CG5Li56E.js → task-status-Cpo5H16E.js} +1 -1
- package/dist/client/assets/{textarea-DkgswAud.js → textarea-CJuB4hQ7.js} +1 -1
- package/dist/client/assets/toggle-group-Ckfjs-c4.js +1 -0
- package/dist/client/assets/{toolbar-CMnKNoMl.js → toolbar-D1N_WILM.js} +1 -1
- package/dist/client/assets/tooltip-DjHKSu56.js +1 -0
- package/dist/client/assets/{types-IxCSiIKg.js → types-CNWQoCyo.js} +6 -6
- package/dist/client/assets/use-ai-providers-BxzRSeJ0.js +1 -0
- package/dist/client/assets/{use-automations-CktQtzNu.js → use-automations-Br1p5DHc.js} +1 -1
- package/dist/client/assets/{use-capability-mUGdJwF_.js → use-capability-E8ccWznH.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Db61_Lpl.js → use-clock-tick-BW4BJ8Tt.js} +1 -1
- package/dist/client/assets/use-collections-CsNhZa6R.js +1 -0
- package/dist/client/assets/{use-connection-DY54rYyd.js → use-connection-_slG13py.js} +1 -1
- package/dist/client/assets/{use-copy-BaIsIuIB.js → use-copy-60B0ujzD.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-C92AqYem.js → use-create-virtual-mcp-aSsDb_hC.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CgWI7Lb7.js → use-debounced-autosave-DlQ25v46.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BP5srM_m.js → use-delete-connection-BSgRrEnr.js} +1 -1
- package/dist/client/assets/use-file-configs-TueoM3xk.js +1 -0
- package/dist/client/assets/{use-infinite-scroll-CcoRA6NH.js → use-infinite-scroll-B7KmD1ay.js} +1 -1
- package/dist/client/assets/{use-join-requests-CezHwAN7.js → use-join-requests-Bugx9GLx.js} +1 -1
- package/dist/client/assets/use-mcp-client--_ZSmyGd.js +10 -0
- package/dist/client/assets/use-mcp-prompts-Bi0YM-MV.js +1 -0
- package/dist/client/assets/use-mcp-tools-C6z5gFrv.js +1 -0
- package/dist/client/assets/use-members-D4NNP_ry.js +1 -0
- package/dist/client/assets/{use-navigate-to-agent-BzP0osS7.js → use-navigate-to-agent-C2eJezkw.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CL0p_f0y.js → use-org-auth-client-Bn9WqUMO.js} +1 -1
- package/dist/client/assets/{use-org-sso-CFcfBOij.js → use-org-sso-CgbvxseW.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Banmg_pK.js → use-organization-roles-Cg0ug59K.js} +1 -1
- package/dist/client/assets/{use-organization-settings-C13VUvc7.js → use-organization-settings-DQ5ROkEQ.js} +1 -1
- package/dist/client/assets/{use-registry-connections-D7CDGVjW.js → use-registry-connections-Ba1xQHz9.js} +1 -1
- package/dist/client/assets/use-secrets-B1jqMRBn.js +1 -0
- package/dist/client/assets/{use-status-sounds-C-rHNkXR.js → use-status-sounds-Bj_NbDO6.js} +1 -1
- package/dist/client/assets/{use-view-mode-Brlii9ZZ.js → use-view-mode-BvWJalT6.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-oC_oTaOn.js → use-virtual-mcp-BZlyJ3on.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DDGqv00b.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DI0bMzys.js +1 -0
- package/dist/client/assets/{variant-calendar-DrknBuXM.js → variant-calendar-C0Qs1GnN.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Dgssa66x.js → view-mode-toggle-DcivAyKH.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +249 -249
- package/dist/server/server.js +51 -51
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-VH8M6hT6.js +0 -1
- package/dist/client/assets/automation-runs-Dm8vrkrz.js +0 -1
- package/dist/client/assets/automations-DA5a6gqY.js +0 -1
- package/dist/client/assets/brand-context-CULMCcpa.js +0 -1
- package/dist/client/assets/buckets-DMU0eaXD.js +0 -1
- package/dist/client/assets/category-editor-BJlYKlYH.js +0 -1
- package/dist/client/assets/collection-detail-wY7wsRFe.js +0 -1
- package/dist/client/assets/commerce-onboarding-CyEeXl3T.js +0 -1
- package/dist/client/assets/connection-detail-BDjbD-IX.js +0 -1
- package/dist/client/assets/connections-DJEG78Dv.js +0 -1
- package/dist/client/assets/github-repo-picker-C6HuqJ8f.js +0 -1
- package/dist/client/assets/index-DBaGwpyP.css +0 -1
- package/dist/client/assets/index-DEAvf9Ss.js +0 -1
- package/dist/client/assets/index-DPmafiSm.js +0 -1
- package/dist/client/assets/page-seo-sheet-BB-bVgSe.js +0 -1
- package/dist/client/assets/popover-ChpnNBG6.js +0 -1
- package/dist/client/assets/project-app-view-CxdK6kb-.js +0 -1
- package/dist/client/assets/record-editor-BPS6LmYc.js +0 -1
- package/dist/client/assets/registry-B54461Ff.js +0 -2
- package/dist/client/assets/roles-DLI7p3m9.js +0 -1
- package/dist/client/assets/secrets-BBIIYJQL.js +0 -1
- package/dist/client/assets/select-iQPDKsQJ.js +0 -1
- package/dist/client/assets/shell-layout-vJZz5HSU.js +0 -1
- package/dist/client/assets/store-CdLz3AFq.js +0 -1
- package/dist/client/assets/store-registry-cn1ZHxyv.js +0 -2
- package/dist/client/assets/switch-DAdK-1sZ.js +0 -1
- package/dist/client/assets/tabs-B6a4ZhCv.js +0 -1
- package/dist/client/assets/toggle-group-BYYV7q2R.js +0 -1
- package/dist/client/assets/tooltip-Bodmhuae.js +0 -1
- package/dist/client/assets/use-ai-providers-Dr3wiSPj.js +0 -1
- package/dist/client/assets/use-collections-gMfZ5Rvk.js +0 -1
- package/dist/client/assets/use-file-configs-CxuIY0bl.js +0 -1
- package/dist/client/assets/use-mcp-client-DsIzdxc1.js +0 -10
- package/dist/client/assets/use-mcp-prompts-CwZBO4qi.js +0 -1
- package/dist/client/assets/use-mcp-tools-BAGnYViX.js +0 -1
- package/dist/client/assets/use-members-Rhm6WZIF.js +0 -1
- package/dist/client/assets/use-secrets-C6okhs5V.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BDW2fh8c.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Bfsxp_qn.js +0 -1
package/dist/client/assets/{use-org-auth-client-CL0p_f0y.js → use-org-auth-client-Bn9WqUMO.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,
|
|
1
|
+
import{c as x,w as j,a as i}from"./index-BMCJlhk3.js";function w(){const e=x.c(32),{org:O}=j(),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{w as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,k as S,m as l,d as y,K as c}from"./index-
|
|
1
|
+
import{c as u,k as S,m as l,d as y,K as c}from"./index-BMCJlhk3.js";function w(o,a){const e=u.c(8);let s;e[0]!==o?(s=c.orgSsoStatus(o??""),e[0]=o,e[1]=s):s=e[1];let t;e[2]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/status`);if(!r.ok)throw new Error("Failed to check SSO status");return r.json()},e[2]=a,e[3]=t):t=e[3];const n=!!o&&!!a;let i;return e[4]!==s||e[5]!==t||e[6]!==n?(i={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=i):i=e[7],S(i)}function m(o,a){const e=u.c(8);let s;e[0]!==o?(s=c.orgSsoConfig(o??""),e[0]=o,e[1]=s):s=e[1];let t;e[2]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/config`);if(!r.ok)throw new Error("Failed to fetch SSO config");return r.json()},e[2]=a,e[3]=t):t=e[3];const n=!!o&&!!a;let i;return e[4]!==s||e[5]!==t||e[6]!==n?(i={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=i):i=e[7],S(i)}function q(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async r=>{const f=await fetch(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!f.ok){const p=await f.json();throw new Error(p.error||"Failed to save SSO config")}return f.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}function C(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/config`,{method:"DELETE"});if(!r.ok)throw new Error("Failed to delete SSO config");return r.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}function O(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async r=>{const f=await fetch(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:r})});if(!f.ok)throw new Error("Failed to toggle SSO enforcement");return f.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}export{m as a,q as b,C as c,O as d,w as u};
|
package/dist/client/assets/{use-organization-roles-Banmg_pK.js → use-organization-roles-Cg0ug59K.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,j as n,l as v,
|
|
1
|
+
import{c as S,j as n,l as v,w as T,k as B,K as P}from"./index-BMCJlhk3.js";import{e as k,d as I,a as A,T as L,b as z,c as O}from"./table-CHbuq2So.js";import{a as K,n as E}from"./SwitchHorizontal01-Y2S_GG49.js";import{u as H}from"./use-org-auth-client-Bn9WqUMO.js";function D(h){const e=S.c(29),{columns:t,data:m,sortKey:p,sortDirection:d,onSort:o,onRowClick:a,rowClassName:s}=h;let l;e[0]!==d?(l=function(r,N){return n.jsx("div",{className:"w-4 flex items-center justify-center",children:N&&d&&(d==="asc"?n.jsx(K,{size:16,className:"text-muted-foreground transition-colors"}):n.jsx(E,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=d,e[1]=l):l=e[1];const i=l;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=function(r,N){let y="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return r===N-1&&(y="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),y},e[2]=c):c=e[2];const u=c;let f;if(e[3]!==t||e[4]!==o||e[5]!==i||e[6]!==p){let x;e[8]!==t.length||e[9]!==o||e[10]!==i||e[11]!==p?(x=(r,N)=>{const y=p===r.id;return n.jsx(k,{className:v(u(N,t.length),"group transition-colors select-none",r.sortable&&"hover:bg-accent cursor-pointer",r.rowClassName,r.cellClassName),onClick:r.sortable&&o?()=>o(r.id):void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[r.header,r.sortable&&i(r.id,y)]})},r.id)},e[8]=t.length,e[9]=o,e[10]=i,e[11]=p,e[12]=x):x=e[12],f=t.map(x),e[3]=t,e[4]=o,e[5]=i,e[6]=p,e[7]=f}else f=e[7];let b;e[13]!==f?(b=n.jsx(I,{className:"border-b-0",children:n.jsx(A,{className:"h-9 hover:bg-transparent border-b border-border",children:f})}),e[13]=f,e[14]=b):b=e[14];let g;if(e[15]!==t||e[16]!==m||e[17]!==a||e[18]!==s){let x;e[20]!==t||e[21]!==a||e[22]!==s?(x=(r,N)=>{const y=s?.(r);return n.jsx(A,{"data-row-index":N,className:v("group/data-row transition-colors border-b-0 hover:bg-accent/50",a?"cursor-pointer":"",y),onClick:a?()=>a(r):void 0,children:t.map(w=>n.jsx(L,{className:v("px-5 py-4 h-16 align-middle text-sm text-foreground",w.cellClassName,w.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:v(w.wrap?"w-full":"min-w-0 w-full",!w.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:w.render?w.render(r):w.accessor?w.accessor(r):null})},w.id))},N)},e[20]=t,e[21]=a,e[22]=s,e[23]=x):x=e[23],g=m.map(x),e[15]=t,e[16]=m,e[17]=a,e[18]=s,e[19]=g}else g=e[19];let C;e[24]!==g?(C=n.jsx(z,{children:g}),e[24]=g,e[25]=C):C=e[25];let j;return e[26]!==b||e[27]!==C?(j=n.jsxs(O,{className:"w-full border-collapse",children:[b,C]}),e[26]=b,e[27]=C,e[28]=j):j=e[28],j}function W(h){const e=S.c(12),{columns:t,data:m,isLoading:p,sortKey:d,sortDirection:o,onSort:a,onRowClick:s,emptyState:l}=h;if(p===void 0?!1:p){let u;return e[0]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-muted-foreground",children:"Loading..."})}),e[0]=u):u=e[0],u}if(m.length===0){let u;e[1]!==l?(u=l||n.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No items found"}),e[1]=l,e[2]=u):u=e[2];let f;return e[3]!==u?(f=n.jsx("div",{className:"flex items-center justify-center h-full",children:u}),e[3]=u,e[4]=f):f=e[4],f}let c;return e[5]!==t||e[6]!==m||e[7]!==s||e[8]!==a||e[9]!==o||e[10]!==d?(c=n.jsx("div",{className:"flex-1",children:n.jsx(D,{columns:t,data:m,sortKey:d,sortDirection:o,onSort:a,onRowClick:s})}),e[5]=t,e[6]=m,e[7]=s,e[8]=a,e[9]=o,e[10]=d,e[11]=c):c=e[11],c}const R=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function M(h){return h.replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function U(h){if(!h)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const e=[];let t=!1;const m=[];let p=!1;const d=new Set;let o=!1,a=0,s=!1;for(const[l,i]of Object.entries(h)){if(l==="self"){i.includes("*")?t=!0:e.push(...i);continue}if(l==="models"){i.includes("*:*")?s=!0:a=i.length;continue}if(l==="*"){if(p=!0,i.includes("*"))o=!0;else for(const c of i)d.add(c);continue}if(m.push(l),i.includes("*"))o=!0;else for(const c of i)d.add(c)}return{staticPermissions:e,allowsAllStaticPermissions:t,connectionIds:m,allowsAllConnections:p,toolNames:Array.from(d),allowsAllTools:o,modelCount:a,allowsAllModels:s}}function Y(){const{locator:h}=T(),e=H(),{data:t,isLoading:m,error:p,refetch:d}=B({queryKey:P.organizationRoles(h),queryFn:async()=>{try{const s=await e.organization.listRoles();return s?.error?(console.error("[useOrganizationRoles] API error:",s.error),[]):s?.data??[]}catch(s){return console.error("[useOrganizationRoles] Fetch error:",s),[]}},staleTime:3e4}),o=R.map(s=>({role:s.value,label:s.label,isBuiltin:s.isBuiltin}));if(t&&Array.isArray(t))for(const s of t){const l=s.role;if(!l||R.some(x=>x.value===l))continue;const{staticPermissions:i,allowsAllStaticPermissions:c,connectionIds:u,allowsAllConnections:f,toolNames:b,allowsAllTools:g,modelCount:C,allowsAllModels:j}=U(s.permission);o.push({id:s.id,role:l,label:M(l),isBuiltin:!1,permission:s.permission??void 0,staticPermissionCount:c?-1:i.length,allowsAllStaticPermissions:c,connectionCount:f?-1:u.length,allowsAllConnections:f,toolCount:g?-1:b.length,allowsAllTools:g,modelCount:j?-1:C,allowsAllModels:j})}const a=o.filter(s=>!s.isBuiltin);return{roles:o,customRoles:a,builtinRoles:o.filter(s=>s.isBuiltin),isLoading:m,error:p,refetch:d}}export{W as C,Y as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as d,c as l,
|
|
1
|
+
import{K as d,c as l,w as g,k as E,m as I,d as R,r as b}from"./index-BMCJlhk3.js";import{W as G}from"./use-mcp-client--_ZSmyGd.js";import{c as M,u as Q}from"./studio-tools-BdR8-wJW.js";const w={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null},N={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function O(t,e){return{queryKey:d.organizationSettings(e),queryFn:async()=>{try{return await M(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...w,organizationId:e}}},staleTime:6e4}}function h(t){const e=l.c(6),{org:s}=g();let n;e[0]!==s.id||e[1]!==s.slug?(n=O(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 W(t,e){const s=l.c(3);let n;s[0]!==t||s[1]!==e?(n=O(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=Q(),n=I();let i;t[0]!==e||t[1]!==s?(i=async u=>{const o=await s.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...u});if(!o)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return o},t[0]=e,t[1]=s,t[2]=i):i=t[2];let r;t[3]!==e||t[4]!==n?(r=u=>{n.setQueryData(d.organizationSettings(e.id),o=>({...o??w,...u}))},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],R(a)}function C(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 Z(){const{data:t}=h(P);return t??N}function P(t){return C(t.simple_mode)}function F(){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 $(){const{data:t}=h(k);return t??null}function k(t){return t.registry_config}function j(){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 B(){const{data:t}=h(x);return t??null}function x(t){return t.default_home_agents}function U(){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 L(){const t=l.c(14),{org:e}=g(),s=U(),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 u=a;let o;t[3]!==u||t[4]!==n?(o=()=>n.getQueryData(u)?.default_home_agents?.ids??[],t[3]=u,t[4]=n,t[5]=o):o=t[5];const _=o;let m;t[6]!==u||t[7]!==e.slug||t[8]!==n||t[9]!==s?(m=z=>{const T=r.current.then(async()=>{const A=n.getQueryData(u),p=z(A?.default_home_agents?.ids??[]);if(p!==null){n.setQueryData(u,c=>c&&{...c,default_home_agents:{ids:p}});try{await s.mutateAsync({ids:p}),await n.refetchQueries({queryKey:d.homeNextActions(e.slug),type:"active"})}catch(c){const D=c;throw n.setQueryData(u,A),D}}});return r.current=T.catch(q),T},t[6]=u,t[7]=e.slug,t[8]=n,t[9]=s,t[10]=m):m=t[10];const y=m;let f;return t[11]!==y||t[12]!==_?(f={currentIds:_,apply:y},t[11]=y,t[12]=_,t[13]=f):f=t[13],f}function q(){}function v(){const t=l.c(5),{org:e}=g(),s=$();let n;t[0]!==e.id?(n=G.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 u=s.registries[a];return u?u.enabled:a===i},t[2]=i,t[3]=s,t[4]=r):r=t[4],r}export{L as a,v as b,W as c,Z as d,F as e,$ as f,j as g,O as o,B as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,
|
|
1
|
+
import{c as C,w as R}from"./index-BMCJlhk3.js";import{u as p}from"./use-connection-_slG13py.js";import{W as a}from"./use-mcp-client--_ZSmyGd.js";import{f as y}from"./use-organization-settings-DQ5ROkEQ.js";function E(){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{E as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as r,w as a,K as c,p as f,m as y,d as m}from"./index-BMCJlhk3.js";import{u as l}from"./studio-tools-BdR8-wJW.js";function p(){const e=r.c(7),{org:o}=a(),u=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]!==u?(t=async()=>await u.call("SECRET_LIST",{}),e[2]=u,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:n}=f(s);return n.secrets}function C(){const e=r.c(8),{org:o}=a(),u=l(),i=y();let t;e[0]!==u?(t=async d=>await u.call("SECRET_CREATE",{...d}),e[0]=u,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 n;return e[5]!==t||e[6]!==s?(n={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=n):n=e[7],m(n)}export{C as a,p as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as m,
|
|
1
|
+
import{r as o,c as m,I as h}from"./index-BMCJlhk3.js";import{p as R,q as I}from"./question-004-sINsf4GQ.js";import{d as y,D as S}from"./decopilot-sse-pool-CXkkAKQx.js";const b=()=>0;function D(s){const{orgSlug:e,taskId:r,enabled:t=!0,onStep:n,onFinish:u,onTaskStatus:f}=s,l=o.useRef({taskId:r,onStep:n,onFinish:u,onTaskStatus:f});l.current={taskId:r,onStep:n,onFinish:u,onTaskStatus:f};const i=o.useRef(null),p=o.useRef(t),d=o.useRef(e);(!i.current||p.current!==t||d.current!==e)&&(p.current=t,d.current=e,i.current=E=>{if(!t||!e)return()=>{};const k=T=>{let a;try{a=JSON.parse(T.data)}catch{return}const c=l.current;if(!(c.taskId&&a.subject!==c.taskId)){switch(a.type){case S.STEP:c.onStep?.(a);break;case S.FINISH:c.onFinish?.(a);break;case S.THREAD_STATUS:c.onTaskStatus?.(a);break}E()}};return y.subscribe(e,k)}),o.useSyncExternalStore(i.current,b,b)}const O=new Set(["completed","failed","requires_action"]);function U(s){const e=m.c(5),[r]=h();let t;e[0]!==r?(t=u=>{r.enableSounds&&O.has(u.data.status)&&R(I.dataUri).catch(_)},e[0]=r,e[1]=t):t=e[1];let n;e[2]!==s||e[3]!==t?(n={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=n):n=e[4],D(n)}function _(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-BMCJlhk3.js";import{u as w}from"./tooltip-DjHKSu56.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,
|
|
1
|
+
import{c as a,w as d,aJ as p,k as P}from"./index-BMCJlhk3.js";import{b as L,a as S,u as V,c as _}from"./use-collections-CsNhZa6R.js";import{S as g,u as I}from"./use-mcp-client--_ZSmyGd.js";function v(s){const t=a.c(5);let e;t[0]!==s?(e=s===void 0?{}:s,t[0]=s,t[1]=e):e=t[1];const n=e,{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=I(o);return L(i.id,"VIRTUAL_MCP",l,n)}function R(s,t,e){return _(s,"VIRTUAL_MCP",t??void 0,e)}function b(s){const t=a.c(3),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);return V(e.id,"VIRTUAL_MCP",s??void 0,i)}function E(s){const t=a.c(15),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);let o,l,c;t[3]!==s||t[4]!==e.id?(o=[...s].sort(),c=P,l=p.virtualMcpLastUsed(e.id,o),t[3]=s,t[4]=e.id,t[5]=o,t[6]=l,t[7]=c):(o=t[5],l=t[6],c=t[7]);const C=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:[]},f=new Map;for(const m of M.items)f.set(m.id,m);return f},t[8]=i,t[9]=o,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==C||t[13]!==u?(r={queryKey:l,enabled:C,staleTime:3e4,queryFn:u},t[11]=l,t[12]=C,t[13]=u,t[14]=r):r=t[14],c(r)}function $(){const s=a.c(3),{org:t}=d();let e;s[0]!==t.id||s[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},s[0]=t.id,s[1]=t.slug,s[2]=e):e=s[2];const n=I(e);return S(t.id,"VIRTUAL_MCP",n)}export{b as a,$ as b,E as c,v as u,R as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./use-infinite-scroll-B7KmD1ay.js";import{cJ as i}from"./index-BMCJlhk3.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./use-infinite-scroll-B7KmD1ay.js";import{cJ as u,aA as n}from"./index-BMCJlhk3.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 R,r as K,j as a,l as W,B as O}from"./index-V_z4g85O.js";import{T as Q,f as it}from"./agent-icon-Dwg5FgWW.js";import{n as at}from"./ChevronLeft-cwkPjMhb.js";import{i as lt}from"./ChevronRight-DbmfCIOT.js";import{S as X}from"./scroll-area-wkOEFA0d.js";import{T as ct,b as mt,a as pt}from"./tooltip-Bodmhuae.js";import{V as ft}from"./view-mode-toggle-Dgssa66x.js";import"./AlertCircle-CqXnKI3D.js";import"./Tool01-CyFZLY0Y.js";import"./SwitchHorizontal01-C-8MujcR.js";import"./Settings02-Gfe6bidH.js";import"./XCircle-Dcz0bhP7.js";import"./ArrowUpRight-D_A_c-WP.js";import"./ZapSquare-C6FRNhWU.js";import"./Users03-DNFFVYi5.js";import"./CheckCircle-B6_BlhWA.js";import"./ChevronUp-DTH787oJ.js";import"./ChevronDown-CsJyvcQs.js";import"./DotsVertical-DXADESRu.js";import"./Stars02-CNjkSD-c.js";import"./Eye-Cd9WdjRO.js";import"./ZoomOut-B6sxahLJ.js";import"./Globe01-BtWLhdgc.js";import"./FilterLines-DDE5Z7pT.js";import"./Star01-BfbfCcYt.js";import"./Globe04-DVbA5z-S.js";import"./HardDrive-Dv021FxK.js";import"./Key01-AxVsjzoW.js";import"./LayoutLeft-DFQX2HQS.js";import"./LinkExternal01-DFJC7MKi.js";import"./Monitor01-DzIaslp9.js";import"./Sun-CduMeE8P.js";import"./Palette-DRyOxvc4.js";import"./Play-BGOeSWeu.js";import"./Plus-zfs5-JeK.js";import"./SearchMd-DUUd_hhd.js";import"./Shield01-5ohBHD7b.js";import"./Stars01-CDSyPsDa.js";import"./Trash01-BwZvbUqV.js";import"./Upload01-BENZkUL6.js";import"./User01-C6id_Jz0.js";import"./Users01-DoemHjk2.js";import"./XClose-c_WWFEvr.js";import"./X-DbKbpx_s.js";import"./Zap-iEV7Y0HC.js";import"./use-clock-tick-Db61_Lpl.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BaIsIuIB.js";import"./file-type-icon-BphKjXRo.js";import"./dialog-DC6TTwSU.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-IxCSiIKg.js";import"./use-mcp-client-DsIzdxc1.js";import"./auth-DEpXDpCk.js";import"./chat-context-D2JYAjtU.js";import"./hooks-CpWosBE0.js";import"./decopilot-sse-pool-Dc69PdCV.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-oC_oTaOn.js";import"./use-collections-gMfZ5Rvk.js";import"./use-ai-providers-Dr3wiSPj.js";import"./studio-tools-CcWLJIL3.js";import"./use-organization-settings-C13VUvc7.js";import"./shell-layout-vJZz5HSU.js";import"./avatar-DPNVdynG.js";import"./required-auth-layout-BrqLeeGH.js";import"./use-org-sso-CFcfBOij.js";import"./sheet-B6_wuIQB.js";import"./integration-icon-DdvXmN6b.js";import"./use-navigate-to-agent-BzP0osS7.js";import"./use-connection-DY54rYyd.js";import"./use-mcp-prompts-CwZBO4qi.js";import"./form-g86n2zay.js";import"./label-D1MGSLX0.js";import"./input-DVRfAVU3.js";import"./select-iQPDKsQJ.js";const dt=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),ut=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),ht=/\/flags\/multivariate\/[^/]+\.ts$/;function xt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function gt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e;if(typeof t!="string"||typeof r!="string")return null;const n=new Date(t),c=new Date(r);return Number.isNaN(n.getTime())||Number.isNaN(c.getTime())||c.getTime()<=n.getTime()?null:{start:n,end:c}}function Z(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(dt.has(r)){const n=gt(e);n&&t.push(n);return}if(ut.has(r)){const n=e.matchers;if(Array.isArray(n))for(const c of n)Z(c,t)}}}function bt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!ht.test(t))return!1;const r=e.variants;return Array.isArray(r)}function yt(e){if(typeof e=="string"){const i=e.trim();if(i.length===0)return null;try{const m=new URL(i).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return i.length>80?`${i.slice(0,77)}…`:i}if(!e||typeof e!="object")return null;const t=e,r=t.config,c=t.desktop?.media,o=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,c?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const i of o)if(typeof i=="string"&&i.trim().length>0)return i.trim();const l=t.__resolveType;if(typeof l=="string"){const s=(l.split("/").pop()??l).replace(/\.(tsx?|jsx?)$/i,"");if(s.length>0)return s}return null}function vt(e){const t=[];for(let r=0;r<e.length;r++){const n=e[r];typeof n=="number"?t.length>0?t[t.length-1]+=`[${n}]`:t.push(`[${n}]`):t.push(n)}return t.join(" · ")}function H(e,t,r,n,c){if(bt(e)){const o=vt(n),l=e.variants,i=e.__resolveType;l.forEach((s,m)=>{if(!s||typeof s!="object")return;const p=s,d=[];if(Z(p.rule,d),d.length===0)return;const x=yt(p.value)??(o||r);for(const g of d)c.push({blockKey:t,blockLabel:r,innerPath:o,variantIndex:m,start:g.start,end:g.end,label:x,flagResolveType:i})});for(let s=0;s<l.length;s++){const m=l[s];m&&typeof m=="object"&&H(m.value,t,r,[...n,"variants",s,"value"],c)}return}if(Array.isArray(e)){for(let o=0;o<e.length;o++)H(e[o],t,r,[...n,o],c);return}if(e&&typeof e=="object")for(const[o,l]of Object.entries(e))o!=="__resolveType"&&H(l,t,r,[...n,o],c)}function Tt(e){if(!e)return[];const t=[];for(const[r,n]of Object.entries(e))H(n,r,xt(r),[],t);return t.sort((r,n)=>r.start.getTime()-n.start.getTime())}function jt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((n,c)=>{const o=c*137.508%360;r.set(n,{bg:`oklch(0.62 0.14 ${o})`,text:"white",border:`oklch(0.50 0.14 ${o})`})}),r}const Nt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function tt(e,t){return e.get(t)??Nt}const kt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],et=["January","February","March","April","May","June","July","August","September","October","November","December"],wt=1440*60*1e3;function L(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function rt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function $(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function I(e,t){const r=new Date(e);return r.setDate(r.getDate()+t),r}function G(e,t){return Math.round((L(e).getTime()-L(t).getTime())/wt)}function _t(e){const t=I(e,-e.getDay()),r=[];for(let n=0;n<6;n++){const c=[];for(let o=0;o<7;o++)c.push(I(t,n*7+o));r.push(c)}for(;r.length>0&&r[r.length-1].every(n=>n.getMonth()!==e.getMonth());)r.pop();return r}function Mt(e,t){const r=L(e[0]),n=I(r,7),c=[];for(const i of t){const s=L(i.start),m=L(i.end);if(m.getTime()<r.getTime()||s.getTime()>=n.getTime())continue;const p=s.getTime()<r.getTime()?r:s,d=m.getTime()>=n.getTime()?I(n,-1):m,u=G(p,r),x=G(d,p)+1;x<=0||c.push({variant:i,startCol:u,span:x})}c.sort((i,s)=>i.startCol-s.startCol||s.span-i.span||i.variant.blockKey.localeCompare(s.variant.blockKey));const o=[],l=[];for(const i of c){let s=o.findIndex(m=>m<=i.startCol);s===-1&&(s=o.length,o.push(0)),o[s]=i.startCol+i.span,l.push({...i,lane:s})}return l}const U=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function St(e){return`${U.format(e.start)} → ${U.format(e.end)}`}function At(e){const t=R.c(17),{variant:r}=e;let n;t[0]!==r.blockLabel?(n=a.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=n):n=t[1];let c;t[2]!==r.innerPath?(c=r.innerPath&&a.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=c):c=t[3];let o;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(o=r.label!==r.blockLabel&&r.label!==r.innerPath&&a.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=o):o=t[7];let l;t[8]!==r?(l=St(r),t[8]=r,t[9]=l):l=t[9];let i;t[10]!==l?(i=a.jsx("div",{className:"mt-1",children:l}),t[10]=l,t[11]=i):i=t[11];let s;return t[12]!==n||t[13]!==c||t[14]!==o||t[15]!==i?(s=a.jsx(pt,{children:a.jsxs("div",{className:"text-xs",children:[n,c,o,i]})}),t[12]=n,t[13]=c,t[14]=o,t[15]=i,t[16]=s):s=t[16],s}function nt(e){const t=R.c(14),{variant:r,color:n,style:c,children:o}=e;let l;t[0]!==n.bg||t[1]!==n.text||t[2]!==c?(l={background:n.bg,color:n.text,borderRadius:4,...c},t[0]=n.bg,t[1]=n.text,t[2]=c,t[3]=l):l=t[3];let i;t[4]!==o?(i=a.jsx("span",{className:"truncate",children:o}),t[4]=o,t[5]=i):i=t[5];let s;t[6]!==l||t[7]!==i?(s=a.jsx(ct,{asChild:!0,children:a.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:l,children:i})}),t[6]=l,t[7]=i,t[8]=s):s=t[8];let m;t[9]!==r?(m=a.jsx(At,{variant:r}),t[9]=r,t[10]=m):m=t[10];let p;return t[11]!==s||t[12]!==m?(p=a.jsxs(mt,{children:[s,m]}),t[11]=s,t[12]=m,t[13]=p):p=t[13],p}function pr(e){const t=R.c(39),{decofile:r}=e,[n,c]=K.useState("calendar"),[o,l]=K.useState(Ct);let i,s;t[0]!==r?(s=Tt(r),i=jt(s.map(Et)),t[0]=r,t[1]=i,t[2]=s):(i=t[1],s=t[2]);const m=i;let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=()=>l(rt(new Date)),t[3]=p):p=t[3];const d=p;let u;t[4]!==n?(u=()=>l(k=>n==="calendar"?$(k,-1):$(k,-3)),t[4]=n,t[5]=u):u=t[5];const x=u;let g;t[6]!==n?(g=()=>l(k=>n==="calendar"?$(k,1):$(k,3)),t[6]=n,t[7]=g):g=t[7];const w=g;let N;t[8]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(O,{variant:"outline",size:"sm",onClick:d,children:"Today"}),t[8]=N):N=t[8];let E;t[9]===Symbol.for("react.memo_cache_sentinel")?(E=a.jsx(at,{size:16}),t[9]=E):E=t[9];let _;t[10]!==x?(_=a.jsx(O,{variant:"ghost",size:"icon",className:"size-8",onClick:x,"aria-label":"Previous",children:E}),t[10]=x,t[11]=_):_=t[11];let f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(lt,{size:16}),t[12]=f):f=t[12];let b;t[13]!==w?(b=a.jsx(O,{variant:"ghost",size:"icon",className:"size-8",onClick:w,"aria-label":"Next",children:f}),t[13]=w,t[14]=b):b=t[14];const M=et[o.getMonth()];let y;t[15]!==o?(y=o.getFullYear(),t[15]=o,t[16]=y):y=t[16];let v;t[17]!==M||t[18]!==y?(v=a.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[M," ",y]}),t[17]=M,t[18]=y,t[19]=v):v=t[19];let T;t[20]!==v||t[21]!==_||t[22]!==b?(T=a.jsxs("div",{className:"flex items-center gap-2",children:[N,_,b,v]}),t[20]=v,t[21]=_,t[22]=b,t[23]=T):T=t[23];let C;t[24]===Symbol.for("react.memo_cache_sentinel")?(C={value:"calendar",icon:a.jsx(Q,{}),label:"Calendar"},t[24]=C):C=t[24];let j;t[25]===Symbol.for("react.memo_cache_sentinel")?(j=[C,{value:"timeline",icon:a.jsx(it,{}),label:"Timeline"}],t[25]=j):j=t[25];let h;t[26]!==n?(h=a.jsx(ft,{value:n,onValueChange:c,options:j}),t[26]=n,t[27]=h):h=t[27];let S;t[28]!==T||t[29]!==h?(S=a.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[T,h]}),t[28]=T,t[29]=h,t[30]=S):S=t[30];let A;t[31]!==m||t[32]!==o||t[33]!==s||t[34]!==n?(A=s.length===0?a.jsx(Dt,{}):n==="calendar"?a.jsx($t,{monthStart:o,variants:s,colorMap:m}):a.jsx(Vt,{monthStart:o,variants:s,colorMap:m}),t[31]=m,t[32]=o,t[33]=s,t[34]=n,t[35]=A):A=t[35];let D;return t[36]!==S||t[37]!==A?(D=a.jsxs("div",{className:"flex h-full w-full flex-col",children:[S,A]}),t[36]=S,t[37]=A,t[38]=D):D=t[38],D}function Et(e){return e.blockKey}function Ct(){return rt(new Date)}function Dt(){const e=R.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=a.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[a.jsx(Q,{size:24,className:"text-muted-foreground/60"}),a.jsx("div",{children:"No scheduled variants."}),a.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]}),e[0]=t):t=e[0],t}const z=20,J=2,q=28;function $t(e){const t=R.c(17),{monthStart:r,variants:n,colorMap:c}=e;let o,l,i,s,m;if(t[0]!==c||t[1]!==r||t[2]!==n){const u=_t(r),x=L(new Date);o=X,m="flex-1 min-h-0",l="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:kt.map(Rt)}),t[8]=i):i=t[8],s=u.map((g,w)=>{const N=Mt(g,n),E=N.reduce(Lt,0),_=q+E*(z+J)+8;return a.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:_},children:[g.map((f,b)=>{const M=f.getMonth()===r.getMonth(),y=f.getTime()===x.getTime();return a.jsx("div",{className:W("border-r last:border-r-0 px-2 pt-1.5 text-xs",M?"bg-background":"bg-muted/30 text-muted-foreground"),children:a.jsx("span",{className:W("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",y&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},b)}),N.map((f,b)=>{const M=tt(c,f.variant.blockKey),y=q+f.lane*(z+J),v=f.startCol/7*100,T=f.span/7*100;return a.jsxs(nt,{variant:f.variant,color:M,style:{top:y,left:`calc(${v}% + 2px)`,width:`calc(${T}% - 4px)`,height:z},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&a.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${w}-${b}`)})]},w)}),t[0]=c,t[1]=r,t[2]=n,t[3]=o,t[4]=l,t[5]=i,t[6]=s,t[7]=m}else o=t[3],l=t[4],i=t[5],s=t[6],m=t[7];let p;t[9]!==l||t[10]!==i||t[11]!==s?(p=a.jsxs("div",{className:l,children:[i,s]}),t[9]=l,t[10]=i,t[11]=s,t[12]=p):p=t[12];let d;return t[13]!==o||t[14]!==m||t[15]!==p?(d=a.jsx(o,{className:m,children:p}),t[13]=o,t[14]=m,t[15]=p,t[16]=d):d=t[16],d}function Lt(e,t){return Math.max(e,t.lane+1)}function Rt(e){return a.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const V=4,Pt=32,P=240;function Vt(e){const t=R.c(27),{monthStart:r,variants:n,colorMap:c}=e,o=r;let l,i,s,m,p,d;if(t[0]!==c||t[1]!==r||t[2]!==o||t[3]!==n){const g=$(r,V),w=new Date,N=new Map;for(const j of n){const h=N.get(j.blockKey)??[];h.push(j),N.set(j.blockKey,h)}const E=Array.from(N.entries()).sort(Ot),_=g.getTime()-o.getTime(),f=j=>(Math.max(o.getTime(),Math.min(g.getTime(),j.getTime()))-o.getTime())/_*100;let b;t[10]!==o?(b=(j,h)=>$(o,h),t[10]=o,t[11]=b):b=t[11];const M=Array.from({length:V},b),y=w.getTime()>=o.getTime()&&w.getTime()<=g.getTime()?f(w):null;l=X,d="flex-1 min-h-0",i="min-w-[900px] relative";let v;t[12]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:{width:P},children:"Variant / Block"}),t[12]=v):v=t[12];let T;t[13]===Symbol.for("react.memo_cache_sentinel")?(T={gridTemplateColumns:`repeat(${V}, minmax(0, 1fr))`},t[13]=T):T=t[13];const C=M.map(It);t[14]!==C?(s=a.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[v,a.jsx("div",{className:"flex-1 grid",style:T,children:C})]}),t[14]=C,t[15]=s):s=t[15],t[16]!==y?(m=y!==null&&a.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${P}px + (100% - ${P}px) * ${y} / 100)`},children:a.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]=y,t[17]=m):m=t[17],p=E.map(j=>{const[h,S]=j,A=tt(c,h),D=S[0]?.blockLabel??h;return a.jsxs("div",{children:[a.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:a.jsx("div",{className:"px-3 truncate",style:{width:P},children:D})}),S.map((k,st)=>a.jsxs("div",{className:"flex border-b items-center",style:{height:Pt},children:[a.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:P},children:[a.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:A.bg}}),a.jsx("span",{className:"truncate text-foreground/80",children:k.label})]}),a.jsxs("div",{className:"relative flex-1 h-full",children:[a.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${V}, minmax(0, 1fr))`},children:M.map(Ht)}),(()=>{const B=Math.max(k.start.getTime(),o.getTime()),F=Math.min(k.end.getTime(),g.getTime());if(F<=B)return null;const Y=f(new Date(B)),ot=f(new Date(F))-Y;return a.jsx(nt,{variant:k,color:A,style:{top:"50%",transform:"translateY(-50%)",left:`${Y}%`,width:`calc(${ot}% - 2px)`,height:22},children:k.label})})()]})]},st))]},h)}),t[0]=c,t[1]=r,t[2]=o,t[3]=n,t[4]=l,t[5]=i,t[6]=s,t[7]=m,t[8]=p,t[9]=d}else l=t[4],i=t[5],s=t[6],m=t[7],p=t[8],d=t[9];let u;t[18]!==i||t[19]!==s||t[20]!==m||t[21]!==p?(u=a.jsxs("div",{className:i,children:[s,m,p]}),t[18]=i,t[19]=s,t[20]=m,t[21]=p,t[22]=u):u=t[22];let x;return t[23]!==l||t[24]!==d||t[25]!==u?(x=a.jsx(l,{className:d,children:u}),t[23]=l,t[24]=d,t[25]=u,t[26]=x):x=t[26],x}function Ht(e,t){return a.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function It(e,t){return a.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[et[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Ot(e,t){return e[0].localeCompare(t[0])}export{pr as VariantCalendar};
|
|
1
|
+
import{c as R,r as K,j as a,l as W,B as O}from"./index-BMCJlhk3.js";import{T as Q,f as it}from"./agent-icon-o19yp48z.js";import{n as at}from"./ChevronLeft-LzGuMB2U.js";import{i as lt}from"./ChevronRight-B0GGkNIH.js";import{S as X}from"./scroll-area-BliS1K3p.js";import{T as ct,b as mt,a as pt}from"./tooltip-DjHKSu56.js";import{V as ft}from"./view-mode-toggle-DcivAyKH.js";import"./AlertCircle-DM0HzopE.js";import"./Tool01-B21_bo9F.js";import"./SwitchHorizontal01-Y2S_GG49.js";import"./Settings02-B_oiQbnJ.js";import"./XCircle-CSFP3d9h.js";import"./ArrowUpRight-CoxAwUHc.js";import"./ZapSquare-Dnw5HzjO.js";import"./Users03-ClYFKrw1.js";import"./CheckCircle-D5UuMIIH.js";import"./ChevronUp-DZQVuDwV.js";import"./ChevronDown-CW3qqv2x.js";import"./DotsVertical-CGmC-AuM.js";import"./Stars02-D5rVREl5.js";import"./Eye-DRB5PFSd.js";import"./ZoomOut-Cz0dpIX0.js";import"./Globe01-J_5kAZ2G.js";import"./FilterLines-uyaFw99Z.js";import"./Star01-K5E2EVFR.js";import"./Globe04-DzVxOgG6.js";import"./HardDrive-BD491-6A.js";import"./Key01-DpArIwgm.js";import"./LayoutLeft-i76gAzb8.js";import"./LinkExternal01-BGVgwGxd.js";import"./Monitor01-C4cglHcn.js";import"./Sun-0LQy_BRh.js";import"./Palette-NYPFTebi.js";import"./Play-CIhVolnk.js";import"./Plus-DEhikgBr.js";import"./SearchMd-1YEF5GNC.js";import"./Shield01-BrCb9Fbq.js";import"./Stars01-D-F-KCAY.js";import"./Trash01-D4qJL0O5.js";import"./Upload01-B89V4QHh.js";import"./User01-676cwM-d.js";import"./Users01-Wg2zRTbW.js";import"./XClose-DBh1WmP1.js";import"./X-B9D2h3Td.js";import"./Zap-BRPDiIJ_.js";import"./use-clock-tick-BW4BJ8Tt.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-60B0ujzD.js";import"./file-type-icon-BSAfTQY6.js";import"./dialog-fVpV_18N.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-CNWQoCyo.js";import"./use-mcp-client--_ZSmyGd.js";import"./auth-BdbahkUc.js";import"./chat-context-DANWEvls.js";import"./hooks-C3qiFxIG.js";import"./decopilot-sse-pool-CXkkAKQx.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-BZlyJ3on.js";import"./use-collections-CsNhZa6R.js";import"./use-ai-providers-BxzRSeJ0.js";import"./studio-tools-BdR8-wJW.js";import"./use-organization-settings-DQ5ROkEQ.js";import"./shell-layout-CWAvk5Go.js";import"./avatar-3AHqY5tt.js";import"./required-auth-layout-hwOac595.js";import"./use-org-sso-CgbvxseW.js";import"./sheet-ZPG9h0Fj.js";import"./integration-icon-D5R24LMd.js";import"./use-navigate-to-agent-C2eJezkw.js";import"./use-connection-_slG13py.js";import"./use-mcp-prompts-Bi0YM-MV.js";import"./form-dD3QczZa.js";import"./label-DbgfgBJH.js";import"./input-Bk-XA8aE.js";import"./select-8EVXQGwX.js";const dt=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),ut=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),ht=/\/flags\/multivariate\/[^/]+\.ts$/;function xt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function gt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e;if(typeof t!="string"||typeof r!="string")return null;const n=new Date(t),c=new Date(r);return Number.isNaN(n.getTime())||Number.isNaN(c.getTime())||c.getTime()<=n.getTime()?null:{start:n,end:c}}function Z(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(dt.has(r)){const n=gt(e);n&&t.push(n);return}if(ut.has(r)){const n=e.matchers;if(Array.isArray(n))for(const c of n)Z(c,t)}}}function bt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!ht.test(t))return!1;const r=e.variants;return Array.isArray(r)}function yt(e){if(typeof e=="string"){const i=e.trim();if(i.length===0)return null;try{const m=new URL(i).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return i.length>80?`${i.slice(0,77)}…`:i}if(!e||typeof e!="object")return null;const t=e,r=t.config,c=t.desktop?.media,o=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,c?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const i of o)if(typeof i=="string"&&i.trim().length>0)return i.trim();const l=t.__resolveType;if(typeof l=="string"){const s=(l.split("/").pop()??l).replace(/\.(tsx?|jsx?)$/i,"");if(s.length>0)return s}return null}function vt(e){const t=[];for(let r=0;r<e.length;r++){const n=e[r];typeof n=="number"?t.length>0?t[t.length-1]+=`[${n}]`:t.push(`[${n}]`):t.push(n)}return t.join(" · ")}function H(e,t,r,n,c){if(bt(e)){const o=vt(n),l=e.variants,i=e.__resolveType;l.forEach((s,m)=>{if(!s||typeof s!="object")return;const p=s,d=[];if(Z(p.rule,d),d.length===0)return;const x=yt(p.value)??(o||r);for(const g of d)c.push({blockKey:t,blockLabel:r,innerPath:o,variantIndex:m,start:g.start,end:g.end,label:x,flagResolveType:i})});for(let s=0;s<l.length;s++){const m=l[s];m&&typeof m=="object"&&H(m.value,t,r,[...n,"variants",s,"value"],c)}return}if(Array.isArray(e)){for(let o=0;o<e.length;o++)H(e[o],t,r,[...n,o],c);return}if(e&&typeof e=="object")for(const[o,l]of Object.entries(e))o!=="__resolveType"&&H(l,t,r,[...n,o],c)}function Tt(e){if(!e)return[];const t=[];for(const[r,n]of Object.entries(e))H(n,r,xt(r),[],t);return t.sort((r,n)=>r.start.getTime()-n.start.getTime())}function jt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((n,c)=>{const o=c*137.508%360;r.set(n,{bg:`oklch(0.62 0.14 ${o})`,text:"white",border:`oklch(0.50 0.14 ${o})`})}),r}const Nt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function tt(e,t){return e.get(t)??Nt}const kt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],et=["January","February","March","April","May","June","July","August","September","October","November","December"],wt=1440*60*1e3;function L(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function rt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function $(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function I(e,t){const r=new Date(e);return r.setDate(r.getDate()+t),r}function G(e,t){return Math.round((L(e).getTime()-L(t).getTime())/wt)}function _t(e){const t=I(e,-e.getDay()),r=[];for(let n=0;n<6;n++){const c=[];for(let o=0;o<7;o++)c.push(I(t,n*7+o));r.push(c)}for(;r.length>0&&r[r.length-1].every(n=>n.getMonth()!==e.getMonth());)r.pop();return r}function Mt(e,t){const r=L(e[0]),n=I(r,7),c=[];for(const i of t){const s=L(i.start),m=L(i.end);if(m.getTime()<r.getTime()||s.getTime()>=n.getTime())continue;const p=s.getTime()<r.getTime()?r:s,d=m.getTime()>=n.getTime()?I(n,-1):m,u=G(p,r),x=G(d,p)+1;x<=0||c.push({variant:i,startCol:u,span:x})}c.sort((i,s)=>i.startCol-s.startCol||s.span-i.span||i.variant.blockKey.localeCompare(s.variant.blockKey));const o=[],l=[];for(const i of c){let s=o.findIndex(m=>m<=i.startCol);s===-1&&(s=o.length,o.push(0)),o[s]=i.startCol+i.span,l.push({...i,lane:s})}return l}const U=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function St(e){return`${U.format(e.start)} → ${U.format(e.end)}`}function At(e){const t=R.c(17),{variant:r}=e;let n;t[0]!==r.blockLabel?(n=a.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=n):n=t[1];let c;t[2]!==r.innerPath?(c=r.innerPath&&a.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=c):c=t[3];let o;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(o=r.label!==r.blockLabel&&r.label!==r.innerPath&&a.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=o):o=t[7];let l;t[8]!==r?(l=St(r),t[8]=r,t[9]=l):l=t[9];let i;t[10]!==l?(i=a.jsx("div",{className:"mt-1",children:l}),t[10]=l,t[11]=i):i=t[11];let s;return t[12]!==n||t[13]!==c||t[14]!==o||t[15]!==i?(s=a.jsx(pt,{children:a.jsxs("div",{className:"text-xs",children:[n,c,o,i]})}),t[12]=n,t[13]=c,t[14]=o,t[15]=i,t[16]=s):s=t[16],s}function nt(e){const t=R.c(14),{variant:r,color:n,style:c,children:o}=e;let l;t[0]!==n.bg||t[1]!==n.text||t[2]!==c?(l={background:n.bg,color:n.text,borderRadius:4,...c},t[0]=n.bg,t[1]=n.text,t[2]=c,t[3]=l):l=t[3];let i;t[4]!==o?(i=a.jsx("span",{className:"truncate",children:o}),t[4]=o,t[5]=i):i=t[5];let s;t[6]!==l||t[7]!==i?(s=a.jsx(ct,{asChild:!0,children:a.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:l,children:i})}),t[6]=l,t[7]=i,t[8]=s):s=t[8];let m;t[9]!==r?(m=a.jsx(At,{variant:r}),t[9]=r,t[10]=m):m=t[10];let p;return t[11]!==s||t[12]!==m?(p=a.jsxs(mt,{children:[s,m]}),t[11]=s,t[12]=m,t[13]=p):p=t[13],p}function pr(e){const t=R.c(39),{decofile:r}=e,[n,c]=K.useState("calendar"),[o,l]=K.useState(Ct);let i,s;t[0]!==r?(s=Tt(r),i=jt(s.map(Et)),t[0]=r,t[1]=i,t[2]=s):(i=t[1],s=t[2]);const m=i;let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=()=>l(rt(new Date)),t[3]=p):p=t[3];const d=p;let u;t[4]!==n?(u=()=>l(k=>n==="calendar"?$(k,-1):$(k,-3)),t[4]=n,t[5]=u):u=t[5];const x=u;let g;t[6]!==n?(g=()=>l(k=>n==="calendar"?$(k,1):$(k,3)),t[6]=n,t[7]=g):g=t[7];const w=g;let N;t[8]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(O,{variant:"outline",size:"sm",onClick:d,children:"Today"}),t[8]=N):N=t[8];let E;t[9]===Symbol.for("react.memo_cache_sentinel")?(E=a.jsx(at,{size:16}),t[9]=E):E=t[9];let _;t[10]!==x?(_=a.jsx(O,{variant:"ghost",size:"icon",className:"size-8",onClick:x,"aria-label":"Previous",children:E}),t[10]=x,t[11]=_):_=t[11];let f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(lt,{size:16}),t[12]=f):f=t[12];let b;t[13]!==w?(b=a.jsx(O,{variant:"ghost",size:"icon",className:"size-8",onClick:w,"aria-label":"Next",children:f}),t[13]=w,t[14]=b):b=t[14];const M=et[o.getMonth()];let y;t[15]!==o?(y=o.getFullYear(),t[15]=o,t[16]=y):y=t[16];let v;t[17]!==M||t[18]!==y?(v=a.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[M," ",y]}),t[17]=M,t[18]=y,t[19]=v):v=t[19];let T;t[20]!==v||t[21]!==_||t[22]!==b?(T=a.jsxs("div",{className:"flex items-center gap-2",children:[N,_,b,v]}),t[20]=v,t[21]=_,t[22]=b,t[23]=T):T=t[23];let C;t[24]===Symbol.for("react.memo_cache_sentinel")?(C={value:"calendar",icon:a.jsx(Q,{}),label:"Calendar"},t[24]=C):C=t[24];let j;t[25]===Symbol.for("react.memo_cache_sentinel")?(j=[C,{value:"timeline",icon:a.jsx(it,{}),label:"Timeline"}],t[25]=j):j=t[25];let h;t[26]!==n?(h=a.jsx(ft,{value:n,onValueChange:c,options:j}),t[26]=n,t[27]=h):h=t[27];let S;t[28]!==T||t[29]!==h?(S=a.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[T,h]}),t[28]=T,t[29]=h,t[30]=S):S=t[30];let A;t[31]!==m||t[32]!==o||t[33]!==s||t[34]!==n?(A=s.length===0?a.jsx(Dt,{}):n==="calendar"?a.jsx($t,{monthStart:o,variants:s,colorMap:m}):a.jsx(Vt,{monthStart:o,variants:s,colorMap:m}),t[31]=m,t[32]=o,t[33]=s,t[34]=n,t[35]=A):A=t[35];let D;return t[36]!==S||t[37]!==A?(D=a.jsxs("div",{className:"flex h-full w-full flex-col",children:[S,A]}),t[36]=S,t[37]=A,t[38]=D):D=t[38],D}function Et(e){return e.blockKey}function Ct(){return rt(new Date)}function Dt(){const e=R.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=a.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[a.jsx(Q,{size:24,className:"text-muted-foreground/60"}),a.jsx("div",{children:"No scheduled variants."}),a.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]}),e[0]=t):t=e[0],t}const z=20,J=2,q=28;function $t(e){const t=R.c(17),{monthStart:r,variants:n,colorMap:c}=e;let o,l,i,s,m;if(t[0]!==c||t[1]!==r||t[2]!==n){const u=_t(r),x=L(new Date);o=X,m="flex-1 min-h-0",l="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:kt.map(Rt)}),t[8]=i):i=t[8],s=u.map((g,w)=>{const N=Mt(g,n),E=N.reduce(Lt,0),_=q+E*(z+J)+8;return a.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:_},children:[g.map((f,b)=>{const M=f.getMonth()===r.getMonth(),y=f.getTime()===x.getTime();return a.jsx("div",{className:W("border-r last:border-r-0 px-2 pt-1.5 text-xs",M?"bg-background":"bg-muted/30 text-muted-foreground"),children:a.jsx("span",{className:W("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",y&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},b)}),N.map((f,b)=>{const M=tt(c,f.variant.blockKey),y=q+f.lane*(z+J),v=f.startCol/7*100,T=f.span/7*100;return a.jsxs(nt,{variant:f.variant,color:M,style:{top:y,left:`calc(${v}% + 2px)`,width:`calc(${T}% - 4px)`,height:z},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&a.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${w}-${b}`)})]},w)}),t[0]=c,t[1]=r,t[2]=n,t[3]=o,t[4]=l,t[5]=i,t[6]=s,t[7]=m}else o=t[3],l=t[4],i=t[5],s=t[6],m=t[7];let p;t[9]!==l||t[10]!==i||t[11]!==s?(p=a.jsxs("div",{className:l,children:[i,s]}),t[9]=l,t[10]=i,t[11]=s,t[12]=p):p=t[12];let d;return t[13]!==o||t[14]!==m||t[15]!==p?(d=a.jsx(o,{className:m,children:p}),t[13]=o,t[14]=m,t[15]=p,t[16]=d):d=t[16],d}function Lt(e,t){return Math.max(e,t.lane+1)}function Rt(e){return a.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const V=4,Pt=32,P=240;function Vt(e){const t=R.c(27),{monthStart:r,variants:n,colorMap:c}=e,o=r;let l,i,s,m,p,d;if(t[0]!==c||t[1]!==r||t[2]!==o||t[3]!==n){const g=$(r,V),w=new Date,N=new Map;for(const j of n){const h=N.get(j.blockKey)??[];h.push(j),N.set(j.blockKey,h)}const E=Array.from(N.entries()).sort(Ot),_=g.getTime()-o.getTime(),f=j=>(Math.max(o.getTime(),Math.min(g.getTime(),j.getTime()))-o.getTime())/_*100;let b;t[10]!==o?(b=(j,h)=>$(o,h),t[10]=o,t[11]=b):b=t[11];const M=Array.from({length:V},b),y=w.getTime()>=o.getTime()&&w.getTime()<=g.getTime()?f(w):null;l=X,d="flex-1 min-h-0",i="min-w-[900px] relative";let v;t[12]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:{width:P},children:"Variant / Block"}),t[12]=v):v=t[12];let T;t[13]===Symbol.for("react.memo_cache_sentinel")?(T={gridTemplateColumns:`repeat(${V}, minmax(0, 1fr))`},t[13]=T):T=t[13];const C=M.map(It);t[14]!==C?(s=a.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[v,a.jsx("div",{className:"flex-1 grid",style:T,children:C})]}),t[14]=C,t[15]=s):s=t[15],t[16]!==y?(m=y!==null&&a.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${P}px + (100% - ${P}px) * ${y} / 100)`},children:a.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]=y,t[17]=m):m=t[17],p=E.map(j=>{const[h,S]=j,A=tt(c,h),D=S[0]?.blockLabel??h;return a.jsxs("div",{children:[a.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:a.jsx("div",{className:"px-3 truncate",style:{width:P},children:D})}),S.map((k,st)=>a.jsxs("div",{className:"flex border-b items-center",style:{height:Pt},children:[a.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:P},children:[a.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:A.bg}}),a.jsx("span",{className:"truncate text-foreground/80",children:k.label})]}),a.jsxs("div",{className:"relative flex-1 h-full",children:[a.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${V}, minmax(0, 1fr))`},children:M.map(Ht)}),(()=>{const B=Math.max(k.start.getTime(),o.getTime()),F=Math.min(k.end.getTime(),g.getTime());if(F<=B)return null;const Y=f(new Date(B)),ot=f(new Date(F))-Y;return a.jsx(nt,{variant:k,color:A,style:{top:"50%",transform:"translateY(-50%)",left:`${Y}%`,width:`calc(${ot}% - 2px)`,height:22},children:k.label})})()]})]},st))]},h)}),t[0]=c,t[1]=r,t[2]=o,t[3]=n,t[4]=l,t[5]=i,t[6]=s,t[7]=m,t[8]=p,t[9]=d}else l=t[4],i=t[5],s=t[6],m=t[7],p=t[8],d=t[9];let u;t[18]!==i||t[19]!==s||t[20]!==m||t[21]!==p?(u=a.jsxs("div",{className:i,children:[s,m,p]}),t[18]=i,t[19]=s,t[20]=m,t[21]=p,t[22]=u):u=t[22];let x;return t[23]!==l||t[24]!==d||t[25]!==u?(x=a.jsx(l,{className:d,children:u}),t[23]=l,t[24]=d,t[25]=u,t[26]=x):x=t[26],x}function Ht(e,t){return a.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function It(e,t){return a.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[et[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Ot(e,t){return e[0].localeCompare(t[0])}export{pr 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-BMCJlhk3.js";import{b as k,T as I,a as P}from"./tooltip-DjHKSu56.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,8 +56,8 @@
|
|
|
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-
|
|
60
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
59
|
+
<script type="module" crossorigin src="/assets/index-BMCJlhk3.js"></script>
|
|
60
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DDRZvmg6.css">
|
|
61
61
|
</head>
|
|
62
62
|
<body>
|
|
63
63
|
<div id="root"></div>
|