decocms 4.375.0 → 4.376.0
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-CqW1GFxy.js → AlertCircle-Cm80uQMQ.js} +1 -1
- package/dist/client/assets/{AreaChart-DYNRbtHa.js → AreaChart-BQQt0fit.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BGvcqKye.js → ArrowLeft-CI6_vwJl.js} +1 -1
- package/dist/client/assets/{ArrowRight-CfSh04kd.js → ArrowRight-YdifOChs.js} +1 -1
- package/dist/client/assets/{ArrowUp-DIK810PT.js → ArrowUp-CIJSr0Uy.js} +1 -1
- package/dist/client/assets/{CartesianChart-CsHrela1.js → CartesianChart-DvyyqdLA.js} +1 -1
- package/dist/client/assets/{CheckCircle-eFuhjKFT.js → CheckCircle-DmDAlxUx.js} +1 -1
- package/dist/client/assets/{ChevronUp-QcSQ5rVq.js → ChevronUp-BAybpbAO.js} +1 -1
- package/dist/client/assets/{Copy01-BsZDIS3z.js → Copy01-BLG-yB9O.js} +1 -1
- package/dist/client/assets/{CreditCard01-yw_JaYDH.js → CreditCard01-CuieiFwv.js} +1 -1
- package/dist/client/assets/{DotsVertical-DCTIN1zx.js → DotsVertical-Qjn9bD7u.js} +1 -1
- package/dist/client/assets/{Download01-B4Q5hpED.js → Download01-CUdEmTJH.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CTDVFTli.js → ErrorBarContext-CMYu_Fz1.js} +1 -1
- package/dist/client/assets/{Eye-C46dzrHd.js → Eye-C1v6-SBQ.js} +1 -1
- package/dist/client/assets/{Globe01-DlhUCcjG.js → Globe01-Ctrf78fu.js} +1 -1
- package/dist/client/assets/{Globe04-ClHubtty.js → Globe04-DeorlaCZ.js} +1 -1
- package/dist/client/assets/{Image01-DVR_EyJG.js → Image01-DDEEEqQF.js} +1 -1
- package/dist/client/assets/{Key01-muV6twoN.js → Key01-W5nMWqao.js} +1 -1
- package/dist/client/assets/{LayoutLeft-xdqdW3pr.js → LayoutLeft-v-gPxVBy.js} +1 -1
- package/dist/client/assets/{Line-hpj-dLud.js → Line-BH1zIGSI.js} +1 -1
- package/dist/client/assets/{Link01-BbJKwlY6.js → Link01-CAgdLkvZ.js} +1 -1
- package/dist/client/assets/{LinkExternal01-FZW_JKrN.js → LinkExternal01-CWguI2G0.js} +1 -1
- package/dist/client/assets/{Monitor01-CN-5WdRa.js → Monitor01-DdH-ehTH.js} +1 -1
- package/dist/client/assets/{Package-CkvAk6JQ.js → Package-Ca1kJQJW.js} +1 -1
- package/dist/client/assets/{Palette-D8vRagJV.js → Palette-1NgeCtg4.js} +1 -1
- package/dist/client/assets/{Play-P0YcNy8v.js → Play-D9coBDJI.js} +1 -1
- package/dist/client/assets/{Plus-DcpbfgdJ.js → Plus-L4CMeo2h.js} +1 -1
- package/dist/client/assets/{SearchLg-7L27EznQ.js → SearchLg-CttLARhB.js} +1 -1
- package/dist/client/assets/{SearchMd-XFzJrarE.js → SearchMd-BjQ6aaMY.js} +1 -1
- package/dist/client/assets/{Sector-CLGxXMU7.js → Sector-Cz72810i.js} +1 -1
- package/dist/client/assets/{Settings02-CncEwCCz.js → Settings02-BW27aEc7.js} +1 -1
- package/dist/client/assets/{Share07-CxrO44KP.js → Share07-DWRoaK9G.js} +1 -1
- package/dist/client/assets/{Stars01-DyW-G6OS.js → Stars01-DlZJggen.js} +1 -1
- package/dist/client/assets/{Sun-xECmqRY7.js → Sun-CcIbq0UZ.js} +1 -1
- package/dist/client/assets/{Tool01-dwGgKodr.js → Tool01-B1CIPJlg.js} +1 -1
- package/dist/client/assets/{Tool02-CbeJXNE6.js → Tool02-CE2CsLyJ.js} +1 -1
- package/dist/client/assets/{Trash01-Cs1900Vx.js → Trash01-B82ZZMGA.js} +1 -1
- package/dist/client/assets/{TrendUp01-BfIYShuZ.js → TrendUp01-BCNTgoYi.js} +1 -1
- package/dist/client/assets/{Upload01-odxUyqlC.js → Upload01-zkIbWeZQ.js} +1 -1
- package/dist/client/assets/{User01-C-kfOI2V.js → User01-BBjKoAPb.js} +1 -1
- package/dist/client/assets/{UserSquare-CBd8Lm1t.js → UserSquare-B6mag78j.js} +1 -1
- package/dist/client/assets/{Users01-DW5XXBNa.js → Users01-COhudXax.js} +1 -1
- package/dist/client/assets/{X-DgI4yqfX.js → X-CZ5u1gQz.js} +1 -1
- package/dist/client/assets/{XCircle-ChzUwnd9.js → XCircle-DVIMVh0g.js} +1 -1
- package/dist/client/assets/{XClose-Cu0FBQhr.js → XClose-BHW02Gld.js} +1 -1
- package/dist/client/assets/{Zap-BkWm3G14.js → Zap-B7SjQTF1.js} +1 -1
- package/dist/client/assets/{ZoomOut-BYNmIOoy.js → ZoomOut-B3LU1sVM.js} +1 -1
- package/dist/client/assets/{access-gate-DrhvBokN.js → access-gate-BMbKi31w.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BNKRqesq.js → add-connection-dialog-Cj_p1y9t.js} +1 -1
- package/dist/client/assets/{agent-analytics-DhJQZGBL.js → agent-analytics-BJTe-WT2.js} +1 -1
- package/dist/client/assets/agent-app-DqFyNKtI.js +1 -0
- package/dist/client/assets/{agent-assets-BG71p0Uk.js → agent-assets-D3BKdiKm.js} +1 -1
- package/dist/client/assets/{agent-automation-CDChcSyV.js → agent-automation-BIgf2eVS.js} +1 -1
- package/dist/client/assets/{agent-automations-Ds_gyptW.js → agent-automations-KDO-QCaO.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-BQVAyJ4p.js → agent-connect-sources-yvecGA00.js} +1 -1
- package/dist/client/assets/agent-deck-DIiGwoQx.js +1 -0
- package/dist/client/assets/{agent-e2e-Waa8S4qH.js → agent-e2e-DgZKhQJU.js} +1 -1
- package/dist/client/assets/{agent-experiments-DocmKFCq.js → agent-experiments-XbDm6E9w.js} +1 -1
- package/dist/client/assets/agent-file-x8n7RpuM.js +1 -0
- package/dist/client/assets/{agent-git-CcB_AU8a.js → agent-git-BRsFIPqF.js} +1 -1
- package/dist/client/assets/{agent-hosting-DqC3jsqS.js → agent-hosting-qLrSaTBn.js} +1 -1
- package/dist/client/assets/{agent-icon-DZmc5CaF.js → agent-icon-CFdmLldh.js} +1 -1
- package/dist/client/assets/agent-library-file-DxHboUkp.js +1 -0
- package/dist/client/assets/{agent-monitor-j0thXn_z.js → agent-monitor-DtdoOdMx.js} +1 -1
- package/dist/client/assets/{agent-overview-Se96_nVw.js → agent-overview-DtDD-Kvi.js} +1 -1
- package/dist/client/assets/agent-settings-CqXLHQLE.js +1 -0
- package/dist/client/assets/{agent-site-editor-BUv5taoc.js → agent-site-editor-Dkn6uW5_.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DZCjGWZ6.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-BT2waE8I.js → agent-site-editor-content-DhLz2SwC.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-BYZPX7tr.js → agent-site-editor-preview-eh-T4gl9.js} +3 -3
- package/dist/client/assets/agent-view-BszL8cjm.js +1 -0
- package/dist/client/assets/{agent-view-guard-B-yMTUz4.js → agent-view-guard-DT0MnC12.js} +1 -1
- package/dist/client/assets/{agents-list--UPC2z-V.js → agents-list-J7lqHacr.js} +1 -1
- package/dist/client/assets/{ai-providers-DoD-WkyR.js → ai-providers-Bu_ftgSH.js} +1 -1
- package/dist/client/assets/{alert-BiRypa2I.js → alert-DN6Jkx2F.js} +1 -1
- package/dist/client/assets/{alert-dialog-BYQAyeOC.js → alert-dialog-CtGv9jdd.js} +1 -1
- package/dist/client/assets/api-keys-437d_25Z.js +1 -0
- package/dist/client/assets/{api-keys-CFH8WzHp.js → api-keys-U1Ff83Yk.js} +1 -1
- package/dist/client/assets/app-editor-DnPd6p2P.js +1 -0
- package/dist/client/assets/{asset-utils-Db2ZBQHY.js → asset-utils-BcGTQmUM.js} +1 -1
- package/dist/client/assets/{auth-BCpLT4L2.js → auth-DbBN__xJ.js} +1 -1
- package/dist/client/assets/{auth-catchall-CSzayJNY.js → auth-catchall-CPmi4Xjt.js} +1 -1
- package/dist/client/assets/{auth-entry-Bf9MzjUn.js → auth-entry-4lTFP5BN.js} +1 -1
- package/dist/client/assets/{auth-split-layout-B1xn3sDE.js → auth-split-layout-CgtQX21Q.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DVNhuSYI.js → authenticate-and-persist-oauth-D3Kb-cEZ.js} +1 -1
- package/dist/client/assets/{automation-list-row-CfW-tzTh.js → automation-list-row-DhxW__CQ.js} +1 -1
- package/dist/client/assets/{automation-runs-CI1zLVwE.js → automation-runs-DJS5XAZ2.js} +1 -1
- package/dist/client/assets/{automations-DRLDJWNL.js → automations-B0KLCqBc.js} +1 -1
- package/dist/client/assets/{autosend-U0G_KEv2.js → autosend-BBTn4tWB.js} +1 -1
- package/dist/client/assets/{avatar-DxbODU4C.js → avatar-CQQzKV-7.js} +1 -1
- package/dist/client/assets/{badge-D6ygNqO6.js → badge-DdXiAz7d.js} +1 -1
- package/dist/client/assets/{block-document-BezbnyKl.js → block-document-Dh6zsJjY.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CTo5jpQ8.js → blocks-preview-workspace-context-DWfF3nV_.js} +1 -1
- package/dist/client/assets/{breadcrumb-DWcfFz9-.js → breadcrumb-gxV-Nw6I.js} +1 -1
- package/dist/client/assets/{buckets-CYMWAXId.js → buckets-A9cm4sVk.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-C7lr6nl8.js → build-improve-prompt-doc-DLYOL5qH.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-Bj1SJBXK.js → bulk-category-panel-DblKZELB.js} +1 -1
- package/dist/client/assets/{calendar-PQ1Ftg13.js → calendar-C0OE00Yc.js} +1 -1
- package/dist/client/assets/{capability-load-error-CvIv1gsN.js → capability-load-error-VNoAtYvG.js} +1 -1
- package/dist/client/assets/category-editor-H2-UQUts.js +1 -0
- package/dist/client/assets/{chart-Dr36_7b5.js → chart-CrWliMuN.js} +1 -1
- package/dist/client/assets/{chat-context-BkliO4re.js → chat-context-BYHljAsB.js} +1 -1
- package/dist/client/assets/{chat-draft-CiN5fXJU.js → chat-draft-CaPL0UfA.js} +1 -1
- package/dist/client/assets/{checkbox-Cklt31AJ.js → checkbox-CK3yWTdA.js} +1 -1
- package/dist/client/assets/{choose-editor-DGrCIRT5.js → choose-editor-CT6dxgF8.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BHmPrydv.js → cli-auth-success-SQxQIGtu.js} +1 -1
- package/dist/client/assets/{client-icons-CS1fp_mb.js → client-icons-DgwDqPvk.js} +1 -1
- package/dist/client/assets/{collapsible-DnZ_wlS4.js → collapsible-DRPvomdt.js} +1 -1
- package/dist/client/assets/{collection-detail-DwkABCiq.js → collection-detail-CbwHPL6H.js} +1 -1
- package/dist/client/assets/{collection-display-button-CODidBR9.js → collection-display-button-BKHXaGpa.js} +1 -1
- package/dist/client/assets/{collection-search-2f8pAB4Y.js → collection-search-DtjV9-VA.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D2XJ_BvC.js → collection-table-wrapper-bdzzri_M.js} +1 -1
- package/dist/client/assets/{collection-tabs-CYx5-BiK.js → collection-tabs-Bsge5RiX.js} +1 -1
- package/dist/client/assets/{combobox-BxJAO8U7.js → combobox-CIm7mchb.js} +1 -1
- package/dist/client/assets/{command-s8BJjz1Z.js → command-0Ma0zNRD.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-idD3Wjuq.js → companion-mcps-section-CecbOJ2h.js} +1 -1
- package/dist/client/assets/{connect-YaAoKXfV.js → connect-Dq9coWz3.js} +1 -1
- package/dist/client/assets/{connect-layout-B5NqOhZR.js → connect-layout-DA1DXLPY.js} +1 -1
- package/dist/client/assets/{connection-ju8s9npF.js → connection-Cz2eR4ks.js} +1 -1
- package/dist/client/assets/{connection-card-CyoPC3yi.js → connection-card-CXTSDJwx.js} +1 -1
- package/dist/client/assets/{connection-detail-DUSw9X3H.js → connection-detail-DT02vAy0.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BKito2Bz.js → connection-form-helpers-BAGPYlIq.js} +1 -1
- package/dist/client/assets/{connections-B9YPH6e_.js → connections-dnHR3Nn0.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Bd1vOpVb.js → create-organization-dialog-B5td_ZCy.js} +1 -1
- package/dist/client/assets/{decofile-api-tER_PaB4.js → decofile-api-DmitnqlG.js} +1 -1
- package/dist/client/assets/{decopilot-f7DFX3Qm.js → decopilot-Bu7UJCZD.js} +1 -1
- package/dist/client/assets/{dialog-CfR9zhfQ.js → dialog-CDUwK9Ky.js} +1 -1
- package/dist/client/assets/{discover-BuXt2vx3.js → discover-G79Mv2SV.js} +1 -1
- package/dist/client/assets/{domain-settings-CqFWBtGR.js → domain-settings-BDTtE0Ud.js} +1 -1
- package/dist/client/assets/{download-app-dialog-BP-_J1f-.js → download-app-dialog-Ds79HQNt.js} +1 -1
- package/dist/client/assets/{drawer-BiF0PtML.js → drawer-C82rjwjY.js} +1 -1
- package/dist/client/assets/{editor-DUpmzLo7.js → editor-eoiEWzaP.js} +1 -1
- package/dist/client/assets/{empty-state-9hlMmNlC.js → empty-state-CH7AalHb.js} +1 -1
- package/dist/client/assets/{empty-state-D6UqEEY-.js → empty-state-DE7c1tnW.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DgcpMlth.js → extract-connection-data-BI0h7anK.js} +1 -1
- package/dist/client/assets/{feature-gate-D5GuzQQe.js → feature-gate-DqSV1UUr.js} +1 -1
- package/dist/client/assets/{feature-paywall-BikFTLog.js → feature-paywall-qa93jp54.js} +1 -1
- package/dist/client/assets/{file-explorer-CQocIpVZ.js → file-explorer-jsQSheKe.js} +1 -1
- package/dist/client/assets/{file-preview-DNlbJHv7.js → file-preview-DpBhyJPy.js} +1 -1
- package/dist/client/assets/{file-share-button-CO47V7vg.js → file-share-button-XI0XmzQG.js} +1 -1
- package/dist/client/assets/{file-type-icon-Dv-tVjqp.js → file-type-icon-BIj4oPmy.js} +1 -1
- package/dist/client/assets/{folder-icon-186o_xBL.js → folder-icon-C9QPDhMu.js} +1 -1
- package/dist/client/assets/{form-DHJlhF9m.js → form-C6A0elLx.js} +1 -1
- package/dist/client/assets/{gateway-client-4Nr9Lszn.js → gateway-client-eVjKfcK3.js} +1 -1
- package/dist/client/assets/{general-BCtaDRKE.js → general-DNyaqDEx.js} +1 -1
- package/dist/client/assets/{github-icon-B7rNxQCT.js → github-icon-Ctc2abJk.js} +1 -1
- package/dist/client/assets/{home-Dskdg6sU.js → home-C-Nl75Lr.js} +1 -1
- package/dist/client/assets/{hooks-Vq5fn_Sg.js → hooks-BOS6vZ4t.js} +1 -1
- package/dist/client/assets/{hooks-BB3WxPkJ.js → hooks-CMDCYMGT.js} +1 -1
- package/dist/client/assets/{icon-button-C0MdJ7W1.js → icon-button-MNO3PXmW.js} +1 -1
- package/dist/client/assets/{index-BxPwUex4.js → index-8nDSoss7.js} +1 -1
- package/dist/client/assets/{index-BCtojorK.js → index-B8lfU8Rm.js} +1 -1
- package/dist/client/assets/{index-BDzkh4SF.js → index-BeraXx-k.js} +1 -1
- package/dist/client/assets/{index-Ci8I2ZAh.js → index-BvJsKNld.js} +1 -1
- package/dist/client/assets/{index-Dxn1KDpE.js → index-C6pj24WF.js} +1 -1
- package/dist/client/assets/{index-X9VHKMKa.js → index-CKsDsbXr.js} +1 -1
- package/dist/client/assets/{index-DQZBt6Fl.js → index-COJyT2bn.js} +5 -5
- package/dist/client/assets/{index-CMgSStc4.js → index-Cx0ILH48.js} +1 -1
- package/dist/client/assets/{index-waKafOzk.js → index-CxNadzOa.js} +1 -1
- package/dist/client/assets/{index-CnX1wVk0.js → index-D522cKSf.js} +1 -1
- package/dist/client/assets/{index-C-9eP1YM.js → index-D8NqdUJn.js} +1 -1
- package/dist/client/assets/{index-BNtnQdj2.js → index-DY7FDVu8.js} +1 -1
- package/dist/client/assets/{index-BNnRrN_z.js → index-DciLqihQ.js} +1 -1
- package/dist/client/assets/{index-aeXfMtPI.js → index-DzEQCajj.js} +1 -1
- package/dist/client/assets/{index-redirect-2ysrmYvb.js → index-redirect-DKU1ip62.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DGwzP6OU.js → infiniteQueryObserver-C2EEO2RI.js} +1 -1
- package/dist/client/assets/{infra-billing-8H9IQAku.js → infra-billing-bVKrfvPU.js} +1 -1
- package/dist/client/assets/{input-Clcfr53P.js → input-AAPZUa2D.js} +1 -1
- package/dist/client/assets/{input-rh1Mv0Wr.js → input-BZsvuPI8.js} +1 -1
- package/dist/client/assets/{input-Tjg4Yj6g.js → input-DATWob-R.js} +1 -1
- package/dist/client/assets/{integration-icon-Dz7H1-MQ.js → integration-icon-G7jQWV_g.js} +1 -1
- package/dist/client/assets/{label-BNGvxM6S.js → label-BI62SaKd.js} +1 -1
- package/dist/client/assets/{last-preview-page-AQeXjWi9.js → last-preview-page-CbFesgQy.js} +1 -1
- package/dist/client/assets/{layout-X2JiO2W9.js → layout-CoeYcNBU.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-vurFyg9D.js → legacy-agents-deep-DE5YPvSr.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-Bbkf2fqL.js → legacy-main-redirect-vIYB7gjM.js} +1 -1
- package/dist/client/assets/{library-BGrUeG8I.js → library-D-UVT56D.js} +1 -1
- package/dist/client/assets/{login-Ks2wHpj_.js → login-ejU4PDpa.js} +1 -1
- package/dist/client/assets/{markdown-j472BGQe.js → markdown-g0iKgQki.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CSEPd7DC.js → mcp-app-renderer-BPIxxtwm.js} +1 -1
- package/dist/client/assets/{mcp-oauth-8WwU56fl.js → mcp-oauth-BX-s6twV.js} +1 -1
- package/dist/client/assets/{members-DXX-_l1x.js → members-C04pGeFu.js} +1 -1
- package/dist/client/assets/{message-templates-BszS8o8W.js → message-templates-DLcbwkDV.js} +1 -1
- package/dist/client/assets/{mini-report-page-IeosqtjA.js → mini-report-page-BAgYoFbz.js} +1 -1
- package/dist/client/assets/{mock-board-DrA4dW9Q.js → mock-board-7v8Ts4Ol.js} +3 -3
- package/dist/client/assets/{monaco-editor-B4FcjfHJ.js → monaco-editor-B9RMz-15.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-ClsmEIaD.js → monitoring-stats-row-CL2jrlBt.js} +1 -1
- package/dist/client/assets/{multi-select-DjG7jWJv.js → multi-select-DVMawHIt.js} +1 -1
- package/dist/client/assets/{mustache-B7tW8rKl.js → mustache-B1tltvSE.js} +1 -1
- package/dist/client/assets/{oauth-callback-CuG-N4Ag.js → oauth-callback-D1zWEN8a.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BQiU_dV5.js → oauth-callback-ai-provider-CQppFGRu.js} +1 -1
- package/dist/client/assets/{onboarding-oOptdWYC.js → onboarding-ml0KhpSL.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-0eAIAyQZ.js → optimistic-project-sidebar-views-BVIwHavf.js} +1 -1
- package/dist/client/assets/{org-file-open-context-CV0BvKfM.js → org-file-open-context-BkTepFfD.js} +1 -1
- package/dist/client/assets/{organization-choice-DzIjaq6z.js → organization-choice-DyBOUTdt.js} +1 -1
- package/dist/client/assets/{orgs-Uh-4y791.js → orgs-d7uzFXRt.js} +1 -1
- package/dist/client/assets/{page-seo-form-0XF8k2QH.js → page-seo-form-OxkYKmiI.js} +1 -1
- package/dist/client/assets/{pair-oDAsulNf.js → pair-PFcTXb_H.js} +1 -1
- package/dist/client/assets/{plan-ladder-DWqjM2H6.js → plan-ladder-DDcW_40v.js} +1 -1
- package/dist/client/assets/{popover-hNLbYWT0.js → popover-KWKKOTZi.js} +1 -1
- package/dist/client/assets/{post-calendar-DzuJkfRI.js → post-calendar-DP5VNkMQ.js} +1 -1
- package/dist/client/assets/{post-editor-C1Tx2rOv.js → post-editor-DxNfyPHT.js} +1 -1
- package/dist/client/assets/{preview-content-DMGh32pv.js → preview-content-CQad4qRX.js} +1 -1
- package/dist/client/assets/{preview-dialog-BGQQrh8x.js → preview-dialog-CJPiFSmS.js} +1 -1
- package/dist/client/assets/{primitives-BFH7BLqO.js → primitives-Z98a6m5P.js} +1 -1
- package/dist/client/assets/{profile-Buekam-F.js → profile-D5UD6t5O.js} +1 -1
- package/dist/client/assets/{project-app-view-vdLc6iv3.js → project-app-view-BdL--VkR.js} +1 -1
- package/dist/client/assets/{project-feed-DoakvNjk.js → project-feed-Cq-Ub_el.js} +1 -1
- package/dist/client/assets/{project-icon-DCwjX34f.js → project-icon-BLMwD5MF.js} +1 -1
- package/dist/client/assets/project-reports-z2TnU0xm.js +1 -0
- package/dist/client/assets/project-tasks-CfmYEIou.js +1 -0
- package/dist/client/assets/{prompts-CPY17-ZY.js → prompts-Bi0fUI_P.js} +1 -1
- package/dist/client/assets/record-editor-Wts8S4Mg.js +1 -0
- package/dist/client/assets/{redirect-editor-eNlr_Mfk.js → redirect-editor-Bviq55_I.js} +1 -1
- package/dist/client/assets/registry-BRbY-DYP.js +2 -0
- package/dist/client/assets/{registry-layout-DryRe-Z-.js → registry-layout-lqv7Wdye.js} +1 -1
- package/dist/client/assets/{reports-D1FePU5c.js → reports-AdPTt8B7.js} +1 -1
- package/dist/client/assets/reports-OyhFkK7G.js +1 -0
- package/dist/client/assets/{reports-onboarding-_i1HBu7w.js → reports-onboarding-C2Jgwku4.js} +1 -1
- package/dist/client/assets/{reports-tab-Dl6Dk6u1.js → reports-tab-DGt-VBx-.js} +2 -2
- package/dist/client/assets/{repositories-CIXZv6vt.js → repositories-CgzO6Xfa.js} +1 -1
- package/dist/client/assets/{repository-import-picker-Cm_I6qX6.js → repository-import-picker-DCQ2vIEE.js} +1 -1
- package/dist/client/assets/{repository-picker-BE31MYd2.js → repository-picker-DocVIjle.js} +1 -1
- package/dist/client/assets/{require-capability-DpBsO_NN.js → require-capability-BVZK0CKB.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CLogPoNu.js → required-auth-layout-DIMyOwy5.js} +1 -1
- package/dist/client/assets/{reset-password-BtrZlUmp.js → reset-password-XjMxfJ3n.js} +1 -1
- package/dist/client/assets/{resizable-DW-7DjHg.js → resizable-DUfEbXfe.js} +1 -1
- package/dist/client/assets/{review-settings-CvxnEwkr.js → review-settings-DFWCbhzn.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-C4o-c0sL.js → rich-text-link-control-CBLe2KA9.js} +1 -1
- package/dist/client/assets/{roles-DfAkE-T7.js → roles-DkYVAbVN.js} +1 -1
- package/dist/client/assets/{route-x1w0_XOS.js → route-BF20JrYe.js} +1 -1
- package/dist/client/assets/{route-DkpbXtY4.js → route-CIUEkw4I.js} +1 -1
- package/dist/client/assets/{route-BUOzO2CZ.js → route-cMO74U0h.js} +1 -1
- package/dist/client/assets/{route-page-header-ddubqYbl.js → route-page-header-KOzZ3zSC.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-D7DBqRPo.js → runnable-block-editor-B6xxtm11.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-H5kbI9ib.js → sandbox-lifecycle-context-CFucpFSZ.js} +1 -1
- package/dist/client/assets/{schema-D9hq6-Ko.js → schema-CbM5M5_P.js} +1 -1
- package/dist/client/assets/{scroll-area-COAhNkSc.js → scroll-area-BDQJDNZK.js} +1 -1
- package/dist/client/assets/{search-input-eDRvpCEQ.js → search-input-B77FxN5v.js} +1 -1
- package/dist/client/assets/{search-toggle-ukQDdkrg.js → search-toggle-B9yzj02B.js} +1 -1
- package/dist/client/assets/{secrets-DzQr3bGF.js → secrets-BwogSMcO.js} +1 -1
- package/dist/client/assets/{sections-editor-H_6KGCpg.js → sections-editor-Dsm_Gu_c.js} +2 -2
- package/dist/client/assets/{select-DKZw7VY5.js → select-DUlMM14m.js} +1 -1
- package/dist/client/assets/{select-model-kV4UP8Pg.js → select-model-KKC97NXx.js} +1 -1
- package/dist/client/assets/{seo-editor-B16rwVRf.js → seo-editor-Dfjag5vZ.js} +1 -1
- package/dist/client/assets/{separator-BVE7Budu.js → separator-DZWmhWB0.js} +1 -1
- package/dist/client/assets/{settings-tab-BtAzz40R.js → settings-tab-lYg4AdKB.js} +1 -1
- package/dist/client/assets/{sheet-DuM7cckc.js → sheet-CQ2b_TUH.js} +1 -1
- package/dist/client/assets/shell-layout-DlWc56wM.js +1 -0
- package/dist/client/assets/{sidebar-scwXsjFh.js → sidebar-De3saejW.js} +1 -1
- package/dist/client/assets/{skill-preview-DN9PhO9W.js → skill-preview-BFdu9YNy.js} +1 -1
- package/dist/client/assets/{skills-7D59_aEr.js → skills-Cfwk_77h.js} +1 -1
- package/dist/client/assets/{sso-DXKGvN7S.js → sso-BTz6fGa9.js} +1 -1
- package/dist/client/assets/{store-2S5Y_Sm_.js → store-B5b4Jbmh.js} +1 -1
- package/dist/client/assets/store-registry-kbKJW4Nd.js +2 -0
- package/dist/client/assets/{switch-UqleIRW2.js → switch-Cv3P8_Un.js} +1 -1
- package/dist/client/assets/{synced-repos-I3mzZrDI.js → synced-repos-C9ov5U1O.js} +1 -1
- package/dist/client/assets/{table-DY3yh4UN.js → table-DCTjMuv9.js} +1 -1
- package/dist/client/assets/{tabs-CWunSDaT.js → tabs-BJOAfe9D.js} +1 -1
- package/dist/client/assets/{task-board-CU3xz_UX.js → task-board-Bp0cTOfv.js} +1 -1
- package/dist/client/assets/{task-route-5uvHoI6U.js → task-route-x3-kZj1v.js} +1 -1
- package/dist/client/assets/{task-status-CbgGINwj.js → task-status-EKbRG__N.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BWpTxoly.js → taskboard-analytics-DReJVXv9.js} +1 -1
- package/dist/client/assets/tasks-BDezZi9y.js +1 -0
- package/dist/client/assets/{tasks-DEJodw4w.js → tasks-BybQtXDr.js} +1 -1
- package/dist/client/assets/{textarea-D07XC_67.js → textarea-C1epfjF6.js} +1 -1
- package/dist/client/assets/{thread-button-BQ25_n_A.js → thread-button-DN66G5HX.js} +1 -1
- package/dist/client/assets/{thread-intent-CPB41f6a.js → thread-intent-BcDy5Qvw.js} +1 -1
- package/dist/client/assets/{thread-route-CDYfrzkB.js → thread-route-B40TxKtZ.js} +1 -1
- package/dist/client/assets/{thread-route-DJwg4XWL.js → thread-route-rDRKbI2J.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-PhMLKGpO.js → thread-sheet-body-Bsn8Kpj5.js} +1 -1
- package/dist/client/assets/{toggle-group-CRsJ0kJ-.js → toggle-group-CyMnbShe.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CLaEn_t2.js → toolbar-icon-button-C96R_FY_.js} +1 -1
- package/dist/client/assets/{tooltip-BdIw7qeF.js → tooltip-B6UxRepU.js} +1 -1
- package/dist/client/assets/{track-D7Zl0Ub2.js → track-BEzb3jCL.js} +1 -1
- package/dist/client/assets/{types-BFditkVL.js → types-BxKZ_jsI.js} +1 -1
- package/dist/client/assets/{usage-stats-CydE9W4n.js → usage-stats-BJ71CdH2.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Jte2cXEd.js → use-ai-providers-0RxxLOiu.js} +1 -1
- package/dist/client/assets/{use-automations-DMglF-Hp.js → use-automations-CyDS5Ktw.js} +1 -1
- package/dist/client/assets/{use-autosave-BK4aenoc.js → use-autosave-wvNipd2j.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CWVubK_K.js → use-connect-companion-CXSMXGsq.js} +1 -1
- package/dist/client/assets/{use-connection-CLDZmFlP.js → use-connection-CREpIwwx.js} +1 -1
- package/dist/client/assets/{use-copy-BwelGe7h.js → use-copy-hi0SQQDr.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-C0nekJmJ.js → use-create-virtual-mcp-Cq5i2GpA.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-9ht16XX5.js → use-date-fns-locale-DUCeDUxy.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CxvwYE3R.js → use-debounced-autosave-BAj9ckjy.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DTrA4F64.js → use-debounced-value-Ln0OSes2.js} +1 -1
- package/dist/client/assets/{use-deco-credits-toD66YNU.js → use-deco-credits-Da3sZzrF.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Cr8-gyRq.js → use-decopilot-events-MTn7eENv.js} +1 -1
- package/dist/client/assets/{use-delete-connection-pojdnt_G.js → use-delete-connection-PZXjPSLo.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BtzBlxtt.js → use-deployment-admin-BMF3tuBD.js} +1 -1
- package/dist/client/assets/{use-entitlements-Dd8GRYfR.js → use-entitlements-Bm13wAEi.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-6t7oVPGL.js → use-fast-preview-draft-url-BWy0d2IY.js} +1 -1
- package/dist/client/assets/{use-file-configs-DEt6cPMd.js → use-file-configs-nq2ETRGx.js} +1 -1
- package/dist/client/assets/{use-in-settings-CpoJAiS9.js → use-in-settings--8i6OF3k.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BxfFw7w5.js → use-infinite-scroll-CegnlwHv.js} +1 -1
- package/dist/client/assets/{use-join-requests-CIDw0OFM.js → use-join-requests-CVepHmjR.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-D1QVss-2.js → use-main-panel-tabs-CyThRv_u.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Cg-aCR2N.js → use-mcp-auth-status-BWuSQQAH.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CuZ_CH4K.js → use-mcp-client-C5UR6qvr.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-SnT9jAGG.js → use-mcp-prompts-Blnpu7_M.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DjSYGU3r.js → use-mcp-tools-CD8JPL_x.js} +1 -1
- package/dist/client/assets/{use-members-DTIbBdqQ.js → use-members-Y6H4hQ9Q.js} +1 -1
- package/dist/client/assets/{use-mobile-BwXePCI-.js → use-mobile-_vYKejdu.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DIxyyobE.js → use-navigate-to-agent-ClzIzQwY.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-CnWEYZe0.js → use-open-billing-url-CcQE2pzG.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-D-YRClZm.js → use-org-auth-client-BdDuz-5f.js} +1 -1
- package/dist/client/assets/{use-org-fs-6rzJUZWB.js → use-org-fs-SXZbeDBx.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BPvYovov.js → use-org-repo-syncs-B0Np_qpl.js} +1 -1
- package/dist/client/assets/{use-org-sso-EA4En7Bf.js → use-org-sso-CVxh5evd.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DjL7Q_JO.js → use-organization-roles-DZim0Q7v.js} +1 -1
- package/dist/client/assets/{use-organization-settings-rcECAo5J.js → use-organization-settings-BjpjaZHP.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CCrHg3rQ.js → use-panel-navigate-BDUxATfN.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-D_C9jbvc.js → use-project-native-view-presence-CZq1xLx3.js} +1 -1
- package/dist/client/assets/{use-project-scope-ChdEK9JU.js → use-project-scope-9qKpoK4A.js} +1 -1
- package/dist/client/assets/{use-registry-connections-C8ZRYmvy.js → use-registry-connections-fr8foU7v.js} +1 -1
- package/dist/client/assets/{use-releases-B2PktYSE.js → use-releases-BPLuJ3hz.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Ffc8G8Yb.js → use-reports-diagnostic-ZhpoqRPl.js} +1 -1
- package/dist/client/assets/{use-route-default-main-DTBEGWiB.js → use-route-default-main-Crq9PhT0.js} +1 -1
- package/dist/client/assets/{use-secrets-C2UFcx4t.js → use-secrets-BCJR8hU3.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-D8AdMeK_.js → use-section-preview-base-CreVubEU.js} +1 -1
- package/dist/client/assets/{use-session-runtime-Kk87TZ4U.js → use-session-runtime-CML40czH.js} +1 -1
- package/dist/client/assets/{use-tags-BZaCfmft.js → use-tags-Dm5jirF3.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-Dbi3TI9y.js → use-task-board-analytics-VrcaEcAN.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DptBPkcd.js → use-task-metadata-Dh6utP45.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DE9doz4g.js → use-thread-outputs-DKQDdrQw.js} +1 -1
- package/dist/client/assets/{use-view-mode-CavAJ0r0.js → use-view-mode-CCd9XC2d.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-4T8Uqtz2.js → use-virtual-mcp-B5lofcUX.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DhQmSZKM.js +1 -0
- package/dist/client/assets/{useQueries-D3RKoZYz.js → useQueries-fVi3k4Rv.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-yOry54FA.js +1 -0
- package/dist/client/assets/{users-WBHQMz8R.js → users-CjycFAIE.js} +1 -1
- package/dist/client/assets/{utils-CyaFhLFV.js → utils-BtXzNzBw.js} +1 -1
- package/dist/client/assets/{variant-calendar-DAIHFkeQ.js → variant-calendar-DxlQRwR9.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-Dyv3s-dG.js → variant-matcher-override-BuXSuXUw.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DEbfOadi.js → view-mode-toggle-BUqj2VVK.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DXgT3asw.js → virtual-mcp-B55SeF2l.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-CwhHpeQZ.js +0 -1
- package/dist/client/assets/agent-deck-w5dW0RRF.js +0 -1
- package/dist/client/assets/agent-file-BNrxE2XH.js +0 -1
- package/dist/client/assets/agent-library-file-CcAfTvZD.js +0 -1
- package/dist/client/assets/agent-settings-BUJ9WCtJ.js +0 -1
- package/dist/client/assets/agent-site-editor-code-UGzk7VE6.js +0 -2
- package/dist/client/assets/agent-view-CljCxEEY.js +0 -1
- package/dist/client/assets/api-keys-Vr2mIxG4.js +0 -1
- package/dist/client/assets/app-editor-D_IiCvgl.js +0 -1
- package/dist/client/assets/category-editor-DliRWtls.js +0 -1
- package/dist/client/assets/project-reports-ClF5O16Z.js +0 -1
- package/dist/client/assets/project-tasks-6eulHBR4.js +0 -1
- package/dist/client/assets/record-editor-CRgsUtua.js +0 -1
- package/dist/client/assets/registry-AgS1bUyh.js +0 -2
- package/dist/client/assets/reports-C6IYfeap.js +0 -1
- package/dist/client/assets/shell-layout-D6lfQGd1.js +0 -1
- package/dist/client/assets/store-registry-BkpvGjQw.js +0 -2
- package/dist/client/assets/tasks-cQIvs8Qh.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Ds6mCrD2.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-M0UgyPh7.js +0 -1
package/dist/client/assets/{runnable-block-editor-D7DBqRPo.js → runnable-block-editor-B6xxtm11.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as H,o as Dt,m as $0,K as Y9,b as l9,j as r,l as X,B as m9,T as Rs,aH as Is,e as $t,r as D,t as j9,a9 as J9,n as Fs,aN as Te,F as J0,G as D9,H as Z0,I as Q0,aO as zt,an as Ne,h as j0,Z as Bt,aP as Os,E as Ds,aQ as $s}from"./index-DQZBt6Fl.js";import{u as _e}from"./use-session-runtime-Kk87TZ4U.js";import{f as zs,p as Bs,s as Vs,t as Us,a as et}from"./decofile-api-tER_PaB4.js";import{e as Vt}from"./backoff-8mStPHYB.js";import{s as Ks,a as Gs,b as Hs}from"./utils-CyaFhLFV.js";import{b as Ce}from"./sandbox-url-D3mC8qhT.js";import{g as Ut,z as $9,A as Kt,r as F9,B as qs,b as v9,P as Z9,D as Q9,N as S0,E as b9,L as tt,F as o0,C as Ws,H as Gt,l as Ht,I as nt,J as Ys,K as Js,M as qt,O as p0,k as Zs,Q as Qs,v as Xs,T as e1,U as t1}from"./claim-phase-copy-0btUuJoC.js";import{W as n1,X as s1,Y as r1,Z as i1,_ as o1,$ as l1,a0 as a1,a1 as c1,Q as L1,a2 as z0,z as Wt,a3 as st,a4 as d1,a5 as Ae,o as u1,T as f1,x as m1,a6 as p1,a7 as h1}from"./agent-icon-DZmc5CaF.js";import{i as Yt}from"./Play-P0YcNy8v.js";import{S as rt}from"./sandbox-start-errors-BK_aDCyt.js";import{G as g1}from"./pair-oDAsulNf.js";import{i as Ee,b as x1,c as y1}from"./Tool01-dwGgKodr.js";import{e as X0,C as ee,b as K9,a as l0,c as te,d as we,f as v1}from"./command-s8BJjz1Z.js";import{a as k0,b as T0,P as N0}from"./popover-hNLbYWT0.js";import{s as b1}from"./safe-image-url-D5z803Ot.js";import{u as Jt}from"./chat-context-BkliO4re.js";import{n as Zt}from"./LinkExternal01-FZW_JKrN.js";import{i as Qt}from"./X-DgI4yqfX.js";import{S as j1}from"./scroll-area-COAhNkSc.js";import{T as M9,a as P9,c as R9}from"./tooltip-BdIw7qeF.js";import{a as Xt,d as S1}from"./use-virtual-mcp-4T8Uqtz2.js";import{M as en}from"./monaco-editor-B4FcjfHJ.js";import{C as k1}from"./calendar-PQ1Ftg13.js";import{I as E9}from"./input-rh1Mv0Wr.js";import{T as T1}from"./textarea-D07XC_67.js";import{L as G9}from"./label-BNGvxM6S.js";import{i as N1}from"./XClose-Cu0FBQhr.js";import{s as Me}from"./Plus-DcpbfgdJ.js";import{E as t0,M as _1,m as C1,g as _0,u as A1,s as E1,a as w1,b as M1}from"./index-BxPwUex4.js";import{S as ne,b as se,a as re,d as ie,c as a0}from"./select-DKZw7VY5.js";import{a as P1}from"./Palette-D8vRagJV.js";import{T as C9,R as R1,u as tn,C as nn,a as sn,b as B0,s as rn,K as on,P as ln,D as an,c as cn,S as Ln,v as dn,d as un,e as xe}from"./rich-text-link-control-C4o-c0sL.js";import{S as Pe}from"./switch-UqleIRW2.js";import{a as Re}from"./Copy01-BsZDIS3z.js";import{i as I1}from"./Settings02-CncEwCCz.js";import{s as F1}from"./Eye-C46dzrHd.js";import{s as C0}from"./Trash01-Cs1900Vx.js";import{t as Ie}from"./ChevronUp-QcSQ5rVq.js";import{c as fn}from"./UserSquare-CBd8Lm1t.js";import{i as mn}from"./Globe01-DlhUCcjG.js";import{d as pn,h as hn,c as gn,e as O1,b as xn,D as yn}from"./dialog-CfR9zhfQ.js";import{i as ye}from"./ZoomOut-BYNmIOoy.js";import{i as A0}from"./Upload01-odxUyqlC.js";import{i as vn}from"./AlertCircle-CqW1GFxy.js";import{i as bn}from"./DotsVertical-DCTIN1zx.js";import{a as c0}from"./Image01-DVR_EyJG.js";import{S as D1}from"./search-input-eDRvpCEQ.js";import{T as $1,a as z1,c as B1,b as V1}from"./tabs-CWunSDaT.js";import{u as U1}from"./use-debounced-value-DTrA4F64.js";import{u as K1,a as jn}from"./use-file-configs-DEt6cPMd.js";import{u as G1,a as Fe,i as Sn,e as H1,b as it,f as q1}from"./asset-utils-Db2ZBQHY.js";import{m as kn}from"./match-site-slug-config-D3fUJ6vX.js";import{a as W1,T as Y1}from"./toggle-group-CRsJ0kJ-.js";import{s as Tn}from"./TrendUp01-BfIYShuZ.js";import{i as J1}from"./Tool02-CbeJXNE6.js";import{A as Z1,a as Q1,b as X1,c as er,g as tr,d as nr,e as sr,f as rr}from"./alert-dialog-BYQAyeOC.js";import{o as ir}from"./sandbox-git-api-CMdpE2TE.js";function Oe(t,e){const n=(t??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${e}`:e}function or(t){let e;try{e=JSON.parse(t)}catch{return null}return typeof e!="object"||e===null||Array.isArray(e)?null:e}function lr(t,e){return Ce(t,e)}function ar(t,e){return Ce(t,"preview-fetch",{path:e})}function cr(t){return lr(t,"preview-invoke")}function Nn(t){try{const{hostname:e}=new URL(t);return e==="localhost"||e.endsWith(".localhost")||e==="127.0.0.1"||e==="::1"}catch{return!1}}function Lr(){if(typeof document>"u")return null;const t=Array.from(document.querySelectorAll("iframe"));for(const e of t){const n=e.getAttribute("src");if(n&&Nn(n))return n}return null}function _n(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??Lr();return n&&Nn(n)?new URL(e,n).toString():ar(t,e)}function dr(t){return _n(t,"/.decofile")}function ur(t){return t===400?"absent":t===404?"unavailable":t>=200&&t<300?"ok":"error"}function ot(t){return t.liveOk||t.committedAbsent?404:t.liveStatus??502}async function Cn(t,e){const n=Ce(t,"read"),s=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,full:!0})}),i=ur(s.status);if(i==="absent")return{kind:"absent"};if(i==="unavailable")return{kind:"unavailable"};if(i==="error"){const l=new Error(`Failed to read ${e}: ${s.status}`);throw l.status=s.status,l}const o=await s.json();if(typeof o.content!="string")return{kind:"unavailable"};try{return{kind:"data",data:JSON.parse(Ks(o.content))}}catch{return{kind:"unavailable"}}}async function fr(t){const e=`/api/${t.orgSlug}/decofile/${encodeURIComponent(t.virtualMcpId)}/${encodeURIComponent(t.branch)}/meta`,n=await fetch(e,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const s=new Error(`Failed to read committed meta: ${n.status}`);throw s.status=n.status,s}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function De(t){return Xt(t)?.metadata?.runtime?.path??null}function j5(t,e){const n=H.c(15),s=t?`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`:"",i=e?.fetchEnabled??!0,o=De(t?.virtualMcpId),l=_e(t?.virtualMcpId).runtime==="cms",a=Dt();let c;n[0]!==s?(c=Y9.decofile(s),n[0]=s,n[1]=c):c=n[1];let L;n[2]!==l||n[3]!==i||n[4]!==o||n[5]!==t||n[6]!==a?(L=async()=>{if(l)return zs(a,t);const b=()=>Cn(t,Oe(o,".deco/blocks.gen.json"));if(i){const j=await fetch(dr(t),{cache:"no-store"}).catch(pr);if(j?.ok){const S=or(await j.text());if(S)return S}const h=await b();if(h.kind==="data")return h.data;const v=new Error(`Failed to fetch decofile: ${j?.status??"network error"}`);throw v.status=ot({liveOk:!!j?.ok,liveStatus:j?.status,committedAbsent:h.kind==="absent"}),v}const m=await b();if(m.kind==="data")return m.data;const p=new Error("decofile unavailable (preview down, no committed snapshot)");throw p.status=ot({liveOk:!1,committedAbsent:m.kind==="absent"}),p},n[2]=l,n[3]=i,n[4]=o,n[5]=t,n[6]=a,n[7]=L):L=n[7];const d=!!t;let u;n[8]!==l?(u=(b,m)=>{if(l)return b<3;const p=m.status;return p!==502&&p!==404&&b<2},n[8]=l,n[9]=u):u=n[9];let f;return n[10]!==c||n[11]!==L||n[12]!==d||n[13]!==u?(f={queryKey:c,queryFn:L,enabled:d,staleTime:3e4,retry:u,retryDelay:mr},n[10]=c,n[11]=L,n[12]=d,n[13]=u,n[14]=f):f=n[14],$0(f)}function mr(t){return Vt(5e3,1e3,t,2,0)}function pr(){return null}const hr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function gr(t){return t.includes("matchers")||t.includes("Match")}function An(t,e){const n=t.__resolveType;return typeof n!="string"||!n||hr.has(n)?!1:e?qs(e,n):gr(n)}function xr(t,e){const n=[];for(const[s,i]of Object.entries(e)){if(s.includes("/")||!$9(s)||Kt(s)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;An(o,t)&&n.push({blockKey:s,matcherResolveType:o.__resolveType??"",name:typeof o.name=="string"?o.name:void 0})}return n.sort((s,i)=>(s.name??s.blockKey).localeCompare(i.name??i.blockKey))}function E0(t,e,n){if(!t)return!1;const s=t.__resolveType;if(typeof s!="string"||!$9(s)||!Object.hasOwn(e,s))return!1;const i=e[s];return!i||typeof i!="object"||Array.isArray(i)?!1:An(i,n)}function S5(t,e,n){return E0(t,e,n)?t?.__resolveType??null:null}function En(t,e,n){if(!t)return null;const s=t.__resolveType??"";if(!s)return null;if(E0(t,e,n)){const l=e[s]??{},a=l.__resolveType??s,{__resolveType:c,name:L,...d}=l;return{resolveType:a,data:d,blockKey:s}}const{__resolveType:i,...o}=t;return{resolveType:s,data:o}}function wn(t,e,n){const s=En(t,e,n);return s?{__resolveType:s.resolveType,...s.data}:{__resolveType:""}}function k5(t,e,n){if(t)return E0(t,e,n)?wn(t,e,n):t}function yr(t,e,n,s){if(!t)return"Default";if(E0(t,e,s)){const i=t.__resolveType??"",o=e[i];return Ut(i,o)}return n(t)}function T5(t,e,n){return{__resolveType:t,...e,name:n}}function vr(t){return{__resolveType:t}}function N5(t,e,n){const s=En(t,e,n);return s?{resolveType:s.resolveType,formValue:s.data}:{resolveType:"",formValue:{}}}function br(t,e){const n={__resolveType:t};if(!t||!e)return n;const s=F9(t,e),i=s?.type==="inline-union"?s.inlineUnionBranches?.[0]?.discriminators:void 0;return i?{...n,...i}:n}function jr(t){const e=[];return t.fastPreviewActive?e.push({kind:"committed"}):(t.fetchEnabled&&t.previewUrl&&e.push({kind:"live",baseUrl:t.previewUrl}),e.push({kind:"committed"})),t.productionUrl&&e.push({kind:"production",baseUrl:t.productionUrl}),e}function Sr(t){return Y9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function _5(t,e){const n=H.c(19),s=e?.fetchEnabled??!0,i=t?.previewUrl,o=De(t?.virtualMcpId),{previewServerUrl:l,runtime:a}=_e(t?.virtualMcpId),c=a==="cms";let L;n[0]!==t||n[1]!==i||n[2]!==l?(L=t?Sr({...t,previewUrl:i,productionUrl:l}):Y9.liveMeta(""),n[0]=t,n[1]=i,n[2]=l,n[3]=L):L=n[3];let d;n[4]!==c||n[5]!==s||n[6]!==o||n[7]!==t||n[8]!==i||n[9]!==l?(d=async()=>{const p=Tr,j=()=>c?fr(t):Cn(t,Oe(o,".deco/meta.gen.json")),h=jr({fetchEnabled:s,previewUrl:i,productionUrl:l,fastPreviewActive:c});for(const S of h){if(S.kind==="committed"){const x=await j();if(x.kind==="data")return x.data;continue}const g=await p(S.baseUrl);if(g)return g}const v=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw v.status=502,v},n[4]=c,n[5]=s,n[6]=o,n[7]=t,n[8]=i,n[9]=l,n[10]=d):d=n[10];const u=!!t,f=e?.refetchInterval;let b;n[11]!==c?(b=(p,j)=>(c||j.status!==502)&&p<3,n[11]=c,n[12]=b):b=n[12];let m;return n[13]!==L||n[14]!==d||n[15]!==u||n[16]!==f||n[17]!==b?(m={queryKey:L,queryFn:d,enabled:u,refetchInterval:f,refetchIntervalInBackground:!1,staleTime:3e5,retry:b,retryDelay:kr},n[13]=L,n[14]=d,n[15]=u,n[16]=f,n[17]=b,n[18]=m):m=n[18],$0(m)}function kr(t){return Vt(5e3,1e3,t,2,0)}async function Tr(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(Nr);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function Nr(){return null}function de(t,e,n){const s=n[t];return typeof s?.name=="string"&&s.name||t.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${e+1}`}function C5(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=v9(i);if(!o&&i!==""&&$9(i)&&i in e)return{index:s,resolveType:i,label:de(i,s,e),isLazy:!1,isSavedBlock:!0};const l=o?n.section:void 0,a=o?l?.__resolveType??"":i;if(a===Z9||a===Q9){const L=o?l:n,d=Array.isArray(L?.variants)?L.variants:[];if(d.length===1&&(d[0]?.rule?.__resolveType??"")===S0){const b=d[0]?.value??{};let m=b.__resolveType??"";const p=v9(m);let j=b;if(p){const h=b.section;m=h?.__resolveType??m,h&&(j=h)}if(m===Z9||m===Q9){const v=(Array.isArray(j.variants)?j.variants:[])[0]?.value?.__resolveType,S=v?b9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${S}`,variantOf:S,isHidden:!0,isLazy:p}}return m!==""&&$9(m)&&m in e?{index:s,resolveType:i,label:de(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:b9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const u=d[0]?.value?.__resolveType,f=u?b9(u):"Section";return{index:s,resolveType:i,label:`Variants of ${f}`,variantOf:f,isMultivariate:!0,isLazy:o}}const c=o?n.section?.__resolveType??i:i;return o&&c!==""&&$9(c)&&c in e?{index:s,resolveType:i,label:de(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:b9(c)||`Section ${s+1}`,isLazy:o}})}function Mn(t){const e=t.__resolveType??"";return v9(e)?t.section??t:t}function V0(t){const i=(v9(t.__resolveType??"")?t.section:t)?.variants?.[0];return i?.rule?.__resolveType!==S0?null:i?.value??null}function A5(t){const e=Mn(t);return{__resolveType:Q9,variants:[{value:e,rule:{__resolveType:S0}}]}}function E5(t){const e=t.__resolveType??"";if(!e)return null;if(v9(e))return t.section??null;const n=V0(t);return n?v9(n.__resolveType??"")?n:{__resolveType:tt,section:Mn(n)}:{__resolveType:tt,section:t}}function M0(t){const e=t.__resolveType??"";if(!e)return null;if(v9(e)){const n=t.section,s=n?.__resolveType??"";return!s||!n?null:{resolveType:s,data:n}}return{resolveType:e,data:t}}function w5(t){const e=V0(t);if(e)return M0(e);if(v9(t.__resolveType??"")){const s=t.section;if(!s)return null;const i=V0(s);return M0(i||s)}return M0(t)}function M5(t){return V0(t)}const _r=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function $e(t){if(!t)return!1;const e=t.__resolveType??"";return e===""?Object.keys(t).length===0:_r.includes(e)||e.includes("always")}function Cr(t){const e=t.variants??[];if(e.length===0)return-1;const n=e.findIndex(s=>$e(s.rule));return n!==-1?n:e.length-1}function P5(t,e,n){const s=n.variants??[];if(s.length===0)return null;const i=Cr(n),o=s[i]?.value;if(!o)return null;const l=structuredClone(o);return e.isLazy?{...t,section:l}:l}function Pn(t,e){return e.isMultivariate?e.isLazy?t.section??null:t:null}function R5(t,e){return Array.isArray(t.variants)?t.variants.map((n,s)=>({label:e(n.rule)||`Variant ${s+1}`,value:n.value??{},rule:n.rule})):[]}function I5(t,e){const n=t.__resolveType??"";if(!n)return null;if(v9(n)){const s=t.section??t,i=s.__resolveType??n;if(!i.includes("/")&&i in e){const o=e[i]??{};return{data:{...o},resolveType:o.__resolveType??i}}return{data:{...s},resolveType:i}}if(!n.includes("/")&&n in e){const s=e[n]??{};return{data:{...s},resolveType:s.__resolveType??n}}return{data:{...t},resolveType:n}}function Ar(t,e){const n=t.__resolveType??"";return v9(n)?{...t,section:e}:e}function Er(t,e,n){return e.isLazy?{...t,section:n}:n}function F5(t,e,n){const s=[...t.variants??[]],i=s[e];if(!i)return t;const o=i.value??{};return s[e]={...i,value:Ar(o,n)},{...t,variants:s}}function O5(t,e,n){const s=[...t.variants??[]];return s[e]?(s[e]={...s[e],rule:n},{...t,variants:s}):t}function D5(t,e){const n=[...t.variants??[]],s=n[e];return s?(n.splice(e+1,0,structuredClone(s)),{...t,variants:n}):t}function $5(t,e,n){const s=[...t.variants??[]];if(e===n||e<0||n<0||e>=s.length||n>=s.length)return t;const[i]=s.splice(e,1);return i?(s.splice(n,0,i),{...t,variants:s}):t}function z5(t,e){const n=[...t.variants??[]];return n.length<=1?null:(n.splice(e,1),{...t,variants:n})}function ve(t){return{rule:o0(),value:structuredClone(t)}}function Rn(t,e){return{...e,__resolveType:Q9,variants:t}}function B5(t){return t.isHidden!==!0&&t.isSavedBlock!==!0}function wr(t,e){if(e.isHidden)return null;if(e.isMultivariate){const s=Pn(t,e)?.variants??[],i=s[s.length-1]?.value;return i?structuredClone(i):null}if(e.isLazy){const n=t.section;return n?structuredClone(n):null}return structuredClone(t)}function Mr(t,e,n){if(e.isMultivariate||e.isHidden)return null;const s=wr(t,e);if(!s)return null;const i=Rn([ve(s),ve(s)]);return e.isLazy?{...t,section:i}:i}function V5(t,e,n){if(e.isHidden||e.isSavedBlock)return null;if(e.isMultivariate){const i=Pn(t,e);if(!i)return null;const o=i.variants??[],l=o[o.length-1]?.value;if(!l)return null;const a=Rn([...o,ve(l)],i);return{section:Er(t,e,a),newVariantIndex:o.length}}const s=Mr(t,e);return s?{section:s,newVariantIndex:1}:null}function oe(t){return t.anyOfRefs?.some(e=>e.resolveType!==Z9?!1:e.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function Pr(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t;return e.__resolveType===Q9&&Array.isArray(e.variants)}function U0(t){return!t||typeof t!="object"||Array.isArray(t)?!1:t.__resolveType===Z9}function Rr(t){if(!U0(t))return null;const e=t.variants;if(!Array.isArray(e))return null;const n=e[0]?.value;return Array.isArray(n)?n:null}function Ir(t,e){if(!U0(t))return e;const n=structuredClone(t),s=[...n.variants??[]];return s.length===0?s.push({rule:o0(),value:e}):s[0]={...s[0],value:e},{...n,variants:s}}function U5(t,e){const s=t[e]?.sections;if(!s||Array.isArray(s))return 1;const i=s;return Array.isArray(i.variants)?i.variants.length:1}function K5(t,e,n){const i=t[e]?.sections;if(Array.isArray(i))return n===0?i:[];if(i&&typeof i=="object"){const o=i.variants;if(Array.isArray(o)){const l=o[n];return Array.isArray(l?.value)?l.value:[]}}return[]}function Fr(t,e,n){if(Array.isArray(t))return[{label:"Default",sections:t}];if(t&&typeof t=="object"){const s=t;if(Array.isArray(s.variants)){const i=s.variants,o=i.map(c=>yr(c.rule,e,n)),l=o.reduce((c,L)=>(c[L]=(c[L]??0)+1,c),{}),a={};return i.map((c,L)=>{const d=o[L]??`Variant ${L+1}`,u=l[d]??1;let f=d;return u>1&&(a[d]=(a[d]??0)+1,f=`${d} ${a[d]}`),{label:f||`Variant ${L+1}`,sections:Array.isArray(c.value)?c.value:[],rule:c.rule}})}}return[]}function m0(t){return{rule:o0(),value:t}}function r0(t,e){return{...e,__resolveType:Z9,variants:t}}function G5(t,e){const n=structuredClone(e);if(Array.isArray(t))return r0([m0(t),m0(n)]);if(t&&typeof t=="object"){const s=t;return Array.isArray(s.variants)?r0([...s.variants,m0(n)],s):null}return r0([m0([]),m0(n)])}function H5(t){const e=t.variants;return Array.isArray(e)?e.length-1:1}function q5(t,e){const n=t[e];if(!n)return null;const s=[...t];return s.splice(e+1,0,structuredClone(n)),s}function W5(t,e){if(e.length===0)return r0([],t);if(e.length===1){const n=e[0],s=n?.rule;if(!$e(s))return r0(e,t);if(Array.isArray(n?.value))return n.value}return r0(e,t)}function Or(t,e,n){const s=[];for(const[o,l]of Object.entries(t))o!==e&&s.push(l);const i=new Set;for(;s.length>0;){const o=s.pop();if(!(!o||typeof o!="object")&&!i.has(o)){if(i.add(o),Array.isArray(o)){for(const l of o)s.push(l);continue}n(o);for(const l of Object.values(o))s.push(l)}}}function Y5(t,e,n){if(!e)return 0;let s=0;return Or(t,e,i=>{i.__resolveType===e&&E0(i,t,n)&&s++}),s}const Dr={provision:0,cloning:1,install:2,dev:3};function $r(t){return Dr[t.step]}const lt=48,In=28,Fn=3,zr=(()=>{const t=[];let e=0;for(let n=0;n<lt;n++)n===In?t.push(null):(t.push(e/(lt-1)*Fn),e++);return t})();function Br(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function Vr(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?Ws[e.kind].long:n[t.step]}const O9="bg-foreground/[0.05]",w9="bg-foreground/[0.09]",Ur=Array.from({length:35},()=>Math.random()*1.8),Kr=Array.from({length:35},()=>Math.random()<.4);function Gr(t){const e=H.c(31),{progress:n,claimPhase:s}=t,i=l9();let o;e[0]!==n?(o=$r(n),e[0]=n,e[1]=o):o=e[1];const l=o;let a;e[2]!==s||e[3]!==n||e[4]!==i?(a=Vr(n,s,Br(i)),e[2]=s,e[3]=n,e[4]=i,e[5]=a):a=e[5];const c=a;let L;e[6]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(g1,{}),e[6]=L):L=e[6];const d=`${n.step}-${c}`;let u;e[7]!==c||e[8]!==d?(u=r.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-foreground/10 bg-background px-3.5 py-1.5 shadow-[0_4px_20px_-4px_rgb(0_0_0_/_0.12)]",children:[L,r.jsxs("span",{className:"animate-in fade-in text-[13px] font-medium text-foreground/85 duration-500",children:[c,"…"]},d)]}),e[7]=c,e[8]=d,e[9]=u):u=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=r.jsx(Hr,{}),e[10]=f):f=e[10];let b;e[11]!==l?(b=r.jsx(P0,{phase:0,current:l,children:f}),e[11]=l,e[12]=b):b=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(Wr,{}),e[13]=m):m=e[13];let p;e[14]!==l?(p=r.jsx(P0,{phase:1,current:l,children:m}),e[14]=l,e[15]=p):p=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j=r.jsx(Yr,{}),e[16]=j):j=e[16];let h;e[17]!==l?(h=r.jsx(P0,{phase:2,current:l,children:j}),e[17]=l,e[18]=h):h=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx(Zr,{}),e[19]=v):v=e[19];let S;e[20]!==l?(S=r.jsx(P0,{phase:3,current:l,children:v}),e[20]=l,e[21]=S):S=e[21];let g;e[22]!==h||e[23]!==S||e[24]!==b||e[25]!==p?(g=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[b,p,h,S]}),e[22]=h,e[23]=S,e[24]=b,e[25]=p,e[26]=g):g=e[26];let x;e[27]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx("style",{children:`
|
|
1
|
+
import{c as H,o as Dt,m as $0,K as Y9,b as l9,j as r,l as X,B as m9,T as Rs,aH as Is,e as $t,r as D,t as j9,a9 as J9,n as Fs,aN as Te,F as J0,G as D9,H as Z0,I as Q0,aO as zt,an as Ne,h as j0,Z as Bt,aP as Os,E as Ds,aQ as $s}from"./index-COJyT2bn.js";import{u as _e}from"./use-session-runtime-CML40czH.js";import{f as zs,p as Bs,s as Vs,t as Us,a as et}from"./decofile-api-DmitnqlG.js";import{e as Vt}from"./backoff-8mStPHYB.js";import{s as Ks,a as Gs,b as Hs}from"./utils-BtXzNzBw.js";import{b as Ce}from"./sandbox-url-D3mC8qhT.js";import{g as Ut,z as $9,A as Kt,r as F9,B as qs,b as v9,P as Z9,D as Q9,N as S0,E as b9,L as tt,F as o0,C as Ws,H as Gt,l as Ht,I as nt,J as Ys,K as Js,M as qt,O as p0,k as Zs,Q as Qs,v as Xs,T as e1,U as t1}from"./claim-phase-copy-0btUuJoC.js";import{W as n1,X as s1,Y as r1,Z as i1,_ as o1,$ as l1,a0 as a1,a1 as c1,Q as L1,a2 as z0,z as Wt,a3 as st,a4 as d1,a5 as Ae,o as u1,T as f1,x as m1,a6 as p1,a7 as h1}from"./agent-icon-CFdmLldh.js";import{i as Yt}from"./Play-D9coBDJI.js";import{S as rt}from"./sandbox-start-errors-BK_aDCyt.js";import{G as g1}from"./pair-PFcTXb_H.js";import{i as Ee,b as x1,c as y1}from"./Tool01-B1CIPJlg.js";import{e as X0,C as ee,b as K9,a as l0,c as te,d as we,f as v1}from"./command-0Ma0zNRD.js";import{a as k0,b as T0,P as N0}from"./popover-KWKKOTZi.js";import{s as b1}from"./safe-image-url-D5z803Ot.js";import{u as Jt}from"./chat-context-BYHljAsB.js";import{n as Zt}from"./LinkExternal01-CWguI2G0.js";import{i as Qt}from"./X-CZ5u1gQz.js";import{S as j1}from"./scroll-area-BDQJDNZK.js";import{T as M9,a as P9,c as R9}from"./tooltip-B6UxRepU.js";import{a as Xt,d as S1}from"./use-virtual-mcp-B5lofcUX.js";import{M as en}from"./monaco-editor-B9RMz-15.js";import{C as k1}from"./calendar-C0OE00Yc.js";import{I as E9}from"./input-BZsvuPI8.js";import{T as T1}from"./textarea-C1epfjF6.js";import{L as G9}from"./label-BI62SaKd.js";import{i as N1}from"./XClose-BHW02Gld.js";import{s as Me}from"./Plus-L4CMeo2h.js";import{E as t0,M as _1,m as C1,g as _0,u as A1,s as E1,a as w1,b as M1}from"./index-8nDSoss7.js";import{S as ne,b as se,a as re,d as ie,c as a0}from"./select-DUlMM14m.js";import{a as P1}from"./Palette-1NgeCtg4.js";import{T as C9,R as R1,u as tn,C as nn,a as sn,b as B0,s as rn,K as on,P as ln,D as an,c as cn,S as Ln,v as dn,d as un,e as xe}from"./rich-text-link-control-CBLe2KA9.js";import{S as Pe}from"./switch-Cv3P8_Un.js";import{a as Re}from"./Copy01-BLG-yB9O.js";import{i as I1}from"./Settings02-BW27aEc7.js";import{s as F1}from"./Eye-C1v6-SBQ.js";import{s as C0}from"./Trash01-B82ZZMGA.js";import{t as Ie}from"./ChevronUp-BAybpbAO.js";import{c as fn}from"./UserSquare-B6mag78j.js";import{i as mn}from"./Globe01-Ctrf78fu.js";import{d as pn,h as hn,c as gn,e as O1,b as xn,D as yn}from"./dialog-CDUwK9Ky.js";import{i as ye}from"./ZoomOut-B3LU1sVM.js";import{i as A0}from"./Upload01-zkIbWeZQ.js";import{i as vn}from"./AlertCircle-Cm80uQMQ.js";import{i as bn}from"./DotsVertical-Qjn9bD7u.js";import{a as c0}from"./Image01-DDEEEqQF.js";import{S as D1}from"./search-input-B77FxN5v.js";import{T as $1,a as z1,c as B1,b as V1}from"./tabs-BJOAfe9D.js";import{u as U1}from"./use-debounced-value-Ln0OSes2.js";import{u as K1,a as jn}from"./use-file-configs-nq2ETRGx.js";import{u as G1,a as Fe,i as Sn,e as H1,b as it,f as q1}from"./asset-utils-BcGTQmUM.js";import{m as kn}from"./match-site-slug-config-D3fUJ6vX.js";import{a as W1,T as Y1}from"./toggle-group-CyMnbShe.js";import{s as Tn}from"./TrendUp01-BCNTgoYi.js";import{i as J1}from"./Tool02-CE2CsLyJ.js";import{A as Z1,a as Q1,b as X1,c as er,g as tr,d as nr,e as sr,f as rr}from"./alert-dialog-CtGv9jdd.js";import{o as ir}from"./sandbox-git-api-CMdpE2TE.js";function Oe(t,e){const n=(t??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${e}`:e}function or(t){let e;try{e=JSON.parse(t)}catch{return null}return typeof e!="object"||e===null||Array.isArray(e)?null:e}function lr(t,e){return Ce(t,e)}function ar(t,e){return Ce(t,"preview-fetch",{path:e})}function cr(t){return lr(t,"preview-invoke")}function Nn(t){try{const{hostname:e}=new URL(t);return e==="localhost"||e.endsWith(".localhost")||e==="127.0.0.1"||e==="::1"}catch{return!1}}function Lr(){if(typeof document>"u")return null;const t=Array.from(document.querySelectorAll("iframe"));for(const e of t){const n=e.getAttribute("src");if(n&&Nn(n))return n}return null}function _n(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??Lr();return n&&Nn(n)?new URL(e,n).toString():ar(t,e)}function dr(t){return _n(t,"/.decofile")}function ur(t){return t===400?"absent":t===404?"unavailable":t>=200&&t<300?"ok":"error"}function ot(t){return t.liveOk||t.committedAbsent?404:t.liveStatus??502}async function Cn(t,e){const n=Ce(t,"read"),s=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,full:!0})}),i=ur(s.status);if(i==="absent")return{kind:"absent"};if(i==="unavailable")return{kind:"unavailable"};if(i==="error"){const l=new Error(`Failed to read ${e}: ${s.status}`);throw l.status=s.status,l}const o=await s.json();if(typeof o.content!="string")return{kind:"unavailable"};try{return{kind:"data",data:JSON.parse(Ks(o.content))}}catch{return{kind:"unavailable"}}}async function fr(t){const e=`/api/${t.orgSlug}/decofile/${encodeURIComponent(t.virtualMcpId)}/${encodeURIComponent(t.branch)}/meta`,n=await fetch(e,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const s=new Error(`Failed to read committed meta: ${n.status}`);throw s.status=n.status,s}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function De(t){return Xt(t)?.metadata?.runtime?.path??null}function j5(t,e){const n=H.c(15),s=t?`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`:"",i=e?.fetchEnabled??!0,o=De(t?.virtualMcpId),l=_e(t?.virtualMcpId).runtime==="cms",a=Dt();let c;n[0]!==s?(c=Y9.decofile(s),n[0]=s,n[1]=c):c=n[1];let L;n[2]!==l||n[3]!==i||n[4]!==o||n[5]!==t||n[6]!==a?(L=async()=>{if(l)return zs(a,t);const b=()=>Cn(t,Oe(o,".deco/blocks.gen.json"));if(i){const j=await fetch(dr(t),{cache:"no-store"}).catch(pr);if(j?.ok){const S=or(await j.text());if(S)return S}const h=await b();if(h.kind==="data")return h.data;const v=new Error(`Failed to fetch decofile: ${j?.status??"network error"}`);throw v.status=ot({liveOk:!!j?.ok,liveStatus:j?.status,committedAbsent:h.kind==="absent"}),v}const m=await b();if(m.kind==="data")return m.data;const p=new Error("decofile unavailable (preview down, no committed snapshot)");throw p.status=ot({liveOk:!1,committedAbsent:m.kind==="absent"}),p},n[2]=l,n[3]=i,n[4]=o,n[5]=t,n[6]=a,n[7]=L):L=n[7];const d=!!t;let u;n[8]!==l?(u=(b,m)=>{if(l)return b<3;const p=m.status;return p!==502&&p!==404&&b<2},n[8]=l,n[9]=u):u=n[9];let f;return n[10]!==c||n[11]!==L||n[12]!==d||n[13]!==u?(f={queryKey:c,queryFn:L,enabled:d,staleTime:3e4,retry:u,retryDelay:mr},n[10]=c,n[11]=L,n[12]=d,n[13]=u,n[14]=f):f=n[14],$0(f)}function mr(t){return Vt(5e3,1e3,t,2,0)}function pr(){return null}const hr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function gr(t){return t.includes("matchers")||t.includes("Match")}function An(t,e){const n=t.__resolveType;return typeof n!="string"||!n||hr.has(n)?!1:e?qs(e,n):gr(n)}function xr(t,e){const n=[];for(const[s,i]of Object.entries(e)){if(s.includes("/")||!$9(s)||Kt(s)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;An(o,t)&&n.push({blockKey:s,matcherResolveType:o.__resolveType??"",name:typeof o.name=="string"?o.name:void 0})}return n.sort((s,i)=>(s.name??s.blockKey).localeCompare(i.name??i.blockKey))}function E0(t,e,n){if(!t)return!1;const s=t.__resolveType;if(typeof s!="string"||!$9(s)||!Object.hasOwn(e,s))return!1;const i=e[s];return!i||typeof i!="object"||Array.isArray(i)?!1:An(i,n)}function S5(t,e,n){return E0(t,e,n)?t?.__resolveType??null:null}function En(t,e,n){if(!t)return null;const s=t.__resolveType??"";if(!s)return null;if(E0(t,e,n)){const l=e[s]??{},a=l.__resolveType??s,{__resolveType:c,name:L,...d}=l;return{resolveType:a,data:d,blockKey:s}}const{__resolveType:i,...o}=t;return{resolveType:s,data:o}}function wn(t,e,n){const s=En(t,e,n);return s?{__resolveType:s.resolveType,...s.data}:{__resolveType:""}}function k5(t,e,n){if(t)return E0(t,e,n)?wn(t,e,n):t}function yr(t,e,n,s){if(!t)return"Default";if(E0(t,e,s)){const i=t.__resolveType??"",o=e[i];return Ut(i,o)}return n(t)}function T5(t,e,n){return{__resolveType:t,...e,name:n}}function vr(t){return{__resolveType:t}}function N5(t,e,n){const s=En(t,e,n);return s?{resolveType:s.resolveType,formValue:s.data}:{resolveType:"",formValue:{}}}function br(t,e){const n={__resolveType:t};if(!t||!e)return n;const s=F9(t,e),i=s?.type==="inline-union"?s.inlineUnionBranches?.[0]?.discriminators:void 0;return i?{...n,...i}:n}function jr(t){const e=[];return t.fastPreviewActive?e.push({kind:"committed"}):(t.fetchEnabled&&t.previewUrl&&e.push({kind:"live",baseUrl:t.previewUrl}),e.push({kind:"committed"})),t.productionUrl&&e.push({kind:"production",baseUrl:t.productionUrl}),e}function Sr(t){return Y9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function _5(t,e){const n=H.c(19),s=e?.fetchEnabled??!0,i=t?.previewUrl,o=De(t?.virtualMcpId),{previewServerUrl:l,runtime:a}=_e(t?.virtualMcpId),c=a==="cms";let L;n[0]!==t||n[1]!==i||n[2]!==l?(L=t?Sr({...t,previewUrl:i,productionUrl:l}):Y9.liveMeta(""),n[0]=t,n[1]=i,n[2]=l,n[3]=L):L=n[3];let d;n[4]!==c||n[5]!==s||n[6]!==o||n[7]!==t||n[8]!==i||n[9]!==l?(d=async()=>{const p=Tr,j=()=>c?fr(t):Cn(t,Oe(o,".deco/meta.gen.json")),h=jr({fetchEnabled:s,previewUrl:i,productionUrl:l,fastPreviewActive:c});for(const S of h){if(S.kind==="committed"){const x=await j();if(x.kind==="data")return x.data;continue}const g=await p(S.baseUrl);if(g)return g}const v=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw v.status=502,v},n[4]=c,n[5]=s,n[6]=o,n[7]=t,n[8]=i,n[9]=l,n[10]=d):d=n[10];const u=!!t,f=e?.refetchInterval;let b;n[11]!==c?(b=(p,j)=>(c||j.status!==502)&&p<3,n[11]=c,n[12]=b):b=n[12];let m;return n[13]!==L||n[14]!==d||n[15]!==u||n[16]!==f||n[17]!==b?(m={queryKey:L,queryFn:d,enabled:u,refetchInterval:f,refetchIntervalInBackground:!1,staleTime:3e5,retry:b,retryDelay:kr},n[13]=L,n[14]=d,n[15]=u,n[16]=f,n[17]=b,n[18]=m):m=n[18],$0(m)}function kr(t){return Vt(5e3,1e3,t,2,0)}async function Tr(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(Nr);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function Nr(){return null}function de(t,e,n){const s=n[t];return typeof s?.name=="string"&&s.name||t.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${e+1}`}function C5(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=v9(i);if(!o&&i!==""&&$9(i)&&i in e)return{index:s,resolveType:i,label:de(i,s,e),isLazy:!1,isSavedBlock:!0};const l=o?n.section:void 0,a=o?l?.__resolveType??"":i;if(a===Z9||a===Q9){const L=o?l:n,d=Array.isArray(L?.variants)?L.variants:[];if(d.length===1&&(d[0]?.rule?.__resolveType??"")===S0){const b=d[0]?.value??{};let m=b.__resolveType??"";const p=v9(m);let j=b;if(p){const h=b.section;m=h?.__resolveType??m,h&&(j=h)}if(m===Z9||m===Q9){const v=(Array.isArray(j.variants)?j.variants:[])[0]?.value?.__resolveType,S=v?b9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${S}`,variantOf:S,isHidden:!0,isLazy:p}}return m!==""&&$9(m)&&m in e?{index:s,resolveType:i,label:de(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:b9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const u=d[0]?.value?.__resolveType,f=u?b9(u):"Section";return{index:s,resolveType:i,label:`Variants of ${f}`,variantOf:f,isMultivariate:!0,isLazy:o}}const c=o?n.section?.__resolveType??i:i;return o&&c!==""&&$9(c)&&c in e?{index:s,resolveType:i,label:de(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:b9(c)||`Section ${s+1}`,isLazy:o}})}function Mn(t){const e=t.__resolveType??"";return v9(e)?t.section??t:t}function V0(t){const i=(v9(t.__resolveType??"")?t.section:t)?.variants?.[0];return i?.rule?.__resolveType!==S0?null:i?.value??null}function A5(t){const e=Mn(t);return{__resolveType:Q9,variants:[{value:e,rule:{__resolveType:S0}}]}}function E5(t){const e=t.__resolveType??"";if(!e)return null;if(v9(e))return t.section??null;const n=V0(t);return n?v9(n.__resolveType??"")?n:{__resolveType:tt,section:Mn(n)}:{__resolveType:tt,section:t}}function M0(t){const e=t.__resolveType??"";if(!e)return null;if(v9(e)){const n=t.section,s=n?.__resolveType??"";return!s||!n?null:{resolveType:s,data:n}}return{resolveType:e,data:t}}function w5(t){const e=V0(t);if(e)return M0(e);if(v9(t.__resolveType??"")){const s=t.section;if(!s)return null;const i=V0(s);return M0(i||s)}return M0(t)}function M5(t){return V0(t)}const _r=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function $e(t){if(!t)return!1;const e=t.__resolveType??"";return e===""?Object.keys(t).length===0:_r.includes(e)||e.includes("always")}function Cr(t){const e=t.variants??[];if(e.length===0)return-1;const n=e.findIndex(s=>$e(s.rule));return n!==-1?n:e.length-1}function P5(t,e,n){const s=n.variants??[];if(s.length===0)return null;const i=Cr(n),o=s[i]?.value;if(!o)return null;const l=structuredClone(o);return e.isLazy?{...t,section:l}:l}function Pn(t,e){return e.isMultivariate?e.isLazy?t.section??null:t:null}function R5(t,e){return Array.isArray(t.variants)?t.variants.map((n,s)=>({label:e(n.rule)||`Variant ${s+1}`,value:n.value??{},rule:n.rule})):[]}function I5(t,e){const n=t.__resolveType??"";if(!n)return null;if(v9(n)){const s=t.section??t,i=s.__resolveType??n;if(!i.includes("/")&&i in e){const o=e[i]??{};return{data:{...o},resolveType:o.__resolveType??i}}return{data:{...s},resolveType:i}}if(!n.includes("/")&&n in e){const s=e[n]??{};return{data:{...s},resolveType:s.__resolveType??n}}return{data:{...t},resolveType:n}}function Ar(t,e){const n=t.__resolveType??"";return v9(n)?{...t,section:e}:e}function Er(t,e,n){return e.isLazy?{...t,section:n}:n}function F5(t,e,n){const s=[...t.variants??[]],i=s[e];if(!i)return t;const o=i.value??{};return s[e]={...i,value:Ar(o,n)},{...t,variants:s}}function O5(t,e,n){const s=[...t.variants??[]];return s[e]?(s[e]={...s[e],rule:n},{...t,variants:s}):t}function D5(t,e){const n=[...t.variants??[]],s=n[e];return s?(n.splice(e+1,0,structuredClone(s)),{...t,variants:n}):t}function $5(t,e,n){const s=[...t.variants??[]];if(e===n||e<0||n<0||e>=s.length||n>=s.length)return t;const[i]=s.splice(e,1);return i?(s.splice(n,0,i),{...t,variants:s}):t}function z5(t,e){const n=[...t.variants??[]];return n.length<=1?null:(n.splice(e,1),{...t,variants:n})}function ve(t){return{rule:o0(),value:structuredClone(t)}}function Rn(t,e){return{...e,__resolveType:Q9,variants:t}}function B5(t){return t.isHidden!==!0&&t.isSavedBlock!==!0}function wr(t,e){if(e.isHidden)return null;if(e.isMultivariate){const s=Pn(t,e)?.variants??[],i=s[s.length-1]?.value;return i?structuredClone(i):null}if(e.isLazy){const n=t.section;return n?structuredClone(n):null}return structuredClone(t)}function Mr(t,e,n){if(e.isMultivariate||e.isHidden)return null;const s=wr(t,e);if(!s)return null;const i=Rn([ve(s),ve(s)]);return e.isLazy?{...t,section:i}:i}function V5(t,e,n){if(e.isHidden||e.isSavedBlock)return null;if(e.isMultivariate){const i=Pn(t,e);if(!i)return null;const o=i.variants??[],l=o[o.length-1]?.value;if(!l)return null;const a=Rn([...o,ve(l)],i);return{section:Er(t,e,a),newVariantIndex:o.length}}const s=Mr(t,e);return s?{section:s,newVariantIndex:1}:null}function oe(t){return t.anyOfRefs?.some(e=>e.resolveType!==Z9?!1:e.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function Pr(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t;return e.__resolveType===Q9&&Array.isArray(e.variants)}function U0(t){return!t||typeof t!="object"||Array.isArray(t)?!1:t.__resolveType===Z9}function Rr(t){if(!U0(t))return null;const e=t.variants;if(!Array.isArray(e))return null;const n=e[0]?.value;return Array.isArray(n)?n:null}function Ir(t,e){if(!U0(t))return e;const n=structuredClone(t),s=[...n.variants??[]];return s.length===0?s.push({rule:o0(),value:e}):s[0]={...s[0],value:e},{...n,variants:s}}function U5(t,e){const s=t[e]?.sections;if(!s||Array.isArray(s))return 1;const i=s;return Array.isArray(i.variants)?i.variants.length:1}function K5(t,e,n){const i=t[e]?.sections;if(Array.isArray(i))return n===0?i:[];if(i&&typeof i=="object"){const o=i.variants;if(Array.isArray(o)){const l=o[n];return Array.isArray(l?.value)?l.value:[]}}return[]}function Fr(t,e,n){if(Array.isArray(t))return[{label:"Default",sections:t}];if(t&&typeof t=="object"){const s=t;if(Array.isArray(s.variants)){const i=s.variants,o=i.map(c=>yr(c.rule,e,n)),l=o.reduce((c,L)=>(c[L]=(c[L]??0)+1,c),{}),a={};return i.map((c,L)=>{const d=o[L]??`Variant ${L+1}`,u=l[d]??1;let f=d;return u>1&&(a[d]=(a[d]??0)+1,f=`${d} ${a[d]}`),{label:f||`Variant ${L+1}`,sections:Array.isArray(c.value)?c.value:[],rule:c.rule}})}}return[]}function m0(t){return{rule:o0(),value:t}}function r0(t,e){return{...e,__resolveType:Z9,variants:t}}function G5(t,e){const n=structuredClone(e);if(Array.isArray(t))return r0([m0(t),m0(n)]);if(t&&typeof t=="object"){const s=t;return Array.isArray(s.variants)?r0([...s.variants,m0(n)],s):null}return r0([m0([]),m0(n)])}function H5(t){const e=t.variants;return Array.isArray(e)?e.length-1:1}function q5(t,e){const n=t[e];if(!n)return null;const s=[...t];return s.splice(e+1,0,structuredClone(n)),s}function W5(t,e){if(e.length===0)return r0([],t);if(e.length===1){const n=e[0],s=n?.rule;if(!$e(s))return r0(e,t);if(Array.isArray(n?.value))return n.value}return r0(e,t)}function Or(t,e,n){const s=[];for(const[o,l]of Object.entries(t))o!==e&&s.push(l);const i=new Set;for(;s.length>0;){const o=s.pop();if(!(!o||typeof o!="object")&&!i.has(o)){if(i.add(o),Array.isArray(o)){for(const l of o)s.push(l);continue}n(o);for(const l of Object.values(o))s.push(l)}}}function Y5(t,e,n){if(!e)return 0;let s=0;return Or(t,e,i=>{i.__resolveType===e&&E0(i,t,n)&&s++}),s}const Dr={provision:0,cloning:1,install:2,dev:3};function $r(t){return Dr[t.step]}const lt=48,In=28,Fn=3,zr=(()=>{const t=[];let e=0;for(let n=0;n<lt;n++)n===In?t.push(null):(t.push(e/(lt-1)*Fn),e++);return t})();function Br(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function Vr(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?Ws[e.kind].long:n[t.step]}const O9="bg-foreground/[0.05]",w9="bg-foreground/[0.09]",Ur=Array.from({length:35},()=>Math.random()*1.8),Kr=Array.from({length:35},()=>Math.random()<.4);function Gr(t){const e=H.c(31),{progress:n,claimPhase:s}=t,i=l9();let o;e[0]!==n?(o=$r(n),e[0]=n,e[1]=o):o=e[1];const l=o;let a;e[2]!==s||e[3]!==n||e[4]!==i?(a=Vr(n,s,Br(i)),e[2]=s,e[3]=n,e[4]=i,e[5]=a):a=e[5];const c=a;let L;e[6]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(g1,{}),e[6]=L):L=e[6];const d=`${n.step}-${c}`;let u;e[7]!==c||e[8]!==d?(u=r.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-foreground/10 bg-background px-3.5 py-1.5 shadow-[0_4px_20px_-4px_rgb(0_0_0_/_0.12)]",children:[L,r.jsxs("span",{className:"animate-in fade-in text-[13px] font-medium text-foreground/85 duration-500",children:[c,"…"]},d)]}),e[7]=c,e[8]=d,e[9]=u):u=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=r.jsx(Hr,{}),e[10]=f):f=e[10];let b;e[11]!==l?(b=r.jsx(P0,{phase:0,current:l,children:f}),e[11]=l,e[12]=b):b=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(Wr,{}),e[13]=m):m=e[13];let p;e[14]!==l?(p=r.jsx(P0,{phase:1,current:l,children:m}),e[14]=l,e[15]=p):p=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j=r.jsx(Yr,{}),e[16]=j):j=e[16];let h;e[17]!==l?(h=r.jsx(P0,{phase:2,current:l,children:j}),e[17]=l,e[18]=h):h=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx(Zr,{}),e[19]=v):v=e[19];let S;e[20]!==l?(S=r.jsx(P0,{phase:3,current:l,children:v}),e[20]=l,e[21]=S):S=e[21];let g;e[22]!==h||e[23]!==S||e[24]!==b||e[25]!==p?(g=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[b,p,h,S]}),e[22]=h,e[23]=S,e[24]=b,e[25]=p,e[26]=g):g=e[26];let x;e[27]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx("style",{children:`
|
|
2
2
|
@keyframes vm-pulse-soft {
|
|
3
3
|
0%, 100% { opacity: 0.25; }
|
|
4
4
|
50% { opacity: 1; }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o as G,r as o,dp as Ce,dm as De,c as Pe,e as Ae,di as ee,a0 as Ee,j as ye,K as M,z as _e}from"./index-
|
|
1
|
+
import{o as G,r as o,dp as Ce,dm as De,c as Pe,e as Ae,di as ee,a0 as Ee,j as ye,K as M,z as _e}from"./index-COJyT2bn.js";import{u as Le}from"./use-mcp-client-C5UR6qvr.js";import{u as Ue}from"./use-session-runtime-CML40czH.js";import{u as Re,b as Oe}from"./chat-context-BYHljAsB.js";import{u as Be}from"./hooks-BOS6vZ4t.js";import{e as ge}from"./backoff-8mStPHYB.js";import{b as Ne}from"./sandbox-url-D3mC8qhT.js";import{a as Fe}from"./use-virtual-mcp-B5lofcUX.js";import{d as $e}from"./sandbox-start-errors-BK_aDCyt.js";function Ke(e,t){const n=G(t);return Ve({filters:{...e,status:"pending"}},n).length}function fe(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function Ve(e={},t){const n=G(t).getMutationCache(),s=o.useRef(e),u=o.useRef(null);return u.current===null&&(u.current=fe(n,e)),o.useEffect(()=>{s.current=e}),o.useSyncExternalStore(o.useCallback(c=>n.subscribe(()=>{const a=Ce(u.current,fe(n,s.current));u.current!==a&&(u.current=a,De.schedule(c))}),[n]),()=>u.current,()=>u.current)}async function qe(e,t,n){const s=await e.callTool({name:t,arguments:n});if(s.isError){const u=s.content?.[0]?.text??`Tool ${t} failed without a message`;throw new Error(u)}return s}const be=["SANDBOX_START"],W=new Map,He=e=>`${e.virtualMcpId}::${e.branch??""}`,Qe=e=>e.message.includes("retry shortly"),ie=new Set,le={mark:(e,t)=>ie.add(`${e}::${t}`),clear:(e,t)=>ie.delete(`${e}::${t}`),isStopped:(e,t)=>ie.has(`${e}::${t}`)};function Ye(e,t){const n=G();return Ae({mutationKey:be,retry:(s,u)=>Qe(u)&&s<6,retryDelay:s=>ge(5e3,500,s,2,0),mutationFn:async s=>{s.branch&&le.clear(s.virtualMcpId,s.branch);const u=He(s),c=W.get(u);if(c)return c;const a=(async()=>(await qe(e,"SANDBOX_START",s)).structuredContent)();W.set(u,a);try{return await a}finally{W.get(u)===a&&W.delete(u)}},onSuccess:()=>{ee(n),t?.onStarted?.()}})}function Rt(e,t){const n=Pe.c(3);let s;return n[0]!==t||n[1]!==e?(s={mutationKey:be,predicate:c=>{if(!e)return!1;const a=c.state.variables;return!a||a.virtualMcpId!==e?!1:(a.branch??"")===(t??"")}},n[0]=t,n[1]=e,n[2]=s):s=n[2],Ke(s)>0}function Se(e){return e==="installing"||e==="install-failed"||e==="starting"||e==="start-failed"||e==="running"||e==="crashed"}const Me={phase:null,lifecycle:{phase:"idle"},status:{state:"running"},branch:{kind:"unknown"},notFound:!1,scripts:[],activeProcesses:[],getBuffer:()=>"",hasData:()=>!1,subscribeChunks:()=>()=>{},subscribeReload:()=>()=>{}},ve=o.createContext(Me),me=16384;class Ge{data="";append(t){this.data+=t,this.data.length>me&&(this.data=this.data.slice(this.data.length-me))}get(){return this.data}clear(){this.data=""}}const Xe=1e3,je=3e4,Ie=3e3,he=["lifecycle","status","tasks","scripts","branch","reload","file-changed"],pe="log";function Je(e){if(!e)return null;try{return new URL("/_sandbox/events",e).href}catch{return null}}function We(e){return e===404}async function ze(e){try{const t=await fetch(e,{headers:{Accept:"text/event-stream"},cache:"no-store",signal:AbortSignal.timeout(Ie)});return await t.body?.cancel().catch(()=>{}),We(t.status)}catch{return!1}}function gt({virtualMcpId:e,branch:t,previewUrl:n=null,enabled:s=!0,children:u}){const{org:c}=Ee(),a=G(),V=Re()?.taskId??null,[X,E]=o.useState(null),[te,b]=o.useState({phase:"idle"}),[ne,U]=o.useState({state:"running"}),[re,y]=o.useState({kind:"unknown"}),[j,h]=o.useState(!1),[k,q]=o.useState([]),[se,R]=o.useState([]),[,H]=o.useState(0),v=o.useRef(new Map),O=o.useRef(new Set),w=o.useRef(new Set),C=o.useRef(null),p=Je(n),Q=Fe(e)?.metadata?.runtime?.selected==="deno",_=d=>{let S=v.current.get(d);return S||(S=new Ge,v.current.set(d,S)),S};o.useEffect(()=>{if(E(null),b({phase:"idle"}),U({state:"running"}),y({kind:"unknown"}),C.current=null,h(!1),q([]),R([]),v.current.clear(),!e||!t||!s)return;const d=Ne({orgSlug:c.slug,virtualMcpId:e,branch:t,threadId:V??null},"events");let S=!1,D=0,L=null,T=null,P=null,g=null,m=null,A=null;const I=r=>{try{const i=JSON.parse(r.data);E(i),i.kind!=="failed"&&(h(!1),D=0),i.kind==="ready"&&ae()}catch(i){console.warn("[vm-events] bad phase payload",i)}},B=()=>{h(!0),E(null),b({phase:"idle"}),U({state:"running"}),y({kind:"unknown"}),q([]),R([]),v.current.clear()},Y=r=>{try{const i=JSON.parse(r.data);if(typeof i.data!="string")return;D=0;const f=i.data.replace(/\r?\n/g,`\r
|
|
2
2
|
`);_(i.source).append(f);for(const l of O.current)try{l(i.source,f)}catch{}H(l=>l+1)}catch{}},J=r=>{const i=r.type;try{const f=JSON.parse(r.data);switch(D=0,i){case"lifecycle":{const l=f;b(l.state);const F=`${c.slug}/${e}/${t}`;if(Se(l.state.phase)&&!(A&&Se(A))){ee(a,c.id);const K=M.decofile(F);a.getQueryData(K)===void 0&&a.invalidateQueries({queryKey:K})}l.state.phase==="running"&&A!=="running"&&(ee(a,c.id),a.invalidateQueries({queryKey:M.decofile(F)}),a.invalidateQueries({queryKey:M.liveMeta(c.slug,e,t)})),A=l.state.phase;const $=l.state.phase==="running"?l.state.port:null,ce=C.current;if(C.current=$,ce!==null&&$!==null&&ce!==$)for(const K of w.current)try{K()}catch{}return}case"status":U(f);return;case"tasks":{const F=f.active.map($=>$.logName??"").filter(Boolean);R(F);return}case"scripts":q(f.scripts);return;case"branch":{const l=f.meta;y(l);return}case"reload":for(const l of w.current)try{l()}catch{}return;case"file-changed":{const{path:l}=f,F=`${c.slug}/${e}/${t}`;if(l.startsWith(".deco/")||l.includes("/.deco/")){if(!(A==="running"))return;P&&clearTimeout(P),P=setTimeout(()=>{if(P=null,a.invalidateQueries({queryKey:M.decofile(F)}),Q)for(const K of w.current)try{K()}catch{}},500)}else T&&clearTimeout(T),T=setTimeout(()=>{T=null,a.invalidateQueries({queryKey:M.liveMeta(c.slug,e,t)})},1e3);return}}}catch{}};function N(){if(S)return;const r=new EventSource(d);g=r,r.onopen=()=>{},r.onerror=()=>{g===r&&r.readyState===EventSource.CLOSED&&x("studio")},r.addEventListener("phase",I),r.addEventListener("gone",B),r.addEventListener(pe,Y);for(const i of he)r.addEventListener(i,J)}function ae(){if(S||!p||m)return;const r=new EventSource(p);m=r;let i=!1;r.onopen=()=>{if(S||m!==r)return;i=!0,D=0;const f=g;g=null,f?.close()},r.onerror=()=>{m===r&&r.readyState===EventSource.CLOSED&&ue(r,i)},r.addEventListener(pe,Y);for(const f of he)r.addEventListener(f,J)}async function ue(r,i){const f=p?await ze(p):!1;if(!(S||m!==r)){if(r.close(),m=null,f){B(),g||N();return}i&&x("direct")}}function x(r){if(S||L)return;const i=ge(je,Xe,D,2,0);D++,L=setTimeout(()=>{if(L=null,!S){if(r==="direct"){m?.close(),m=null,ae();return}g?.close(),g=null,N()}},i)}return N(),()=>{S=!0,g?.close(),m?.close(),L&&clearTimeout(L),T&&clearTimeout(T),P&&clearTimeout(P)}},[e,t,c.slug,s,V,p,a,Q]);const oe={phase:X,lifecycle:te,status:ne,branch:re,notFound:j,scripts:k,activeProcesses:se,getBuffer:d=>v.current.get(d)?.get()??"",hasData:d=>(v.current.get(d)?.get().length??0)>0,subscribeChunks:d=>(O.current.add(d),()=>{O.current.delete(d)}),subscribeReload:d=>(w.current.add(d),()=>{w.current.delete(d)})};return ye.jsx(ve,{value:oe,children:u})}function de(){return o.use(ve)}function bt(e){const{subscribeChunks:t}=de(),n=o.useRef(e);n.current=e,o.useEffect(()=>t((c,a)=>{n.current?.(c,a)}),[t])}function vt(e){const{subscribeReload:t}=de(),n=o.useRef(e);n.current=e,o.useEffect(()=>t(()=>{n.current?.()}),[t])}function Ze(e){return e.appPaused||e.userStopped?{kind:"suspended"}:e.startError&&!e.previewUrl?{kind:"errored",error:e.startError}:e.previewUrl?{kind:"iframe",previewUrl:e.previewUrl}:{kind:"starting"}}function et(e){return e.executionEnabled&&e.sessionRuntime==="sandbox"&&e.hasActiveGithubRepo&&!!e.userId&&!!e.branch&&!e.vmEntry&&!e.userStopped&&!e.isPending&&!e.attempted}function wt(e){return e.threadLoaded&&e.isOwner&&e.hasActiveGithubRepo&&!e.branch&&!e.attempted}function tt(e){return e.executionEnabled&&e.notFound&&!!e.deadVmId&&!e.isPending&&!e.userStopped&&e.deadVmId!==e.lastDeadVmId}function Tt(e){const{agentSandboxMap:t,threadSandboxMap:n,userId:s,branch:u}=e,c=e.ownerId??s;if(!s||!c||!u)return t;const a=n?.[c]?.[u];return a?{...t??{},[s]:{...t?.[s]??{},[u]:a}}:t}function z(e,t,n){const s={virtualMcpId:e};return t&&(s.branch=t),n&&(s.threadId=n),s}const we=2,nt=new Set(["scheduling-timeout","reconciler-error","claim-never-created","unknown"]);function Te(e){return nt.has(e)}function rt(e){return e.executionEnabled&&e.failedReason!==null&&Te(e.failedReason)&&e.attempts<we&&!e.isPending&&!e.userStopped&&!e.alreadyHandled}const st={branch:null,count:0,handled:!1};function ot(e,t){return e.branch===t?e:{branch:t,count:0,handled:!1}}function at(e){return e.mutationError?e.mutationError:e.phase?.kind==="failed"&&!e.startPending&&e.claimRetryExhausted?{code:null,message:e.phase.message}:null}function ut(e){switch(e.kind){case"suspended":return"suspended";case"iframe":return"running";case"starting":return"starting";case"errored":return"errored"}}function xe(e,t){return`${e??""}::${t??""}`}function ct(e){const t=e.vmEntry?.previewUrl??null;return t||(e.seeded?.key===e.key?e.seeded.url:null)}function Z(e){const{data:t,virtualMcpId:n,branch:s}=e;t?.branch&&!s&&e.setCurrentTaskBranch(t.branch),t?.previewUrl&&e.setSeededPreviewUrl({key:xe(n,t.branch??s),url:t.previewUrl})}const it={branch:null,previewState:{kind:"starting"},status:"idle",vmEntry:null,previewUrl:null,userStopped:!1,start:()=>{},stop:async()=>{},restart:async()=>{},retry:()=>{},resume:()=>{}},ke=o.createContext(it);function xt(){return o.use(ke)}function kt({executionEnabled:e,virtualMcpId:t,branch:n,userId:s,hasActiveGithubRepo:u,vmEntry:c,threadId:a,children:V}){const{org:X}=Ee(),{setCurrentTaskBranch:E}=Oe(),te=Be(),b=de(),ne=G(),U=Ue(t),re=U.resolved?U.runtime:null,y=Re()?.taskId??null,j=Le({connectionId:_e,orgId:X.id,orgSlug:X.slug}),h=Ye(j,{onStarted:()=>{a&&te?.refreshThreadMetadata(a)}}),{mutate:k,reset:q}=h,[se,R]=o.useState(null),H=o.useRef(new Set),v=o.useRef(null),[O,w]=o.useState(st),C=ot(O,n);C!==O&&w(C);const p=b.phase?.kind==="failed"?b.phase:null,Q=ct({vmEntry:c,seeded:p?null:se,key:xe(t,n)}),_=!!t&&!!n&&le.isStopped(t,n),oe=b.status.state==="paused",d=!p||!Te(p.reason)||C.count>=we,S=at({mutationError:h.isError&&h.error?$e(h.error.message):null,phase:b.phase,startPending:h.isPending,claimRetryExhausted:d}),D=Ze({previewUrl:Q,appPaused:oe,userStopped:_,startError:S}),L=ut(D),T=n??"",P=H.current.has(T),g=et({executionEnabled:e,hasActiveGithubRepo:u,userId:s,branch:n,vmEntry:c,userStopped:_,isPending:h.isPending,attempted:P,sessionRuntime:re});o.useEffect(()=>{if(!g||!t)return;H.current.add(T);const x=z(t,n,y);k(x,{onSuccess:r=>{Z({data:r,virtualMcpId:t,branch:n,setCurrentTaskBranch:E,setSeededPreviewUrl:R})},onError:r=>{console.error("[sandbox-lifecycle] auto-start failed:",r)}})},[g,T,n,t,y,k,E,R]);const m=b.notFound?c?.sandboxHandle??null:null,A=tt({executionEnabled:e,notFound:b.notFound,deadVmId:m,lastDeadVmId:v.current,isPending:h.isPending,userStopped:_});o.useEffect(()=>{if(!A||!m||!t)return;v.current=m;const x=z(t,n,y);k(x,{onSuccess:r=>{Z({data:r,virtualMcpId:t,branch:n,setCurrentTaskBranch:E,setSeededPreviewUrl:R})},onError:r=>{console.error("[sandbox-lifecycle] self-heal failed:",r)}})},[A,m,t,n,y,k,E,R]);const I=rt({executionEnabled:e,failedReason:p?.reason??null,attempts:C.count,isPending:h.isPending,userStopped:_,alreadyHandled:C.handled});o.useEffect(()=>{if(!p){w(r=>r.handled?{...r,handled:!1}:r);return}if(!I||!t)return;w(r=>({...r,handled:!0,count:r.count+1}));const x=z(t,n,y);k(x,{onSuccess:r=>{Z({data:r,virtualMcpId:t,branch:n,setCurrentTaskBranch:E,setSeededPreviewUrl:R})},onError:r=>{console.error("[sandbox-lifecycle] claim auto-retry failed:",r)}})},[p,I,t,n,y,k,E,R]);const B=()=>{if(!e||!t)return;const x=z(t,n,y);k(x,{onSuccess:r=>{Z({data:r,virtualMcpId:t,branch:n,setCurrentTaskBranch:E,setSeededPreviewUrl:R})},onError:r=>{console.error("[sandbox-lifecycle] user start failed:",r)}})},Y=async()=>{if(!(!e||!t||!n)&&c){le.mark(t,n);try{await j.callTool({name:"SANDBOX_DELETE",arguments:{virtualMcpId:t,branch:n}})}catch{}ee(ne)}},J=async()=>{await Y(),B()},N=()=>{H.current=new Set,v.current=null,w({branch:n,count:0,handled:!1}),q(),B()},ue={branch:n,previewState:D,status:L,vmEntry:c,previewUrl:Q,userStopped:_,start:B,stop:Y,restart:J,retry:N,resume:N};return ye.jsx(ke,{value:ue,children:V})}export{gt as S,kt as a,Ye as b,de as c,xt as d,bt as e,vt as f,Ke as g,Tt as o,wt as s,Rt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ao as a,bL as t,ap as e,bM as c,bN as d,bO as p,bP as m}from"./index-
|
|
1
|
+
import{ao as a,bL as t,ap as e,bM as c,bN as d,bO as p,bP as m}from"./index-COJyT2bn.js";const i=500;a({title:e().max(i),url:e().max(i),icon:e().max(i)});a({registries:d(e().max(i),a({enabled:t()})).describe("Per-registry enabled/disabled state. Key is connection ID. Absent registries are treated as enabled."),blockedMcps:c(e().max(i)).describe("List of MCP app_name or app_id values to hide from the store.")});const s=a({keyId:e().max(i),modelId:e().max(i),title:e().max(i).optional()}).nullable();p(["fast","smart","thinking","image","web_search","deep_research"]);p(["fast","smart","thinking"]);const _=a({tiers:a({fast:s,smart:s,thinking:s,image:s,web_search:s,deep_research:s})});a({tiers:a({fast:s.optional(),smart:s.optional(),thinking:s.optional()})});a({ids:c(e().max(i)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const y=a({home_task_intake_enabled:t().optional().describe("Show Task mode on the Home composer and allow reports to start tasks."),demo_mode:t().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),reports_only:t().optional().describe("Curated commerce (reports) look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),reviewer_enabled:t().optional().describe("Run the Reviewer on a task's pull request once it's In Review — it reviews the code with the repo's stack-appropriate skills, fixes what it finds on the PR's own branch, then exercises the change on the deploy preview and approves or hands the card to a human."),qa_agent_enabled:t().optional().describe("Deprecated: see reviewer_enabled."),code_reviewer_enabled:t().optional().describe("Deprecated: see reviewer_enabled."),auto_merge:t().optional().describe("When the Reviewer approves a task's pull request, merge it automatically instead of leaving the merge to a human."),auto_resolve_conflicts:t().optional().describe("When an approved pull request can't be merged because it conflicts with its base branch, hand it back to the Super Agent to resolve the conflict (check out the branch, merge the base, push). Unset, it follows `auto_merge`; set it explicitly to run one without the other."),cheap_reviewer_model:t().optional().describe("Run the Reviewer on a cheaper model than the Super Agent that wrote the code. On by default — turning it off trades cost for some review depth."),coding_agent_org_mcps:t().optional().describe("Give a coding-agent run (the claude-code harness in a sandbox) every MCP connection in the org as its own MCP server, on top of the narrow task-run surface it always gets. Off by default: each connection is one more server the agent connects to at session start, and all of their tools land in its context."),coding_agents_claude_code:t().optional().describe("Run chats on a Code Agent (an agent imported from a GitHub repo) with the claude-code harness inside its sandbox, instead of hosted Decopilot. Off by default: it changes the runtime of every such chat, and claude-code flushes whole turns rather than streaming tokens."),auto_assign_report_tasks_to_super_agent:t().optional().describe("When a report import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned."),hosting_enabled:t().optional().describe("Per-site Hosting tab (deployments, domains, deploy outcomes). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),deco_analytics_enabled:t().optional().describe("Per-site Deco Analytics tab (traffic, realtime, usage & limits). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),e2e_enabled:t().optional().describe("Per-site E2E tab (end-to-end test runs). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),experiments_enabled:t().optional().describe("Per-site Experiments tab (A/B tests + variant results). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org."),monitor_enabled:t().optional().describe("Per-site Monitor tab (CDN Performance + Audience from the stats-lake warehouse). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. Its own deployment-wide switch `MONITOR_GA` opens it to every org at once (independent of the control-plane trio)."),delivery_lanes_enabled:t().optional().describe("Board lanes for shipping: Approved, Merged and Post-deploy Validation sit between In Review and Done, and a merged pull request lands on Merged instead of Done. For teams whose release process continues after the merge. Off by default — with it off the board and the state machine behave exactly as if the lanes did not exist."),cms_auto_fresh_branch:t().optional().describe("When a user opens the CMS on a branch whose last commit is older than the staleness window (2 days), move the session to a freshly minted branch cut from the default branch. The stale branch is left intact on GitHub. Off by default.")}),b=new Set(["reviewer_enabled","cheap_reviewer_model"]);function v(n,r){const h=n?.[r];return b.has(r)?h!==!1:h===!0}function x(n){const r=n?.auto_resolve_conflicts;return typeof r=="boolean"?r:n?.auto_merge===!0}const l=256*1024,f=50,o=500,u=5e3;a({id:e().describe("Brand context ID"),name:e().max(o).describe("Company name"),domain:e().max(o).describe("Company domain (e.g. example.com)"),overview:e().max(u).describe("Company overview / description"),logo:e().max(o).nullable().optional().describe("Logo URL"),favicon:e().max(o).nullable().optional().describe("Favicon URL"),ogImage:e().max(o).nullable().optional().describe("OG image URL"),fonts:a({heading:e().max(o).optional().describe("Font family for headings"),body:e().max(o).optional().describe("Font family for body text"),code:e().max(o).optional().describe("Font family for code / monospace")}).nullable().optional().describe("Font families by semantic role"),colors:a({primary:e().max(o).optional().describe("Primary brand color (hex)"),secondary:e().max(o).optional().describe("Secondary brand color (hex)"),accent:e().max(o).optional().describe("Accent / highlight color (hex)"),background:e().max(o).optional().describe("Background color (hex)"),foreground:e().max(o).optional().describe("Foreground / text color (hex)")}).nullable().optional().describe("Semantic color palette"),images:c(d(e(),m())).max(f).nullable().optional().refine(n=>n==null||JSON.stringify(n).length<=l,{message:`images must serialize to at most ${l} bytes`}).describe("Brand images"),metadata:d(e(),m()).nullable().optional().refine(n=>n==null||JSON.stringify(n).length<=l,{message:`metadata must serialize to at most ${l} bytes`}).describe("Extra design tokens (typography, components, spacing, layout, tone, etc.)"),archivedAt:e().nullable().optional().describe("Archive timestamp (null to unarchive)"),isDefault:t().optional().describe("Whether this is the default brand for the organization")});export{b as D,y as O,_ as S,x as a,v as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,bn as T,bu as ce,j as b,bp as _,bG as ae,dk as O,bq as C,bz as P,bs as ie,c as F,l as $}from"./index-DQZBt6Fl.js";import{e as de}from"./select-DKZw7VY5.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,m]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[A,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,W]=d.useState(!1),v=T(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:A,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:v,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(J,o),a=d.useRef(null),c=T(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(V,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(V,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=m(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(V,{"data-state":n?"visible":"hidden",...t,ref:e})})}),V=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=m(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=B(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(ve,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=B(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),ve=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[me,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=m(g,o),[w,A]=d.useState(null),Y=T(e,v=>A(v)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function W(v){if(x.current){const p=v.clientX-x.current.left,R=v.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const v=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(me,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,v=>{v.button===0&&(v.target.setPointerCapture(v.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),W(v))}),onPointerMove:C(r.onPointerMove,W),onPointerUp:C(r.onPointerUp,v=>{const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),H="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(H,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=m(H,o),s=ee(H,o),{onThumbPositionChange:a}=s,c=T(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,A=h.clientY-S.top;s.onThumbPointerDown({x:w,y:A})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=H;var k="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(k,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=k;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(k,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function B(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:ring-ring/20",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
1
|
+
import{r as d,bn as T,bu as ce,j as b,bp as _,bG as ae,dk as O,bq as C,bz as P,bs as ie,c as F,l as $}from"./index-COJyT2bn.js";import{e as de}from"./select-DUlMM14m.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,m]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[A,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,W]=d.useState(!1),v=T(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:A,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:v,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(J,o),a=d.useRef(null),c=T(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(V,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(V,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=m(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(V,{"data-state":n?"visible":"hidden",...t,ref:e})})}),V=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=m(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=B(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(ve,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=B(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),ve=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[me,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=m(g,o),[w,A]=d.useState(null),Y=T(e,v=>A(v)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function W(v){if(x.current){const p=v.clientX-x.current.left,R=v.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const v=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(me,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,v=>{v.button===0&&(v.target.setPointerCapture(v.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),W(v))}),onPointerMove:C(r.onPointerMove,W),onPointerUp:C(r.onPointerUp,v=>{const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),H="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(H,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=m(H,o),s=ee(H,o),{onThumbPositionChange:a}=s,c=T(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,A=h.clientY-S.top;s.onThumbPointerDown({x:w,y:A})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=H;var k="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(k,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=k;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(k,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function B(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:ring-ring/20",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,l as w,j as a,h as j}from"./index-
|
|
1
|
+
import{c as b,l as w,j as a,h as j}from"./index-COJyT2bn.js";import{i as v}from"./SearchMd-BjQ6aaMY.js";function k(f){const e=b.c(17),{value:l,onChange:c,placeholder:m,onKeyDown:u,className:d,isSearching:p,disabled:r}=f,x=m===void 0?"Search...":m,h=r&&"pointer-events-none opacity-50";let t;e[0]!==d||e[1]!==h?(t=w("flex items-center gap-4 rounded-lg bg-[var(--studio-input-background)] px-3 h-8 card-shadow","focus-within:border-ring focus-within:ring-ring/20 focus-within:ring-[2px]","transition-[color,box-shadow]",h,d),e[0]=d,e[1]=h,e[2]=t):t=e[2];let n;e[3]!==p?(n=p?a.jsx(j,{className:"size-4 text-muted-foreground/75 shrink-0"}):a.jsx(v,{size:16,className:"text-muted-foreground/75 shrink-0"}),e[3]=p,e[4]=n):n=e[4];let s;e[5]!==c?(s=g=>c(g.target.value),e[5]=c,e[6]=s):s=e[6];let o;e[7]!==r||e[8]!==u||e[9]!==x||e[10]!==s||e[11]!==l?(o=a.jsx("input",{type:"text",value:l,onChange:s,onKeyDown:u,placeholder:x,disabled:r,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[7]=r,e[8]=u,e[9]=x,e[10]=s,e[11]=l,e[12]=o):o=e[12];let i;return e[13]!==t||e[14]!==n||e[15]!==o?(i=a.jsxs("label",{className:t,children:[n,o]}),e[13]=t,e[14]=n,e[15]=o,e[16]=i):i=e[16],i}export{k as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,r as C,l as B,j as a}from"./index-
|
|
1
|
+
import{c as K,r as C,l as B,j as a}from"./index-COJyT2bn.js";import{i as I}from"./SearchMd-BjQ6aaMY.js";import{i as M}from"./X-CZ5u1gQz.js";import{I as O}from"./icon-button-MNO3PXmW.js";function H(S){const e=K.c(34),{value:t,onChange:s,label:E,placeholder:D,clearLabel:F,expanded:o,className:j}=S,w=E===void 0?"Search":E,d=D===void 0?"Search…":D,y=F===void 0?"Clear search":F,[L,p]=C.useState(t!==""),[R,z]=C.useState(!1),[V,$]=C.useState(t);if(t!==V&&($(t),t===""&&!R&&p(!1)),!L&&!o){let l,g;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>p(!0),g=a.jsx(I,{}),e[0]=l,e[1]=g):(l=e[0],g=e[1]);let v;return e[2]!==w?(v=a.jsx(O,{label:w,tooltipSide:"bottom",variant:"secondary",onClick:l,children:g}),e[2]=w,e[3]=v):v=e[3],v}const _=o?"h-10 w-full px-3":"h-7 w-32 animate-search-expand px-2.5 sm:w-44";let n;e[4]!==j||e[5]!==_?(n=B("inline-flex shrink-0 items-center gap-1.5 overflow-hidden rounded-full bg-card text-card-foreground card-shadow",_,j),e[4]=j,e[5]=_,e[6]=n):n=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(I,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=x):x=e[7];const k=!o;let r;e[8]!==s?(r=l=>s(l.target.value),e[8]=s,e[9]=r):r=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>z(!0),e[10]=h):h=e[10];let i;e[11]!==t?(i=()=>{z(!1),t===""&&p(!1)},e[11]=t,e[12]=i):i=e[12];let c;e[13]!==s?(c=l=>{l.key==="Escape"&&s("")},e[13]=s,e[14]=c):c=e[14];const N=o?"text-sm":"text-xs";let f;e[15]!==N?(f=B("w-full min-w-0 bg-transparent outline-none placeholder:text-muted-foreground",N),e[15]=N,e[16]=f):f=e[16];let u;e[17]!==d||e[18]!==i||e[19]!==c||e[20]!==f||e[21]!==k||e[22]!==r||e[23]!==t?(u=a.jsx("input",{autoFocus:k,value:t,onChange:r,onFocus:h,onBlur:i,onKeyDown:c,placeholder:d,"aria-label":d,className:f}),e[17]=d,e[18]=i,e[19]=c,e[20]=f,e[21]=k,e[22]=r,e[23]=t,e[24]=u):u=e[24];let m;e[25]!==y||e[26]!==o||e[27]!==s||e[28]!==t?(m=t!==""&&a.jsx("button",{type:"button","aria-label":y,onMouseDown:P,onClick:()=>{s(""),o||p(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground",children:a.jsx(M,{className:"size-3.5"})}),e[25]=y,e[26]=o,e[27]=s,e[28]=t,e[29]=m):m=e[29];let b;return e[30]!==u||e[31]!==m||e[32]!==n?(b=a.jsxs("div",{className:n,children:[x,u,m]}),e[30]=u,e[31]=m,e[32]=n,e[33]=b):b=e[33],b}function P(S){return S.preventDefault()}export{H as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,b as C,j as s,n as w,e$ as F,E as L,r as y,aP as O,Z as B,B as z,R as E,t as _}from"./index-
|
|
1
|
+
import{c as v,b as C,j as s,n as w,e$ as F,E as L,r as y,aP as O,Z as B,B as z,R as E,t as _}from"./index-COJyT2bn.js";import{i as R}from"./AlertCircle-Cm80uQMQ.js";import{s as A}from"./Plus-L4CMeo2h.js";import{s as I}from"./User01-BBjKoAPb.js";import{t as q}from"./Users01-COhudXax.js";import{D as V,b as H,c as Z,d as G,h as J,e as K}from"./dialog-CDUwK9Ky.js";import{I as P}from"./input-BZsvuPI8.js";import{L as D}from"./label-BI62SaKd.js";import{S as M,b as Q,a as U,d as W,c as $}from"./select-DUlMM14m.js";import{T as X}from"./textarea-C1epfjF6.js";import{u as Y,a as ee}from"./use-secrets-BCJR8hU3.js";import{R as te}from"./require-capability-BVZK0CKB.js";import"./X-CZ5u1gQz.js";import"./index-DciLqihQ.js";import"./ChevronUp-BAybpbAO.js";import"./access-gate-BMbKi31w.js";import"./capability-load-error-VNoAtYvG.js";function se(t){const e=v.c(6),{error:r}=t,n=C();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(R,{size:16}),e[0]=c):c=e[0];let i;e[1]!==r.message||e[2]!==n?(i=n("settings.secrets.failedToLoadError",{error:r.message}),e[1]=r.message,e[2]=n,e[3]=i):i=e[3];let l;return e[4]!==i?(l=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[c,s.jsx("span",{className:"text-sm font-medium",children:i})]}),e[4]=i,e[5]=l):l=e[5],l}function re(t){const e=v.c(8),{scope:r}=t,n=C(),c=r==="user"?I:q;let i;e[0]!==r||e[1]!==n?(i=n(r==="user"?"settings.secrets.scopePrivate":"settings.secrets.scopeOrganization"),e[0]=r,e[1]=n,e[2]=i):i=e[2];const l=i;let a;e[3]!==c?(a=s.jsx(c,{size:12}),e[3]=c,e[4]=a):a=e[4];let o;return e[5]!==l||e[6]!==a?(o=s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-muted text-muted-foreground text-xs",children:[a,l]}),e[5]=l,e[6]=a,e[7]=o):o=e[7],o}function T(t){const e=v.c(20),{secret:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(E,{size:16,className:"text-muted-foreground"})}),e[0]=n):n=e[0];let c;e[1]!==r.name?(c=s.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=c):c=e[2];let i;e[3]!==r.scope?(i=s.jsx(re,{scope:r.scope}),e[3]=r.scope,e[4]=i):i=e[4];let l;e[5]!==c||e[6]!==i?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[c,i]}),e[5]=c,e[6]=i,e[7]=l):l=e[7];let a;e[8]!==r.description?(a=r.description?s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r.description}):null,e[8]=r.description,e[9]=a):a=e[9];let o;e[10]!==l||e[11]!==a?(o=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[n,s.jsxs("div",{className:"min-w-0",children:[l,a]})]}),e[10]=l,e[11]=a,e[12]=o):o=e[12];let m;e[13]!==r.createdAt?(m=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=m):m=e[14];let d;e[15]!==m?(d=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:m}),e[15]=m,e[16]=d):d=e[16];let u;return e[17]!==o||e[18]!==d?(u=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[o,d]}),e[17]=o,e[18]=d,e[19]=u):u=e[19],u}function ne(t){const e=v.c(15),{action:r}=t,n=C();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(E,{size:20,className:"text-muted-foreground"})}),e[0]=c):c=e[0];let i;e[1]!==n?(i=n("settings.secrets.emptyTitle"),e[1]=n,e[2]=i):i=e[2];let l;e[3]!==i?(l=s.jsx("p",{className:"font-medium text-sm",children:i}),e[3]=i,e[4]=l):l=e[4];let a;e[5]!==n?(a=n("settings.secrets.emptyDescription"),e[5]=n,e[6]=a):a=e[6];let o;e[7]!==a?(o=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:a}),e[7]=a,e[8]=o):o=e[8];let m;e[9]!==l||e[10]!==o?(m=s.jsxs("div",{children:[l,o]}),e[9]=l,e[10]=o,e[11]=m):m=e[11];let d;return e[12]!==r||e[13]!==m?(d=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,m,r]}),e[12]=r,e[13]=m,e[14]=d):d=e[14],d}function k({open:t,onOpenChange:e}){const r=C(),[n,c]=y.useState("organization"),[i,l]=y.useState(""),[a,o]=y.useState(""),[m,d]=y.useState(""),u=ee();function b(){c("organization"),l(""),o(""),d("")}function g(){b(),e(!1)}async function S(x){if(x.preventDefault(),!(!i.trim()||!a))try{await u.mutateAsync({scope:n,name:i.trim(),value:a,description:m.trim()||void 0}),_.success(r("settings.secrets.secretCreated",{name:i.trim()})),g()}catch(j){_.error(j instanceof Error?j.message:r("settings.secrets.failedToCreateSecret"))}}return s.jsx(V,{open:t,onOpenChange:x=>{x?e(x):g()},children:s.jsxs(H,{className:"sm:max-w-lg",children:[s.jsxs(Z,{children:[s.jsx(G,{children:r("settings.secrets.newSecretTitle")}),s.jsx(J,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:S,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(D,{htmlFor:"secret-scope",children:r("settings.secrets.scopeLabel")}),s.jsxs(M,{value:n,onValueChange:x=>c(x),children:[s.jsx(Q,{id:"secret-scope",children:s.jsx(U,{})}),s.jsxs(W,{children:[s.jsx($,{value:"organization",children:r("settings.secrets.scopeOrganizationDescription")}),s.jsx($,{value:"user",children:r("settings.secrets.scopePrivateDescription")})]})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(D,{htmlFor:"secret-name",children:r("settings.secrets.nameLabel")}),s.jsx(P,{id:"secret-name",value:i,onChange:x=>l(x.target.value),placeholder:r("settings.secrets.namePlaceholder"),autoComplete:"off",required:!0}),s.jsx("p",{className:"text-xs text-muted-foreground",children:r("settings.secrets.nameHelp")})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(D,{htmlFor:"secret-value",children:r("settings.secrets.valueLabel")}),s.jsx(P,{id:"secret-value",type:"password",value:a,onChange:x=>o(x.target.value),autoComplete:"new-password",required:!0})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(D,{htmlFor:"secret-description",children:r("settings.secrets.descriptionLabel")}),s.jsx(X,{id:"secret-description",value:m,onChange:x=>d(x.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(K,{children:[s.jsx(z,{type:"button",variant:"outline",onClick:g,disabled:u.isPending,children:r("settings.secrets.cancelButton")}),s.jsx(z,{type:"submit",disabled:u.isPending||!i.trim()||!a,children:u.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function ie(){const t=v.c(36),e=B(),r=C(),n=Y(),[c,i]=y.useState(!1);let l,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>i(!0),a=s.jsx(A,{size:14}),t[0]=l,t[1]=a):(l=t[0],a=t[1]);let o;t[2]!==r?(o=r("settings.secrets.newSecret"),t[2]=r,t[3]=o):o=t[3];let m;t[4]!==o?(m=s.jsx(w.Actions,{children:s.jsxs(z,{size:"sm",onClick:l,children:[a,o]})}),t[4]=o,t[5]=m):m=t[5];const d=m;if(n.length===0){const j=e&&d,N=!e&&d;let h;t[6]!==N?(h=s.jsx(ne,{action:N}),t[6]=N,t[7]=h):h=t[7];let f;t[8]!==c?(f=s.jsx(k,{open:c,onOpenChange:i}),t[8]=c,t[9]=f):f=t[9];let p;return t[10]!==j||t[11]!==h||t[12]!==f?(p=s.jsxs(s.Fragment,{children:[j,h,f]}),t[10]=j,t[11]=h,t[12]=f,t[13]=p):p=t[13],p}let u,b,g;if(t[14]!==d||t[15]!==n||t[16]!==r){const j=n.filter(oe),N=n.filter(ae),h=n.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let f;t[20]!==n.length||t[21]!==r||t[22]!==h?(f=r(h,{count:n.length}),t[20]=n.length,t[21]=r,t[22]=h,t[23]=f):f=t[23];let p;t[24]!==f?(p=s.jsx("p",{className:"text-sm text-muted-foreground",children:f}),t[24]=f,t[25]=p):p=t[25],t[26]!==d||t[27]!==p?(u=s.jsxs("div",{className:"flex items-center justify-between",children:[p,d]}),t[26]=d,t[27]=p,t[28]=u):u=t[28],b=j.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:r("settings.secrets.sectionOrganization")}),s.jsx("div",{children:j.map(le)})]}):null,g=N.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:r("settings.secrets.sectionPrivate")}),s.jsx("div",{children:N.map(ce)})]}):null,t[14]=d,t[15]=n,t[16]=r,t[17]=u,t[18]=b,t[19]=g}else u=t[17],b=t[18],g=t[19];let S;t[29]!==c?(S=s.jsx(k,{open:c,onOpenChange:i}),t[29]=c,t[30]=S):S=t[30];let x;return t[31]!==u||t[32]!==b||t[33]!==g||t[34]!==S?(x=s.jsxs(s.Fragment,{children:[u,b,g,S]}),t[31]=u,t[32]=b,t[33]=g,t[34]=S,t[35]=x):x=t[35],x}function ce(t){return s.jsx(T,{secret:t},t.id)}function le(t){return s.jsx(T,{secret:t},t.id)}function ae(t){return t.scope==="user"}function oe(t){return t.scope==="organization"}function de(){const t=v.c(7),e=C();let r;t[0]!==e?(r=e("settings.nav.secrets"),t[0]=e,t[1]=r):r=t[1];let n;t[2]!==r?(n=s.jsx(w.Title,{children:r}),t[2]=r,t[3]=n):n=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(L,{fallback:me,children:s.jsx(y.Suspense,{fallback:s.jsx(O,{className:"h-32 w-full"}),children:s.jsx(ie,{})})}),t[4]=c):c=t[4];let i;return t[5]!==n?(i=s.jsx(w,{children:s.jsx(w.Content,{children:s.jsx(w.Container,{children:s.jsxs(F,{children:[n,c]})})})}),t[5]=n,t[6]=i):i=t[6],i}function me(t){const{error:e}=t;return s.jsx(se,{error:e??new Error("Failed to load secrets")})}function Pe(){const t=v.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(te,{capability:"secrets:manage",area:"secrets",children:s.jsx(de,{})}),t[0]=e):e=t[0],e}export{Pe as default};
|