decocms 4.82.16 → 4.82.18
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-CpcxqN8t.js → AlertCircle-nWv25JeA.js} +1 -1
- package/dist/client/assets/{AreaChart-DRYVHtn_.js → AreaChart-B_uMtpGL.js} +1 -1
- package/dist/client/assets/{ArrowUp-DtB-YeXY.js → ArrowUp-JMxPneYh.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-loRY2RKm.js → ArrowUpRight-_QPSndAA.js} +1 -1
- package/dist/client/assets/{CheckCircle-CRZu9nhA.js → CheckCircle-BiCk6M1i.js} +1 -1
- package/dist/client/assets/{ChevronDown-D9pUBzNi.js → ChevronDown-Bk388uKN.js} +1 -1
- package/dist/client/assets/{ChevronRight-DyKqfteL.js → ChevronRight--9yqvYWf.js} +1 -1
- package/dist/client/assets/{ChevronUp-Bm9fSLqz.js → ChevronUp-CBc6mTHH.js} +1 -1
- package/dist/client/assets/{Copy01-BvrHUEp0.js → Copy01-0niZuRag.js} +1 -1
- package/dist/client/assets/{DotsVertical-DP6deHTu.js → DotsVertical-BuP9koEQ.js} +1 -1
- package/dist/client/assets/{Eye-B7eaDVVL.js → Eye-COxYqykw.js} +1 -1
- package/dist/client/assets/{FilterLines-mjeVDxId.js → FilterLines-D8ozqbzG.js} +1 -1
- package/dist/client/assets/{Globe01-B0uhkrPg.js → Globe01-8eLKn4gM.js} +1 -1
- package/dist/client/assets/{Globe04-BKrJn5rH.js → Globe04-CdhsdEHz.js} +1 -1
- package/dist/client/assets/{HardDrive-WIAQSl0b.js → HardDrive-BVMeb0-p.js} +1 -1
- package/dist/client/assets/{Image01-DAWHqb9w.js → Image01-Co3VyZE3.js} +1 -1
- package/dist/client/assets/{Key01-CaVWjf9_.js → Key01-DkW4qJFE.js} +1 -1
- package/dist/client/assets/{LayoutLeft-rb5ALUdC.js → LayoutLeft-DrJM2_Ep.js} +1 -1
- package/dist/client/assets/{LinkExternal01-MPWKI6V9.js → LinkExternal01-DnzxlFtS.js} +1 -1
- package/dist/client/assets/{Monitor01-TfY39BFm.js → Monitor01-CzAatAIN.js} +1 -1
- package/dist/client/assets/{Package-DfSGRzd8.js → Package-DyiYgi9M.js} +1 -1
- package/dist/client/assets/{Palette-BGLfd0AQ.js → Palette-BiG6eCTN.js} +1 -1
- package/dist/client/assets/{Play-CHzg1iJ-.js → Play-BKK6s9aO.js} +1 -1
- package/dist/client/assets/{Plus-vunUflnL.js → Plus-C24Ro7xc.js} +1 -1
- package/dist/client/assets/{SearchLg-B9QN29So.js → SearchLg-B_rJkupy.js} +1 -1
- package/dist/client/assets/{SearchMd-Dz87gpVf.js → SearchMd-rbptHB_6.js} +1 -1
- package/dist/client/assets/{Settings02-sZ9PSfLW.js → Settings02-B8Xg9Ceh.js} +1 -1
- package/dist/client/assets/{Shield01-BxakTAqd.js → Shield01-DoK1siCH.js} +1 -1
- package/dist/client/assets/{Star01-Ce4lydim.js → Star01-RLBkyxVh.js} +1 -1
- package/dist/client/assets/{Stars01-Dv6nfKUD.js → Stars01-C5etiMCY.js} +1 -1
- package/dist/client/assets/{Stars02-CO2YACaG.js → Stars02-BgkKZs5F.js} +1 -1
- package/dist/client/assets/{Sun-CHrMZOeQ.js → Sun-2E0hvBzA.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-t7mcVG8O.js → SwitchHorizontal01-DAwh1jjs.js} +1 -1
- package/dist/client/assets/{Tool01-BRoZX_yO.js → Tool01-5fMP7aix.js} +1 -1
- package/dist/client/assets/{Tool02-ByeL1Gd3.js → Tool02-DwgPc8gO.js} +1 -1
- package/dist/client/assets/{Trash01-fHW40JW9.js → Trash01-Q7ur9Rqq.js} +1 -1
- package/dist/client/assets/{TrendUp01-Cj1MQsSr.js → TrendUp01-C6gc0m_Y.js} +1 -1
- package/dist/client/assets/{Upload01-DHXPm5d6.js → Upload01-DuLdiv6K.js} +1 -1
- package/dist/client/assets/{User01-BDmLZpXt.js → User01-2SW_8rQp.js} +1 -1
- package/dist/client/assets/{Users01-CQVC32JO.js → Users01-CipejDFG.js} +1 -1
- package/dist/client/assets/{Users03-DGhBJjHY.js → Users03-7WDpxAVJ.js} +1 -1
- package/dist/client/assets/{X-CD095s5H.js → X-kYcnvv1i.js} +1 -1
- package/dist/client/assets/{XCircle-DygUZi21.js → XCircle-C36UJF6a.js} +1 -1
- package/dist/client/assets/{XClose-n2u8ji_1.js → XClose-DB2DNbt8.js} +1 -1
- package/dist/client/assets/{Zap-D-_Yum16.js → Zap-Bqx6Tclv.js} +1 -1
- package/dist/client/assets/{ZapSquare-CZfre1vl.js → ZapSquare-BIQqopqz.js} +1 -1
- package/dist/client/assets/{ZoomOut-C87JolBy.js → ZoomOut-x8tEYJoF.js} +1 -1
- package/dist/client/assets/{access-gate-B90W4V7B.js → access-gate-CYl2fqQR.js} +1 -1
- package/dist/client/assets/{add-section-modal-CWslmMq3.js → add-section-modal-B_gMA_yp.js} +1 -1
- package/dist/client/assets/{agent-icon-DC82Z5KD.js → agent-icon-DRNZgcTL.js} +1 -1
- package/dist/client/assets/{agents-list-Cp6st2jx.js → agents-list-DCynKf6n.js} +1 -1
- package/dist/client/assets/{ai-providers-CDZ9VRif.js → ai-providers-C_z7TBcq.js} +1 -1
- package/dist/client/assets/{alert-hZ945_Pb.js → alert-CjElIaog.js} +1 -1
- package/dist/client/assets/{alert-dialog-S8R_YBWc.js → alert-dialog-CNwyxsEn.js} +1 -1
- package/dist/client/assets/{app-editor-Bgr5c4iL.js → app-editor-DG0M0-dM.js} +1 -1
- package/dist/client/assets/{auth-DihJFGuM.js → auth-DKhY9vUa.js} +1 -1
- package/dist/client/assets/{auth-catchall-D-uexFED.js → auth-catchall-DRkSIZ8L.js} +1 -1
- package/dist/client/assets/{auth-entry-Ha4dlmgU.js → auth-entry-CB7o5euO.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BhPpWO6S.js → auth-split-layout-BrvdgEEY.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-pwsEbcAN.js → authenticate-and-persist-oauth-BLcO2V2D.js} +1 -1
- package/dist/client/assets/{automation-list-row-CJr3DwO5.js → automation-list-row-PHmLHe1G.js} +1 -1
- package/dist/client/assets/{automation-runs-DeX-y-p7.js → automation-runs-vH6sxCUK.js} +1 -1
- package/dist/client/assets/{automations-Dd3bZ4eo.js → automations-C4emcuhT.js} +1 -1
- package/dist/client/assets/{autosend-CCJlD3Cp.js → autosend-CLA4nzGj.js} +1 -1
- package/dist/client/assets/{avatar-BMRhPZ0q.js → avatar-B_1zOY0Q.js} +1 -1
- package/dist/client/assets/{badge-BaAnaXY0.js → badge-B3iGlaG7.js} +1 -1
- package/dist/client/assets/{block-document-_veSgZLc.js → block-document-YUwQ_jAL.js} +1 -1
- package/dist/client/assets/{brand-context-BrlWdF2D.js → brand-context-Dig_mGO-.js} +1 -1
- package/dist/client/assets/{buckets-DS601GIh.js → buckets-CT7IRfEe.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-VbM9WDC6.js → bulk-category-panel-3U09XdS-.js} +1 -1
- package/dist/client/assets/{calendar-C4gRUxUF.js → calendar-Dg24ZiFi.js} +1 -1
- package/dist/client/assets/{capability-load-error-Jbkrqgv9.js → capability-load-error-B5iQiYvU.js} +1 -1
- package/dist/client/assets/{card-S3Vtmq2S.js → card-Dsu8gxpB.js} +1 -1
- package/dist/client/assets/{category-editor-BGrX9ygc.js → category-editor-DddfJw2W.js} +1 -1
- package/dist/client/assets/{chat-context-D18BsqCb.js → chat-context-DIps8mJH.js} +1 -1
- package/dist/client/assets/{checkbox-DIrDc1e_.js → checkbox-Bm8GCLXO.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DisHnDdg.js → cli-auth-success-BTr4gm3Z.js} +1 -1
- package/dist/client/assets/{collection-detail-BriJ6X91.js → collection-detail-CPmfC6zS.js} +1 -1
- package/dist/client/assets/{collection-display-button-DQJpwEAB.js → collection-display-button-BdW1PDI6.js} +1 -1
- package/dist/client/assets/{collection-search-CKqm4edX.js → collection-search-BWxRQOF-.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DnAXsk22.js → collection-table-wrapper-ZWFXJJTn.js} +1 -1
- package/dist/client/assets/{collection-tabs-BQNwv2GH.js → collection-tabs-DNDgorvS.js} +1 -1
- package/dist/client/assets/{command-u5AnfzQU.js → command-C6WDepMq.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-D6fw51VD.js → commerce-onboarding-BXQEbqv2.js} +1 -1
- package/dist/client/assets/{companions-core-C7nlGjxI.js → companions-core-DVZoxVsc.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-BdATuqLl.js → connect-desktop-dialog-DCt-ITTs.js} +1 -1
- package/dist/client/assets/{connection-card-BI_unWsQ.js → connection-card-COaFnTGE.js} +1 -1
- package/dist/client/assets/{connection-detail-DUg0zEip.js → connection-detail-CCanjRWV.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DihgPLZr.js → connection-form-helpers-D4oMuhGl.js} +1 -1
- package/dist/client/assets/{connections-jb_GGfU8.js → connections-DiA07fuB.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CRvo0q2L.js → decopilot-sse-pool-B8h8ZJim.js} +1 -1
- package/dist/client/assets/{dialog-CPk39DpV.js → dialog-yQFJnNXx.js} +1 -1
- package/dist/client/assets/{domain-settings-BXs8hUFo.js → domain-settings-CJmQe4xc.js} +1 -1
- package/dist/client/assets/{drawer-B8T8m2_s.js → drawer-BGk8OZFp.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DEaAFmE2.js → dropdown-menu-Bs-Vpyz8.js} +1 -1
- package/dist/client/assets/{empty-state-CVxOd8be.js → empty-state-CXtpKnwp.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DDTV2IPm.js → extract-connection-data-BSTKT-A-.js} +1 -1
- package/dist/client/assets/{file-explorer-DhMevm0o.js → file-explorer-YoVAYIms.js} +1 -1
- package/dist/client/assets/{file-type-icon-BCoJhxIb.js → file-type-icon-DLjKpaep.js} +1 -1
- package/dist/client/assets/{files-BGP4C1HJ.js → files-HXVomeJm.js} +1 -1
- package/dist/client/assets/{form-CqS0Cps-.js → form-DdlMEB-8.js} +1 -1
- package/dist/client/assets/{general-DEQA-Yea.js → general-eTuh8E7v.js} +1 -1
- package/dist/client/assets/{github-repo-picker-C0CiqyXo.js → github-repo-picker-2NwoZANS.js} +1 -1
- package/dist/client/assets/{hooks-BJW3qAjD.js → hooks-nUCBk-Mx.js} +1 -1
- package/dist/client/assets/{index-CoaIcYxp.js → index-BEsPeHFg.js} +6 -6
- package/dist/client/assets/index-BmGHTOVY.css +1 -0
- package/dist/client/assets/{index-B01ZjBHk.js → index-BwUHy3Vr.js} +1 -1
- package/dist/client/assets/{index-CJe_Ay5R.js → index-C33aQVHe.js} +1 -1
- package/dist/client/assets/{index-DKPnDH8J.js → index-C7eXDeIr.js} +1 -1
- package/dist/client/assets/{index-D8ITL2ZX.js → index-C86DTk1U.js} +1 -1
- package/dist/client/assets/{index-DMOrDlMx.js → index-CAtjcAf7.js} +1 -1
- package/dist/client/assets/{index-CqUWF5rE.js → index-CJg_Egqt.js} +3 -3
- package/dist/client/assets/{index-6JF-wTtE.js → index-CrnoHPpk.js} +2 -2
- package/dist/client/assets/{index-CSVT14vS.js → index-DTiAL_PN.js} +1 -1
- package/dist/client/assets/{index-SRTga_Pl.js → index-OYnD8NUW.js} +1 -1
- package/dist/client/assets/{index-BXlYy4lK.js → index-Q3GboRFr.js} +1 -1
- package/dist/client/assets/{index-D38UoyU_.js → index-VO2eZqSo.js} +1 -1
- package/dist/client/assets/{index-DJa-iL9o.js → index-gZexA2tU.js} +1 -1
- package/dist/client/assets/{index-redirect-ktNk7w4F.js → index-redirect-aeigHb3K.js} +1 -1
- package/dist/client/assets/{index-vm-dkNkr.js → index-zcUEOlAJ.js} +1 -1
- package/dist/client/assets/{input-Bgw8ZyJL.js → input-CtWTdEVq.js} +1 -1
- package/dist/client/assets/{integration-icon-CQaaJ7mM.js → integration-icon-CQFWv0DS.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-BCIU_pcL.js → invite-member-dialog-DDFfelE1.js} +1 -1
- package/dist/client/assets/{label-B1czg2xv.js → label-C2sQKcp-.js} +1 -1
- package/dist/client/assets/{layout-e7JMs1E5.js → layout-S1bbVe-B.js} +1 -1
- package/dist/client/assets/{login-_VI5QUec.js → login-D3IvS8g2.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CyHN8xxs.js → mcp-oauth-QHsEP28Z.js} +1 -1
- package/dist/client/assets/{members-BXWivHBm.js → members-DbKfwdrF.js} +1 -1
- package/dist/client/assets/{monaco-editor-Cp6TmIqo.js → monaco-editor-DAjsg0ss.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CUJdV8us.js → monitoring-stats-row-C5IPF_MD.js} +1 -1
- package/dist/client/assets/{multi-select-DCD9LjZ1.js → multi-select-CLl0MDvp.js} +1 -1
- package/dist/client/assets/{oauth-callback-BUwB6R9Q.js → oauth-callback-DQJoeGuz.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BcbP5C0E.js → oauth-callback-ai-provider-D7qInNAv.js} +1 -1
- package/dist/client/assets/{onboarding-DfNhbAgo.js → onboarding-CADROMWr.js} +1 -1
- package/dist/client/assets/{org-install-CJtg5oVf.js → org-install-Dxx9Fe0T.js} +1 -1
- package/dist/client/assets/{org-layout-zST5U1O3.js → org-layout-DM_8WcS5.js} +1 -1
- package/dist/client/assets/{organization-choice-CdZIR-bP.js → organization-choice-pRrHpP9E.js} +1 -1
- package/dist/client/assets/{orgs-CZPzvd9W.js → orgs-DdxhBwCV.js} +1 -1
- package/dist/client/assets/{page-seo-form-D2uAGg4W.js → page-seo-form-BAQWn671.js} +1 -1
- package/dist/client/assets/page-seo-sheet-Bod7r602.js +1 -0
- package/dist/client/assets/{popover-D2QBjVar.js → popover-CQti79rt.js} +1 -1
- package/dist/client/assets/{post-editor-BsGCNkE6.js → post-editor-1hyMbl9-.js} +1 -1
- package/dist/client/assets/{primitives-B6khXiWg.js → primitives-BhmDGlVV.js} +1 -1
- package/dist/client/assets/{profile-xpNAjWWN.js → profile-CUcezwQK.js} +1 -1
- package/dist/client/assets/project-app-view-Dxc8-n9D.js +1 -0
- package/dist/client/assets/record-editor-BOBxfp_X.js +1 -0
- package/dist/client/assets/redirect-editor-CYYLOmpX.js +1 -0
- package/dist/client/assets/registry-COlsUT3W.js +2 -0
- package/dist/client/assets/{registry-layout-CzNoeRtk.js → registry-layout-OGqrNoez.js} +1 -1
- package/dist/client/assets/{reports-Baodf83V.js → reports-BzLXZpZj.js} +1 -1
- package/dist/client/assets/{require-capability-Bib3YtrK.js → require-capability-Vz09_GdW.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C6MKg1qc.js → required-auth-layout-Bi-StVrB.js} +1 -1
- package/dist/client/assets/{reset-password-Br3KzIAj.js → reset-password-C-9sdYEY.js} +1 -1
- package/dist/client/assets/{roles-x8CQQob_.js → roles-BvfKUAwe.js} +1 -1
- package/dist/client/assets/{search-input-BQidIbzg.js → search-input-DoCGm0yI.js} +1 -1
- package/dist/client/assets/{secrets-CLraY9io.js → secrets-CnwNNowP.js} +1 -1
- package/dist/client/assets/{sections-editor-D4qD7rBi.js → sections-editor-VUtl0ysB.js} +1 -1
- package/dist/client/assets/{select-Co36KZN-.js → select-CPYU-t5a.js} +1 -1
- package/dist/client/assets/{select-model-DsJ8Lxwe.js → select-model-CAXJeHIx.js} +1 -1
- package/dist/client/assets/{self-tool-result-BReh42c2.js → self-tool-result-BUHu0f_7.js} +1 -1
- package/dist/client/assets/{seo-editor-C6oO4qb-.js → seo-editor-DWueFRfC.js} +1 -1
- package/dist/client/assets/{settings-layout-DH-btwpN.js → settings-layout-CsushYxM.js} +1 -1
- package/dist/client/assets/{settings-section-JgnQHgDA.js → settings-section-CIEQ0Az8.js} +1 -1
- package/dist/client/assets/{shell-controls-MaBrxqZl.js → shell-controls-B8-eB-C3.js} +1 -1
- package/dist/client/assets/{shell-layout-6CaMXXob.js → shell-layout-h8YLpCVy.js} +1 -1
- package/dist/client/assets/{sidebar-4ukucvDQ.js → sidebar-C3y2b73P.js} +1 -1
- package/dist/client/assets/{skeleton-BOZayuTN.js → skeleton-BzpXGnud.js} +1 -1
- package/dist/client/assets/{sso-Dzn_JBB3.js → sso-C-Nfg79k.js} +1 -1
- package/dist/client/assets/{store-BW7BvH0y.js → store-B_xKM7q_.js} +1 -1
- package/dist/client/assets/store-registry-D75Bh9Z8.js +2 -0
- package/dist/client/assets/{studio-tools-BbYwaZW8.js → studio-tools-QtrBYuQn.js} +1 -1
- package/dist/client/assets/{switch-DSldzt_3.js → switch-Dm4fTXKs.js} +1 -1
- package/dist/client/assets/{table-DomoMZuV.js → table-D3hSTANX.js} +1 -1
- package/dist/client/assets/{tabs-CBwWdeoJ.js → tabs-COqZb4oH.js} +1 -1
- package/dist/client/assets/{textarea-D6OubpWt.js → textarea-B05kbLiX.js} +1 -1
- package/dist/client/assets/{toggle-group-BCsbRSg3.js → toggle-group-BtN2mOgZ.js} +1 -1
- package/dist/client/assets/{toolbar-CwJ-zISV.js → toolbar-BdaqKMHD.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BdErhF1T.js → toolbar-icon-button-C-bbaGy8.js} +1 -1
- package/dist/client/assets/{tooltip-C2q7xY1v.js → tooltip-CbqENaRk.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CFAhOCyV.js → use-ai-providers-PBwxFzlt.js} +1 -1
- package/dist/client/assets/{use-automations-CiuJnH8c.js → use-automations-BVYRTytr.js} +1 -1
- package/dist/client/assets/{use-autosave-B3u2yPjy.js → use-autosave-CenBXhWN.js} +1 -1
- package/dist/client/assets/{use-capability-Caq1QG1B.js → use-capability-BOjbc5nJ.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Dux-xkJZ.js → use-clock-tick-CIZedz4V.js} +1 -1
- package/dist/client/assets/{use-collections-CL_jPaXB.js → use-collections-DYDWO6MI.js} +1 -1
- package/dist/client/assets/{use-connection-CeivvvyD.js → use-connection-DplYmHsJ.js} +1 -1
- package/dist/client/assets/{use-copy-C74AM53V.js → use-copy-C8PrdBdY.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BdTi_Qk8.js → use-create-virtual-mcp-B_yM4tq5.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CImLjw42.js → use-debounced-autosave-C6wfqakP.js} +1 -1
- package/dist/client/assets/{use-debounced-value-RATukcZr.js → use-debounced-value-BNnu2sex.js} +1 -1
- package/dist/client/assets/{use-deco-credits-ClYul8bj.js → use-deco-credits-BkmIGgDM.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-wbEgxVgD.js → use-decopilot-events-WmBsxN2B.js} +1 -1
- package/dist/client/assets/{use-delete-connection-PiFepqVc.js → use-delete-connection-CZ5i99iM.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DOV9RbLe.js → use-deployment-admin-T90HfmzZ.js} +1 -1
- package/dist/client/assets/{use-file-configs-a_jhgP6B.js → use-file-configs-CwTIxjAw.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Bpm8u4Ak.js → use-infinite-scroll-CSTQG008.js} +1 -1
- package/dist/client/assets/{use-join-requests-BBeNsMws.js → use-join-requests-CTnyVxkN.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-RySpjuxW.js → use-mcp-auth-status-CiC3uGjh.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Dzuoqn_T.js → use-mcp-client-3b--jDw0.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DuJawwgg.js → use-mcp-tools-PBe9RRYw.js} +1 -1
- package/dist/client/assets/{use-members-C0QVag0y.js → use-members-DuJDNpWn.js} +1 -1
- package/dist/client/assets/{use-mobile-D5gXb9kf.js → use-mobile-B4wbl9ax.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DTqlbLkL.js → use-navigate-to-agent-B8-Wrg6s.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BxK-eHDV.js → use-org-auth-client-CCZXY5FU.js} +1 -1
- package/dist/client/assets/{use-org-sso-DMSHJqOH.js → use-org-sso-BbfliJIL.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BYjDt94x.js → use-organization-roles-DNv19dgH.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Q8FHYdiF.js → use-organization-settings-sP9a9Yi_.js} +1 -1
- package/dist/client/assets/{use-registry-app-Ni76HoHd.js → use-registry-app-CY34hPIa.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DWDJ8AOl.js → use-registry-connections-CHD9mhC9.js} +1 -1
- package/dist/client/assets/{use-secrets-BMmZIWUa.js → use-secrets-CbYA8Osv.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DWkkp772.js → use-status-sounds-diXLkUmu.js} +1 -1
- package/dist/client/assets/{use-view-mode-xjYuXyyx.js → use-view-mode-DPGunKaA.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-zmtckCUH.js → use-virtual-mcp-DUrScDuD.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CK-e6o9j.js +1 -0
- package/dist/client/assets/{useRouterState-COEcc8zH.js → useRouterState-Bd3nd6nZ.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ZeV5doDS.js +1 -0
- package/dist/client/assets/{users-BIyD5wmj.js → users-B2cQGMUV.js} +1 -1
- package/dist/client/assets/{variant-calendar-HU5_w_xZ.js → variant-calendar-TBst5Zls.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BndX-6yw.js → view-mode-toggle-BdJcoEd9.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +413 -413
- package/dist/server/server.js +283 -283
- package/package.json +1 -1
- package/dist/client/assets/index-Dj5WILcq.css +0 -1
- package/dist/client/assets/page-seo-sheet-SYlUSnqv.js +0 -1
- package/dist/client/assets/project-app-view-DxWTgeSr.js +0 -1
- package/dist/client/assets/record-editor-DmSTlsHP.js +0 -1
- package/dist/client/assets/redirect-editor-BO6Qs0ty.js +0 -1
- package/dist/client/assets/registry-QaAjyWBd.js +0 -2
- package/dist/client/assets/store-registry-DInnP7n_.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DiouhNBP.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C27FYNHj.js +0 -1
package/dist/client/assets/{use-org-auth-client-BxK-eHDV.js → use-org-auth-client-CCZXY5FU.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,C,a as i}from"./index-
|
|
1
|
+
import{c as x,C,a as i}from"./index-CJg_Egqt.js";function q(){const e=x.c(32),{org:O}=C(),o=O.id;let z;e[0]!==o?(z=R=>(f=>i.organization[R]({...f??{},organizationId:o})),e[0]=o,e[1]=z):z=e[1];const t=z;let M;e[2]!==o?(M=R=>(f=>{const y={...f??{}},h=y.query??{};return y.query={...h,organizationId:o},i.organization[R](y)}),e[2]=o,e[3]=M):M=e[3];const n=M;let a,r;e[4]!==n?(a=n("listMembers"),r=n("listRoles"),e[4]=n,e[5]=a,e[6]=r):(a=e[5],r=e[6]);let l,s,c,g,u,m,d,v,b;e[7]!==t?(g=t("inviteMember"),u=t("removeMember"),m=t("updateMemberRole"),d=t("addMember"),v=t("createRole"),b=t("updateRole"),l=t("deleteRole"),s=t("cancelInvitation"),c=t("update"),e[7]=t,e[8]=l,e[9]=s,e[10]=c,e[11]=g,e[12]=u,e[13]=m,e[14]=d,e[15]=v,e[16]=b):(l=e[8],s=e[9],c=e[10],g=e[11],u=e[12],m=e[13],d=e[14],v=e[15],b=e[16]);let p;e[17]!==n?(p=n("getActiveMember"),e[17]=n,e[18]=p):p=e[18];let I;return e[19]!==l||e[20]!==s||e[21]!==c||e[22]!==p||e[23]!==a||e[24]!==r||e[25]!==g||e[26]!==u||e[27]!==m||e[28]!==d||e[29]!==v||e[30]!==b?(I={organization:{listMembers:a,listRoles:r,inviteMember:g,removeMember:u,updateMemberRole:m,addMember:d,createRole:v,updateRole:b,deleteRole:l,cancelInvitation:s,update:c,getActiveMember:p,acceptInvitation:i.organization.acceptInvitation,rejectInvitation:i.organization.rejectInvitation,getInvitation:i.organization.getInvitation,list:i.organization.list,create:i.organization.create,getFullOrganization:i.organization.getFullOrganization}},e[19]=l,e[20]=s,e[21]=c,e[22]=p,e[23]=a,e[24]=r,e[25]=g,e[26]=u,e[27]=m,e[28]=d,e[29]=v,e[30]=b,e[31]=I):I=e[31],I}export{q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,m as S,n as r,d as y,K as c}from"./index-
|
|
1
|
+
import{c as u,m as S,n as r,d as y,K as c}from"./index-CJg_Egqt.js";async function f(i,a,e){const s=await fetch(i,a);if(!s.ok){const t=await s.json().catch(()=>null);throw new Error(t?.error||e)}return s.json()}function m(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoStatus(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/status`,void 0,"Failed to check SSO status"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function q(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoConfig(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/config`,void 0,"Failed to fetch SSO config"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function C(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)},"Failed to save SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function O(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=()=>f(`/api/${a}/sso/config`,{method:"DELETE"},"Failed to delete SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function d(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:l})},"Failed to toggle SSO enforcement"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}export{q as a,C as b,O as c,d,m as u};
|
package/dist/client/assets/{use-organization-roles-BYjDt94x.js → use-organization-roles-DNv19dgH.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as R}from"./use-org-auth-client-
|
|
1
|
+
import{u as R}from"./use-org-auth-client-CCZXY5FU.js";import{C as b,m as P,K as y}from"./index-CJg_Egqt.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function B(t){return t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const u=[];let c=!1;const a=new Set;let s=!1,f=0,e=!1;for(const[l,o]of Object.entries(t)){if(l==="self"){o.includes("*")?i=!0:n.push(...o);continue}if(l==="models"){o.includes("*:*")?e=!0:f=o.length;continue}if(l==="*"){if(c=!0,o.includes("*"))s=!0;else for(const r of o)a.add(r);continue}if(u.push(l),o.includes("*"))s=!0;else for(const r of o)a.add(r)}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(a),allowsAllTools:s,modelCount:f,allowsAllModels:e}}function I(){const{locator:t}=b(),n=R(),{data:i,isLoading:u,error:c,refetch:a}=P({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const e=await n.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),s=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(i&&Array.isArray(i))for(const e of i){const l=e.role;if(!l||w.some(h=>h.value===l))continue;const{staticPermissions:o,allowsAllStaticPermissions:r,connectionIds:g,allowsAllConnections:m,toolNames:p,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(e.permission);s.push({id:e.id,role:l,label:B(l),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:r?-1:o.length,allowsAllStaticPermissions:r,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:p.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(e=>!e.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:a}}export{I as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,C as g,m as b,K as _,n as E,d as z,r as R}from"./index-
|
|
1
|
+
import{c as l,C as g,m as b,K as _,n as E,d as z,r as R}from"./index-CJg_Egqt.js";import{W as D}from"./constants-BHDe7bIw.js";import{c as C,u as G}from"./studio-tools-QtrBYuQn.js";const I={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null,reports_only:null,task_board_enabled:!1},O={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function N(t,e){return{queryKey:_.organizationSettings(e),queryFn:async()=>{try{return await C(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...I,organizationId:e}}},staleTime:6e4}}function f(t){const e=l.c(6),{org:s}=g();let n;e[0]!==s.id||e[1]!==s.slug?(n=N(s.slug,s.id),e[0]=s.id,e[1]=s.slug,e[2]=n):n=e[2];const a=t;let r;return e[3]!==n||e[4]!==a?(r={...n,select:a},e[3]=n,e[4]=a,e[5]=r):r=e[5],b(r)}function j(t,e){const s=l.c(3);let n;s[0]!==t||s[1]!==e?(n=N(e,t),s[0]=t,s[1]=e,s[2]=n):n=s[2];const{data:a}=b(n);return a??null}function y(){const t=l.c(9),{org:e}=g(),s=G(),n=E();let a;t[0]!==e||t[1]!==s?(a=async o=>{const u=await s.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...o});if(!u)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return u},t[0]=e,t[1]=s,t[2]=a):a=t[2];let r;t[3]!==e||t[4]!==n?(r=o=>{n.setQueryData(_.organizationSettings(e.id),u=>({...u??I,...o}))},t[3]=e,t[4]=n,t[5]=r):r=t[5];let i;return t[6]!==a||t[7]!==r?(i={mutationFn:a,onSuccess:r},t[6]=a,t[7]=r,t[8]=i):i=t[8],z(i)}function M(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 F(){const{data:t}=f(Q);return t??O}function Q(t){return M(t.simple_mode)}function L(){const t=l.c(7),e=y();let s,n;t[0]!==e?(s=(r,i)=>e.mutate({simple_mode:r},i),n=(r,i)=>e.mutateAsync({simple_mode:r},i),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let a;return t[3]!==e||t[4]!==s||t[5]!==n?(a={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=a):a=t[6],a}function $(){const{data:t}=f(P);return t??!1}function P(t){return t.reports_only??!1}function v(){const t=$(),{data:e}=f(U);return t||(e??!1)}function U(t){return t.task_board_enabled??!1}function J(){const t=l.c(7),e=y();let s,n;t[0]!==e?(s=(r,i)=>e.mutate({task_board_enabled:r},i),n=(r,i)=>e.mutateAsync({task_board_enabled:r},i),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let a;return t[3]!==e||t[4]!==s||t[5]!==n?(a={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=a):a=t[6],a}function x(){const{data:t}=f(q);return t??null}function q(t){return t.registry_config}function V(){const t=l.c(7),e=y();let s,n;t[0]!==e?(s=(r,i)=>e.mutate({registry_config:r},i),n=(r,i)=>e.mutateAsync({registry_config:r},i),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let a;return t[3]!==e||t[4]!==s||t[5]!==n?(a={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=a):a=t[6],a}function X(){const{data:t}=f(K);return t??null}function K(t){return t.default_home_agents}function Y(){const t=l.c(7),e=y();let s,n;t[0]!==e?(s=(r,i)=>e.mutate({default_home_agents:r},i),n=(r,i)=>e.mutateAsync({default_home_agents:r},i),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let a;return t[3]!==e||t[4]!==s||t[5]!==n?(a={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=a):a=t[6],a}function tt(){const t=l.c(14),{org:e}=g(),s=Y(),n=E();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=Promise.resolve(),t[0]=a):a=t[0];const r=R.useRef(a);let i;t[1]!==e.id?(i=_.organizationSettings(e.id),t[1]=e.id,t[2]=i):i=t[2];const o=i;let u;t[3]!==o||t[4]!==n?(u=()=>n.getQueryData(o)?.default_home_agents?.ids??[],t[3]=o,t[4]=n,t[5]=u):u=t[5];const p=u;let m;t[6]!==o||t[7]!==e.slug||t[8]!==n||t[9]!==s?(m=k=>{const T=r.current.then(async()=>{const A=n.getQueryData(o),S=k(A?.default_home_agents?.ids??[]);if(S!==null){n.setQueryData(o,c=>c&&{...c,default_home_agents:{ids:S}});try{await s.mutateAsync({ids:S}),await n.refetchQueries({queryKey:_.homeNextActions(e.slug),type:"active"})}catch(c){const w=c;throw n.setQueryData(o,A),w}}});return r.current=T.catch(B),T},t[6]=o,t[7]=e.slug,t[8]=n,t[9]=s,t[10]=m):m=t[10];const h=m;let d;return t[11]!==h||t[12]!==p?(d={currentIds:p,apply:h},t[11]=h,t[12]=p,t[13]=d):d=t[13],d}function B(){}function et(){const t=l.c(5),{org:e}=g(),s=x();let n;t[0]!==e.id?(n=D.REGISTRY(e.id),t[0]=e.id,t[1]=n):n=t[1];const a=n;let r;return t[2]!==a||t[3]!==s?(r=i=>{if(!s)return i===a;const o=s.registries[i];return o?o.enabled:i===a},t[2]=a,t[3]=s,t[4]=r):r=t[4],r}export{X as a,tt as b,v as c,et as d,j as e,J as f,F as g,L as h,x as i,V as j,$ as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,j as a,C as f}from"./index-
|
|
1
|
+
import{c as d,j as a,C as f}from"./index-CJg_Egqt.js";import{u as g}from"./use-mcp-client-3b--jDw0.js";import{W as C}from"./constants-BHDe7bIw.js";import{u as p}from"./use-mcp-tools-PBe9RRYw.js";function P(n){const s=d.c(4),{size:e,className:t}=n;let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"}),s[0]=o):o=s[0];let r;return s[1]!==t||s[2]!==e?(r=a.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",className:t,children:o}),s[1]=t,s[2]=e,s[3]=r):r=s[3],r}function T(n,s){const e=d.c(12),{org:t}=f();let o;e[0]!==t.id?(o=C.REGISTRY(t.id),e[0]=t.id,e[1]=o):o=e[1];const r=o;let l;e[2]!==t.id||e[3]!==t.slug||e[4]!==r?(l={connectionId:r,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=r,e[5]=l):l=e[5];const u=g(l);let i;e[6]!==n?(i={name:n},e[6]=n,e[7]=i):i=e[7];const m=s?.enabled??!0;let c;return e[8]!==u||e[9]!==i||e[10]!==m?(c={client:u,toolName:"COLLECTION_REGISTRY_APP_GET",toolArguments:i,enabled:m,staleTime:3e5,select:x},e[8]=u,e[9]=i,e[10]=m,e[11]=c):c=e[11],p(c)}function x(n){return n.structuredContent?.item??null}export{P as G,T as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,C as R}from"./index-
|
|
1
|
+
import{c as C,C as R}from"./index-CJg_Egqt.js";import{u as p}from"./use-connection-DplYmHsJ.js";import{W as a}from"./constants-BHDe7bIw.js";import{i as y}from"./use-organization-settings-sP9a9Yi_.js";function M(){const e=C.c(19),{org:s}=R(),o=y();let l;e[0]!==s.id?(l=a.REGISTRY(s.id),e[0]=s.id,e[1]=l):l=e[1];const d=l;let f;e[2]!==s.id?(f=a.COMMUNITY_REGISTRY(s.id),e[2]=s.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 i;e[10]!==o.registries?(i=Object.keys(o.registries),e[10]=o.registries,e[11]=i):i=e[11];for(const u of i)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 i;e[17]!==t?(i=u=>t.has(u.id),e[17]=t,e[18]=i):i=e[18],c=n.filter(i),e[14]=t,e[15]=n,e[16]=c}else c=e[16];return c}export{M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,C as a,K as c,v as f,n as y,d as S}from"./index-
|
|
1
|
+
import{c as r,C as a,K as c,v as f,n as y,d as S}from"./index-CJg_Egqt.js";import{u as l}from"./studio-tools-QtrBYuQn.js";function E(){const e=r.c(7),{org:o}=a(),n=l();let i;e[0]!==o.id?(i=c.secrets(o.id),e[0]=o.id,e[1]=i):i=e[1];let t;e[2]!==n?(t=async()=>await n.call("SECRET_LIST",{}),e[2]=n,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:u}=f(s);return u.secrets}function p(){const e=r.c(8),{org:o}=a(),n=l(),i=y();let t;e[0]!==n?(t=async d=>await n.call("SECRET_CREATE",{...d}),e[0]=n,e[1]=t):t=e[1];let s;e[2]!==o||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:c.secrets(o.id)})},e[2]=o,e[3]=i,e[4]=s):s=e[4];let u;return e[5]!==t||e[6]!==s?(u={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=u):u=e[7],S(u)}export{p as a,E as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,U as u}from"./index-
|
|
1
|
+
import{c as r,U as u}from"./index-CJg_Egqt.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-WmBsxN2B.js";const p=new Set(["completed","failed","requires_action"]);function U(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{U as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,r as f}from"./index-
|
|
1
|
+
import{c as p,r as f}from"./index-CJg_Egqt.js";import{u as w}from"./use-mobile-B4wbl9ax.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,C as d,al as P,m as p}from"./index-
|
|
1
|
+
import{c as a,C as d,al as P,m as p}from"./index-CJg_Egqt.js";import{b as L,a as S,u as V}from"./use-collections-DYDWO6MI.js";import{u as g}from"./use-mcp-client-3b--jDw0.js";import{S as m}from"./constants-BHDe7bIw.js";function b(e){const t=a.c(5);let s;t[0]!==e?(s=e===void 0?{}:e,t[0]=e,t[1]=s):s=t[1];const i=s,{org:n}=d();let o;t[2]!==n.id||t[3]!==n.slug?(o={connectionId:m,orgId:n.id,orgSlug:n.slug},t[2]=n.id,t[3]=n.slug,t[4]=o):o=t[4];const l=g(o);return L(n.id,"VIRTUAL_MCP",l,i)}function R(e){const t=a.c(3),{org:s}=d();let i;t[0]!==s.id||t[1]!==s.slug?(i={connectionId:m,orgId:s.id,orgSlug:s.slug},t[0]=s.id,t[1]=s.slug,t[2]=i):i=t[2];const n=g(i);return V(s.id,"VIRTUAL_MCP",e??void 0,n)}function E(e){const t=a.c(15),{org:s}=d();let i;t[0]!==s.id||t[1]!==s.slug?(i={connectionId:m,orgId:s.id,orgSlug:s.slug},t[0]=s.id,t[1]=s.slug,t[2]=i):i=t[2];const n=g(i);let o,l,c;t[3]!==e||t[4]!==s.id?(o=[...e].sort(),c=p,l=P.virtualMcpLastUsed(s.id,o),t[3]=e,t[4]=s.id,t[5]=o,t[6]=l,t[7]=c):(o=t[5],l=t[6],c=t[7]);const C=o.length>0;let u;t[8]!==n||t[9]!==o?(u=async()=>{const M=(await n.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},f=new Map;for(const I of M.items)f.set(I.id,I);return f},t[8]=n,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 e=a.c(3),{org:t}=d();let s;e[0]!==t.id||e[1]!==t.slug?(s={connectionId:m,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=s):s=e[2];const i=g(s);return S(t.id,"VIRTUAL_MCP",i)}export{R as a,$ as b,E as c,b as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./use-infinite-scroll-CSTQG008.js";import{dK as i}from"./index-CJg_Egqt.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aZ as s,r as a,a_ as c,a$ as i}from"./index-
|
|
1
|
+
import{aZ as s,r as a,a_ as c,a$ as i}from"./index-CJg_Egqt.js";function f(r){const n=s({warn:r?.router===void 0}),t=r?.router||n,u=a.useRef(void 0);return c(t.stores.__store,e=>{if(r?.select){if(r.structuralSharing??t.options.defaultStructuralSharing){const o=i(u.current,r.select(e));return u.current=o,o}return r.select(e)}return e})}export{f as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./use-infinite-scroll-CSTQG008.js";import{dK as u,ab as n}from"./index-CJg_Egqt.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,r as F,a as I,m as R,d as V,j as t,K,B as T,t as $}from"./index-
|
|
1
|
+
import{c as B,r as F,a as I,m as R,d as V,j as t,K,B as T,t as $}from"./index-CJg_Egqt.js";import{P as b}from"./index-C7eXDeIr.js";import{C as q}from"./collection-table-wrapper-ZWFXJJTn.js";import{E}from"./empty-state-CXtpKnwp.js";import{S as z}from"./search-input-DoCGm0yI.js";import{A as D}from"./avatar-B_1zOY0Q.js";import{B as U}from"./badge-B3iGlaG7.js";import{u as L}from"./use-debounced-value-BNnu2sex.js";import{a as k}from"./admin-fetch-CCSvjTk1.js";import{f as M}from"./format-time-BnbuEtat.js";import{g as O}from"./get-initials-D-f_fDFw.js";import"./sidebar-C3y2b73P.js";import"./LayoutLeft-DrJM2_Ep.js";import"./use-mobile-B4wbl9ax.js";import"./X-kYcnvv1i.js";import"./tooltip-CbqENaRk.js";import"./table-D3hSTANX.js";import"./ArrowUp-JMxPneYh.js";import"./SearchMd-rbptHB_6.js";import"./User01-2SW_8rQp.js";import"./differenceInSeconds-NQ4PDo0z.js";function Ne(){const e=B.c(31),[r,P]=F.useState("");let c;e[0]!==r?(c=r.trim(),e[0]=r,e[1]=c):c=e[1];const s=L(c,300),{data:A}=I.useSession(),S=A?.user?.id;let a;e[2]!==s?(a=K.deploymentAdminUsers(s),e[2]=s,e[3]=a):a=e[3];let i;e[4]!==s?(i=()=>{const l=new URLSearchParams({limit:"100"});return s&&l.set("searchValue",s),k(`/api/_admin/users?${l}`)},e[4]=s,e[5]=i):i=e[5];let d;e[6]!==a||e[7]!==i?(d={queryKey:a,queryFn:i},e[6]=a,e[7]=i,e[8]=d):d=e[8];const{data:y,isLoading:v,isError:w}=R(d);let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u={mutationFn:H,onSuccess:G,onError:Y},e[9]=u):u=e[9];const f=V(u);let p;e[10]!==y?.users?(p=y?.users??[],e[10]=y?.users,e[11]=p):p=e[11];const C=p;let h,x,g;e[12]===Symbol.for("react.memo_cache_sentinel")?(h={id:"user",header:"User",render:W,cellClassName:"flex-1 min-w-0"},x={id:"verified",header:"Email",render:Q,cellClassName:"w-28 shrink-0"},g={id:"created",header:"Created",render:J,cellClassName:"w-48 shrink-0"},e[12]=h,e[13]=x,e[14]=g):(h=e[12],x=e[13],g=e[14]);let j;e[15]!==S||e[16]!==f?(j=[h,x,g,{id:"actions",header:"",render:l=>t.jsx(T,{variant:"outline",size:"sm",disabled:l.id===S||f.isPending,onClick:()=>f.mutate(l.id),children:"Impersonate"}),cellClassName:"w-32 shrink-0"}],e[15]=S,e[16]=f,e[17]=j):j=e[17];const _=j;let n;e[18]!==r?(n=t.jsx(z,{value:r,onChange:P,placeholder:"Search users by email or name...",className:"w-full md:w-[375px]"}),e[18]=r,e[19]=n):n=e[19];let o;e[20]!==s||e[21]!==w?(o=w?t.jsx(E,{title:"Failed to load users",description:"Something went wrong. Refresh to try again."}):t.jsx(E,{title:"No users found",description:s?`No users match "${s}"`:"No users yet."}),e[20]=s,e[21]=w,e[22]=o):o=e[22];let m;e[23]!==_||e[24]!==v||e[25]!==o||e[26]!==C?(m=t.jsx(q,{columns:_,data:C,isLoading:v,emptyState:o}),e[23]=_,e[24]=v,e[25]=o,e[26]=C,e[27]=m):m=e[27];let N;return e[28]!==n||e[29]!==m?(N=t.jsx(b,{children:t.jsx(b.Content,{children:t.jsx(b.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[n,m]})})})}),e[28]=n,e[29]=m,e[30]=N):N=e[30],N}function J(e){return t.jsx("span",{className:"text-sm text-foreground",children:M(e.createdAt)})}function Q(e){return e.emailVerified?t.jsx(U,{variant:"outline",className:"text-success border-success/20",children:"Verified"}):t.jsx(U,{variant:"outline",className:"text-muted-foreground",children:"Unverified"})}function W(e){return t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(D,{url:e.image??void 0,fallback:O(e.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:e.name||"Unknown"}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:e.email})]})]})}function Y(e){$.error(e instanceof Error?e.message:"Failed to impersonate user")}function G(){window.location.href="/"}function H(e){return k("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{Ne as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,r as U,j as o,l as J,B as Y}from"./index-CqUWF5rE.js";import{w as ct,T as et,f as mt}from"./agent-icon-DC82Z5KD.js";import{i as pt}from"./ChevronRight-DyKqfteL.js";import{L as dt}from"./label-B1czg2xv.js";import{m as nt}from"./automation-runs-DeX-y-p7.js";import{S as ft}from"./switch-DSldzt_3.js";import{T as ut,b as ht,a as gt}from"./tooltip-C2q7xY1v.js";import{V as xt}from"./view-mode-toggle-BndX-6yw.js";import"./AlertCircle-CpcxqN8t.js";import"./Tool01-BRoZX_yO.js";import"./ArrowUp-DtB-YeXY.js";import"./Settings02-sZ9PSfLW.js";import"./Tool02-ByeL1Gd3.js";import"./XCircle-DygUZi21.js";import"./ArrowUpRight-loRY2RKm.js";import"./TrendUp01-Cj1MQsSr.js";import"./ZapSquare-CZfre1vl.js";import"./ZoomOut-C87JolBy.js";import"./Users03-DGhBJjHY.js";import"./CheckCircle-CRZu9nhA.js";import"./ChevronUp-Bm9fSLqz.js";import"./ChevronDown-D9pUBzNi.js";import"./DotsVertical-DP6deHTu.js";import"./Stars02-CO2YACaG.js";import"./Copy01-BvrHUEp0.js";import"./Globe01-B0uhkrPg.js";import"./Eye-B7eaDVVL.js";import"./FilterLines-mjeVDxId.js";import"./Star01-Ce4lydim.js";import"./Globe04-BKrJn5rH.js";import"./SwitchHorizontal01-t7mcVG8O.js";import"./HardDrive-WIAQSl0b.js";import"./Image01-DAWHqb9w.js";import"./Key01-CaVWjf9_.js";import"./LayoutLeft-rb5ALUdC.js";import"./LinkExternal01-MPWKI6V9.js";import"./Monitor01-TfY39BFm.js";import"./Sun-CHrMZOeQ.js";import"./Package-DfSGRzd8.js";import"./Palette-BGLfd0AQ.js";import"./Play-CHzg1iJ-.js";import"./Plus-vunUflnL.js";import"./SearchLg-B9QN29So.js";import"./SearchMd-Dz87gpVf.js";import"./Shield01-BxakTAqd.js";import"./Stars01-Dv6nfKUD.js";import"./Trash01-fHW40JW9.js";import"./Upload01-DHXPm5d6.js";import"./User01-BDmLZpXt.js";import"./Users01-CQVC32JO.js";import"./XClose-n2u8ji_1.js";import"./X-CD095s5H.js";import"./Zap-D-_Yum16.js";import"./select-Co36KZN-.js";import"./useInfiniteQuery-DiouhNBP.js";import"./use-infinite-scroll-Bpm8u4Ak.js";import"./use-connection-CeivvvyD.js";import"./use-collections-CL_jPaXB.js";import"./use-mcp-client-Dzuoqn_T.js";import"./constants-BHDe7bIw.js";import"./auth-DihJFGuM.js";import"./use-virtual-mcp-zmtckCUH.js";import"./card-S3Vtmq2S.js";import"./sidebar-4ukucvDQ.js";import"./use-mobile-D5gXb9kf.js";import"./table-DomoMZuV.js";import"./empty-state-CVxOd8be.js";import"./use-members-C0QVag0y.js";import"./use-org-auth-client-BxK-eHDV.js";import"./use-clock-tick-Dux-xkJZ.js";import"./use-automations-CiuJnH8c.js";import"./studio-tools-BbYwaZW8.js";import"./useSuspenseInfiniteQuery-C27FYNHj.js";import"./avatar-BMRhPZ0q.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-C74AM53V.js";import"./file-type-icon-BCoJhxIb.js";import"./dialog-CPk39DpV.js";import"./tab-id-BijBBRwE.js";import"./hooks-BJW3qAjD.js";import"./decopilot-sse-pool-CRvo0q2L.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-D18BsqCb.js";import"./autosend-CCJlD3Cp.js";import"./use-ai-providers-CFAhOCyV.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-wbEgxVgD.js";import"./use-organization-settings-Q8FHYdiF.js";import"./monaco-editor-Cp6TmIqo.js";import"./index-D8ITL2ZX.js";import"./index-B01ZjBHk.js";import"./calendar-C4gRUxUF.js";import"./shell-layout-6CaMXXob.js";import"./required-auth-layout-C6MKg1qc.js";import"./use-org-sso-DMSHJqOH.js";import"./integration-icon-CQaaJ7mM.js";import"./use-navigate-to-agent-DTqlbLkL.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DRYVHtn_.js";import"./form-CqS0Cps-.js";import"./input-Bgw8ZyJL.js";const bt=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),yt=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Tt=new Date(-864e13),vt=new Date(864e13),jt=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,wt=/\/flags\/multivariate\.ts$/;function Nt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function kt(e){if(!e||typeof e!="object")return null;const{start:t,end:n}=e,r=typeof t=="string",l=typeof n=="string";if(!r&&!l)return null;const s=r?new Date(t):Tt,m=l?new Date(n):vt;return Number.isNaN(s.getTime())||Number.isNaN(m.getTime())||r&&l&&m.getTime()<=s.getTime()?null:{start:s,end:m,openStart:!r,openEnd:!l}}function rt(e,t){if(!e||typeof e!="object")return;const n=e.__resolveType;if(typeof n=="string"){if(bt.has(n)){const r=kt(e);r&&t.push(r);return}if(yt.has(n)){const r=e.matchers;if(Array.isArray(r))for(const l of r)rt(l,t)}}}function _t(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!jt.test(t))return!1;const n=e.variants;return Array.isArray(n)}function Mt(e){if(typeof e=="string"){const a=e.trim();if(a.length===0)return null;try{const i=new URL(a).pathname.split("/").filter(Boolean),p=i[i.length-1];if(p)return decodeURIComponent(p)}catch{}return a.length>80?`${a.slice(0,77)}…`:a}if(!e||typeof e!="object")return null;const t=e,n=t.config,l=t.desktop?.media,s=[t.title,t.name,t.label,t.alt,n?.title,n?.name,n?.typeAlert?.message,l?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const a of s)if(typeof a=="string"&&a.trim().length>0)return a.trim();const m=t.__resolveType;if(typeof m=="string"){const c=(m.split("/").pop()??m).replace(/\.(tsx?|jsx?)$/i,"");if(c.length>0)return c}return null}function Et(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];typeof r=="number"?t.length>0?t[t.length-1]+=`[${r}]`:t.push(`[${r}]`):t.push(r)}return t.join(" · ")}function W(e,t,n,r,l){if(_t(e)){const s=e.variants,m=e.__resolveType,a=wt.test(m)?"":Et(r);s.forEach((c,i)=>{if(!c||typeof c!="object")return;const p=c,d=[];if(rt(p.rule,d),d.length===0)return;const x=Mt(p.value)??(a||n);for(const h of d)l.push({blockKey:t,blockLabel:n,innerPath:a,variantIndex:i,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:x,flagResolveType:m})});for(let c=0;c<s.length;c++){const i=s[c];i&&typeof i=="object"&&W(i.value,t,n,[...r,"variants",c,"value"],l)}return}if(Array.isArray(e)){for(let s=0;s<e.length;s++)W(e[s],t,n,[...r,s],l);return}if(e&&typeof e=="object")for(const[s,m]of Object.entries(e))s!=="__resolveType"&&W(m,t,n,[...r,s],l)}function St(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e))W(r,n,Nt(n),[],t);return t.sort((n,r)=>n.start.getTime()-r.start.getTime())}function At(e){const t=[...new Set(e)].sort(),n=new Map;return t.forEach((r,l)=>{const s=l*137.508%360;n.set(r,{bg:`oklch(0.62 0.14 ${s})`,text:"white",border:`oklch(0.50 0.14 ${s})`})}),n}const Dt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function st(e,t){return e.get(t)??Dt}const $t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ot=["January","February","March","April","May","June","July","August","September","October","November","December"],it=1440*60*1e3;function P(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function at(e){return new Date(e.getFullYear(),e.getMonth(),1)}function F(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function z(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function K(e,t){return Math.round((P(e).getTime()-P(t).getTime())/it)}function Ct(e){const t=(e.getTime()-P(e).getTime())/it;return Math.min(Math.max(t,0),1)}function q(e,t){return K(e,t)+Ct(e)}function Rt(e){const t=z(e,-e.getDay()),n=[];for(let r=0;r<6;r++){const l=[];for(let s=0;s<7;s++)l.push(z(t,r*7+s));n.push(l)}for(;n.length>0&&n[n.length-1].every(r=>r.getMonth()!==e.getMonth());)n.pop();return n}function Lt(e,t){const n=P(e[0]),r=z(n,7),l=n.getTime(),s=r.getTime(),m=[];for(const i of t){const p=P(i.start),d=P(i.end);if(d.getTime()<n.getTime()||p.getTime()>=r.getTime())continue;const u=p.getTime()<n.getTime()?n:p,x=d.getTime()>=r.getTime()?z(r,-1):d,h=K(u,n),g=K(x,u)+1;if(g<=0)continue;const b=Math.max(i.start.getTime(),l),y=Math.min(i.end.getTime(),s),T=q(new Date(b),n),f=Math.max(q(new Date(y),n)-T,0);f<=0||m.push({variant:i,startCol:h,span:g,leftUnits:T,widthUnits:f})}m.sort((i,p)=>i.startCol-p.startCol||p.span-i.span||i.variant.blockKey.localeCompare(p.variant.blockKey));const a=[],c=[];for(const i of m){let p=a.findIndex(d=>d<=i.startCol);p===-1&&(p=a.length,a.push(0)),a[p]=i.startCol+i.span,c.push({...i,lane:p})}return c}const Q=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ot(e){const t=e.openStart?"Always":Q.format(e.start),n=e.openEnd?"Ongoing":Q.format(e.end);return`${t} → ${n}`}function Pt(e){const t=V.c(17),{variant:n}=e;let r;t[0]!==n.blockLabel?(r=o.jsx("div",{className:"font-semibold",children:n.blockLabel}),t[0]=n.blockLabel,t[1]=r):r=t[1];let l;t[2]!==n.innerPath?(l=n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),t[2]=n.innerPath,t[3]=l):l=t[3];let s;t[4]!==n.blockLabel||t[5]!==n.innerPath||t[6]!==n.label?(s=n.label!==n.blockLabel&&n.label!==n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.label}),t[4]=n.blockLabel,t[5]=n.innerPath,t[6]=n.label,t[7]=s):s=t[7];let m;t[8]!==n?(m=Ot(n),t[8]=n,t[9]=m):m=t[9];let a;t[10]!==m?(a=o.jsx("div",{className:"mt-1",children:m}),t[10]=m,t[11]=a):a=t[11];let c;return t[12]!==r||t[13]!==l||t[14]!==s||t[15]!==a?(c=o.jsx(gt,{children:o.jsxs("div",{className:"text-xs",children:[r,l,s,a]})}),t[12]=r,t[13]=l,t[14]=s,t[15]=a,t[16]=c):c=t[16],c}const X=16;function It(e,t){const n=e?"transparent":"#000 0",r=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${n}, #000 ${X}px, #000 calc(100% - ${X}px), ${r})`}function lt(e){const t=V.c(26),{variant:n,color:r,style:l,children:s,fadeStart:m,fadeEnd:a}=e,c=m===void 0?!1:m,i=a===void 0?!1:a;let p;t[0]!==i||t[1]!==c?(p=It(c,i),t[0]=i,t[1]=c,t[2]=p):p=t[2];const d=p;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]!==d?(h=d&&{maskImage:d,WebkitMaskImage:d},t[7]=d,t[8]=h):h=t[8];let g;t[9]!==r.bg||t[10]!==r.text||t[11]!==l||t[12]!==u||t[13]!==x||t[14]!==h?(g={background:r.bg,color:r.text,borderRadius:4,...u,...x,...h,...l},t[9]=r.bg,t[10]=r.text,t[11]=l,t[12]=u,t[13]=x,t[14]=h,t[15]=g):g=t[15];let b;t[16]!==s?(b=o.jsx("span",{className:"truncate",children:s}),t[16]=s,t[17]=b):b=t[17];let y;t[18]!==g||t[19]!==b?(y=o.jsx(ut,{asChild:!0,children:o.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:g,children:b})}),t[18]=g,t[19]=b,t[20]=y):y=t[20];let T;t[21]!==n?(T=o.jsx(Pt,{variant:n}),t[21]=n,t[22]=T):T=t[22];let f;return t[23]!==T||t[24]!==y?(f=o.jsxs(ht,{children:[y,T]}),t[23]=T,t[24]=y,t[25]=f):f=t[25],f}function Jn(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,p,d;if(t[0]!==n||t[1]!==a){const S=St(n);i=S.filter(Ht).length,d=a?S:S.filter(Vt),p=At(d.map(Ft)),t[0]=n,t[1]=a,t[2]=i,t[3]=p,t[4]=d}else i=t[2],p=t[3],d=t[4];const u=p;let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=()=>m(at(new Date)),t[5]=x):x=t[5];const h=x;let g;t[6]!==r?(g=()=>m(S=>r==="calendar"?F(S,-1):F(S,-3)),t[6]=r,t[7]=g):g=t[7];const b=g;let y;t[8]!==r?(y=()=>m(S=>r==="calendar"?F(S,1):F(S,3)),t[8]=r,t[9]=y):y=t[9];const T=y;let f;t[10]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(Y,{variant:"outline",size:"sm",onClick:h,children:"Today"}),t[10]=f):f=t[10];let N;t[11]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx(ct,{size:16}),t[11]=N):N=t[11];let k;t[12]!==b?(k=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:b,"aria-label":"Previous",children:N}),t[12]=b,t[13]=k):k=t[13];let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx(pt,{size:16}),t[14]=_):_=t[14];let M;t[15]!==T?(M=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:T,"aria-label":"Next",children:_}),t[15]=T,t[16]=M):M=t[16];const A=ot[s.getMonth()];let E;t[17]!==s?(E=s.getFullYear(),t[17]=s,t[18]=E):E=t[18];let v;t[19]!==A||t[20]!==E?(v=o.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[A," ",E]}),t[19]=A,t[20]=E,t[21]=v):v=t[21];let j;t[22]!==v||t[23]!==k||t[24]!==M?(j=o.jsxs("div",{className:"flex items-center gap-2",children:[f,k,M,v]}),t[22]=v,t[23]=k,t[24]=M,t[25]=j):j=t[25];let D;t[26]!==i||t[27]!==a?(D=i>0&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(ft,{id:"show-ongoing",checked:a,onCheckedChange:c}),o.jsxs(dt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:["Show ongoing (",i,")"]})]}),t[26]=i,t[27]=a,t[28]=D):D=t[28];let L;t[29]===Symbol.for("react.memo_cache_sentinel")?(L={value:"calendar",icon:o.jsx(et,{}),label:"Calendar"},t[29]=L):L=t[29];let I;t[30]===Symbol.for("react.memo_cache_sentinel")?(I=[L,{value:"timeline",icon:o.jsx(mt,{}),label:"Timeline"}],t[30]=I):I=t[30];let w;t[31]!==r?(w=o.jsx(xt,{value:r,onValueChange:l,options:I}),t[31]=r,t[32]=w):w=t[32];let R;t[33]!==D||t[34]!==w?(R=o.jsxs("div",{className:"flex items-center gap-4",children:[D,w]}),t[33]=D,t[34]=w,t[35]=R):R=t[35];let $;t[36]!==j||t[37]!==R?($=o.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,R]}),t[36]=j,t[37]=R,t[38]=$):$=t[38];let C;t[39]!==u||t[40]!==s||t[41]!==i||t[42]!==a||t[43]!==d||t[44]!==r?(C=d.length===0?o.jsx(Wt,{hiddenOngoing:a?0:i}):r==="calendar"?o.jsx(Ut,{monthStart:s,variants:d,colorMap:u}):o.jsx(Jt,{monthStart:s,variants:d,colorMap:u}),t[39]=u,t[40]=s,t[41]=i,t[42]=a,t[43]=d,t[44]=r,t[45]=C):C=t[45];let O;return t[46]!==$||t[47]!==C?(O=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[$,C]}),t[46]=$,t[47]=C,t[48]=O):O=t[48],O}function Ft(e){return e.blockKey}function Vt(e){return!e.openEnd}function Ht(e){return e.openEnd}function Bt(){return at(new Date)}function Wt(e){const t=V.c(3),{hiddenOngoing:n}=e,r=n===void 0?0:n;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(et,{size:24,className:"text-muted-foreground/60"}),t[0]=l):l=t[0];let s;return t[1]!==r?(s=o.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[l,r>0?o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No dated variants in view."}),o.jsxs("div",{className:"text-xs text-muted-foreground/80",children:[r," ongoing"," ",r===1?"variant is":"variants are"," hidden — enable “Show ongoing” to view."]})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No scheduled variants."}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]})]}),t[1]=r,t[2]=s):s=t[2],s}const G=20,Z=2,tt=28,zt=6;function Ut(e){const t=V.c(17),{monthStart:n,variants:r,colorMap:l}=e;let s,m,a,c,i;if(t[0]!==l||t[1]!==n||t[2]!==r){const u=Rt(n),x=P(new Date);s=nt,i="flex-1 min-h-0",m="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:$t.map(Gt)}),t[8]=a):a=t[8],c=u.map((h,g)=>{const b=Lt(h,r),y=b.reduce(Yt,0),T=tt+y*(G+Z)+8;return o.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((f,N)=>{const k=f.getMonth()===n.getMonth(),_=f.getTime()===x.getTime();return o.jsx("div",{className:J("border-r last:border-r-0 px-2 pt-1.5 text-xs",k?"bg-background":"bg-muted/30 text-muted-foreground"),children:o.jsx("span",{className:J("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",_&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},N)}),b.map((f,N)=>{const k=st(l,f.variant.blockKey),_=tt+f.lane*(G+Z),M=f.leftUnits/7*100,A=f.widthUnits/7*100,E=f.variant.openStart&&g===0,v=f.variant.openEnd&&g===u.length-1;return o.jsxs(lt,{variant:f.variant,color:k,fadeStart:E,fadeEnd:v,style:{top:_,left:`calc(${M}% + 2px)`,width:`calc(${A}% - 4px)`,minWidth:zt,height:G},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&o.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${g}-${N}`)})]},g)}),t[0]=l,t[1]=n,t[2]=r,t[3]=s,t[4]=m,t[5]=a,t[6]=c,t[7]=i}else s=t[3],m=t[4],a=t[5],c=t[6],i=t[7];let p;t[9]!==m||t[10]!==a||t[11]!==c?(p=o.jsxs("div",{className:m,children:[a,c]}),t[9]=m,t[10]=a,t[11]=c,t[12]=p):p=t[12];let d;return t[13]!==s||t[14]!==i||t[15]!==p?(d=o.jsx(s,{className:i,children:p}),t[13]=s,t[14]=i,t[15]=p,t[16]=d):d=t[16],d}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,p,d;if(t[0]!==l||t[1]!==n||t[2]!==s||t[3]!==r){const h=F(n,B),g=new Date,b=new Map;for(const v of r){const j=b.get(v.blockKey)??[];j.push(v),b.set(v.blockKey,j)}const y=Array.from(b.entries()).sort(Xt),T=h.getTime()-s.getTime(),f=v=>(Math.max(s.getTime(),Math.min(h.getTime(),v.getTime()))-s.getTime())/T*100;let N;t[10]!==s?(N=(v,j)=>F(s,j),t[10]=s,t[11]=N):N=t[11];const k=Array.from({length:B},N),_=g.getTime()>=s.getTime()&&g.getTime()<=h.getTime()?f(g):null;m=nt,d="flex-1 min-h-0",a="min-w-[900px] relative";let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:{width:H},children:"Variant / Block"}),t[12]=M):M=t[12];let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A={gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},t[13]=A):A=t[13];const E=k.map(Qt);t[14]!==E?(c=o.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[M,o.jsx("div",{className:"flex-1 grid",style:A,children:E})]}),t[14]=E,t[15]=c):c=t[15],t[16]!==_?(i=_!==null&&o.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${H}px + (100% - ${H}px) * ${_} / 100)`},children:o.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:"Today"})}),t[16]=_,t[17]=i):i=t[17],p=y.map(v=>{const[j,D]=v,L=st(l,j),I=D[0]?.blockLabel??j;return o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:o.jsx("div",{className:"px-3 truncate",style:{width:H},children:I})}),D.map((w,R)=>o.jsxs("div",{className:"flex border-b items-center",style:{height:Kt},children:[o.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:H},children:[o.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:L.bg}}),o.jsx("span",{className:"truncate text-foreground/80",children:w.label})]}),o.jsxs("div",{className:"relative flex-1 h-full",children:[o.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},children:k.map(qt)}),(()=>{const $=Math.max(w.start.getTime(),s.getTime()),C=Math.min(w.end.getTime(),h.getTime());if(C<=$)return null;const O=f(new Date($)),S=f(new Date(C))-O;return o.jsx(lt,{variant:w,color:L,fadeStart:w.openStart,fadeEnd:w.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${S}% - 2px)`,height:22},children:w.label})})()]})]},R))]},j)}),t[0]=l,t[1]=n,t[2]=s,t[3]=r,t[4]=m,t[5]=a,t[6]=c,t[7]=i,t[8]=p,t[9]=d}else m=t[4],a=t[5],c=t[6],i=t[7],p=t[8],d=t[9];let u;t[18]!==a||t[19]!==c||t[20]!==i||t[21]!==p?(u=o.jsxs("div",{className:a,children:[c,i,p]}),t[18]=a,t[19]=c,t[20]=i,t[21]=p,t[22]=u):u=t[22];let x;return t[23]!==m||t[24]!==d||t[25]!==u?(x=o.jsx(m,{className:d,children:u}),t[23]=m,t[24]=d,t[25]=u,t[26]=x):x=t[26],x}function qt(e,t){return o.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function Qt(e,t){return o.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ot[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Xt(e,t){return e[0].localeCompare(t[0])}export{Jn as VariantCalendar};
|
|
1
|
+
import{c as V,r as U,j as o,l as J,B as Y}from"./index-CJg_Egqt.js";import{w as ct,T as et,f as mt}from"./agent-icon-DRNZgcTL.js";import{i as pt}from"./ChevronRight--9yqvYWf.js";import{L as dt}from"./label-C2sQKcp-.js";import{m as nt}from"./automation-runs-vH6sxCUK.js";import{S as ft}from"./switch-Dm4fTXKs.js";import{T as ut,b as ht,a as gt}from"./tooltip-CbqENaRk.js";import{V as xt}from"./view-mode-toggle-BdJcoEd9.js";import"./AlertCircle-nWv25JeA.js";import"./Tool01-5fMP7aix.js";import"./ArrowUp-JMxPneYh.js";import"./Settings02-B8Xg9Ceh.js";import"./Tool02-DwgPc8gO.js";import"./XCircle-C36UJF6a.js";import"./ArrowUpRight-_QPSndAA.js";import"./TrendUp01-C6gc0m_Y.js";import"./ZapSquare-BIQqopqz.js";import"./ZoomOut-x8tEYJoF.js";import"./Users03-7WDpxAVJ.js";import"./CheckCircle-BiCk6M1i.js";import"./ChevronUp-CBc6mTHH.js";import"./ChevronDown-Bk388uKN.js";import"./DotsVertical-BuP9koEQ.js";import"./Stars02-BgkKZs5F.js";import"./Copy01-0niZuRag.js";import"./Globe01-8eLKn4gM.js";import"./Eye-COxYqykw.js";import"./FilterLines-D8ozqbzG.js";import"./Star01-RLBkyxVh.js";import"./Globe04-CdhsdEHz.js";import"./SwitchHorizontal01-DAwh1jjs.js";import"./HardDrive-BVMeb0-p.js";import"./Image01-Co3VyZE3.js";import"./Key01-DkW4qJFE.js";import"./LayoutLeft-DrJM2_Ep.js";import"./LinkExternal01-DnzxlFtS.js";import"./Monitor01-CzAatAIN.js";import"./Sun-2E0hvBzA.js";import"./Package-DyiYgi9M.js";import"./Palette-BiG6eCTN.js";import"./Play-BKK6s9aO.js";import"./Plus-C24Ro7xc.js";import"./SearchLg-B_rJkupy.js";import"./SearchMd-rbptHB_6.js";import"./Shield01-DoK1siCH.js";import"./Stars01-C5etiMCY.js";import"./Trash01-Q7ur9Rqq.js";import"./Upload01-DuLdiv6K.js";import"./User01-2SW_8rQp.js";import"./Users01-CipejDFG.js";import"./XClose-DB2DNbt8.js";import"./X-kYcnvv1i.js";import"./Zap-Bqx6Tclv.js";import"./select-CPYU-t5a.js";import"./useInfiniteQuery-CK-e6o9j.js";import"./use-infinite-scroll-CSTQG008.js";import"./use-connection-DplYmHsJ.js";import"./use-collections-DYDWO6MI.js";import"./use-mcp-client-3b--jDw0.js";import"./constants-BHDe7bIw.js";import"./auth-DKhY9vUa.js";import"./use-virtual-mcp-DUrScDuD.js";import"./card-Dsu8gxpB.js";import"./sidebar-C3y2b73P.js";import"./use-mobile-B4wbl9ax.js";import"./table-D3hSTANX.js";import"./empty-state-CXtpKnwp.js";import"./use-members-DuJDNpWn.js";import"./use-org-auth-client-CCZXY5FU.js";import"./use-clock-tick-CIZedz4V.js";import"./use-automations-BVYRTytr.js";import"./studio-tools-QtrBYuQn.js";import"./useSuspenseInfiniteQuery-ZeV5doDS.js";import"./avatar-B_1zOY0Q.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-C8PrdBdY.js";import"./file-type-icon-DLjKpaep.js";import"./dialog-yQFJnNXx.js";import"./tab-id-BijBBRwE.js";import"./hooks-nUCBk-Mx.js";import"./decopilot-sse-pool-B8h8ZJim.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-DIps8mJH.js";import"./autosend-CLA4nzGj.js";import"./use-ai-providers-PBwxFzlt.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-WmBsxN2B.js";import"./use-organization-settings-sP9a9Yi_.js";import"./monaco-editor-DAjsg0ss.js";import"./index-C86DTk1U.js";import"./index-BwUHy3Vr.js";import"./calendar-Dg24ZiFi.js";import"./shell-layout-h8YLpCVy.js";import"./required-auth-layout-Bi-StVrB.js";import"./use-org-sso-BbfliJIL.js";import"./integration-icon-CQFWv0DS.js";import"./use-navigate-to-agent-B8-Wrg6s.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-B_uMtpGL.js";import"./form-DdlMEB-8.js";import"./input-CtWTdEVq.js";const bt=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),yt=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Tt=new Date(-864e13),vt=new Date(864e13),jt=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,wt=/\/flags\/multivariate\.ts$/;function Nt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function kt(e){if(!e||typeof e!="object")return null;const{start:t,end:n}=e,r=typeof t=="string",l=typeof n=="string";if(!r&&!l)return null;const s=r?new Date(t):Tt,m=l?new Date(n):vt;return Number.isNaN(s.getTime())||Number.isNaN(m.getTime())||r&&l&&m.getTime()<=s.getTime()?null:{start:s,end:m,openStart:!r,openEnd:!l}}function rt(e,t){if(!e||typeof e!="object")return;const n=e.__resolveType;if(typeof n=="string"){if(bt.has(n)){const r=kt(e);r&&t.push(r);return}if(yt.has(n)){const r=e.matchers;if(Array.isArray(r))for(const l of r)rt(l,t)}}}function _t(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!jt.test(t))return!1;const n=e.variants;return Array.isArray(n)}function Mt(e){if(typeof e=="string"){const a=e.trim();if(a.length===0)return null;try{const i=new URL(a).pathname.split("/").filter(Boolean),p=i[i.length-1];if(p)return decodeURIComponent(p)}catch{}return a.length>80?`${a.slice(0,77)}…`:a}if(!e||typeof e!="object")return null;const t=e,n=t.config,l=t.desktop?.media,s=[t.title,t.name,t.label,t.alt,n?.title,n?.name,n?.typeAlert?.message,l?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const a of s)if(typeof a=="string"&&a.trim().length>0)return a.trim();const m=t.__resolveType;if(typeof m=="string"){const c=(m.split("/").pop()??m).replace(/\.(tsx?|jsx?)$/i,"");if(c.length>0)return c}return null}function Et(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];typeof r=="number"?t.length>0?t[t.length-1]+=`[${r}]`:t.push(`[${r}]`):t.push(r)}return t.join(" · ")}function W(e,t,n,r,l){if(_t(e)){const s=e.variants,m=e.__resolveType,a=wt.test(m)?"":Et(r);s.forEach((c,i)=>{if(!c||typeof c!="object")return;const p=c,d=[];if(rt(p.rule,d),d.length===0)return;const x=Mt(p.value)??(a||n);for(const h of d)l.push({blockKey:t,blockLabel:n,innerPath:a,variantIndex:i,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:x,flagResolveType:m})});for(let c=0;c<s.length;c++){const i=s[c];i&&typeof i=="object"&&W(i.value,t,n,[...r,"variants",c,"value"],l)}return}if(Array.isArray(e)){for(let s=0;s<e.length;s++)W(e[s],t,n,[...r,s],l);return}if(e&&typeof e=="object")for(const[s,m]of Object.entries(e))s!=="__resolveType"&&W(m,t,n,[...r,s],l)}function St(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e))W(r,n,Nt(n),[],t);return t.sort((n,r)=>n.start.getTime()-r.start.getTime())}function At(e){const t=[...new Set(e)].sort(),n=new Map;return t.forEach((r,l)=>{const s=l*137.508%360;n.set(r,{bg:`oklch(0.62 0.14 ${s})`,text:"white",border:`oklch(0.50 0.14 ${s})`})}),n}const Dt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function st(e,t){return e.get(t)??Dt}const $t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ot=["January","February","March","April","May","June","July","August","September","October","November","December"],it=1440*60*1e3;function P(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function at(e){return new Date(e.getFullYear(),e.getMonth(),1)}function F(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function z(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function K(e,t){return Math.round((P(e).getTime()-P(t).getTime())/it)}function Ct(e){const t=(e.getTime()-P(e).getTime())/it;return Math.min(Math.max(t,0),1)}function q(e,t){return K(e,t)+Ct(e)}function Rt(e){const t=z(e,-e.getDay()),n=[];for(let r=0;r<6;r++){const l=[];for(let s=0;s<7;s++)l.push(z(t,r*7+s));n.push(l)}for(;n.length>0&&n[n.length-1].every(r=>r.getMonth()!==e.getMonth());)n.pop();return n}function Lt(e,t){const n=P(e[0]),r=z(n,7),l=n.getTime(),s=r.getTime(),m=[];for(const i of t){const p=P(i.start),d=P(i.end);if(d.getTime()<n.getTime()||p.getTime()>=r.getTime())continue;const u=p.getTime()<n.getTime()?n:p,x=d.getTime()>=r.getTime()?z(r,-1):d,h=K(u,n),g=K(x,u)+1;if(g<=0)continue;const b=Math.max(i.start.getTime(),l),y=Math.min(i.end.getTime(),s),T=q(new Date(b),n),f=Math.max(q(new Date(y),n)-T,0);f<=0||m.push({variant:i,startCol:h,span:g,leftUnits:T,widthUnits:f})}m.sort((i,p)=>i.startCol-p.startCol||p.span-i.span||i.variant.blockKey.localeCompare(p.variant.blockKey));const a=[],c=[];for(const i of m){let p=a.findIndex(d=>d<=i.startCol);p===-1&&(p=a.length,a.push(0)),a[p]=i.startCol+i.span,c.push({...i,lane:p})}return c}const Q=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ot(e){const t=e.openStart?"Always":Q.format(e.start),n=e.openEnd?"Ongoing":Q.format(e.end);return`${t} → ${n}`}function Pt(e){const t=V.c(17),{variant:n}=e;let r;t[0]!==n.blockLabel?(r=o.jsx("div",{className:"font-semibold",children:n.blockLabel}),t[0]=n.blockLabel,t[1]=r):r=t[1];let l;t[2]!==n.innerPath?(l=n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),t[2]=n.innerPath,t[3]=l):l=t[3];let s;t[4]!==n.blockLabel||t[5]!==n.innerPath||t[6]!==n.label?(s=n.label!==n.blockLabel&&n.label!==n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.label}),t[4]=n.blockLabel,t[5]=n.innerPath,t[6]=n.label,t[7]=s):s=t[7];let m;t[8]!==n?(m=Ot(n),t[8]=n,t[9]=m):m=t[9];let a;t[10]!==m?(a=o.jsx("div",{className:"mt-1",children:m}),t[10]=m,t[11]=a):a=t[11];let c;return t[12]!==r||t[13]!==l||t[14]!==s||t[15]!==a?(c=o.jsx(gt,{children:o.jsxs("div",{className:"text-xs",children:[r,l,s,a]})}),t[12]=r,t[13]=l,t[14]=s,t[15]=a,t[16]=c):c=t[16],c}const X=16;function It(e,t){const n=e?"transparent":"#000 0",r=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${n}, #000 ${X}px, #000 calc(100% - ${X}px), ${r})`}function lt(e){const t=V.c(26),{variant:n,color:r,style:l,children:s,fadeStart:m,fadeEnd:a}=e,c=m===void 0?!1:m,i=a===void 0?!1:a;let p;t[0]!==i||t[1]!==c?(p=It(c,i),t[0]=i,t[1]=c,t[2]=p):p=t[2];const d=p;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]!==d?(h=d&&{maskImage:d,WebkitMaskImage:d},t[7]=d,t[8]=h):h=t[8];let g;t[9]!==r.bg||t[10]!==r.text||t[11]!==l||t[12]!==u||t[13]!==x||t[14]!==h?(g={background:r.bg,color:r.text,borderRadius:4,...u,...x,...h,...l},t[9]=r.bg,t[10]=r.text,t[11]=l,t[12]=u,t[13]=x,t[14]=h,t[15]=g):g=t[15];let b;t[16]!==s?(b=o.jsx("span",{className:"truncate",children:s}),t[16]=s,t[17]=b):b=t[17];let y;t[18]!==g||t[19]!==b?(y=o.jsx(ut,{asChild:!0,children:o.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:g,children:b})}),t[18]=g,t[19]=b,t[20]=y):y=t[20];let T;t[21]!==n?(T=o.jsx(Pt,{variant:n}),t[21]=n,t[22]=T):T=t[22];let f;return t[23]!==T||t[24]!==y?(f=o.jsxs(ht,{children:[y,T]}),t[23]=T,t[24]=y,t[25]=f):f=t[25],f}function Jn(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,p,d;if(t[0]!==n||t[1]!==a){const S=St(n);i=S.filter(Ht).length,d=a?S:S.filter(Vt),p=At(d.map(Ft)),t[0]=n,t[1]=a,t[2]=i,t[3]=p,t[4]=d}else i=t[2],p=t[3],d=t[4];const u=p;let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=()=>m(at(new Date)),t[5]=x):x=t[5];const h=x;let g;t[6]!==r?(g=()=>m(S=>r==="calendar"?F(S,-1):F(S,-3)),t[6]=r,t[7]=g):g=t[7];const b=g;let y;t[8]!==r?(y=()=>m(S=>r==="calendar"?F(S,1):F(S,3)),t[8]=r,t[9]=y):y=t[9];const T=y;let f;t[10]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(Y,{variant:"outline",size:"sm",onClick:h,children:"Today"}),t[10]=f):f=t[10];let N;t[11]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx(ct,{size:16}),t[11]=N):N=t[11];let k;t[12]!==b?(k=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:b,"aria-label":"Previous",children:N}),t[12]=b,t[13]=k):k=t[13];let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx(pt,{size:16}),t[14]=_):_=t[14];let M;t[15]!==T?(M=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:T,"aria-label":"Next",children:_}),t[15]=T,t[16]=M):M=t[16];const A=ot[s.getMonth()];let E;t[17]!==s?(E=s.getFullYear(),t[17]=s,t[18]=E):E=t[18];let v;t[19]!==A||t[20]!==E?(v=o.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[A," ",E]}),t[19]=A,t[20]=E,t[21]=v):v=t[21];let j;t[22]!==v||t[23]!==k||t[24]!==M?(j=o.jsxs("div",{className:"flex items-center gap-2",children:[f,k,M,v]}),t[22]=v,t[23]=k,t[24]=M,t[25]=j):j=t[25];let D;t[26]!==i||t[27]!==a?(D=i>0&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(ft,{id:"show-ongoing",checked:a,onCheckedChange:c}),o.jsxs(dt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:["Show ongoing (",i,")"]})]}),t[26]=i,t[27]=a,t[28]=D):D=t[28];let L;t[29]===Symbol.for("react.memo_cache_sentinel")?(L={value:"calendar",icon:o.jsx(et,{}),label:"Calendar"},t[29]=L):L=t[29];let I;t[30]===Symbol.for("react.memo_cache_sentinel")?(I=[L,{value:"timeline",icon:o.jsx(mt,{}),label:"Timeline"}],t[30]=I):I=t[30];let w;t[31]!==r?(w=o.jsx(xt,{value:r,onValueChange:l,options:I}),t[31]=r,t[32]=w):w=t[32];let R;t[33]!==D||t[34]!==w?(R=o.jsxs("div",{className:"flex items-center gap-4",children:[D,w]}),t[33]=D,t[34]=w,t[35]=R):R=t[35];let $;t[36]!==j||t[37]!==R?($=o.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,R]}),t[36]=j,t[37]=R,t[38]=$):$=t[38];let C;t[39]!==u||t[40]!==s||t[41]!==i||t[42]!==a||t[43]!==d||t[44]!==r?(C=d.length===0?o.jsx(Wt,{hiddenOngoing:a?0:i}):r==="calendar"?o.jsx(Ut,{monthStart:s,variants:d,colorMap:u}):o.jsx(Jt,{monthStart:s,variants:d,colorMap:u}),t[39]=u,t[40]=s,t[41]=i,t[42]=a,t[43]=d,t[44]=r,t[45]=C):C=t[45];let O;return t[46]!==$||t[47]!==C?(O=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[$,C]}),t[46]=$,t[47]=C,t[48]=O):O=t[48],O}function Ft(e){return e.blockKey}function Vt(e){return!e.openEnd}function Ht(e){return e.openEnd}function Bt(){return at(new Date)}function Wt(e){const t=V.c(3),{hiddenOngoing:n}=e,r=n===void 0?0:n;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(et,{size:24,className:"text-muted-foreground/60"}),t[0]=l):l=t[0];let s;return t[1]!==r?(s=o.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[l,r>0?o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No dated variants in view."}),o.jsxs("div",{className:"text-xs text-muted-foreground/80",children:[r," ongoing"," ",r===1?"variant is":"variants are"," hidden — enable “Show ongoing” to view."]})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No scheduled variants."}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]})]}),t[1]=r,t[2]=s):s=t[2],s}const G=20,Z=2,tt=28,zt=6;function Ut(e){const t=V.c(17),{monthStart:n,variants:r,colorMap:l}=e;let s,m,a,c,i;if(t[0]!==l||t[1]!==n||t[2]!==r){const u=Rt(n),x=P(new Date);s=nt,i="flex-1 min-h-0",m="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:$t.map(Gt)}),t[8]=a):a=t[8],c=u.map((h,g)=>{const b=Lt(h,r),y=b.reduce(Yt,0),T=tt+y*(G+Z)+8;return o.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((f,N)=>{const k=f.getMonth()===n.getMonth(),_=f.getTime()===x.getTime();return o.jsx("div",{className:J("border-r last:border-r-0 px-2 pt-1.5 text-xs",k?"bg-background":"bg-muted/30 text-muted-foreground"),children:o.jsx("span",{className:J("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",_&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},N)}),b.map((f,N)=>{const k=st(l,f.variant.blockKey),_=tt+f.lane*(G+Z),M=f.leftUnits/7*100,A=f.widthUnits/7*100,E=f.variant.openStart&&g===0,v=f.variant.openEnd&&g===u.length-1;return o.jsxs(lt,{variant:f.variant,color:k,fadeStart:E,fadeEnd:v,style:{top:_,left:`calc(${M}% + 2px)`,width:`calc(${A}% - 4px)`,minWidth:zt,height:G},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&o.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${g}-${N}`)})]},g)}),t[0]=l,t[1]=n,t[2]=r,t[3]=s,t[4]=m,t[5]=a,t[6]=c,t[7]=i}else s=t[3],m=t[4],a=t[5],c=t[6],i=t[7];let p;t[9]!==m||t[10]!==a||t[11]!==c?(p=o.jsxs("div",{className:m,children:[a,c]}),t[9]=m,t[10]=a,t[11]=c,t[12]=p):p=t[12];let d;return t[13]!==s||t[14]!==i||t[15]!==p?(d=o.jsx(s,{className:i,children:p}),t[13]=s,t[14]=i,t[15]=p,t[16]=d):d=t[16],d}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,p,d;if(t[0]!==l||t[1]!==n||t[2]!==s||t[3]!==r){const h=F(n,B),g=new Date,b=new Map;for(const v of r){const j=b.get(v.blockKey)??[];j.push(v),b.set(v.blockKey,j)}const y=Array.from(b.entries()).sort(Xt),T=h.getTime()-s.getTime(),f=v=>(Math.max(s.getTime(),Math.min(h.getTime(),v.getTime()))-s.getTime())/T*100;let N;t[10]!==s?(N=(v,j)=>F(s,j),t[10]=s,t[11]=N):N=t[11];const k=Array.from({length:B},N),_=g.getTime()>=s.getTime()&&g.getTime()<=h.getTime()?f(g):null;m=nt,d="flex-1 min-h-0",a="min-w-[900px] relative";let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:{width:H},children:"Variant / Block"}),t[12]=M):M=t[12];let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A={gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},t[13]=A):A=t[13];const E=k.map(Qt);t[14]!==E?(c=o.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[M,o.jsx("div",{className:"flex-1 grid",style:A,children:E})]}),t[14]=E,t[15]=c):c=t[15],t[16]!==_?(i=_!==null&&o.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${H}px + (100% - ${H}px) * ${_} / 100)`},children:o.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:"Today"})}),t[16]=_,t[17]=i):i=t[17],p=y.map(v=>{const[j,D]=v,L=st(l,j),I=D[0]?.blockLabel??j;return o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:o.jsx("div",{className:"px-3 truncate",style:{width:H},children:I})}),D.map((w,R)=>o.jsxs("div",{className:"flex border-b items-center",style:{height:Kt},children:[o.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:H},children:[o.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:L.bg}}),o.jsx("span",{className:"truncate text-foreground/80",children:w.label})]}),o.jsxs("div",{className:"relative flex-1 h-full",children:[o.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},children:k.map(qt)}),(()=>{const $=Math.max(w.start.getTime(),s.getTime()),C=Math.min(w.end.getTime(),h.getTime());if(C<=$)return null;const O=f(new Date($)),S=f(new Date(C))-O;return o.jsx(lt,{variant:w,color:L,fadeStart:w.openStart,fadeEnd:w.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${S}% - 2px)`,height:22},children:w.label})})()]})]},R))]},j)}),t[0]=l,t[1]=n,t[2]=s,t[3]=r,t[4]=m,t[5]=a,t[6]=c,t[7]=i,t[8]=p,t[9]=d}else m=t[4],a=t[5],c=t[6],i=t[7],p=t[8],d=t[9];let u;t[18]!==a||t[19]!==c||t[20]!==i||t[21]!==p?(u=o.jsxs("div",{className:a,children:[c,i,p]}),t[18]=a,t[19]=c,t[20]=i,t[21]=p,t[22]=u):u=t[22];let x;return t[23]!==m||t[24]!==d||t[25]!==u?(x=o.jsx(m,{className:d,children:u}),t[23]=m,t[24]=d,t[25]=u,t[26]=x):x=t[26],x}function qt(e,t){return o.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function Qt(e,t){return o.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ot[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Xt(e,t){return e[0].localeCompare(t[0])}export{Jn 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-CJg_Egqt.js";import{b as k,T as I,a as P}from"./tooltip-CbqENaRk.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-CJg_Egqt.js"></script>
|
|
60
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BmGHTOVY.css">
|
|
61
61
|
</head>
|
|
62
62
|
<body>
|
|
63
63
|
<div id="root"></div>
|