decocms 3.84.0 → 3.84.1
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-D7JULgSW.js → AlertCircle-CmMED3h6.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BoNegK2J.js → ArrowUpRight-DwILncVx.js} +1 -1
- package/dist/client/assets/{CheckCircle-CubOqkhM.js → CheckCircle-DpKZZDmN.js} +1 -1
- package/dist/client/assets/{ChevronDown-bvcGltsD.js → ChevronDown-BjzwFuai.js} +1 -1
- package/dist/client/assets/{ChevronLeft-CwoAKT1V.js → ChevronLeft-uRkOj5F8.js} +1 -1
- package/dist/client/assets/{ChevronRight-JjxX5FP7.js → ChevronRight-BRGGbOax.js} +1 -1
- package/dist/client/assets/{ChevronUp-BHC7PPdP.js → ChevronUp-CzO_7LvF.js} +1 -1
- package/dist/client/assets/{DotsVertical-lhkCwVyZ.js → DotsVertical-DshGnU_X.js} +1 -1
- package/dist/client/assets/{Eye-DDlQv8dT.js → Eye-BBVg-SSa.js} +1 -1
- package/dist/client/assets/{FilterLines-5NaQCp3e.js → FilterLines-CowTK4HW.js} +1 -1
- package/dist/client/assets/{Globe01-DPxNkWN3.js → Globe01-Cm82tRCS.js} +1 -1
- package/dist/client/assets/{Globe04-CfOFRbjm.js → Globe04-DrE78eQQ.js} +1 -1
- package/dist/client/assets/{HardDrive-Cc6TayZG.js → HardDrive-DsahIXX5.js} +1 -1
- package/dist/client/assets/{Key01-BnvBI-54.js → Key01-CwoTMTFC.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BqPxwhfG.js → LayoutLeft-_ZNcVcNz.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cuz2KimH.js → LinkExternal01-BeE3-oct.js} +1 -1
- package/dist/client/assets/{Monitor01-Bg2cIqWO.js → Monitor01-Aa4wN2Ct.js} +1 -1
- package/dist/client/assets/{Palette-DqDQ3lBi.js → Palette-DT-obB9z.js} +1 -1
- package/dist/client/assets/{Play-DJY7X3Ac.js → Play-D7fUrl6h.js} +1 -1
- package/dist/client/assets/{Plus-BPXRSHah.js → Plus-CK2CAzo5.js} +1 -1
- package/dist/client/assets/{SearchMd-BzO607jf.js → SearchMd-B3Rw93l5.js} +1 -1
- package/dist/client/assets/{Settings02-B7JvRibZ.js → Settings02-B1ZVVT_e.js} +1 -1
- package/dist/client/assets/{Shield01-CpKySeSn.js → Shield01-BR2mZOZb.js} +1 -1
- package/dist/client/assets/{Star01-Ctay-f61.js → Star01-DBcQByZk.js} +1 -1
- package/dist/client/assets/{Stars01-BvSyxIB7.js → Stars01-aJC5veoy.js} +1 -1
- package/dist/client/assets/{Stars02-0cy3Iac4.js → Stars02-BwRZ8reG.js} +1 -1
- package/dist/client/assets/{Sun-VAruoT-r.js → Sun-BMePDS8S.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-B1Fi_gZm.js → SwitchHorizontal01-B_NmbobE.js} +1 -1
- package/dist/client/assets/{Tool01-BMBmO996.js → Tool01-CZPk8Ney.js} +1 -1
- package/dist/client/assets/{Trash01-bpIqJEin.js → Trash01-SWS-_O9Z.js} +1 -1
- package/dist/client/assets/{Upload01-DRwUypcB.js → Upload01-CoqelT_E.js} +1 -1
- package/dist/client/assets/{User01-CNb4uOQF.js → User01-Do5enW22.js} +1 -1
- package/dist/client/assets/{Users01-Dznayvgx.js → Users01-BmWtNHuf.js} +1 -1
- package/dist/client/assets/{Users03-3hrg8IdJ.js → Users03-B_G71vm-.js} +1 -1
- package/dist/client/assets/{X-BmLEy_4s.js → X-CO9z9Xp0.js} +1 -1
- package/dist/client/assets/{XCircle-lg1atJo8.js → XCircle-BFWoSw7W.js} +1 -1
- package/dist/client/assets/{XClose-DgeTXvEe.js → XClose-BO6FjXoT.js} +1 -1
- package/dist/client/assets/{Zap-yzjfF5fD.js → Zap-Bs_ao0zW.js} +1 -1
- package/dist/client/assets/{ZapSquare-CB80bsBy.js → ZapSquare-CmQdJEdR.js} +1 -1
- package/dist/client/assets/{ZoomOut-Da8en56C.js → ZoomOut-BR28jpI9.js} +1 -1
- package/dist/client/assets/{access-gate-BK8VNoXv.js → access-gate-mrUaShW4.js} +1 -1
- package/dist/client/assets/{add-section-modal-CIpKj9LO.js → add-section-modal-BTy1RUe_.js} +1 -1
- package/dist/client/assets/{agent-icon-_F0cs0c2.js → agent-icon-BB0OI_Zf.js} +1 -1
- package/dist/client/assets/{agents-list-DjjL_a90.js → agents-list-DP438aHv.js} +1 -1
- package/dist/client/assets/{ai-providers-CljQzJuo.js → ai-providers-CHjXy2IX.js} +1 -1
- package/dist/client/assets/{alert-Dj9lc9TR.js → alert-FpAPxAaA.js} +1 -1
- package/dist/client/assets/{alert-dialog-DlpOAGY3.js → alert-dialog-CU4F0Cas.js} +1 -1
- package/dist/client/assets/{app-editor-DTsz2SiG.js → app-editor-DbyBYBd1.js} +1 -1
- package/dist/client/assets/{auth-CX0V_g3E.js → auth-DscXYOeb.js} +1 -1
- package/dist/client/assets/{auth-catchall-Czx8XBA8.js → auth-catchall-BtmfoD1y.js} +1 -1
- package/dist/client/assets/{auth-entry-BlZh1m7O.js → auth-entry-CC1ARBuN.js} +1 -1
- package/dist/client/assets/{auth-split-layout-D8DmmoYv.js → auth-split-layout-Cxddqcmf.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Bb4qQGZD.js → authenticate-and-persist-oauth-KVWekoHI.js} +1 -1
- package/dist/client/assets/{automation-list-row-DikFLwfj.js → automation-list-row-DdnU0_oJ.js} +1 -1
- package/dist/client/assets/{automation-runs-z2Y1nDjt.js → automation-runs-CxkH2J7y.js} +1 -1
- package/dist/client/assets/{automations-h6AjBdGl.js → automations-CHJDB1Wn.js} +1 -1
- package/dist/client/assets/{avatar-DMMu0sLX.js → avatar-B2rvHJ2u.js} +1 -1
- package/dist/client/assets/{badge-BIOaHIWt.js → badge-Bu3HgcYX.js} +1 -1
- package/dist/client/assets/{block-document-xN8KRLYP.js → block-document-DR69_B0F.js} +1 -1
- package/dist/client/assets/{brand-context-B2j85pK0.js → brand-context-BsVjZN3k.js} +1 -1
- package/dist/client/assets/{buckets-OAl0L0y1.js → buckets-BH1wtZ3x.js} +1 -1
- package/dist/client/assets/{capability-load-error-DRTuvJDl.js → capability-load-error-CmAUMxoM.js} +1 -1
- package/dist/client/assets/{card-CwFHuYuT.js → card-kDiEfTw9.js} +1 -1
- package/dist/client/assets/category-editor-CAYNohGr.js +1 -0
- package/dist/client/assets/{chat-context-dU2BBYFR.js → chat-context-D6S41DOV.js} +1 -1
- package/dist/client/assets/{checkbox-Cbr8t7kQ.js → checkbox-CsCGEg8f.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CVzhF-RY.js → cli-auth-success-B79VcMNm.js} +1 -1
- package/dist/client/assets/{collection-detail-B3A3YP9y.js → collection-detail-BV78giTN.js} +1 -1
- package/dist/client/assets/{collection-display-button-CTjP_ikN.js → collection-display-button-BKfSRcS4.js} +1 -1
- package/dist/client/assets/{collection-search-DUL6ybNZ.js → collection-search-Did_rDKr.js} +1 -1
- package/dist/client/assets/{collection-tabs-D6_rF5iF.js → collection-tabs-BWGqEvBL.js} +1 -1
- package/dist/client/assets/{command-BDSPStF6.js → command-HyE3vuW8.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DtQQW42S.js → commerce-onboarding-CbmMdla_.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CN-ahIvP.js → connect-desktop-dialog-DzyRhy80.js} +1 -1
- package/dist/client/assets/{connection-card-Cshe8IMI.js → connection-card-D0jDIFWU.js} +1 -1
- package/dist/client/assets/{connection-detail-BxVpiSkZ.js → connection-detail-CTydjWNJ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DNsEuVwo.js → connection-form-helpers-DoxJStk3.js} +1 -1
- package/dist/client/assets/{connections-B6wVut4v.js → connections-BZqNukEV.js} +1 -1
- package/dist/client/assets/{context-menu-BgxmhhXb.js → context-menu-CBHA394l.js} +1 -1
- package/dist/client/assets/{decopilot-CM0ZbqCj.js → decopilot-Cs0sTBvJ.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DStYMiox.js → decopilot-sse-pool-DCimHDb8.js} +1 -1
- package/dist/client/assets/{dialog-YEMhf2fI.js → dialog-D4-cpiIq.js} +1 -1
- package/dist/client/assets/{domain-settings-Dp98eSJW.js → domain-settings-CpdgF4g-.js} +1 -1
- package/dist/client/assets/{drawer-CbS8-Awm.js → drawer-EynyRy5s.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B5yyPfJy.js → dropdown-menu-DgXWnPV7.js} +1 -1
- package/dist/client/assets/{empty-state-BBWaUmc0.js → empty-state-BqLGg5Qt.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DW6_hSwc.js → extract-connection-data-BrfuWfn9.js} +1 -1
- package/dist/client/assets/{file-explorer-B-BDqfr8.js → file-explorer-l8kW6-_R.js} +1 -1
- package/dist/client/assets/{file-type-icon-CRFnZTrI.js → file-type-icon-vWAzpBPp.js} +1 -1
- package/dist/client/assets/{files-BwRx28HU.js → files-CelzOm7s.js} +1 -1
- package/dist/client/assets/{form-uOBsFqj5.js → form-C0rXEiGF.js} +1 -1
- package/dist/client/assets/{general-C-as289_.js → general-Bcxz5b3F.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CQzVJw3M.js → github-repo-picker-BMm6sNS0.js} +1 -1
- package/dist/client/assets/{hooks-Bsl1fBrR.js → hooks-iTnRVGBT.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-CMi4FLQI.js → import-from-deco-dialog-CEwUaYj8.js} +1 -1
- package/dist/client/assets/{index-Cczp3zRq.js → index-7--My7Kk.js} +7 -7
- package/dist/client/assets/{index-CysG6elH.js → index-BHPHIMku.js} +1 -1
- package/dist/client/assets/{index-BVGtxGJp.js → index-BafofCVM.js} +1 -1
- package/dist/client/assets/{index-Bnzp0u27.js → index-BeL2IYvj.js} +1 -1
- package/dist/client/assets/{index-DwYMCCVI.js → index-Bt_ZjPsW.js} +1 -1
- package/dist/client/assets/{index-Da7zBgP3.js → index-C1yj8oW9.js} +3 -3
- package/dist/client/assets/{index-CEhY-HWu.js → index-C6QKjDvm.js} +1 -1
- package/dist/client/assets/{index-B5iWctwe.js → index-C9vgWyOp.js} +1 -1
- package/dist/client/assets/{index-CLUU6mBc.js → index-CChD3seh.js} +1 -1
- package/dist/client/assets/{index-Cl2voHhm.js → index-ChS8eVb4.js} +1 -1
- package/dist/client/assets/{index-BbZOuhzX.js → index-D5MvY5fk.js} +1 -1
- package/dist/client/assets/{index-CCgrVLOE.js → index-D6W1a9Ed.js} +1 -1
- package/dist/client/assets/{index-_O-v3DMq.js → index-DU_rFtey.js} +1 -1
- package/dist/client/assets/{index-DQbPuQyy.js → index-nQQO626p.js} +1 -1
- package/dist/client/assets/{index-redirect-D9E-kRrz.js → index-redirect-ZLqUsySW.js} +1 -1
- package/dist/client/assets/{index-iwyGvJw3.js → index-uuDmStBi.js} +1 -1
- package/dist/client/assets/{input-JrKcP8_P.js → input-CjEjpxdM.js} +1 -1
- package/dist/client/assets/{integration-icon-BefRgu4d.js → integration-icon-CSYS5mut.js} +1 -1
- package/dist/client/assets/{label-DamWvDSp.js → label-B1XS6835.js} +1 -1
- package/dist/client/assets/{login-CsrgI9dD.js → login-BwzmQ6Vl.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DggY1DlO.js → mcp-oauth-RIVS58UD.js} +1 -1
- package/dist/client/assets/{members-DkmZZg6p.js → members-Cv5_M0H8.js} +1 -1
- package/dist/client/assets/{monaco-editor-D7lo6yjy.js → monaco-editor-BhcbAKhi.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B-0pMNdb.js → monitoring-stats-row-D2hdprzy.js} +1 -1
- package/dist/client/assets/{oauth-callback-BdNMG3d8.js → oauth-callback-Ca8aLtLz.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DRiOpOG0.js → oauth-callback-ai-provider-nS8-aDg-.js} +1 -1
- package/dist/client/assets/{onboarding-DpiL92Sf.js → onboarding-DokdM2si.js} +1 -1
- package/dist/client/assets/{org-install-BmVHa_cl.js → org-install-CFBQ5UN5.js} +1 -1
- package/dist/client/assets/{org-layout-D5M_L5al.js → org-layout-2xw7J9o1.js} +1 -1
- package/dist/client/assets/{organization-choice-CCRYa54g.js → organization-choice-B7gbF-gx.js} +1 -1
- package/dist/client/assets/{page-seo-form-C28dqfPj.js → page-seo-form-B9gdIgu6.js} +1 -1
- package/dist/client/assets/page-seo-sheet-Dim8a_29.js +1 -0
- package/dist/client/assets/{popover-BWJVGvw4.js → popover-C7DR14Uv.js} +1 -1
- package/dist/client/assets/post-editor-Dwsexwwq.js +1 -0
- package/dist/client/assets/{preview-dialog-EpRi5xxw.js → preview-dialog-D0Xo8R0Y.js} +1 -1
- package/dist/client/assets/{primitives-BMQA8oJA.js → primitives-BGDftBXt.js} +1 -1
- package/dist/client/assets/{profile-Dk2P6dGP.js → profile-Tt594UKC.js} +1 -1
- package/dist/client/assets/project-app-view-BWGayozD.js +1 -0
- package/dist/client/assets/record-editor-Cf-PzES3.js +1 -0
- package/dist/client/assets/registry-Bt-hzkrl.js +2 -0
- package/dist/client/assets/{registry-layout-DrMxvc62.js → registry-layout-CepDP4zO.js} +1 -1
- package/dist/client/assets/{require-capability-DQB_sHm-.js → require-capability-CI6JAqgD.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CEA-lcqq.js → required-auth-layout-Be42uHMA.js} +1 -1
- package/dist/client/assets/{reset-password-CAhEe0y_.js → reset-password-vSV6JpaW.js} +1 -1
- package/dist/client/assets/{roles-DSDcdczA.js → roles-DVimCkc2.js} +1 -1
- package/dist/client/assets/{save-status-ByqPY8sQ.js → save-status-B4LrYjc4.js} +1 -1
- package/dist/client/assets/{scroll-area-CDnhflx8.js → scroll-area-Btbw5x0S.js} +1 -1
- package/dist/client/assets/{search-input-E5lbuSaQ.js → search-input-BJySI9eP.js} +1 -1
- package/dist/client/assets/{secrets-HQJKo8ct.js → secrets-CgCqWHuI.js} +1 -1
- package/dist/client/assets/sections-editor-73TndVEn.js +2 -0
- package/dist/client/assets/{select-BRu_aocD.js → select-Bdte2-mH.js} +1 -1
- package/dist/client/assets/{select-model-D6u-jQT1.js → select-model-Da9fCD4_.js} +1 -1
- package/dist/client/assets/{seo-editor-uydyhvcD.js → seo-editor-oYyGw_6F.js} +1 -1
- package/dist/client/assets/{settings-layout-K84_EKqf.js → settings-layout-CnLgsNWc.js} +1 -1
- package/dist/client/assets/{settings-section-CMKiU6m1.js → settings-section-BIuqqQso.js} +1 -1
- package/dist/client/assets/{sheet-B0e56Uwi.js → sheet-CzR0tmZA.js} +1 -1
- package/dist/client/assets/{shell-controls-iDS_YYSh.js → shell-controls-B_8RFrNm.js} +1 -1
- package/dist/client/assets/{shell-layout-DCRByz-Z.js → shell-layout-DPTryinF.js} +1 -1
- package/dist/client/assets/{shell-route-loading-CnU2JL57.js → shell-route-loading-D5ohEyID.js} +1 -1
- package/dist/client/assets/{sidebar-muO-r9NM.js → sidebar-BLFhVRa1.js} +1 -1
- package/dist/client/assets/{skeleton-D_Y0mVys.js → skeleton-BhIDQEW6.js} +1 -1
- package/dist/client/assets/{sortable.esm-DZfVcKsT.js → sortable.esm-BrVUE0Ot.js} +1 -1
- package/dist/client/assets/{sso-GaI62zkx.js → sso-Dz4ih-D0.js} +1 -1
- package/dist/client/assets/{store-ek5K_sQV.js → store-41qcx4ON.js} +1 -1
- package/dist/client/assets/store-registry-Du1ihhH9.js +2 -0
- package/dist/client/assets/{studio-tools-Cxzj-LYh.js → studio-tools-cTyVqaHA.js} +1 -1
- package/dist/client/assets/{switch-DPUXI2pE.js → switch-DoFOdYGu.js} +1 -1
- package/dist/client/assets/{table-D7DRjfAO.js → table-zRS7Teha.js} +1 -1
- package/dist/client/assets/{tabs-CTiHAHkO.js → tabs-CQOpbrKh.js} +1 -1
- package/dist/client/assets/{task-status-CzPGYn0R.js → task-status-DjLIycFQ.js} +1 -1
- package/dist/client/assets/{textarea-rSIhk1As.js → textarea-Cya3KDiz.js} +1 -1
- package/dist/client/assets/{toggle-group-D0HpOa1A.js → toggle-group-DENfWHtP.js} +1 -1
- package/dist/client/assets/{toolbar-CWstIAgU.js → toolbar-CO9czXOO.js} +1 -1
- package/dist/client/assets/{tooltip-B7dbgru1.js → tooltip-Cvbl_0l0.js} +1 -1
- package/dist/client/assets/{types-DiVU1HF6.js → types-DkLih0NK.js} +1 -1
- package/dist/client/assets/{use-ai-providers-UVcAibrU.js → use-ai-providers-BB_netT8.js} +1 -1
- package/dist/client/assets/{use-automations-DyhWqZVe.js → use-automations-C4-BEJDp.js} +1 -1
- package/dist/client/assets/{use-capability-Dkucj2kh.js → use-capability-DtJSLljk.js} +1 -1
- package/dist/client/assets/{use-clock-tick-C8csRlSk.js → use-clock-tick-Bo_9gN4h.js} +1 -1
- package/dist/client/assets/{use-collections-Ce8iOx08.js → use-collections-C5z5SeL0.js} +1 -1
- package/dist/client/assets/{use-connection-MqRKkZiS.js → use-connection-DYuQNBQ8.js} +1 -1
- package/dist/client/assets/{use-copy-BXiwiMZD.js → use-copy-V2SquoUh.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-EFJS-btq.js → use-create-virtual-mcp-DqGii1ks.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-UYvEWk6q.js → use-debounced-autosave-B5XSTYsz.js} +1 -1
- package/dist/client/assets/{use-delete-connection-tf7cUWDI.js → use-delete-connection-D_b2gPBM.js} +1 -1
- package/dist/client/assets/{use-file-configs-Caz1V2y2.js → use-file-configs-CSX8A1vE.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D-1sc3vv.js → use-infinite-scroll-BaJGyvxX.js} +1 -1
- package/dist/client/assets/{use-join-requests-jqRgPged.js → use-join-requests-dGis0QYB.js} +1 -1
- package/dist/client/assets/{use-mcp-client-QbDw5Kxr.js → use-mcp-client-90IJIS7G.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CJoxcvaa.js → use-mcp-prompts-D2ucpusX.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CwE0F1Fa.js → use-mcp-tools-IJf4yY8f.js} +1 -1
- package/dist/client/assets/{use-members-DqOAFyvD.js → use-members-DSWXPVdi.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CHwphTrt.js → use-navigate-to-agent-D_hba2ju.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Cw-eW4eJ.js → use-org-auth-client-Bmz_glRx.js} +1 -1
- package/dist/client/assets/{use-org-sso-DYW-70GB.js → use-org-sso-d8VUjdDF.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C929xbIg.js → use-organization-roles-AnHrNvDP.js} +1 -1
- package/dist/client/assets/{use-organization-settings-B7zELDxl.js → use-organization-settings-B-FYwlct.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DSvlh2CW.js → use-registry-connections-COP2SiNd.js} +1 -1
- package/dist/client/assets/{use-secrets-BGVjiXmA.js → use-secrets-CgpawoY3.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Bwl21Nte.js → use-status-sounds-CO3Rxsnj.js} +1 -1
- package/dist/client/assets/{use-view-mode-DeBJ3OlV.js → use-view-mode-CbF51x_n.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-D3YjjDr2.js → use-virtual-mcp-yUKVcLc_.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BxIrRxsB.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DENvoLd9.js +1 -0
- package/dist/client/assets/{variant-calendar-C5R5bfKc.js → variant-calendar-Cjzj9fQr.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BMm_SU4X.js → view-mode-toggle-D1TNBVMm.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +380 -380
- package/dist/server/server.js +246 -246
- package/package.json +1 -1
- package/dist/client/assets/category-editor-DrrOt_5R.js +0 -1
- package/dist/client/assets/page-seo-sheet-C6YR_NxM.js +0 -1
- package/dist/client/assets/post-editor-BRqcUmQd.js +0 -1
- package/dist/client/assets/project-app-view-TZf9g1ss.js +0 -1
- package/dist/client/assets/record-editor-ChJ6RVXx.js +0 -1
- package/dist/client/assets/registry-HmZZwFRK.js +0 -2
- package/dist/client/assets/sections-editor-LwvHy6hA.js +0 -2
- package/dist/client/assets/store-registry-2fFie2P8.js +0 -2
- package/dist/client/assets/useInfiniteQuery-W7QqfcbQ.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-f7kozjC6.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,r as U,j as o,l as J,B as Y}from"./index-Da7zBgP3.js";import{T as et,f as ct}from"./agent-icon-_F0cs0c2.js";import{n as mt}from"./ChevronLeft-CwoAKT1V.js";import{i as dt}from"./ChevronRight-JjxX5FP7.js";import{L as ft}from"./label-DamWvDSp.js";import{S as nt}from"./scroll-area-CDnhflx8.js";import{S as pt}from"./switch-DPUXI2pE.js";import{T as ut,b as ht,a as gt}from"./tooltip-B7dbgru1.js";import{V as xt}from"./view-mode-toggle-BMm_SU4X.js";import"./AlertCircle-D7JULgSW.js";import"./Tool01-BMBmO996.js";import"./SwitchHorizontal01-B1Fi_gZm.js";import"./Settings02-B7JvRibZ.js";import"./XCircle-lg1atJo8.js";import"./ArrowUpRight-BoNegK2J.js";import"./ZapSquare-CB80bsBy.js";import"./Users03-3hrg8IdJ.js";import"./CheckCircle-CubOqkhM.js";import"./ChevronUp-BHC7PPdP.js";import"./ChevronDown-bvcGltsD.js";import"./DotsVertical-lhkCwVyZ.js";import"./Stars02-0cy3Iac4.js";import"./Eye-DDlQv8dT.js";import"./ZoomOut-Da8en56C.js";import"./Globe01-DPxNkWN3.js";import"./FilterLines-5NaQCp3e.js";import"./Star01-Ctay-f61.js";import"./Globe04-CfOFRbjm.js";import"./HardDrive-Cc6TayZG.js";import"./Key01-BnvBI-54.js";import"./LayoutLeft-BqPxwhfG.js";import"./LinkExternal01-Cuz2KimH.js";import"./Monitor01-Bg2cIqWO.js";import"./Sun-VAruoT-r.js";import"./Palette-DqDQ3lBi.js";import"./Play-DJY7X3Ac.js";import"./Plus-BPXRSHah.js";import"./SearchMd-BzO607jf.js";import"./Shield01-CpKySeSn.js";import"./Stars01-BvSyxIB7.js";import"./Trash01-bpIqJEin.js";import"./Upload01-DRwUypcB.js";import"./User01-CNb4uOQF.js";import"./Users01-Dznayvgx.js";import"./XClose-DgeTXvEe.js";import"./X-BmLEy_4s.js";import"./Zap-yzjfF5fD.js";import"./use-clock-tick-C8csRlSk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BXiwiMZD.js";import"./file-type-icon-CRFnZTrI.js";import"./dialog-YEMhf2fI.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-DiVU1HF6.js";import"./use-mcp-client-QbDw5Kxr.js";import"./auth-CX0V_g3E.js";import"./chat-context-dU2BBYFR.js";import"./hooks-Bsl1fBrR.js";import"./decopilot-sse-pool-DStYMiox.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-D3YjjDr2.js";import"./use-collections-Ce8iOx08.js";import"./use-ai-providers-UVcAibrU.js";import"./studio-tools-Cxzj-LYh.js";import"./use-organization-settings-B7zELDxl.js";import"./shell-layout-DCRByz-Z.js";import"./avatar-DMMu0sLX.js";import"./required-auth-layout-CEA-lcqq.js";import"./use-org-sso-DYW-70GB.js";import"./sheet-B0e56Uwi.js";import"./integration-icon-BefRgu4d.js";import"./use-navigate-to-agent-CHwphTrt.js";import"./use-connection-MqRKkZiS.js";import"./use-mcp-prompts-CJoxcvaa.js";import"./form-uOBsFqj5.js";import"./input-JrKcP8_P.js";import"./select-BRu_aocD.js";import"./index-iwyGvJw3.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 q(e,t){return K(e,t)+Ct(e)}function Rt(e){const t=z(e,-e.getDay()),n=[];for(let r=0;r<6;r++){const l=[];for(let s=0;s<7;s++)l.push(z(t,r*7+s));n.push(l)}for(;n.length>0&&n[n.length-1].every(r=>r.getMonth()!==e.getMonth());)n.pop();return n}function Lt(e,t){const n=P(e[0]),r=z(n,7),l=n.getTime(),s=r.getTime(),m=[];for(const i of t){const d=P(i.start),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=q(new Date(b),n),p=Math.max(q(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 X=16;function It(e,t){const n=e?"transparent":"#000 0",r=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${n}, #000 ${X}px, #000 calc(100% - ${X}px), ${r})`}function lt(e){const t=V.c(26),{variant:n,color:r,style:l,children:s,fadeStart:m,fadeEnd:a}=e,c=m===void 0?!1:m,i=a===void 0?!1:a;let d;t[0]!==i||t[1]!==c?(d=It(c,i),t[0]=i,t[1]=c,t[2]=d):d=t[2];const 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 _n(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(mt,{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(ct,{}),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(Xt),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(qt)}),(()=>{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 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{_n as VariantCalendar};
|
|
1
|
+
import{c as V,r as U,j as o,l as J,B as Y}from"./index-C1yj8oW9.js";import{T as et,f as ct}from"./agent-icon-BB0OI_Zf.js";import{n as mt}from"./ChevronLeft-uRkOj5F8.js";import{i as dt}from"./ChevronRight-BRGGbOax.js";import{L as ft}from"./label-B1XS6835.js";import{S as nt}from"./scroll-area-Btbw5x0S.js";import{S as pt}from"./switch-DoFOdYGu.js";import{T as ut,b as ht,a as gt}from"./tooltip-Cvbl_0l0.js";import{V as xt}from"./view-mode-toggle-D1TNBVMm.js";import"./AlertCircle-CmMED3h6.js";import"./Tool01-CZPk8Ney.js";import"./SwitchHorizontal01-B_NmbobE.js";import"./Settings02-B1ZVVT_e.js";import"./XCircle-BFWoSw7W.js";import"./ArrowUpRight-DwILncVx.js";import"./ZapSquare-CmQdJEdR.js";import"./Users03-B_G71vm-.js";import"./CheckCircle-DpKZZDmN.js";import"./ChevronUp-CzO_7LvF.js";import"./ChevronDown-BjzwFuai.js";import"./DotsVertical-DshGnU_X.js";import"./Stars02-BwRZ8reG.js";import"./Eye-BBVg-SSa.js";import"./ZoomOut-BR28jpI9.js";import"./Globe01-Cm82tRCS.js";import"./FilterLines-CowTK4HW.js";import"./Star01-DBcQByZk.js";import"./Globe04-DrE78eQQ.js";import"./HardDrive-DsahIXX5.js";import"./Key01-CwoTMTFC.js";import"./LayoutLeft-_ZNcVcNz.js";import"./LinkExternal01-BeE3-oct.js";import"./Monitor01-Aa4wN2Ct.js";import"./Sun-BMePDS8S.js";import"./Palette-DT-obB9z.js";import"./Play-D7fUrl6h.js";import"./Plus-CK2CAzo5.js";import"./SearchMd-B3Rw93l5.js";import"./Shield01-BR2mZOZb.js";import"./Stars01-aJC5veoy.js";import"./Trash01-SWS-_O9Z.js";import"./Upload01-CoqelT_E.js";import"./User01-Do5enW22.js";import"./Users01-BmWtNHuf.js";import"./XClose-BO6FjXoT.js";import"./X-CO9z9Xp0.js";import"./Zap-Bs_ao0zW.js";import"./use-clock-tick-Bo_9gN4h.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-V2SquoUh.js";import"./file-type-icon-vWAzpBPp.js";import"./dialog-D4-cpiIq.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-DkLih0NK.js";import"./use-mcp-client-90IJIS7G.js";import"./auth-DscXYOeb.js";import"./chat-context-D6S41DOV.js";import"./hooks-iTnRVGBT.js";import"./decopilot-sse-pool-DCimHDb8.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-yUKVcLc_.js";import"./use-collections-C5z5SeL0.js";import"./use-ai-providers-BB_netT8.js";import"./studio-tools-cTyVqaHA.js";import"./use-organization-settings-B-FYwlct.js";import"./shell-layout-DPTryinF.js";import"./avatar-B2rvHJ2u.js";import"./required-auth-layout-Be42uHMA.js";import"./use-org-sso-d8VUjdDF.js";import"./sheet-CzR0tmZA.js";import"./integration-icon-CSYS5mut.js";import"./use-navigate-to-agent-D_hba2ju.js";import"./use-connection-DYuQNBQ8.js";import"./use-mcp-prompts-D2ucpusX.js";import"./form-C0rXEiGF.js";import"./input-CjEjpxdM.js";import"./select-Bdte2-mH.js";import"./index-uuDmStBi.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 q(e,t){return K(e,t)+Ct(e)}function Rt(e){const t=z(e,-e.getDay()),n=[];for(let r=0;r<6;r++){const l=[];for(let s=0;s<7;s++)l.push(z(t,r*7+s));n.push(l)}for(;n.length>0&&n[n.length-1].every(r=>r.getMonth()!==e.getMonth());)n.pop();return n}function Lt(e,t){const n=P(e[0]),r=z(n,7),l=n.getTime(),s=r.getTime(),m=[];for(const i of t){const d=P(i.start),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=q(new Date(b),n),p=Math.max(q(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 X=16;function It(e,t){const n=e?"transparent":"#000 0",r=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${n}, #000 ${X}px, #000 calc(100% - ${X}px), ${r})`}function lt(e){const t=V.c(26),{variant:n,color:r,style:l,children:s,fadeStart:m,fadeEnd:a}=e,c=m===void 0?!1:m,i=a===void 0?!1:a;let d;t[0]!==i||t[1]!==c?(d=It(c,i),t[0]=i,t[1]=c,t[2]=d):d=t[2];const 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 _n(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(mt,{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(ct,{}),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(Xt),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(qt)}),(()=>{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 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{_n 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-C1yj8oW9.js";import{b as k,T as I,a as P}from"./tooltip-Cvbl_0l0.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-C1yj8oW9.js"></script>
|
|
60
60
|
<link rel="stylesheet" crossorigin href="/assets/index-DDRZvmg6.css">
|
|
61
61
|
</head>
|
|
62
62
|
<body>
|