decocms 4.503.4 → 4.503.6
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/{ActiveShapeUtils-B5q2Fpj9.js → ActiveShapeUtils-CZHZIqkc.js} +1 -1
- package/dist/client/assets/{AlertCircle-DNYRiSZ5.js → AlertCircle-pSqAP7nV.js} +1 -1
- package/dist/client/assets/{AreaChart-BTuXJM5s.js → AreaChart-0ul94rHa.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BPRTZJKi.js → ArrowLeft-Zpzd8j3V.js} +1 -1
- package/dist/client/assets/{ArrowUp-ZHJFpRuE.js → ArrowUp-C9uNUjy8.js} +1 -1
- package/dist/client/assets/{BarChart-Bezom8e_.js → BarChart-Ctr2ePGA.js} +1 -1
- package/dist/client/assets/{Building02-BpZfnUaY.js → Building02-Bt9vvXn_.js} +1 -1
- package/dist/client/assets/{CategoricalChart-Uo4Rj6g_.js → CategoricalChart-wXdmL4_t.js} +1 -1
- package/dist/client/assets/{CheckCircle-DOJo5D8E.js → CheckCircle-ChGw78H1.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BjGO6IDu.js → ChevronSelectorVertical-BNGaFIcE.js} +1 -1
- package/dist/client/assets/{ChevronUp-85QiHbB8.js → ChevronUp-Dj_P2ejE.js} +1 -1
- package/dist/client/assets/{Copy01-DHwdjF9k.js → Copy01-Bp_jaXps.js} +1 -1
- package/dist/client/assets/{CreditCard01-BMScCkLO.js → CreditCard01-BdWDl1Mp.js} +1 -1
- package/dist/client/assets/{DotsVertical-XGcmOLtN.js → DotsVertical-BEAb8YoE.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-1_vc7VhI.js → ErrorBarContext-NEtQ4MVP.js} +1 -1
- package/dist/client/assets/{Globe04-BJ3qfVTm.js → Globe04-h6TM0z15.js} +1 -1
- package/dist/client/assets/{Image01-DA50Hqzp.js → Image01-BECWrdoe.js} +1 -1
- package/dist/client/assets/{Key01-GJDDXAJz.js → Key01-CoMPiVri.js} +1 -1
- package/dist/client/assets/{Link01-DITYAShx.js → Link01-Ny6DvMo4.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DqJqD91d.js → LinkBroken01-M2tJMfDF.js} +1 -1
- package/dist/client/assets/{Monitor01-CDHoaa0R.js → Monitor01-PmSy5UI8.js} +1 -1
- package/dist/client/assets/{Play-YAp6V4vH.js → Play-bI1AHJhu.js} +1 -1
- package/dist/client/assets/{Plus-CPrlnOw7.js → Plus-CT_gNsZf.js} +1 -1
- package/dist/client/assets/{SearchMd-vuCQLB6T.js → SearchMd-BnxkTIHs.js} +1 -1
- package/dist/client/assets/{Sector-Ch82gOyF.js → Sector-Z1Fbzeul.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-C5bgz2eY.js → ShoppingBag01-BUuo_iLo.js} +1 -1
- package/dist/client/assets/{Sun-BVt8ND9g.js → Sun-DK1e-LTP.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BmNVXOBy.js → SwitchHorizontal01-B_fkfX6f.js} +1 -1
- package/dist/client/assets/{Tool01-D30btgv0.js → Tool01-BN0vu6DY.js} +1 -1
- package/dist/client/assets/{Trash01-CuDfbX9_.js → Trash01-B3Y_TEyV.js} +1 -1
- package/dist/client/assets/{Upload01-Bbz_T9k9.js → Upload01-CysZqaq1.js} +1 -1
- package/dist/client/assets/{User01-DkehSUca.js → User01-CPiFYda6.js} +1 -1
- package/dist/client/assets/{UserSquare-CkJD4oxT.js → UserSquare-CjOwLO6f.js} +1 -1
- package/dist/client/assets/{Users01-Bx_TIoWb.js → Users01-JmhLuid8.js} +1 -1
- package/dist/client/assets/{XAxis-BuYm-sWK.js → XAxis-h93sER6K.js} +1 -1
- package/dist/client/assets/{XClose-jBQRwEAI.js → XClose-C7PQmwKr.js} +1 -1
- package/dist/client/assets/{ZoomOut-CpX8NTBd.js → ZoomOut-COswgut3.js} +1 -1
- package/dist/client/assets/{access-gate-tig-XyXk.js → access-gate-7UV7W0BB.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-bxfInPMj.js → add-connection-dialog-BPJnzsyx.js} +1 -1
- package/dist/client/assets/{agent-analytics-B-N286Uf.js → agent-analytics-BBQJ2R__.js} +1 -1
- package/dist/client/assets/agent-app-s3yVmzA6.js +1 -0
- package/dist/client/assets/{agent-assets-Cgi1ormd.js → agent-assets-tnz59afB.js} +1 -1
- package/dist/client/assets/{agent-automation-Bc_Pzkf9.js → agent-automation-1r3UbPYV.js} +1 -1
- package/dist/client/assets/{agent-automations-ZrkdxSWn.js → agent-automations-BDJrqTIK.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DqHqfSqs.js → agent-connect-sources-CX53aacs.js} +1 -1
- package/dist/client/assets/agent-deck-lL9Oi5aL.js +1 -0
- package/dist/client/assets/{agent-e2e-BDGDGL0J.js → agent-e2e-D8usRuRM.js} +1 -1
- package/dist/client/assets/{agent-experiments-CSJXs5ck.js → agent-experiments-BvVbUYzi.js} +1 -1
- package/dist/client/assets/{agent-file-B4y2baGc.js → agent-file-CoJmmbsI.js} +1 -1
- package/dist/client/assets/{agent-hosting-HBYg130L.js → agent-hosting-CBx5WkMs.js} +1 -1
- package/dist/client/assets/{agent-icon-C1V6kO6k.js → agent-icon-6hwcST3v.js} +1 -1
- package/dist/client/assets/agent-library-file-DRwu6MfF.js +1 -0
- package/dist/client/assets/agent-library-vdLH_HVw.js +1 -0
- package/dist/client/assets/{agent-monitor-C2b2Y_Y1.js → agent-monitor-Cc39w74F.js} +1 -1
- package/dist/client/assets/{agent-overview-CsnhRf0H.js → agent-overview-ErpQ4-fm.js} +1 -1
- package/dist/client/assets/{agent-releases-DRgXlmeB.js → agent-releases-C6OzbpkY.js} +1 -1
- package/dist/client/assets/agent-settings-Cg6VtmXX.js +1 -0
- package/dist/client/assets/{agent-site-editor-DsdBJNL9.js → agent-site-editor-DOKjMahh.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-C7-U3YdZ.js +2 -0
- package/dist/client/assets/agent-site-editor-content-W76P7g-b.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DL26iH-D.js +1 -0
- package/dist/client/assets/agent-view-DL0QwaH9.js +1 -0
- package/dist/client/assets/{agent-view-guard-Km-JyuT6.js → agent-view-guard-DR7c58SK.js} +1 -1
- package/dist/client/assets/{agents-list-BanY1y62.js → agents-list-CAZTAr7r.js} +1 -1
- package/dist/client/assets/{ai-providers-BQ1fiNa3.js → ai-providers-DmDQt35A.js} +1 -1
- package/dist/client/assets/{alert-CwC4mTxQ.js → alert-ClNLfvDL.js} +1 -1
- package/dist/client/assets/{alert-dialog-DmhXDwQf.js → alert-dialog-DZjJh3qf.js} +1 -1
- package/dist/client/assets/{analytics-sections-BVE76D5N.js → analytics-sections-ql8jWmgI.js} +1 -1
- package/dist/client/assets/api-keys-BBKPHIWc.js +1 -0
- package/dist/client/assets/{api-keys-MPhXPzmG.js → api-keys-BijSAB8N.js} +1 -1
- package/dist/client/assets/{app-editor-Hif319cO.js → app-editor-5oJI43tU.js} +1 -1
- package/dist/client/assets/{asset-utils-CU6xrAQD.js → asset-utils-DcAZz-OV.js} +1 -1
- package/dist/client/assets/{auth-catchall-DHUJeHRe.js → auth-catchall-BGx6qrCb.js} +1 -1
- package/dist/client/assets/{auth-entry-D7U4AjUc.js → auth-entry-CBLINdfm.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BwhoO-JF.js → auth-split-layout-DHx33X6O.js} +1 -1
- package/dist/client/assets/{auth-BfGJq755.js → auth-sylqu40r.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Brcij0L8.js → authenticate-and-persist-oauth-C_KBeDaP.js} +1 -1
- package/dist/client/assets/{automation-list-row-DhqnXrm1.js → automation-list-row-Cghx039x.js} +1 -1
- package/dist/client/assets/{automation-runs-CFyZ7Iod.js → automation-runs-Di9U4Nq6.js} +1 -1
- package/dist/client/assets/{automations-CPaO2SBr.js → automations-_DjcjoXA.js} +1 -1
- package/dist/client/assets/{autosend-BOeZuHqU.js → autosend-Br-ivrcu.js} +1 -1
- package/dist/client/assets/{avatar-GhiWKw1r.js → avatar-C70LNbg3.js} +1 -1
- package/dist/client/assets/{badge-ZAtAF3u1.js → badge-abt8fwV5.js} +1 -1
- package/dist/client/assets/{block-document-BFsYEKLL.js → block-document-D45kZQXs.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-x6dOFQvJ.js → blocks-preview-workspace-context-mp2YPP7g.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-iEAVPlIx.js → blocks-tab-states-DBT1YslM.js} +3 -3
- package/dist/client/assets/{blog-schema-ctDuKA_t.js → blog-schema-u7Q3nYyN.js} +1 -1
- package/dist/client/assets/{board-analytics-DvMyzeTp.js → board-analytics-DrgCTWko.js} +1 -1
- package/dist/client/assets/{buckets-CgmF5YK1.js → buckets-26I-xc0I.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-C3V-cifS.js → build-improve-prompt-doc-CJpPK8-L.js} +1 -1
- package/dist/client/assets/{calendar-DCNv43ZU.js → calendar-eGNDQHPW.js} +1 -1
- package/dist/client/assets/{capability-load-error-BwwdyiCX.js → capability-load-error-DTZk9b6C.js} +1 -1
- package/dist/client/assets/{category-editor-C1SS3xs8.js → category-editor-BcCD6x04.js} +1 -1
- package/dist/client/assets/{chart-C2XR0VWr.js → chart-BhHXveBS.js} +1 -1
- package/dist/client/assets/{chat-context-B8EIbmvQ.js → chat-context-DyVagSZV.js} +1 -1
- package/dist/client/assets/{chat-draft-qnxtVEVH.js → chat-draft-BcgHVPI2.js} +1 -1
- package/dist/client/assets/{checkbox-C7CPIIbh.js → checkbox-D09gDPB_.js} +1 -1
- package/dist/client/assets/{choose-editor-C5zdSB58.js → choose-editor-CyjF0LZb.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DTXn6lOO.js → cli-auth-success-mi9t-tYN.js} +1 -1
- package/dist/client/assets/{client-icons-TMNg5z-u.js → client-icons-D4bVV5hm.js} +1 -1
- package/dist/client/assets/cms-settings-editor-B6xNfEF5.js +1 -0
- package/dist/client/assets/{collapsible-CVaRDj_D.js → collapsible-B2Ux2Qo8.js} +1 -1
- package/dist/client/assets/{collection-detail-BR9DK1c7.js → collection-detail-CzQFffon.js} +1 -1
- package/dist/client/assets/{collection-display-button-ehG7rKuY.js → collection-display-button-Dy1Yhj4q.js} +1 -1
- package/dist/client/assets/{collection-search-DOoRymFZ.js → collection-search-y-eFh32_.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-zN3HZXSF.js → collection-table-wrapper-XlSx1_ny.js} +1 -1
- package/dist/client/assets/{collection-tabs-DLtCCrSF.js → collection-tabs-DOqwRJxO.js} +1 -1
- package/dist/client/assets/{column-rules-Du1x2YcT.js → column-rules-DvArcHZy.js} +1 -1
- package/dist/client/assets/{combobox-DlHUORRR.js → combobox-Bkf8S2n8.js} +1 -1
- package/dist/client/assets/{command-_UmLRidn.js → command-DcZcc2yc.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-joijt_6l.js → companion-mcps-section-BX9wlGrn.js} +1 -1
- package/dist/client/assets/{config-Cx-JIPqO.js → config-Dl7cazIC.js} +1 -1
- package/dist/client/assets/{connect-DoSLTcjV.js → connect-DD6LKAI_.js} +1 -1
- package/dist/client/assets/{connect-layout-Bm_59z-Y.js → connect-layout-DpOUpvIq.js} +1 -1
- package/dist/client/assets/{connection-DL3AzTOs.js → connection-DCtpUb4a.js} +1 -1
- package/dist/client/assets/{connection-card-Dvq8DJhG.js → connection-card-CTQBUTMX.js} +1 -1
- package/dist/client/assets/{connection-detail-DqoTA2Jx.js → connection-detail-DfPgHMN1.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-D9j_N0x7.js → connection-form-helpers-Dp0AEpjh.js} +1 -1
- package/dist/client/assets/{connections-CcmlL0dN.js → connections-D67blbhP.js} +1 -1
- package/dist/client/assets/{content-tab-63E-NyaC.js → content-tab-DdWNIwqI.js} +3 -3
- package/dist/client/assets/{context-menu-BxD8Qoq9.js → context-menu-BAdbBlpg.js} +1 -1
- package/dist/client/assets/{context-DQMyTLF9.js → context-nAS6kT1e.js} +1 -1
- package/dist/client/assets/{core.esm-5rgifJ6w.js → core.esm-FgcQ5v9Y.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DKnw552E.js → create-organization-dialog-Cg4R-dwK.js} +1 -1
- package/dist/client/assets/{daily-pulse-BLN6tqFf.js → daily-pulse-C3dg08Zf.js} +1 -1
- package/dist/client/assets/{discover-C69w99TN.js → discover-BOXDNz9y.js} +1 -1
- package/dist/client/assets/{domain-settings-z0KMryJJ.js → domain-settings-CSfPkzMv.js} +1 -1
- package/dist/client/assets/{drawer-Cwq-E8vz.js → drawer-DTikCqse.js} +1 -1
- package/dist/client/assets/{editor-classes-BOlaxHer.js → editor-classes-JJWT4Kx4.js} +1 -1
- package/dist/client/assets/{editor-YT1hAWJG.js → editor-pYukjRxn.js} +1 -1
- package/dist/client/assets/{empty-state-COxR0UdU.js → empty-state-5EIlUU8h.js} +1 -1
- package/dist/client/assets/{empty-state-bIFMElEe.js → empty-state-P_9e2QC2.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BOqucuID.js → extract-connection-data-DTFCgQce.js} +1 -1
- package/dist/client/assets/{feature-gate-zfN6jjr4.js → feature-gate-g52_goDK.js} +1 -1
- package/dist/client/assets/{feature-paywall-DOf-RXxD.js → feature-paywall-Cao0iqgb.js} +1 -1
- package/dist/client/assets/{file-explorer-CflV7iiA.js → file-explorer-C6JjNHvK.js} +1 -1
- package/dist/client/assets/{file-preview-BPog6jkH.js → file-preview-LKj-iKZI.js} +1 -1
- package/dist/client/assets/{file-share-button-DwxdVjUj.js → file-share-button-DGYatb8h.js} +1 -1
- package/dist/client/assets/{file-type-icon-fTBob-KS.js → file-type-icon-CRQDeOia.js} +1 -1
- package/dist/client/assets/flat-project-B7y51Lxz.js +1 -0
- package/dist/client/assets/{folder-icon-hdUwkBM6.js → folder-icon-BIjFBhOD.js} +1 -1
- package/dist/client/assets/{form-mnUTUUgy.js → form-DDFXVBYh.js} +1 -1
- package/dist/client/assets/{general-CgQXqxtP.js → general-CRrv7Af_.js} +1 -1
- package/dist/client/assets/{home-CV9BF9nv.js → home-CMV9WYSl.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-B7Lxlu-b.js → hosted-publish-feedback-x961HTwY.js} +1 -1
- package/dist/client/assets/{icon-button-Bt7uHWxC.js → icon-button-DMdPv4af.js} +1 -1
- package/dist/client/assets/{index-CVgtqYMj.js → index-BCWNsF_F.js} +1 -1
- package/dist/client/assets/{index-0NedKVmw.js → index-BhBARWwc.js} +1 -1
- package/dist/client/assets/{index-DIb14xIW.js → index-BvfFsp0R.js} +3 -3
- package/dist/client/assets/{index-CdyBZ-dj.js → index-C2TGytiX.js} +1 -1
- package/dist/client/assets/{index-B7MMDJJ7.js → index-C5euUKb-.js} +1 -1
- package/dist/client/assets/{index-DYj9xST9.js → index-C5v9ed-Y.js} +1 -1
- package/dist/client/assets/{index-Bt_WPZSk.js → index-CCiEbwpU.js} +1 -1
- package/dist/client/assets/{index-B0o9NkGp.js → index-CD7dkkiu.js} +1 -1
- package/dist/client/assets/{index-CaAWsuiJ.js → index-CIBRZeVK.js} +1 -1
- package/dist/client/assets/{index-9SoDq1r6.js → index-CIGT4h9O.js} +1 -1
- package/dist/client/assets/{index-BwRxHLj2.js → index-CxMbbAQv.js} +1 -1
- package/dist/client/assets/{index-C_vMO742.js → index-DZGFC-EY.js} +1 -1
- package/dist/client/assets/{index-C2F2YRTL.js → index-DdL99Xlt.js} +1 -1
- package/dist/client/assets/{index-Bo2QXn8j.js → index-GTTlket6.js} +1 -1
- package/dist/client/assets/{index-Bu9BjZrq.js → index-nyu5TMcf.js} +2 -2
- package/dist/client/assets/{index-redirect-BUSEAkWr.js → index-redirect-o2Vr69lV.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Cgqjyb2j.js → infiniteQueryObserver-B0LBSbEu.js} +1 -1
- package/dist/client/assets/{infra-billing-Dmuw8KU-.js → infra-billing-7APXCKyg.js} +1 -1
- package/dist/client/assets/{input-CEeDInNj.js → input-DCMWeMyD.js} +3 -3
- package/dist/client/assets/{input-GO29c19t.js → input-DtR5Rv1p.js} +1 -1
- package/dist/client/assets/{integration-icon-D0zNx-RJ.js → integration-icon-DU2_vznq.js} +1 -1
- package/dist/client/assets/{jira-icon-DvLH7QI5.js → jira-icon-CWwDOjFq.js} +1 -1
- package/dist/client/assets/{label-BqTE8eVe.js → label-BzK3hK82.js} +1 -1
- package/dist/client/assets/{layout-DpqY7e7r.js → layout-gGZaXiZ-.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-XW7PcOvc.js → legacy-agents-deep-DHVaIBtO.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BlcRg6jU.js → legacy-main-redirect-FcDnQ9Mm.js} +1 -1
- package/dist/client/assets/library-BPLq8Dpb.js +1 -0
- package/dist/client/assets/{library-tab-DX4N_54U.js → library-tab-C-fyOzdB.js} +1 -1
- package/dist/client/assets/{login-D_5_-2-7.js → login-BFtM4YpZ.js} +1 -1
- package/dist/client/assets/{markdown-Wx3jaxrX.js → markdown-BG_3O2EV.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CIdjohnw.js → mcp-app-renderer-dFKqdG58.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BqOO-7HR.js → mcp-oauth-ClcG85TU.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CP7f2bqu.js → mcp-oauth-zyX-M-Oq.js} +1 -1
- package/dist/client/assets/{members-CWfNsRhJ.js → members-C9yegDS4.js} +1 -1
- package/dist/client/assets/{memory-CBEItIQh.js → memory-CIj5OowP.js} +1 -1
- package/dist/client/assets/{mini-report-page-BUjMh7u3.js → mini-report-page-BXSiwAhW.js} +1 -1
- package/dist/client/assets/{mock-board-Ci5UecWv.js → mock-board-3R1NuGCS.js} +1 -1
- package/dist/client/assets/{monaco-editor-uL7EgDLV.js → monaco-editor-CMKFyXYz.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CTBvl4CT.js → monitoring-stats-row-tamOSnxl.js} +1 -1
- package/dist/client/assets/{multi-select-Dsayixmw.js → multi-select-DhjJpptu.js} +1 -1
- package/dist/client/assets/{mustache-CdAmmkEb.js → mustache-DyEk8g4U.js} +1 -1
- package/dist/client/assets/{new-project-dialog-C2CawYle.js → new-project-dialog-BAy3JFO_.js} +1 -1
- package/dist/client/assets/{oauth-callback-Cr6Mkw-S.js → oauth-callback-BU7EvdNh.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-3XAXL_LG.js → oauth-callback-ai-provider-vtCME4db.js} +1 -1
- package/dist/client/assets/{onboarding-Cr8prmNS.js → onboarding-DTeZDi74.js} +1 -1
- package/dist/client/assets/{openai-conversation-CqdQkpbG.js → openai-conversation-dMpKrlIz.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CqtTgCjK.js → optimistic-project-sidebar-views-CsLNmroJ.js} +1 -1
- package/dist/client/assets/{order-monitor-day-xXzJoCon.js → order-monitor-day-BeogjpmD.js} +1 -1
- package/dist/client/assets/{organization-choice-ysHevYPz.js → organization-choice-C5kob2a7.js} +1 -1
- package/dist/client/assets/{orgs-DdXSSyy_.js → orgs-Bn9fR-f2.js} +1 -1
- package/dist/client/assets/{page-seo-form--GeHG2Y7.js → page-seo-form-DqF_sU74.js} +1 -1
- package/dist/client/assets/{pair-BRzx8V28.js → pair-DNyUd97Z.js} +1 -1
- package/dist/client/assets/{plan-ladder-DEcsqAHq.js → plan-ladder-B-jsbFUc.js} +1 -1
- package/dist/client/assets/{popover-DBhjt7xF.js → popover-DKuS7rj_.js} +1 -1
- package/dist/client/assets/{post-calendar-BBgMihhC.js → post-calendar-D7AfUXDz.js} +1 -1
- package/dist/client/assets/{post-editor-D6Q9G6HD.js → post-editor-BUSJVuOv.js} +1 -1
- package/dist/client/assets/{preview-content-B8gytc3A.js → preview-content-C1fg8Rkj.js} +1 -1
- package/dist/client/assets/{preview-dialog-Du8s313b.js → preview-dialog-jm_sgvCP.js} +1 -1
- package/dist/client/assets/{preview-panel-lv7hIcbh.js → preview-panel-ByLxd2-v.js} +1 -1
- package/dist/client/assets/{preview-tab-OUmlHA2w.js → preview-tab-Hc8_YOlH.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-Vi9M9XbY.js → product-picker-dialog-ikr9nEPC.js} +1 -1
- package/dist/client/assets/{profile-rjLUYrke.js → profile-B0Xgeesm.js} +1 -1
- package/dist/client/assets/{project-app-view-ChI-tWmY.js → project-app-view-DibjzS_V.js} +1 -1
- package/dist/client/assets/{project-feed-DSYFIf9h.js → project-feed-CPxyvMhp.js} +1 -1
- package/dist/client/assets/{project-icon-DEfb1G5F.js → project-icon-BNPkSSIB.js} +1 -1
- package/dist/client/assets/project-reports-CWeyVrA7.js +1 -0
- package/dist/client/assets/project-tasks-C57dLaKN.js +1 -0
- package/dist/client/assets/{projects-empty-state-Cebygjnd.js → projects-empty-state-2UgRmjf_.js} +1 -1
- package/dist/client/assets/{projects-CtrF1Zf3.js → projects-vrPkK48A.js} +1 -1
- package/dist/client/assets/{prompts-BVXX6Xql.js → prompts-glSWbace.js} +1 -1
- package/dist/client/assets/record-editor-BxnpYGe1.js +1 -0
- package/dist/client/assets/{redirect-editor-DIAc_1Im.js → redirect-editor-BIbQ4lKD.js} +1 -1
- package/dist/client/assets/{reports-Du7byUHW.js → reports-DZUngHxn.js} +1 -1
- package/dist/client/assets/reports-fqpbsHhd.js +1 -0
- package/dist/client/assets/{reports-onboarding-Ds-Ispiz.js → reports-onboarding-CCsukw7A.js} +1 -1
- package/dist/client/assets/{reports-tab-ChePuZZ4.js → reports-tab-CuOGGemm.js} +2 -2
- package/dist/client/assets/{repositories-BTxz09bM.js → repositories-B3heut4A.js} +1 -1
- package/dist/client/assets/{repository-binding-DTzReh06.js → repository-binding-BUEc0yyC.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CUpsn0UU.js → repository-import-picker-DBEvuBp6.js} +1 -1
- package/dist/client/assets/{repository-picker-liId9_zf.js → repository-picker-BEZceJiz.js} +1 -1
- package/dist/client/assets/{require-capability-CfedINkj.js → require-capability-lTdVHniQ.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CZd2SYeJ.js → required-auth-layout-CYJTCHWh.js} +1 -1
- package/dist/client/assets/{reset-password-qlKVFcE6.js → reset-password-DWN840sJ.js} +1 -1
- package/dist/client/assets/{resizable-D31F4eAS.js → resizable-zIfI7v-h.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DvCi-XX9.js → resolve-tab-icon-D1idyVau.js} +1 -1
- package/dist/client/assets/{review-settings-ZCONB0R7.js → review-settings-DnckGxr-.js} +1 -1
- package/dist/client/assets/{roles-C28vWKZO.js → roles-b2U7cPna.js} +1 -1
- package/dist/client/assets/{route-BNyTQhdC.js → route-Bbqk4YTs.js} +1 -1
- package/dist/client/assets/route-By6FmEOV.js +1 -0
- package/dist/client/assets/{route-Jtrcqjic.js → route-DgwYN7CY.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-BSXgRctA.js → sandbox-lifecycle-context--zY9hpPq.js} +1 -1
- package/dist/client/assets/{schema-D1LjZYZ_.js → schema-C4QWG9rb.js} +1 -1
- package/dist/client/assets/{schema-Bn8rqd_f.js → schema-DTpY3Z4p.js} +1 -1
- package/dist/client/assets/{scroll-area-Cvpjc0l0.js → scroll-area-CyM6eRpJ.js} +1 -1
- package/dist/client/assets/{search-input-CvytUoQu.js → search-input-DbNQWVkN.js} +1 -1
- package/dist/client/assets/{search-toggle-DWczizY_.js → search-toggle-DcH1KdV4.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-BOjfqnbQ.js → secret-ciphertext-CToa9K5K.js} +1 -1
- package/dist/client/assets/{secret-picker-DR8k8utG.js → secret-picker-oUFzxmQn.js} +1 -1
- package/dist/client/assets/{secrets-B26-rytL.js → secrets-flP5dfJS.js} +1 -1
- package/dist/client/assets/{sections-editor-DIXfWh89.js → sections-editor-CyjSI0yK.js} +1 -1
- package/dist/client/assets/{select-B9xwWJY1.js → select-DIUcSElZ.js} +1 -1
- package/dist/client/assets/{select-model-BISIL0Kz.js → select-model-DUCGDCaa.js} +1 -1
- package/dist/client/assets/{seo-editor-BlwDgWbu.js → seo-editor-Cd84ocfq.js} +1 -1
- package/dist/client/assets/{separator-fhIOQ41X.js → separator-QKwjnGro.js} +1 -1
- package/dist/client/assets/{settings-tab-msJQpCfG.js → settings-tab-CHrVfm_h.js} +1 -1
- package/dist/client/assets/{sheet-Rjoe19XZ.js → sheet-CKqCPJFh.js} +1 -1
- package/dist/client/assets/{shell-layout-fqXaSGsn.js → shell-layout-umzirYqO.js} +1 -1
- package/dist/client/assets/site-editor-dnVJU_MN.js +1 -0
- package/dist/client/assets/{site-editor-toast-CKw1dZ19.js → site-editor-toast-DQR6XmSw.js} +1 -1
- package/dist/client/assets/{skills-C7DkipJu.js → skills-DQVZvqrY.js} +1 -1
- package/dist/client/assets/{slider-CHDMj7-G.js → slider-CAkeLbmT.js} +1 -1
- package/dist/client/assets/{sortable.esm-Dys0-jaI.js → sortable.esm-BqqbBqQJ.js} +1 -1
- package/dist/client/assets/{sso-cg0TfFU1.js → sso-CBzft4Zg.js} +1 -1
- package/dist/client/assets/{suggestion-DpmKDRpP.js → suggestion-CRCyDex3.js} +1 -1
- package/dist/client/assets/{switch-Dyv9YUWT.js → switch-9BBBlmaJ.js} +1 -1
- package/dist/client/assets/{symbol-BK6V8ZzP.js → symbol-BzsygG7E.js} +1 -1
- package/dist/client/assets/{synced-repos-DpQU86pc.js → synced-repos-DaBEYy3R.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-KVUtF-xE.js → tab-icon-glyph-CBvj9v3K.js} +1 -1
- package/dist/client/assets/{table-9i0Xw8tZ.js → table-AigwUVoI.js} +1 -1
- package/dist/client/assets/{tabs-h2gBBRzw.js → tabs-DnuH_x9v.js} +1 -1
- package/dist/client/assets/{task-board-AWLuhkrp.js → task-board-ClOSK7kB.js} +1 -1
- package/dist/client/assets/{task-route-BfCPNuEb.js → task-route-BV5m50h1.js} +1 -1
- package/dist/client/assets/{task-status-C0Jba3Xb.js → task-status-BdGIYuxm.js} +1 -1
- package/dist/client/assets/taskboard-analytics-BLupvmpw.js +1 -0
- package/dist/client/assets/{tasks-B3wC6JY6.js → tasks-B-2twkZK.js} +1 -1
- package/dist/client/assets/tasks-BkiBCYTU.js +1 -0
- package/dist/client/assets/{textarea-7aD59y1C.js → textarea-FdXd1c7Z.js} +1 -1
- package/dist/client/assets/{thread-analytics-B5RrlZAS.js → thread-analytics-CmEqFpEL.js} +1 -1
- package/dist/client/assets/{thread-intent-YA4iB4rg.js → thread-intent-Df5_Y-L1.js} +1 -1
- package/dist/client/assets/{thread-route-BgOTv3tU.js → thread-route-CiggfjHs.js} +1 -1
- package/dist/client/assets/{thread-route-B90y2Ttt.js → thread-route-Cq57xHlG.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DBmCCiJG.js → thread-sheet-body-BeS9Q6uj.js} +1 -1
- package/dist/client/assets/{time-range-picker-CWWLy_3R.js → time-range-picker-BXOLhd_5.js} +1 -1
- package/dist/client/assets/{toggle-group-DRNkGgUT.js → toggle-group-DMF-ladf.js} +1 -1
- package/dist/client/assets/{tool-namespace-C83WlsNL.js → tool-namespace-BWHod2KF.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Bt6CBlAy.js → toolbar-icon-button-y1ZX2-oM.js} +1 -1
- package/dist/client/assets/{tooltip-Djfj4yvo.js → tooltip-BrFxnH_I.js} +1 -1
- package/dist/client/assets/{tooltipContext-B0xkDjO4.js → tooltipContext-HGN2C4ko.js} +1 -1
- package/dist/client/assets/{track-aEjANf-j.js → track-gUXLKKjN.js} +1 -1
- package/dist/client/assets/{types-DSQN8Y9X.js → types-BNu6sAFK.js} +1 -1
- package/dist/client/assets/{url-slug-DNuO5vGK.js → url-slug-B_Sfn9Hx.js} +1 -1
- package/dist/client/assets/{usage-stats-BXR_QJg-.js → usage-stats-B8UsAyCY.js} +7 -7
- package/dist/client/assets/{use-ai-providers-CS760siL.js → use-ai-providers-CgKk8Bof.js} +1 -1
- package/dist/client/assets/{use-app-takeover-BiROkfIG.js → use-app-takeover-BYCuIBOj.js} +1 -1
- package/dist/client/assets/{use-automations-C8HNZgvV.js → use-automations-DIYNxvx6.js} +1 -1
- package/dist/client/assets/{use-autosave-DiQgKPVz.js → use-autosave-9hbG8Qi7.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-CkUks0CI.js → use-chat-navigation-C5uv1W_N.js} +1 -1
- package/dist/client/assets/{use-clock-tick-D9Y3YKA4.js → use-clock-tick-Cl0twnOO.js} +1 -1
- package/dist/client/assets/{use-connect-companion-Dh2GSI2w.js → use-connect-companion-DM2Zvpum.js} +1 -1
- package/dist/client/assets/{use-connection-CYm-Vxmx.js → use-connection-CCoffCKk.js} +1 -1
- package/dist/client/assets/{use-copy-C0ICuN7j.js → use-copy-QYBjN8uM.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-iJVLGT10.js → use-create-virtual-mcp-BlSdmPtL.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BEXRTRYo.js → use-date-fns-locale-D-cCk47o.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Z24y5bHD.js → use-debounced-autosave-DG2Ul815.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Tstd89O2.js → use-debounced-value-CIJhzIZa.js} +1 -1
- package/dist/client/assets/{use-deco-credits-a2fVSYw4.js → use-deco-credits-Da_8oB_g.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-B59p52EB.js → use-decopilot-events-CpcMn2JW.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CjcSXnbW.js → use-delete-connection-BcTV-UiO.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-gB6Ubqa0.js → use-deployment-admin-BCmXPmhb.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-DakHhVfG.js → use-ensure-project-folder-UOCA2oKz.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BElMJQru.js → use-fast-preview-draft-url-BUi_N-gA.js} +1 -1
- package/dist/client/assets/{use-file-configs-CMXUzCw9.js → use-file-configs-B2dFftph.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Bkeb3Emc.js → use-infinite-scroll-DfZNxz6_.js} +1 -1
- package/dist/client/assets/{use-join-requests-Bt9kCP2g.js → use-join-requests-c4DkDaH2.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DiN00eBp.js → use-main-panel-tabs-BQESAcIb.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-C8SSMyOQ.js → use-mcp-auth-status-DAoTpaVj.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DXWvBBzU.js → use-mcp-client-qpFPI59t.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-D5_raFI0.js → use-mcp-prompts-6BapySt1.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BA7tqEjQ.js → use-mcp-tools-CuRHQgSk.js} +1 -1
- package/dist/client/assets/{use-members-CBJHrFbr.js → use-members-x6hiD6J9.js} +1 -1
- package/dist/client/assets/{use-mobile-DVlrjJnR.js → use-mobile-DwKYFatX.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-zweZgwVY.js → use-navigate-to-agent-CQU3CNoo.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-CZCPBR61.js → use-open-billing-url-Bir5gU8r.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-QUHxqp7u.js → use-org-auth-client-CX6gP2t_.js} +1 -1
- package/dist/client/assets/{use-org-fs-ZG2jF1ev.js → use-org-fs-BIFqieAC.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BkNHAu91.js → use-org-repo-syncs-ByQNJ_ao.js} +1 -1
- package/dist/client/assets/{use-org-sso-BY7vua13.js → use-org-sso-DAy6nZlG.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BX0bRQ46.js → use-organization-roles-BA00LlJ2.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DrbkHsVi.js → use-organization-settings-Co3AQQQG.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CgLeC7oT.js → use-panel-navigate-CflEUYA8.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-FuvDcd3j.js → use-project-native-view-presence-DynS3DmZ.js} +1 -1
- package/dist/client/assets/{use-project-scope-Mbz61u0U.js → use-project-scope-CwUQ5QwH.js} +1 -1
- package/dist/client/assets/{use-recent-apps-ByE0IPMO.js → use-recent-apps-DbfvkNQl.js} +1 -1
- package/dist/client/assets/{use-releases-Cn9YGFYD.js → use-releases-B8RuK8i6.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CNH6bT_s.js → use-reports-diagnostic-DMwD1wiX.js} +1 -1
- package/dist/client/assets/{use-secrets-BdA07xp7.js → use-secrets-11x2wAJE.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BGUJwyF6.js → use-section-preview-base-Bk6ZHXAE.js} +1 -1
- package/dist/client/assets/{use-tags-RK2ALcRH.js → use-tags-C7rxIzGG.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-Lm2x_Ld6.js → use-task-board-analytics-bcUHswPE.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CwaYpBZ3.js → use-task-board-events-Dz_fBEBD.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-DuoDCPJm.js → use-task-board-item-prs-BN4D7QH_.js} +1 -1
- package/dist/client/assets/{use-task-board-items-C9iR5m8M.js → use-task-board-items-D6D2spcR.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BOySMSW9.js → use-task-metadata-Dtac_1QR.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-B-6hcr7K.js → use-thread-analytics-BhWoc5BJ.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-Bnh-FZdC.js → use-thread-outputs-EnAjmWyX.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D7nQ3Wng.js +1 -0
- package/dist/client/assets/{useQueries-BWCAInNJ.js → useQueries-Du_HM8Yq.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DTBri9dP.js +1 -0
- package/dist/client/assets/{users-BSQM-sro.js → users-T8fXbFXn.js} +1 -1
- package/dist/client/assets/{utils-aJ0jY1W-.js → utils-Csekt-G0.js} +1 -1
- package/dist/client/assets/{variant-calendar-CHK_OU2h.js → variant-calendar-OiHQ7Mir.js} +1 -1
- package/dist/client/assets/{variant-draft-pointer-1dv3zT6b.js → variant-draft-pointer-DSxIlPsH.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C14-toNe.js → view-mode-toggle-5n_MoR8B.js} +1 -1
- package/dist/client/assets/{virtual-mcp-QuhvrKMt.js → virtual-mcp-D75OnL61.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CWMRkqIp.js → watch-sse-pool-BBHGP3-G.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +388 -388
- package/package.json +1 -1
- package/dist/client/assets/agent-app-6dfYkztJ.js +0 -1
- package/dist/client/assets/agent-deck-B3gVo2Qj.js +0 -1
- package/dist/client/assets/agent-library-CrxCYORH.js +0 -1
- package/dist/client/assets/agent-library-file-DAsbJq5U.js +0 -1
- package/dist/client/assets/agent-settings-BZ88TB1O.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Df5lx3om.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BOiOZFoZ.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DO0UOaFC.js +0 -1
- package/dist/client/assets/agent-view-BgXKt_Jw.js +0 -1
- package/dist/client/assets/api-keys-Br0s22Rf.js +0 -1
- package/dist/client/assets/cms-settings-editor-CK28ljtG.js +0 -1
- package/dist/client/assets/flat-project-D1WKpn7D.js +0 -1
- package/dist/client/assets/library-BCn7yrRw.js +0 -1
- package/dist/client/assets/project-reports-CSI1uE8Z.js +0 -1
- package/dist/client/assets/project-tasks-DxRsaOWu.js +0 -1
- package/dist/client/assets/record-editor-CCo2C6Wx.js +0 -1
- package/dist/client/assets/reports-MoZoLp_a.js +0 -1
- package/dist/client/assets/route-dcUraDhg.js +0 -1
- package/dist/client/assets/site-editor-DZgKAtXf.js +0 -1
- package/dist/client/assets/taskboard-analytics-DOVTfSds.js +0 -1
- package/dist/client/assets/tasks-DhO2f9o0.js +0 -1
- package/dist/client/assets/useInfiniteQuery-9rJQjSuN.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-xLkb2FEg.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,bA as A,bw as ce,j as b,bC as _,bP as ae,dm as O,bD as C,bJ as P,bE as ie,c as F,l as $}from"./index-Bu9BjZrq.js";import{c as de}from"./index-BdQq_4o_.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),J=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),[T,Y]=d.useState(null),[x,L]=d.useState(0),[M,D]=d.useState(0),[j,y]=d.useState(!1),[N,W]=d.useState(!1),v=A(e,E=>c(E)),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:j,onScrollbarXEnabledChange:y,scrollbarY:T,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:D,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}})})});J.displayName=U;var G="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(G,o),a=d.useRef(null),c=A(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=G;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 R(o.viewport,c),R(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=k(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=k(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=A(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=A(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,T]=d.useState(null),Y=A(e,v=>T(v)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,D=l.content-l.viewport,j=P(i),y=P(c),N=X(h,10);function W(v){if(x.current){const p=v.clientX-x.current.left,E=v.clientY-x.current.top;u({x:p,y:E})}}return d.useEffect(()=>{const v=p=>{const E=p.target;w?.contains(E)&&j(p,D)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,D,j]),d.useEffect(y,[l,y]),R(w,N),R(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=A(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,T=h.clientY-S.top;s.onThumbPointerDown({x:w,y:T})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=H;var B="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(B,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=B;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(B,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return R(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),R(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 k(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 R(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=J,Ce=K,Ee=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(Re,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Ee,{}),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 Re(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,bA as A,bw as ce,j as b,bC as _,bP as ae,dm as O,bD as C,bJ as P,bE as ie,c as F,l as $}from"./index-nyu5TMcf.js";import{c as de}from"./index-BdQq_4o_.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),J=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),[T,Y]=d.useState(null),[x,L]=d.useState(0),[M,D]=d.useState(0),[j,y]=d.useState(!1),[N,W]=d.useState(!1),v=A(e,E=>c(E)),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:j,onScrollbarXEnabledChange:y,scrollbarY:T,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:D,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}})})});J.displayName=U;var G="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(G,o),a=d.useRef(null),c=A(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=G;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 R(o.viewport,c),R(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=k(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=k(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=A(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=A(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,T]=d.useState(null),Y=A(e,v=>T(v)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,D=l.content-l.viewport,j=P(i),y=P(c),N=X(h,10);function W(v){if(x.current){const p=v.clientX-x.current.left,E=v.clientY-x.current.top;u({x:p,y:E})}}return d.useEffect(()=>{const v=p=>{const E=p.target;w?.contains(E)&&j(p,D)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,D,j]),d.useEffect(y,[l,y]),R(w,N),R(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=A(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,T=h.clientY-S.top;s.onThumbPointerDown({x:w,y:T})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=H;var B="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(B,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=B;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(B,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return R(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),R(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 k(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 R(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=J,Ce=K,Ee=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(Re,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Ee,{}),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 Re(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-nyu5TMcf.js";import{i as v}from"./SearchMd-BnxkTIHs.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,aX as M}from"./index-
|
|
1
|
+
import{c as K,r as C,l as B,j as a,aX as M}from"./index-nyu5TMcf.js";import{i as I}from"./SearchMd-BnxkTIHs.js";import{I as O}from"./icon-button-DMdPv4af.js";function A(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 c;e[11]!==t?(c=()=>{z(!1),t===""&&p(!1)},e[11]=t,e[12]=c):c=e[12];let i;e[13]!==s?(i=l=>{l.key==="Escape"&&s("")},e[13]=s,e[14]=i):i=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]!==c||e[19]!==i||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:c,onKeyDown:i,placeholder:d,"aria-label":d,className:f}),e[17]=d,e[18]=c,e[19]=i,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{A as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as fe,b as Oe,j as S,r as et,ah as Pt,B as jt,l as wt,a5 as xt}from"./index-Bu9BjZrq.js";import{a as $t}from"./Copy01-DHwdjF9k.js";import{a as Ct,b as Lt,A as Mt}from"./alert-CwC4mTxQ.js";import{u as Bt}from"./use-copy-C0ICuN7j.js";const J="https://docs.decocms.com/storefront/blocks",Vt={quickstart:`${J}/next/quickstart`,siteEditor:`${J}/next/site-editor#edit-on-your-machine`,serve:`${J}/next/cli#deco-serve`,schema:`${J}/next/cli#deco-schema-and-deco-content`,troubleshooting:`${J}/next/troubleshooting#site-editor`};function Qr(e){const t=fe.c(4),{text:r}=e;let n;t[0]!==r?(n=r.split("`").map(Dt),t[0]=r,t[1]=n):n=t[1];let s;return t[2]!==n?(s=S.jsx(S.Fragment,{children:n}),t[2]=n,t[3]=s):s=t[3],s}function Dt(e,t){return t%2===1?S.jsx("code",{className:"whitespace-nowrap rounded bg-muted px-1 py-px font-mono text-[0.85em] text-foreground",children:e},t):S.jsx(et.Fragment,{children:e},t)}function Xr(e){const t=fe.c(31),{command:r}=e,n=Oe(),{handleCopy:s,copied:i}=Bt();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=S.jsxs("span",{"aria-hidden":"true",className:"select-none text-muted-foreground",children:["$"," "]}),t[0]=o):o=t[0];let l;t[1]!==r?(l=r.split(" ").map(Ut),t[1]=r,t[2]=l):l=t[2];let u;t[3]!==l?(u=S.jsxs("code",{className:"min-w-0 flex-1 overflow-x-auto py-1.5 font-mono text-xs leading-5 text-foreground",children:[o,l]}),t[3]=l,t[4]=u):u=t[4];let _;t[5]!==n?(_=n("decoServe.guide.copy"),t[5]=n,t[6]=_):_=t[6];let h;t[7]!==r||t[8]!==s?(h=()=>{s(r).catch(It)},t[7]=r,t[8]=s,t[9]=h):h=t[9];let E;t[10]!==i?(E=i?S.jsx(Pt,{className:"text-success"}):S.jsx($t,{}),t[10]=i,t[11]=E):E=t[11];let P;t[12]!==i||t[13]!==n?(P=n(i?"decoServe.guide.copied":"decoServe.guide.copyShort"),t[12]=i,t[13]=n,t[14]=P):P=t[14];let $;t[15]!==P?($=S.jsx("span",{"aria-hidden":"true",children:P}),t[15]=P,t[16]=$):$=t[16];let U;t[17]!==_||t[18]!==h||t[19]!==E||t[20]!==$?(U=S.jsxs(jt,{type:"button",variant:"ghost",size:"sm",className:"shrink-0 self-start","aria-label":_,onClick:h,children:[E,$]}),t[17]=_,t[18]=h,t[19]=E,t[20]=$,t[21]=U):U=t[21];let j;t[22]!==i||t[23]!==n?(j=i?n("decoServe.guide.copiedAnnouncement"):"",t[22]=i,t[23]=n,t[24]=j):j=t[24];let F;t[25]!==j?(F=S.jsx("span",{className:"sr-only","aria-live":"polite",children:j}),t[25]=j,t[26]=F):F=t[26];let N;return t[27]!==F||t[28]!==u||t[29]!==U?(N=S.jsxs("div",{className:"flex items-center gap-1 rounded-lg border border-border bg-muted/60 py-1 pr-1 pl-3",children:[u,U,F]}),t[27]=F,t[28]=u,t[29]=U,t[30]=N):N=t[30],N}function It(){}function Ut(e,t){return S.jsxs(et.Fragment,{children:[t>0&&" ",S.jsx("span",{className:"whitespace-nowrap",children:e})]},t)}const Ft={quickstart:"decoServe.docs.quickstart",siteEditor:"decoServe.docs.siteEditor",serve:"decoServe.docs.serve",schema:"decoServe.docs.schema",troubleshooting:"decoServe.docs.troubleshooting"};function Zr(e){const t=fe.c(20),{links:r,className:n}=e,s=Oe();let i;t[0]!==s?(i=s("decoServe.docs.heading"),t[0]=s,t[1]=i):i=t[1];let o;t[2]!==n?(o=wt("flex flex-col gap-2 text-sm",n),t[2]=n,t[3]=o):o=t[3];let l;t[4]!==s?(l=s("decoServe.docs.heading"),t[4]=s,t[5]=l):l=t[5];let u;t[6]!==l?(u=S.jsx("span",{className:"text-muted-foreground",children:l}),t[6]=l,t[7]=u):u=t[7];let _;if(t[8]!==r||t[9]!==s){let P;t[11]!==s?(P=$=>S.jsxs("a",{href:Vt[$],target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-foreground underline-offset-4 hover:underline focus-visible:underline",children:[s(Ft[$]),S.jsx(xt,{"aria-hidden":"true",className:"size-3.5"}),S.jsx("span",{className:"sr-only",children:s("decoServe.docs.newTab")})]},$),t[11]=s,t[12]=P):P=t[12],_=r.map(P),t[8]=r,t[9]=s,t[10]=_}else _=t[10];let h;t[13]!==_?(h=S.jsx("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1",children:_}),t[13]=_,t[14]=h):h=t[14];let E;return t[15]!==i||t[16]!==o||t[17]!==u||t[18]!==h?(E=S.jsxs("nav",{"aria-label":i,className:o,children:[u,h]}),t[15]=i,t[16]=o,t[17]=u,t[18]=h,t[19]=E):E=t[19],E}function Jr(e,t,r){switch(t.reason){case"not-answering":return{title:e("decoServe.state.notAnswering.title"),body:e("decoServe.state.notAnswering.short",{host:r})};case"outdated":return{title:e("decoServe.state.outdated.title"),body:e("decoServe.state.outdated.body",{host:r})};case"version-mismatch":return{title:e("decoServe.state.versionMismatch.title"),body:e("decoServe.state.versionMismatch.body",{host:r})};case"not-deco-serve":return{title:e("decoServe.state.notDecoServe.title",{host:r}),body:e("decoServe.state.notDecoServe.body",{host:r})};case"not-v8":return{title:e("decoServe.state.notV8.title"),body:e("decoServe.state.notV8.body",{host:r})};case"error":return{title:e("decoServe.state.error.title"),body:e("decoServe.state.error.body",{detail:t.detail??""})}}}function en(){const e=fe.c(11),t=Oe();let r;e[0]!==t?(r=t("decoServe.lna.deniedTitle"),e[0]=t,e[1]=r):r=e[1];let n;e[2]!==r?(n=S.jsx(Ct,{className:"line-clamp-none",children:r}),e[2]=r,e[3]=n):n=e[3];let s;e[4]!==t?(s=t("decoServe.lna.deniedBody"),e[4]=t,e[5]=s):s=e[5];let i;e[6]!==s?(i=S.jsx(Lt,{children:s}),e[6]=s,e[7]=i):i=e[7];let o;return e[8]!==n||e[9]!==i?(o=S.jsx(Mt,{variant:"destructive",children:S.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[n,i]})}),e[8]=n,e[9]=i,e[10]=o):o=e[10],o}const tn="website/loaders/secret.ts",rn=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],Nt=/^(?:[0-9a-f]{2})*$/i;function Yt(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e.__resolveType;return typeof t=="string"&&(t.endsWith("/secret.ts")||t.includes("loaders/secret"))}function zt(e){return typeof e=="string"&&Nt.test(e)}class Wt extends Error{constructor(t){super(`Secret at "${t}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=t,this.name="PlaintextSecretError"}path}function He(e,t=""){if(Array.isArray(e))return e.map((n,s)=>He(n,`${t}/${s}`));if(!e||typeof e!="object")return e;const r=Object.entries(e);if(Yt(e)){const n=e.encrypted;if(n!==void 0&&!zt(n))throw new Wt(t||"/");return Object.fromEntries(r.filter(([s])=>s!=="value"))}return Object.fromEntries(r.map(([n,s])=>[n,He(s,`${t}/${n}`)]))}function Ge(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function qt(e){return e.includes("@")}function Qe(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function nn(e,t){if(e===t)return!0;const r=Qe(e);return r?t===r||Qe(t)===r:!1}function re(e,t){const r=e.manifest?.blocks??{};for(const[n,s]of Object.entries(r))if(t in s)return n;return null}function sn(e,t){return re(e,t)!==null}function ke(e,t){const r=re(e,t);return r!==null&&r.includes("sections")}function Kt(e,t){const r=re(e,t);return r!==null&&r.includes("apps")}function Ht(e,t){const r=re(e,t);return r!==null&&r.includes("matchers")}function pe(e,t){return!(!e||t&&re(t,e)!==null||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function Pe(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}const on="oklch(0.7278 0.151 289)",Gt="website/matchers/always.ts",tt="website/matchers/never.ts",ye="website/flags/multivariate.ts",Q="website/flags/multivariate/section.ts";function je(){return{__resolveType:Gt}}function H(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?|html?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())||e}const Qt=12,Xt=8,he=32,Zt=40,Jt="__SECTION_REF__";function Ae(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function Xe(e,t){let r=e.items;if(!r)return!1;if(typeof r.$ref=="string"&&(r=t(r.$ref)),Array.isArray(r.anyOf)||Array.isArray(r.oneOf))return!0;const s=r.properties?.__resolveType?.enum;return Array.isArray(s)&&typeof s[0]=="string"}const er="VideoWidget";function K(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function rt(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function we(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function xe(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function nt(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function $e(e,t){const r=t.manifest?.blocks??{};for(const l of Object.values(r))if(l[e])return l[e];const n=we(e)??xe(e);if(n){for(const l of nt(n.vendor,n.app))for(const u of Object.values(r))if(u[l])return u[l]}const s=rt(e);for(const l of Object.values(r))if(l[s])return l[s];const i=t.schema??{};return(i.$defs??i.definitions??{})[s]?{$ref:`#/definitions/${s}`}:{}}function st(e,t){if(Kt(e,t))return!0;const r=we(t)??xe(t);if(!r)return!1;const n=e.manifest?.blocks?.apps??{};if(nt(r.vendor,r.app).some(o=>o in n))return!0;const s=rt(t),i=e.schema?.$defs??e.schema?.definitions??{};return s in i}function tr(e){return e==="site/apps/site.ts"?!1:we(e)!==null||xe(e)!==null}function it(e,t){return ot(t,{resolveType:e})}function an(e,t){return ot(t,{ref:e})}function ot(e,t){const r=e.schema??{},n="resolveType"in t?$e(t.resolveType,e):{},s=r.$defs??r.definitions??{},i=r.root??{},o=a=>{if(a.startsWith("#/root/")){const c=a.slice(7);return i[c]??{}}const f=a.split("/").pop()??"",m=s[f];return m||(f===Jt?i.sections??{}:{})};let l;typeof n.$ref=="string"?l=o(n.$ref):Object.keys(n).length>0?l=n:l=r;const u=a=>typeof a.$ref=="string"?o(a.$ref):a,_=a=>{const m=u(a).properties?.type;if(m){if(typeof m.const=="string")return m.const;if(typeof m.default=="string")return m.default;if(Array.isArray(m.enum)&&typeof m.enum[0]=="string")return m.enum[0]}},h=(a,f)=>{const m=u(a);return typeof m.title=="string"&&!m.title.startsWith("#")?m.title:f},E=(a,f=new Set)=>{if(typeof a.$ref!="string"||a.properties||a.anyOf||a.allOf||a.oneOf||a.type)return a;const m=a.$ref.split("/").pop()??"";return!m||f.has(m)?a:E(o(a.$ref),new Set([...f,m]))},P=a=>{const f=a.properties?.__resolveType?.enum;return Array.isArray(f)&&typeof f[0]=="string"?f[0]:void 0},$=a=>P(a)!==void 0,U=(a,f=new Set)=>{if(typeof a.$ref!="string")return[];const m=a.$ref.split("/").pop()??"";if(!m||f.has(m))return[];const c=o(a.$ref),w=c.anyOf??c.oneOf;if(!Array.isArray(w))return[];const k=new Set([...f,m]);return w.flatMap(x=>$(x)?[x]:U(x,k))},j=a=>{const f=a.hide;return f===!0||f==="true"},F=a=>typeof a=="string"&&(a.includes("://")||!/\s/.test(a)&&(a.includes("|")||a.includes("&")||a.includes("@"))),N=(a,f=new Set,m=0)=>{if(m>Qt)return{};if(typeof a.$ref=="string"){const w=a.$ref.split("/").pop()??"";return f.has(w)?{}:N(o(a.$ref),new Set([...f,w]),m+1)}let c={};a.properties&&typeof a.properties=="object"&&(c={...c,...a.properties}),Array.isArray(a.required)&&(c.__required=[...K(c.__required),...K(a.required)]);for(const w of["allOf","anyOf","oneOf"]){const k=a[w];if(Array.isArray(k))for(const x of k){const D=K(c.__required),Y=N(x,f,m+1);c={...c,...Y};const C=w==="allOf"?[...D,...K(Y.__required)]:D;C.length>0?c.__required=C:delete c.__required}}return c},V=(a,f=0,m=new Set)=>{let c=a,w;if(typeof a.$ref=="string"){c=o(a.$ref);const O=a.$ref.split("/").pop()??"";w=O,O===er&&!c.format&&(c={...c,format:"video-uri"})}c=E(c);const k=w!==void 0&&m.has(w),x=w!==void 0?new Set([...m,w]):m,D=(O,p,A,T=!0)=>!k&&(!T||A<=Zt)&&p<Xt?V(O,p,x):void 0;let Y;{const O=c.anyOf??c.oneOf;if(Array.isArray(O)){const p=O.filter(T=>!(T.type==="null"||T.type===null)),A=T=>{if(typeof T.const=="string"||typeof T.const=="number")return T.const;if(Array.isArray(T.enum)&&T.enum.length===1&&(typeof T.enum[0]=="string"||typeof T.enum[0]=="number"))return T.enum[0]};p.length>0&&p.every(T=>A(T)!==void 0)&&(Y=p.map(T=>A(T)))}}let C,X,Ue=!1;if(c.type)C=Array.isArray(c.type)?String(c.type.find(O=>O!=="null")??c.type[0]):String(c.type);else if(c.anyOf||c.oneOf){const p=(c.anyOf??c.oneOf).filter(A=>!(A.type==="null"||A.type===null));if(p.length===0)C="null";else if(p.length===1){const A=p[0];X=A,C=A.type?Array.isArray(A.type)?String(A.type[0]):String(A.type):typeof A.$ref=="string"?"object":"string"}else{if(Y){const y=d=>typeof a[d]=="string"?a[d]:typeof c[d]=="string"?c[d]:void 0;return{type:"string",title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,enum:Y,format:y("format"),options:y("options")}}const A=p.filter($),T=p.map(y=>E(y)).find(Ae),W=p.filter(y=>!Ae(E(y))).every(y=>typeof y.$ref=="string"||A.includes(y)),ve=A.some(y=>{const d=y.properties?.__resolveType?.enum;return Array.isArray(d)&&d[0]===ye}),Ye=()=>{const y=new Map;for(const R of[...A,...p.filter(v=>!A.includes(v)).flatMap(v=>U(v))]){const v=P(R);v&&!y.has(v)&&y.set(v,R)}const d=[...y].map(([R,v])=>({resolveType:R,title:typeof v.title=="string"?v.title:H(R),description:typeof v.description=="string"?v.description:void 0,schema:D(v,f+1,y.size)})),g=[];for(const R of p){if(A.includes(R)||typeof R.$ref!="string")continue;const v=o(R.$ref);let B;const ie=v.properties?.__resolveType;if(Array.isArray(ie?.enum)&&typeof ie.enum[0]=="string"&&(B=ie.enum[0]),!B&&Array.isArray(v.allOf))for(const Z of v.allOf){const _e=Z.properties?.__resolveType?.enum;if(Array.isArray(_e)&&typeof _e[0]=="string"){B=_e[0];break}}B&&g.push({resolveType:B,title:typeof v.title=="string"&&!v.title.startsWith("#")?v.title:H(B),description:typeof v.description=="string"?v.description:void 0,schema:D(v,f+1,p.length)})}const b=new Set(d.map(R=>R.resolveType)),L=[...d,...g.filter(R=>!b.has(R.resolveType))],M=p.filter(R=>!A.includes(R)),q=M.length===1&&!k?V(M[0],f+1,x):void 0;return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:L,plainSchema:q,hidden:j(c)||j(a)?!0:void 0}};if(T){if(!Xe(T,o)&&p.length>1&&W){const d=V(T,f+1,x),g=typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:d.title,b=typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:d.description;return{...d,type:"array",title:g,description:b,loaderRef:A.length>0?{...Ye(),title:g,description:b}:void 0}}if(ve){const d=V(T,f+1,x);return{...d,type:"array",title:typeof c.title=="string"?c.title:d.title,description:typeof c.description=="string"?c.description:d.description}}}if(A.length>0)return Ye();const ze=y=>{const d=u(y);if(typeof d.title=="string"&&Ge(d.title))return!0;const g=d.properties?.__resolveType?.enum;if(Array.isArray(g)&&typeof g[0]=="string")return!0;if(Array.isArray(d.allOf))for(const b of d.allOf){const L=b.properties?.__resolveType?.enum;if(Array.isArray(L)&&typeof L[0]=="string")return!0}return!1},We=p.map(y=>_(y));if(p.length>1&&We.every(y=>typeof y=="string")&&!p.some(ze)){const y=p.map((d,g)=>{const b=u(d),L=We[g];return{resolveType:L,title:h(d,L),description:typeof b.description=="string"?b.description:void 0,discriminatorValue:L,schema:D(b,f+1,p.length,!1)}});return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,discriminatorKey:"type",anyOfRefs:y,hidden:j(c)||j(a)?!0:void 0}}const qe=y=>{if(ze(y))return!1;const d=u(y);return d.type==="object"||!!d.properties},kt=y=>{const d=E(y);return Ae(d)?!Xe(d,o):!1},Ke=f<he&&p.every(y=>qe(y)||kt(y))&&p.some(qe);if(p.every(y=>typeof y.$ref=="string")&&!Ke){const y=[];for(const d of p){const g=o(d.$ref);let b,L,M=!1;if(typeof g.title=="string"){const v=Ge(g.title);v&&(b=v.blockId,L=v.blockId)}if(!b&&Array.isArray(g.allOf))for(const v of g.allOf){const Z=((v.properties??{}).__resolveType??{}).enum;if(Array.isArray(Z)&&typeof Z[0]=="string"){b=Z[0],M=!0;break}}if(!b){const B=g.properties?.__resolveType?.enum;Array.isArray(B)&&typeof B[0]=="string"&&(b=B[0],M=!0)}b||(b=d.$ref.split("/").pop()??"");const q=b.includes("/")||M&&!qt(b),R=q?void 0:_(d);!R&&!q||M&&b==="lazy"||y.push({resolveType:R??b,title:L??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:H(b)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:R,schema:D(g,f+1,p.length)})}return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:y,hidden:j(c)||j(a)?!0:void 0}}if(Ke){const y=g=>{if(typeof g.const=="string"||typeof g.const=="number"||typeof g.const=="boolean")return g.const;if(Array.isArray(g.enum)&&g.enum.length===1&&(typeof g.enum[0]=="string"||typeof g.enum[0]=="number"||typeof g.enum[0]=="boolean"))return g.enum[0]},d=p.map((g,b)=>{const L=u(g).properties??{},M={};for(const[q,R]of Object.entries(L)){const v=y(R);v!==void 0&&(M[q]=v)}return{title:h(g,`Option ${b+1}`),schema:V(g,f+1),discriminators:Object.keys(M).length?M:void 0}});return{type:"inline-union",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,inlineUnionBranches:d,hidden:j(c)||j(a)?!0:void 0}}C="object"}}else c.allOf?(C="object",Ue=F(c.title)):typeof a.$ref=="string"&&(C="object");let se,Fe,Ne=!1;if(f<he&&!k){const O=N(c),p=O.__resolveType?.enum;Ne=Array.isArray(p)&&p.length===1&&p[0]==="lazy";const A=K(O.__required);A.length>0&&(Fe=A);const T=Object.entries(O).filter(([W])=>!W.startsWith("__")&&W!=="@type");if(T.length>0){se={};for(const[W,ve]of T)se[W]=V(ve,f+1,x)}}let me;if((C==="array"||c.type==="array")&&f<he&&!k){const O=c.items;if(O){me=V(O,f+1,x);const p=u(O);typeof p.title=="string"&&p.title.includes("{{")&&(me.titleBy=p.title)}}const z=O=>{const p=X?.[O];return typeof p=="string"?p:void 0},Ot=()=>{if("default"in a)return a.default;if("default"in c)return c.default;if(X&&"default"in X)return X.default};return{type:C??"string",title:typeof a.title=="string"?a.title:!Ue&&typeof c.title=="string"?c.title:z("title"),description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:z("description"),default:Ot(),enum:Array.isArray(c.enum)?c.enum:Y??void 0,format:typeof a.format=="string"?a.format:typeof c.format=="string"?c.format:z("format"),properties:se,required:Fe,items:me,lazy:Ne&&se?.value?!0:void 0,recursiveRef:k&&typeof a.$ref=="string"&&(C==="object"||C==="array"||c.type==="array")?a.$ref:void 0,hidden:j(c)||j(a)?!0:void 0,titleBy:typeof c.titleBy=="string"?c.titleBy:z("titleBy"),image:typeof c.image=="string"?c.image:z("image"),options:typeof a.options=="string"?a.options:typeof c.options=="string"?c.options:z("options")}};if("ref"in t)return V({$ref:t.ref});const Ve=l.properties??{},Rt=Object.keys(Ve).every(a=>a.startsWith("__"));if(Array.isArray(l.allOf)&&l.allOf.length===1&&Rt){const a=Ve.__resolveType,f=Array.isArray(a?.enum)&&typeof a.enum[0]=="string"?a.enum[0]:typeof a?.const=="string"?a.const:typeof a?.default=="string"?a.default:void 0;for(const m of l.allOf){const c=E(m);if(!(Array.isArray(c.anyOf)||Array.isArray(c.oneOf))||c.properties)continue;const k=V(c,0);if(k.type==="inline-union"&&k.inlineUnionBranches){const x=F(k.title);return{...k,title:x?void 0:k.title,inlineUnionBranches:f?k.inlineUnionBranches.map(D=>({...D,discriminators:{...D.discriminators??{},__resolveType:f}})):k.inlineUnionBranches}}}}const De=N(l),ge={};for(const[a,f]of Object.entries(De))a.startsWith("__")||a==="@type"||(ge[a]=V(f,0));if(Object.keys(ge).length===0)return null;const Ie=K(De.__required);return{type:"object",title:typeof l.title=="string"?l.title:void 0,properties:ge,required:Ie.length>0?Ie:void 0}}function cn(e,t){const r=t.schema??{},n=$e(e,t),s=r.$defs??r.definitions??{},i=typeof n.$ref=="string"?s[n.$ref.split("/").pop()??""]??{}:n,o=i.properties??{};if(Object.keys(o).some(_=>!_.startsWith("__")))return!1;if(i.additionalProperties===!0)return!0;const u=o.__resolveType;return!!u&&Array.isArray(u.enum)&&u.enum[0]===e}function ln(e){const t=n=>{switch(typeof n){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(n===null)return{type:"string"};if(Array.isArray(n))return{type:"array",items:t(n[0])};const s={};for(const[i,o]of Object.entries(n))i.startsWith("__")||(s[i]=t(o));return{type:"object",properties:s}}default:return{type:"string"}}},r={};for(const[n,s]of Object.entries(e))n.startsWith("__")||(r[n]=t(s));return Object.keys(r).length===0?null:{type:"object",properties:r}}function Ce(e,t){const r=t.schema??{},n=$e(e,t),s=r.$defs??r.definitions??{},i=typeof n.$ref=="string"?s[n.$ref.split("/").pop()??""]??{}:Object.keys(n).length>0?n:{...r,...n},o=i.icon,l=i.logo,u=i,_=E=>E===!0||E==="true",h=_(u.hide)||_(u.ignore)||_(u.unlisted);return{title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,icon:typeof o=="string"?o:void 0,logo:typeof l=="string"?l:void 0,hidden:h||void 0}}function at(e){return e.replace(/\/+$/,"")||"/"}function un(e){return e.trim().replace(/^\/+|\/+$/g,"")}function rr(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function fn(e){const t=e.trim();return t?rr(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Le=/:([A-Za-z0-9_-]+)|\*/g;function pn(e){const t=[];for(const r of e.matchAll(Le)){const n=r[1]??"*";t.includes(n)||t.push(n)}return t}function ct(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function yn(e){e=ct(e);const t=[];let r=0;for(const n of e.matchAll(Le))n.index>r&&t.push({type:"text",text:e.slice(r,n.index)}),t.push({type:"param",name:n[1]??"*"}),r=n.index+n[0].length;return r<e.length&&t.push({type:"text",text:e.slice(r)}),t}function dn(e,t){return ct(e).replace(Le,(r,n)=>{const s=t[n??"*"]?.trim();return s?n!==void 0?encodeURIComponent(s):s.split("/").filter(Boolean).map(encodeURIComponent).join("/")||r:r})}const nr=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],Ze="website/sections/Rendering/Lazy.tsx";function I(e){return nr.some(t=>e.endsWith(t))}const lt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],ut=new Set(lt),sr=lt[0],ir=new Set(["site/sections/Theme/Theme.tsx"]);function de(e){return!!(ir.has(e)||I(e)||e.toLowerCase().includes("preview"))}function or(e){const t=e.manifest?.blocks??{};for(const r of Object.values(t))for(const n of Object.keys(r))if(ut.has(n))return n;return Object.hasOwn(t.pages??{},"page")?"page":sr}function be(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return be(e.items);if(e.properties){const t=[];for(const r of Object.values(e.properties))t.push(...be(r));return t}return[]}function ar(e){const t=e.manifest?.blocks??{},r=[];for(const[n,s]of Object.entries(t))if(n.includes("sections"))for(const i of Object.keys(s)){if(de(i))continue;const o=Ce(i,e);r.push({resolveType:i,title:o.title??H(i),description:o.description,previewBlock:i,isSavedBlock:!1})}return r}function gn(e){const t=e.manifest?.blocks??{},r=new Map;for(const[n,s]of Object.entries(t))if(n.includes("sections"))for(const i of Object.keys(s))de(i)||r.has(i)||r.set(i,{resolveType:i,title:H(i)});return[...r.values()].sort((n,s)=>n.title.localeCompare(s.title))}function ft(e,t){const r=t.__resolveType;if(typeof r!="string")return"";if(r!==Q)return r;const n=t.variants;if(!Array.isArray(n))return r;for(const s of n){const i=s?.value;if(!i)continue;let o=i.__resolveType;if(typeof o=="string"&&I(o)&&(o=i.section?.__resolveType??o),typeof o=="string"&&ke(e,o))return o}return r}function cr(e,t){return ft(e,t)!==t.__resolveType}function pt(e,t){const r=[];for(const[n,s]of Object.entries(t)){if(n.includes("/")||Pe(n)||!s||typeof s!="object"||Array.isArray(s))continue;const i=s,o=i.__resolveType;typeof o!="string"||ut.has(o)||typeof i.path=="string"||de(o)||!(ke(e,o)||o===Q&&cr(e,i))||r.push({resolveType:n,title:n,description:typeof i.name=="string"?i.name:void 0,previewBlock:n,isSavedBlock:!0})}return r}function lr(e,t){const r=pe(t.resolveType,e),n=r?{}:Ce(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||n.title||H(t.resolveType),description:t.description??n.description,previewBlock:t.resolveType,isSavedBlock:r}}function mn(e,t){const r=or(e),n=it(r,e),s=be(n?.properties?.sections),i=new Map,o=l=>{if(!de(l.resolveType)){if(pe(l.resolveType,e)){Pe(l.resolveType)||i.set(l.resolveType,l);return}ke(e,l.resolveType)&&(i.has(l.resolveType)||i.set(l.resolveType,l))}};for(const l of ar(e))o(l);for(const l of s)o(lr(e,l));for(const l of pt(e,t))o(l);return[...i.values()].sort((l,u)=>l.title.localeCompare(u.title))}function vn(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const r=t.theme;if(!(!r||typeof r!="object"||Array.isArray(r)))return r}const Me="website/loaders/redirect.ts",_n=new Set([Me,"website/loaders/redirects.ts"]),Be="redirect",ur=[301,302,307,308],fr={temporary:307,permanent:301};function hn(e){return e.flat?e.status??(e.type==="permanent"?301:302):fr[e.type]}const ce=e=>typeof e=="string"?e:"",pr=e=>e==="permanent"?"permanent":"temporary",yr=e=>ur.find(t=>t===e);function dr(e){const t=yr(e.status);return{from:ce(e.from),to:ce(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function yt(e){if(e?.__resolveType===Be)return dr(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ce(t.from),to:ce(t.to),type:pr(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function gr(e){const t=[];for(const[r,n]of Object.entries(e)){if(!n||typeof n!="object"||Array.isArray(n))continue;const s=n;s.__resolveType!==Me&&s.__resolveType!==Be||t.push({key:r,...yt(s)})}return t}function An(e){return yt(e)}function Tn(e,t){if(e.flat){const{status:n,discardQueryParameters:s,...i}=t??{};return{...i,__resolveType:Be,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const r={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(r.discardQueryParameters=!0),{redirect:r,__resolveType:Me}}function mr(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const vr=1e3;function bn(e,t){const r=mr(t);for(let n=0;n<vr;n++){const s=`redirects-${r}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,s))return s}throw new Error("Could not generate a unique redirect block key")}function _r(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,"");try{return decodeURIComponent(t)}catch{return t}}function Sn(e,t){const{pageId:r,path:n,pathTemplate:s}=t;if(r){const i=e.find(l=>l.key===r);if(i)return i;const o=e.find(l=>l.key.endsWith(`-${r}`));if(o)return o}if(n){const i=Je(e,n);if(i)return i}if(s){const i=Je(e,s);if(i)return i}return null}function Je(e,t,r){const n=at;if(r){const i=e.find(o=>o.key===r);if(i)return i}const s=e.filter(i=>n(i.path)===n(t));return s.length===0?null:s.length===1?s[0]??null:[...s].sort((i,o)=>i.key.localeCompare(o.key))[0]??null}const hr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function dt(e,t){return hr.has(e)||Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}const te="site",gt="site/apps/site.ts";function Se(e,t){return e===te?!0:t.__resolveType===gt}function En(e,t){return e?mt(e,t).length>0||gr(e).length>0?!0:t?Er(e,t).length>0||br(e,t)?!0:Sr(e,t).length>0:!1:!1}function Ar(e,t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const n=t;return typeof n.__resolveType!="string"||!dt(n.__resolveType,r)||typeof n.path!="string"?null:{key:e,name:typeof n.name=="string"?n.name:_r(e),path:n.path}}function mt(e,t){const r=[];for(const[n,s]of Object.entries(e)){const i=Ar(n,s,t);i&&r.push(i)}return r}function le(e,t,r=0){if(r>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(s=>le(s,t,r+1));const n=e;return typeof n.__resolveType=="string"&&t.has(n.__resolveType)?!0:Object.values(n).some(s=>le(s,t,r+1))}function Tr(e,t,r){const n=mt(e,r),s=new Set(n.map(o=>o.key)),i=new Set([t]);for(let o=!0;o;){o=!1;for(const[l,u]of Object.entries(e))i.has(l)||s.has(l)||le(u,i)&&(i.add(l),o=!0)}return n.filter(o=>o.key!==t&&le(e[o.key],i))}function Rn(e,t,r){const n=i=>at(i.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(i.path)?2:1,[s]=Tr(e,t,r).sort((i,o)=>n(i)-n(o)||(i.path<o.path?-1:i.path>o.path?1:0));return s??null}function vt(e,t){if(typeof t.name=="string"){const r=t.name.trim();if(r)return r}return e.replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function Ee(e,t,r){const n=typeof t.__resolveType=="string"?t.__resolveType:"",s=n?Ce(n,r):{};if(s.title)return s.title;if(typeof t.name=="string"){const i=t.name.trim();if(i)return i}return e.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function br(e,t){const r=e[te];if(r&&typeof r=="object"&&!Array.isArray(r)){const n=r,s=n.__resolveType;if(typeof s=="string"&&(Se(te,n)||st(t,s)))return{key:te,name:Ee(te,n,t),resolveType:s}}for(const[n,s]of Object.entries(e)){if(n.includes("/")||!s||typeof s!="object"||Array.isArray(s))continue;const i=s;if(!Se(n,i))continue;const o=typeof i.__resolveType=="string"?i.__resolveType:gt;return{key:n,name:Ee(n,i,t),resolveType:o}}return null}function Sr(e,t){const r=[];for(const[n,s]of Object.entries(e)){if(n.includes("/")||!s||typeof s!="object"||Array.isArray(s))continue;const i=s,o=i.__resolveType;typeof o=="string"&&(dt(o,t)||typeof i.path!="string"&&(Se(n,i)||!st(t,o)&&!tr(o)||r.push({key:n,name:Ee(n,i,t),resolveType:o})))}return r.sort((n,s)=>n.name.localeCompare(s.name))}function Er(e,t){return pt(t,e).map(r=>{const n=e[r.resolveType],s=ft(t,n);return{key:r.resolveType,name:r.description??vt(r.resolveType,n),resolveType:s}}).sort((r,n)=>r.name.localeCompare(n.name))}const Rr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function Or(e){return e.includes("matchers")||e.includes("Match")}function _t(e,t){const r=e.__resolveType;return typeof r!="string"||!r||Rr.has(r)?!1:t?Ht(t,r):Or(r)}function On(e,t){const r=[];for(const[n,s]of Object.entries(t)){if(n.includes("/")||!pe(n,e)||Pe(n)||!s||typeof s!="object"||Array.isArray(s))continue;const i=s;_t(i,e)&&r.push({blockKey:n,matcherResolveType:i.__resolveType??"",name:typeof i.name=="string"?i.name:void 0})}return r.sort((n,s)=>(n.name??n.blockKey).localeCompare(s.name??s.blockKey))}function ne(e,t,r){if(!e)return!1;const n=e.__resolveType;if(typeof n!="string"||!pe(n,r)||!Object.hasOwn(t,n))return!1;const s=t[n];return!s||typeof s!="object"||Array.isArray(s)?!1:_t(s,r)}function kn(e,t,r){return ne(e,t,r)?e?.__resolveType??null:null}function ht(e,t,r){if(!e)return null;const n=e.__resolveType??"";if(!n)return null;if(ne(e,t,r)){const o=t[n]??{},l=o.__resolveType??n,{__resolveType:u,name:_,...h}=o;return{resolveType:l,data:h,blockKey:n}}const{__resolveType:s,...i}=e;return{resolveType:n,data:i}}function kr(e,t,r){const n=ht(e,t,r);return n?{__resolveType:n.resolveType,...n.data}:{__resolveType:""}}function Pn(e,t,r){if(e)return ne(e,t,r)?kr(e,t,r):e}function Pr(e,t,r,n){if(!e)return"Default";if(ne(e,t,n)){const s=e.__resolveType??"",i=t[s];return vt(s,i)}return r(e)}function jn(e,t,r){return{__resolveType:e,...t,name:r}}function wn(e){return{__resolveType:e}}function xn(e,t,r){const n=ht(e,t,r);return n?{resolveType:n.resolveType,formValue:n.data}:{resolveType:"",formValue:{}}}function $n(e,t){const r={__resolveType:e};if(!e||!t)return r;const n=it(e,t),s=n?.type==="inline-union"?n.inlineUnionBranches?.[0]?.discriminators:void 0;return s?{...r,...s}:r}function At(e){const t=e.__resolveType??"";return I(t)?e.section??e:e}function ue(e){const s=(I(e.__resolveType??"")?e.section:e)?.variants?.[0];return s?.rule?.__resolveType!==tt?null:s?.value??null}function Cn(e){const t=At(e);return{__resolveType:Q,variants:[{value:t,rule:{__resolveType:tt}}]}}function Ln(e){const t=e.__resolveType??"";if(!t)return null;if(I(t))return e.section??null;const r=ue(e);return r?I(r.__resolveType??"")?r:{__resolveType:Ze,section:At(r)}:{__resolveType:Ze,section:e}}function oe(e){const t=e.__resolveType??"";if(!t)return null;if(I(t)){const r=e.section,n=r?.__resolveType??"";return!n||!r?null:{resolveType:n,data:r}}return{resolveType:t,data:e}}function Mn(e){const t=ue(e);if(t)return oe(t);if(I(e.__resolveType??"")){const n=e.section;if(!n)return null;const s=ue(n);return oe(s||n)}return oe(e)}function Bn(e){return ue(e)}const jr=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function Tt(e){if(!e)return!1;const t=e.__resolveType??"";return t===""?Object.keys(e).length===0:jr.includes(t)||t.includes("always")}function wr(e){const t=e.variants??[];if(t.length===0)return-1;const r=t.findIndex(n=>Tt(n.rule));return r!==-1?r:t.length-1}function Vn(e,t,r){const n=r.variants??[];if(n.length===0)return null;const s=wr(r),i=n[s]?.value;if(!i)return null;const o=structuredClone(i);return t.isLazy?{...e,section:o}:o}function bt(e,t){return t.isMultivariate?t.isLazy?e.section??null:e:null}function Dn(e,t){return Array.isArray(e.variants)?e.variants.map((r,n)=>({label:t(r.rule)||`Variant ${n+1}`,value:r.value??{},rule:r.rule})):[]}function In(e,t){const r=e.__resolveType??"";if(!r)return null;if(I(r)){const n=e.section??e,s=n.__resolveType??r;if(!s.includes("/")&&s in t){const i=t[s]??{};return{data:{...i},resolveType:i.__resolveType??s}}return{data:{...n},resolveType:s}}if(!r.includes("/")&&r in t){const n=t[r]??{};return{data:{...n},resolveType:n.__resolveType??r}}return{data:{...e},resolveType:r}}function xr(e,t){const r=e.__resolveType??"";return I(r)?{...e,section:t}:t}function $r(e,t,r){return t.isLazy?{...e,section:r}:r}function Un(e,t,r){const n=[...e.variants??[]],s=n[t];if(!s)return e;const i=s.value??{};return n[t]={...s,value:xr(i,r)},{...e,variants:n}}function Fn(e,t,r){const n=[...e.variants??[]];return n[t]?(n[t]={...n[t],rule:r},{...e,variants:n}):e}function Nn(e,t){const r=[...e.variants??[]],n=r[t];return n?(r.splice(t+1,0,structuredClone(n)),{...e,variants:r}):e}function Yn(e,t,r){const n=[...e.variants??[]];if(t===r||t<0||r<0||t>=n.length||r>=n.length)return e;const[s]=n.splice(t,1);return s?(n.splice(r,0,s),{...e,variants:n}):e}function zn(e,t){const r=[...e.variants??[]];return r.length<=1?null:(r.splice(t,1),{...e,variants:r})}function Re(e){return{rule:je(),value:structuredClone(e)}}function St(e,t){return{...t,__resolveType:Q,variants:e}}function Wn(e){return e.isHidden!==!0&&e.isSavedBlock!==!0}function Cr(e,t){if(t.isHidden)return null;if(t.isMultivariate){const n=bt(e,t)?.variants??[],s=n[n.length-1]?.value;return s?structuredClone(s):null}if(t.isLazy){const r=e.section;return r?structuredClone(r):null}return structuredClone(e)}function Lr(e,t,r){if(t.isMultivariate||t.isHidden)return null;const n=Cr(e,t);if(!n)return null;const s=St([Re(n),Re(n)]);return t.isLazy?{...e,section:s}:s}function qn(e,t,r){if(t.isHidden||t.isSavedBlock)return null;if(t.isMultivariate){const s=bt(e,t);if(!s)return null;const i=s.variants??[],o=i[i.length-1]?.value;if(!o)return null;const l=St([...i,Re(o)],s);return{section:$r(e,t,l),newVariantIndex:i.length}}const n=Lr(e,t);return n?{section:n,newVariantIndex:1}:null}function Mr(e){return e.anyOfRefs?.some(t=>t.resolveType!==ye?!1:t.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function Kn(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return t.__resolveType===Q&&Array.isArray(t.variants)}function Et(e){return!e||typeof e!="object"||Array.isArray(e)?!1:e.__resolveType===ye}function Hn(e){if(!Et(e))return null;const t=e.variants;if(!Array.isArray(t))return null;const r=t[0]?.value;return Array.isArray(r)?r:null}function Gn(e,t){if(!Et(e))return t;const r=structuredClone(e),n=[...r.variants??[]];return n.length===0?n.push({rule:je(),value:t}):n[0]={...n[0],value:t},{...r,variants:n}}function Qn(e,t){const n=e[t]?.sections;if(!n||Array.isArray(n))return 1;const s=n;return Array.isArray(s.variants)?s.variants.length:1}function Xn(e,t,r){const s=e[t]?.sections;if(Array.isArray(s))return r===0?s:[];if(s&&typeof s=="object"){const i=s.variants;if(Array.isArray(i)){const o=i[r];return Array.isArray(o?.value)?o.value:[]}}return[]}function Zn(e,t,r){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.variants)){const s=n.variants,i=s.map(u=>Pr(u.rule,t,r)),o=i.reduce((u,_)=>(u[_]=(u[_]??0)+1,u),{}),l={};return s.map((u,_)=>{const h=i[_]??`Variant ${_+1}`,E=o[h]??1;let P=h;return E>1&&(l[h]=(l[h]??0)+1,P=`${h} ${l[h]}`),{label:P||`Variant ${_+1}`,sections:Array.isArray(u.value)?u.value:[],rule:u.rule}})}}return[]}function ee(e){return{rule:je(),value:e}}function G(e,t){return{...t,__resolveType:ye,variants:e}}function Jn(e,t){const r=structuredClone(t);if(Array.isArray(e))return G([ee(e),ee(r)]);if(e&&typeof e=="object"){const n=e;return Array.isArray(n.variants)?G([...n.variants,ee(r)],n):null}return G([ee([]),ee(r)])}function es(e){const t=e.variants;return Array.isArray(t)?t.length-1:1}function ts(e,t){const r=e[t];if(!r)return null;const n=[...e];return n.splice(t+1,0,structuredClone(r)),n}function rs(e,t){if(t.length===0)return G([],e);if(t.length===1){const r=t[0],n=r?.rule;if(!Tt(n))return G(t,e);if(Array.isArray(r?.value))return r.value}return G(t,e)}function Br(e,t,r){const n=[];for(const[i,o]of Object.entries(e))i!==t&&n.push(o);const s=new Set;for(;n.length>0;){const i=n.pop();if(!(!i||typeof i!="object")&&!s.has(i)){if(s.add(i),Array.isArray(i)){for(const o of i)n.push(o);continue}r(i);for(const o of Object.values(i))n.push(o)}}}function ns(e,t,r){if(!t)return 0;let n=0;return Br(e,t,s=>{s.__resolveType===t&&ne(s,e,r)&&n++}),n}const ss={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};function ae(e){return e.includes("/sections/")||e.includes("multivariate/section")||e===Q}function Vr(e){if(e.type==="block-ref"&&e.anyOfRefs?.length)return e.anyOfRefs.some(r=>ae(r.resolveType));if(e.anyOfRefs?.length)return e.anyOfRefs.some(r=>ae(r.resolveType));const t=e.properties?.__resolveType;return t?.type==="block-ref"&&t.anyOfRefs?.length?t.anyOfRefs.some(r=>ae(r.resolveType)):!1}function is(e){return e.type!=="block-ref"||!e.anyOfRefs?.length?!1:e.anyOfRefs.some(t=>ae(t.resolveType))}function os(e,t){if(t==="global"||t==="sections"||Mr(e))return!0;const r=e.type==="array"?e.items:void 0;return r?Vr(r):!1}const as="secret",Dr=[256,384,512],Ir=12,Ur=16,Fr=/^v1\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/;function Nr(e){let t="";for(const r of e)t+=String.fromCharCode(r);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Te(e){if(!/^[A-Za-z0-9_-]*$/.test(e)||e.length%4===1)return null;const t=e.replace(/-/g,"+").replace(/_/g,"/")+"=".repeat((4-e.length%4)%4);let r;try{r=atob(t)}catch{return null}const n=Uint8Array.from(r,s=>s.charCodeAt(0));return Nr(n)===e?n:null}function Yr(e){if(typeof e!="string"||!Fr.test(e))return null;const[,t="",r="",n=""]=e.split("."),s=Te(t),i=Te(r),o=Te(n);return!s||!i||!o||!Dr.includes(s.byteLength)||i.byteLength!==Ir||o.byteLength<Ur?null:{wrappedKey:s,iv:i,ciphertext:o}}function cs(e){return Yr(e)!==null}export{H as $,tr as A,Ee as B,ss as C,sr as D,fr as E,hn as F,He as G,on as H,Sn as I,br as J,gr as K,en as L,gn as M,tt as N,Qn as O,Jn as P,bn as Q,Qr as R,as as S,Tn as T,Vt as U,be as V,pe as W,ye as X,nn as Y,Ge as Z,Qe as _,_r as a,qt as a0,Gt as a1,Q as a2,Mr as a3,an as a4,sn as a5,os as a6,On as a7,kr as a8,wn as a9,Wn as aA,bt as aB,Dn as aC,In as aD,ht as aE,qn as aF,es as aG,Yn as aH,$r as aI,Vn as aJ,zn as aK,Nn as aL,Fn as aM,Ln as aN,Bn as aO,Cn as aP,rs as aQ,ns as aR,Un as aS,wr as aT,ts as aU,An as aV,ur as aW,Pn as aa,Zn as ab,is as ac,mn as ad,je as ae,Tt as af,Pr as ag,kn as ah,xn as ai,ne as aj,jn as ak,$n as al,zt as am,rn as an,tn as ao,cs as ap,Kn as aq,Et as ar,Hn as as,Gn as at,_n as au,Pe as av,cn as aw,ln as ax,Mn as ay,vn as az,Yt as b,ae as c,Rn as d,pn as e,dn as f,vt as g,Xr as h,Se as i,Zr as j,I as k,yn as l,un as m,at as n,En as o,Ar as p,mt as q,Er as r,Jr as s,Je as t,Xn as u,fn as v,or as w,it as x,gt as y,Ce as z};
|
|
1
|
+
import{c as fe,b as Oe,j as S,r as et,ah as Pt,B as jt,l as wt,a5 as xt}from"./index-nyu5TMcf.js";import{a as $t}from"./Copy01-Bp_jaXps.js";import{a as Ct,b as Lt,A as Mt}from"./alert-ClNLfvDL.js";import{u as Bt}from"./use-copy-QYBjN8uM.js";const J="https://docs.decocms.com/storefront/blocks",Vt={quickstart:`${J}/next/quickstart`,siteEditor:`${J}/next/site-editor#edit-on-your-machine`,serve:`${J}/next/cli#deco-serve`,schema:`${J}/next/cli#deco-schema-and-deco-content`,troubleshooting:`${J}/next/troubleshooting#site-editor`};function Qr(e){const t=fe.c(4),{text:r}=e;let n;t[0]!==r?(n=r.split("`").map(Dt),t[0]=r,t[1]=n):n=t[1];let s;return t[2]!==n?(s=S.jsx(S.Fragment,{children:n}),t[2]=n,t[3]=s):s=t[3],s}function Dt(e,t){return t%2===1?S.jsx("code",{className:"whitespace-nowrap rounded bg-muted px-1 py-px font-mono text-[0.85em] text-foreground",children:e},t):S.jsx(et.Fragment,{children:e},t)}function Xr(e){const t=fe.c(31),{command:r}=e,n=Oe(),{handleCopy:s,copied:i}=Bt();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=S.jsxs("span",{"aria-hidden":"true",className:"select-none text-muted-foreground",children:["$"," "]}),t[0]=o):o=t[0];let l;t[1]!==r?(l=r.split(" ").map(Ut),t[1]=r,t[2]=l):l=t[2];let u;t[3]!==l?(u=S.jsxs("code",{className:"min-w-0 flex-1 overflow-x-auto py-1.5 font-mono text-xs leading-5 text-foreground",children:[o,l]}),t[3]=l,t[4]=u):u=t[4];let _;t[5]!==n?(_=n("decoServe.guide.copy"),t[5]=n,t[6]=_):_=t[6];let h;t[7]!==r||t[8]!==s?(h=()=>{s(r).catch(It)},t[7]=r,t[8]=s,t[9]=h):h=t[9];let E;t[10]!==i?(E=i?S.jsx(Pt,{className:"text-success"}):S.jsx($t,{}),t[10]=i,t[11]=E):E=t[11];let P;t[12]!==i||t[13]!==n?(P=n(i?"decoServe.guide.copied":"decoServe.guide.copyShort"),t[12]=i,t[13]=n,t[14]=P):P=t[14];let $;t[15]!==P?($=S.jsx("span",{"aria-hidden":"true",children:P}),t[15]=P,t[16]=$):$=t[16];let U;t[17]!==_||t[18]!==h||t[19]!==E||t[20]!==$?(U=S.jsxs(jt,{type:"button",variant:"ghost",size:"sm",className:"shrink-0 self-start","aria-label":_,onClick:h,children:[E,$]}),t[17]=_,t[18]=h,t[19]=E,t[20]=$,t[21]=U):U=t[21];let j;t[22]!==i||t[23]!==n?(j=i?n("decoServe.guide.copiedAnnouncement"):"",t[22]=i,t[23]=n,t[24]=j):j=t[24];let F;t[25]!==j?(F=S.jsx("span",{className:"sr-only","aria-live":"polite",children:j}),t[25]=j,t[26]=F):F=t[26];let N;return t[27]!==F||t[28]!==u||t[29]!==U?(N=S.jsxs("div",{className:"flex items-center gap-1 rounded-lg border border-border bg-muted/60 py-1 pr-1 pl-3",children:[u,U,F]}),t[27]=F,t[28]=u,t[29]=U,t[30]=N):N=t[30],N}function It(){}function Ut(e,t){return S.jsxs(et.Fragment,{children:[t>0&&" ",S.jsx("span",{className:"whitespace-nowrap",children:e})]},t)}const Ft={quickstart:"decoServe.docs.quickstart",siteEditor:"decoServe.docs.siteEditor",serve:"decoServe.docs.serve",schema:"decoServe.docs.schema",troubleshooting:"decoServe.docs.troubleshooting"};function Zr(e){const t=fe.c(20),{links:r,className:n}=e,s=Oe();let i;t[0]!==s?(i=s("decoServe.docs.heading"),t[0]=s,t[1]=i):i=t[1];let o;t[2]!==n?(o=wt("flex flex-col gap-2 text-sm",n),t[2]=n,t[3]=o):o=t[3];let l;t[4]!==s?(l=s("decoServe.docs.heading"),t[4]=s,t[5]=l):l=t[5];let u;t[6]!==l?(u=S.jsx("span",{className:"text-muted-foreground",children:l}),t[6]=l,t[7]=u):u=t[7];let _;if(t[8]!==r||t[9]!==s){let P;t[11]!==s?(P=$=>S.jsxs("a",{href:Vt[$],target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-foreground underline-offset-4 hover:underline focus-visible:underline",children:[s(Ft[$]),S.jsx(xt,{"aria-hidden":"true",className:"size-3.5"}),S.jsx("span",{className:"sr-only",children:s("decoServe.docs.newTab")})]},$),t[11]=s,t[12]=P):P=t[12],_=r.map(P),t[8]=r,t[9]=s,t[10]=_}else _=t[10];let h;t[13]!==_?(h=S.jsx("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1",children:_}),t[13]=_,t[14]=h):h=t[14];let E;return t[15]!==i||t[16]!==o||t[17]!==u||t[18]!==h?(E=S.jsxs("nav",{"aria-label":i,className:o,children:[u,h]}),t[15]=i,t[16]=o,t[17]=u,t[18]=h,t[19]=E):E=t[19],E}function Jr(e,t,r){switch(t.reason){case"not-answering":return{title:e("decoServe.state.notAnswering.title"),body:e("decoServe.state.notAnswering.short",{host:r})};case"outdated":return{title:e("decoServe.state.outdated.title"),body:e("decoServe.state.outdated.body",{host:r})};case"version-mismatch":return{title:e("decoServe.state.versionMismatch.title"),body:e("decoServe.state.versionMismatch.body",{host:r})};case"not-deco-serve":return{title:e("decoServe.state.notDecoServe.title",{host:r}),body:e("decoServe.state.notDecoServe.body",{host:r})};case"not-v8":return{title:e("decoServe.state.notV8.title"),body:e("decoServe.state.notV8.body",{host:r})};case"error":return{title:e("decoServe.state.error.title"),body:e("decoServe.state.error.body",{detail:t.detail??""})}}}function en(){const e=fe.c(11),t=Oe();let r;e[0]!==t?(r=t("decoServe.lna.deniedTitle"),e[0]=t,e[1]=r):r=e[1];let n;e[2]!==r?(n=S.jsx(Ct,{className:"line-clamp-none",children:r}),e[2]=r,e[3]=n):n=e[3];let s;e[4]!==t?(s=t("decoServe.lna.deniedBody"),e[4]=t,e[5]=s):s=e[5];let i;e[6]!==s?(i=S.jsx(Lt,{children:s}),e[6]=s,e[7]=i):i=e[7];let o;return e[8]!==n||e[9]!==i?(o=S.jsx(Mt,{variant:"destructive",children:S.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[n,i]})}),e[8]=n,e[9]=i,e[10]=o):o=e[10],o}const tn="website/loaders/secret.ts",rn=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],Nt=/^(?:[0-9a-f]{2})*$/i;function Yt(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e.__resolveType;return typeof t=="string"&&(t.endsWith("/secret.ts")||t.includes("loaders/secret"))}function zt(e){return typeof e=="string"&&Nt.test(e)}class Wt extends Error{constructor(t){super(`Secret at "${t}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=t,this.name="PlaintextSecretError"}path}function He(e,t=""){if(Array.isArray(e))return e.map((n,s)=>He(n,`${t}/${s}`));if(!e||typeof e!="object")return e;const r=Object.entries(e);if(Yt(e)){const n=e.encrypted;if(n!==void 0&&!zt(n))throw new Wt(t||"/");return Object.fromEntries(r.filter(([s])=>s!=="value"))}return Object.fromEntries(r.map(([n,s])=>[n,He(s,`${t}/${n}`)]))}function Ge(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function qt(e){return e.includes("@")}function Qe(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function nn(e,t){if(e===t)return!0;const r=Qe(e);return r?t===r||Qe(t)===r:!1}function re(e,t){const r=e.manifest?.blocks??{};for(const[n,s]of Object.entries(r))if(t in s)return n;return null}function sn(e,t){return re(e,t)!==null}function ke(e,t){const r=re(e,t);return r!==null&&r.includes("sections")}function Kt(e,t){const r=re(e,t);return r!==null&&r.includes("apps")}function Ht(e,t){const r=re(e,t);return r!==null&&r.includes("matchers")}function pe(e,t){return!(!e||t&&re(t,e)!==null||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function Pe(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}const on="oklch(0.7278 0.151 289)",Gt="website/matchers/always.ts",tt="website/matchers/never.ts",ye="website/flags/multivariate.ts",Q="website/flags/multivariate/section.ts";function je(){return{__resolveType:Gt}}function H(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?|html?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())||e}const Qt=12,Xt=8,he=32,Zt=40,Jt="__SECTION_REF__";function Ae(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function Xe(e,t){let r=e.items;if(!r)return!1;if(typeof r.$ref=="string"&&(r=t(r.$ref)),Array.isArray(r.anyOf)||Array.isArray(r.oneOf))return!0;const s=r.properties?.__resolveType?.enum;return Array.isArray(s)&&typeof s[0]=="string"}const er="VideoWidget";function K(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function rt(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function we(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function xe(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function nt(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function $e(e,t){const r=t.manifest?.blocks??{};for(const l of Object.values(r))if(l[e])return l[e];const n=we(e)??xe(e);if(n){for(const l of nt(n.vendor,n.app))for(const u of Object.values(r))if(u[l])return u[l]}const s=rt(e);for(const l of Object.values(r))if(l[s])return l[s];const i=t.schema??{};return(i.$defs??i.definitions??{})[s]?{$ref:`#/definitions/${s}`}:{}}function st(e,t){if(Kt(e,t))return!0;const r=we(t)??xe(t);if(!r)return!1;const n=e.manifest?.blocks?.apps??{};if(nt(r.vendor,r.app).some(o=>o in n))return!0;const s=rt(t),i=e.schema?.$defs??e.schema?.definitions??{};return s in i}function tr(e){return e==="site/apps/site.ts"?!1:we(e)!==null||xe(e)!==null}function it(e,t){return ot(t,{resolveType:e})}function an(e,t){return ot(t,{ref:e})}function ot(e,t){const r=e.schema??{},n="resolveType"in t?$e(t.resolveType,e):{},s=r.$defs??r.definitions??{},i=r.root??{},o=a=>{if(a.startsWith("#/root/")){const c=a.slice(7);return i[c]??{}}const f=a.split("/").pop()??"",m=s[f];return m||(f===Jt?i.sections??{}:{})};let l;typeof n.$ref=="string"?l=o(n.$ref):Object.keys(n).length>0?l=n:l=r;const u=a=>typeof a.$ref=="string"?o(a.$ref):a,_=a=>{const m=u(a).properties?.type;if(m){if(typeof m.const=="string")return m.const;if(typeof m.default=="string")return m.default;if(Array.isArray(m.enum)&&typeof m.enum[0]=="string")return m.enum[0]}},h=(a,f)=>{const m=u(a);return typeof m.title=="string"&&!m.title.startsWith("#")?m.title:f},E=(a,f=new Set)=>{if(typeof a.$ref!="string"||a.properties||a.anyOf||a.allOf||a.oneOf||a.type)return a;const m=a.$ref.split("/").pop()??"";return!m||f.has(m)?a:E(o(a.$ref),new Set([...f,m]))},P=a=>{const f=a.properties?.__resolveType?.enum;return Array.isArray(f)&&typeof f[0]=="string"?f[0]:void 0},$=a=>P(a)!==void 0,U=(a,f=new Set)=>{if(typeof a.$ref!="string")return[];const m=a.$ref.split("/").pop()??"";if(!m||f.has(m))return[];const c=o(a.$ref),w=c.anyOf??c.oneOf;if(!Array.isArray(w))return[];const k=new Set([...f,m]);return w.flatMap(x=>$(x)?[x]:U(x,k))},j=a=>{const f=a.hide;return f===!0||f==="true"},F=a=>typeof a=="string"&&(a.includes("://")||!/\s/.test(a)&&(a.includes("|")||a.includes("&")||a.includes("@"))),N=(a,f=new Set,m=0)=>{if(m>Qt)return{};if(typeof a.$ref=="string"){const w=a.$ref.split("/").pop()??"";return f.has(w)?{}:N(o(a.$ref),new Set([...f,w]),m+1)}let c={};a.properties&&typeof a.properties=="object"&&(c={...c,...a.properties}),Array.isArray(a.required)&&(c.__required=[...K(c.__required),...K(a.required)]);for(const w of["allOf","anyOf","oneOf"]){const k=a[w];if(Array.isArray(k))for(const x of k){const D=K(c.__required),Y=N(x,f,m+1);c={...c,...Y};const C=w==="allOf"?[...D,...K(Y.__required)]:D;C.length>0?c.__required=C:delete c.__required}}return c},V=(a,f=0,m=new Set)=>{let c=a,w;if(typeof a.$ref=="string"){c=o(a.$ref);const O=a.$ref.split("/").pop()??"";w=O,O===er&&!c.format&&(c={...c,format:"video-uri"})}c=E(c);const k=w!==void 0&&m.has(w),x=w!==void 0?new Set([...m,w]):m,D=(O,p,A,T=!0)=>!k&&(!T||A<=Zt)&&p<Xt?V(O,p,x):void 0;let Y;{const O=c.anyOf??c.oneOf;if(Array.isArray(O)){const p=O.filter(T=>!(T.type==="null"||T.type===null)),A=T=>{if(typeof T.const=="string"||typeof T.const=="number")return T.const;if(Array.isArray(T.enum)&&T.enum.length===1&&(typeof T.enum[0]=="string"||typeof T.enum[0]=="number"))return T.enum[0]};p.length>0&&p.every(T=>A(T)!==void 0)&&(Y=p.map(T=>A(T)))}}let C,X,Ue=!1;if(c.type)C=Array.isArray(c.type)?String(c.type.find(O=>O!=="null")??c.type[0]):String(c.type);else if(c.anyOf||c.oneOf){const p=(c.anyOf??c.oneOf).filter(A=>!(A.type==="null"||A.type===null));if(p.length===0)C="null";else if(p.length===1){const A=p[0];X=A,C=A.type?Array.isArray(A.type)?String(A.type[0]):String(A.type):typeof A.$ref=="string"?"object":"string"}else{if(Y){const y=d=>typeof a[d]=="string"?a[d]:typeof c[d]=="string"?c[d]:void 0;return{type:"string",title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,enum:Y,format:y("format"),options:y("options")}}const A=p.filter($),T=p.map(y=>E(y)).find(Ae),W=p.filter(y=>!Ae(E(y))).every(y=>typeof y.$ref=="string"||A.includes(y)),ve=A.some(y=>{const d=y.properties?.__resolveType?.enum;return Array.isArray(d)&&d[0]===ye}),Ye=()=>{const y=new Map;for(const R of[...A,...p.filter(v=>!A.includes(v)).flatMap(v=>U(v))]){const v=P(R);v&&!y.has(v)&&y.set(v,R)}const d=[...y].map(([R,v])=>({resolveType:R,title:typeof v.title=="string"?v.title:H(R),description:typeof v.description=="string"?v.description:void 0,schema:D(v,f+1,y.size)})),g=[];for(const R of p){if(A.includes(R)||typeof R.$ref!="string")continue;const v=o(R.$ref);let B;const ie=v.properties?.__resolveType;if(Array.isArray(ie?.enum)&&typeof ie.enum[0]=="string"&&(B=ie.enum[0]),!B&&Array.isArray(v.allOf))for(const Z of v.allOf){const _e=Z.properties?.__resolveType?.enum;if(Array.isArray(_e)&&typeof _e[0]=="string"){B=_e[0];break}}B&&g.push({resolveType:B,title:typeof v.title=="string"&&!v.title.startsWith("#")?v.title:H(B),description:typeof v.description=="string"?v.description:void 0,schema:D(v,f+1,p.length)})}const b=new Set(d.map(R=>R.resolveType)),L=[...d,...g.filter(R=>!b.has(R.resolveType))],M=p.filter(R=>!A.includes(R)),q=M.length===1&&!k?V(M[0],f+1,x):void 0;return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:L,plainSchema:q,hidden:j(c)||j(a)?!0:void 0}};if(T){if(!Xe(T,o)&&p.length>1&&W){const d=V(T,f+1,x),g=typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:d.title,b=typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:d.description;return{...d,type:"array",title:g,description:b,loaderRef:A.length>0?{...Ye(),title:g,description:b}:void 0}}if(ve){const d=V(T,f+1,x);return{...d,type:"array",title:typeof c.title=="string"?c.title:d.title,description:typeof c.description=="string"?c.description:d.description}}}if(A.length>0)return Ye();const ze=y=>{const d=u(y);if(typeof d.title=="string"&&Ge(d.title))return!0;const g=d.properties?.__resolveType?.enum;if(Array.isArray(g)&&typeof g[0]=="string")return!0;if(Array.isArray(d.allOf))for(const b of d.allOf){const L=b.properties?.__resolveType?.enum;if(Array.isArray(L)&&typeof L[0]=="string")return!0}return!1},We=p.map(y=>_(y));if(p.length>1&&We.every(y=>typeof y=="string")&&!p.some(ze)){const y=p.map((d,g)=>{const b=u(d),L=We[g];return{resolveType:L,title:h(d,L),description:typeof b.description=="string"?b.description:void 0,discriminatorValue:L,schema:D(b,f+1,p.length,!1)}});return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,discriminatorKey:"type",anyOfRefs:y,hidden:j(c)||j(a)?!0:void 0}}const qe=y=>{if(ze(y))return!1;const d=u(y);return d.type==="object"||!!d.properties},kt=y=>{const d=E(y);return Ae(d)?!Xe(d,o):!1},Ke=f<he&&p.every(y=>qe(y)||kt(y))&&p.some(qe);if(p.every(y=>typeof y.$ref=="string")&&!Ke){const y=[];for(const d of p){const g=o(d.$ref);let b,L,M=!1;if(typeof g.title=="string"){const v=Ge(g.title);v&&(b=v.blockId,L=v.blockId)}if(!b&&Array.isArray(g.allOf))for(const v of g.allOf){const Z=((v.properties??{}).__resolveType??{}).enum;if(Array.isArray(Z)&&typeof Z[0]=="string"){b=Z[0],M=!0;break}}if(!b){const B=g.properties?.__resolveType?.enum;Array.isArray(B)&&typeof B[0]=="string"&&(b=B[0],M=!0)}b||(b=d.$ref.split("/").pop()??"");const q=b.includes("/")||M&&!qt(b),R=q?void 0:_(d);!R&&!q||M&&b==="lazy"||y.push({resolveType:R??b,title:L??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:H(b)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:R,schema:D(g,f+1,p.length)})}return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:y,hidden:j(c)||j(a)?!0:void 0}}if(Ke){const y=g=>{if(typeof g.const=="string"||typeof g.const=="number"||typeof g.const=="boolean")return g.const;if(Array.isArray(g.enum)&&g.enum.length===1&&(typeof g.enum[0]=="string"||typeof g.enum[0]=="number"||typeof g.enum[0]=="boolean"))return g.enum[0]},d=p.map((g,b)=>{const L=u(g).properties??{},M={};for(const[q,R]of Object.entries(L)){const v=y(R);v!==void 0&&(M[q]=v)}return{title:h(g,`Option ${b+1}`),schema:V(g,f+1),discriminators:Object.keys(M).length?M:void 0}});return{type:"inline-union",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,inlineUnionBranches:d,hidden:j(c)||j(a)?!0:void 0}}C="object"}}else c.allOf?(C="object",Ue=F(c.title)):typeof a.$ref=="string"&&(C="object");let se,Fe,Ne=!1;if(f<he&&!k){const O=N(c),p=O.__resolveType?.enum;Ne=Array.isArray(p)&&p.length===1&&p[0]==="lazy";const A=K(O.__required);A.length>0&&(Fe=A);const T=Object.entries(O).filter(([W])=>!W.startsWith("__")&&W!=="@type");if(T.length>0){se={};for(const[W,ve]of T)se[W]=V(ve,f+1,x)}}let me;if((C==="array"||c.type==="array")&&f<he&&!k){const O=c.items;if(O){me=V(O,f+1,x);const p=u(O);typeof p.title=="string"&&p.title.includes("{{")&&(me.titleBy=p.title)}}const z=O=>{const p=X?.[O];return typeof p=="string"?p:void 0},Ot=()=>{if("default"in a)return a.default;if("default"in c)return c.default;if(X&&"default"in X)return X.default};return{type:C??"string",title:typeof a.title=="string"?a.title:!Ue&&typeof c.title=="string"?c.title:z("title"),description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:z("description"),default:Ot(),enum:Array.isArray(c.enum)?c.enum:Y??void 0,format:typeof a.format=="string"?a.format:typeof c.format=="string"?c.format:z("format"),properties:se,required:Fe,items:me,lazy:Ne&&se?.value?!0:void 0,recursiveRef:k&&typeof a.$ref=="string"&&(C==="object"||C==="array"||c.type==="array")?a.$ref:void 0,hidden:j(c)||j(a)?!0:void 0,titleBy:typeof c.titleBy=="string"?c.titleBy:z("titleBy"),image:typeof c.image=="string"?c.image:z("image"),options:typeof a.options=="string"?a.options:typeof c.options=="string"?c.options:z("options")}};if("ref"in t)return V({$ref:t.ref});const Ve=l.properties??{},Rt=Object.keys(Ve).every(a=>a.startsWith("__"));if(Array.isArray(l.allOf)&&l.allOf.length===1&&Rt){const a=Ve.__resolveType,f=Array.isArray(a?.enum)&&typeof a.enum[0]=="string"?a.enum[0]:typeof a?.const=="string"?a.const:typeof a?.default=="string"?a.default:void 0;for(const m of l.allOf){const c=E(m);if(!(Array.isArray(c.anyOf)||Array.isArray(c.oneOf))||c.properties)continue;const k=V(c,0);if(k.type==="inline-union"&&k.inlineUnionBranches){const x=F(k.title);return{...k,title:x?void 0:k.title,inlineUnionBranches:f?k.inlineUnionBranches.map(D=>({...D,discriminators:{...D.discriminators??{},__resolveType:f}})):k.inlineUnionBranches}}}}const De=N(l),ge={};for(const[a,f]of Object.entries(De))a.startsWith("__")||a==="@type"||(ge[a]=V(f,0));if(Object.keys(ge).length===0)return null;const Ie=K(De.__required);return{type:"object",title:typeof l.title=="string"?l.title:void 0,properties:ge,required:Ie.length>0?Ie:void 0}}function cn(e,t){const r=t.schema??{},n=$e(e,t),s=r.$defs??r.definitions??{},i=typeof n.$ref=="string"?s[n.$ref.split("/").pop()??""]??{}:n,o=i.properties??{};if(Object.keys(o).some(_=>!_.startsWith("__")))return!1;if(i.additionalProperties===!0)return!0;const u=o.__resolveType;return!!u&&Array.isArray(u.enum)&&u.enum[0]===e}function ln(e){const t=n=>{switch(typeof n){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(n===null)return{type:"string"};if(Array.isArray(n))return{type:"array",items:t(n[0])};const s={};for(const[i,o]of Object.entries(n))i.startsWith("__")||(s[i]=t(o));return{type:"object",properties:s}}default:return{type:"string"}}},r={};for(const[n,s]of Object.entries(e))n.startsWith("__")||(r[n]=t(s));return Object.keys(r).length===0?null:{type:"object",properties:r}}function Ce(e,t){const r=t.schema??{},n=$e(e,t),s=r.$defs??r.definitions??{},i=typeof n.$ref=="string"?s[n.$ref.split("/").pop()??""]??{}:Object.keys(n).length>0?n:{...r,...n},o=i.icon,l=i.logo,u=i,_=E=>E===!0||E==="true",h=_(u.hide)||_(u.ignore)||_(u.unlisted);return{title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,icon:typeof o=="string"?o:void 0,logo:typeof l=="string"?l:void 0,hidden:h||void 0}}function at(e){return e.replace(/\/+$/,"")||"/"}function un(e){return e.trim().replace(/^\/+|\/+$/g,"")}function rr(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function fn(e){const t=e.trim();return t?rr(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Le=/:([A-Za-z0-9_-]+)|\*/g;function pn(e){const t=[];for(const r of e.matchAll(Le)){const n=r[1]??"*";t.includes(n)||t.push(n)}return t}function ct(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function yn(e){e=ct(e);const t=[];let r=0;for(const n of e.matchAll(Le))n.index>r&&t.push({type:"text",text:e.slice(r,n.index)}),t.push({type:"param",name:n[1]??"*"}),r=n.index+n[0].length;return r<e.length&&t.push({type:"text",text:e.slice(r)}),t}function dn(e,t){return ct(e).replace(Le,(r,n)=>{const s=t[n??"*"]?.trim();return s?n!==void 0?encodeURIComponent(s):s.split("/").filter(Boolean).map(encodeURIComponent).join("/")||r:r})}const nr=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],Ze="website/sections/Rendering/Lazy.tsx";function I(e){return nr.some(t=>e.endsWith(t))}const lt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],ut=new Set(lt),sr=lt[0],ir=new Set(["site/sections/Theme/Theme.tsx"]);function de(e){return!!(ir.has(e)||I(e)||e.toLowerCase().includes("preview"))}function or(e){const t=e.manifest?.blocks??{};for(const r of Object.values(t))for(const n of Object.keys(r))if(ut.has(n))return n;return Object.hasOwn(t.pages??{},"page")?"page":sr}function be(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return be(e.items);if(e.properties){const t=[];for(const r of Object.values(e.properties))t.push(...be(r));return t}return[]}function ar(e){const t=e.manifest?.blocks??{},r=[];for(const[n,s]of Object.entries(t))if(n.includes("sections"))for(const i of Object.keys(s)){if(de(i))continue;const o=Ce(i,e);r.push({resolveType:i,title:o.title??H(i),description:o.description,previewBlock:i,isSavedBlock:!1})}return r}function gn(e){const t=e.manifest?.blocks??{},r=new Map;for(const[n,s]of Object.entries(t))if(n.includes("sections"))for(const i of Object.keys(s))de(i)||r.has(i)||r.set(i,{resolveType:i,title:H(i)});return[...r.values()].sort((n,s)=>n.title.localeCompare(s.title))}function ft(e,t){const r=t.__resolveType;if(typeof r!="string")return"";if(r!==Q)return r;const n=t.variants;if(!Array.isArray(n))return r;for(const s of n){const i=s?.value;if(!i)continue;let o=i.__resolveType;if(typeof o=="string"&&I(o)&&(o=i.section?.__resolveType??o),typeof o=="string"&&ke(e,o))return o}return r}function cr(e,t){return ft(e,t)!==t.__resolveType}function pt(e,t){const r=[];for(const[n,s]of Object.entries(t)){if(n.includes("/")||Pe(n)||!s||typeof s!="object"||Array.isArray(s))continue;const i=s,o=i.__resolveType;typeof o!="string"||ut.has(o)||typeof i.path=="string"||de(o)||!(ke(e,o)||o===Q&&cr(e,i))||r.push({resolveType:n,title:n,description:typeof i.name=="string"?i.name:void 0,previewBlock:n,isSavedBlock:!0})}return r}function lr(e,t){const r=pe(t.resolveType,e),n=r?{}:Ce(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||n.title||H(t.resolveType),description:t.description??n.description,previewBlock:t.resolveType,isSavedBlock:r}}function mn(e,t){const r=or(e),n=it(r,e),s=be(n?.properties?.sections),i=new Map,o=l=>{if(!de(l.resolveType)){if(pe(l.resolveType,e)){Pe(l.resolveType)||i.set(l.resolveType,l);return}ke(e,l.resolveType)&&(i.has(l.resolveType)||i.set(l.resolveType,l))}};for(const l of ar(e))o(l);for(const l of s)o(lr(e,l));for(const l of pt(e,t))o(l);return[...i.values()].sort((l,u)=>l.title.localeCompare(u.title))}function vn(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const r=t.theme;if(!(!r||typeof r!="object"||Array.isArray(r)))return r}const Me="website/loaders/redirect.ts",_n=new Set([Me,"website/loaders/redirects.ts"]),Be="redirect",ur=[301,302,307,308],fr={temporary:307,permanent:301};function hn(e){return e.flat?e.status??(e.type==="permanent"?301:302):fr[e.type]}const ce=e=>typeof e=="string"?e:"",pr=e=>e==="permanent"?"permanent":"temporary",yr=e=>ur.find(t=>t===e);function dr(e){const t=yr(e.status);return{from:ce(e.from),to:ce(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function yt(e){if(e?.__resolveType===Be)return dr(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ce(t.from),to:ce(t.to),type:pr(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function gr(e){const t=[];for(const[r,n]of Object.entries(e)){if(!n||typeof n!="object"||Array.isArray(n))continue;const s=n;s.__resolveType!==Me&&s.__resolveType!==Be||t.push({key:r,...yt(s)})}return t}function An(e){return yt(e)}function Tn(e,t){if(e.flat){const{status:n,discardQueryParameters:s,...i}=t??{};return{...i,__resolveType:Be,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const r={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(r.discardQueryParameters=!0),{redirect:r,__resolveType:Me}}function mr(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const vr=1e3;function bn(e,t){const r=mr(t);for(let n=0;n<vr;n++){const s=`redirects-${r}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,s))return s}throw new Error("Could not generate a unique redirect block key")}function _r(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,"");try{return decodeURIComponent(t)}catch{return t}}function Sn(e,t){const{pageId:r,path:n,pathTemplate:s}=t;if(r){const i=e.find(l=>l.key===r);if(i)return i;const o=e.find(l=>l.key.endsWith(`-${r}`));if(o)return o}if(n){const i=Je(e,n);if(i)return i}if(s){const i=Je(e,s);if(i)return i}return null}function Je(e,t,r){const n=at;if(r){const i=e.find(o=>o.key===r);if(i)return i}const s=e.filter(i=>n(i.path)===n(t));return s.length===0?null:s.length===1?s[0]??null:[...s].sort((i,o)=>i.key.localeCompare(o.key))[0]??null}const hr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function dt(e,t){return hr.has(e)||Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}const te="site",gt="site/apps/site.ts";function Se(e,t){return e===te?!0:t.__resolveType===gt}function En(e,t){return e?mt(e,t).length>0||gr(e).length>0?!0:t?Er(e,t).length>0||br(e,t)?!0:Sr(e,t).length>0:!1:!1}function Ar(e,t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const n=t;return typeof n.__resolveType!="string"||!dt(n.__resolveType,r)||typeof n.path!="string"?null:{key:e,name:typeof n.name=="string"?n.name:_r(e),path:n.path}}function mt(e,t){const r=[];for(const[n,s]of Object.entries(e)){const i=Ar(n,s,t);i&&r.push(i)}return r}function le(e,t,r=0){if(r>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(s=>le(s,t,r+1));const n=e;return typeof n.__resolveType=="string"&&t.has(n.__resolveType)?!0:Object.values(n).some(s=>le(s,t,r+1))}function Tr(e,t,r){const n=mt(e,r),s=new Set(n.map(o=>o.key)),i=new Set([t]);for(let o=!0;o;){o=!1;for(const[l,u]of Object.entries(e))i.has(l)||s.has(l)||le(u,i)&&(i.add(l),o=!0)}return n.filter(o=>o.key!==t&&le(e[o.key],i))}function Rn(e,t,r){const n=i=>at(i.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(i.path)?2:1,[s]=Tr(e,t,r).sort((i,o)=>n(i)-n(o)||(i.path<o.path?-1:i.path>o.path?1:0));return s??null}function vt(e,t){if(typeof t.name=="string"){const r=t.name.trim();if(r)return r}return e.replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function Ee(e,t,r){const n=typeof t.__resolveType=="string"?t.__resolveType:"",s=n?Ce(n,r):{};if(s.title)return s.title;if(typeof t.name=="string"){const i=t.name.trim();if(i)return i}return e.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function br(e,t){const r=e[te];if(r&&typeof r=="object"&&!Array.isArray(r)){const n=r,s=n.__resolveType;if(typeof s=="string"&&(Se(te,n)||st(t,s)))return{key:te,name:Ee(te,n,t),resolveType:s}}for(const[n,s]of Object.entries(e)){if(n.includes("/")||!s||typeof s!="object"||Array.isArray(s))continue;const i=s;if(!Se(n,i))continue;const o=typeof i.__resolveType=="string"?i.__resolveType:gt;return{key:n,name:Ee(n,i,t),resolveType:o}}return null}function Sr(e,t){const r=[];for(const[n,s]of Object.entries(e)){if(n.includes("/")||!s||typeof s!="object"||Array.isArray(s))continue;const i=s,o=i.__resolveType;typeof o=="string"&&(dt(o,t)||typeof i.path!="string"&&(Se(n,i)||!st(t,o)&&!tr(o)||r.push({key:n,name:Ee(n,i,t),resolveType:o})))}return r.sort((n,s)=>n.name.localeCompare(s.name))}function Er(e,t){return pt(t,e).map(r=>{const n=e[r.resolveType],s=ft(t,n);return{key:r.resolveType,name:r.description??vt(r.resolveType,n),resolveType:s}}).sort((r,n)=>r.name.localeCompare(n.name))}const Rr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function Or(e){return e.includes("matchers")||e.includes("Match")}function _t(e,t){const r=e.__resolveType;return typeof r!="string"||!r||Rr.has(r)?!1:t?Ht(t,r):Or(r)}function On(e,t){const r=[];for(const[n,s]of Object.entries(t)){if(n.includes("/")||!pe(n,e)||Pe(n)||!s||typeof s!="object"||Array.isArray(s))continue;const i=s;_t(i,e)&&r.push({blockKey:n,matcherResolveType:i.__resolveType??"",name:typeof i.name=="string"?i.name:void 0})}return r.sort((n,s)=>(n.name??n.blockKey).localeCompare(s.name??s.blockKey))}function ne(e,t,r){if(!e)return!1;const n=e.__resolveType;if(typeof n!="string"||!pe(n,r)||!Object.hasOwn(t,n))return!1;const s=t[n];return!s||typeof s!="object"||Array.isArray(s)?!1:_t(s,r)}function kn(e,t,r){return ne(e,t,r)?e?.__resolveType??null:null}function ht(e,t,r){if(!e)return null;const n=e.__resolveType??"";if(!n)return null;if(ne(e,t,r)){const o=t[n]??{},l=o.__resolveType??n,{__resolveType:u,name:_,...h}=o;return{resolveType:l,data:h,blockKey:n}}const{__resolveType:s,...i}=e;return{resolveType:n,data:i}}function kr(e,t,r){const n=ht(e,t,r);return n?{__resolveType:n.resolveType,...n.data}:{__resolveType:""}}function Pn(e,t,r){if(e)return ne(e,t,r)?kr(e,t,r):e}function Pr(e,t,r,n){if(!e)return"Default";if(ne(e,t,n)){const s=e.__resolveType??"",i=t[s];return vt(s,i)}return r(e)}function jn(e,t,r){return{__resolveType:e,...t,name:r}}function wn(e){return{__resolveType:e}}function xn(e,t,r){const n=ht(e,t,r);return n?{resolveType:n.resolveType,formValue:n.data}:{resolveType:"",formValue:{}}}function $n(e,t){const r={__resolveType:e};if(!e||!t)return r;const n=it(e,t),s=n?.type==="inline-union"?n.inlineUnionBranches?.[0]?.discriminators:void 0;return s?{...r,...s}:r}function At(e){const t=e.__resolveType??"";return I(t)?e.section??e:e}function ue(e){const s=(I(e.__resolveType??"")?e.section:e)?.variants?.[0];return s?.rule?.__resolveType!==tt?null:s?.value??null}function Cn(e){const t=At(e);return{__resolveType:Q,variants:[{value:t,rule:{__resolveType:tt}}]}}function Ln(e){const t=e.__resolveType??"";if(!t)return null;if(I(t))return e.section??null;const r=ue(e);return r?I(r.__resolveType??"")?r:{__resolveType:Ze,section:At(r)}:{__resolveType:Ze,section:e}}function oe(e){const t=e.__resolveType??"";if(!t)return null;if(I(t)){const r=e.section,n=r?.__resolveType??"";return!n||!r?null:{resolveType:n,data:r}}return{resolveType:t,data:e}}function Mn(e){const t=ue(e);if(t)return oe(t);if(I(e.__resolveType??"")){const n=e.section;if(!n)return null;const s=ue(n);return oe(s||n)}return oe(e)}function Bn(e){return ue(e)}const jr=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function Tt(e){if(!e)return!1;const t=e.__resolveType??"";return t===""?Object.keys(e).length===0:jr.includes(t)||t.includes("always")}function wr(e){const t=e.variants??[];if(t.length===0)return-1;const r=t.findIndex(n=>Tt(n.rule));return r!==-1?r:t.length-1}function Vn(e,t,r){const n=r.variants??[];if(n.length===0)return null;const s=wr(r),i=n[s]?.value;if(!i)return null;const o=structuredClone(i);return t.isLazy?{...e,section:o}:o}function bt(e,t){return t.isMultivariate?t.isLazy?e.section??null:e:null}function Dn(e,t){return Array.isArray(e.variants)?e.variants.map((r,n)=>({label:t(r.rule)||`Variant ${n+1}`,value:r.value??{},rule:r.rule})):[]}function In(e,t){const r=e.__resolveType??"";if(!r)return null;if(I(r)){const n=e.section??e,s=n.__resolveType??r;if(!s.includes("/")&&s in t){const i=t[s]??{};return{data:{...i},resolveType:i.__resolveType??s}}return{data:{...n},resolveType:s}}if(!r.includes("/")&&r in t){const n=t[r]??{};return{data:{...n},resolveType:n.__resolveType??r}}return{data:{...e},resolveType:r}}function xr(e,t){const r=e.__resolveType??"";return I(r)?{...e,section:t}:t}function $r(e,t,r){return t.isLazy?{...e,section:r}:r}function Un(e,t,r){const n=[...e.variants??[]],s=n[t];if(!s)return e;const i=s.value??{};return n[t]={...s,value:xr(i,r)},{...e,variants:n}}function Fn(e,t,r){const n=[...e.variants??[]];return n[t]?(n[t]={...n[t],rule:r},{...e,variants:n}):e}function Nn(e,t){const r=[...e.variants??[]],n=r[t];return n?(r.splice(t+1,0,structuredClone(n)),{...e,variants:r}):e}function Yn(e,t,r){const n=[...e.variants??[]];if(t===r||t<0||r<0||t>=n.length||r>=n.length)return e;const[s]=n.splice(t,1);return s?(n.splice(r,0,s),{...e,variants:n}):e}function zn(e,t){const r=[...e.variants??[]];return r.length<=1?null:(r.splice(t,1),{...e,variants:r})}function Re(e){return{rule:je(),value:structuredClone(e)}}function St(e,t){return{...t,__resolveType:Q,variants:e}}function Wn(e){return e.isHidden!==!0&&e.isSavedBlock!==!0}function Cr(e,t){if(t.isHidden)return null;if(t.isMultivariate){const n=bt(e,t)?.variants??[],s=n[n.length-1]?.value;return s?structuredClone(s):null}if(t.isLazy){const r=e.section;return r?structuredClone(r):null}return structuredClone(e)}function Lr(e,t,r){if(t.isMultivariate||t.isHidden)return null;const n=Cr(e,t);if(!n)return null;const s=St([Re(n),Re(n)]);return t.isLazy?{...e,section:s}:s}function qn(e,t,r){if(t.isHidden||t.isSavedBlock)return null;if(t.isMultivariate){const s=bt(e,t);if(!s)return null;const i=s.variants??[],o=i[i.length-1]?.value;if(!o)return null;const l=St([...i,Re(o)],s);return{section:$r(e,t,l),newVariantIndex:i.length}}const n=Lr(e,t);return n?{section:n,newVariantIndex:1}:null}function Mr(e){return e.anyOfRefs?.some(t=>t.resolveType!==ye?!1:t.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function Kn(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return t.__resolveType===Q&&Array.isArray(t.variants)}function Et(e){return!e||typeof e!="object"||Array.isArray(e)?!1:e.__resolveType===ye}function Hn(e){if(!Et(e))return null;const t=e.variants;if(!Array.isArray(t))return null;const r=t[0]?.value;return Array.isArray(r)?r:null}function Gn(e,t){if(!Et(e))return t;const r=structuredClone(e),n=[...r.variants??[]];return n.length===0?n.push({rule:je(),value:t}):n[0]={...n[0],value:t},{...r,variants:n}}function Qn(e,t){const n=e[t]?.sections;if(!n||Array.isArray(n))return 1;const s=n;return Array.isArray(s.variants)?s.variants.length:1}function Xn(e,t,r){const s=e[t]?.sections;if(Array.isArray(s))return r===0?s:[];if(s&&typeof s=="object"){const i=s.variants;if(Array.isArray(i)){const o=i[r];return Array.isArray(o?.value)?o.value:[]}}return[]}function Zn(e,t,r){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.variants)){const s=n.variants,i=s.map(u=>Pr(u.rule,t,r)),o=i.reduce((u,_)=>(u[_]=(u[_]??0)+1,u),{}),l={};return s.map((u,_)=>{const h=i[_]??`Variant ${_+1}`,E=o[h]??1;let P=h;return E>1&&(l[h]=(l[h]??0)+1,P=`${h} ${l[h]}`),{label:P||`Variant ${_+1}`,sections:Array.isArray(u.value)?u.value:[],rule:u.rule}})}}return[]}function ee(e){return{rule:je(),value:e}}function G(e,t){return{...t,__resolveType:ye,variants:e}}function Jn(e,t){const r=structuredClone(t);if(Array.isArray(e))return G([ee(e),ee(r)]);if(e&&typeof e=="object"){const n=e;return Array.isArray(n.variants)?G([...n.variants,ee(r)],n):null}return G([ee([]),ee(r)])}function es(e){const t=e.variants;return Array.isArray(t)?t.length-1:1}function ts(e,t){const r=e[t];if(!r)return null;const n=[...e];return n.splice(t+1,0,structuredClone(r)),n}function rs(e,t){if(t.length===0)return G([],e);if(t.length===1){const r=t[0],n=r?.rule;if(!Tt(n))return G(t,e);if(Array.isArray(r?.value))return r.value}return G(t,e)}function Br(e,t,r){const n=[];for(const[i,o]of Object.entries(e))i!==t&&n.push(o);const s=new Set;for(;n.length>0;){const i=n.pop();if(!(!i||typeof i!="object")&&!s.has(i)){if(s.add(i),Array.isArray(i)){for(const o of i)n.push(o);continue}r(i);for(const o of Object.values(i))n.push(o)}}}function ns(e,t,r){if(!t)return 0;let n=0;return Br(e,t,s=>{s.__resolveType===t&&ne(s,e,r)&&n++}),n}const ss={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};function ae(e){return e.includes("/sections/")||e.includes("multivariate/section")||e===Q}function Vr(e){if(e.type==="block-ref"&&e.anyOfRefs?.length)return e.anyOfRefs.some(r=>ae(r.resolveType));if(e.anyOfRefs?.length)return e.anyOfRefs.some(r=>ae(r.resolveType));const t=e.properties?.__resolveType;return t?.type==="block-ref"&&t.anyOfRefs?.length?t.anyOfRefs.some(r=>ae(r.resolveType)):!1}function is(e){return e.type!=="block-ref"||!e.anyOfRefs?.length?!1:e.anyOfRefs.some(t=>ae(t.resolveType))}function os(e,t){if(t==="global"||t==="sections"||Mr(e))return!0;const r=e.type==="array"?e.items:void 0;return r?Vr(r):!1}const as="secret",Dr=[256,384,512],Ir=12,Ur=16,Fr=/^v1\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/;function Nr(e){let t="";for(const r of e)t+=String.fromCharCode(r);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Te(e){if(!/^[A-Za-z0-9_-]*$/.test(e)||e.length%4===1)return null;const t=e.replace(/-/g,"+").replace(/_/g,"/")+"=".repeat((4-e.length%4)%4);let r;try{r=atob(t)}catch{return null}const n=Uint8Array.from(r,s=>s.charCodeAt(0));return Nr(n)===e?n:null}function Yr(e){if(typeof e!="string"||!Fr.test(e))return null;const[,t="",r="",n=""]=e.split("."),s=Te(t),i=Te(r),o=Te(n);return!s||!i||!o||!Dr.includes(s.byteLength)||i.byteLength!==Ir||o.byteLength<Ur?null:{wrappedKey:s,iv:i,ciphertext:o}}function cs(e){return Yr(e)!==null}export{H as $,tr as A,Ee as B,ss as C,sr as D,fr as E,hn as F,He as G,on as H,Sn as I,br as J,gr as K,en as L,gn as M,tt as N,Qn as O,Jn as P,bn as Q,Qr as R,as as S,Tn as T,Vt as U,be as V,pe as W,ye as X,nn as Y,Ge as Z,Qe as _,_r as a,qt as a0,Gt as a1,Q as a2,Mr as a3,an as a4,sn as a5,os as a6,On as a7,kr as a8,wn as a9,Wn as aA,bt as aB,Dn as aC,In as aD,ht as aE,qn as aF,es as aG,Yn as aH,$r as aI,Vn as aJ,zn as aK,Nn as aL,Fn as aM,Ln as aN,Bn as aO,Cn as aP,rs as aQ,ns as aR,Un as aS,wr as aT,ts as aU,An as aV,ur as aW,Pn as aa,Zn as ab,is as ac,mn as ad,je as ae,Tt as af,Pr as ag,kn as ah,xn as ai,ne as aj,jn as ak,$n as al,zt as am,rn as an,tn as ao,cs as ap,Kn as aq,Et as ar,Hn as as,Gn as at,_n as au,Pe as av,cn as aw,ln as ax,Mn as ay,vn as az,Yt as b,ae as c,Rn as d,pn as e,dn as f,vt as g,Xr as h,Se as i,Zr as j,I as k,yn as l,un as m,at as n,En as o,Ar as p,mt as q,Er as r,Jr as s,Je as t,Xn as u,fn as v,or as w,it as x,gt as y,Ce as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,b as d,j as l}from"./index-
|
|
1
|
+
import{c as x,b as d,j as l}from"./index-nyu5TMcf.js";import{s as j}from"./User01-CPiFYda6.js";import{t as E}from"./Users01-JmhLuid8.js";const b=/^[A-Za-z0-9_.-]+$/;function h(u){const e=x.c(15),{field:p,secretById:t}=u,s=d(),n=p.value||"";if(!n)return null;let a;e[0]!==n||e[1]!==t?(a=t.get(n),e[0]=n,e[1]=t,e[2]=a):a=e[2];const c=a;if(!c){let i;e[3]!==n||e[4]!==s?(i=s("sandbox.envVarsField.missingSecret",{id:n}),e[3]=n,e[4]=s,e[5]=i):i=e[5];let f;return e[6]!==i?(f=l.jsx("span",{className:"text-destructive",children:i}),e[6]=i,e[7]=f):f=e[7],f}let o;e[8]!==c.scope?(o=l.jsx(N,{scope:c.scope}),e[8]=c.scope,e[9]=o):o=e[9];let r;e[10]!==c.name?(r=l.jsx("span",{className:"truncate font-mono",children:c.name}),e[10]=c.name,e[11]=r):r=e[11];let m;return e[12]!==o||e[13]!==r?(m=l.jsxs("span",{className:"inline-flex items-center gap-1.5 truncate",children:[o,r]}),e[12]=o,e[13]=r,e[14]=m):m=e[14],m}function N(u){const e=x.c(2),{scope:p}=u,t=p==="user"?j:E;let s;return e[0]!==t?(s=l.jsx(t,{className:"size-3 text-muted-foreground"}),e[0]=t,e[1]=s):s=e[1],s}export{h as S,b as a,N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as j,b as y,j as s,n as C,fH as E,H as F,r as N,b1 as L,B as D,af as T,D as O,q as B,s as A,v as R,aM as q,I as _,w as H,t as z}from"./index-
|
|
1
|
+
import{c as j,b as y,j as s,n as C,fH as E,H as F,r as N,b1 as L,B as D,af as T,D as O,q as B,s as A,v as R,aM as q,I as _,w as H,t as z}from"./index-nyu5TMcf.js";import{i as I}from"./AlertCircle-pSqAP7nV.js";import{s as V}from"./Plus-CT_gNsZf.js";import{s as M}from"./User01-CPiFYda6.js";import{t as G}from"./Users01-JmhLuid8.js";import{L as w}from"./label-BzK3hK82.js";import{S as J,b as K,a as Q,d as U,c as P}from"./select-DIUcSElZ.js";import{T as W}from"./textarea-FdXd1c7Z.js";import{u as X,a as Y}from"./use-secrets-11x2wAJE.js";import{R as Z}from"./require-capability-lTdVHniQ.js";import"./index-BdQq_4o_.js";import"./index-CD7dkkiu.js";import"./ChevronUp-Dj_P2ejE.js";import"./access-gate-7UV7W0BB.js";import"./capability-load-error-DTZk9b6C.js";function ee(t){const e=j.c(6),{error:r}=t,i=y();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(I,{size:16}),e[0]=c):c=e[0];let n;e[1]!==r.message||e[2]!==i?(n=i("settings.secrets.failedToLoadError",{error:r.message}),e[1]=r.message,e[2]=i,e[3]=n):n=e[3];let a;return e[4]!==n?(a=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:n})]}),e[4]=n,e[5]=a):a=e[5],a}function te(t){const e=j.c(8),{scope:r}=t,i=y(),c=r==="user"?M:G;let n;e[0]!==r||e[1]!==i?(n=i(r==="user"?"settings.secrets.scopePrivate":"settings.secrets.scopeOrganization"),e[0]=r,e[1]=i,e[2]=n):n=e[2];const a=n;let l;e[3]!==c?(l=s.jsx(c,{size:12}),e[3]=c,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(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:[l,a]}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function $(t){const e=j.c(20),{secret:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(T,{size:16,className:"text-muted-foreground"})}),e[0]=i):i=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 n;e[3]!==r.scope?(n=s.jsx(te,{scope:r.scope}),e[3]=r.scope,e[4]=n):n=e[4];let a;e[5]!==c||e[6]!==n?(a=s.jsxs("div",{className:"flex items-center gap-2",children:[c,n]}),e[5]=c,e[6]=n,e[7]=a):a=e[7];let l;e[8]!==r.description?(l=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]=l):l=e[9];let o;e[10]!==a||e[11]!==l?(o=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[i,s.jsxs("div",{className:"min-w-0",children:[a,l]})]}),e[10]=a,e[11]=l,e[12]=o):o=e[12];let d;e[13]!==r.createdAt?(d=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=d):d=e[14];let m;e[15]!==d?(m=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:d}),e[15]=d,e[16]=m):m=e[16];let x;return e[17]!==o||e[18]!==m?(x=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[o,m]}),e[17]=o,e[18]=m,e[19]=x):x=e[19],x}function se(t){const e=j.c(15),{action:r}=t,i=y();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(T,{size:20,className:"text-muted-foreground"})}),e[0]=c):c=e[0];let n;e[1]!==i?(n=i("settings.secrets.emptyTitle"),e[1]=i,e[2]=n):n=e[2];let a;e[3]!==n?(a=s.jsx("p",{className:"font-medium text-sm",children:n}),e[3]=n,e[4]=a):a=e[4];let l;e[5]!==i?(l=i("settings.secrets.emptyDescription"),e[5]=i,e[6]=l):l=e[6];let o;e[7]!==l?(o=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:l}),e[7]=l,e[8]=o):o=e[8];let d;e[9]!==a||e[10]!==o?(d=s.jsxs("div",{children:[a,o]}),e[9]=a,e[10]=o,e[11]=d):d=e[11];let m;return e[12]!==r||e[13]!==d?(m=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,d,r]}),e[12]=r,e[13]=d,e[14]=m):m=e[14],m}function k({open:t,onOpenChange:e}){const r=y(),[i,c]=N.useState("organization"),[n,a]=N.useState(""),[l,o]=N.useState(""),[d,m]=N.useState(""),x=Y();function g(){c("organization"),a(""),o(""),m("")}function p(){g(),e(!1)}async function b(u){if(u.preventDefault(),!(!n.trim()||!l))try{await x.mutateAsync({scope:i,name:n.trim(),value:l,description:d.trim()||void 0}),z.success(r("settings.secrets.secretCreated",{name:n.trim()})),p()}catch(f){z.error(f instanceof Error?f.message:r("settings.secrets.failedToCreateSecret"))}}return s.jsx(O,{open:t,onOpenChange:u=>{u?e(u):p()},children:s.jsxs(B,{className:"sm:max-w-lg",children:[s.jsxs(A,{children:[s.jsx(R,{children:r("settings.secrets.newSecretTitle")}),s.jsx(q,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:b,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-scope",children:r("settings.secrets.scopeLabel")}),s.jsxs(J,{value:i,onValueChange:u=>c(u),children:[s.jsx(K,{id:"secret-scope",children:s.jsx(Q,{})}),s.jsxs(U,{children:[s.jsx(P,{value:"organization",children:r("settings.secrets.scopeOrganizationDescription")}),s.jsx(P,{value:"user",children:r("settings.secrets.scopePrivateDescription")})]})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-name",children:r("settings.secrets.nameLabel")}),s.jsx(_,{id:"secret-name",value:n,onChange:u=>a(u.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(w,{htmlFor:"secret-value",children:r("settings.secrets.valueLabel")}),s.jsx(_,{id:"secret-value",type:"password",value:l,onChange:u=>o(u.target.value),autoComplete:"new-password",required:!0})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-description",children:r("settings.secrets.descriptionLabel")}),s.jsx(W,{id:"secret-description",value:d,onChange:u=>m(u.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(H,{children:[s.jsx(D,{type:"button",variant:"outline",onClick:p,disabled:x.isPending,children:r("settings.secrets.cancelButton")}),s.jsx(D,{type:"submit",disabled:x.isPending||!n.trim()||!l,children:x.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function re(){const t=j.c(34),e=y(),r=X(),[i,c]=N.useState(!1);let n,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c(!0),a=s.jsx(V,{size:14}),t[0]=n,t[1]=a):(n=t[0],a=t[1]);let l;t[2]!==e?(l=e("settings.secrets.newSecret"),t[2]=e,t[3]=l):l=t[3];let o;t[4]!==l?(o=s.jsx(C.Actions,{children:s.jsxs(D,{size:"sm",onClick:n,children:[a,l]})}),t[4]=l,t[5]=o):o=t[5];const d=o;if(r.length===0){let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(se,{action:!1}),t[6]=u):u=t[6];let f;t[7]!==i?(f=s.jsx(k,{open:i,onOpenChange:c}),t[7]=i,t[8]=f):f=t[8];let h;return t[9]!==d||t[10]!==f?(h=s.jsxs(s.Fragment,{children:[d,u,f]}),t[9]=d,t[10]=f,t[11]=h):h=t[11],h}let m,x,g;if(t[12]!==d||t[13]!==r||t[14]!==e){const u=r.filter(le),f=r.filter(ce),h=r.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let S;t[18]!==r.length||t[19]!==e||t[20]!==h?(S=e(h,{count:r.length}),t[18]=r.length,t[19]=e,t[20]=h,t[21]=S):S=t[21];let v;t[22]!==S?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),t[22]=S,t[23]=v):v=t[23],t[24]!==d||t[25]!==v?(m=s.jsxs("div",{className:"flex items-center justify-between",children:[v,d]}),t[24]=d,t[25]=v,t[26]=m):m=t[26],x=u.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:e("settings.secrets.sectionOrganization")}),s.jsx("div",{children:u.map(ie)})]}):null,g=f.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:e("settings.secrets.sectionPrivate")}),s.jsx("div",{children:f.map(ne)})]}):null,t[12]=d,t[13]=r,t[14]=e,t[15]=m,t[16]=x,t[17]=g}else m=t[15],x=t[16],g=t[17];let p;t[27]!==i?(p=s.jsx(k,{open:i,onOpenChange:c}),t[27]=i,t[28]=p):p=t[28];let b;return t[29]!==m||t[30]!==x||t[31]!==g||t[32]!==p?(b=s.jsxs(s.Fragment,{children:[m,x,g,p]}),t[29]=m,t[30]=x,t[31]=g,t[32]=p,t[33]=b):b=t[33],b}function ne(t){return s.jsx($,{secret:t},t.id)}function ie(t){return s.jsx($,{secret:t},t.id)}function ce(t){return t.scope==="user"}function le(t){return t.scope==="organization"}function ae(){const t=j.c(7),e=y();let r;t[0]!==e?(r=e("settings.nav.secrets"),t[0]=e,t[1]=r):r=t[1];let i;t[2]!==r?(i=s.jsx(C.Title,{children:r}),t[2]=r,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(F,{fallback:oe,children:s.jsx(N.Suspense,{fallback:s.jsx(L,{className:"h-32 w-full"}),children:s.jsx(re,{})})}),t[4]=c):c=t[4];let n;return t[5]!==i?(n=s.jsx(C,{children:s.jsx(C.Content,{children:s.jsx(C.Container,{children:s.jsxs(E,{children:[i,c]})})})}),t[5]=i,t[6]=n):n=t[6],n}function oe(t){const{error:e}=t;return s.jsx(ee,{error:e??new Error("Failed to load secrets")})}function we(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Z,{capability:"secrets:manage",area:"secrets",children:s.jsx(ae,{})}),t[0]=e):e=t[0],e}export{we as default};
|