decocms 4.12.2 → 4.12.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-CoC6NNi4.js → AlertCircle-CGKW1QNd.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-N57ebzBw.js → ArrowUpRight-De0t1gnZ.js} +1 -1
- package/dist/client/assets/{CheckCircle-kHQ2dQaQ.js → CheckCircle-DQQKEkJb.js} +1 -1
- package/dist/client/assets/{ChevronDown-P5eS_rdB.js → ChevronDown-CeqvQh4V.js} +1 -1
- package/dist/client/assets/{ChevronRight-CTea8Vrz.js → ChevronRight-9FsoiXvc.js} +1 -1
- package/dist/client/assets/{ChevronUp-BoULmO5v.js → ChevronUp-CB3Hv3o5.js} +1 -1
- package/dist/client/assets/{DotsVertical-pUzhcHbw.js → DotsVertical-Boayc4Fp.js} +1 -1
- package/dist/client/assets/{Eye-XrixTuLa.js → Eye-BwIVxHHO.js} +1 -1
- package/dist/client/assets/{FilterLines-JU5CW8t2.js → FilterLines-CB7m8YjZ.js} +1 -1
- package/dist/client/assets/{Globe01-DA12A_gX.js → Globe01-CQecT39X.js} +1 -1
- package/dist/client/assets/{Globe04-DNnzQTTy.js → Globe04-BeRPQ-_j.js} +1 -1
- package/dist/client/assets/{HardDrive-A9TGjU2B.js → HardDrive-Dw0eIJO1.js} +1 -1
- package/dist/client/assets/{Key01-C3y_5bqB.js → Key01-DU-IFbzl.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CuSrrdEU.js → LayoutLeft-BzxjAhVS.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cwj3iuhi.js → LinkExternal01-1ekUQXQp.js} +1 -1
- package/dist/client/assets/{Monitor01-Cb1N7DaM.js → Monitor01-YzcFqrxd.js} +1 -1
- package/dist/client/assets/{Palette-B_aebYLe.js → Palette-CUU5BlzZ.js} +1 -1
- package/dist/client/assets/{Play-DDWMuBvQ.js → Play-BCr-YtnD.js} +1 -1
- package/dist/client/assets/{Plus-CqV2jOMI.js → Plus-DwA7UhMb.js} +1 -1
- package/dist/client/assets/{SearchLg-Dvo924kw.js → SearchLg-CppN_CCL.js} +1 -1
- package/dist/client/assets/{SearchMd-5ihP7yVQ.js → SearchMd-pEkivK7m.js} +1 -1
- package/dist/client/assets/{Settings02-iYAu_otv.js → Settings02-C1QIKSZR.js} +1 -1
- package/dist/client/assets/{Shield01-BzDwMZxQ.js → Shield01-X3kHyuUo.js} +1 -1
- package/dist/client/assets/{Star01-BkFl7Mhr.js → Star01-BnXWy76P.js} +1 -1
- package/dist/client/assets/{Stars01-D1UrqdL4.js → Stars01-C4LBitNF.js} +1 -1
- package/dist/client/assets/{Stars02-COayjfFf.js → Stars02-Bb5yLyll.js} +1 -1
- package/dist/client/assets/{Sun-Brrmn0Wt.js → Sun-Cnlqpouj.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-dqeKRNpy.js → SwitchHorizontal01-DIgP2O_L.js} +1 -1
- package/dist/client/assets/{Tool01-BWmMjNUF.js → Tool01-BG7uprWH.js} +1 -1
- package/dist/client/assets/{Trash01-66NrnGrm.js → Trash01-Dk0laH7e.js} +1 -1
- package/dist/client/assets/{Upload01-DZiCAA30.js → Upload01-ChukRjyO.js} +1 -1
- package/dist/client/assets/{User01-BU4AVwNl.js → User01-DVkEjp8b.js} +1 -1
- package/dist/client/assets/{Users01-rcwVvUtr.js → Users01-7NniZLVn.js} +1 -1
- package/dist/client/assets/{Users03-DvCgevzn.js → Users03-CBDYQhZy.js} +1 -1
- package/dist/client/assets/{X-DBy4i4Lp.js → X-BIzcAZme.js} +1 -1
- package/dist/client/assets/{XCircle-IJc8zbrl.js → XCircle-g7Cbxt71.js} +1 -1
- package/dist/client/assets/{XClose-CtyL8bYf.js → XClose-Cv3uBWgK.js} +1 -1
- package/dist/client/assets/{Zap-fhgO5dDS.js → Zap-CPyMskjH.js} +1 -1
- package/dist/client/assets/{ZapSquare-CfbyrH4x.js → ZapSquare-x-8Q7o19.js} +1 -1
- package/dist/client/assets/{ZoomOut-C0N4ehtv.js → ZoomOut-KMw705Yp.js} +1 -1
- package/dist/client/assets/{access-gate-Cp9GeAB2.js → access-gate-B2gNgx0l.js} +1 -1
- package/dist/client/assets/{add-section-modal-L1hZYDnC.js → add-section-modal-B-5UjAX8.js} +1 -1
- package/dist/client/assets/{agent-icon-CWPBFzIp.js → agent-icon-8ayyYpA8.js} +1 -1
- package/dist/client/assets/{agents-list-BSN0z_rH.js → agents-list-Ce2sZTeJ.js} +1 -1
- package/dist/client/assets/{ai-providers-DD1AOaea.js → ai-providers-CQ2BOG2-.js} +1 -1
- package/dist/client/assets/{alert-Ddy80ofE.js → alert-Ru6etjId.js} +1 -1
- package/dist/client/assets/{alert-dialog-CNwxdflX.js → alert-dialog-Dr86Dpgk.js} +1 -1
- package/dist/client/assets/{app-editor-2eTZe4V8.js → app-editor-BH4wnMbR.js} +1 -1
- package/dist/client/assets/{auth-catchall-BX9JI1QT.js → auth-catchall-CGEtXcEZ.js} +1 -1
- package/dist/client/assets/{auth-entry-BHvc520u.js → auth-entry-B1xcQYXX.js} +1 -1
- package/dist/client/assets/{auth-DnBe9AUC.js → auth-oTJkD1Y7.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BXqARZ71.js → auth-split-layout-BRhxnK_y.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-u3Bd-L7u.js → authenticate-and-persist-oauth-Crhox7xp.js} +1 -1
- package/dist/client/assets/{automation-list-row-B4HURQxP.js → automation-list-row-CrZQal96.js} +1 -1
- package/dist/client/assets/{automation-runs-CqWPoh43.js → automation-runs-DEYL-5hw.js} +1 -1
- package/dist/client/assets/{automations-f7OFHAXD.js → automations-DggmY0tn.js} +1 -1
- package/dist/client/assets/{avatar-Dx8vsnte.js → avatar-Dyv7MAds.js} +1 -1
- package/dist/client/assets/{badge-BzEWqz_j.js → badge-Ci_i3Cso.js} +1 -1
- package/dist/client/assets/{block-document-DzMywRI1.js → block-document-BADC3UVs.js} +1 -1
- package/dist/client/assets/{brand-context-CyctFpS3.js → brand-context-BowPJ95X.js} +1 -1
- package/dist/client/assets/{buckets-DNWd4v4G.js → buckets-BbvxyKWX.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-Bj5wuN0i.js → bulk-category-panel-DB4Iwdqr.js} +1 -1
- package/dist/client/assets/{capability-load-error-BehOb5ja.js → capability-load-error-LcixR3xa.js} +1 -1
- package/dist/client/assets/{card-go8Ic7Q5.js → card-C3gLJxKe.js} +1 -1
- package/dist/client/assets/{category-editor-DApO1Yn8.js → category-editor-DlXMQrZ1.js} +1 -1
- package/dist/client/assets/{chat-context-BvVy1XII.js → chat-context-DKCM6vJ7.js} +1 -1
- package/dist/client/assets/{checkbox-D_sfTX5R.js → checkbox-BPxgBEcH.js} +1 -1
- package/dist/client/assets/{cli-auth-success-PaSH5Vkc.js → cli-auth-success-B4GQOU1R.js} +1 -1
- package/dist/client/assets/{collection-detail-BJ1XKRbv.js → collection-detail-DApjlslW.js} +1 -1
- package/dist/client/assets/{collection-display-button-gz2ZuERS.js → collection-display-button-Dq0-ZOmD.js} +1 -1
- package/dist/client/assets/{collection-search-C001GdqX.js → collection-search-DFB-4hkl.js} +1 -1
- package/dist/client/assets/{collection-tabs-B_vVgFOt.js → collection-tabs-BFDdiXmr.js} +1 -1
- package/dist/client/assets/{command-B1GcRSWc.js → command-B-qfqi5G.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DB5OC1v0.js → commerce-onboarding-QWha_zDk.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-DKo4CQJQ.js → connect-desktop-dialog-DrSRHwAr.js} +1 -1
- package/dist/client/assets/{connection-card-Bx0N6sI4.js → connection-card-CO6jvVN2.js} +1 -1
- package/dist/client/assets/{connection-detail-Bbou6ZUd.js → connection-detail-_EAoRFtJ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B8AytMOg.js → connection-form-helpers-BIlKyLtD.js} +1 -1
- package/dist/client/assets/{connections-C-x_DlaR.js → connections-CVdCliR3.js} +1 -1
- package/dist/client/assets/{context-menu-DKP9RpkZ.js → context-menu-Jui4NkYZ.js} +1 -1
- package/dist/client/assets/{decopilot-DdwBW5Gf.js → decopilot-DbuKpKP_.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DCzhBR7p.js → decopilot-sse-pool-xfuQBKRn.js} +1 -1
- package/dist/client/assets/{dialog-DBpjZOCu.js → dialog-Bp8Qofa6.js} +1 -1
- package/dist/client/assets/{domain-settings-BknARBcV.js → domain-settings-OjMDIdZL.js} +1 -1
- package/dist/client/assets/{drawer-DPby2hn2.js → drawer-B81lT-0b.js} +1 -1
- package/dist/client/assets/{dropdown-menu-EKQ6fenT.js → dropdown-menu-CvGY0AZp.js} +1 -1
- package/dist/client/assets/{empty-state-YIcxVemW.js → empty-state-DlawBQEA.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CPBy2fVV.js → extract-connection-data-DjIHc9iA.js} +1 -1
- package/dist/client/assets/{file-explorer-B8ZjgRCr.js → file-explorer-DGryL3r8.js} +1 -1
- package/dist/client/assets/{file-type-icon-BoZkRxIi.js → file-type-icon-Bk67wY2k.js} +1 -1
- package/dist/client/assets/{files-D-C7vNw1.js → files-DRJG3mao.js} +1 -1
- package/dist/client/assets/{form-x1EJEVpQ.js → form-C9MU8NGp.js} +1 -1
- package/dist/client/assets/{general-DQG7TPkY.js → general-BPRQN9wx.js} +1 -1
- package/dist/client/assets/{github-repo-picker-DBhdsm3x.js → github-repo-picker-CVrMkHs8.js} +1 -1
- package/dist/client/assets/{hooks-DnXDFfXX.js → hooks-DOV1WI58.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-CQrNEd18.js → import-from-deco-dialog-C-TLIyES.js} +1 -1
- package/dist/client/assets/{index-DweVBJpV.js → index-BLojqpWx.js} +1 -1
- package/dist/client/assets/{index-DWzP3fZX.js → index-BVEVrSPY.js} +1 -1
- package/dist/client/assets/{index-8q5cTvfk.js → index-Bc0MiJ_f.js} +21 -21
- package/dist/client/assets/{index-1C_mGQYK.js → index-BkPvvIpN.js} +1 -1
- package/dist/client/assets/{index-CNk0u5Ob.js → index-BrL3Y9lR.js} +1 -1
- package/dist/client/assets/{index-Cv5o-Jym.js → index-CavDyCES.js} +1 -1
- package/dist/client/assets/{index-DjKzm_7S.js → index-DKeMJate.js} +1 -1
- package/dist/client/assets/{index-D2U9e4pq.js → index-DPKHEkQi.js} +1 -1
- package/dist/client/assets/{index-ChoCV5RI.js → index-Dh1wf_Yc.js} +3 -3
- package/dist/client/assets/{index-BZyixu4W.js → index-DsUe34hl.js} +1 -1
- package/dist/client/assets/{index-DFKc4d3N.js → index-DsigDK5E.js} +1 -1
- package/dist/client/assets/{index-iKSYi9v5.js → index-EapshRPX.js} +1 -1
- package/dist/client/assets/{index-t5khoU6y.js → index-GF8yZO3G.js} +1 -1
- package/dist/client/assets/{index-BTv_6po3.js → index-rXgMJGMm.js} +1 -1
- package/dist/client/assets/{index-redirect-C4UtODiM.js → index-redirect-G0upobyc.js} +1 -1
- package/dist/client/assets/{input-BWamIMbN.js → input-CxDn8vJF.js} +1 -1
- package/dist/client/assets/{integration-icon-EdsPubVt.js → integration-icon-CQdiB_yt.js} +1 -1
- package/dist/client/assets/{label-BZcMuJ0q.js → label-J2zN8FAA.js} +1 -1
- package/dist/client/assets/{login-avUjz7eB.js → login--rbypq0Q.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DCCT0QwD.js → mcp-oauth-BwNlKtaF.js} +1 -1
- package/dist/client/assets/{members-CdekeDqO.js → members-ch84lH49.js} +1 -1
- package/dist/client/assets/{monaco-editor-B3SQ_IFm.js → monaco-editor-DOtCsGMo.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CZoNTUjo.js → monitoring-stats-row-eTdKz8E1.js} +1 -1
- package/dist/client/assets/{oauth-callback-BKoLh3YW.js → oauth-callback-D6uaeeK2.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-tPz-_25R.js → oauth-callback-ai-provider-BJw7NN1F.js} +1 -1
- package/dist/client/assets/{onboarding-DTsyZZax.js → onboarding-BbNFCcTj.js} +1 -1
- package/dist/client/assets/{org-install-CCP2NMYy.js → org-install-BY66Wc2R.js} +1 -1
- package/dist/client/assets/{org-layout-CSn0d-8X.js → org-layout-CYnrHmhI.js} +1 -1
- package/dist/client/assets/{organization-choice-CvQmoyRd.js → organization-choice-C4KTyF8-.js} +1 -1
- package/dist/client/assets/{page-seo-form-f84r-XPs.js → page-seo-form-CUebtrzC.js} +1 -1
- package/dist/client/assets/page-seo-sheet-BrI8wNCx.js +1 -0
- package/dist/client/assets/{popover-CUdzevRE.js → popover-B8NWkKYX.js} +1 -1
- package/dist/client/assets/{post-editor-MWqisYd8.js → post-editor-C6EobnpW.js} +1 -1
- package/dist/client/assets/{primitives-BzNkeic7.js → primitives-DS1OvCuM.js} +1 -1
- package/dist/client/assets/{profile-Cvi05jzq.js → profile-NHgLR4CO.js} +1 -1
- package/dist/client/assets/project-app-view-Bktse8wv.js +1 -0
- package/dist/client/assets/record-editor-BWfkJp7z.js +1 -0
- package/dist/client/assets/registry-DTQeEDob.js +2 -0
- package/dist/client/assets/{registry-layout-CZIha2cO.js → registry-layout-ow9o6qGl.js} +1 -1
- package/dist/client/assets/{require-capability-Dr8mj9VJ.js → require-capability-CL22-uJw.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CS_iMldS.js → required-auth-layout-CKgxhvI4.js} +1 -1
- package/dist/client/assets/{reset-password-DxhV1tKz.js → reset-password-9g5n9Ipj.js} +1 -1
- package/dist/client/assets/{roles-BKAYDZzp.js → roles-iELY6EZv.js} +1 -1
- package/dist/client/assets/{scroll-area-C-3TY2YE.js → scroll-area-DpFWbTth.js} +1 -1
- package/dist/client/assets/{search-input-BKD3oaXK.js → search-input-DGLLpTxt.js} +1 -1
- package/dist/client/assets/{secrets-DZxFwhRj.js → secrets-K8LFvoIh.js} +1 -1
- package/dist/client/assets/{sections-editor-Hww0_uGb.js → sections-editor-Cw2YCLOb.js} +1 -1
- package/dist/client/assets/{select-C-6PWfXp.js → select-B3WBQFbH.js} +1 -1
- package/dist/client/assets/{select-model-DGiOgK0q.js → select-model-COfZ1Uy_.js} +1 -1
- package/dist/client/assets/{seo-editor-BThpvCjT.js → seo-editor-DcJsb2NV.js} +1 -1
- package/dist/client/assets/{settings-layout-CwGAAGlU.js → settings-layout-mlcWg3es.js} +1 -1
- package/dist/client/assets/{settings-section-CSq9f2ez.js → settings-section-DGlHD6Wg.js} +1 -1
- package/dist/client/assets/{sheet-B7Lez_S9.js → sheet-BZyUitw4.js} +1 -1
- package/dist/client/assets/{shell-controls-u_iHFGU5.js → shell-controls-6Kd_9zNS.js} +1 -1
- package/dist/client/assets/{shell-layout-DG441JjL.js → shell-layout-v9oVR50B.js} +1 -1
- package/dist/client/assets/{shell-route-loading-BpdXUJEZ.js → shell-route-loading-co5KnXeW.js} +1 -1
- package/dist/client/assets/{sidebar-BXZd-GVd.js → sidebar-2mSQJB5R.js} +1 -1
- package/dist/client/assets/{skeleton-CgP3V6Ja.js → skeleton-DoRzTsRP.js} +1 -1
- package/dist/client/assets/{sortable.esm-D9jMeHV1.js → sortable.esm-DzId-A9U.js} +1 -1
- package/dist/client/assets/{sso-Co77Yyyt.js → sso-B_mEkRZC.js} +1 -1
- package/dist/client/assets/{store-CmSf-e73.js → store-BK7St_Nc.js} +1 -1
- package/dist/client/assets/store-registry-DTVMkQZU.js +2 -0
- package/dist/client/assets/{studio-tools-C9NKrR5C.js → studio-tools-iyWxXqvc.js} +1 -1
- package/dist/client/assets/{switch-Cu2RC5pZ.js → switch-BuAynWRE.js} +1 -1
- package/dist/client/assets/{table-DW50z9UL.js → table-N90y2PaF.js} +1 -1
- package/dist/client/assets/{tabs-T8F8VZUh.js → tabs-CCtFdI-5.js} +1 -1
- package/dist/client/assets/{task-status-DEWrBULH.js → task-status-Dy_flxQ3.js} +1 -1
- package/dist/client/assets/{textarea-BK_9gLq0.js → textarea-CPTAlQO5.js} +1 -1
- package/dist/client/assets/{toggle-group-e24ylmWs.js → toggle-group-DRpKpb9x.js} +1 -1
- package/dist/client/assets/{toolbar-BhxpIEsu.js → toolbar-BO9jW4Pe.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-B27j_4W9.js → toolbar-icon-button-DW0_LEDw.js} +1 -1
- package/dist/client/assets/{tools-list-DIWh8Oky.js → tools-list-S0yXPuV7.js} +1 -1
- package/dist/client/assets/{tooltip-D0ODOH5L.js → tooltip-Bq0K89qS.js} +1 -1
- package/dist/client/assets/{types-BOo0uLec.js → types-lSgF3Dzm.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DjRW0TN5.js → use-ai-providers-CBpdFMGA.js} +1 -1
- package/dist/client/assets/{use-automations-CS_Nu0ry.js → use-automations-e-KSP62X.js} +1 -1
- package/dist/client/assets/{use-capability-DbvoEB-N.js → use-capability-u6ZhBHT5.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DicB8A5f.js → use-clock-tick-cgdHwKla.js} +1 -1
- package/dist/client/assets/{use-collections-CRpuCmSx.js → use-collections-BXhy4R1O.js} +1 -1
- package/dist/client/assets/{use-connection-homG8xHs.js → use-connection-DS6bwrJI.js} +1 -1
- package/dist/client/assets/{use-copy-Dq7f5A4R.js → use-copy-DtPej9h-.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CMc5HT0P.js → use-create-virtual-mcp-DlyW9uLD.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DTd4mDNn.js → use-debounced-autosave-CPhU5Yhu.js} +1 -1
- package/dist/client/assets/{use-debounced-value-hi69DHr0.js → use-debounced-value-B2GlF5LL.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-2XegsErL.js → use-decopilot-events-ClF3DQ6j.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CP-e1UsZ.js → use-delete-connection-CI_3s5ZL.js} +1 -1
- package/dist/client/assets/{use-file-configs-BM_cxwPW.js → use-file-configs-CQa0Mt-s.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Cj4qMXbT.js → use-infinite-scroll-fuNxtbL1.js} +1 -1
- package/dist/client/assets/{use-join-requests-DGz2R0VR.js → use-join-requests-Dq0d14WP.js} +1 -1
- package/dist/client/assets/{use-mcp-client-C9rZ5q5t.js → use-mcp-client-CWEgviZ_.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Bpm2lRaW.js → use-mcp-prompts-DN57Hs8h.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BP-8Q6Ct.js → use-mcp-tools-CcnAZq2y.js} +1 -1
- package/dist/client/assets/{use-members-C6DHv6rG.js → use-members-Bsxd0nfd.js} +1 -1
- package/dist/client/assets/{use-mobile-BzlsCeN5.js → use-mobile-D68YaoBi.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-B4oyUjLa.js → use-navigate-to-agent-bSIJCOWs.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BqLuGuER.js → use-org-auth-client-Cyk4Lh-v.js} +1 -1
- package/dist/client/assets/{use-org-fs-wGkM6ZHK.js → use-org-fs-erXzoiSu.js} +1 -1
- package/dist/client/assets/{use-org-sso-DNIk-jwi.js → use-org-sso-CDjE4G08.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CE_g_E6L.js → use-organization-roles-DdoWD7Yx.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DmBEnT-y.js → use-organization-settings-C4kj6FhQ.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DLscAznw.js → use-registry-connections-Cgir86CE.js} +1 -1
- package/dist/client/assets/{use-secrets-C8LfdaIH.js → use-secrets-7sv9HFbx.js} +1 -1
- package/dist/client/assets/{use-status-sounds-B-cyYEUC.js → use-status-sounds-BQgtLiub.js} +1 -1
- package/dist/client/assets/{use-view-mode-DKBazBz2.js → use-view-mode-BP-_24QU.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-E-pwiiFM.js → use-virtual-mcp-CWJk_JPJ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Dn1sPG38.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-VC6VnTT-.js +1 -0
- package/dist/client/assets/{useSuspenseQueries-CV-fvbQG.js → useSuspenseQueries-DGGUguVZ.js} +1 -1
- package/dist/client/assets/{variant-calendar-ByJrzabj.js → variant-calendar-BtxJq6E3.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-qIYOoB-v.js → view-mode-toggle-DJhg5GUZ.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +65 -65
- package/dist/server/server.js +75 -75
- package/package.json +1 -1
- package/dist/client/assets/page-seo-sheet-BtqV4Z8p.js +0 -1
- package/dist/client/assets/project-app-view-Cwvch2dA.js +0 -1
- package/dist/client/assets/record-editor-BIJZRDg_.js +0 -1
- package/dist/client/assets/registry-CrX03JF2.js +0 -2
- package/dist/client/assets/store-registry-CWYXcSAH.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DRJEgKeg.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BYH-CQed.js +0 -1
|
@@ -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-Dh1wf_Yc.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-CE_g_E6L.js → use-organization-roles-DdoWD7Yx.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,j as n,l as v,D as T,k as B,K as P}from"./index-
|
|
1
|
+
import{c as S,j as n,l as v,D as T,k as B,K as P}from"./index-Dh1wf_Yc.js";import{e as k,d as I,a as A,T as L,b as z,c as O}from"./table-N90y2PaF.js";import{a as K,n as D}from"./SwitchHorizontal01-DIgP2O_L.js";import{u as E}from"./use-org-auth-client-Cyk4Lh-v.js";function H(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(D,{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 w;e[13]!==f?(w=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]=w):w=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(b=>n.jsx(L,{className:v("px-5 py-4 h-16 align-middle text-sm text-foreground",b.cellClassName,b.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:v(b.wrap?"w-full":"min-w-0 w-full",!b.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:b.render?b.render(r):b.accessor?b.accessor(r):null})},b.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]!==w||e[27]!==C?(j=n.jsxs(O,{className:"w-full border-collapse",children:[w,C]}),e[26]=w,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(H,{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=E(),{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:w,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:w.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,D as g,k as E,m as I,d as R,r as b}from"./index-
|
|
1
|
+
import{K as d,c as l,D as g,k as E,m as I,d as R,r as b}from"./index-Dh1wf_Yc.js";import{W as G}from"./use-mcp-client-CWEgviZ_.js";import{c as M,u as Q}from"./studio-tools-iyWxXqvc.js";const N={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null},O={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 M(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...N,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=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 W(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=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??N,...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}}:O}function Z(){const{data:t}=h(P);return t??O}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,w as o,B as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,D as R}from"./index-
|
|
1
|
+
import{c as C,D as R}from"./index-Dh1wf_Yc.js";import{u as p}from"./use-connection-DS6bwrJI.js";import{W as a}from"./use-mcp-client-CWEgviZ_.js";import{f as y}from"./use-organization-settings-C4kj6FhQ.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,D as a,K as c,q as f,m as y,d as m}from"./index-
|
|
1
|
+
import{c as r,D as a,K as c,q as f,m as y,d as m}from"./index-Dh1wf_Yc.js";import{u as l}from"./studio-tools-iyWxXqvc.js";function C(){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 p(){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{p as a,C as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,J as u}from"./index-
|
|
1
|
+
import{c as r,J as u}from"./index-Dh1wf_Yc.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-ClF3DQ6j.js";const p=new Set(["completed","failed","requires_action"]);function q(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{q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,r as f}from"./index-
|
|
1
|
+
import{c as p,r as f}from"./index-Dh1wf_Yc.js";import{u as w}from"./use-mobile-D68YaoBi.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,D as d,aK as p,k as P}from"./index-
|
|
1
|
+
import{c as a,D as d,aK as p,k as P}from"./index-Dh1wf_Yc.js";import{b as L,a as S,u as V,c as _}from"./use-collections-BXhy4R1O.js";import{S as g,u as I}from"./use-mcp-client-CWEgviZ_.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-fuNxtbL1.js";import{cJ as i}from"./index-Dh1wf_Yc.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-fuNxtbL1.js";import{cJ as u,aC as n}from"./index-Dh1wf_Yc.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
package/dist/client/assets/{useSuspenseQueries-CV-fvbQG.js → useSuspenseQueries-DGGUguVZ.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ao as Q,ap as y,aq as w,ar as S,as as E,m as q,at as k,au as x,r as p,av as M,aw as H,ax as B,ay as L,az as O,aA as P,aB as A,aC as T}from"./index-
|
|
1
|
+
import{ao as Q,ap as y,aq as w,ar as S,as as E,m as q,at as k,au as x,r as p,av as M,aw as H,ax as B,ay as L,az as O,aA as P,aB as A,aC as T}from"./index-Dh1wf_Yc.js";function R(t,e){const s=new Set(e);return t.filter(r=>!s.has(r))}function z(t,e,s){const r=t.slice(0);return r[e]=s,r}var D=class extends Q{#i;#e;#n;#r;#s;#t;#u;#o;#a;#h=[];constructor(t,e,s){super(),this.#i=t,this.#r=s,this.#n=[],this.#s=[],this.#e=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(t=>{t.subscribe(e=>{this.#f(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(t=>{t.destroy()})}setQueries(t,e){this.#n=t,this.#r=e,y.batch(()=>{const s=this.#s,r=this.#d(this.#n);r.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const i=r.map(u=>u.observer),n=i.map(u=>u.getCurrentResult()),o=s.length!==i.length,c=i.some((u,f)=>u!==s[f]),d=o||c,b=d?!0:n.some((u,f)=>{const g=this.#e[f];return!g||!w(u,g)});!d&&!b||(d&&(this.#h=r,this.#s=i),this.#e=n,this.hasListeners()&&(d&&(R(s,i).forEach(u=>{u.destroy()}),R(i,s).forEach(u=>{u.subscribe(f=>{this.#f(u,f)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(t=>t.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(t,e){const s=this.#d(t),r=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[r,n=>this.#l(n??r,e,i),()=>this.#c(r,s)]}#c(t,e){return e.map((s,r)=>{const i=t[r];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{e.forEach(o=>{o.observer.trackProp(n)})})})}#l(t,e,s){if(e){const r=this.#a,i=s!==void 0&&r!==void 0&&(r.length!==s.length||s.some((n,o)=>n!==r[o]));return(!this.#t||this.#e!==this.#o||i||e!==this.#u)&&(this.#u=e,this.#o=this.#e,s!==void 0&&(this.#a=s),this.#t=S(this.#t,e(t))),this.#t}return t}#b(){return this.#r?.combine!==void 0&&this.#s.some((t,e)=>t.options.suspense&&this.#e[e]?.data===void 0)}#d(t){const e=new Map;this.#s.forEach(r=>{const i=r.options.queryHash;if(!i)return;const n=e.get(i);n?n.push(r):e.set(i,[r])});const s=[];return t.forEach(r=>{const i=this.#i.defaultQueryOptions(r),o=e.get(i.queryHash)?.shift()??new E(this.#i,i);s.push({defaultedQueryOptions:i,observer:o})}),s}#f(t,e){const s=this.#s.indexOf(t);s!==-1&&(this.#e=z(this.#e,s,e),this.#p())}#p(){if(this.hasListeners()){const t=this.#c(this.#e,this.#h),e=this.#b(),s=this.#t,r=e?s:this.#l(t,this.#r?.combine);(e||s!==r)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#e)})})}}};function I({queries:t,...e},s){const r=q(s),i=k(),n=x(),o=p.useMemo(()=>t.map(a=>{const h=r.defaultQueryOptions(a);return h._optimisticResults=i?"isRestoring":"optimistic",h}),[t,r,i]);o.forEach(a=>{M(a);const h=r.getQueryCache().get(a.queryHash);H(a,n,h)}),B(n);const[c]=p.useState(()=>new D(r,o,e)),[d,b,u]=c.getOptimisticResult(o,e.combine),f=!i&&e.subscribed!==!1;p.useSyncExternalStore(p.useCallback(a=>f?c.subscribe(y.batchCalls(a)):L,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(o,e)},[o,e,c]);const m=d.some((a,h)=>O(o[h],a))?d.flatMap((a,h)=>{const l=o[h];if(l&&O(l,a)){const C=new E(r,l);return P(l,C,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=d.find((a,h)=>{const l=o[h];return l&&A({result:a,errorResetBoundary:n,throwOnError:l.throwOnError,query:r.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(v?.error)throw v.error;return b(u())}function j(t,e){return I({...t,queries:t.queries.map(s=>({...s,suspense:!0,throwOnError:T,enabled:!0,placeholderData:void 0}))},e)}export{j as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,r as U,j as o,l as J,B as Y}from"./index-ChoCV5RI.js";import{n as ct,X as et,e as mt}from"./agent-icon-CWPBFzIp.js";import{i as dt}from"./ChevronRight-CTea8Vrz.js";import{L as ft}from"./label-BZcMuJ0q.js";import{S as nt}from"./scroll-area-C-3TY2YE.js";import{S as pt}from"./switch-Cu2RC5pZ.js";import{a as ut,T as ht,b as gt}from"./tooltip-D0ODOH5L.js";import{V as xt}from"./view-mode-toggle-qIYOoB-v.js";import"./AlertCircle-CoC6NNi4.js";import"./Tool01-BWmMjNUF.js";import"./SwitchHorizontal01-dqeKRNpy.js";import"./Settings02-iYAu_otv.js";import"./XCircle-IJc8zbrl.js";import"./ArrowUpRight-N57ebzBw.js";import"./ZapSquare-CfbyrH4x.js";import"./Users03-DvCgevzn.js";import"./CheckCircle-kHQ2dQaQ.js";import"./ChevronUp-BoULmO5v.js";import"./ChevronDown-P5eS_rdB.js";import"./DotsVertical-pUzhcHbw.js";import"./Stars02-COayjfFf.js";import"./Eye-XrixTuLa.js";import"./ZoomOut-C0N4ehtv.js";import"./Globe01-DA12A_gX.js";import"./FilterLines-JU5CW8t2.js";import"./Star01-BkFl7Mhr.js";import"./Globe04-DNnzQTTy.js";import"./HardDrive-A9TGjU2B.js";import"./Key01-C3y_5bqB.js";import"./LayoutLeft-CuSrrdEU.js";import"./LinkExternal01-Cwj3iuhi.js";import"./Monitor01-Cb1N7DaM.js";import"./Sun-Brrmn0Wt.js";import"./Palette-B_aebYLe.js";import"./Play-DDWMuBvQ.js";import"./Plus-CqV2jOMI.js";import"./SearchLg-Dvo924kw.js";import"./SearchMd-5ihP7yVQ.js";import"./Shield01-BzDwMZxQ.js";import"./Stars01-D1UrqdL4.js";import"./Trash01-66NrnGrm.js";import"./Upload01-DZiCAA30.js";import"./User01-BU4AVwNl.js";import"./Users01-rcwVvUtr.js";import"./XClose-CtyL8bYf.js";import"./X-DBy4i4Lp.js";import"./Zap-fhgO5dDS.js";import"./use-clock-tick-DicB8A5f.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dq7f5A4R.js";import"./file-type-icon-BoZkRxIi.js";import"./dialog-DBpjZOCu.js";import"./use-mobile-BzlsCeN5.js";import"./tab-id-AX1D_RMI.js";import"./content-blocks-o63cs2vh.js";import"./types-BOo0uLec.js";import"./use-mcp-client-C9rZ5q5t.js";import"./auth-DnBe9AUC.js";import"./chat-context-BvVy1XII.js";import"./hooks-DnXDFfXX.js";import"./decopilot-sse-pool-DCzhBR7p.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-E-pwiiFM.js";import"./use-collections-CRpuCmSx.js";import"./use-ai-providers-DjRW0TN5.js";import"./studio-tools-C9NKrR5C.js";import"./use-decopilot-events-2XegsErL.js";import"./use-organization-settings-DmBEnT-y.js";import"./shell-layout-DG441JjL.js";import"./avatar-Dx8vsnte.js";import"./alert-dialog-CNwxdflX.js";import"./required-auth-layout-CS_iMldS.js";import"./use-org-sso-DNIk-jwi.js";import"./sheet-B7Lez_S9.js";import"./integration-icon-EdsPubVt.js";import"./use-navigate-to-agent-B4oyUjLa.js";import"./use-connection-homG8xHs.js";import"./use-mcp-prompts-Bpm2lRaW.js";import"./form-x1EJEVpQ.js";import"./input-BWamIMbN.js";import"./select-C-6PWfXp.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$/,Nt=/\/flags\/multivariate\.ts$/;function wt(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 St(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=Nt.test(m)?"":St(r);s.forEach((c,i)=>{if(!c||typeof c!="object")return;const d=c,f=[];if(rt(d.rule,f),f.length===0)return;const x=Mt(d.value)??(a||n);for(const h of f)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 Et(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e))W(r,n,wt(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 X(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),f=P(i.end);if(f.getTime()<n.getTime()||d.getTime()>=r.getTime())continue;const u=d.getTime()<n.getTime()?n:d,x=f.getTime()>=r.getTime()?z(r,-1):f,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=X(new Date(b),n),p=Math.max(X(new Date(y),n)-T,0);p<=0||m.push({variant:i,startCol:h,span:g,leftUnits:T,widthUnits:p})}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(f=>f<=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 Q=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 ${Q}px, #000 calc(100% - ${Q}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 f=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]!==f?(h=f&&{maskImage:f,WebkitMaskImage:f},t[7]=f,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 p;return t[23]!==T||t[24]!==y?(p=o.jsxs(ht,{children:[y,T]}),t[23]=T,t[24]=y,t[25]=p):p=t[25],p}function Sn(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,f;if(t[0]!==n||t[1]!==a){const E=Et(n);i=E.filter(Ht).length,f=a?E:E.filter(Vt),d=At(f.map(Ft)),t[0]=n,t[1]=a,t[2]=i,t[3]=d,t[4]=f}else i=t[2],d=t[3],f=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(E=>r==="calendar"?F(E,-1):F(E,-3)),t[6]=r,t[7]=g):g=t[7];const b=g;let y;t[8]!==r?(y=()=>m(E=>r==="calendar"?F(E,1):F(E,3)),t[8]=r,t[9]=y):y=t[9];const T=y;let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(Y,{variant:"outline",size:"sm",onClick:h,children:"Today"}),t[10]=p):p=t[10];let w;t[11]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(ct,{size:16}),t[11]=w):w=t[11];let k;t[12]!==b?(k=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:b,"aria-label":"Previous",children:w}),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 S;t[17]!==s?(S=s.getFullYear(),t[17]=s,t[18]=S):S=t[18];let v;t[19]!==A||t[20]!==S?(v=o.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[A," ",S]}),t[19]=A,t[20]=S,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:[p,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(pt,{id:"show-ongoing",checked:a,onCheckedChange:c}),o.jsxs(ft,{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 N;t[31]!==r?(N=o.jsx(xt,{value:r,onValueChange:l,options:I}),t[31]=r,t[32]=N):N=t[32];let R;t[33]!==D||t[34]!==N?(R=o.jsxs("div",{className:"flex items-center gap-4",children:[D,N]}),t[33]=D,t[34]=N,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]!==f||t[44]!==r?(C=f.length===0?o.jsx(Wt,{hiddenOngoing:a?0:i}):r==="calendar"?o.jsx(Ut,{monthStart:s,variants:f,colorMap:u}):o.jsx(Jt,{monthStart:s,variants:f,colorMap:u}),t[39]=u,t[40]=s,t[41]=i,t[42]=a,t[43]=f,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((p,w)=>{const k=p.getMonth()===n.getMonth(),_=p.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:p.getDate()})},w)}),b.map((p,w)=>{const k=st(l,p.variant.blockKey),_=tt+p.lane*(G+Z),M=p.leftUnits/7*100,A=p.widthUnits/7*100,S=p.variant.openStart&&g===0,v=p.variant.openEnd&&g===u.length-1;return o.jsxs(lt,{variant:p.variant,color:k,fadeStart:S,fadeEnd:v,style:{top:_,left:`calc(${M}% + 2px)`,width:`calc(${A}% - 4px)`,minWidth:zt,height:G},children:[p.variant.blockLabel,p.variant.label!==p.variant.blockLabel&&o.jsxs("span",{className:"opacity-70",children:[" · ",p.variant.label]})]},`${g}-${w}`)})]},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 f;return t[13]!==s||t[14]!==i||t[15]!==d?(f=o.jsx(s,{className:i,children:d}),t[13]=s,t[14]=i,t[15]=d,t[16]=f):f=t[16],f}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,f;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(Qt),T=h.getTime()-s.getTime(),p=v=>(Math.max(s.getTime(),Math.min(h.getTime(),v.getTime()))-s.getTime())/T*100;let w;t[10]!==s?(w=(v,j)=>F(s,j),t[10]=s,t[11]=w):w=t[11];const k=Array.from({length:B},w),_=g.getTime()>=s.getTime()&&g.getTime()<=h.getTime()?p(g):null;m=nt,f="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 S=k.map(qt);t[14]!==S?(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:S})]}),t[14]=S,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((N,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:N.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(Xt)}),(()=>{const $=Math.max(N.start.getTime(),s.getTime()),C=Math.min(N.end.getTime(),h.getTime());if(C<=$)return null;const O=p(new Date($)),E=p(new Date(C))-O;return o.jsx(lt,{variant:N,color:L,fadeStart:N.openStart,fadeEnd:N.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${E}% - 2px)`,height:22},children:N.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]=f}else m=t[4],a=t[5],c=t[6],i=t[7],d=t[8],f=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]!==f||t[25]!==u?(x=o.jsx(m,{className:f,children:u}),t[23]=m,t[24]=f,t[25]=u,t[26]=x):x=t[26],x}function Xt(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 Qt(e,t){return e[0].localeCompare(t[0])}export{Sn as VariantCalendar};
|
|
1
|
+
import{c as V,r as U,j as o,l as J,B as Y}from"./index-Dh1wf_Yc.js";import{n as ct,X as et,e as mt}from"./agent-icon-8ayyYpA8.js";import{i as dt}from"./ChevronRight-9FsoiXvc.js";import{L as ft}from"./label-J2zN8FAA.js";import{S as nt}from"./scroll-area-DpFWbTth.js";import{S as pt}from"./switch-BuAynWRE.js";import{a as ut,T as ht,b as gt}from"./tooltip-Bq0K89qS.js";import{V as xt}from"./view-mode-toggle-DJhg5GUZ.js";import"./AlertCircle-CGKW1QNd.js";import"./Tool01-BG7uprWH.js";import"./SwitchHorizontal01-DIgP2O_L.js";import"./Settings02-C1QIKSZR.js";import"./XCircle-g7Cbxt71.js";import"./ArrowUpRight-De0t1gnZ.js";import"./ZapSquare-x-8Q7o19.js";import"./Users03-CBDYQhZy.js";import"./CheckCircle-DQQKEkJb.js";import"./ChevronUp-CB3Hv3o5.js";import"./ChevronDown-CeqvQh4V.js";import"./DotsVertical-Boayc4Fp.js";import"./Stars02-Bb5yLyll.js";import"./Eye-BwIVxHHO.js";import"./ZoomOut-KMw705Yp.js";import"./Globe01-CQecT39X.js";import"./FilterLines-CB7m8YjZ.js";import"./Star01-BnXWy76P.js";import"./Globe04-BeRPQ-_j.js";import"./HardDrive-Dw0eIJO1.js";import"./Key01-DU-IFbzl.js";import"./LayoutLeft-BzxjAhVS.js";import"./LinkExternal01-1ekUQXQp.js";import"./Monitor01-YzcFqrxd.js";import"./Sun-Cnlqpouj.js";import"./Palette-CUU5BlzZ.js";import"./Play-BCr-YtnD.js";import"./Plus-DwA7UhMb.js";import"./SearchLg-CppN_CCL.js";import"./SearchMd-pEkivK7m.js";import"./Shield01-X3kHyuUo.js";import"./Stars01-C4LBitNF.js";import"./Trash01-Dk0laH7e.js";import"./Upload01-ChukRjyO.js";import"./User01-DVkEjp8b.js";import"./Users01-7NniZLVn.js";import"./XClose-Cv3uBWgK.js";import"./X-BIzcAZme.js";import"./Zap-CPyMskjH.js";import"./use-clock-tick-cgdHwKla.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DtPej9h-.js";import"./file-type-icon-Bk67wY2k.js";import"./dialog-Bp8Qofa6.js";import"./use-mobile-D68YaoBi.js";import"./tab-id-AX1D_RMI.js";import"./content-blocks-o63cs2vh.js";import"./types-lSgF3Dzm.js";import"./use-mcp-client-CWEgviZ_.js";import"./auth-oTJkD1Y7.js";import"./chat-context-DKCM6vJ7.js";import"./hooks-DOV1WI58.js";import"./decopilot-sse-pool-xfuQBKRn.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-CWJk_JPJ.js";import"./use-collections-BXhy4R1O.js";import"./use-ai-providers-CBpdFMGA.js";import"./studio-tools-iyWxXqvc.js";import"./use-decopilot-events-ClF3DQ6j.js";import"./use-organization-settings-C4kj6FhQ.js";import"./shell-layout-v9oVR50B.js";import"./avatar-Dyv7MAds.js";import"./alert-dialog-Dr86Dpgk.js";import"./required-auth-layout-CKgxhvI4.js";import"./use-org-sso-CDjE4G08.js";import"./sheet-BZyUitw4.js";import"./integration-icon-CQdiB_yt.js";import"./use-navigate-to-agent-bSIJCOWs.js";import"./use-connection-DS6bwrJI.js";import"./use-mcp-prompts-DN57Hs8h.js";import"./form-C9MU8NGp.js";import"./input-CxDn8vJF.js";import"./select-B3WBQFbH.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$/,Nt=/\/flags\/multivariate\.ts$/;function wt(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 St(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=Nt.test(m)?"":St(r);s.forEach((c,i)=>{if(!c||typeof c!="object")return;const d=c,f=[];if(rt(d.rule,f),f.length===0)return;const x=Mt(d.value)??(a||n);for(const h of f)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 Et(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e))W(r,n,wt(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 X(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),f=P(i.end);if(f.getTime()<n.getTime()||d.getTime()>=r.getTime())continue;const u=d.getTime()<n.getTime()?n:d,x=f.getTime()>=r.getTime()?z(r,-1):f,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=X(new Date(b),n),p=Math.max(X(new Date(y),n)-T,0);p<=0||m.push({variant:i,startCol:h,span:g,leftUnits:T,widthUnits:p})}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(f=>f<=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 Q=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 ${Q}px, #000 calc(100% - ${Q}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 f=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]!==f?(h=f&&{maskImage:f,WebkitMaskImage:f},t[7]=f,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 p;return t[23]!==T||t[24]!==y?(p=o.jsxs(ht,{children:[y,T]}),t[23]=T,t[24]=y,t[25]=p):p=t[25],p}function Sn(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,f;if(t[0]!==n||t[1]!==a){const E=Et(n);i=E.filter(Ht).length,f=a?E:E.filter(Vt),d=At(f.map(Ft)),t[0]=n,t[1]=a,t[2]=i,t[3]=d,t[4]=f}else i=t[2],d=t[3],f=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(E=>r==="calendar"?F(E,-1):F(E,-3)),t[6]=r,t[7]=g):g=t[7];const b=g;let y;t[8]!==r?(y=()=>m(E=>r==="calendar"?F(E,1):F(E,3)),t[8]=r,t[9]=y):y=t[9];const T=y;let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(Y,{variant:"outline",size:"sm",onClick:h,children:"Today"}),t[10]=p):p=t[10];let w;t[11]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(ct,{size:16}),t[11]=w):w=t[11];let k;t[12]!==b?(k=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:b,"aria-label":"Previous",children:w}),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 S;t[17]!==s?(S=s.getFullYear(),t[17]=s,t[18]=S):S=t[18];let v;t[19]!==A||t[20]!==S?(v=o.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[A," ",S]}),t[19]=A,t[20]=S,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:[p,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(pt,{id:"show-ongoing",checked:a,onCheckedChange:c}),o.jsxs(ft,{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 N;t[31]!==r?(N=o.jsx(xt,{value:r,onValueChange:l,options:I}),t[31]=r,t[32]=N):N=t[32];let R;t[33]!==D||t[34]!==N?(R=o.jsxs("div",{className:"flex items-center gap-4",children:[D,N]}),t[33]=D,t[34]=N,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]!==f||t[44]!==r?(C=f.length===0?o.jsx(Wt,{hiddenOngoing:a?0:i}):r==="calendar"?o.jsx(Ut,{monthStart:s,variants:f,colorMap:u}):o.jsx(Jt,{monthStart:s,variants:f,colorMap:u}),t[39]=u,t[40]=s,t[41]=i,t[42]=a,t[43]=f,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((p,w)=>{const k=p.getMonth()===n.getMonth(),_=p.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:p.getDate()})},w)}),b.map((p,w)=>{const k=st(l,p.variant.blockKey),_=tt+p.lane*(G+Z),M=p.leftUnits/7*100,A=p.widthUnits/7*100,S=p.variant.openStart&&g===0,v=p.variant.openEnd&&g===u.length-1;return o.jsxs(lt,{variant:p.variant,color:k,fadeStart:S,fadeEnd:v,style:{top:_,left:`calc(${M}% + 2px)`,width:`calc(${A}% - 4px)`,minWidth:zt,height:G},children:[p.variant.blockLabel,p.variant.label!==p.variant.blockLabel&&o.jsxs("span",{className:"opacity-70",children:[" · ",p.variant.label]})]},`${g}-${w}`)})]},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 f;return t[13]!==s||t[14]!==i||t[15]!==d?(f=o.jsx(s,{className:i,children:d}),t[13]=s,t[14]=i,t[15]=d,t[16]=f):f=t[16],f}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,f;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(Qt),T=h.getTime()-s.getTime(),p=v=>(Math.max(s.getTime(),Math.min(h.getTime(),v.getTime()))-s.getTime())/T*100;let w;t[10]!==s?(w=(v,j)=>F(s,j),t[10]=s,t[11]=w):w=t[11];const k=Array.from({length:B},w),_=g.getTime()>=s.getTime()&&g.getTime()<=h.getTime()?p(g):null;m=nt,f="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 S=k.map(qt);t[14]!==S?(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:S})]}),t[14]=S,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((N,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:N.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(Xt)}),(()=>{const $=Math.max(N.start.getTime(),s.getTime()),C=Math.min(N.end.getTime(),h.getTime());if(C<=$)return null;const O=p(new Date($)),E=p(new Date(C))-O;return o.jsx(lt,{variant:N,color:L,fadeStart:N.openStart,fadeEnd:N.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${E}% - 2px)`,height:22},children:N.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]=f}else m=t[4],a=t[5],c=t[6],i=t[7],d=t[8],f=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]!==f||t[25]!==u?(x=o.jsx(m,{className:f,children:u}),t[23]=m,t[24]=f,t[25]=u,t[26]=x):x=t[26],x}function Xt(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 Qt(e,t){return e[0].localeCompare(t[0])}export{Sn 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-Dh1wf_Yc.js";import{T as k,a as I,b as P}from"./tooltip-Bq0K89qS.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-Dh1wf_Yc.js"></script>
|
|
60
60
|
<link rel="stylesheet" crossorigin href="/assets/index-DS7PxLny.css">
|
|
61
61
|
</head>
|
|
62
62
|
<body>
|