decocms 4.582.0 → 4.583.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-D-4TK36c.js → AlertCircle-BfuEGc37.js} +1 -1
- package/dist/client/assets/{AreaChart-CkFdSy1i.js → AreaChart-DR454FhG.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B34wRVvp.js → ArrowLeft-Ccyza8AK.js} +1 -1
- package/dist/client/assets/ArrowRight-BfJPk4p9.js +1 -0
- package/dist/client/assets/{ArrowUp-Cf_Jm-4W.js → ArrowUp-Cfwuhrfj.js} +1 -1
- package/dist/client/assets/{BookOpen01-Cu2i97yZ.js → BookOpen01-vaPiqXWZ.js} +1 -1
- package/dist/client/assets/{CartesianChart-gyi9lPG0.js → CartesianChart-Vg3-F_Bi.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DplIvctj.js → CategoricalChart-gtbFaKuM.js} +1 -1
- package/dist/client/assets/{CheckCircle-D-W30b_A.js → CheckCircle-WpYwhp7A.js} +1 -1
- package/dist/client/assets/ChevronDown-Kpzb5_P-.js +1 -0
- package/dist/client/assets/{ChevronSelectorVertical-BORaKUYt.js → ChevronSelectorVertical-DNPn4Jhl.js} +1 -1
- package/dist/client/assets/ChevronUp-CwLphDxo.js +1 -0
- package/dist/client/assets/{CreditCard01-C2QL2326.js → CreditCard01-CDUEuZ6_.js} +1 -1
- package/dist/client/assets/Eye-BeTcpGN-.js +1 -0
- package/dist/client/assets/File02-D8jC2XAm.js +1 -0
- package/dist/client/assets/{Globe04-dU-sELuJ.js → Globe04-CM5K7y4B.js} +1 -1
- package/dist/client/assets/Image01-0Jwady1a.js +1 -0
- package/dist/client/assets/{Key01-zay6mYZz.js → Key01-Dqvoolzt.js} +1 -1
- package/dist/client/assets/LayoutLeft-Nn_BPz0l.js +1 -0
- package/dist/client/assets/LinkBroken01-6J7zZ1XX.js +1 -0
- package/dist/client/assets/Minimize01-Dylk6LHz.js +1 -0
- package/dist/client/assets/{Minus-BikCplhC.js → Minus-BFZz-RWg.js} +1 -1
- package/dist/client/assets/{Monitor01-DLndo6aP.js → Monitor01-ZIydqkip.js} +1 -1
- package/dist/client/assets/{Play-D_FIXuay.js → Play-CkrBckKV.js} +1 -1
- package/dist/client/assets/{Plus-D2V2-fTF.js → Plus-C8Idvwpa.js} +1 -1
- package/dist/client/assets/{ReferenceLine-BHHh91iS.js → ReferenceLine-2ZGA3m5C.js} +1 -1
- package/dist/client/assets/{SearchMd-DUXCcvZJ.js → SearchMd-G9SUUXxg.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Dak2svm7.js → ShoppingBag01-sbzM0fY9.js} +1 -1
- package/dist/client/assets/{Sun-BFXO9tQN.js → Sun-Bvg5JrAI.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-2Pb5aRtq.js → SwitchHorizontal01-BbD-SqO6.js} +1 -1
- package/dist/client/assets/Tool01-DOjdBvJ6.js +1 -0
- package/dist/client/assets/{Tooltip-D91NYjQw.js → Tooltip-buu7_uLC.js} +1 -1
- package/dist/client/assets/{Trash01-Bu2u0WVA.js → Trash01-BRIjyxCC.js} +1 -1
- package/dist/client/assets/TrendUp01-DLgSqdSd.js +1 -0
- package/dist/client/assets/{Upload01-mgXAmijc.js → Upload01-Dd-OapHB.js} +1 -1
- package/dist/client/assets/UserCheck01-DVOI9Qq6.js +1 -0
- package/dist/client/assets/{UserSquare-DE5Uc7_R.js → UserSquare-CRBGeews.js} +1 -1
- package/dist/client/assets/{Users01-C3CmvyvK.js → Users01-bZ_S-kH7.js} +1 -1
- package/dist/client/assets/{XClose-l5OHkJlr.js → XClose-CWGS9q3D.js} +1 -1
- package/dist/client/assets/{Zap-DN6rNQ1C.js → Zap-BxaAY56U.js} +1 -1
- package/dist/client/assets/{access-gate-CLxhnjg9.js → access-gate-BpukTmFQ.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-ZYFX175e.js → add-connection-dialog-BfsrivZp.js} +1 -1
- package/dist/client/assets/agent-app-ZmiqpLI8.js +1 -0
- package/dist/client/assets/agent-assets-CxDlSc-F.js +1 -0
- package/dist/client/assets/agent-automation-Cvq2MsBo.js +20 -0
- package/dist/client/assets/agent-automations-DqPMEPTu.js +1 -0
- package/dist/client/assets/agent-blog-CBUzxo-R.js +2 -0
- package/dist/client/assets/agent-blog-post-Bi0pzlIG.js +2 -0
- package/dist/client/assets/agent-calendar-D817wzif.js +1 -0
- package/dist/client/assets/{agent-capabilities-DWTuevMP.js → agent-capabilities-COfZW6Pr.js} +1 -1
- package/dist/client/assets/agent-connect-sources-DEAtqQDn.js +1 -0
- package/dist/client/assets/agent-deck-DLJ_JEHY.js +1 -0
- package/dist/client/assets/agent-e2e-B_mxpyua.js +1 -0
- package/dist/client/assets/agent-experiments-CC4vS2Ak.js +1 -0
- package/dist/client/assets/agent-file-DaY3pEIy.js +1 -0
- package/dist/client/assets/agent-hosting-CNynwqai.js +1 -0
- package/dist/client/assets/agent-icon-DE4TWlDl.js +1 -0
- package/dist/client/assets/agent-library-53yJ_N0C.js +1 -0
- package/dist/client/assets/agent-library-file-CmdRdcgJ.js +1 -0
- package/dist/client/assets/agent-overview-Bjahi54k.js +1 -0
- package/dist/client/assets/agent-releases-De-C-EMX.js +2 -0
- package/dist/client/assets/agent-settings-Bmfo6yEF.js +1 -0
- package/dist/client/assets/{agent-site-editor-LnCUJUlb.js → agent-site-editor-B5E5lU9u.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-BzQzaZAE.js +2 -0
- package/dist/client/assets/agent-site-editor-content-D03NaTwn.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-wStmeJD1.js +1 -0
- package/dist/client/assets/agent-view-Dh2W4gDj.js +1 -0
- package/dist/client/assets/agent-view-guard-25E2XJRr.js +1 -0
- package/dist/client/assets/ai-providers-E4UhWu6J.js +1 -0
- package/dist/client/assets/{alert-I1_CrCmh.js → alert-GV95Dsn9.js} +1 -1
- package/dist/client/assets/analytics-sections-C9-8NbQC.js +1 -0
- package/dist/client/assets/api-keys-BU9wHAPs.js +1 -0
- package/dist/client/assets/api-keys-C8ArQ5p_.js +1 -0
- package/dist/client/assets/app-editor-kEra9PRa.js +1 -0
- package/dist/client/assets/{asset-utils-B-KuVMuY.js → asset-utils-DWvcPbEZ.js} +1 -1
- package/dist/client/assets/{auth-catchall-DXrxcWBf.js → auth-catchall-Dy37bIqg.js} +1 -1
- package/dist/client/assets/{auth-entry-NtnP78Ol.js → auth-entry-BHlmJEBv.js} +1 -1
- package/dist/client/assets/{auth-Dh-2aYdX.js → auth-gL3R1YGn.js} +1 -1
- package/dist/client/assets/{auth-split-layout-FNYje5VL.js → auth-split-layout-ckQyQHcL.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DOEkiQ_u.js → authenticate-and-persist-oauth-C7oT67KU.js} +1 -1
- package/dist/client/assets/automation-list-row-DriFJJzl.js +1 -0
- package/dist/client/assets/{automation-runs-C2quHBYd.js → automation-runs-C37do2Pw.js} +1 -1
- package/dist/client/assets/automations-tDs_UhVP.js +1 -0
- package/dist/client/assets/{badge-BGmWPELn.js → badge-BG-k6t3T.js} +1 -1
- package/dist/client/assets/{block-document-CuBMSVVn.js → block-document-pPtike34.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-MbfgZRXf.js → blocks-preview-workspace-context-BBjk2tme.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DdvH_zgH.js → blocks-tab-states-GP0NCNYs.js} +1 -1
- package/dist/client/assets/{blog-preview-url-BoKhflQE.js → blog-preview-url-CwSXxQWr.js} +1 -1
- package/dist/client/assets/blog-schema-DOB707mb.js +1 -0
- package/dist/client/assets/{blog-source-gate-ChrbmkH2.js → blog-source-gate-3rG_0gJI.js} +1 -1
- package/dist/client/assets/blog-view-gate-Be4DtolQ.js +1 -0
- package/dist/client/assets/buckets-BZrhNTRn.js +1 -0
- package/dist/client/assets/{build-improve-prompt-doc-ZkNhFh73.js → build-improve-prompt-doc-DVbQXrhG.js} +1 -1
- package/dist/client/assets/calendar-CcuaFZRF.js +1 -0
- package/dist/client/assets/{capability-load-error-CmORVXZR.js → capability-load-error-Bcs21XUc.js} +1 -1
- package/dist/client/assets/category-editor-CnJqxifY.js +1 -0
- package/dist/client/assets/{category-tree-ArvPlYX5.js → category-tree-D2ejZxYL.js} +1 -1
- package/dist/client/assets/{chart-q3aX-DjJ.js → chart-B2B-jcI-.js} +1 -1
- package/dist/client/assets/chat-context-CiT7AzBS.js +43 -0
- package/dist/client/assets/{chat-draft-BsgbOfj3.js → chat-draft-BNZV2YjB.js} +1 -1
- package/dist/client/assets/{checkbox-JFndFNuZ.js → checkbox-DSC8VbDf.js} +1 -1
- package/dist/client/assets/choose-editor-uAW7DjQg.js +1 -0
- package/dist/client/assets/{cli-auth-success-CTMmXIbK.js → cli-auth-success-B897Xynp.js} +1 -1
- package/dist/client/assets/cms-settings-editor-B4pAxgqZ.js +1 -0
- package/dist/client/assets/{cms-store-drafts-Cp0f_S-1.js → cms-store-drafts-CtClpzKs.js} +1 -1
- package/dist/client/assets/{collapsible-B4lmmxiu.js → collapsible-DrV9qsGN.js} +1 -1
- package/dist/client/assets/collection-detail-DucMHrT0.js +1 -0
- package/dist/client/assets/{collection-display-button-L-gJFCO8.js → collection-display-button-BHyM7wC2.js} +1 -1
- package/dist/client/assets/{collection-search-j-a5PWZI.js → collection-search-BbCHAL7t.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BbdjpVWW.js → collection-table-wrapper-BlLHObjj.js} +1 -1
- package/dist/client/assets/{collection-tabs-DHj6Urx3.js → collection-tabs-BXeEDC1Y.js} +1 -1
- package/dist/client/assets/{combobox-CBPCAqF_.js → combobox-DugO3-8Q.js} +1 -1
- package/dist/client/assets/{command-DCUf4RGf.js → command-Bo6EGcaE.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-C-0h9QLB.js → companion-mcps-section-CsXLIG2Z.js} +1 -1
- package/dist/client/assets/config-CdVwRL_a.js +1 -0
- package/dist/client/assets/{client-icons-CvP_xTjP.js → connect-key--cfk-fLm.js} +1 -1
- package/dist/client/assets/{connect-layout-BiGf7x_Q.js → connect-layout-BPppRISp.js} +1 -1
- package/dist/client/assets/connect-lufub1FU.js +9 -0
- package/dist/client/assets/{connect-source-dialog-C9cU78Fo.js → connect-source-dialog-CfsFTEbG.js} +1 -1
- package/dist/client/assets/{connection-CG7u8AbM.js → connection-BLQs5hMz.js} +1 -1
- package/dist/client/assets/{connection-card-C5XxA3Cv.js → connection-card-vLs08dR6.js} +1 -1
- package/dist/client/assets/connection-detail-CLkPYY1x.js +1 -0
- package/dist/client/assets/{connection-form-helpers-B2Vjms_B.js → connection-form-helpers-BSIh8Ep0.js} +1 -1
- package/dist/client/assets/connection-slug-CmPPcsjf.js +1 -0
- package/dist/client/assets/connections-C4ZbA0RY.js +1 -0
- package/dist/client/assets/{content-tab-Ct80gvFF.js → content-tab-C-pzFX10.js} +4 -4
- package/dist/client/assets/context-3bSluoDN.js +1 -0
- package/dist/client/assets/{context-menu-B7ywEyjT.js → context-menu-CzIORBDb.js} +1 -1
- package/dist/client/assets/{context-shell-C6vXZZrB.js → context-shell-3lL8N_R5.js} +4 -4
- package/dist/client/assets/{create-organization-dialog-CfD4gWck.js → create-organization-dialog-k086v-9Q.js} +1 -1
- package/dist/client/assets/daily-pulse-P6H0d8QI.js +1 -0
- package/dist/client/assets/{delete-copy-CPJVDDbB.js → delete-copy-BQaedVkX.js} +1 -1
- package/dist/client/assets/{device-hint-CwVsFX34.js → device-hint-CvnqGHIy.js} +1 -1
- package/dist/client/assets/discover-qzwfuJLu.js +1 -0
- package/dist/client/assets/{domain-settings-Dgpsy8Ru.js → domain-settings-y3u2iu2W.js} +1 -1
- package/dist/client/assets/{drawer-DRyRdlMw.js → drawer-CarQd6Jb.js} +1 -1
- package/dist/client/assets/{editor-FceeQfS7.js → editor-DYk_2MJQ.js} +1 -1
- package/dist/client/assets/{editor-classes-D9FopdtJ.js → editor-classes-DVIoQu74.js} +1 -1
- package/dist/client/assets/{empty-message-ILKuHEfQ.js → empty-message-C90DlePv.js} +1 -1
- package/dist/client/assets/{empty-state-BmCMJHsS.js → empty-state-B67nwURy.js} +1 -1
- package/dist/client/assets/{empty-state-GIO1CyUk.js → empty-state-XAK3RjVy.js} +1 -1
- package/dist/client/assets/experiments-tab-choice-D8ZqCESL.js +1 -0
- package/dist/client/assets/{extract-connection-data-BKW6jN3t.js → extract-connection-data-D6CjTXbp.js} +1 -1
- package/dist/client/assets/feature-gate-CCvZeJRu.js +1 -0
- package/dist/client/assets/{feature-paywall-DrXSdvNQ.js → feature-paywall-DzmzZ5s3.js} +1 -1
- package/dist/client/assets/file-explorer-BqxAkXtr.js +2 -0
- package/dist/client/assets/{file-preview-mmsBTOqH.js → file-preview-C0yEEExh.js} +1 -1
- package/dist/client/assets/file-share-button-CowSSkLB.js +3 -0
- package/dist/client/assets/{file-type-icon-CLz3IVP9.js → file-type-icon-CEP8k4gh.js} +1 -1
- package/dist/client/assets/folder-icon-CmtFeppJ.js +1 -0
- package/dist/client/assets/{form-B_7ux469.js → form-8GAe5FIZ.js} +1 -1
- package/dist/client/assets/{frame-navigation-BFx5wDUC.js → frame-navigation-BpI5RQJq.js} +1 -1
- package/dist/client/assets/gateway-client-BqPME1T5.js +1 -0
- package/dist/client/assets/general-DbhKzHt5.js +1 -0
- package/dist/client/assets/{github-icon-1x8ZI6aO.js → github-icon-BH4kK9If.js} +1 -1
- package/dist/client/assets/{held-block-view-CwWI05W1.js → held-block-view-MI6LUwjK.js} +3 -3
- package/dist/client/assets/home-_NmLJi-9.js +1 -0
- package/dist/client/assets/home-overview-CTEEkh3w.js +1 -0
- package/dist/client/assets/{hosted-reconcile-J9x487tr.js → hosted-reconcile-BbIfIwl1.js} +1 -1
- package/dist/client/assets/{icon-button-DoWTRkdN.js → icon-button-Dd8gTd4-.js} +1 -1
- package/dist/client/assets/index-B-OtHlgY.js +4 -0
- package/dist/client/assets/{index-CITQS6NN.js → index-BRHz7VD8.js} +1 -1
- package/dist/client/assets/{index-BWer9hfc.js → index-BY10zRfl.js} +1 -1
- package/dist/client/assets/index-B_-z8Lrt.js +1 -0
- package/dist/client/assets/{index-CFoO-AVG.js → index-C17JTAPe.js} +2 -2
- package/dist/client/assets/{index-249EXZ6B.js → index-CADsC-mK.js} +2 -2
- package/dist/client/assets/{index-rmNLmONI.js → index-CYjM_f4V.js} +1 -1
- package/dist/client/assets/{index-BcW9W_hK.js → index-CZQ-Wgjf.js} +1 -1
- package/dist/client/assets/{index-D9wygnbU.js → index-CwntHk8S.js} +13 -13
- package/dist/client/assets/index-DClpdtOI.js +1 -0
- package/dist/client/assets/{index-3FmhyOXc.js → index-DEOQXzn-.js} +1 -1
- package/dist/client/assets/{index-BW4kEj0q.js → index-DIHnNoyA.js} +1 -1
- package/dist/client/assets/{index-DpIy5MwJ.js → index-DPCC7KEx.js} +1 -1
- package/dist/client/assets/{index-OqiiY1Yn.js → index-Dez-6rcd.js} +1 -1
- package/dist/client/assets/index-Dkr4Q9bE.js +1 -0
- package/dist/client/assets/{index-mxlRzmxc.js → index-Do3hK3is.js} +1 -1
- package/dist/client/assets/{index-B-Ig6PCZ.js → index-km18CQ4q.js} +1 -1
- package/dist/client/assets/index-pbgcO64n.css +1 -0
- package/dist/client/assets/{index-redirect-CJIC9mkE.js → index-redirect-CTR6WNPG.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-oJohchTM.js → infiniteQueryObserver-DdeQTeaz.js} +1 -1
- package/dist/client/assets/infra-billing-tXzfTwHJ.js +1 -0
- package/dist/client/assets/input-CxFJosPu.js +17 -0
- package/dist/client/assets/{input-BKW9wk8M.js → input-DXyNd1dE.js} +1 -1
- package/dist/client/assets/{integration-icon-BPaLmZuD.js → integration-icon-BCAGJ22m.js} +1 -1
- package/dist/client/assets/item-actions-B4f3ZYnI.js +1 -0
- package/dist/client/assets/{jira-icon-DjiAFXC-.js → jira-icon-B0PrtQPW.js} +1 -1
- package/dist/client/assets/{label-CzgbmbQw.js → label-BFX3DXnu.js} +1 -1
- package/dist/client/assets/{layout-CUqOdrCT.js → layout-GEd6141D.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-D_Hj5ND0.js → legacy-admin-welcome-dialog-CjbAHNU0.js} +1 -1
- package/dist/client/assets/legacy-agents-deep-BRMRDtxS.js +1 -0
- package/dist/client/assets/{legacy-main-redirect-DS2vLtmG.js → legacy-main-redirect-Cpcnm12P.js} +1 -1
- package/dist/client/assets/library-GlSV21no.js +1 -0
- package/dist/client/assets/{library-tab-CH65a0_i.js → library-tab-DiZQg1qQ.js} +2 -2
- package/dist/client/assets/{login-BB30sN9A.js → login-DUNIcOhP.js} +1 -1
- package/dist/client/assets/{markdown-Ck8Lzm4U.js → markdown-sWsq0zMA.js} +5 -5
- package/dist/client/assets/{mcp-app-renderer-Bo8RWBFo.js → mcp-app-renderer-DSMzeo3v.js} +1 -1
- package/dist/client/assets/{mcp-oauth-D2OwpRg0.js → mcp-oauth-Cal4irlG.js} +1 -1
- package/dist/client/assets/{mcp-oauth-3agwb6e9.js → mcp-oauth-DFWIYz5V.js} +1 -1
- package/dist/client/assets/members-D9DcuyAK.js +1 -0
- package/dist/client/assets/memory-DYN3365K.js +7 -0
- package/dist/client/assets/mock-board-llSJ1DSL.js +10 -0
- package/dist/client/assets/{monaco-editor-Dfffv6IO.js → monaco-editor-4_N5zBDQ.js} +1 -1
- package/dist/client/assets/{monitoring-CHShsrek.js → monitoring-5YgUKCBd.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-D7LX-cE_.js → monitoring-stats-row-BCaHkQz9.js} +1 -1
- package/dist/client/assets/multi-select-B4K-daTY.js +1 -0
- package/dist/client/assets/{mustache-DTIKPLCX.js → mustache-B8t03rZ4.js} +1 -1
- package/dist/client/assets/{named-rule-step-DvAWHM_a.js → named-rule-step-P0BFUtVs.js} +1 -1
- package/dist/client/assets/named-rule-view-CvRYAekO.js +1 -0
- package/dist/client/assets/new-project-dialog-DI67z-Vr.js +1 -0
- package/dist/client/assets/new-project-store-DoliA5Iq.js +1 -0
- package/dist/client/assets/{oauth-callback-BAHxkyHL.js → oauth-callback-DtdbhW3N.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-0HSc9az8.js → oauth-callback-ai-provider-iNwVQAC1.js} +1 -1
- package/dist/client/assets/{oauth-consent-B6XJ_dp8.js → oauth-consent-Co0jE424.js} +1 -1
- package/dist/client/assets/{onboarding-CpC02gHH.js → onboarding-Dn4ndntc.js} +1 -1
- package/dist/client/assets/openai-conversation-D43N7JcR.js +3 -0
- package/dist/client/assets/{optimistic-project-sidebar-views-DEmaeFuw.js → optimistic-project-sidebar-views-PUKP14F8.js} +1 -1
- package/dist/client/assets/order-monitor-day-fHekYy64.js +1 -0
- package/dist/client/assets/{organization-choice-DJG3VWvN.js → organization-choice-Ctd80SL2.js} +1 -1
- package/dist/client/assets/orgs-BQeWnD4l.js +1 -0
- package/dist/client/assets/own-accounts-section-CwzdBIu0.js +1 -0
- package/dist/client/assets/pair-Du2wOAPA.js +48 -0
- package/dist/client/assets/{parse-sections-C45nXdFm.js → parse-sections-DUEfhNb0.js} +4 -4
- package/dist/client/assets/plan-BDh0er6r.js +1 -0
- package/dist/client/assets/{plan-ladder-ClYEg_1y.js → plan-ladder-cJHOFEt_.js} +1 -1
- package/dist/client/assets/{plan-usage-card-DmepxGNe.js → plan-usage-card-DnCWaNBs.js} +1 -1
- package/dist/client/assets/{popover-DbdL41A-.js → popover-XZWwzjJe.js} +1 -1
- package/dist/client/assets/post-calendar-Cq2VElZ4.js +1 -0
- package/dist/client/assets/{post-editor-CVR7WxMp.js → post-editor-ChZHYnmE.js} +2 -2
- package/dist/client/assets/preview-content-Ct9U0F_F.js +1 -0
- package/dist/client/assets/{preview-dialog-CAVf21hW.js → preview-dialog-BlN_MeAY.js} +1 -1
- package/dist/client/assets/{preview-panel-DcRdLvZD.js → preview-panel-CMaIBxrS.js} +1 -1
- package/dist/client/assets/preview-tab-rp6yyGU1.js +557 -0
- package/dist/client/assets/product-picker-dialog-Cp5iroCv.js +1 -0
- package/dist/client/assets/profile-BvhSJiAV.js +1 -0
- package/dist/client/assets/project-app-view-BPtWGCfo.js +1 -0
- package/dist/client/assets/project-apps-CDSLxQ6C.js +1 -0
- package/dist/client/assets/{project-icon-D3VravgB.js → project-icon-C_Qws_Ah.js} +1 -1
- package/dist/client/assets/{project-index-CZL_Bcej.js → project-index-dmu51Z_5.js} +1 -1
- package/dist/client/assets/project-reports-BVUPVqwF.js +1 -0
- package/dist/client/assets/project-tasks-i5QwXcB1.js +1 -0
- package/dist/client/assets/projects-9cB_xTYP.js +1 -0
- package/dist/client/assets/{projects-empty-state-ChOzUybQ.js → projects-empty-state-ZoaV8gjs.js} +1 -1
- package/dist/client/assets/{prompts-Cs8yzamL.js → prompts-DfPwtsSz.js} +1 -1
- package/dist/client/assets/record-editor-BQX3fl3B.js +1 -0
- package/dist/client/assets/redirect-editor-DmgDoBZW.js +1 -0
- package/dist/client/assets/{reports-DDPJwQn7.js → reports-B7Mq5ojT.js} +1 -1
- package/dist/client/assets/reports-Dmcxcdt8.js +1 -0
- package/dist/client/assets/reports-onboarding-DnVjGniS.js +1 -0
- package/dist/client/assets/reports-tab-D7WrLBuD.js +2 -0
- package/dist/client/assets/repositories-B6qJORdw.js +1 -0
- package/dist/client/assets/repositories-CKo-J8oc.js +1 -0
- package/dist/client/assets/{repository-binding-C2KfYomQ.js → repository-binding-Cqb4hBI0.js} +1 -1
- package/dist/client/assets/{repository-picker-BQc3OAcG.js → repository-picker-B967M4cj.js} +1 -1
- package/dist/client/assets/{require-capability-BQcAZUwY.js → require-capability-CnRgBqvn.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BszE36jh.js → required-auth-layout-DwZV69de.js} +1 -1
- package/dist/client/assets/{reset-password-BVb2l5We.js → reset-password-DBlLRH7P.js} +1 -1
- package/dist/client/assets/resizable-Ddu9Pik_.js +1 -0
- package/dist/client/assets/resolve-tab-icon-C5v6XuFJ.js +1 -0
- package/dist/client/assets/{review-settings-BacW9etz.js → review-settings-_NtVHX9D.js} +1 -1
- package/dist/client/assets/{role-color-DUV_b0hq.js → role-color-CYCY1ZHM.js} +1 -1
- package/dist/client/assets/roles-BOIysbZW.js +1 -0
- package/dist/client/assets/route-B2eUAr3E.js +1 -0
- package/dist/client/assets/route-DjNFlT9m.js +1 -0
- package/dist/client/assets/route-l3dfZAcw.js +1 -0
- package/dist/client/assets/route-page-header-x4fiBRQK.js +1 -0
- package/dist/client/assets/{sandbox-git-api-Bxa573Th.js → sandbox-git-api-CX3IYPAX.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-oW4CAFSP.js → sandbox-lifecycle-context-CsmYXarj.js} +1 -1
- package/dist/client/assets/save-status-DM-afM9Q.js +1 -0
- package/dist/client/assets/{schema-gnANfn26.js → schema-Bh0CFZUA.js} +1 -1
- package/dist/client/assets/{schema-DqcJORUD.js → schema-CsGAsuNy.js} +1 -1
- package/dist/client/assets/{scroll-area-mLdPDQZk.js → scroll-area-DkuLv9J_.js} +1 -1
- package/dist/client/assets/{search-input-DbkaTSNM.js → search-input-Yj0UUhbr.js} +1 -1
- package/dist/client/assets/{search-toggle-yUKGBwRs.js → search-toggle-CTqn74j5.js} +1 -1
- package/dist/client/assets/{secret-picker-C8Xe_qFX.js → secret-picker-FNSDTzDT.js} +1 -1
- package/dist/client/assets/secrets-DnkJAwly.js +1 -0
- package/dist/client/assets/{section-array-field-ah4STHLi.js → section-array-field-DbmoEjb3.js} +1 -1
- package/dist/client/assets/sections-Bk5O8laV.js +1 -0
- package/dist/client/assets/sections-editor-BYa3JqlT.js +1 -0
- package/dist/client/assets/select-DqZVtjvu.js +1 -0
- package/dist/client/assets/{select-model-CfeDs1cS.js → select-model-D_3F7ch9.js} +1 -1
- package/dist/client/assets/{seo-editor-BtwYLJ0f.js → seo-editor-alLFkZ3V.js} +1 -1
- package/dist/client/assets/{separator-D7JbMKRF.js → separator-DOH2DVT3.js} +1 -1
- package/dist/client/assets/session-runtime-DaEm9VzJ.js +1 -0
- package/dist/client/assets/settings-tab-Dnn9Ngte.js +1 -0
- package/dist/client/assets/{sheet-mGT77pmX.js → sheet-B3BCtfXu.js} +1 -1
- package/dist/client/assets/shell-layout-BMy93BCc.js +1 -0
- package/dist/client/assets/{site-draft-actions-BWcvrVJJ.js → site-draft-actions-C2zLtAMz.js} +5 -5
- package/dist/client/assets/site-draft-view-ikG8CMuB.js +1 -0
- package/dist/client/assets/site-editor-B8VlT5Kv.js +1 -0
- package/dist/client/assets/site-editor-toast-GAJZE2A0.js +1 -0
- package/dist/client/assets/skills-dIhMA0Ze.js +1 -0
- package/dist/client/assets/{slider-_L8nnrvM.js → slider-DirLi5JL.js} +1 -1
- package/dist/client/assets/{sortable.esm-Dw4xFH50.js → sortable.esm-B3zbNG6q.js} +1 -1
- package/dist/client/assets/sso-tZNmyRgp.js +1 -0
- package/dist/client/assets/{suggestion-CV5YiylC.js → suggestion-bCd1m59t.js} +1 -1
- package/dist/client/assets/{super-agent-icon-tF39Whlb.js → super-agent-icon-AJ6ZRe5V.js} +1 -1
- package/dist/client/assets/{switch-B0tv99B3.js → switch-BviC1co2.js} +1 -1
- package/dist/client/assets/{synced-repos-BOeEsDnA.js → synced-repos-DsEdkMaA.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-BgVegBho.js → tab-icon-glyph-DkjrfS6l.js} +1 -1
- package/dist/client/assets/{table-CV4RoALe.js → table-DX15DDx1.js} +1 -1
- package/dist/client/assets/{tabs-DgvT8Pj5.js → tabs-BiFBpWbA.js} +1 -1
- package/dist/client/assets/task-board-DD2iUGL4.js +1 -0
- package/dist/client/assets/{core.esm-B-QMfivo.js → task-key-DP7js_2-.js} +2 -2
- package/dist/client/assets/task-route-Bfb6XWlb.js +1 -0
- package/dist/client/assets/{task-status-B4zkOwKe.js → task-status-CBWakThc.js} +1 -1
- package/dist/client/assets/taskboard-analytics-B5XiM0gZ.js +1 -0
- package/dist/client/assets/{tasks-B0KKqEdX.js → tasks-BPwrQv5-.js} +3 -3
- package/dist/client/assets/tasks-ip1BqsyR.js +1 -0
- package/dist/client/assets/{textarea-DM0e8Qi7.js → textarea-BoSVR1xB.js} +1 -1
- package/dist/client/assets/thread-analytics-B3wSdPFK.js +1 -0
- package/dist/client/assets/thread-button-CIHD7120.js +1 -0
- package/dist/client/assets/{thread-intent-CaGJ1BhS.js → thread-intent-DpzwhK2y.js} +6 -6
- package/dist/client/assets/thread-route-Bdw4g7Hg.js +1 -0
- package/dist/client/assets/thread-route-D4mea9ep.js +1 -0
- package/dist/client/assets/thread-sheet-body-C1_HCALD.js +1 -0
- package/dist/client/assets/time-range-picker-B9_5lQqT.js +1 -0
- package/dist/client/assets/{toggle-group-Cu1mfNzX.js → toggle-group-l7lV2Oqp.js} +1 -1
- package/dist/client/assets/{tool-set-selector-CKA5xrb6.js → tool-set-selector-BQISxiF9.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-VHIAKSnc.js → toolbar-icon-button-CflJ2Qid.js} +1 -1
- package/dist/client/assets/{tooltip-CVxFMGcO.js → tooltip-BTd3W-2Z.js} +1 -1
- package/dist/client/assets/{tooltipContext-BptH8Zj7.js → tooltipContext-De8eALzu.js} +1 -1
- package/dist/client/assets/{track-vSgJeDn7.js → track-BBHYiJkY.js} +1 -1
- package/dist/client/assets/{types-Bz47I97G.js → types-C8b3acwX.js} +1 -1
- package/dist/client/assets/{url-slug-BR0vmMxN.js → url-slug-gNlq1cKV.js} +1 -1
- package/dist/client/assets/{usage-stats-Dr1e2NVB.js → usage-stats-Bk_1jh1-.js} +2 -2
- package/dist/client/assets/{use-ai-providers-DTX4zdTq.js → use-ai-providers-Cya2RotC.js} +1 -1
- package/dist/client/assets/use-api-keys-BdlPKuv4.js +1 -0
- package/dist/client/assets/use-apply-named-rule-CcoLpt-_.js +1 -0
- package/dist/client/assets/use-ask-in-chat-B_ARVX9A.js +1 -0
- package/dist/client/assets/{use-automations-8WbgZhli.js → use-automations-CerQ9Qaj.js} +1 -1
- package/dist/client/assets/{use-autosave-rNMlQ4zg.js → use-autosave-CQa7WbXM.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-BedqZgtc.js +1 -0
- package/dist/client/assets/use-blog-view-9s3Vkx1q.js +1 -0
- package/dist/client/assets/use-chat-layout-state-CWt5k1nY.js +1 -0
- package/dist/client/assets/{use-cms-publish-actions-B-aKIQS2.js → use-cms-publish-actions-7QluCfa8.js} +4 -4
- package/dist/client/assets/use-connect-companion-B8Oqj7MQ.js +1 -0
- package/dist/client/assets/{use-connection-Lv1GX4XO.js → use-connection-2s3z_IKD.js} +1 -1
- package/dist/client/assets/{use-content-sync-CSFDJJ2I.js → use-content-sync-DxzP8nN9.js} +1 -1
- package/dist/client/assets/{use-copy-B2pKd0TM.js → use-copy-sOY8Yuot.js} +1 -1
- package/dist/client/assets/use-current-view-EjRzX02x.js +1 -0
- package/dist/client/assets/{use-date-fns-locale-D1sid-Du.js → use-date-fns-locale-DjDbgiCF.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-yF8PgiVs.js → use-debounced-autosave--lHIRoNY.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BAQPYGcf.js → use-debounced-value-RJW46-1q.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DHv1UkQ9.js → use-deco-credits-d4Nbb0l0.js} +1 -1
- package/dist/client/assets/use-decopilot-events-BGpwG8Pb.js +1 -0
- package/dist/client/assets/use-delete-block-BR5smTsV.js +1 -0
- package/dist/client/assets/{use-delete-connection-TX_vnMiY.js → use-delete-connection-DHkW3H9t.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BTOwWmd_.js → use-deployment-admin-j92yIioi.js} +1 -1
- package/dist/client/assets/{use-entitlements-DpylFAUx.js → use-entitlements-DtyegfyM.js} +1 -1
- package/dist/client/assets/use-fast-preview-draft-url-B4HFa9pK.js +1 -0
- package/dist/client/assets/{use-file-configs-CG-6B_hv.js → use-file-configs-CzyibAGV.js} +1 -1
- package/dist/client/assets/{use-id-selection-DufR_IM-.js → use-id-selection-DSQKok9P.js} +1 -1
- package/dist/client/assets/use-in-settings-DLJEfljS.js +1 -0
- package/dist/client/assets/{use-inbox-feed-C9Mwe9dc.js → use-inbox-feed-BNnBKFlA.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-uPmbLXy7.js → use-infinite-scroll-D1tYrKq7.js} +1 -1
- package/dist/client/assets/{use-join-requests-C9270cag.js → use-join-requests-CSjMfH5p.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-CllMGKzI.js +1 -0
- package/dist/client/assets/use-mcp-auth-status-DS0pbV57.js +1 -0
- package/dist/client/assets/{use-mcp-client-BZnIK-Y4.js → use-mcp-client-Cvc3WWPF.js} +2 -2
- package/dist/client/assets/{use-mcp-prompts-Dtbvjt4h.js → use-mcp-prompts-Ck1uv43A.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-ubXBMl6b.js → use-mcp-tools-BIzewITl.js} +1 -1
- package/dist/client/assets/{use-mobile-C5u1Qie9.js → use-mobile-CG2XwDbe.js} +1 -1
- package/dist/client/assets/{use-move-blocks-FpNNMdYb.js → use-move-blocks-Dv6zyDyx.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DtRhmnlg.js → use-navigate-to-agent-BFBISUMc.js} +1 -1
- package/dist/client/assets/use-never-published-D3zJmakm.js +1 -0
- package/dist/client/assets/{use-org-fs-Cd0Vep23.js → use-org-fs-BfE7L8cf.js} +1 -1
- package/dist/client/assets/use-org-notice-DghJzmC_.js +1 -0
- package/dist/client/assets/{use-org-repo-syncs-SJRy46mf.js → use-org-repo-syncs-CU3MGWk9.js} +1 -1
- package/dist/client/assets/{use-org-sso-COBiertF.js → use-org-sso-C8BMUr72.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CRwm0586.js → use-organization-settings-Ddjh427l.js} +1 -1
- package/dist/client/assets/use-panel-navigate-V2MXWXLu.js +1 -0
- package/dist/client/assets/use-project-native-view-presence-EdJBeOw9.js +1 -0
- package/dist/client/assets/use-project-scope-COzEo5Zz.js +1 -0
- package/dist/client/assets/use-recent-apps-BpR_nbgz.js +1 -0
- package/dist/client/assets/{use-reports-diagnostic-DgRjbmEf.js → use-reports-diagnostic-DYf7sFCj.js} +1 -1
- package/dist/client/assets/use-sandbox-events-cbWqZuIm.js +2 -0
- package/dist/client/assets/{use-secrets-jhGB5cvg.js → use-secrets-BamKWPUs.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CxqwLEJO.js → use-section-preview-base-Cy_X_Jjl.js} +1 -1
- package/dist/client/assets/use-sidebar-collapsed-CGkkkrTj.js +1 -0
- package/dist/client/assets/{use-tags-CBIw_9wj.js → use-tags-staoqXQp.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DVdYIVtB.js → use-task-board-analytics-C5Dsg-uV.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-KjQVKJGy.js → use-task-board-item-prs-DsFjq28v.js} +1 -1
- package/dist/client/assets/use-task-board-items-OgSDu-ag.js +1 -0
- package/dist/client/assets/{use-task-board-prompts-5OmBV-BO.js → use-task-board-prompts-Bn4-yS6Z.js} +1 -1
- package/dist/client/assets/{use-task-metadata-xW_FzRqh.js → use-task-metadata-Bc8o5Sts.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CN7E968n.js → use-thread-outputs-Co5bznxQ.js} +1 -1
- package/dist/client/assets/use-view-draft-kind-BdwsMdex.js +1 -0
- package/dist/client/assets/use-voice-input-CwLNuWlo.js +1 -0
- package/dist/client/assets/useInfiniteQuery-BagPKS5m.js +1 -0
- package/dist/client/assets/{useQueries-BruvTC1j.js → useQueries-BjVZ4kPO.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BUmkwIx5.js +1 -0
- package/dist/client/assets/{users-ByNwcAJI.js → users-CPRHIyd2.js} +1 -1
- package/dist/client/assets/utils-DPEBLDgi.js +4 -0
- package/dist/client/assets/variant-calendar-Dlw46bNO.js +1 -0
- package/dist/client/assets/{variant-matcher-override-CbZkMadE.js → variant-matcher-override-ChW3ijK5.js} +1 -1
- package/dist/client/assets/{view-header-tBobsCC8.js → view-header-D4oknAV1.js} +1 -1
- package/dist/client/assets/virtual-mcp-nhrh3mtw.js +1 -0
- package/dist/client/assets/{watch-sse-pool-HKLsGoUY.js → watch-sse-pool-CTgVk3NA.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/ChevronUp-s7k4XU_p.js +0 -1
- package/dist/client/assets/LinkBroken01-D4Fzd5qu.js +0 -1
- package/dist/client/assets/Tool01-s83oNDoy.js +0 -1
- package/dist/client/assets/agent-app-Cimvv1NW.js +0 -1
- package/dist/client/assets/agent-assets-CXtexOn6.js +0 -1
- package/dist/client/assets/agent-automation-DnUzn_Xt.js +0 -20
- package/dist/client/assets/agent-automations-D4hO7Hf6.js +0 -1
- package/dist/client/assets/agent-blog-C6-P3uCx.js +0 -2
- package/dist/client/assets/agent-blog-post-tCR4iQAk.js +0 -2
- package/dist/client/assets/agent-calendar-DqwMJ6TI.js +0 -1
- package/dist/client/assets/agent-connect-sources-CQDMgwdR.js +0 -1
- package/dist/client/assets/agent-deck-CTEHtbNm.js +0 -1
- package/dist/client/assets/agent-e2e-CgIk5HXH.js +0 -1
- package/dist/client/assets/agent-experiments-DWa03yYa.js +0 -1
- package/dist/client/assets/agent-file-C8OplG41.js +0 -1
- package/dist/client/assets/agent-hosting-DZwc-hYc.js +0 -1
- package/dist/client/assets/agent-icon-DHk7TnW1.js +0 -1
- package/dist/client/assets/agent-library-Bhlc7QbZ.js +0 -1
- package/dist/client/assets/agent-library-file-NZe3W-xa.js +0 -1
- package/dist/client/assets/agent-overview-BjxnoHtS.js +0 -1
- package/dist/client/assets/agent-releases-DJXEsnr4.js +0 -2
- package/dist/client/assets/agent-settings-IyhNx_G4.js +0 -1
- package/dist/client/assets/agent-site-editor-code-B371nTRh.js +0 -2
- package/dist/client/assets/agent-site-editor-content-B6-iieBO.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-Dt3bOYz8.js +0 -1
- package/dist/client/assets/agent-view-BIybMP8S.js +0 -1
- package/dist/client/assets/agent-view-guard-BkBbWqXx.js +0 -1
- package/dist/client/assets/ai-providers-CPyrRCb2.js +0 -1
- package/dist/client/assets/analytics-sections-BrNKTJt8.js +0 -1
- package/dist/client/assets/api-keys-BFjbEQH6.js +0 -1
- package/dist/client/assets/api-keys-CQiDxx3i.js +0 -1
- package/dist/client/assets/app-editor-Bu-6D-sg.js +0 -1
- package/dist/client/assets/automation-list-row-CE7SXhaQ.js +0 -1
- package/dist/client/assets/automations-DPaT01e7.js +0 -1
- package/dist/client/assets/blog-schema-EWcl-SDU.js +0 -1
- package/dist/client/assets/blog-view-gate-BPhH6bKz.js +0 -1
- package/dist/client/assets/buckets-lH8mvjw2.js +0 -1
- package/dist/client/assets/calendar-DD1b_D7F.js +0 -1
- package/dist/client/assets/category-editor-CIxCWDky.js +0 -1
- package/dist/client/assets/chat-context-B9rZ1ojJ.js +0 -39
- package/dist/client/assets/choose-editor-DvmC-iMO.js +0 -1
- package/dist/client/assets/cms-settings-editor-9nWJpKcE.js +0 -1
- package/dist/client/assets/collection-detail-DLSsSNsw.js +0 -1
- package/dist/client/assets/config-gK1vyYpA.js +0 -1
- package/dist/client/assets/connect-BjmhjHJY.js +0 -9
- package/dist/client/assets/connection-detail-DpiK53yx.js +0 -1
- package/dist/client/assets/connection-slug-C9_jBSFl.js +0 -1
- package/dist/client/assets/connections-COV9Ow5m.js +0 -1
- package/dist/client/assets/context-BvzzvYU9.js +0 -1
- package/dist/client/assets/discover-BoR_YGj-.js +0 -1
- package/dist/client/assets/experiments-tab-choice-CAU_bLj1.js +0 -1
- package/dist/client/assets/feature-gate-2lTAc4xs.js +0 -1
- package/dist/client/assets/file-explorer-SB0BRdQa.js +0 -2
- package/dist/client/assets/file-share-button-BmXIU90b.js +0 -3
- package/dist/client/assets/folder-icon-DczOK4X3.js +0 -1
- package/dist/client/assets/general-CPM5iXZa.js +0 -1
- package/dist/client/assets/home-CYIjoH-m.js +0 -1
- package/dist/client/assets/home-overview-BvhVg2vV.js +0 -1
- package/dist/client/assets/index-BtRGS8vq.css +0 -1
- package/dist/client/assets/index-CFMb9ZoK.js +0 -4
- package/dist/client/assets/index-D-5KT7YJ.js +0 -1
- package/dist/client/assets/index-D4fWOfQV.js +0 -1
- package/dist/client/assets/index-DT6cEtD6.js +0 -1
- package/dist/client/assets/infra-billing-BmRwy4ol.js +0 -1
- package/dist/client/assets/input-8RS_xi7t.js +0 -17
- package/dist/client/assets/item-actions-1298TOwC.js +0 -1
- package/dist/client/assets/legacy-agents-deep-CzKSWS31.js +0 -1
- package/dist/client/assets/library-Brt6n-TA.js +0 -1
- package/dist/client/assets/members-ChISvAMj.js +0 -1
- package/dist/client/assets/memory-C27haG4J.js +0 -7
- package/dist/client/assets/mock-board-BywyOk2L.js +0 -10
- package/dist/client/assets/multi-select-B4TjM0bb.js +0 -1
- package/dist/client/assets/named-rule-view-BNe6XoGj.js +0 -1
- package/dist/client/assets/new-project-dialog-MxeroDTr.js +0 -1
- package/dist/client/assets/openai-conversation-PDrYjlY3.js +0 -3
- package/dist/client/assets/order-monitor-day-CWMt_zZN.js +0 -1
- package/dist/client/assets/orgs-Dk0Ii4jK.js +0 -1
- package/dist/client/assets/own-accounts-section-h1niaKS8.js +0 -1
- package/dist/client/assets/pair-Cd8NH003.js +0 -48
- package/dist/client/assets/plan-D9R1-AZQ.js +0 -1
- package/dist/client/assets/post-calendar-BodpNGCL.js +0 -1
- package/dist/client/assets/preview-content-CAIaH_bT.js +0 -1
- package/dist/client/assets/preview-tab-Da5MFmuu.js +0 -557
- package/dist/client/assets/product-picker-dialog-n0_PqHbz.js +0 -1
- package/dist/client/assets/profile-C2zVoVuX.js +0 -1
- package/dist/client/assets/project-app-view-DL5XMDyp.js +0 -1
- package/dist/client/assets/project-apps-Oyn1Gnz0.js +0 -1
- package/dist/client/assets/project-reports-CC7ptk4l.js +0 -1
- package/dist/client/assets/project-tasks-DMyDSLCM.js +0 -1
- package/dist/client/assets/projects-3knV1Wr_.js +0 -1
- package/dist/client/assets/record-editor-CkMBdekB.js +0 -1
- package/dist/client/assets/redirect-editor-DhGl9GBV.js +0 -1
- package/dist/client/assets/reports-onboarding-DMi5ETfa.js +0 -1
- package/dist/client/assets/reports-tab-tHGof2FW.js +0 -2
- package/dist/client/assets/reports-x6uGEsmu.js +0 -1
- package/dist/client/assets/repositories-BTQbxkj9.js +0 -1
- package/dist/client/assets/repositories-W2INiIpb.js +0 -1
- package/dist/client/assets/resizable-B34lmUXk.js +0 -1
- package/dist/client/assets/resolve-tab-icon-DGM8yJyS.js +0 -1
- package/dist/client/assets/roles-Ce95RFET.js +0 -1
- package/dist/client/assets/route-ByQoYEQ1.js +0 -1
- package/dist/client/assets/route-CZrJA2Du.js +0 -1
- package/dist/client/assets/route-DwOjJhPU.js +0 -1
- package/dist/client/assets/save-status-Cf9701GC.js +0 -1
- package/dist/client/assets/secrets-7vsHBI_C.js +0 -1
- package/dist/client/assets/sections-DwAaRTqc.js +0 -1
- package/dist/client/assets/sections-editor-Cw7rVBET.js +0 -1
- package/dist/client/assets/select-C2TZ6w0T.js +0 -1
- package/dist/client/assets/settings-tab-Bt6v_h7A.js +0 -1
- package/dist/client/assets/shell-layout-DElHwXzP.js +0 -1
- package/dist/client/assets/site-draft-view-BYRbX7hq.js +0 -1
- package/dist/client/assets/site-editor-DtYKhDUe.js +0 -1
- package/dist/client/assets/site-editor-toast-fJQVfqa6.js +0 -1
- package/dist/client/assets/skills-BVBJsFpt.js +0 -1
- package/dist/client/assets/sso-jLEvOfRs.js +0 -1
- package/dist/client/assets/task-board-DvkfyL0D.js +0 -1
- package/dist/client/assets/task-key-BCHdFiOO.js +0 -1
- package/dist/client/assets/task-route-DvThF15k.js +0 -1
- package/dist/client/assets/taskboard-analytics-wmnzdjd1.js +0 -1
- package/dist/client/assets/tasks-x5QR56dC.js +0 -1
- package/dist/client/assets/thread-analytics-BhQM5Fjz.js +0 -1
- package/dist/client/assets/thread-route-B-GLI-gf.js +0 -1
- package/dist/client/assets/thread-route-DgzeVZc_.js +0 -1
- package/dist/client/assets/thread-sheet-body-CtA9qKg3.js +0 -1
- package/dist/client/assets/time-range-picker-CngcAO-k.js +0 -1
- package/dist/client/assets/tool-namespace-DBtCIV7f.js +0 -1
- package/dist/client/assets/use-apply-named-rule-OLP0GHWV.js +0 -1
- package/dist/client/assets/use-ask-in-chat-Dom4oae3.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-Ol6SuT-M.js +0 -1
- package/dist/client/assets/use-chat-layout-state-DM5US5qS.js +0 -1
- package/dist/client/assets/use-connect-companion-BcVm5W-r.js +0 -1
- package/dist/client/assets/use-decopilot-events-DGoOKMj0.js +0 -1
- package/dist/client/assets/use-delete-block-y2vOypSK.js +0 -1
- package/dist/client/assets/use-fast-preview-draft-url-OHnSoOh2.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-DUVnwi3u.js +0 -1
- package/dist/client/assets/use-mcp-auth-status-DENAEdO_.js +0 -1
- package/dist/client/assets/use-never-published-CqQvHtX-.js +0 -1
- package/dist/client/assets/use-project-native-view-presence-BnSN9oER.js +0 -1
- package/dist/client/assets/use-project-scope-lI2ukIh1.js +0 -1
- package/dist/client/assets/use-recent-apps-CnCq1w_A.js +0 -1
- package/dist/client/assets/use-sandbox-events-BZs_wcMW.js +0 -2
- package/dist/client/assets/use-sidebar-collapsed-BWtKakyD.js +0 -1
- package/dist/client/assets/use-task-board-events-n_cm8Gyp.js +0 -1
- package/dist/client/assets/use-task-board-items-gM-MOBw8.js +0 -1
- package/dist/client/assets/use-view-draft-kind-BsykP2yK.js +0 -1
- package/dist/client/assets/use-voice-input-seZQKt1s.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Bz8irSN1.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DKXKbUjm.js +0 -1
- package/dist/client/assets/utils-BoDmGD4u.js +0 -4
- package/dist/client/assets/variant-calendar-BsyPkd78.js +0 -1
- package/dist/client/assets/virtual-mcp-BJ1dRL5Y.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bn as z,c as ae,q as xt,K as rt,i as Lt,fD as Mt,f8 as Ct,fm as Xe,fo as It,bx as ne,by as it,fE as xe,bj as Ut,bk as ot,fg as Dt,f9 as Nt,bz as st,bA as Kt,fF as Vt,e9 as Ft,b as ye,a4 as qt,j as L,B as Le,L as Wt,h as Yt,a7 as zt}from"./index-D9wygnbU.js";import{c as Qt,x as Gt,u as Ht,v as Xt,af as Zt,am as Jt,an as en,ao as tn,ap as nn,C as rn,y as on}from"./site-editor-toast-fJQVfqa6.js";import{b as sn}from"./sandbox-url-D3mC8qhT.js";import{u as cn}from"./use-voice-input-seZQKt1s.js";import{i as an}from"./AlertCircle-D-4TK36c.js";import{aJ as ct}from"./agent-icon-DHk7TnW1.js";import{E as Me}from"./empty-state-GIO1CyUk.js";const K={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},de=["experiments","campaigns"];function mr(e){return K[e]}const gr=de.map(e=>K[e].blockKey);function fn(e){for(const t of de)if(K[t].matcher===e)return t;return null}function hr(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function _r(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const ln="deco";function vr(e,t){if(!z(e))return"missing";const n=K[t],r=Ze(e,n.resolveType),i=Ze(e,n.matcher);if(!r||!i)return"missing";const o=c=>c.namespace===void 0||c.namespace===ln;return o(r)&&o(i)?"available":"replaced"}function Ze(e,t){const n=e?.manifest?.blocks??{};for(const r of Object.values(n))if(r&&Object.hasOwn(r,t))return r[t]??{};return null}function Je(e,t){const n=K[t],r=Object.hasOwn(e,n.blockKey)?e[n.blockKey]:void 0;if(r==null)return{kind:"absent",block:{__resolveType:n.resolveType},values:Object.create(null),invalid:[]};const i=me(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const o=r,c=Object.create(null),f=[];for(const[l,A]of Object.entries(o)){if(l==="__resolveType")continue;const R=t==="experiments"?un(A):pn(A);R===null?f.push(l):c[l]=R}return{kind:"saved",block:o,values:c,invalid:f}}function br(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function Tr(e){const t=Je(e,"experiments"),n=Je(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function un(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function pn(e){if(!me(e))return null;const t={};for(const n of["start","end"]){const r=e[n];if(!(r==null||r==="")){if(typeof r!="string")return null;t[n]=r}}return t}function Ar(e){return e<=0?"off":e>=100?"everyone":"running"}function Sr(e){if(!me(e))return null;const t=fn(e.__resolveType);if(!t)return null;const n=e[K[t].field];return typeof n=="string"?{kind:t,name:n}:null}function Rr(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const yn="date";function Or(e){return me(e)&&e.__resolveType===yn&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function Er(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function kr(e,t){if(t==="__resolveType")return e;const{[t]:n,...r}=e;return r}function me(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function dn(e){const t=[];return e.fastPreviewActive?t.push({kind:"committed"}):(e.fetchEnabled&&e.previewUrl&&t.push({kind:"live",baseUrl:e.previewUrl}),t.push({kind:"committed"})),e.productionUrl&&t.push({kind:"production",baseUrl:e.productionUrl}),t}const mn=5e3;function gn(e,t){return e.kind==="live"?new URL("/live/_meta",e.baseUrl).href:sn(t,"site-meta")}const hn=new Map;async function _n(e,t,n=hn){const r=n.get(e),i=r==="refused"?void 0:t?.etag,o=await fetch(e,{cache:"no-store",headers:i?{"If-None-Match":i}:{}}).catch(()=>null),c=!o&&!!i&&r===void 0,f=c?await fetch(e,{cache:"no-store",headers:{}}).catch(()=>null):o;if(i&&(c&&f?n.set(e,"refused"):o&&n.set(e,"ok")),t&&(!f||f.status===304))return t;if(!f?.ok)return null;try{return await f.json()}catch{return null}}function vn(e){return rt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function Pr(e,t){const n=ae.c(30),{url:r}=Qt(e?.virtualMcpId),i=!!r,o=i||(t?.fetchEnabled??!0),c=r??e?.previewUrl,f=Gt(e?.virtualMcpId),{previewServerUrl:l,runtime:A}=cn(e?.virtualMcpId),R=!i&&A==="cms",O=Ht(e?.virtualMcpId,e?.branch),P=O.kind==="protocol"?O:null,Q=xt(),V=Xt(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Zt(e,P):vn({...e,previewUrl:c,productionUrl:l}):rt.liveMeta(""),n[0]=e,n[1]=c,n[2]=l,n[3]=P,n[4]=q):q=n[4];const j=q;let I;n[5]!==O.kind||n[6]!==V||n[7]!==R||n[8]!==o||n[9]!==i||n[10]!==f||n[11]!==e||n[12]!==c||n[13]!==l||n[14]!==P||n[15]!==Q||n[16]!==j?(I=async()=>{if(P){const{meta:d}=await Jt(Q,P,e,V);if(d instanceof Error)throw d;return d}if(O.kind==="unavailable")throw en("live meta");const G=()=>R?nn(e):rn(e,on(f,".deco/meta.gen.json")),s=i&&c?[{kind:"live",baseUrl:c}]:dn({fetchEnabled:o,previewUrl:c,productionUrl:l,fastPreviewActive:R});for(const d of s){if(d.kind==="committed"){const E=await G();if(E.kind==="data")return E.data;continue}const a=Q.getQueryData(j),B=await _n(gn(d,e),i||a?.etag?a:void 0);if(B)return B}const y=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw y.status=502,y},n[5]=O.kind,n[6]=V,n[7]=R,n[8]=o,n[9]=i,n[10]=f,n[11]=e,n[12]=c,n[13]=l,n[14]=P,n[15]=Q,n[16]=j,n[17]=I):I=n[17];const W=!!e&&O.kind!=="pending",$=P?!1:i?mn:t?.refetchInterval,ee=P?!1:void 0,ie=P?P.describe.pollIntervalMs:3e5;let F;n[18]!==R||n[19]!==i||n[20]!==P?(F=(G,s)=>(P||R||i||s.status!==502)&&G<3,n[18]=R,n[19]=i,n[20]=P,n[21]=F):F=n[21];let Y;return n[22]!==j||n[23]!==I||n[24]!==W||n[25]!==$||n[26]!==ee||n[27]!==ie||n[28]!==F?(Y={queryKey:j,queryFn:I,enabled:W,refetchInterval:$,refetchIntervalInBackground:!1,refetchOnWindowFocus:ee,staleTime:ie,retry:F,retryDelay:tn},n[22]=j,n[23]=I,n[24]=W,n[25]=$,n[26]=ee,n[27]=ie,n[28]=F,n[29]=Y):Y=n[29],Lt(Y)}const bn=new Set(["split-traffic","calendar"]);function Tn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const An=12,Sn=8,ke=32,Rn=40,et="__SECTION_REF__";function se(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function tt(e,t){let n=e.items;if(!n)return!1;if(typeof n.$ref=="string"&&(n=t(n.$ref)),Array.isArray(n.anyOf)||Array.isArray(n.oneOf))return!0;const i=n.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const On="VideoWidget";function J(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function at(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function Ce(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Ie(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function ft(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function ge(e,t){const n=t.manifest?.blocks??{};for(const f of Object.values(n))if(f[e])return f[e];const r=Ce(e)??Ie(e);if(r){for(const f of ft(r.vendor,r.app))for(const l of Object.values(n))if(l[f])return l[f]}const i=at(e);for(const f of Object.values(n))if(f[i])return f[i];const o=t.schema??{};return(o.$defs??o.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function jr(e,t){return Object.keys(ge(e,t)).length>0}function lt(e,t){if(Mt(e,t))return!0;const n=Ce(t)??Ie(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(ft(n.vendor,n.app).some(c=>c in r))return!0;const i=at(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function En(e){return e==="site/apps/site.ts"?!1:Ce(e)!==null||Ie(e)!==null}function kn(e,t){return ut(t,{resolveType:e})}function wr(e,t){return ut(t,{ref:e})}function ut(e,t){const n=e.schema??{},r="resolveType"in t?ge(t.resolveType,e):{},i=n.$defs??n.definitions??{},o=n.root??{},c=s=>{if(s.startsWith("#/root/")){const a=s.slice(7);return o[a]??{}}const y=s.split("/").pop()??"",d=i[y];return d||(y===et?o.sections??{}:{})};let f;typeof r.$ref=="string"?f=c(r.$ref):Object.keys(r).length>0?f=r:f=n;const l=s=>typeof s.$ref=="string"?c(s.$ref):s,A=s=>{const d=l(s).properties?.type;if(d){if(typeof d.const=="string")return d.const;if(typeof d.default=="string")return d.default;if(Array.isArray(d.enum)&&typeof d.enum[0]=="string")return d.enum[0]}},R=(s,y)=>{const d=l(s);return typeof d.title=="string"&&!d.title.startsWith("#")?d.title:y},O=(s,y=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const d=s.$ref.split("/").pop()??"";return!d||y.has(d)?s:O(c(s.$ref),new Set([...y,d]))},P=(s,y=new Set)=>{if(typeof s.$ref!="string")return!1;const d=s.$ref.split("/").pop()??"";return s.$ref==="#/root/sections"||d===et?!0:!d||y.has(d)?!1:P(c(s.$ref),new Set([...y,d]))},Q=s=>{const y=s.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},V=s=>Q(s)!==void 0,q=(s,y=new Set)=>{if(typeof s.$ref!="string")return[];const d=s.$ref.split("/").pop()??"";if(!d||y.has(d))return[];const a=c(s.$ref),B=a.anyOf??a.oneOf;if(!Array.isArray(B))return[];const E=new Set([...y,d]);return B.flatMap(x=>V(x)?[x]:q(x,E))},j=s=>{const y=s.hide;return y===!0||y==="true"},I=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),W=(s,y=new Set,d=0)=>{if(d>An)return{};if(typeof s.$ref=="string"){const B=s.$ref.split("/").pop()??"";return y.has(B)?{}:W(c(s.$ref),new Set([...y,B]),d+1)}let a={};s.properties&&typeof s.properties=="object"&&(a={...a,...s.properties}),Array.isArray(s.required)&&(a.__required=[...J(a.__required),...J(s.required)]);for(const B of["allOf","anyOf","oneOf"]){const E=s[B];if(Array.isArray(E))for(const x of E){const U=J(a.__required),H=W(x,y,d+1);a={...a,...H};const M=B==="allOf"?[...U,...J(H.__required)]:U;M.length>0?a.__required=M:delete a.__required}}return a},$=(s,y=0,d=new Set)=>{let a=s,B;if(typeof s.$ref=="string"){a=c(s.$ref);const k=s.$ref.split("/").pop()??"";B=k,k===On&&!a.format&&(a={...a,format:"video-uri"})}a=O(a);const E=B!==void 0&&d.has(B),x=B!==void 0?new Set([...d,B]):d,U=(k,m,v,T=!0)=>!E&&(!T||v<=Rn)&&m<Sn?$(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(T=>!(T.type==="null"||T.type===null)),v=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]};m.length>0&&m.every(T=>v(T)!==void 0)&&(H=m.map(T=>v(T)))}}let M,oe,Fe,qe=!1;if(a.type)M=Array.isArray(a.type)?String(a.type.find(k=>k!=="null")??a.type[0]):String(a.type);else if(a.anyOf||a.oneOf){const m=(a.anyOf??a.oneOf).filter(v=>!(v.type==="null"||v.type===null));if(m.length===0)M="null";else if(m.length===1){const v=m[0];oe=v;const T=O(v);typeof v.$ref=="string"&&se(T)?(M="array",Fe=T.items):M=v.type?Array.isArray(v.type)?String(v.type[0]):String(v.type):typeof v.$ref=="string"?"object":"string"}else{if(H){const u=p=>typeof s[p]=="string"?s[p]:typeof a[p]=="string"?a[p]:void 0;return{type:"string",title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,enum:H,format:u("format"),options:u("options")}}const v=m.filter(V),T=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>O(u)).find(se),Se=u=>{if(typeof u.$ref!="string")return;const p=O(u),g=p.anyOf??p.oneOf;if(!Array.isArray(g))return;const h=[...g.filter(V),...g.filter(_=>!V(_)).flatMap(_=>q(_))],w=g.filter(_=>{if(V(_)||_.type==="null")return!1;const C=l(_),N=C.properties;return!N?.__resolveType&&!C.anyOf&&!C.oneOf&&(C.type==="object"||!!N)});return h.length>0&&w.length>0?{data:w,loaders:h}:void 0},le=m.flatMap(u=>{const p=Se(u);return p?[p]:[]}),Pt=le.length===0&&m.filter(u=>!se(O(u))).every(u=>typeof u.$ref=="string"||v.includes(u)),jt=v.some(u=>{const p=u.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===Ct||z(e)&&p[0]==="multivariate")}),Re=(u=[])=>{const p=new Map;for(const S of[...v,...m.filter(b=>!v.includes(b)).flatMap(b=>q(b)),...u]){const b=Q(S);b&&!p.has(b)&&p.set(b,S)}const g=[...p].map(([S,b])=>({resolveType:S,title:typeof b.title=="string"?b.title:ne(S),description:typeof b.description=="string"?b.description:void 0,schema:U(b,y+1,p.size)})),h=[];for(const S of m){if(v.includes(S)||typeof S.$ref!="string")continue;const b=c(S.$ref);let X;const Z=b.properties?.__resolveType;if(Array.isArray(Z?.enum)&&typeof Z.enum[0]=="string"&&(X=Z.enum[0]),!X&&Array.isArray(b.allOf))for(const $t of b.allOf){const Ee=$t.properties?.__resolveType?.enum;if(Array.isArray(Ee)&&typeof Ee[0]=="string"){X=Ee[0];break}}X&&h.push({resolveType:X,title:typeof b.title=="string"&&!b.title.startsWith("#")?b.title:ne(X),description:typeof b.description=="string"?b.description:void 0,schema:U(b,y+1,m.length)})}const w=new Set(g.map(S=>S.resolveType)),_=[...g,...h.filter(S=>!w.has(S.resolveType))],C=m.filter(S=>!v.includes(S)),N=C.length===1&&!E?$(C[0],y+1,x):void 0;return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:_,acceptsAnySection:T,plainSchema:N,hidden:j(a)||j(s)?!0:void 0}};if(D){const u=!tt(D,c);if(u&&le.length>0){const p=typeof s.title=="string"?s.title:typeof a.title=="string"&&!I(a.title)?a.title:void 0,g=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,h=m.find(_=>se(O(_))),w=le.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,C)=>({title:R(_,`Option ${C+1}`),schema:$(_,y+1,x)})),{title:R(h,`Option ${w.length+1}`),schema:$(D,y+1,x)}],loaderRef:{...Re(le.flatMap(_=>_.loaders)),title:p,description:g},hidden:j(a)||j(s)?!0:void 0}}if(u&&m.length>1&&Pt){const p=$(D,y+1,x),g=typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:p.title,h=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:p.description;return{...p,type:"array",title:g,description:h,loaderRef:v.length>0?{...Re(),title:g,description:h}:void 0}}if(jt){const p=$(D,y+1,x);return{...p,type:"array",title:typeof a.title=="string"?a.title:p.title,description:typeof a.description=="string"?a.description:p.description}}}if(v.length>0)return Re();const ze=u=>{const p=l(u);if(typeof p.title=="string"&&Xe(p.title))return!0;const g=p.properties?.__resolveType?.enum;if(Array.isArray(g)&&typeof g[0]=="string")return!0;if(Array.isArray(p.allOf))for(const h of p.allOf){const w=h.properties?.__resolveType?.enum;if(Array.isArray(w)&&typeof w[0]=="string")return!0}return!1},Qe=m.map(u=>A(u));if(m.length>1&&Qe.every(u=>typeof u=="string")&&!m.some(ze)){const u=m.map((p,g)=>{const h=l(p),w=Qe[g];return{resolveType:w,title:R(p,w),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:w,discriminatorRequired:[h,...h.allOf??[]].some(_=>J(_.required).includes("type")),schema:U(h,y+1,m.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,discriminatorKey:"type",anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}const Oe=u=>{if(ze(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},wt=u=>{const p=O(u);return se(p)?!tt(p,c):!1},Ge=y<ke&&m.every(u=>Oe(u)||wt(u))&&m.some(Oe),He=m.every(u=>typeof u.$ref=="string"),Bt=z(e)&&!He&&m.some(u=>typeof u.$ref=="string"&&bn.has(Tn(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Oe(u));if((He||Bt)&&!Ge){const u=[];for(const p of m){if(typeof p.$ref!="string")continue;const g=c(p.$ref);let h,w,_=!1;if(typeof g.title=="string"){const S=Xe(g.title);S&&(h=S.blockId,w=S.blockId)}if(!h&&Array.isArray(g.allOf))for(const S of g.allOf){const Z=((S.properties??{}).__resolveType??{}).enum;if(Array.isArray(Z)&&typeof Z[0]=="string"){h=Z[0],_=!0;break}}if(!h){const b=g.properties?.__resolveType?.enum;Array.isArray(b)&&typeof b[0]=="string"&&(h=b[0],_=!0)}h||(h=p.$ref.split("/").pop()??"");const C=h.includes("/")||_&&!It(h),N=C?void 0:A(p);!N&&!C||_&&h==="lazy"||u.push({resolveType:N??h,title:w??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:ne(h)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:N,schema:U(g,y+1,m.length)})}return{type:"block-ref",acceptsAnySection:T,title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}if(Ge){const u=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]},p=m.map((g,h)=>{const w=l(g).properties??{},_={};for(const[C,N]of Object.entries(w)){const S=u(N);S!==void 0&&(_[C]=S)}return{title:R(g,`Option ${h+1}`),schema:$(g,y+1),discriminators:Object.keys(_).length?_:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,inlineUnionBranches:p,hidden:j(a)||j(s)?!0:void 0}}M="object"}}else a.allOf?(M="object",qe=I(a.title)):typeof s.$ref=="string"&&(M="object");let fe,We,Ye=!1;if(y<ke&&!E){const k=W(a),m=k.__resolveType?.enum;Ye=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const v=J(k.__required);v.length>0&&(We=v);const T=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(T.length>0){fe={};for(const[D,Se]of T)fe[D]=$(Se,y+1,x)}}let Ae;if((M==="array"||a.type==="array")&&y<ke&&!E){const k=a.items??Fe;if(k){Ae=$(k,y+1,x);const m=l(k);typeof m.title=="string"&&m.title.includes("{{")&&(Ae.titleBy=m.title)}}const te=k=>{const m=oe?.[k];return typeof m=="string"?m:void 0},kt=()=>{if("default"in s)return s.default;if("default"in a)return a.default;if(oe&&"default"in oe)return oe.default};return{type:M??"string",title:typeof s.title=="string"?s.title:!qe&&typeof a.title=="string"?a.title:te("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:te("description"),default:kt(),enum:Array.isArray(a.enum)?a.enum:H??void 0,format:typeof s.format=="string"?s.format:typeof a.format=="string"?a.format:te("format"),properties:fe,required:We,items:Ae,lazy:Ye&&fe?.value?!0:void 0,recursiveRef:E&&typeof s.$ref=="string"&&(M==="object"||M==="array"||a.type==="array")?s.$ref:void 0,hidden:j(a)||j(s)?!0:void 0,titleBy:typeof a.titleBy=="string"?a.titleBy:te("titleBy"),image:typeof a.image=="string"?a.image:te("image"),options:typeof s.options=="string"?s.options:typeof a.options=="string"?a.options:te("options")}};if("ref"in t)return $({$ref:t.ref});const ee=f.properties??{},ie=Object.keys(ee).every(s=>s.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&ie){const s=ee.__resolveType,y=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const d of f.allOf){const a=O(d);if(!(Array.isArray(a.anyOf)||Array.isArray(a.oneOf))||a.properties)continue;const E=$(a,0);if(E.type==="inline-union"&&E.inlineUnionBranches){const x=I(E.title);return{...E,title:x?void 0:E.title,inlineUnionBranches:y?E.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:y}})):E.inlineUnionBranches}}}}const F=W(f),Y={};for(const[s,y]of Object.entries(F))s.startsWith("__")||s==="@type"||(Y[s]=$(y,0));if(Object.keys(Y).length===0)return null;const G=J(F.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:Y,required:G.length>0?G:void 0}}function Br(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,c=o.properties??{};if(Object.keys(c).some(A=>!A.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const l=c.__resolveType;return!!l&&Array.isArray(l.enum)&&l.enum[0]===e}function $r(e){const t=r=>{switch(typeof r){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(r===null)return{type:"string"};if(Array.isArray(r))return{type:"array",items:t(r[0])};const i={};for(const[o,c]of Object.entries(r))o.startsWith("__")||(i[o]=t(c));return{type:"object",properties:i}}default:return{type:"string"}}},n={};for(const[r,i]of Object.entries(e))r.startsWith("__")||(n[r]=t(i));return Object.keys(n).length===0?null:{type:"object",properties:n}}function Ue(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},c=o.icon,f=o.logo,l=o,A=O=>O===!0||O==="true",R=A(l.hide)||A(l.ignore)||A(l.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof c=="string"?c:void 0,logo:typeof f=="string"?f:void 0,hidden:R||void 0}}const pt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],Pn=new Set(pt);function De(e){return Pn.has(e)}function Ne(e,t){return De(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function xr(e,t){return Ne(e,z(t)?t:void 0)}function he(e){return e.replace(/\/+$/,"")||"/"}function Lr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function jn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function Mr(e){const t=e.trim();return t?jn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function wn(e){const t=[];for(const n of e.matchAll(Ke)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function yt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function Cr(e){e=yt(e);const t=[];let n=0;for(const r of e.matchAll(Ke))r.index>n&&t.push({type:"text",text:e.slice(n,r.index)}),t.push({type:"param",name:r[1]??"*"}),n=r.index+r[0].length;return n<e.length&&t.push({type:"text",text:e.slice(n)}),t}function Ir(e,t){return yt(e).replace(Ke,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}const dt=pt[0],Bn=new Set(["site/sections/Theme/Theme.tsx"]);function $n(e,t){return Bn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function _e(e,t){return!!($n(e,z(t))||ot(e)||e.toLowerCase().includes("preview"))}function mt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(De(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":dt}function xn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function Ur(e){return e?xn(e)?"page":mt(e):dt}function Pe(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return Pe(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...Pe(n));return t}return[]}function Ln(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i)){if(_e(o,e))continue;const c=Ue(o,e);n.push({resolveType:o,title:c.title??ne(o),description:c.description,previewBlock:o,isSavedBlock:!1})}return n}function Dr(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i))_e(o,e)||n.has(o)||n.set(o,{resolveType:o,title:ne(o)});return[...n.values()].sort((r,i)=>r.title.localeCompare(i.title))}function gt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=z(e);if(!ht(n,r))return n;const i=t.variants;if(!Array.isArray(i))return n;for(const o of i){const c=Ut(o,r);if(!c||typeof c!="object")continue;let f=c.__resolveType;if(typeof f=="string"&&ot(f)&&(f=c.section?.__resolveType??f),typeof f=="string"&&xe(e,f))return f}return n}function ht(e,t){return e===Dt||t&&e===Nt}function Mn(e,t){return gt(e,t)!==t.__resolveType}function _t(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||it(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c!="string"||De(c)||typeof o.path=="string"||_e(c,e)||!(xe(e,c)||ht(c,z(e))&&Mn(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function Cn(e,t){const n=st(t.resolveType,e),r=n?{}:Ue(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||ne(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function Nr(e,t){const n=mt(e),r=kn(n,e),i=Pe(r?.properties?.sections),o=new Map,c=f=>{if(!_e(f.resolveType,e)){if(st(f.resolveType,e)){it(f.resolveType)||o.set(f.resolveType,f);return}xe(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of Ln(e))c(f);for(const f of i)c(Cn(e,f));for(const f of _t(e,t))c(f);return[...o.values()].sort((f,l)=>f.title.localeCompare(l.title))}function Kr(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const n=t.theme;if(!(!n||typeof n!="object"||Array.isArray(n)))return n}const ve="website/loaders/redirect.ts",Vr=new Set([ve,"website/loaders/redirects.ts"]),be="redirect",In=[301,302,307,308],Un={temporary:307,permanent:301};function Fr(e){return e.flat&&e.status||Un[e.type]}const ue=e=>typeof e=="string"?e:"",Dn=e=>e==="permanent"?"permanent":"temporary",Nn=e=>In.find(t=>t===e);function vt(e){const t=Nn(e.status);return{from:ue(e.from),to:ue(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function Te(e){if(e?.__resolveType===be)return vt(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ue(t.from),to:ue(t.to),type:Dn(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Kn(e){const t=[];for(const[n,r]of Object.entries(e)){if(!r||typeof r!="object"||Array.isArray(r))continue;const i=r;i.__resolveType!==ve&&i.__resolveType!==be||t.push({key:n,...Te(i)})}return t}function qr(e){return Te(e)}function Vn(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...o}=t??{};return{...o,__resolveType:be,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const n={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(n.discardQueryParameters=!0),{redirect:n,__resolveType:ve}}function Fn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const qn=1e3;function Wr(e,t){const n=Fn(t);for(let r=0;r<qn;r++){const i=`redirects-${n}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}const Wn="Redirects",bt="redirects";function Tt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===bt}function Yn(e){return Object.keys(e).filter(n=>Tt(e[n])).sort()[0]??Wn}function Yr(e,t){const n=e.lastIndexOf("#");if(n<=0)return null;const r=e.slice(0,n),i=e.slice(n+1);return!/^\d+$/.test(i)||!Object.hasOwn(t,r)||!Tt(t[r])?null:{block:r,index:Number(i)}}function re(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e.redirects;return Array.isArray(t)?t.filter(n=>!!n&&typeof n=="object"&&!Array.isArray(n)):[]}function At(e){return"redirect"in e?Te(e):vt({...e})}function St(e,t){const{__resolveType:n,...r}=Vn(e,{...t});return r}function zr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:ve}:{...n,__resolveType:be}])}function Qr(e,t=Yn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...At(n)}))}function Gr(e,t){const n=re(e)[t];return n?At(n):Te(void 0)}function Ve(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:bt,redirects:t}}function Hr(e,t){return Ve(e,[...re(e),St(t)])}function Xr(e,t,n){const r=re(e),i=r.slice();return i[t]=St(n,r[t]),Ve(e,i)}function Zr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function zn(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,""),t=t.replace(/-\d{5,}$/,"");try{return decodeURIComponent(t)}catch{return t}}function Jr(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const o=e.find(f=>f.key===n);if(o)return o;const c=e.find(f=>f.key.endsWith(`-${n}`));if(c)return c}if(r){const o=je(e,r);if(o)return o}if(i){const o=je(e,i);if(o)return o}return null}function je(e,t,n){const r=he;if(n){const o=e.find(c=>c.key===n);if(o)return o}const i=e.filter(o=>r(o.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((o,c)=>o.key.localeCompare(c.key))[0]??null}function ei(e,t,n){const r=je(e,t,n);return r||he(t)!=="/"?r:Gn(e)??e[0]??null}function Qn(e){return he(e).split("/").filter(Boolean)}function Gn(e){const t=e.map(n=>Qn(n.path));return e.find((n,r)=>{if(wn(n.path).length>0)return!1;const i=t[r];return t.every(o=>i.every((c,f)=>o[f]===c))})??null}const ce="site",Rt="site/apps/site.ts";function we(e,t){return e===ce?!0:t.__resolveType===Rt}function ti(e,t){return e?Ot(e,t).length>0||Kn(e).length>0?!0:t?tr(e,t).length>0||Jn(e,t)?!0:er(e,t).length>0:!1:!1}function Hn(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!Ne(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:zn(e),path:r.path}}function Ot(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=Hn(r,i,t);o&&n.push(o)}return n}function Be(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>Be(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>Be(i,t,n+1))}function nt(e,t){return Kt(e)?Vt(e).some(n=>t.has(n)):Be(e,t)}function Xn(e,t,n){const r=Ot(e,n),i=new Set(r.map(c=>c.key)),o=new Set([t]);for(let c=!0;c;){c=!1;for(const[f,l]of Object.entries(e))o.has(f)||i.has(f)||nt(l,o)&&(o.add(f),c=!0)}return r.filter(c=>c.key!==t&&nt(e[c.key],o))}function ni(e,t,n){const r=o=>he(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=Xn(e,t,n).sort((o,c)=>r(o)-r(c)||(o.path<c.path?-1:o.path>c.path?1:0));return i??null}function Zn(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function $e(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?Ue(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const o=t.name.trim();if(o)return o}return e.replace(/[-_]/g," ").replace(/\b\w/g,o=>o.toUpperCase())}function Jn(e,t){const n=e[ce];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(we(ce,r)||lt(t,i)))return{key:ce,name:$e(ce,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;if(!we(r,o))continue;const c=typeof o.__resolveType=="string"?o.__resolveType:Rt;return{key:r,name:$e(r,o,t),resolveType:c}}return null}function er(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c=="string"&&(Ne(c,t)||typeof o.path!="string"&&(we(r,o)||!lt(t,c)&&!En(c)||n.push({key:r,name:$e(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function tr(e,t){return _t(t,e).map(n=>{const r=e[n.resolveType],i=gt(t,r);return{key:n.resolveType,name:n.description??Zn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const nr=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,rr={posts:"post",categories:"category",authors:"author"},Et=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function ri(e,...t){const n=e?nr.exec(e)?.[1]:void 0;if(n)return rr[n]??null;for(const r of t){if(!pe(r))continue;const i=r.__resolveType;if(typeof i!="string"||!i.startsWith("blog/"))continue;const o=Et.find(c=>pe(r[c]));if(o)return o}return null}function ir(...e){for(const t of e)if(pe(t))for(const n of Et){const r=t[n];if(pe(r))for(const i of["title","name"]){const o=r[i];if(typeof o=="string"&&o.trim())return o.trim()}}return null}function or(e,t=Ft){return t(`sectionsEditor.blogKind.${e}`)}function ii(e,t,n){return ir(...t)??or(e,n)}const sr="https://github.com/decocms/blocks";function oi(){const e=ae.c(14),t=ye();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=L.jsx(ct,{size:48,className:"text-muted-foreground"}),e[0]=n):n=e[0];let r;e[1]!==t?(r=t("mainPanelTabs.blocksTabStates.emptyStateTitle"),e[1]=t,e[2]=r):r=e[2];let i;e[3]!==t?(i=t("mainPanelTabs.blocksTabStates.emptyStateDescription"),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=t("mainPanelTabs.blocksTabStates.setupContentEditing"),e[5]=t,e[6]=o):o=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=L.jsx(zt,{size:14}),e[7]=c):c=e[7];let f;e[8]!==o?(f=L.jsx(Le,{size:"sm",asChild:!0,children:L.jsxs("a",{href:sr,target:"_blank",rel:"noreferrer",children:[o,c]})}),e[8]=o,e[9]=f):f=e[9];let l;return e[10]!==r||e[11]!==i||e[12]!==f?(l=L.jsx(Me,{className:"h-full w-full",image:n,title:r,description:i,actions:f}),e[10]=r,e[11]=i,e[12]=f,e[13]=l):l=e[13],l}function si(e){const t=ae.c(15),{source:n,onRetry:r}=e,i=ye();let o;t[0]!==n||t[1]!==i?(o=i(n==="sandbox"?"mainPanelTabs.blocksTabStates.errorStateSandbox":"mainPanelTabs.blocksTabStates.errorStateData"),t[0]=n,t[1]=i,t[2]=o):o=t[2];const c=o;let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=L.jsx(an,{size:48,className:"text-muted-foreground"}),t[3]=f):f=t[3];let l;t[4]!==i?(l=i("mainPanelTabs.blocksTabStates.errorStateTitle"),t[4]=i,t[5]=l):l=t[5];let A;t[6]!==i?(A=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=A):A=t[7];let R;t[8]!==r||t[9]!==A?(R=L.jsx(Le,{variant:"outline",size:"sm",onClick:r,children:A}),t[8]=r,t[9]=A,t[10]=R):R=t[10];let O;return t[11]!==c||t[12]!==l||t[13]!==R?(O=L.jsx(Me,{image:f,title:l,description:c,actions:R}),t[11]=c,t[12]=l,t[13]=R,t[14]=O):O=t[14],O}function ci(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function ai(){const e=ae.c(16),t=ye(),{org:n}=qt();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=L.jsx(ct,{size:48,className:"text-muted-foreground"}),e[0]=r):r=e[0];let i;e[1]!==t?(i=t("siteEditor.siteNotOwned.title"),e[1]=t,e[2]=i):i=e[2];let o;e[3]!==t?(o=t("siteEditor.siteNotOwned.body"),e[3]=t,e[4]=o):o=e[4];let c;e[5]!==n.slug?(c={org:n.slug},e[5]=n.slug,e[6]=c):c=e[6];let f;e[7]!==t?(f=t("siteEditor.siteNotOwned.openProjects"),e[7]=t,e[8]=f):f=e[8];let l;e[9]!==c||e[10]!==f?(l=L.jsx(Le,{size:"sm",variant:"outline",asChild:!0,children:L.jsx(Wt,{to:"/$org/projects",params:c,"data-testid":"site-not-owned-projects",children:f})}),e[9]=c,e[10]=f,e[11]=l):l=e[11];let A;return e[12]!==i||e[13]!==o||e[14]!==l?(A=L.jsx(Me,{className:"h-full w-full",image:r,title:i,description:o,actions:l}),e[12]=i,e[13]=o,e[14]=l,e[15]=A):A=e[15],A}function fi(e){const t=ae.c(6),{backend:n}=e,r=ye(),i=n.kind==="pending"?n.retrying:void 0;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=L.jsx(Yt,{className:"size-5 text-muted-foreground"}),t[0]=o):o=t[0];let c;t[1]!==i||t[2]!==r?(c=i&&L.jsx("p",{className:"max-w-xs text-center text-sm text-muted-foreground",children:r("siteEditor.retrying.sandbox")}),t[1]=i,t[2]=r,t[3]=c):c=t[3];let f;return t[4]!==c?(f=L.jsxs("div",{"data-testid":"content-backend-waiting",className:"flex h-full w-full flex-col items-center justify-center gap-3",children:[o,c]}),t[4]=c,t[5]=f):f=t[5],f}export{$r as $,bt as A,si as B,fi as C,zr as D,hr as E,gt as F,qr as G,Yr as H,Jr as I,Jn as J,Kn as K,Dr as L,Vr as M,de as N,Yn as O,Zr as P,Qr as Q,Un as R,ai as S,Wr as T,Vn as U,Hr as V,wn as W,_e as X,Ur as Y,De as Z,Br as _,Lr as a,xr as a0,xn as a1,Pe as a2,Hn as a3,zn as a4,ri as a5,ii as a6,_r as a7,or as a8,dt as a9,me as aa,wr as ab,Nr as ac,Sr as ad,Je as ae,Or as af,Rr as ag,br as ah,Er as ai,mr as aj,ir as ak,Ar as al,kr as am,Kr as an,je as ao,Gr as ap,In as aq,Xr as ar,oi as b,tr as c,ei as d,Ot as e,Ir as f,vr as g,ti as h,ci as i,gr as j,mt as k,jr as l,Rt as m,he as n,we as o,ni as p,En as q,Tr as r,Cr as s,$e as t,Pr as u,Mr as v,Ue as w,Fr as x,kn as y,Zn as z};
|
|
1
|
+
import{bp as z,c as ae,q as xt,K as rt,i as Lt,fD as Mt,f8 as Ct,fm as Xe,fo as It,bx as ne,by as it,fE as xe,bl as Ut,bm as ot,fg as Dt,f9 as Nt,bz as st,bA as Kt,fF as Vt,ea as Ft,b as ye,a4 as qt,j as L,B as Le,L as Wt,h as Yt,a7 as zt}from"./index-CwntHk8S.js";import{c as Qt,x as Gt,u as Ht,v as Xt,ac as Zt,ai as Jt,aj as en,ak as tn,al as nn,C as rn,y as on}from"./site-editor-toast-GAJZE2A0.js";import{b as sn}from"./sandbox-url-D3mC8qhT.js";import{u as cn}from"./use-voice-input-CwLNuWlo.js";import{i as an}from"./AlertCircle-BfuEGc37.js";import{aq as ct}from"./agent-icon-DE4TWlDl.js";import{E as Me}from"./empty-state-XAK3RjVy.js";const K={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},de=["experiments","campaigns"];function mr(e){return K[e]}const gr=de.map(e=>K[e].blockKey);function fn(e){for(const t of de)if(K[t].matcher===e)return t;return null}function hr(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function _r(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const ln="deco";function vr(e,t){if(!z(e))return"missing";const n=K[t],r=Ze(e,n.resolveType),i=Ze(e,n.matcher);if(!r||!i)return"missing";const o=c=>c.namespace===void 0||c.namespace===ln;return o(r)&&o(i)?"available":"replaced"}function Ze(e,t){const n=e?.manifest?.blocks??{};for(const r of Object.values(n))if(r&&Object.hasOwn(r,t))return r[t]??{};return null}function Je(e,t){const n=K[t],r=Object.hasOwn(e,n.blockKey)?e[n.blockKey]:void 0;if(r==null)return{kind:"absent",block:{__resolveType:n.resolveType},values:Object.create(null),invalid:[]};const i=me(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const o=r,c=Object.create(null),f=[];for(const[l,A]of Object.entries(o)){if(l==="__resolveType")continue;const R=t==="experiments"?un(A):pn(A);R===null?f.push(l):c[l]=R}return{kind:"saved",block:o,values:c,invalid:f}}function br(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function Tr(e){const t=Je(e,"experiments"),n=Je(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function un(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function pn(e){if(!me(e))return null;const t={};for(const n of["start","end"]){const r=e[n];if(!(r==null||r==="")){if(typeof r!="string")return null;t[n]=r}}return t}function Ar(e){return e<=0?"off":e>=100?"everyone":"running"}function Sr(e){if(!me(e))return null;const t=fn(e.__resolveType);if(!t)return null;const n=e[K[t].field];return typeof n=="string"?{kind:t,name:n}:null}function Rr(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const yn="date";function Or(e){return me(e)&&e.__resolveType===yn&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function Er(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function kr(e,t){if(t==="__resolveType")return e;const{[t]:n,...r}=e;return r}function me(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function dn(e){const t=[];return e.fastPreviewActive?t.push({kind:"committed"}):(e.fetchEnabled&&e.previewUrl&&t.push({kind:"live",baseUrl:e.previewUrl}),t.push({kind:"committed"})),e.productionUrl&&t.push({kind:"production",baseUrl:e.productionUrl}),t}const mn=5e3;function gn(e,t){return e.kind==="live"?new URL("/live/_meta",e.baseUrl).href:sn(t,"site-meta")}const hn=new Map;async function _n(e,t,n=hn){const r=n.get(e),i=r==="refused"?void 0:t?.etag,o=await fetch(e,{cache:"no-store",headers:i?{"If-None-Match":i}:{}}).catch(()=>null),c=!o&&!!i&&r===void 0,f=c?await fetch(e,{cache:"no-store",headers:{}}).catch(()=>null):o;if(i&&(c&&f?n.set(e,"refused"):o&&n.set(e,"ok")),t&&(!f||f.status===304))return t;if(!f?.ok)return null;try{return await f.json()}catch{return null}}function vn(e){return rt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function Pr(e,t){const n=ae.c(30),{url:r}=Qt(e?.virtualMcpId),i=!!r,o=i||(t?.fetchEnabled??!0),c=r??e?.previewUrl,f=Gt(e?.virtualMcpId),{previewServerUrl:l,runtime:A}=cn(e?.virtualMcpId),R=!i&&A==="cms",O=Ht(e?.virtualMcpId,e?.branch),P=O.kind==="protocol"?O:null,Q=xt(),V=Xt(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Zt(e,P):vn({...e,previewUrl:c,productionUrl:l}):rt.liveMeta(""),n[0]=e,n[1]=c,n[2]=l,n[3]=P,n[4]=q):q=n[4];const j=q;let I;n[5]!==O.kind||n[6]!==V||n[7]!==R||n[8]!==o||n[9]!==i||n[10]!==f||n[11]!==e||n[12]!==c||n[13]!==l||n[14]!==P||n[15]!==Q||n[16]!==j?(I=async()=>{if(P){const{meta:d}=await Jt(Q,P,e,V);if(d instanceof Error)throw d;return d}if(O.kind==="unavailable")throw en("live meta");const G=()=>R?nn(e):rn(e,on(f,".deco/meta.gen.json")),s=i&&c?[{kind:"live",baseUrl:c}]:dn({fetchEnabled:o,previewUrl:c,productionUrl:l,fastPreviewActive:R});for(const d of s){if(d.kind==="committed"){const E=await G();if(E.kind==="data")return E.data;continue}const a=Q.getQueryData(j),B=await _n(gn(d,e),i||a?.etag?a:void 0);if(B)return B}const y=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw y.status=502,y},n[5]=O.kind,n[6]=V,n[7]=R,n[8]=o,n[9]=i,n[10]=f,n[11]=e,n[12]=c,n[13]=l,n[14]=P,n[15]=Q,n[16]=j,n[17]=I):I=n[17];const W=!!e&&O.kind!=="pending",$=P?!1:i?mn:t?.refetchInterval,ee=P?!1:void 0,ie=P?P.describe.pollIntervalMs:3e5;let F;n[18]!==R||n[19]!==i||n[20]!==P?(F=(G,s)=>(P||R||i||s.status!==502)&&G<3,n[18]=R,n[19]=i,n[20]=P,n[21]=F):F=n[21];let Y;return n[22]!==j||n[23]!==I||n[24]!==W||n[25]!==$||n[26]!==ee||n[27]!==ie||n[28]!==F?(Y={queryKey:j,queryFn:I,enabled:W,refetchInterval:$,refetchIntervalInBackground:!1,refetchOnWindowFocus:ee,staleTime:ie,retry:F,retryDelay:tn},n[22]=j,n[23]=I,n[24]=W,n[25]=$,n[26]=ee,n[27]=ie,n[28]=F,n[29]=Y):Y=n[29],Lt(Y)}const bn=new Set(["split-traffic","calendar"]);function Tn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const An=12,Sn=8,ke=32,Rn=40,et="__SECTION_REF__";function se(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function tt(e,t){let n=e.items;if(!n)return!1;if(typeof n.$ref=="string"&&(n=t(n.$ref)),Array.isArray(n.anyOf)||Array.isArray(n.oneOf))return!0;const i=n.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const On="VideoWidget";function J(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function at(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function Ce(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Ie(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function ft(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function ge(e,t){const n=t.manifest?.blocks??{};for(const f of Object.values(n))if(f[e])return f[e];const r=Ce(e)??Ie(e);if(r){for(const f of ft(r.vendor,r.app))for(const l of Object.values(n))if(l[f])return l[f]}const i=at(e);for(const f of Object.values(n))if(f[i])return f[i];const o=t.schema??{};return(o.$defs??o.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function jr(e,t){return Object.keys(ge(e,t)).length>0}function lt(e,t){if(Mt(e,t))return!0;const n=Ce(t)??Ie(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(ft(n.vendor,n.app).some(c=>c in r))return!0;const i=at(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function En(e){return e==="site/apps/site.ts"?!1:Ce(e)!==null||Ie(e)!==null}function kn(e,t){return ut(t,{resolveType:e})}function wr(e,t){return ut(t,{ref:e})}function ut(e,t){const n=e.schema??{},r="resolveType"in t?ge(t.resolveType,e):{},i=n.$defs??n.definitions??{},o=n.root??{},c=s=>{if(s.startsWith("#/root/")){const a=s.slice(7);return o[a]??{}}const y=s.split("/").pop()??"",d=i[y];return d||(y===et?o.sections??{}:{})};let f;typeof r.$ref=="string"?f=c(r.$ref):Object.keys(r).length>0?f=r:f=n;const l=s=>typeof s.$ref=="string"?c(s.$ref):s,A=s=>{const d=l(s).properties?.type;if(d){if(typeof d.const=="string")return d.const;if(typeof d.default=="string")return d.default;if(Array.isArray(d.enum)&&typeof d.enum[0]=="string")return d.enum[0]}},R=(s,y)=>{const d=l(s);return typeof d.title=="string"&&!d.title.startsWith("#")?d.title:y},O=(s,y=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const d=s.$ref.split("/").pop()??"";return!d||y.has(d)?s:O(c(s.$ref),new Set([...y,d]))},P=(s,y=new Set)=>{if(typeof s.$ref!="string")return!1;const d=s.$ref.split("/").pop()??"";return s.$ref==="#/root/sections"||d===et?!0:!d||y.has(d)?!1:P(c(s.$ref),new Set([...y,d]))},Q=s=>{const y=s.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},V=s=>Q(s)!==void 0,q=(s,y=new Set)=>{if(typeof s.$ref!="string")return[];const d=s.$ref.split("/").pop()??"";if(!d||y.has(d))return[];const a=c(s.$ref),B=a.anyOf??a.oneOf;if(!Array.isArray(B))return[];const E=new Set([...y,d]);return B.flatMap(x=>V(x)?[x]:q(x,E))},j=s=>{const y=s.hide;return y===!0||y==="true"},I=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),W=(s,y=new Set,d=0)=>{if(d>An)return{};if(typeof s.$ref=="string"){const B=s.$ref.split("/").pop()??"";return y.has(B)?{}:W(c(s.$ref),new Set([...y,B]),d+1)}let a={};s.properties&&typeof s.properties=="object"&&(a={...a,...s.properties}),Array.isArray(s.required)&&(a.__required=[...J(a.__required),...J(s.required)]);for(const B of["allOf","anyOf","oneOf"]){const E=s[B];if(Array.isArray(E))for(const x of E){const U=J(a.__required),H=W(x,y,d+1);a={...a,...H};const M=B==="allOf"?[...U,...J(H.__required)]:U;M.length>0?a.__required=M:delete a.__required}}return a},$=(s,y=0,d=new Set)=>{let a=s,B;if(typeof s.$ref=="string"){a=c(s.$ref);const k=s.$ref.split("/").pop()??"";B=k,k===On&&!a.format&&(a={...a,format:"video-uri"})}a=O(a);const E=B!==void 0&&d.has(B),x=B!==void 0?new Set([...d,B]):d,U=(k,m,v,T=!0)=>!E&&(!T||v<=Rn)&&m<Sn?$(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(T=>!(T.type==="null"||T.type===null)),v=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]};m.length>0&&m.every(T=>v(T)!==void 0)&&(H=m.map(T=>v(T)))}}let M,oe,Fe,qe=!1;if(a.type)M=Array.isArray(a.type)?String(a.type.find(k=>k!=="null")??a.type[0]):String(a.type);else if(a.anyOf||a.oneOf){const m=(a.anyOf??a.oneOf).filter(v=>!(v.type==="null"||v.type===null));if(m.length===0)M="null";else if(m.length===1){const v=m[0];oe=v;const T=O(v);typeof v.$ref=="string"&&se(T)?(M="array",Fe=T.items):M=v.type?Array.isArray(v.type)?String(v.type[0]):String(v.type):typeof v.$ref=="string"?"object":"string"}else{if(H){const u=p=>typeof s[p]=="string"?s[p]:typeof a[p]=="string"?a[p]:void 0;return{type:"string",title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,enum:H,format:u("format"),options:u("options")}}const v=m.filter(V),T=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>O(u)).find(se),Se=u=>{if(typeof u.$ref!="string")return;const p=O(u),g=p.anyOf??p.oneOf;if(!Array.isArray(g))return;const h=[...g.filter(V),...g.filter(_=>!V(_)).flatMap(_=>q(_))],w=g.filter(_=>{if(V(_)||_.type==="null")return!1;const C=l(_),N=C.properties;return!N?.__resolveType&&!C.anyOf&&!C.oneOf&&(C.type==="object"||!!N)});return h.length>0&&w.length>0?{data:w,loaders:h}:void 0},le=m.flatMap(u=>{const p=Se(u);return p?[p]:[]}),Pt=le.length===0&&m.filter(u=>!se(O(u))).every(u=>typeof u.$ref=="string"||v.includes(u)),jt=v.some(u=>{const p=u.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===Ct||z(e)&&p[0]==="multivariate")}),Re=(u=[])=>{const p=new Map;for(const S of[...v,...m.filter(b=>!v.includes(b)).flatMap(b=>q(b)),...u]){const b=Q(S);b&&!p.has(b)&&p.set(b,S)}const g=[...p].map(([S,b])=>({resolveType:S,title:typeof b.title=="string"?b.title:ne(S),description:typeof b.description=="string"?b.description:void 0,schema:U(b,y+1,p.size)})),h=[];for(const S of m){if(v.includes(S)||typeof S.$ref!="string")continue;const b=c(S.$ref);let X;const Z=b.properties?.__resolveType;if(Array.isArray(Z?.enum)&&typeof Z.enum[0]=="string"&&(X=Z.enum[0]),!X&&Array.isArray(b.allOf))for(const $t of b.allOf){const Ee=$t.properties?.__resolveType?.enum;if(Array.isArray(Ee)&&typeof Ee[0]=="string"){X=Ee[0];break}}X&&h.push({resolveType:X,title:typeof b.title=="string"&&!b.title.startsWith("#")?b.title:ne(X),description:typeof b.description=="string"?b.description:void 0,schema:U(b,y+1,m.length)})}const w=new Set(g.map(S=>S.resolveType)),_=[...g,...h.filter(S=>!w.has(S.resolveType))],C=m.filter(S=>!v.includes(S)),N=C.length===1&&!E?$(C[0],y+1,x):void 0;return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:_,acceptsAnySection:T,plainSchema:N,hidden:j(a)||j(s)?!0:void 0}};if(D){const u=!tt(D,c);if(u&&le.length>0){const p=typeof s.title=="string"?s.title:typeof a.title=="string"&&!I(a.title)?a.title:void 0,g=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,h=m.find(_=>se(O(_))),w=le.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,C)=>({title:R(_,`Option ${C+1}`),schema:$(_,y+1,x)})),{title:R(h,`Option ${w.length+1}`),schema:$(D,y+1,x)}],loaderRef:{...Re(le.flatMap(_=>_.loaders)),title:p,description:g},hidden:j(a)||j(s)?!0:void 0}}if(u&&m.length>1&&Pt){const p=$(D,y+1,x),g=typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:p.title,h=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:p.description;return{...p,type:"array",title:g,description:h,loaderRef:v.length>0?{...Re(),title:g,description:h}:void 0}}if(jt){const p=$(D,y+1,x);return{...p,type:"array",title:typeof a.title=="string"?a.title:p.title,description:typeof a.description=="string"?a.description:p.description}}}if(v.length>0)return Re();const ze=u=>{const p=l(u);if(typeof p.title=="string"&&Xe(p.title))return!0;const g=p.properties?.__resolveType?.enum;if(Array.isArray(g)&&typeof g[0]=="string")return!0;if(Array.isArray(p.allOf))for(const h of p.allOf){const w=h.properties?.__resolveType?.enum;if(Array.isArray(w)&&typeof w[0]=="string")return!0}return!1},Qe=m.map(u=>A(u));if(m.length>1&&Qe.every(u=>typeof u=="string")&&!m.some(ze)){const u=m.map((p,g)=>{const h=l(p),w=Qe[g];return{resolveType:w,title:R(p,w),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:w,discriminatorRequired:[h,...h.allOf??[]].some(_=>J(_.required).includes("type")),schema:U(h,y+1,m.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,discriminatorKey:"type",anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}const Oe=u=>{if(ze(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},wt=u=>{const p=O(u);return se(p)?!tt(p,c):!1},Ge=y<ke&&m.every(u=>Oe(u)||wt(u))&&m.some(Oe),He=m.every(u=>typeof u.$ref=="string"),Bt=z(e)&&!He&&m.some(u=>typeof u.$ref=="string"&&bn.has(Tn(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Oe(u));if((He||Bt)&&!Ge){const u=[];for(const p of m){if(typeof p.$ref!="string")continue;const g=c(p.$ref);let h,w,_=!1;if(typeof g.title=="string"){const S=Xe(g.title);S&&(h=S.blockId,w=S.blockId)}if(!h&&Array.isArray(g.allOf))for(const S of g.allOf){const Z=((S.properties??{}).__resolveType??{}).enum;if(Array.isArray(Z)&&typeof Z[0]=="string"){h=Z[0],_=!0;break}}if(!h){const b=g.properties?.__resolveType?.enum;Array.isArray(b)&&typeof b[0]=="string"&&(h=b[0],_=!0)}h||(h=p.$ref.split("/").pop()??"");const C=h.includes("/")||_&&!It(h),N=C?void 0:A(p);!N&&!C||_&&h==="lazy"||u.push({resolveType:N??h,title:w??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:ne(h)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:N,schema:U(g,y+1,m.length)})}return{type:"block-ref",acceptsAnySection:T,title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}if(Ge){const u=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]},p=m.map((g,h)=>{const w=l(g).properties??{},_={};for(const[C,N]of Object.entries(w)){const S=u(N);S!==void 0&&(_[C]=S)}return{title:R(g,`Option ${h+1}`),schema:$(g,y+1),discriminators:Object.keys(_).length?_:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,inlineUnionBranches:p,hidden:j(a)||j(s)?!0:void 0}}M="object"}}else a.allOf?(M="object",qe=I(a.title)):typeof s.$ref=="string"&&(M="object");let fe,We,Ye=!1;if(y<ke&&!E){const k=W(a),m=k.__resolveType?.enum;Ye=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const v=J(k.__required);v.length>0&&(We=v);const T=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(T.length>0){fe={};for(const[D,Se]of T)fe[D]=$(Se,y+1,x)}}let Ae;if((M==="array"||a.type==="array")&&y<ke&&!E){const k=a.items??Fe;if(k){Ae=$(k,y+1,x);const m=l(k);typeof m.title=="string"&&m.title.includes("{{")&&(Ae.titleBy=m.title)}}const te=k=>{const m=oe?.[k];return typeof m=="string"?m:void 0},kt=()=>{if("default"in s)return s.default;if("default"in a)return a.default;if(oe&&"default"in oe)return oe.default};return{type:M??"string",title:typeof s.title=="string"?s.title:!qe&&typeof a.title=="string"?a.title:te("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:te("description"),default:kt(),enum:Array.isArray(a.enum)?a.enum:H??void 0,format:typeof s.format=="string"?s.format:typeof a.format=="string"?a.format:te("format"),properties:fe,required:We,items:Ae,lazy:Ye&&fe?.value?!0:void 0,recursiveRef:E&&typeof s.$ref=="string"&&(M==="object"||M==="array"||a.type==="array")?s.$ref:void 0,hidden:j(a)||j(s)?!0:void 0,titleBy:typeof a.titleBy=="string"?a.titleBy:te("titleBy"),image:typeof a.image=="string"?a.image:te("image"),options:typeof s.options=="string"?s.options:typeof a.options=="string"?a.options:te("options")}};if("ref"in t)return $({$ref:t.ref});const ee=f.properties??{},ie=Object.keys(ee).every(s=>s.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&ie){const s=ee.__resolveType,y=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const d of f.allOf){const a=O(d);if(!(Array.isArray(a.anyOf)||Array.isArray(a.oneOf))||a.properties)continue;const E=$(a,0);if(E.type==="inline-union"&&E.inlineUnionBranches){const x=I(E.title);return{...E,title:x?void 0:E.title,inlineUnionBranches:y?E.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:y}})):E.inlineUnionBranches}}}}const F=W(f),Y={};for(const[s,y]of Object.entries(F))s.startsWith("__")||s==="@type"||(Y[s]=$(y,0));if(Object.keys(Y).length===0)return null;const G=J(F.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:Y,required:G.length>0?G:void 0}}function Br(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,c=o.properties??{};if(Object.keys(c).some(A=>!A.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const l=c.__resolveType;return!!l&&Array.isArray(l.enum)&&l.enum[0]===e}function $r(e){const t=r=>{switch(typeof r){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(r===null)return{type:"string"};if(Array.isArray(r))return{type:"array",items:t(r[0])};const i={};for(const[o,c]of Object.entries(r))o.startsWith("__")||(i[o]=t(c));return{type:"object",properties:i}}default:return{type:"string"}}},n={};for(const[r,i]of Object.entries(e))r.startsWith("__")||(n[r]=t(i));return Object.keys(n).length===0?null:{type:"object",properties:n}}function Ue(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},c=o.icon,f=o.logo,l=o,A=O=>O===!0||O==="true",R=A(l.hide)||A(l.ignore)||A(l.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof c=="string"?c:void 0,logo:typeof f=="string"?f:void 0,hidden:R||void 0}}const pt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],Pn=new Set(pt);function De(e){return Pn.has(e)}function Ne(e,t){return De(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function xr(e,t){return Ne(e,z(t)?t:void 0)}function he(e){return e.replace(/\/+$/,"")||"/"}function Lr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function jn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function Mr(e){const t=e.trim();return t?jn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function wn(e){const t=[];for(const n of e.matchAll(Ke)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function yt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function Cr(e){e=yt(e);const t=[];let n=0;for(const r of e.matchAll(Ke))r.index>n&&t.push({type:"text",text:e.slice(n,r.index)}),t.push({type:"param",name:r[1]??"*"}),n=r.index+r[0].length;return n<e.length&&t.push({type:"text",text:e.slice(n)}),t}function Ir(e,t){return yt(e).replace(Ke,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}const dt=pt[0],Bn=new Set(["site/sections/Theme/Theme.tsx"]);function $n(e,t){return Bn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function _e(e,t){return!!($n(e,z(t))||ot(e)||e.toLowerCase().includes("preview"))}function mt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(De(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":dt}function xn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function Ur(e){return e?xn(e)?"page":mt(e):dt}function Pe(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return Pe(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...Pe(n));return t}return[]}function Ln(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i)){if(_e(o,e))continue;const c=Ue(o,e);n.push({resolveType:o,title:c.title??ne(o),description:c.description,previewBlock:o,isSavedBlock:!1})}return n}function Dr(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i))_e(o,e)||n.has(o)||n.set(o,{resolveType:o,title:ne(o)});return[...n.values()].sort((r,i)=>r.title.localeCompare(i.title))}function gt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=z(e);if(!ht(n,r))return n;const i=t.variants;if(!Array.isArray(i))return n;for(const o of i){const c=Ut(o,r);if(!c||typeof c!="object")continue;let f=c.__resolveType;if(typeof f=="string"&&ot(f)&&(f=c.section?.__resolveType??f),typeof f=="string"&&xe(e,f))return f}return n}function ht(e,t){return e===Dt||t&&e===Nt}function Mn(e,t){return gt(e,t)!==t.__resolveType}function _t(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||it(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c!="string"||De(c)||typeof o.path=="string"||_e(c,e)||!(xe(e,c)||ht(c,z(e))&&Mn(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function Cn(e,t){const n=st(t.resolveType,e),r=n?{}:Ue(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||ne(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function Nr(e,t){const n=mt(e),r=kn(n,e),i=Pe(r?.properties?.sections),o=new Map,c=f=>{if(!_e(f.resolveType,e)){if(st(f.resolveType,e)){it(f.resolveType)||o.set(f.resolveType,f);return}xe(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of Ln(e))c(f);for(const f of i)c(Cn(e,f));for(const f of _t(e,t))c(f);return[...o.values()].sort((f,l)=>f.title.localeCompare(l.title))}function Kr(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const n=t.theme;if(!(!n||typeof n!="object"||Array.isArray(n)))return n}const ve="website/loaders/redirect.ts",Vr=new Set([ve,"website/loaders/redirects.ts"]),be="redirect",In=[301,302,307,308],Un={temporary:307,permanent:301};function Fr(e){return e.flat&&e.status||Un[e.type]}const ue=e=>typeof e=="string"?e:"",Dn=e=>e==="permanent"?"permanent":"temporary",Nn=e=>In.find(t=>t===e);function vt(e){const t=Nn(e.status);return{from:ue(e.from),to:ue(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function Te(e){if(e?.__resolveType===be)return vt(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ue(t.from),to:ue(t.to),type:Dn(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Kn(e){const t=[];for(const[n,r]of Object.entries(e)){if(!r||typeof r!="object"||Array.isArray(r))continue;const i=r;i.__resolveType!==ve&&i.__resolveType!==be||t.push({key:n,...Te(i)})}return t}function qr(e){return Te(e)}function Vn(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...o}=t??{};return{...o,__resolveType:be,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const n={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(n.discardQueryParameters=!0),{redirect:n,__resolveType:ve}}function Fn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const qn=1e3;function Wr(e,t){const n=Fn(t);for(let r=0;r<qn;r++){const i=`redirects-${n}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}const Wn="Redirects",bt="redirects";function Tt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===bt}function Yn(e){return Object.keys(e).filter(n=>Tt(e[n])).sort()[0]??Wn}function Yr(e,t){const n=e.lastIndexOf("#");if(n<=0)return null;const r=e.slice(0,n),i=e.slice(n+1);return!/^\d+$/.test(i)||!Object.hasOwn(t,r)||!Tt(t[r])?null:{block:r,index:Number(i)}}function re(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e.redirects;return Array.isArray(t)?t.filter(n=>!!n&&typeof n=="object"&&!Array.isArray(n)):[]}function At(e){return"redirect"in e?Te(e):vt({...e})}function St(e,t){const{__resolveType:n,...r}=Vn(e,{...t});return r}function zr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:ve}:{...n,__resolveType:be}])}function Qr(e,t=Yn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...At(n)}))}function Gr(e,t){const n=re(e)[t];return n?At(n):Te(void 0)}function Ve(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:bt,redirects:t}}function Hr(e,t){return Ve(e,[...re(e),St(t)])}function Xr(e,t,n){const r=re(e),i=r.slice();return i[t]=St(n,r[t]),Ve(e,i)}function Zr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function zn(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,""),t=t.replace(/-\d{5,}$/,"");try{return decodeURIComponent(t)}catch{return t}}function Jr(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const o=e.find(f=>f.key===n);if(o)return o;const c=e.find(f=>f.key.endsWith(`-${n}`));if(c)return c}if(r){const o=je(e,r);if(o)return o}if(i){const o=je(e,i);if(o)return o}return null}function je(e,t,n){const r=he;if(n){const o=e.find(c=>c.key===n);if(o)return o}const i=e.filter(o=>r(o.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((o,c)=>o.key.localeCompare(c.key))[0]??null}function ei(e,t,n){const r=je(e,t,n);return r||he(t)!=="/"?r:Gn(e)??e[0]??null}function Qn(e){return he(e).split("/").filter(Boolean)}function Gn(e){const t=e.map(n=>Qn(n.path));return e.find((n,r)=>{if(wn(n.path).length>0)return!1;const i=t[r];return t.every(o=>i.every((c,f)=>o[f]===c))})??null}const ce="site",Rt="site/apps/site.ts";function we(e,t){return e===ce?!0:t.__resolveType===Rt}function ti(e,t){return e?Ot(e,t).length>0||Kn(e).length>0?!0:t?tr(e,t).length>0||Jn(e,t)?!0:er(e,t).length>0:!1:!1}function Hn(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!Ne(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:zn(e),path:r.path}}function Ot(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=Hn(r,i,t);o&&n.push(o)}return n}function Be(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>Be(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>Be(i,t,n+1))}function nt(e,t){return Kt(e)?Vt(e).some(n=>t.has(n)):Be(e,t)}function Xn(e,t,n){const r=Ot(e,n),i=new Set(r.map(c=>c.key)),o=new Set([t]);for(let c=!0;c;){c=!1;for(const[f,l]of Object.entries(e))o.has(f)||i.has(f)||nt(l,o)&&(o.add(f),c=!0)}return r.filter(c=>c.key!==t&&nt(e[c.key],o))}function ni(e,t,n){const r=o=>he(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=Xn(e,t,n).sort((o,c)=>r(o)-r(c)||(o.path<c.path?-1:o.path>c.path?1:0));return i??null}function Zn(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function $e(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?Ue(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const o=t.name.trim();if(o)return o}return e.replace(/[-_]/g," ").replace(/\b\w/g,o=>o.toUpperCase())}function Jn(e,t){const n=e[ce];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(we(ce,r)||lt(t,i)))return{key:ce,name:$e(ce,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;if(!we(r,o))continue;const c=typeof o.__resolveType=="string"?o.__resolveType:Rt;return{key:r,name:$e(r,o,t),resolveType:c}}return null}function er(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c=="string"&&(Ne(c,t)||typeof o.path!="string"&&(we(r,o)||!lt(t,c)&&!En(c)||n.push({key:r,name:$e(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function tr(e,t){return _t(t,e).map(n=>{const r=e[n.resolveType],i=gt(t,r);return{key:n.resolveType,name:n.description??Zn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const nr=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,rr={posts:"post",categories:"category",authors:"author"},Et=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function ri(e,...t){const n=e?nr.exec(e)?.[1]:void 0;if(n)return rr[n]??null;for(const r of t){if(!pe(r))continue;const i=r.__resolveType;if(typeof i!="string"||!i.startsWith("blog/"))continue;const o=Et.find(c=>pe(r[c]));if(o)return o}return null}function ir(...e){for(const t of e)if(pe(t))for(const n of Et){const r=t[n];if(pe(r))for(const i of["title","name"]){const o=r[i];if(typeof o=="string"&&o.trim())return o.trim()}}return null}function or(e,t=Ft){return t(`sectionsEditor.blogKind.${e}`)}function ii(e,t,n){return ir(...t)??or(e,n)}const sr="https://github.com/decocms/blocks";function oi(){const e=ae.c(14),t=ye();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=L.jsx(ct,{size:48,className:"text-muted-foreground"}),e[0]=n):n=e[0];let r;e[1]!==t?(r=t("mainPanelTabs.blocksTabStates.emptyStateTitle"),e[1]=t,e[2]=r):r=e[2];let i;e[3]!==t?(i=t("mainPanelTabs.blocksTabStates.emptyStateDescription"),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=t("mainPanelTabs.blocksTabStates.setupContentEditing"),e[5]=t,e[6]=o):o=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=L.jsx(zt,{size:14}),e[7]=c):c=e[7];let f;e[8]!==o?(f=L.jsx(Le,{size:"sm",asChild:!0,children:L.jsxs("a",{href:sr,target:"_blank",rel:"noreferrer",children:[o,c]})}),e[8]=o,e[9]=f):f=e[9];let l;return e[10]!==r||e[11]!==i||e[12]!==f?(l=L.jsx(Me,{className:"h-full w-full",image:n,title:r,description:i,actions:f}),e[10]=r,e[11]=i,e[12]=f,e[13]=l):l=e[13],l}function si(e){const t=ae.c(15),{source:n,onRetry:r}=e,i=ye();let o;t[0]!==n||t[1]!==i?(o=i(n==="sandbox"?"mainPanelTabs.blocksTabStates.errorStateSandbox":"mainPanelTabs.blocksTabStates.errorStateData"),t[0]=n,t[1]=i,t[2]=o):o=t[2];const c=o;let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=L.jsx(an,{size:48,className:"text-muted-foreground"}),t[3]=f):f=t[3];let l;t[4]!==i?(l=i("mainPanelTabs.blocksTabStates.errorStateTitle"),t[4]=i,t[5]=l):l=t[5];let A;t[6]!==i?(A=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=A):A=t[7];let R;t[8]!==r||t[9]!==A?(R=L.jsx(Le,{variant:"outline",size:"sm",onClick:r,children:A}),t[8]=r,t[9]=A,t[10]=R):R=t[10];let O;return t[11]!==c||t[12]!==l||t[13]!==R?(O=L.jsx(Me,{image:f,title:l,description:c,actions:R}),t[11]=c,t[12]=l,t[13]=R,t[14]=O):O=t[14],O}function ci(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function ai(){const e=ae.c(16),t=ye(),{org:n}=qt();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=L.jsx(ct,{size:48,className:"text-muted-foreground"}),e[0]=r):r=e[0];let i;e[1]!==t?(i=t("siteEditor.siteNotOwned.title"),e[1]=t,e[2]=i):i=e[2];let o;e[3]!==t?(o=t("siteEditor.siteNotOwned.body"),e[3]=t,e[4]=o):o=e[4];let c;e[5]!==n.slug?(c={org:n.slug},e[5]=n.slug,e[6]=c):c=e[6];let f;e[7]!==t?(f=t("siteEditor.siteNotOwned.openProjects"),e[7]=t,e[8]=f):f=e[8];let l;e[9]!==c||e[10]!==f?(l=L.jsx(Le,{size:"sm",variant:"outline",asChild:!0,children:L.jsx(Wt,{to:"/$org/projects",params:c,"data-testid":"site-not-owned-projects",children:f})}),e[9]=c,e[10]=f,e[11]=l):l=e[11];let A;return e[12]!==i||e[13]!==o||e[14]!==l?(A=L.jsx(Me,{className:"h-full w-full",image:r,title:i,description:o,actions:l}),e[12]=i,e[13]=o,e[14]=l,e[15]=A):A=e[15],A}function fi(e){const t=ae.c(6),{backend:n}=e,r=ye(),i=n.kind==="pending"?n.retrying:void 0;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=L.jsx(Yt,{className:"size-5 text-muted-foreground"}),t[0]=o):o=t[0];let c;t[1]!==i||t[2]!==r?(c=i&&L.jsx("p",{className:"max-w-xs text-center text-sm text-muted-foreground",children:r("siteEditor.retrying.sandbox")}),t[1]=i,t[2]=r,t[3]=c):c=t[3];let f;return t[4]!==c?(f=L.jsxs("div",{"data-testid":"content-backend-waiting",className:"flex h-full w-full flex-col items-center justify-center gap-3",children:[o,c]}),t[4]=c,t[5]=f):f=t[5],f}export{$r as $,bt as A,si as B,fi as C,zr as D,hr as E,gt as F,qr as G,Yr as H,Jr as I,Jn as J,Kn as K,Dr as L,Vr as M,de as N,Yn as O,Zr as P,Qr as Q,Un as R,ai as S,Wr as T,Vn as U,Hr as V,wn as W,_e as X,Ur as Y,De as Z,Br as _,Lr as a,xr as a0,xn as a1,Pe as a2,Hn as a3,zn as a4,ri as a5,ii as a6,_r as a7,or as a8,dt as a9,me as aa,wr as ab,Nr as ac,Sr as ad,Je as ae,Or as af,Rr as ag,br as ah,Er as ai,mr as aj,ir as ak,Ar as al,kr as am,Kr as an,je as ao,Gr as ap,In as aq,Xr as ar,oi as b,tr as c,ei as d,Ot as e,Ir as f,vr as g,ti as h,ci as i,gr as j,mt as k,jr as l,Rt as m,he as n,we as o,ni as p,En as q,Tr as r,Cr as s,$e as t,Pr as u,Mr as v,Ue as w,Fr as x,kn as y,Zn as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{N as y}from"./site-editor-toast-
|
|
1
|
+
import{N as y}from"./site-editor-toast-GAJZE2A0.js";import{a0 as h,W as _}from"./blocks-tab-states-GP0NCNYs.js";import{s as R,X as B,Y as T}from"./category-tree-D2ejZxYL.js";const s=t=>typeof t=="string"?t:"";function p(t,r){for(const e of T(t)){const o=s(e[r]);if(o)return o}return null}function b(t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const e=t;return typeof e.__resolveType!="string"||!h(e.__resolveType,r)?null:typeof e.path=="string"?e.path:null}function C(t){return _(t).filter(r=>r!=="*").length}function P(t,r,e){let o=null,a=Number.POSITIVE_INFINITY;for(const u of Object.values(t)){const n=b(u,e);if(!n||!r.test(JSON.stringify(u)))continue;const l=C(n);l<a&&(o=n,a=l)}return o}const O=/blogpostpage/i,E=/blogcategorypage/i;function m(t,r){return p(t,"pageSlug")??P(t,O,r)}function G(t,r){return p(t,"categorySlug")??P(t,E,r)}function I(t){const r=t.categories;if(!Array.isArray(r)||r.length===0)return"";const e=r[0];return s(e?.slug)}function L(t,r){let e=t;if(/:category[*?]?/.test(e)){if(!r.category)return null;e=e.replace(/:category[*?]?/g,g(r.category))}if(/:slug[*?]?/.test(e)){if(!r.slug)return null;e=e.replace(/:slug[*?]?/g,encodeURIComponent(r.slug))}return e}const f=/:(?:categorySlug|categoria|category|slug)[*?]?/,d=/:(?:categorySlug|categoria|category|slug)[*?]?/g;function A(t,r=!1){return/:(?:categorySlug|categoria|category)\*|\/\*$/.test(t)?!0:r&&/:slug\*/.test(t)&&!/:(?:categorySlug|categoria|category)[*?]?/.test(t)}function g(t){return t.split("/").filter(r=>r!=="."&&r!=="..").map(encodeURIComponent).join("/")}function S(t,r){if(!r)return"";const e=R(t).categories;return B(r,e).join("/")}function M(t,r){return/\/\*$/.test(t)&&!f.test(t)?r?t.replace(/\/\*$/,`/${g(r)}`):null:f.test(t)?r?t.replace(d,g(r)):null:t}function v({decofile:t,category:r,previewBaseUrl:e,draftPointer:o,meta:a}){if(!e)return null;const u=G(t,a);if(!u)return null;const n=s(r.slug),l=M(u,A(u,!0)?S(t,n):n);if(!l)return null;try{return y(new URL(l,e).href,o)}catch{return null}}const j="draft";function U({decofile:t,post:r,previewBaseUrl:e,draftPointer:o,meta:a,planning:u=!1}){if(!e)return null;const n=m(t,a);if(!n)return null;const l=I(r),c=L(n,{category:A(n)?S(t,l):l,slug:s(r.slug)});if(!c)return null;try{const i=new URL(c,e);return u&&i.searchParams.set(j,"true"),y(i.href,o)}catch{return null}}export{L as a,U as b,v as c,m as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as N,j as i,r as _,m as R,b as T}from"./index-CwntHk8S.js";import{a as v}from"./UserCheck01-DVOI9Qq6.js";import{O as P,S as K,I as D,g as I}from"./held-block-view-MI6LUwjK.js";import{t as y}from"./ChevronDown-Kpzb5_P-.js";import{C as W,a as Y,b as w}from"./collapsible-DrV9qsGN.js";import{ah as B,ai as L}from"./category-tree-D2ejZxYL.js";function $(l){const e=N.c(2);let t;return e[0]!==l?(t=i.jsx(P,{children:i.jsx(K,{...l})}),e[0]=l,e[1]=t):t=e[1],t}function A(l){const e=N.c(18),{icon:t,title:o,defaultOpen:c,children:d}=l,j=c===void 0?!1:c,[f,C]=_.useState(j);let m;e[0]!==t?(m=i.jsx(t,{size:15}),e[0]=t,e[1]=m):m=e[1];let s;e[2]!==o?(s=i.jsx("span",{className:"flex-1 text-left",children:o}),e[2]=o,e[3]=s):s=e[3];const b=f&&"rotate-180";let n;e[4]!==b?(n=R("transition-transform",b),e[4]=b,e[5]=n):n=e[5];let p;e[6]!==n?(p=i.jsx(y,{size:15,className:n}),e[6]=n,e[7]=p):p=e[7];let r;e[8]!==m||e[9]!==s||e[10]!==p?(r=i.jsx(W,{asChild:!0,children:i.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground cursor-pointer",children:[m,s,p]})}),e[8]=m,e[9]=s,e[10]=p,e[11]=r):r=e[11];let a;e[12]!==d?(a=i.jsx(Y,{className:"px-2 pt-4",children:d}),e[12]=d,e[13]=a):a=e[13];let u;return e[14]!==f||e[15]!==r||e[16]!==a?(u=i.jsxs(w,{open:f,onOpenChange:C,className:"mt-4",children:[r,a]}),e[14]=f,e[15]=r,e[16]=a,e[17]=u):u=e[17],u}function Z(l){const e=N.c(32),{schema:t,value:o,onChange:c,basePath:d,meta:j,decofile:f,sandbox:C,onSaveReferencedBlock:m}=l,s=T();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const[n,p]=_.useState(b);if(!t)return null;let r;e[1]!==s?(r=s("sandbox.blogCustomFields.title"),e[1]=s,e[2]=r):r=e[2];let a;e[3]!==s?(a=s("sandbox.blogCustomFields.description"),e[3]=s,e[4]=a):a=e[4];let u;e[5]!==a?(u=i.jsx("p",{className:"mb-4 text-xs text-muted-foreground",children:a}),e[5]=a,e[6]=u):u=e[6];let x;e[7]!==s?(x=s("sandbox.blogCustomFields.breadcrumbLabel"),e[7]=s,e[8]=x):x=e[8];let h;e[9]!==s?(h=s("sandbox.blogCustomFields.backToFields"),e[9]=s,e[10]=h):h=e[10];let g;e[11]!==n||e[12]!==x||e[13]!==h?(g=i.jsx(D,{path:n,onNavigate:p,label:x,backTitle:h}),e[11]=n,e[12]=x,e[13]=h,e[14]=g):g=e[14];let S;e[15]!==c?(S=F=>c(F),e[15]=c,e[16]=S):S=e[16];let E;e[17]!==d||e[18]!==n||e[19]!==f||e[20]!==j||e[21]!==m||e[22]!==C||e[23]!==t||e[24]!==S||e[25]!==o?(E=i.jsx($,{schema:t,value:o,onChange:S,basePath:d,breadcrumbPath:n,onBreadcrumbChange:p,meta:j,decofile:f,sandbox:C,onSaveReferencedBlock:m}),e[17]=d,e[18]=n,e[19]=f,e[20]=j,e[21]=m,e[22]=C,e[23]=t,e[24]=S,e[25]=o,e[26]=E):E=e[26];let O;return e[27]!==r||e[28]!==u||e[29]!==g||e[30]!==E?(O=i.jsxs(A,{icon:v,title:r,children:[u,g,E]}),e[27]=r,e[28]=u,e[29]=g,e[30]=E,e[31]=O):O=e[31],O}function k(l,e){if(!e)return null;const o=I(B[l],e)?.properties?.[L[l]];if(!o)return null;const c=o.properties?o:o.plainSchema;return c?.properties?c:null}const z=new Set(["__resolveType","@type"]);function G(l,e){const t=l?.properties;if(!t)return null;const o=Object.fromEntries(Object.entries(t).filter(([c,d])=>!e.has(c)&&!z.has(c)&&d.hidden!==!0));return Object.keys(o).length===0?null:{type:"object",properties:o}}function ee(l,e,t){return G(k(l,e),t)}const V=["title","slug","excerpt","date","readTime","image","mobileImage","alt","authors","categories","sections","seo","extraProps","scheduledDatetime","status","dateModified","planning","content"],te=new Set(V),M=["name","slug","parentSlug","description","sections"],se=new Set(M);export{Z as C,te as K,$ as S,A as a,ee as b,se as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as I,a4 as $,
|
|
1
|
+
import{c as I,a4 as $,bf as Y,j as n,b as K,B as z,h as V,r as X}from"./index-CwntHk8S.js";import{E as q}from"./empty-state-B67nwURy.js";import{n as J}from"./BookOpen01-vaPiqXWZ.js";import{c as F,u as Q}from"./chat-context-CiT7AzBS.js";import{c as Z,u as ee,i as te,h as se,j as oe,f as ae,k as ie}from"./site-editor-toast-GAJZE2A0.js";import{i as ne,u as re,S as le,C as ce}from"./blocks-tab-states-GP0NCNYs.js";import{E as A,B as fe}from"./empty-message-C90DlePv.js";import{u as me}from"./use-sandbox-events-cbWqZuIm.js";import{a as de}from"./sandbox-lifecycle-context-CsmYXarj.js";import{u as ue}from"./use-voice-input-CwLNuWlo.js";import{k as pe,S as he,i as ge,n as xe,C as be,F as ve,s as Se,p as ye}from"./category-tree-D2ejZxYL.js";import{f as je}from"./blog-preview-url-CwSXxQWr.js";import{E as ke}from"./empty-state-XAK3RjVy.js";import{G as D}from"./github-icon-BH4kK9If.js";import{R as Ee}from"./new-project-dialog-DI67z-Vr.js";import{a as G}from"./agent-capabilities-COfZW6Pr.js";import{b as Be}from"./repository-binding-Cqb4hBI0.js";function He(R){const e=I.c(27),{children:f}=R,{currentBranch:c,virtualMcpId:s}=F(),{org:m}=$(),d=me(),v=de(),{runtime:j,previewServerUrl:E}=ue(s),{url:k}=Z(s),i=ee(s,c),t=te(i),h=i.kind==="protocol"&&i.source==="github";Y(h);const r=pe({fastPreviewActive:t||j==="cms",previewState:v.previewState,lifecyclePhase:d.lifecycle.phase});let u;e[0]!==i||e[1]!==k?(u=se(i)??k,e[0]=i,e[1]=k,e[2]=u):u=e[2];const p=u,l=j==="cms"&&!p;if(r.kind==="sandbox-card"){const o=`/${m.slug}/settings/connections`;let B;return e[3]!==r.state||e[4]!==v.start||e[5]!==o||e[6]!==d.lifecycle||e[7]!==d.phase?(B=n.jsx(he,{state:r.state,claimPhase:d.phase,lifecycle:d.lifecycle,onStart:v.start,connectionsHref:o}),e[3]=r.state,e[4]=v.start,e[5]=o,e[6]=d.lifecycle,e[7]=d.phase,e[8]=B):B=e[8],B}if(!s||!c){let o;return e[9]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(A,{title:"Waiting for sandbox context…"}),e[9]=o):o=e[9],o}if(ne(i)){let o;return e[10]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(le,{}),e[10]=o):o=e[10],o}if(i.kind==="pending"){let o;return e[11]!==i?(o=n.jsx(ce,{backend:i}),e[11]=i,e[12]=o):o=e[12],o}const S=t?null:v.previewUrl,g=p??(l?E:v.previewUrl);let y;e[13]!==c||e[14]!==f||e[15]!==l||e[16]!==r.devServerReady||e[17]!==r.sandboxWarming||e[18]!==h||e[19]!==m.slug||e[20]!==S||e[21]!==g||e[22]!==s?(y=n.jsx(_e,{orgSlug:m.slug,virtualMcpId:s,branch:c,previewUrl:S,sitePreviewUrl:g,fastPreviewActive:l,hostedDraft:h,devServerReady:r.devServerReady,sandboxWarming:r.sandboxWarming,children:f}),e[13]=c,e[14]=f,e[15]=l,e[16]=r.devServerReady,e[17]=r.sandboxWarming,e[18]=h,e[19]=m.slug,e[20]=S,e[21]=g,e[22]=s,e[23]=y):y=e[23];let _;return e[24]!==t||e[25]!==y?(_=n.jsx(fe,{value:t,children:y}),e[24]=t,e[25]=y,e[26]=_):_=e[26],_}function _e(R){const e=I.c(54),{orgSlug:f,virtualMcpId:c,branch:s,previewUrl:m,sitePreviewUrl:d,fastPreviewActive:v,hostedDraft:j,devServerReady:E,sandboxWarming:k,children:i}=R,t=K(),h=Q()?.taskId??null;let r;e[0]!==s||e[1]!==f||e[2]!==m||e[3]!==h||e[4]!==c?(r={orgSlug:f,virtualMcpId:c,branch:s,threadId:h,previewUrl:m},e[0]=s,e[1]=f,e[2]=m,e[3]=h,e[4]=c,e[5]=r):r=e[5];const u=r;let p;e[6]!==E?(p={fetchEnabled:E},e[6]=E,e[7]=p):p=e[7];const{data:l,isLoading:S}=oe(u,p);let g;e[8]!==E?(g={fetchEnabled:E},e[8]=E,e[9]=g):g=e[9];const{data:y,isLoading:_}=re(u,g);let o;e[10]!==s||e[11]!==j||e[12]!==f||e[13]!==c?(o=j?{orgSlug:f,virtualMcpId:c,branch:s}:null,e[10]=s,e[11]=j,e[12]=f,e[13]=c,e[14]=o):o=e[14];const B=o,W=ae(B,ge);let N;e[15]!==W?(N=[...W,xe,be,ve],e[15]=W,e[16]=N):N=e[16];let L;e[17]===Symbol.for("react.memo_cache_sentinel")?(L={withRefs:!0},e[17]=L):L=e[17];const T=ie(B,N,L);if(T.failed){let a;e[18]!==t?(a=t("sectionsEditor.hosted.blockLoadFailed"),e[18]=t,e[19]=a):a=e[19];let x;e[20]!==t?(x=t("sectionsEditor.hosted.blockLoadFailedHint"),e[20]=t,e[21]=x):x=e[21];let b;e[22]!==a||e[23]!==x?(b=n.jsx(A,{title:a,description:x}),e[22]=a,e[23]=x,e[24]=b):b=e[24];const C=T.retry;let P;e[25]!==t?(P=t("sectionsEditor.namedRules.tryAgain"),e[25]=t,e[26]=P):P=e[26];let w;e[27]!==T.retry||e[28]!==P?(w=n.jsx(z,{variant:"outline",size:"sm",onClick:C,children:P}),e[27]=T.retry,e[28]=P,e[29]=w):w=e[29];let U;return e[30]!==w||e[31]!==b?(U=n.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 p-6 text-center",children:[b,w]}),e[30]=w,e[31]=b,e[32]=U):U=e[32],U}const M=!l||!y;if(S||_||!T.ready||M&&k){let a;return e[33]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"flex h-full w-full items-center justify-center",children:n.jsx(V,{className:"size-5 text-muted-foreground"})}),e[33]=a):a=e[33],a}if(M){let a;return e[34]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(A,{title:"Could not load site data."}),e[34]=a):a=e[34],a}const H=Se(l);if(!ye.some(a=>H[a].length>0)&&!je(l,y)){let a;e[35]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(J,{size:22}),e[35]=a):a=e[35];let x;e[36]!==t?(x=t("sandbox.blogWorkspace.noBlogApp"),e[36]=t,e[37]=x):x=e[37];let b;e[38]!==t?(b=t("sandbox.blogWorkspace.noBlogAppHint"),e[38]=t,e[39]=b):b=e[39];let C;return e[40]!==x||e[41]!==b?(C=n.jsx(q,{className:"h-full",icon:a,title:x,description:b}),e[40]=x,e[41]=b,e[42]=C):C=e[42],C}let O;return e[43]!==s||e[44]!==i||e[45]!==l||e[46]!==v||e[47]!==j||e[48]!==y||e[49]!==f||e[50]!==m||e[51]!==d||e[52]!==c?(O=i({orgSlug:f,virtualMcpId:c,branch:s,decofile:l,meta:y,previewUrl:m,sitePreviewUrl:d,fastPreviewActive:v,hostedDraft:j}),e[43]=s,e[44]=i,e[45]=l,e[46]=v,e[47]=j,e[48]=y,e[49]=f,e[50]=m,e[51]=d,e[52]=c,e[53]=O):O=e[53],O}function $e(R){const e=I.c(20),{virtualMcpId:f,children:c}=R,s=K(),[m,d]=X.useState(!1),v=Be(f),{activeTask:j}=F();if(G(v?.metadata)||G(j?.metadata))return c;let k;e[0]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsx("div",{className:"flex size-14 items-center justify-center rounded-full bg-muted",children:n.jsx(D,{className:"size-7 text-foreground"})}),e[0]=k):k=e[0];let i;e[1]!==s?(i=s("mainPanelTabs.contentTab.noContentToEdit"),e[1]=s,e[2]=i):i=e[2];let t;e[3]!==s?(t=s("mainPanelTabs.contentTab.connectGithubDescription"),e[3]=s,e[4]=t):t=e[4];let h,r;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>d(!0),r=n.jsx(D,{className:"size-4"}),e[5]=h,e[6]=r):(h=e[5],r=e[6]);let u;e[7]!==s?(u=s("mainPanelTabs.previewTab.connectGithub"),e[7]=s,e[8]=u):u=e[8];let p;e[9]!==u?(p=n.jsxs(z,{onClick:h,children:[r,u]}),e[9]=u,e[10]=p):p=e[10];let l;e[11]!==i||e[12]!==t||e[13]!==p?(l=n.jsx(ke,{className:"h-full",image:k,title:i,description:t,actions:p}),e[11]=i,e[12]=t,e[13]=p,e[14]=l):l=e[14];let S;e[15]!==m?(S=n.jsx(Ee,{open:m,onOpenChange:d,mode:"agent"}),e[15]=m,e[16]=S):S=e[16];let g;return e[17]!==l||e[18]!==S?(g=n.jsxs(n.Fragment,{children:[l,S]}),e[17]=l,e[18]=S,e[19]=g):g=e[19],g}export{He as B,$e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as I,f as _,u as x,bg as j,j as g,N as u,$ as h,b5 as S,bh as w}from"./index-CwntHk8S.js";import{a as v}from"./use-blog-view-9s3Vkx1q.js";function E(m){const e=I.c(11),{children:p}=m,f=v();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const l=_(a);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const c=x(r);if(f===void 0){let t;return e[2]===Symbol.for("react.memo_cache_sentinel")?(t=g.jsx(S,{}),e[2]=t):t=e[2],t}if(f||!l.org||!l.agentId)return p;let o;e[3]!==l.agentId||e[4]!==l.org?(o={org:l.org,agentId:l.agentId},e[3]=l.agentId,e[4]=l.org,e[5]=o):o=e[5];let s;e[6]!==c?(s=t=>({...t,blogCollection:void 0,blogItem:void 0,blogView:void 0,...w(c)}),e[6]=c,e[7]=s):s=e[7];let n;return e[8]!==o||e[9]!==s?(n=g.jsx(u,{to:h.siteEditorContent,params:o,search:s,hash:!0,replace:!0}),e[8]=o,e[9]=s,e[10]=n):n=e[10],n}function k(m){const e=I.c(13),{children:p}=m,f=v();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const l=_(a);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const c=x(r),{org:o,agentId:s}=l;let n;e[2]!==s||e[3]!==o||e[4]!==c?(n=o&&s?j(c):null,e[2]=s,e[3]=o,e[4]=c,e[5]=n):n=e[5];const t=n;if(!t||!o||!s||f===!1)return p;if(f===void 0){let i;return e[6]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsx(S,{}),e[6]=i):i=e[6],i}const b=y;let d;return e[7]!==s||e[8]!==o||e[9]!==t.collection||e[10]!==t.item||e[11]!==t.postId?(d=t.postId?g.jsx(u,{to:h.blogPost,params:{org:o,agentId:s,postId:t.postId},search:b,hash:!0,replace:!0}):g.jsx(u,{to:h.blog,params:{org:o,agentId:s},search:i=>({...b(i),blogCollection:t.collection,blogItem:t.item}),hash:!0,replace:!0}),e[7]=s,e[8]=o,e[9]=t.collection,e[10]=t.item,e[11]=t.postId,e[12]=d):d=e[12],d}function y(m){return{...m,contentCollection:void 0,contentItem:void 0}}export{k as B,E as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as F,b as T,j as t,i2 as W,r as S,B as L,D as X,v as Y,w as Z,x as ee,aS as te,I as D,y as se,b7 as ie,t as K,ay as O,gf as le,aH as ne,aI as re,aJ as ce,aK as ae,aL as oe,aM as de,aN as ue}from"./index-CwntHk8S.js";import{i as fe}from"./AlertCircle-BfuEGc37.js";import{s as V}from"./Plus-C8Idvwpa.js";import{s as me}from"./Trash01-BRIjyxCC.js";import{B as R}from"./badge-BG-k6t3T.js";import{E as ge}from"./empty-state-B67nwURy.js";import{L as B}from"./label-BFX3DXnu.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-DqZVtjvu.js";import{S as je}from"./switch-BviC1co2.js";import{T as ke}from"./textarea-BoSVR1xB.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-CzyibAGV.js";import{R as Se}from"./require-capability-CnRgBqvn.js";import"./index-BdQq_4o_.js";import"./index-DEOQXzn-.js";import"./ChevronDown-Kpzb5_P-.js";import"./ChevronUp-CwLphDxo.js";import"./access-gate-BpukTmFQ.js";import"./capability-load-error-Bcs21XUc.js";function Ne(i,e){if(!(i instanceof Error))return e;const s=i.message.match(/\[\s*\{[\s\S]*\}\s*\]/);if(s)try{const l=JSON.parse(s[0])[0];if(l?.message){const r=l.path?.join(".");return r?`${r}: ${l.message}`:l.message}}catch{}return i.message||e}function Be(i){const e=F.c(6),{error:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(fe,{size:16}),e[0]=l):l=e[0];let r;e[1]!==s.message||e[2]!==n?(r=n("settings.buckets.failedToLoadConfigs",{error:s.message}),e[1]=s.message,e[2]=n,e[3]=r):r=e[3];let c;return e[4]!==r?(c=t.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[l,t.jsx("span",{className:"text-sm font-medium",children:r})]}),e[4]=r,e[5]=c):c=e[5],c}function De(i){const e=F.c(51),{config:s,onDelete:n}=i,l=T();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:t.jsx(O,{size:16,className:"text-muted-foreground"})}),e[0]=r):r=e[0];let c;e[1]!==s.name?(c=t.jsx("span",{className:"font-medium text-sm truncate",children:s.name}),e[1]=s.name,e[2]=c):c=e[2];let o;e[3]!==s.credentialType||e[4]!==l?(o=s.credentialType==="sts-session"?t.jsx(R,{variant:"muted",size:"sm",children:"STS"}):s.credentialType==="managed"?t.jsx(R,{variant:"muted",size:"sm",children:l("settings.buckets.managed")}):null,e[3]=s.credentialType,e[4]=l,e[5]=o):o=e[5];let d;e[6]!==s.bucket||e[7]!==s.region?(d=t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:[s.bucket," · ",s.region]}),e[6]=s.bucket,e[7]=s.region,e[8]=d):d=e[8];let a;e[9]!==c||e[10]!==o||e[11]!==d?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[c,o,d]}),e[9]=c,e[10]=o,e[11]=d,e[12]=a):a=e[12];let u;e[13]!==s.description?(u=s.description?t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:s.description}):null,e[13]=s.description,e[14]=u):u=e[14];let x;e[15]!==s.endpoint||e[16]!==s.forcePathStyle||e[17]!==l?(x=s.endpoint?t.jsxs("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:[s.endpoint,s.forcePathStyle?` (${l("settings.buckets.pathStyle")})`:""]}):null,e[15]=s.endpoint,e[16]=s.forcePathStyle,e[17]=l,e[18]=x):x=e[18];let v;e[19]!==s.prefix||e[20]!==l?(v=s.prefix?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.prefix",{prefix:s.prefix})}):null,e[19]=s.prefix,e[20]=l,e[21]=v):v=e[21];let p;e[22]!==s.publicUrlBase||e[23]!==l?(p=s.publicUrlBase?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.public",{url:s.publicUrlBase})}):null,e[22]=s.publicUrlBase,e[23]=l,e[24]=p):p=e[24];let h;e[25]!==a||e[26]!==u||e[27]!==x||e[28]!==v||e[29]!==p?(h=t.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[r,t.jsxs("div",{className:"min-w-0",children:[a,u,x,v,p]})]}),e[25]=a,e[26]=u,e[27]=x,e[28]=v,e[29]=p,e[30]=h):h=e[30];let b;e[31]!==s.createdAt?(b=new Date(s.createdAt).toLocaleDateString(),e[31]=s.createdAt,e[32]=b):b=e[32];let C;e[33]!==b?(C=t.jsx("span",{className:"text-xs text-muted-foreground",children:b}),e[33]=b,e[34]=C):C=e[34];let y;e[35]!==s||e[36]!==n?(y=()=>n(s),e[35]=s,e[36]=n,e[37]=y):y=e[37];let j;e[38]!==s.name||e[39]!==l?(j=l("settings.buckets.deleteButton",{name:s.name}),e[38]=s.name,e[39]=l,e[40]=j):j=e[40];let k;e[41]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(me,{size:14}),e[41]=k):k=e[41];let f;e[42]!==y||e[43]!==j?(f=t.jsx(L,{variant:"ghost",size:"sm",onClick:y,"aria-label":j,children:k}),e[42]=y,e[43]=j,e[44]=f):f=e[44];let m;e[45]!==C||e[46]!==f?(m=t.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[C,f]}),e[45]=C,e[46]=f,e[47]=m):m=e[47];let N;return e[48]!==h||e[49]!==m?(N=t.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,m]}),e[48]=h,e[49]=m,e[50]=N):N=e[50],N}function Pe(i){const e=F.c(15),{onCreate:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(O,{}),e[0]=l):l=e[0];let r;e[1]!==n?(r=n("settings.buckets.noBucketsConfigured"),e[1]=n,e[2]=r):r=e[2];let c;e[3]!==n?(c=n("settings.buckets.emptyStateDescription"),e[3]=n,e[4]=c):c=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(V,{size:14}),e[5]=o):o=e[5];let d;e[6]!==n?(d=n("settings.buckets.addBucket"),e[6]=n,e[7]=d):d=e[7];let a;e[8]!==s||e[9]!==d?(a=t.jsxs(L,{onClick:s,size:"sm",children:[o,d]}),e[8]=s,e[9]=d,e[10]=a):a=e[10];let u;return e[11]!==r||e[12]!==c||e[13]!==a?(u=t.jsx(le,{children:t.jsx(ge,{size:"inline",icon:l,title:r,description:c,children:a})}),e[11]=r,e[12]=c,e[13]=a,e[14]=u):u=e[14],u}function I({open:i,onOpenChange:e}){const s=T(),[n,l]=S.useState(""),[r,c]=S.useState(""),[o,d]=S.useState(""),[a,u]=S.useState(""),[x,v]=S.useState(""),[p,h]=S.useState(!1),[b,C]=S.useState(""),[y,j]=S.useState(""),[k,f]=S.useState("static"),[m,N]=S.useState(""),[P,_]=S.useState(""),[w,A]=S.useState(""),[z,E]=S.useState(""),U=ve();function H(){l(""),c(""),d(""),u(""),v(""),h(!1),C(""),j(""),f("static"),N(""),_(""),A(""),E("")}const $=k==="sts-session"?!!(w.trim()&&z.trim()):!!(m&&P);async function J(g){if(g.preventDefault(),!n.trim()||!o.trim()||!a.trim()||!$)return;const M=k==="sts-session"?{credentialType:"sts-session",refreshUrl:w.trim(),apiKey:z.trim()}:{credentialType:"static",accessKeyId:m,secretAccessKey:P};try{await U.mutateAsync({name:n.trim(),description:r.trim()||void 0,bucket:o.trim(),region:a.trim(),endpoint:x.trim()||void 0,forcePathStyle:p,prefix:b.trim()||void 0,publicUrlBase:y.trim()||void 0,...M}),K.success(s("settings.buckets.bucketAdded",{name:n.trim()})),H(),e(!1)}catch(Q){K.error(Ne(Q,s("settings.buckets.failedToAddBucket")))}}const G=U.isPending||!n.trim()||!o.trim()||!a.trim()||!$;return t.jsx(X,{open:i,onOpenChange:e,children:t.jsxs(Y,{className:"sm:max-w-lg max-h-[90vh] overflow-y-auto",children:[t.jsxs(Z,{children:[t.jsx(ee,{children:s("settings.buckets.addS3Bucket")}),t.jsx(te,{children:s("settings.buckets.credentialsEncryptedDescription")})]}),t.jsxs("form",{onSubmit:J,className:"space-y-4",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-name",children:s("settings.buckets.nameLabel")}),t.jsx(D,{id:"file-config-name",value:n,onChange:g=>l(g.target.value),placeholder:s("settings.buckets.namePlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.nameHelperText")})]}),t.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-bucket",children:s("settings.buckets.bucketLabel")}),t.jsx(D,{id:"file-config-bucket",value:o,onChange:g=>d(g.target.value),placeholder:s("settings.buckets.bucketPlaceholder"),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-region",children:s("settings.buckets.regionLabel")}),t.jsx(D,{id:"file-config-region",value:a,onChange:g=>u(g.target.value),placeholder:s("settings.buckets.regionPlaceholder"),autoComplete:"off",required:!0})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-endpoint",children:s("settings.buckets.endpointLabel")}),t.jsx(D,{id:"file-config-endpoint",type:"url",value:x,onChange:g=>v(g.target.value),placeholder:s("settings.buckets.endpointPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.endpointHelperText")})]}),t.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-md border border-border/60 p-3",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx(B,{htmlFor:"file-config-path-style",className:"text-sm",children:s("settings.buckets.forcePathStyleLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("settings.buckets.forcePathStyleHelperText")})]}),t.jsx(je,{id:"file-config-path-style",checked:p,onCheckedChange:h})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-prefix",children:s("settings.buckets.prefixLabel")}),t.jsx(D,{id:"file-config-prefix",value:b,onChange:g=>C(g.target.value),placeholder:s("settings.buckets.prefixPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.prefixHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-public-url-base",children:s("settings.buckets.publicUrlBaseLabel")}),t.jsx(D,{id:"file-config-public-url-base",type:"url",value:y,onChange:g=>j(g.target.value),placeholder:s("settings.buckets.publicUrlBasePlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.publicUrlBaseHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-credential-type",children:s("settings.buckets.credentialsLabel")}),t.jsxs(xe,{value:k,onValueChange:g=>f(g),children:[t.jsx(pe,{id:"file-config-credential-type",className:"w-full",children:t.jsx(he,{})}),t.jsxs(be,{children:[t.jsx(q,{value:"static",children:s("settings.buckets.staticKeyOption")}),t.jsx(q,{value:"sts-session",children:s("settings.buckets.temporarySessionOption")})]})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s(k==="sts-session"?"settings.buckets.stsSessionHelperText":"settings.buckets.staticKeyHelperText")})]}),k==="static"?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-access-key",children:s("settings.buckets.accessKeyIdLabel")}),t.jsx(D,{id:"file-config-access-key",value:m,onChange:g=>N(g.target.value),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-secret-key",children:s("settings.buckets.secretAccessKeyLabel")}),t.jsx(D,{id:"file-config-secret-key",type:"password",value:P,onChange:g=>_(g.target.value),autoComplete:"new-password",required:!0})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-refresh-url",children:s("settings.buckets.refreshUrlLabel")}),t.jsx(D,{id:"file-config-refresh-url",type:"url",value:w,onChange:g=>A(g.target.value),placeholder:s("settings.buckets.refreshUrlPlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.refreshUrlHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-api-key",children:s("settings.buckets.apiKeyLabel")}),t.jsx(D,{id:"file-config-api-key",type:"password",value:z,onChange:g=>E(g.target.value),autoComplete:"new-password",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.apiKeyHelperText")})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-description",children:s("settings.buckets.descriptionLabel")}),t.jsx(ke,{id:"file-config-description",value:r,onChange:g=>c(g.target.value),rows:2,placeholder:s("settings.buckets.descriptionPlaceholder")})]}),t.jsxs(se,{children:[t.jsx(L,{type:"button",variant:"outline",onClick:()=>{H(),e(!1)},disabled:U.isPending,children:s("settings.buckets.cancelButton")}),t.jsx(L,{type:"submit",disabled:G,children:U.isPending?s("settings.buckets.addingButton"):s("settings.buckets.addBucketButton")})]})]})]})})}function Fe(i){const e=F.c(41),{config:s,onClose:n}=i,l=T(),r=Ce();let c;e[0]!==s||e[1]!==r||e[2]!==n||e[3]!==l?(c=async function(){if(s)try{await r.mutateAsync(s.id),K.success(l("settings.buckets.bucketRemoved",{name:s.name})),n()}catch(w){const A=w;K.error(A instanceof Error?A.message:l("settings.buckets.failedToRemoveBucket"))}},e[0]=s,e[1]=r,e[2]=n,e[3]=l,e[4]=c):c=e[4];const o=c,d=s!==null;let a;e[5]!==n?(a=_=>!_&&n(),e[5]=n,e[6]=a):a=e[6];let u;e[7]!==l?(u=l("settings.buckets.removeBucketTitle"),e[7]=l,e[8]=u):u=e[8];let x;e[9]!==u?(x=t.jsx(ne,{children:u}),e[9]=u,e[10]=x):x=e[10];const v=s?.name??"";let p;e[11]!==l||e[12]!==v?(p=l("settings.buckets.removeBucketDescription",{name:v}),e[11]=l,e[12]=v,e[13]=p):p=e[13];let h;e[14]!==p?(h=t.jsx(re,{children:p}),e[14]=p,e[15]=h):h=e[15];let b;e[16]!==x||e[17]!==h?(b=t.jsxs(ce,{children:[x,h]}),e[16]=x,e[17]=h,e[18]=b):b=e[18];const C=r.isPending;let y;e[19]!==l?(y=l("settings.buckets.cancelButton"),e[19]=l,e[20]=y):y=e[20];let j;e[21]!==r.isPending||e[22]!==y?(j=t.jsx(ae,{disabled:C,children:y}),e[21]=r.isPending,e[22]=y,e[23]=j):j=e[23];let k;e[24]!==r.isPending||e[25]!==l?(k=r.isPending?l("settings.buckets.removingButton"):l("settings.buckets.removeButton"),e[24]=r.isPending,e[25]=l,e[26]=k):k=e[26];let f;e[27]!==r.isPending||e[28]!==o||e[29]!==k?(f=t.jsx(ie,{onClick:o,disabled:r.isPending,children:k}),e[27]=r.isPending,e[28]=o,e[29]=k,e[30]=f):f=e[30];let m;e[31]!==j||e[32]!==f?(m=t.jsxs(oe,{children:[j,f]}),e[31]=j,e[32]=f,e[33]=m):m=e[33];let N;e[34]!==m||e[35]!==b?(N=t.jsxs(de,{children:[b,m]}),e[34]=m,e[35]=b,e[36]=N):N=e[36];let P;return e[37]!==N||e[38]!==d||e[39]!==a?(P=t.jsx(ue,{open:d,onOpenChange:a,children:N}),e[37]=N,e[38]=d,e[39]=a,e[40]=P):P=e[40],P}function Te(){const i=F.c(32),e=T(),s=ye(),[n,l]=S.useState(!1),[r,c]=S.useState(null);if(s.length===0){let f;i[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Pe,{onCreate:()=>l(!0)}),i[0]=f):f=i[0];let m;return i[1]!==n?(m=t.jsxs(t.Fragment,{children:[f,t.jsx(I,{open:n,onOpenChange:l})]}),i[1]=n,i[2]=m):m=i[2],m}let o;i[3]!==s.length||i[4]!==e?(o=e("settings.buckets.bucketsConfigured",{count:s.length}),i[3]=s.length,i[4]=e,i[5]=o):o=i[5];let d;i[6]!==o?(d=t.jsx("p",{className:"text-sm text-muted-foreground",children:o}),i[6]=o,i[7]=d):d=i[7];let a;i[8]===Symbol.for("react.memo_cache_sentinel")?(a=()=>l(!0),i[8]=a):a=i[8];let u;i[9]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(V,{size:14}),i[9]=u):u=i[9];let x;i[10]!==e?(x=e("settings.buckets.addBucket"),i[10]=e,i[11]=x):x=i[11];let v;i[12]!==x?(v=t.jsxs(L,{onClick:a,size:"sm",children:[u,x]}),i[12]=x,i[13]=v):v=i[13];let p;i[14]!==d||i[15]!==v?(p=t.jsxs("div",{className:"flex items-center justify-between",children:[d,v]}),i[14]=d,i[15]=v,i[16]=p):p=i[16];let h;if(i[17]!==s){let f;i[19]===Symbol.for("react.memo_cache_sentinel")?(f=m=>t.jsx(De,{config:m,onDelete:c},m.id),i[19]=f):f=i[19],h=s.map(f),i[17]=s,i[18]=h}else h=i[18];let b;i[20]!==h?(b=t.jsx("section",{className:"surface p-5",children:t.jsx("div",{children:h})}),i[20]=h,i[21]=b):b=i[21];let C;i[22]!==n?(C=t.jsx(I,{open:n,onOpenChange:l}),i[22]=n,i[23]=C):C=i[23];let y;i[24]===Symbol.for("react.memo_cache_sentinel")?(y=()=>c(null),i[24]=y):y=i[24];let j;i[25]!==r?(j=t.jsx(Fe,{config:r,onClose:y}),i[25]=r,i[26]=j):j=i[26];let k;return i[27]!==j||i[28]!==p||i[29]!==b||i[30]!==C?(k=t.jsxs(t.Fragment,{children:[p,b,C,j]}),i[27]=j,i[28]=p,i[29]=b,i[30]=C,i[31]=k):k=i[31],k}function _e(){const i=F.c(5),e=T();let s;i[0]!==e?(s=r=>{const{error:c}=r;return t.jsx(Be,{error:c??new Error(e("settings.buckets.failedToLoadConfigsFallback"))})},i[0]=e,i[1]=s):s=i[1];let n;i[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Te,{}),i[2]=n):n=i[2];let l;return i[3]!==s?(l=t.jsx(W,{group:"storage",errorFallback:s,children:n}),i[3]=s,i[4]=l):l=i[4],l}function We(){const i=F.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Se,{capability:"file-configs:manage",area:"files",children:t.jsx(_e,{})}),i[0]=e):e=i[0],e}export{We as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as k,ak as $,i as S,K as T,b as K,m as b,j as s,o as E}from"./index-
|
|
1
|
+
import{c as k,ak as $,i as S,K as T,b as K,m as b,j as s,o as E}from"./index-CwntHk8S.js";function R(n){const e=k.c(9),f=$();let r;e[0]!==n?(r=T.user(n),e[0]=n,e[1]=r):r=e[1];let c;e[2]!==f||e[3]!==n?(c=async()=>{const{user:o}=await f.call("USER_GET",{id:n});return o},e[2]=f,e[3]=n,e[4]=c):c=e[4];const x=!!n;let t;return e[5]!==r||e[6]!==c||e[7]!==x?(t={queryKey:r,queryFn:c,staleTime:3e5,retry:1,enabled:x},e[5]=r,e[6]=c,e[7]=x,e[8]=t):t=e[8],S(t)}function q(n){const e=k.c(37),{id:f,size:r,showEmail:c,avatarOnly:x,className:t}=n,o=r===void 0?"xs":r,p=c===void 0?!1:c,d=x===void 0?!1:x,y=K(),{data:m,isLoading:w,isError:U}=R(f);if(w){let a;e[0]!==t?(a=b("flex items-center gap-2",t),e[0]=t,e[1]=a):a=e[1];let i;e[2]!==o?(i=s.jsx(E.Skeleton,{shape:"circle",size:o}),e[2]=o,e[3]=i):i=e[3];let l;e[4]!==d||e[5]!==p?(l=!d&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),p&&s.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=d,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==a||e[8]!==i||e[9]!==l?(u=s.jsxs("div",{className:a,children:[i,l]}),e[7]=a,e[8]=i,e[9]=l,e[10]=u):u=e[10],u}if(U||!m){let a;e[11]!==t?(a=b("flex items-center gap-2",t),e[11]=t,e[12]=a):a=e[12];let i;e[13]!==o?(i=s.jsx(E,{shape:"circle",size:o,fallback:"?",muted:!0}),e[13]=o,e[14]=i):i=e[14];let l;e[15]!==d||e[16]!==y?(l=!d&&s.jsx("div",{className:"flex flex-col",children:s.jsx("div",{className:"text-sm text-muted-foreground",children:y("user.user.unknownUser")})}),e[15]=d,e[16]=y,e[17]=l):l=e[17];let u;return e[18]!==a||e[19]!==i||e[20]!==l?(u=s.jsxs("div",{className:a,children:[i,l]}),e[18]=a,e[19]=i,e[20]=l,e[21]=u):u=e[21],u}let v;e[22]!==t?(v=b("flex items-center gap-2",t),e[22]=t,e[23]=v):v=e[23];const N=m.image??void 0;let h;e[24]!==o||e[25]!==N||e[26]!==m.name?(h=s.jsx(E,{shape:"circle",size:o,url:N,fallback:m.name}),e[24]=o,e[25]=N,e[26]=m.name,e[27]=h):h=e[27];let g;e[28]!==d||e[29]!==p||e[30]!==m.email||e[31]!==m.name?(g=!d&&s.jsxs("div",{className:"flex flex-col",children:[s.jsx("div",{className:"text-sm font-medium",children:m.name}),p&&s.jsx("div",{className:"text-xs text-muted-foreground",children:m.email})]}),e[28]=d,e[29]=p,e[30]=m.email,e[31]=m.name,e[32]=g):g=e[32];let j;return e[33]!==v||e[34]!==h||e[35]!==g?(j=s.jsxs("div",{className:v,children:[h,g]}),e[33]=v,e[34]=h,e[35]=g,e[36]=j):j=e[36],j}function z(n){const{managerAgentId:e,managerName:f,kind:r,id:c,instructions:x}=n,t=` to improve the instructions of ${r} "${c}". Here are its current instructions.
|
|
2
2
|
<current_instructions>${x}</current_instructions>`;return{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:"Use "},{type:"mention",attrs:{id:e,name:f,char:"@",metadata:{agentId:e,title:f}}},{type:"text",text:t}]}]}}export{q as U,z as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as u,r as D,c as ht,m as H,b8 as Pe,as as mt}from"./index-CwntHk8S.js";import{b as vt}from"./UserCheck01-DVOI9Qq6.js";function w(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function S(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function C(e,t){const n=w(e);return isNaN(t)?S(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function j(e,t){const n=w(e);if(isNaN(t))return S(e,NaN);if(!t)return n;const a=n.getDate(),r=S(e,n.getTime());r.setMonth(n.getMonth()+t+1,0);const o=r.getDate();return a>=o?r:(n.setFullYear(r.getFullYear(),r.getMonth(),a),n)}const ye=6048e5,yt=864e5;let gt={};function z(){return gt}function Y(e,t){const n=z(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=w(e),o=r.getDay(),i=(o<a?7:0)+o-a;return r.setDate(r.getDate()-i),r.setHours(0,0,0,0),r}function I(e){return Y(e,{weekStartsOn:1})}function Ie(e){const t=w(e),n=t.getFullYear(),a=S(e,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const r=I(a),o=S(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const i=I(o);return t.getTime()>=r.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function A(e){const t=w(e);return t.setHours(0,0,0,0),t}function Z(e){const t=w(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function T(e,t){const n=A(e),a=A(t),r=+n-Z(n),o=+a-Z(a);return Math.round((r-o)/yt)}function bt(e){const t=Ie(e),n=S(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),I(n)}function me(e,t){const n=t*7;return C(e,n)}function pt(e,t){return j(e,t*12)}function wt(e){let t;return e.forEach(function(n){const a=w(n);(t===void 0||t<a||isNaN(Number(a)))&&(t=a)}),t||new Date(NaN)}function xt(e){let t;return e.forEach(n=>{const a=w(n);(!t||t>a||isNaN(+a))&&(t=a)}),t||new Date(NaN)}function P(e,t){const n=A(e),a=A(t);return+n==+a}function ge(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function _t(e){if(!ge(e)&&typeof e!="number")return!1;const t=w(e);return!isNaN(Number(t))}function G(e,t){const n=w(e),a=w(t),r=n.getFullYear()-a.getFullYear(),o=n.getMonth()-a.getMonth();return r*12+o}function Dt(e,t,n){const a=Y(e,n),r=Y(t,n),o=+a-Z(a),i=+r-Z(r);return Math.round((o-i)/ye)}function be(e){const t=w(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function O(e){const t=w(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Re(e){const t=w(e),n=S(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function pe(e,t){const n=z(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=w(e),o=r.getDay(),i=(o<a?-7:0)+6-(o-a);return r.setDate(r.getDate()+i),r.setHours(23,59,59,999),r}function Be(e){return pe(e,{weekStartsOn:1})}const Mt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},kt=(e,t,n)=>{let a;const r=Mt[e];return typeof r=="string"?a=r:t===1?a=r.one:a=r.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function se(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Nt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ct={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ot={date:se({formats:Nt,defaultWidth:"full"}),time:se({formats:Ct,defaultWidth:"full"}),dateTime:se({formats:Pt,defaultWidth:"full"})},St={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},jt=(e,t,n,a)=>St[e];function X(e){return(t,n)=>{const a=n?.context?String(n.context):"standalone";let r;if(a==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n?.width?String(n.width):i;r=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n?.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[i]}const o=e.argumentCallback?e.argumentCallback(t):t;return r[o]}}const Wt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Tt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Yt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ft={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Et={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Lt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},It=(e,t)=>{const n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Rt={ordinalNumber:It,era:X({values:Wt,defaultWidth:"wide"}),quarter:X({values:Tt,defaultWidth:"wide",argumentCallback:e=>e-1}),month:X({values:Yt,defaultWidth:"wide"}),day:X({values:Ft,defaultWidth:"wide"}),dayPeriod:X({values:Et,defaultWidth:"wide",formattingValues:Lt,defaultFormattingWidth:"wide"})};function V(e){return(t,n={})=>{const a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;const i=o[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Ht(s,f=>f.test(i)):Bt(s,f=>f.test(i));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const l=t.slice(i.length);return{value:d,rest:l}}}function Bt(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Ht(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function At(e){return(t,n={})=>{const a=t.match(e.matchPattern);if(!a)return null;const r=a[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(r.length);return{value:i,rest:s}}}const qt=/^(\d+)(th|st|nd|rd)?/i,Qt=/\d+/i,Xt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Vt={any:[/^b/i,/^(a|c)/i]},Gt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zt={any:[/1/i,/2/i,/3/i,/4/i]},Ut={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Jt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Kt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$t={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Zt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},en={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},tn={ordinalNumber:At({matchPattern:qt,parsePattern:Qt,valueCallback:e=>parseInt(e,10)}),era:V({matchPatterns:Xt,defaultMatchWidth:"wide",parsePatterns:Vt,defaultParseWidth:"any"}),quarter:V({matchPatterns:Gt,defaultMatchWidth:"wide",parsePatterns:zt,defaultParseWidth:"any",valueCallback:e=>e+1}),month:V({matchPatterns:Ut,defaultMatchWidth:"wide",parsePatterns:Jt,defaultParseWidth:"any"}),day:V({matchPatterns:Kt,defaultMatchWidth:"wide",parsePatterns:$t,defaultParseWidth:"any"}),dayPeriod:V({matchPatterns:Zt,defaultMatchWidth:"any",parsePatterns:en,defaultParseWidth:"any"})},He={code:"en-US",formatDistance:kt,formatLong:Ot,formatRelative:jt,localize:Rt,match:tn,options:{weekStartsOn:0,firstWeekContainsDate:1}};function nn(e){const t=w(e);return T(t,Re(t))+1}function Ae(e){const t=w(e),n=+I(t)-+bt(t);return Math.round(n/ye)+1}function qe(e,t){const n=w(e),a=n.getFullYear(),r=z(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=S(e,0);i.setFullYear(a+1,0,o),i.setHours(0,0,0,0);const s=Y(i,t),c=S(e,0);c.setFullYear(a,0,o),c.setHours(0,0,0,0);const d=Y(c,t);return n.getTime()>=s.getTime()?a+1:n.getTime()>=d.getTime()?a:a-1}function an(e,t){const n=z(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,r=qe(e,t),o=S(e,0);return o.setFullYear(r,0,a),o.setHours(0,0,0,0),Y(o,t)}function Qe(e,t){const n=w(e),a=+Y(n,t)-+an(n,t);return Math.round(a/ye)+1}function _(e,t){const n=e<0?"-":"",a=Math.abs(e).toString().padStart(t,"0");return n+a}const E={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return _(t==="yy"?a%100:a,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):_(n+1,2)},d(e,t){return _(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return _(e.getHours()%12||12,t.length)},H(e,t){return _(e.getHours(),t.length)},m(e,t){return _(e.getMinutes(),t.length)},s(e,t){return _(e.getSeconds(),t.length)},S(e,t){const n=t.length,a=e.getMilliseconds(),r=Math.trunc(a*Math.pow(10,n-3));return _(r,t.length)}},B={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Oe={G:function(e,t,n){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const a=e.getFullYear(),r=a>0?a:1-a;return n.ordinalNumber(r,{unit:"year"})}return E.y(e,t)},Y:function(e,t,n,a){const r=qe(e,a),o=r>0?r:1-r;if(t==="YY"){const i=o%100;return _(i,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):_(o,t.length)},R:function(e,t){const n=Ie(e);return _(n,t.length)},u:function(e,t){const n=e.getFullYear();return _(n,t.length)},Q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return _(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return _(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){const a=e.getMonth();switch(t){case"M":case"MM":return E.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return _(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){const r=Qe(e,a);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):_(r,t.length)},I:function(e,t,n){const a=Ae(e);return t==="Io"?n.ordinalNumber(a,{unit:"week"}):_(a,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):E.d(e,t)},D:function(e,t,n){const a=nn(e);return t==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):_(a,t.length)},E:function(e,t,n){const a=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,n,a){const r=e.getDay(),o=(r-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return _(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,a){const r=e.getDay(),o=(r-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return _(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const a=e.getDay(),r=a===0?7:a;switch(t){case"i":return String(r);case"ii":return _(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const a=e.getHours();let r;switch(a===12?r=B.noon:a===0?r=B.midnight:r=a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const a=e.getHours();let r;switch(a>=17?r=B.evening:a>=12?r=B.afternoon:a>=4?r=B.morning:r=B.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let a=e.getHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return E.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):E.H(e,t)},K:function(e,t,n){const a=e.getHours()%12;return t==="Ko"?n.ordinalNumber(a,{unit:"hour"}):_(a,t.length)},k:function(e,t,n){let a=e.getHours();return a===0&&(a=24),t==="ko"?n.ordinalNumber(a,{unit:"hour"}):_(a,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):E.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):E.s(e,t)},S:function(e,t){return E.S(e,t)},X:function(e,t,n){const a=e.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return je(a);case"XXXX":case"XX":return L(a);default:return L(a,":")}},x:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"x":return je(a);case"xxxx":case"xx":return L(a);default:return L(a,":")}},O:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Se(a,":");default:return"GMT"+L(a,":")}},z:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Se(a,":");default:return"GMT"+L(a,":")}},t:function(e,t,n){const a=Math.trunc(e.getTime()/1e3);return _(a,t.length)},T:function(e,t,n){const a=e.getTime();return _(a,t.length)}};function Se(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),r=Math.trunc(a/60),o=a%60;return o===0?n+String(r):n+String(r)+t+_(o,2)}function je(e,t){return e%60===0?(e>0?"-":"+")+_(Math.abs(e)/60,2):L(e,t)}function L(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),r=_(Math.trunc(a/60),2),o=_(a%60,2);return n+r+t+o}const We=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Xe=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},rn=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],r=n[2];if(!r)return We(e,t);let o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",We(a,t)).replace("{{time}}",Xe(r,t))},on={p:Xe,P:rn},sn=/^D+$/,un=/^Y+$/,ln=["D","DD","YY","YYYY"];function cn(e){return sn.test(e)}function dn(e){return un.test(e)}function fn(e,t,n){const a=hn(e,t,n);if(console.warn(a),ln.includes(e))throw new RangeError(a)}function hn(e,t,n){const a=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const mn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yn=/^'([^]*?)'?$/,gn=/''/g,bn=/[a-zA-Z]/;function R(e,t,n){const a=z(),r=n?.locale??a.locale??He,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,s=w(e);if(!_t(s))throw new RangeError("Invalid time value");let c=t.match(vn).map(l=>{const f=l[0];if(f==="p"||f==="P"){const h=on[f];return h(l,r.formatLong)}return l}).join("").match(mn).map(l=>{if(l==="''")return{isToken:!1,value:"'"};const f=l[0];if(f==="'")return{isToken:!1,value:pn(l)};if(Oe[f])return{isToken:!0,value:l};if(f.match(bn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:l}});r.localize.preprocessor&&(c=r.localize.preprocessor(s,c));const d={firstWeekContainsDate:o,weekStartsOn:i,locale:r};return c.map(l=>{if(!l.isToken)return l.value;const f=l.value;(!n?.useAdditionalWeekYearTokens&&dn(f)||!n?.useAdditionalDayOfYearTokens&&cn(f))&&fn(f,t,String(e));const h=Oe[f[0]];return h(s,f,r.localize,d)}).join("")}function pn(e){const t=e.match(yn);return t?t[1].replace(gn,"'"):e}function wn(e){const t=w(e),n=t.getFullYear(),a=t.getMonth(),r=S(e,0);return r.setFullYear(n,a+1,0),r.setHours(0,0,0,0),r.getDate()}function xn(e){return Math.trunc(+w(e)/1e3)}function _n(e){const t=w(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function Dn(e,t){return Dt(_n(e),O(e),t)+1}function ve(e,t){const n=w(e),a=w(t);return n.getTime()>a.getTime()}function Ve(e,t){const n=w(e),a=w(t);return+n<+a}function we(e,t){const n=w(e),a=w(t);return n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()}function Mn(e,t){const n=w(e),a=w(t);return n.getFullYear()===a.getFullYear()}function ue(e,t){return C(e,-t)}function le(e,t){const n=w(e),a=n.getFullYear(),r=n.getDate(),o=S(e,0);o.setFullYear(a,t,15),o.setHours(0,0,0,0);const i=wn(o);return n.setMonth(t,Math.min(r,i)),n}function Te(e,t){const n=w(e);return isNaN(+n)?S(e,NaN):(n.setFullYear(t),n)}var g=function(){return g=Object.assign||function(t){for(var n,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},g.apply(this,arguments)};function kn(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n}function Ge(e,t,n){for(var a=0,r=t.length,o;a<r;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}function U(e){return e.mode==="multiple"}function J(e){return e.mode==="range"}function te(e){return e.mode==="single"}var Nn={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function Cn(e,t){return R(e,"LLLL y",t)}function Pn(e,t){return R(e,"d",t)}function On(e,t){return R(e,"LLLL",t)}function Sn(e){return"".concat(e)}function jn(e,t){return R(e,"cccccc",t)}function Wn(e,t){return R(e,"yyyy",t)}var Tn=Object.freeze({__proto__:null,formatCaption:Cn,formatDay:Pn,formatMonthCaption:On,formatWeekNumber:Sn,formatWeekdayName:jn,formatYearCaption:Wn}),Yn=function(e,t,n){return R(e,"do MMMM (EEEE)",n)},Fn=function(){return"Month: "},En=function(){return"Go to next month"},Ln=function(){return"Go to previous month"},In=function(e,t){return R(e,"cccc",t)},Rn=function(e){return"Week n. ".concat(e)},Bn=function(){return"Year: "},Hn=Object.freeze({__proto__:null,labelDay:Yn,labelMonthDropdown:Fn,labelNext:En,labelPrevious:Ln,labelWeekNumber:Rn,labelWeekday:In,labelYearDropdown:Bn});function An(){var e="buttons",t=Nn,n=He,a={},r={},o=1,i={},s=new Date;return{captionLayout:e,classNames:t,formatters:Tn,labels:Hn,locale:n,modifiersClassNames:a,modifiers:r,numberOfMonths:o,styles:i,today:s,mode:"default"}}function qn(e){var t=e.fromYear,n=e.toYear,a=e.fromMonth,r=e.toMonth,o=e.fromDate,i=e.toDate;return a?o=O(a):t&&(o=new Date(t,0,1)),r?i=be(r):n&&(i=new Date(n,11,31)),{fromDate:o?A(o):void 0,toDate:i?A(i):void 0}}var ze=D.createContext(void 0);function Qn(e){var t,n=e.initialProps,a=An(),r=qn(n),o=r.fromDate,i=r.toDate,s=(t=n.captionLayout)!==null&&t!==void 0?t:a.captionLayout;s!=="buttons"&&(!o||!i)&&(s="buttons");var c;(te(n)||U(n)||J(n))&&(c=n.onSelect);var d=g(g(g({},a),n),{captionLayout:s,classNames:g(g({},a.classNames),n.classNames),components:g({},n.components),formatters:g(g({},a.formatters),n.formatters),fromDate:o,labels:g(g({},a.labels),n.labels),mode:n.mode||a.mode,modifiers:g(g({},a.modifiers),n.modifiers),modifiersClassNames:g(g({},a.modifiersClassNames),n.modifiersClassNames),onSelect:c,styles:g(g({},a.styles),n.styles),toDate:i});return u.jsx(ze.Provider,{value:d,children:e.children})}function M(){var e=D.useContext(ze);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Ue(e){var t=M(),n=t.locale,a=t.classNames,r=t.styles,o=t.formatters.formatCaption;return u.jsx("div",{className:a.caption_label,style:r.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:o(e.displayMonth,{locale:n})})}function Xn(e){return u.jsx("svg",g({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:u.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Je(e){var t,n,a=e.onChange,r=e.value,o=e.children,i=e.caption,s=e.className,c=e.style,d=M(),l=(n=(t=d.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:Xn;return u.jsxs("div",{className:s,style:c,children:[u.jsx("span",{className:d.classNames.vhidden,children:e["aria-label"]}),u.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:r,onChange:a,children:o}),u.jsxs("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true",children:[i,u.jsx(l,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})]})]})}function Vn(e){var t,n=M(),a=n.fromDate,r=n.toDate,o=n.styles,i=n.locale,s=n.formatters.formatMonthCaption,c=n.classNames,d=n.components,l=n.labels.labelMonthDropdown;if(!a)return u.jsx(u.Fragment,{});if(!r)return u.jsx(u.Fragment,{});var f=[];if(Mn(a,r))for(var h=O(a),m=a.getMonth();m<=r.getMonth();m++)f.push(le(h,m));else for(var h=O(new Date),m=0;m<=11;m++)f.push(le(h,m));var y=function(p){var N=Number(p.target.value),k=le(O(e.displayMonth),N);e.onChange(k)},x=(t=d?.Dropdown)!==null&&t!==void 0?t:Je;return u.jsx(x,{name:"months","aria-label":l(),className:c.dropdown_month,style:o.dropdown_month,onChange:y,value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:i}),children:f.map(function(p){return u.jsx("option",{value:p.getMonth(),children:s(p,{locale:i})},p.getMonth())})})}function Gn(e){var t,n=e.displayMonth,a=M(),r=a.fromDate,o=a.toDate,i=a.locale,s=a.styles,c=a.classNames,d=a.components,l=a.formatters.formatYearCaption,f=a.labels.labelYearDropdown,h=[];if(!r)return u.jsx(u.Fragment,{});if(!o)return u.jsx(u.Fragment,{});for(var m=r.getFullYear(),y=o.getFullYear(),x=m;x<=y;x++)h.push(Te(Re(new Date),x));var p=function(k){var q=Te(O(n),Number(k.target.value));e.onChange(q)},N=(t=d?.Dropdown)!==null&&t!==void 0?t:Je;return u.jsx(N,{name:"years","aria-label":f(),className:c.dropdown_year,style:s.dropdown_year,onChange:p,value:n.getFullYear(),caption:l(n,{locale:i}),children:h.map(function(k){return u.jsx("option",{value:k.getFullYear(),children:l(k,{locale:i})},k.getFullYear())})})}function zn(e,t){var n=D.useState(e),a=n[0],r=n[1],o=t===void 0?a:t;return[o,r]}function Un(e){var t=e.month,n=e.defaultMonth,a=e.today,r=t||n||a||new Date,o=e.toDate,i=e.fromDate,s=e.numberOfMonths,c=s===void 0?1:s;if(o&&G(o,r)<0){var d=-1*(c-1);r=j(o,d)}return i&&G(r,i)<0&&(r=i),O(r)}function Jn(){var e=M(),t=Un(e),n=zn(t,e.month),a=n[0],r=n[1],o=function(i){var s;if(!e.disableNavigation){var c=O(i);r(c),(s=e.onMonthChange)===null||s===void 0||s.call(e,c)}};return[a,o]}function Kn(e,t){for(var n=t.reverseMonths,a=t.numberOfMonths,r=O(e),o=O(j(r,a)),i=G(o,r),s=[],c=0;c<i;c++){var d=j(r,c);s.push(d)}return n&&(s=s.reverse()),s}function $n(e,t){if(!t.disableNavigation){var n=t.toDate,a=t.pagedNavigation,r=t.numberOfMonths,o=r===void 0?1:r,i=a?o:1,s=O(e);if(!n)return j(s,i);var c=G(n,e);if(!(c<o))return j(s,i)}}function Zn(e,t){if(!t.disableNavigation){var n=t.fromDate,a=t.pagedNavigation,r=t.numberOfMonths,o=r===void 0?1:r,i=a?o:1,s=O(e);if(!n)return j(s,-i);var c=G(s,n);if(!(c<=0))return j(s,-i)}}var Ke=D.createContext(void 0);function ea(e){var t=M(),n=Jn(),a=n[0],r=n[1],o=Kn(a,t),i=$n(a,t),s=Zn(a,t),c=function(f){return o.some(function(h){return we(f,h)})},d=function(f,h){c(f)||(h&&Ve(f,h)?r(j(f,1+t.numberOfMonths*-1)):r(f))},l={currentMonth:a,displayMonths:o,goToMonth:r,goToDate:d,previousMonth:s,nextMonth:i,isDateDisplayed:c};return u.jsx(Ke.Provider,{value:l,children:e.children})}function K(){var e=D.useContext(Ke);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Ye(e){var t,n=M(),a=n.classNames,r=n.styles,o=n.components,i=K().goToMonth,s=function(l){i(j(l,e.displayIndex?-e.displayIndex:0))},c=(t=o?.CaptionLabel)!==null&&t!==void 0?t:Ue,d=u.jsx(c,{id:e.id,displayMonth:e.displayMonth});return u.jsxs("div",{className:a.caption_dropdowns,style:r.caption_dropdowns,children:[u.jsx("div",{className:a.vhidden,children:d}),u.jsx(Vn,{onChange:s,displayMonth:e.displayMonth}),u.jsx(Gn,{onChange:s,displayMonth:e.displayMonth})]})}function ta(e){return u.jsx("svg",g({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:u.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function na(e){return u.jsx("svg",g({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:u.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var ee=D.forwardRef(function(e,t){var n=M(),a=n.classNames,r=n.styles,o=[a.button_reset,a.button];e.className&&o.push(e.className);var i=o.join(" "),s=g(g({},r.button_reset),r.button);return e.style&&Object.assign(s,e.style),u.jsx("button",g({},e,{ref:t,type:"button",className:i,style:s}))});function aa(e){var t,n,a=M(),r=a.dir,o=a.locale,i=a.classNames,s=a.styles,c=a.labels,d=c.labelPrevious,l=c.labelNext,f=a.components;if(!e.nextMonth&&!e.previousMonth)return u.jsx(u.Fragment,{});var h=d(e.previousMonth,{locale:o}),m=[i.nav_button,i.nav_button_previous].join(" "),y=l(e.nextMonth,{locale:o}),x=[i.nav_button,i.nav_button_next].join(" "),p=(t=f?.IconRight)!==null&&t!==void 0?t:na,N=(n=f?.IconLeft)!==null&&n!==void 0?n:ta;return u.jsxs("div",{className:i.nav,style:s.nav,children:[!e.hidePrevious&&u.jsx(ee,{name:"previous-month","aria-label":h,className:m,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:r==="rtl"?u.jsx(p,{className:i.nav_icon,style:s.nav_icon}):u.jsx(N,{className:i.nav_icon,style:s.nav_icon})}),!e.hideNext&&u.jsx(ee,{name:"next-month","aria-label":y,className:x,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:r==="rtl"?u.jsx(N,{className:i.nav_icon,style:s.nav_icon}):u.jsx(p,{className:i.nav_icon,style:s.nav_icon})})]})}function Fe(e){var t=M().numberOfMonths,n=K(),a=n.previousMonth,r=n.nextMonth,o=n.goToMonth,i=n.displayMonths,s=i.findIndex(function(y){return we(e.displayMonth,y)}),c=s===0,d=s===i.length-1,l=t>1&&(c||!d),f=t>1&&(d||!c),h=function(){a&&o(a)},m=function(){r&&o(r)};return u.jsx(aa,{displayMonth:e.displayMonth,hideNext:l,hidePrevious:f,nextMonth:r,previousMonth:a,onPreviousClick:h,onNextClick:m})}function ra(e){var t,n=M(),a=n.classNames,r=n.disableNavigation,o=n.styles,i=n.captionLayout,s=n.components,c=(t=s?.CaptionLabel)!==null&&t!==void 0?t:Ue,d;return r?d=u.jsx(c,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?d=u.jsx(Ye,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?d=u.jsxs(u.Fragment,{children:[u.jsx(Ye,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),u.jsx(Fe,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):d=u.jsxs(u.Fragment,{children:[u.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),u.jsx(Fe,{displayMonth:e.displayMonth,id:e.id})]}),u.jsx("div",{className:a.caption,style:o.caption,children:d})}function oa(e){var t=M(),n=t.footer,a=t.styles,r=t.classNames.tfoot;return n?u.jsx("tfoot",{className:r,style:a.tfoot,children:u.jsx("tr",{children:u.jsx("td",{colSpan:8,children:n})})}):u.jsx(u.Fragment,{})}function ia(e,t,n){for(var a=n?I(new Date):Y(new Date,{locale:e,weekStartsOn:t}),r=[],o=0;o<7;o++){var i=C(a,o);r.push(i)}return r}function sa(){var e=M(),t=e.classNames,n=e.styles,a=e.showWeekNumber,r=e.locale,o=e.weekStartsOn,i=e.ISOWeek,s=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,d=ia(r,o,i);return u.jsxs("tr",{style:n.head_row,className:t.head_row,children:[a&&u.jsx("td",{style:n.head_cell,className:t.head_cell}),d.map(function(l,f){return u.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":c(l,{locale:r}),children:s(l,{locale:r})},f)})]})}function ua(){var e,t=M(),n=t.classNames,a=t.styles,r=t.components,o=(e=r?.HeadRow)!==null&&e!==void 0?e:sa;return u.jsx("thead",{style:a.head,className:n.head,children:u.jsx(o,{})})}function la(e){var t=M(),n=t.locale,a=t.formatters.formatDay;return u.jsx(u.Fragment,{children:a(e.date,{locale:n})})}var xe=D.createContext(void 0);function ca(e){if(!U(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return u.jsx(xe.Provider,{value:t,children:e.children})}return u.jsx(da,{initialProps:e.initialProps,children:e.children})}function da(e){var t=e.initialProps,n=e.children,a=t.selected,r=t.min,o=t.max,i=function(d,l,f){var h,m;(h=t.onDayClick)===null||h===void 0||h.call(t,d,l,f);var y=!!(l.selected&&r&&a?.length===r);if(!y){var x=!!(!l.selected&&o&&a?.length===o);if(!x){var p=a?Ge([],a):[];if(l.selected){var N=p.findIndex(function(k){return P(d,k)});p.splice(N,1)}else p.push(d);(m=t.onSelect)===null||m===void 0||m.call(t,p,d,l,f)}}},s={disabled:[]};a&&s.disabled.push(function(d){var l=o&&a.length>o-1,f=a.some(function(h){return P(h,d)});return!!(l&&!f)});var c={selected:a,onDayClick:i,modifiers:s};return u.jsx(xe.Provider,{value:c,children:n})}function _e(){var e=D.useContext(xe);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function fa(e,t){var n=t||{},a=n.from,r=n.to;return a&&r?P(r,e)&&P(a,e)?void 0:P(r,e)?{from:r,to:void 0}:P(a,e)?void 0:ve(a,e)?{from:e,to:r}:{from:a,to:e}:r?ve(e,r)?{from:r,to:e}:{from:e,to:r}:a?Ve(e,a)?{from:e,to:a}:{from:a,to:e}:{from:e,to:void 0}}var De=D.createContext(void 0);function ha(e){if(!J(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return u.jsx(De.Provider,{value:t,children:e.children})}return u.jsx(ma,{initialProps:e.initialProps,children:e.children})}function ma(e){var t=e.initialProps,n=e.children,a=t.selected,r=a||{},o=r.from,i=r.to,s=t.min,c=t.max,d=function(m,y,x){var p,N;(p=t.onDayClick)===null||p===void 0||p.call(t,m,y,x);var k=fa(m,a);(N=t.onSelect)===null||N===void 0||N.call(t,k,m,y,x)},l={range_start:[],range_end:[],range_middle:[],disabled:[]};if(o?(l.range_start=[o],i?(l.range_end=[i],P(o,i)||(l.range_middle=[{after:o,before:i}])):l.range_end=[o]):i&&(l.range_start=[i],l.range_end=[i]),s&&(o&&!i&&l.disabled.push({after:ue(o,s-1),before:C(o,s-1)}),o&&i&&l.disabled.push({after:o,before:C(o,s-1)}),!o&&i&&l.disabled.push({after:ue(i,s-1),before:C(i,s-1)})),c){if(o&&!i&&(l.disabled.push({before:C(o,-c+1)}),l.disabled.push({after:C(o,c-1)})),o&&i){var f=T(i,o)+1,h=c-f;l.disabled.push({before:ue(o,h)}),l.disabled.push({after:C(i,h)})}!o&&i&&(l.disabled.push({before:C(i,-c+1)}),l.disabled.push({after:C(i,c-1)}))}return u.jsx(De.Provider,{value:{selected:a,onDayClick:d,modifiers:l},children:n})}function Me(){var e=D.useContext(De);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function $(e){return Array.isArray(e)?Ge([],e):e!==void 0?[e]:[]}function va(e){var t={};return Object.entries(e).forEach(function(n){var a=n[0],r=n[1];t[a]=$(r)}),t}var W;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(W||(W={}));var ya=W.Selected,F=W.Disabled,ga=W.Hidden,ba=W.Today,ce=W.RangeEnd,de=W.RangeMiddle,fe=W.RangeStart,pa=W.Outside;function wa(e,t,n){var a,r=(a={},a[ya]=$(e.selected),a[F]=$(e.disabled),a[ga]=$(e.hidden),a[ba]=[e.today],a[ce]=[],a[de]=[],a[fe]=[],a[pa]=[],a);return e.fromDate&&r[F].push({before:e.fromDate}),e.toDate&&r[F].push({after:e.toDate}),U(e)?r[F]=r[F].concat(t.modifiers[F]):J(e)&&(r[F]=r[F].concat(n.modifiers[F]),r[fe]=n.modifiers[fe],r[de]=n.modifiers[de],r[ce]=n.modifiers[ce]),r}var $e=D.createContext(void 0);function xa(e){var t=M(),n=_e(),a=Me(),r=wa(t,n,a),o=va(t.modifiers),i=g(g({},r),o);return u.jsx($e.Provider,{value:i,children:e.children})}function Ze(){var e=D.useContext($e);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function _a(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Da(e){return!!(e&&typeof e=="object"&&"from"in e)}function Ma(e){return!!(e&&typeof e=="object"&&"after"in e)}function ka(e){return!!(e&&typeof e=="object"&&"before"in e)}function Na(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Ca(e,t){var n,a=t.from,r=t.to;if(a&&r){var o=T(r,a)<0;o&&(n=[r,a],a=n[0],r=n[1]);var i=T(e,a)>=0&&T(r,e)>=0;return i}return r?P(r,e):a?P(a,e):!1}function Pa(e){return ge(e)}function Oa(e){return Array.isArray(e)&&e.every(ge)}function Sa(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(Pa(n))return P(e,n);if(Oa(n))return n.includes(e);if(Da(n))return Ca(e,n);if(Na(n))return n.dayOfWeek.includes(e.getDay());if(_a(n)){var a=T(n.before,e),r=T(n.after,e),o=a>0,i=r<0,s=ve(n.before,n.after);return s?i&&o:o||i}return Ma(n)?T(e,n.after)>0:ka(n)?T(n.before,e)>0:typeof n=="function"?n(e):!1})}function ke(e,t,n){var a=Object.keys(t).reduce(function(o,i){var s=t[i];return Sa(e,s)&&o.push(i),o},[]),r={};return a.forEach(function(o){return r[o]=!0}),n&&!we(e,n)&&(r.outside=!0),r}function ja(e,t){for(var n=O(e[0]),a=be(e[e.length-1]),r,o,i=n;i<=a;){var s=ke(i,t),c=!s.disabled&&!s.hidden;if(!c){i=C(i,1);continue}if(s.selected)return i;s.today&&!o&&(o=i),r||(r=i),i=C(i,1)}return o||r}var Wa=365;function et(e,t){var n=t.moveBy,a=t.direction,r=t.context,o=t.modifiers,i=t.retry,s=i===void 0?{count:0,lastFocused:e}:i,c=r.weekStartsOn,d=r.fromDate,l=r.toDate,f=r.locale,h={day:C,week:me,month:j,year:pt,startOfWeek:function(p){return r.ISOWeek?I(p):Y(p,{locale:f,weekStartsOn:c})},endOfWeek:function(p){return r.ISOWeek?Be(p):pe(p,{locale:f,weekStartsOn:c})}},m=h[n](e,a==="after"?1:-1);a==="before"&&d?m=wt([d,m]):a==="after"&&l&&(m=xt([l,m]));var y=!0;if(o){var x=ke(m,o);y=!x.disabled&&!x.hidden}return y?m:s.count>Wa?s.lastFocused:et(m,{moveBy:n,direction:a,context:r,modifiers:o,retry:g(g({},s),{count:s.count+1})})}var tt=D.createContext(void 0);function Ta(e){var t=K(),n=Ze(),a=D.useState(),r=a[0],o=a[1],i=D.useState(),s=i[0],c=i[1],d=ja(t.displayMonths,n),l=r??(s&&t.isDateDisplayed(s))?s:d,f=function(){c(r),o(void 0)},h=function(p){o(p)},m=M(),y=function(p,N){if(r){var k=et(r,{moveBy:p,direction:N,context:m,modifiers:n});P(r,k)||(t.goToDate(k,r),h(k))}},x={focusedDay:r,focusTarget:l,blur:f,focus:h,focusDayAfter:function(){return y("day","after")},focusDayBefore:function(){return y("day","before")},focusWeekAfter:function(){return y("week","after")},focusWeekBefore:function(){return y("week","before")},focusMonthBefore:function(){return y("month","before")},focusMonthAfter:function(){return y("month","after")},focusYearBefore:function(){return y("year","before")},focusYearAfter:function(){return y("year","after")},focusStartOfWeek:function(){return y("startOfWeek","before")},focusEndOfWeek:function(){return y("endOfWeek","after")}};return u.jsx(tt.Provider,{value:x,children:e.children})}function Ne(){var e=D.useContext(tt);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function Ya(e,t){var n=Ze(),a=ke(e,n,t);return a}var Ce=D.createContext(void 0);function Fa(e){if(!te(e.initialProps)){var t={selected:void 0};return u.jsx(Ce.Provider,{value:t,children:e.children})}return u.jsx(Ea,{initialProps:e.initialProps,children:e.children})}function Ea(e){var t=e.initialProps,n=e.children,a=function(o,i,s){var c,d,l;if((c=t.onDayClick)===null||c===void 0||c.call(t,o,i,s),i.selected&&!t.required){(d=t.onSelect)===null||d===void 0||d.call(t,void 0,o,i,s);return}(l=t.onSelect)===null||l===void 0||l.call(t,o,o,i,s)},r={selected:t.selected,onDayClick:a};return u.jsx(Ce.Provider,{value:r,children:n})}function nt(){var e=D.useContext(Ce);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function La(e,t){var n=M(),a=nt(),r=_e(),o=Me(),i=Ne(),s=i.focusDayAfter,c=i.focusDayBefore,d=i.focusWeekAfter,l=i.focusWeekBefore,f=i.blur,h=i.focus,m=i.focusMonthBefore,y=i.focusMonthAfter,x=i.focusYearBefore,p=i.focusYearAfter,N=i.focusStartOfWeek,k=i.focusEndOfWeek,q=function(b){var v,re,oe,ie;te(n)?(v=a.onDayClick)===null||v===void 0||v.call(a,e,t,b):U(n)?(re=r.onDayClick)===null||re===void 0||re.call(r,e,t,b):J(n)?(oe=o.onDayClick)===null||oe===void 0||oe.call(o,e,t,b):(ie=n.onDayClick)===null||ie===void 0||ie.call(n,e,t,b)},ne=function(b){var v;h(e),(v=n.onDayFocus)===null||v===void 0||v.call(n,e,t,b)},ae=function(b){var v;f(),(v=n.onDayBlur)===null||v===void 0||v.call(n,e,t,b)},Q=function(b){var v;(v=n.onDayMouseEnter)===null||v===void 0||v.call(n,e,t,b)},at=function(b){var v;(v=n.onDayMouseLeave)===null||v===void 0||v.call(n,e,t,b)},rt=function(b){var v;(v=n.onDayPointerEnter)===null||v===void 0||v.call(n,e,t,b)},ot=function(b){var v;(v=n.onDayPointerLeave)===null||v===void 0||v.call(n,e,t,b)},it=function(b){var v;(v=n.onDayTouchCancel)===null||v===void 0||v.call(n,e,t,b)},st=function(b){var v;(v=n.onDayTouchEnd)===null||v===void 0||v.call(n,e,t,b)},ut=function(b){var v;(v=n.onDayTouchMove)===null||v===void 0||v.call(n,e,t,b)},lt=function(b){var v;(v=n.onDayTouchStart)===null||v===void 0||v.call(n,e,t,b)},ct=function(b){var v;(v=n.onDayKeyUp)===null||v===void 0||v.call(n,e,t,b)},dt=function(b){var v;switch(b.key){case"ArrowLeft":b.preventDefault(),b.stopPropagation(),n.dir==="rtl"?s():c();break;case"ArrowRight":b.preventDefault(),b.stopPropagation(),n.dir==="rtl"?c():s();break;case"ArrowDown":b.preventDefault(),b.stopPropagation(),d();break;case"ArrowUp":b.preventDefault(),b.stopPropagation(),l();break;case"PageUp":b.preventDefault(),b.stopPropagation(),b.shiftKey?x():m();break;case"PageDown":b.preventDefault(),b.stopPropagation(),b.shiftKey?p():y();break;case"Home":b.preventDefault(),b.stopPropagation(),N();break;case"End":b.preventDefault(),b.stopPropagation(),k();break}(v=n.onDayKeyDown)===null||v===void 0||v.call(n,e,t,b)},ft={onClick:q,onFocus:ne,onBlur:ae,onKeyDown:dt,onKeyUp:ct,onMouseEnter:Q,onMouseLeave:at,onPointerEnter:rt,onPointerLeave:ot,onTouchCancel:it,onTouchEnd:st,onTouchMove:ut,onTouchStart:lt};return ft}function Ia(){var e=M(),t=nt(),n=_e(),a=Me(),r=te(e)?t.selected:U(e)?n.selected:J(e)?a.selected:void 0;return r}function Ra(e){return Object.values(W).includes(e)}function Ba(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(a){var r=e.modifiersClassNames[a];if(r)n.push(r);else if(Ra(a)){var o=e.classNames["day_".concat(a)];o&&n.push(o)}}),n}function Ha(e,t){var n=g({},e.styles.day);return Object.keys(t).forEach(function(a){var r;n=g(g({},n),(r=e.modifiersStyles)===null||r===void 0?void 0:r[a])}),n}function Aa(e,t,n){var a,r,o,i=M(),s=Ne(),c=Ya(e,t),d=La(e,c),l=Ia(),f=!!(i.onDayClick||i.mode!=="default");D.useEffect(function(){var Q;c.outside||s.focusedDay&&f&&P(s.focusedDay,e)&&((Q=n.current)===null||Q===void 0||Q.focus())},[s.focusedDay,e,n,f,c.outside]);var h=Ba(i,c).join(" "),m=Ha(i,c),y=!!(c.outside&&!i.showOutsideDays||c.hidden),x=(o=(r=i.components)===null||r===void 0?void 0:r.DayContent)!==null&&o!==void 0?o:la,p=u.jsx(x,{date:e,displayMonth:t,activeModifiers:c}),N={style:m,className:h,children:p,role:"gridcell"},k=s.focusTarget&&P(s.focusTarget,e)&&!c.outside,q=s.focusedDay&&P(s.focusedDay,e),ne=g(g(g({},N),(a={disabled:c.disabled,role:"gridcell"},a["aria-selected"]=c.selected,a.tabIndex=q||k?0:-1,a)),d),ae={isButton:f,isHidden:y,activeModifiers:c,selectedDays:l,buttonProps:ne,divProps:N};return ae}function qa(e){var t=D.useRef(null),n=Aa(e.date,e.displayMonth,t);return n.isHidden?u.jsx("div",{role:"gridcell"}):n.isButton?u.jsx(ee,g({name:"day",ref:t},n.buttonProps)):u.jsx("div",g({},n.divProps))}function Qa(e){var t=e.number,n=e.dates,a=M(),r=a.onWeekNumberClick,o=a.styles,i=a.classNames,s=a.locale,c=a.labels.labelWeekNumber,d=a.formatters.formatWeekNumber,l=d(Number(t),{locale:s});if(!r)return u.jsx("span",{className:i.weeknumber,style:o.weeknumber,children:l});var f=c(Number(t),{locale:s}),h=function(m){r(t,n,m)};return u.jsx(ee,{name:"week-number","aria-label":f,className:i.weeknumber,style:o.weeknumber,onClick:h,children:l})}function Xa(e){var t,n,a=M(),r=a.styles,o=a.classNames,i=a.showWeekNumber,s=a.components,c=(t=s?.Day)!==null&&t!==void 0?t:qa,d=(n=s?.WeekNumber)!==null&&n!==void 0?n:Qa,l;return i&&(l=u.jsx("td",{className:o.cell,style:r.cell,children:u.jsx(d,{number:e.weekNumber,dates:e.dates})})),u.jsxs("tr",{className:o.row,style:r.row,children:[l,e.dates.map(function(f){return u.jsx("td",{className:o.cell,style:r.cell,role:"presentation",children:u.jsx(c,{displayMonth:e.displayMonth,date:f})},xn(f))})]})}function Ee(e,t,n){for(var a=n?.ISOWeek?Be(t):pe(t,n),r=n?.ISOWeek?I(e):Y(e,n),o=T(a,r),i=[],s=0;s<=o;s++)i.push(C(r,s));var c=i.reduce(function(d,l){var f=n?.ISOWeek?Ae(l):Qe(l,n),h=d.find(function(m){return m.weekNumber===f});return h?(h.dates.push(l),d):(d.push({weekNumber:f,dates:[l]}),d)},[]);return c}function Va(e,t){var n=Ee(O(e),be(e),t);if(t?.useFixedWeeks){var a=Dn(e,t);if(a<6){var r=n[n.length-1],o=r.dates[r.dates.length-1],i=me(o,6-a),s=Ee(me(o,1),i,t);n.push.apply(n,s)}}return n}function Ga(e){var t,n,a,r=M(),o=r.locale,i=r.classNames,s=r.styles,c=r.hideHead,d=r.fixedWeeks,l=r.components,f=r.weekStartsOn,h=r.firstWeekContainsDate,m=r.ISOWeek,y=Va(e.displayMonth,{useFixedWeeks:!!d,ISOWeek:m,locale:o,weekStartsOn:f,firstWeekContainsDate:h}),x=(t=l?.Head)!==null&&t!==void 0?t:ua,p=(n=l?.Row)!==null&&n!==void 0?n:Xa,N=(a=l?.Footer)!==null&&a!==void 0?a:oa;return u.jsxs("table",{id:e.id,className:i.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&u.jsx(x,{}),u.jsx("tbody",{className:i.tbody,style:s.tbody,children:y.map(function(k){return u.jsx(p,{displayMonth:e.displayMonth,dates:k.dates,weekNumber:k.weekNumber},k.weekNumber)})}),u.jsx(N,{displayMonth:e.displayMonth})]})}function za(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Ua=za()?D.useLayoutEffect:D.useEffect,he=!1,Ja=0;function Le(){return"react-day-picker-".concat(++Ja)}function Ka(e){var t,n=e??(he?Le():null),a=D.useState(n),r=a[0],o=a[1];return Ua(function(){r===null&&o(Le())},[]),D.useEffect(function(){he===!1&&(he=!0)},[]),(t=e??r)!==null&&t!==void 0?t:void 0}function $a(e){var t,n,a=M(),r=a.dir,o=a.classNames,i=a.styles,s=a.components,c=K().displayMonths,d=Ka(a.id?"".concat(a.id,"-").concat(e.displayIndex):void 0),l=a.id?"".concat(a.id,"-grid-").concat(e.displayIndex):void 0,f=[o.month],h=i.month,m=e.displayIndex===0,y=e.displayIndex===c.length-1,x=!m&&!y;r==="rtl"&&(t=[m,y],y=t[0],m=t[1]),m&&(f.push(o.caption_start),h=g(g({},h),i.caption_start)),y&&(f.push(o.caption_end),h=g(g({},h),i.caption_end)),x&&(f.push(o.caption_between),h=g(g({},h),i.caption_between));var p=(n=s?.Caption)!==null&&n!==void 0?n:ra;return u.jsxs("div",{className:f.join(" "),style:h,children:[u.jsx(p,{id:d,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),u.jsx(Ga,{id:l,"aria-labelledby":d,displayMonth:e.displayMonth})]},e.displayIndex)}function Za(e){var t=M(),n=t.classNames,a=t.styles;return u.jsx("div",{className:n.months,style:a.months,children:e.children})}function er(e){var t,n,a=e.initialProps,r=M(),o=Ne(),i=K(),s=D.useState(!1),c=s[0],d=s[1];D.useEffect(function(){r.initialFocus&&o.focusTarget&&(c||(o.focus(o.focusTarget),d(!0)))},[r.initialFocus,c,o.focus,o.focusTarget,o]);var l=[r.classNames.root,r.className];r.numberOfMonths>1&&l.push(r.classNames.multiple_months),r.showWeekNumber&&l.push(r.classNames.with_weeknumber);var f=g(g({},r.styles.root),r.style),h=Object.keys(a).filter(function(y){return y.startsWith("data-")}).reduce(function(y,x){var p;return g(g({},y),(p={},p[x]=a[x],p))},{}),m=(n=(t=a.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:Za;return u.jsx("div",g({className:l.join(" "),style:f,dir:r.dir,id:r.id,nonce:a.nonce,title:a.title,lang:a.lang},h,{children:u.jsx(m,{children:i.displayMonths.map(function(y,x){return u.jsx($a,{displayIndex:x,displayMonth:y},x)})})}))}function tr(e){var t=e.children,n=kn(e,["children"]);return u.jsx(Qn,{initialProps:n,children:u.jsx(ea,{children:u.jsx(Fa,{initialProps:n,children:u.jsx(ca,{initialProps:n,children:u.jsx(ha,{initialProps:n,children:u.jsx(xa,{children:u.jsx(Ta,{children:t})})})})})})})}function nr(e){return u.jsx(tr,g({},e,{children:u.jsx(er,{initialProps:e})}))}function sr(e){const t=ht.c(20);let n,a,r,o;t[0]!==e?({className:n,classNames:a,showOutsideDays:o,...r}=e,t[0]=e,t[1]=n,t[2]=a,t[3]=r,t[4]=o):(n=t[1],a=t[2],r=t[3],o=t[4]);const i=o===void 0?!0:o;let s;t[5]!==n?(s=H("p-3",n),t[5]=n,t[6]=s):s=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=H(Pe({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),t[7]=c):c=t[7];const d=r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md";let l;t[8]!==d?(l=H("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",d),t[8]=d,t[9]=l):l=t[9];let f;t[10]===Symbol.for("react.memo_cache_sentinel")?(f=H(Pe({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),t[10]=f):f=t[10];let h;t[11]!==a||t[12]!==l?(h={months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:c,nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:l,day:f,day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...a},t[11]=a,t[12]=l,t[13]=h):h=t[13];let m;t[14]===Symbol.for("react.memo_cache_sentinel")?(m={IconLeft:rr,IconRight:ar},t[14]=m):m=t[14];let y;return t[15]!==r||t[16]!==i||t[17]!==s||t[18]!==h?(y=u.jsx(nr,{showOutsideDays:i,className:s,classNames:h,components:m,...r}),t[15]=r,t[16]=i,t[17]=s,t[18]=h,t[19]=y):y=t[19],y}function ar(e){const{className:t,...n}=e;return u.jsx(mt,{className:H("size-4",t),...n})}function rr(e){const{className:t,...n}=e;return u.jsx(vt,{className:H("size-4",t),...n})}export{sr as C};
|
package/dist/client/assets/{capability-load-error-CmORVXZR.js → capability-load-error-Bcs21XUc.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,b as y,q as h,a4 as j,j as s,a5 as b,K as C,B as E}from"./index-
|
|
1
|
+
import{c as p,b as y,q as h,a4 as j,j as s,a5 as b,K as C,B as E}from"./index-CwntHk8S.js";function v(){const e=p.c(23),t=y(),d=h(),{locator:x}=j();let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:s.jsx(b,{size:28})}),e[0]=u):u=e[0];let i;e[1]!==t?(i=t("common.capabilityLoadError.title"),e[1]=t,e[2]=i):i=e[2];let l;e[3]!==i?(l=s.jsx("h3",{className:"text-lg font-medium",children:i}),e[3]=i,e[4]=l):l=e[4];let a;e[5]!==t?(a=t("common.capabilityLoadError.description"),e[5]=t,e[6]=a):a=e[6];let r;e[7]!==a?(r=s.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:a}),e[7]=a,e[8]=r):r=e[8];let o;e[9]!==l||e[10]!==r?(o=s.jsxs("div",{className:"space-y-1",children:[l,r]}),e[9]=l,e[10]=r,e[11]=o):o=e[11];let n;e[12]!==x||e[13]!==d?(n=()=>d.invalidateQueries({queryKey:C.myCapabilities(x)}),e[12]=x,e[13]=d,e[14]=n):n=e[14];let c;e[15]!==t?(c=t("common.capabilityLoadError.tryAgain"),e[15]=t,e[16]=c):c=e[16];let m;e[17]!==n||e[18]!==c?(m=s.jsx(E,{variant:"outline",size:"sm",onClick:n,children:c}),e[17]=n,e[18]=c,e[19]=m):m=e[19];let f;return e[20]!==o||e[21]!==m?(f=s.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[u,o,m]}),e[20]=o,e[21]=m,e[22]=f):f=e[22],f}export{v as C};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as St,j as t,b as Et,r as k,B as et,a7 as vt,I as ot,aN as Nt,aM as Ct,aJ as wt,aH as Pt,aI as kt,aL as Bt,aK as Dt,b7 as Tt,h as Ft,t as B}from"./index-CwntHk8S.js";import{u as _t}from"./chat-context-CiT7AzBS.js";import{i as L}from"./AlertCircle-BfuEGc37.js";import{i as At}from"./ArrowRight-BfJPk4p9.js";import{i as st}from"./File02-D8jC2XAm.js";import{d as Rt}from"./UserSquare-CRBGeews.js";import{L as z}from"./label-BFX3DXnu.js";import{S as Lt,b as zt,a as Ot,d as It,c as O}from"./select-DqZVtjvu.js";import{b as Ht,C as Mt,a as Wt,c as $t}from"./blog-schema-DOB707mb.js";import{H as Vt,c as Gt}from"./held-block-view-MI6LUwjK.js";import{a as Yt,b as I,j as g,T as qt,s as Jt,aM as Qt,o as Ut,aN as Xt,_ as Zt,aO as Kt,m as rt,a1 as te,a5 as ee,W as oe,h as se,l as re,aP as ie,d as ae,f as ne,H as le,aQ as me}from"./category-tree-D2ejZxYL.js";import{c as ce}from"./blog-preview-url-CwSXxQWr.js";import{u as it}from"./use-never-published-D3zJmakm.js";import{u as de}from"./use-move-blocks-Dv6zyDyx.js";import{H as at}from"./hosted-reconcile-BbIfIwl1.js";import{u as pe}from"./use-fast-preview-draft-url-B4HFa9pK.js";import{u as ge}from"./use-autosave-CQa7WbXM.js";import{S as ue}from"./save-status-DM-afM9Q.js";import{B as xe,a as he}from"./block-document-pPtike34.js";import{c as fe,T as ye,a as be}from"./tooltip-BTd3W-2Z.js";import"./use-panel-navigate-V2MXWXLu.js";import"./thread-route-Bdw4g7Hg.js";import"./use-project-scope-COzEo5Zz.js";import"./repository-binding-Cqb4hBI0.js";import"./use-mcp-client-Cvc3WWPF.js";import"./auth-gL3R1YGn.js";import"./use-view-draft-kind-BdwsMdex.js";import"./use-blog-view-9s3Vkx1q.js";import"./use-organization-settings-Ddjh427l.js";import"./schema-CsGAsuNy.js";import"./task-board-DD2iUGL4.js";import"./thread-intent-DpzwhK2y.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CTgVk3NA.js";import"./session-runtime-DaEm9VzJ.js";import"./use-entitlements-DtyegfyM.js";import"./use-ai-providers-Cya2RotC.js";import"./use-current-view-EjRzX02x.js";import"./use-in-settings-DLJEfljS.js";import"./use-decopilot-events-BGpwG8Pb.js";import"./index-BdQq_4o_.js";import"./index-DEOQXzn-.js";import"./ChevronDown-Kpzb5_P-.js";import"./ChevronUp-CwLphDxo.js";import"./UserCheck01-DVOI9Qq6.js";import"./collapsible-DrV9qsGN.js";import"./utils-DPEBLDgi.js";import"./agent-icon-DE4TWlDl.js";import"./Tool01-DOjdBvJ6.js";import"./ArrowUp-Cfwuhrfj.js";import"./ArrowLeft-Ccyza8AK.js";import"./BookOpen01-vaPiqXWZ.js";import"./Globe04-CM5K7y4B.js";import"./CheckCircle-WpYwhp7A.js";import"./TrendUp01-DLgSqdSd.js";import"./ChevronSelectorVertical-DNPn4Jhl.js";import"./LinkBroken01-6J7zZ1XX.js";import"./CreditCard01-CDUEuZ6_.js";import"./Minimize01-Dylk6LHz.js";import"./SwitchHorizontal01-BbD-SqO6.js";import"./Eye-BeTcpGN-.js";import"./Image01-0Jwady1a.js";import"./Key01-Dqvoolzt.js";import"./LayoutLeft-Nn_BPz0l.js";import"./Minus-BFZz-RWg.js";import"./Monitor01-ZIydqkip.js";import"./Sun-Bvg5JrAI.js";import"./Play-CkrBckKV.js";import"./Plus-C8Idvwpa.js";import"./SearchMd-G9SUUXxg.js";import"./ShoppingBag01-sbzM0fY9.js";import"./Trash01-BRIjyxCC.js";import"./Upload01-Dd-OapHB.js";import"./Users01-bZ_S-kH7.js";import"./XClose-CWGS9q3D.js";import"./Zap-BxaAY56U.js";import"./blocks-tab-states-GP0NCNYs.js";import"./site-editor-toast-GAJZE2A0.js";import"./use-sandbox-events-cbWqZuIm.js";import"./sandbox-url-D3mC8qhT.js";import"./use-blocks-v8-project-BedqZgtc.js";import"./use-voice-input-CwLNuWlo.js";import"./popover-XZWwzjJe.js";import"./drawer-CarQd6Jb.js";import"./use-mobile-CG2XwDbe.js";import"./index-C17JTAPe.js";import"./checkbox-DSC8VbDf.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./sandbox-git-api-CX3IYPAX.js";import"./empty-state-XAK3RjVy.js";import"./calendar-CcuaFZRF.js";import"./textarea-BoSVR1xB.js";import"./usage-stats-Bk_1jh1-.js";import"./utils-CVEq3hMx.js";import"./markdown-sWsq0zMA.js";import"./use-copy-sOY8Yuot.js";import"./gateway-client-BqPME1T5.js";import"./form-8GAe5FIZ.js";import"./editor-classes-DVIoQu74.js";import"./switch-BviC1co2.js";import"./task-key-DP7js_2-.js";import"./sortable.esm-B3zbNG6q.js";import"./toggle-group-l7lV2Oqp.js";import"./active-indicator-CCMhAsc_.js";import"./empty-message-C90DlePv.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-Du2wOAPA.js";import"./use-task-board-items-OgSDu-ag.js";import"./config-CdVwRL_a.js";import"./task-route-Bfb6XWlb.js";import"./project-index-dmu51Z_5.js";import"./shell-layout-BMy93BCc.js";import"./use-deployment-admin-j92yIioi.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-DghJzmC_.js";import"./command-Bo6EGcaE.js";import"./index-Do3hK3is.js";import"./integration-icon-BCAGJ22m.js";import"./project-icon-C_Qws_Ah.js";import"./use-navigate-to-agent-BFBISUMc.js";import"./use-debounced-value-RJW46-1q.js";import"./new-project-dialog-DI67z-Vr.js";import"./repository-picker-B967M4cj.js";import"./github-icon-BH4kK9If.js";import"./useInfiniteQuery-BagPKS5m.js";import"./infiniteQueryObserver-DdeQTeaz.js";import"./collection-search-BbCHAL7t.js";import"./new-project-store-DoliA5Iq.js";import"./legacy-admin-welcome-dialog-CjbAHNU0.js";import"./required-auth-layout-DwZV69de.js";import"./use-org-sso-C8BMUr72.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DSMzeo3v.js";import"./types-C8b3acwX.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-B3BCtfXu.js";import"./use-connection-2s3z_IKD.js";import"./use-mcp-prompts-Ck1uv43A.js";import"./use-thread-outputs-Co5bznxQ.js";import"./file-type-icon-CEP8k4gh.js";import"./section-array-field-DbmoEjb3.js";import"./named-rule-step-P0BFUtVs.js";import"./slider-DirLi5JL.js";import"./index-km18CQ4q.js";import"./tooltipContext-De8eALzu.js";import"./CategoricalChart-gtbFaKuM.js";import"./index-DIHnNoyA.js";import"./combobox-DugO3-8Q.js";import"./scroll-area-DkuLv9J_.js";import"./match-site-slug-config-B47_xZCi.js";import"./use-file-configs-CzyibAGV.js";import"./asset-utils-DWvcPbEZ.js";import"./search-input-Yj0UUhbr.js";import"./tabs-BiFBpWbA.js";import"./delete-copy-BQaedVkX.js";import"./index-CYjM_f4V.js";import"./suggestion-bCd1m59t.js";import"./product-picker-dialog-Cp5iroCv.js";import"./index-DPCC7KEx.js";const H="__none__";function je({orgSlug:r,virtualMcpId:s,branch:u,blockKey:n,block:b,decofile:h,meta:D,onManagePosts:nt,onOpenPost:lt,previewBaseUrl:M,fastPreviewActive:mt=!0}){const o=Et(),W=_t()?.taskId??null,d=it({orgSlug:r,virtualMcpId:s,branch:u},{holdsCopy:!0}),v=de({orgSlug:r,virtualMcpId:s,branch:u}),ct=pe({orgSlug:r,virtualMcpId:s,branch:u}),$=Yt(b,"categories"),V=e=>{const a=d.shown(e);return a?{[e]:a}:{}},[m,G,Y]=ge($,e=>{d.mutate({blockKey:n,data:I(n,"categories",e)})},{isSaving:d.isPending||v.isPending,onSeed:()=>d.hold(n)}),N=(e,a)=>G({...m,[e]:a}),dt=Ht("categories",D,$t),R=it({orgSlug:r,virtualMcpId:s,branch:u}),q=Gt(e=>(d.v8?R:d).mutate(e),h,d.v8),J=ce({decofile:h,category:m,previewBaseUrl:M,draftPointer:mt?ct:null,meta:D}),i=g(m.slug),[Q,y]=k.useState(i),[U,j]=k.useState(null),[pt,gt]=k.useState(i);pt!==i&&(gt(i),y(i));const[p,T]=k.useState(null),[S,F]=k.useState(!1),X=i?qt(h).filter(e=>e.categorySlugs.includes(i)):[],_=X.length,A=Jt(h).categories,Z=(i?A.filter(e=>e.parentSlug===i):[]).length,ut=i?Qt(i,A).add(i):new Set,K=Ut(A).filter(({entry:e,depth:a})=>e.slug&&!ut.has(e.slug)&&a+1<Xt).map(({entry:e,depth:a})=>({slug:e.slug,label:e.label,depth:a})),C=g(m.parentSlug),xt=Zt(h,"categories",n,g(m.name)),E=Kt(m),ht=E.length===1?o("sandbox.postEditor.missingFieldSingular",{fields:rt(E,o)}):o("sandbox.postEditor.missingFieldPlural",{fields:rt(E,o)}),ft=e=>N("slug",e),tt=(e,a)=>{const c={name:g(a.name),slug:g(a.slug)},l={[n]:I(n,"categories",a)};let f=0;for(const{key:x,payload:w}of re(h)){const P=ie(w,e,c);P!==w&&(l[x]=ae(x,ne(P)),f+=1)}if(e!==c.slug)for(const{key:x,payload:w}of le(h,"categories")){if(x===n)continue;const P=me(w,e,c.slug);P!==w&&(l[x]=I(x,"categories",P))}return{writes:l,posts:f}},yt=async()=>{if(!i||S)return;const e=g(m.name),a={...m,name:e},{writes:c,posts:l}=tt(i,a);if(!(l===0&&e===g($.name))){F(!0);try{Y(a),await v.move({writes:c,deletes:[]},{shown:()=>V(n)}),l>0&&B.success(o("sandbox.categoryEditor.renameNameSuccess",{count:String(l)}))}catch(f){if(f instanceof at)return;B.error(f instanceof Error?f.message:o("sandbox.categoryEditor.renameFailed"))}finally{F(!1)}}},bt=async(e,a)=>{const c={...m,slug:a},{writes:l,posts:f}=tt(e,c);F(!0);try{Y(c),await v.move({writes:l,deletes:[]},{shown:()=>V(n)}),B.success(f>0?o("sandbox.categoryEditor.renameSuccessWithPosts",{count:String(f)}):o("sandbox.categoryEditor.renameSuccessNoPosts")),T(null)}catch(x){if(y(e),j(null),T(null),x instanceof at)return;B.error(x instanceof Error?x.message:o("sandbox.categoryEditor.renameFailed"))}finally{F(!1)}},jt=()=>{const e=oe(Q);if(y(e),e===i)return;if(!e){y(i),j(null);return}const a=A.filter(l=>l.key!==n).map(l=>g(l.slug)).filter(Boolean);let c=e;if(a.includes(e)){c=se(e,a);const l=o("sandbox.categoryEditor.slugDeduped",{slug:c});y(c),j(l),B.info(l)}else j(null);if(_===0&&Z===0){ft(c);return}T({oldSlug:i,newSlug:c,count:_,children:Z})};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[t.jsx("span",{className:"truncate text-sm font-medium",children:g(m.name)||o("sandbox.categoryEditor.untitledCategory")}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[t.jsx(ue,{isPending:d.isPending||d.v8&&R.isPending||v.isPending,isError:d.isError||d.v8&&R.isError||v.isError}),E.length>0&&t.jsxs(fe,{children:[t.jsx(ye,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(L,{size:14}),E.length," ",E.length===1?o("sandbox.postEditor.issueSingular"):o("sandbox.postEditor.issuePlural")]})}),t.jsx(be,{side:"bottom",children:ht})]}),J&&t.jsxs(et,{type:"button",variant:"outline",size:"sm",title:o("sandbox.categoryEditor.previewTooltip"),onClick:()=>window.open(J,"_blank","noopener,noreferrer"),children:[t.jsx(vt,{size:14}),o("sandbox.categoryEditor.seeCategoryPreview")]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[t.jsx(te,{value:g(m.name),onChange:e=>N("name",e),readOnly:S,onBlur:()=>{yt()},placeholder:o("sandbox.categoryEditor.categoryNamePlaceholder"),className:"py-1 text-3xl font-bold text-foreground"}),xt&&t.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(L,{size:14,className:"mt-px shrink-0"}),o("sandbox.categoryEditor.duplicateNameWarning")]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(z,{htmlFor:"category-slug",children:o("sandbox.categoryEditor.slugLabel")}),t.jsx(ot,{id:"category-slug",value:Q,onChange:e=>{j(null),y(ee(e.target.value))},onBlur:jt,placeholder:o("sandbox.categoryEditor.slugPlaceholder"),maxLength:80,className:"h-10"}),U&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(L,{size:14,className:"mt-px shrink-0"}),U]})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(z,{htmlFor:"category-parent",children:o("sandbox.categoryEditor.parentLabel")}),t.jsxs(Lt,{value:C||H,onValueChange:e=>N("parentSlug",e===H?void 0:e),children:[t.jsx(zt,{id:"category-parent",className:"h-10 w-full",children:t.jsx(Ot,{})}),t.jsxs(It,{children:[t.jsx(O,{value:H,children:o("sandbox.categoryEditor.parentNone")}),C&&!K.some(e=>e.slug===C)&&t.jsx(O,{value:C,children:C}),K.map(e=>t.jsx(O,{value:e.slug,children:t.jsx("span",{style:{paddingLeft:e.depth*12},children:e.label})},e.slug))]})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:o("sandbox.categoryEditor.parentDescription")})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(z,{htmlFor:"category-description",children:o("sandbox.categoryEditor.descriptionLabel")}),t.jsx(ot,{id:"category-description",value:g(m.description),onChange:e=>N("description",e.target.value),placeholder:o("sandbox.categoryEditor.descriptionPlaceholder"),className:"h-10"})]}),t.jsx(Mt,{schema:dt,value:m,onChange:G,basePath:"category",meta:D,decofile:h,sandbox:{orgSlug:r,virtualMcpId:s,branch:u,threadId:W},onSaveReferencedBlock:q}),t.jsx(Wt,{icon:Rt,title:o("sandbox.categoryEditor.contentTitle"),defaultOpen:!0,children:t.jsx(xe,{value:he(m.sections),onChange:e=>N("sections",e),meta:D,decofile:h,sandboxRef:{orgSlug:r,virtualMcpId:s,branch:u,threadId:W},previewBaseUrl:M,onSaveReferencedBlock:q,emptyMessage:o("sandbox.categoryEditor.noContentEmpty")})}),t.jsxs("div",{className:"mt-6 overflow-hidden rounded-lg border bg-muted/30",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(st,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:o("sandbox.categoryEditor.postsInCategory",{count:String(_)})})]}),t.jsxs(et,{type:"button",variant:"outline",size:"sm",disabled:!i,title:o(i?"sandbox.categoryEditor.pickPostsTooltip":"sandbox.categoryEditor.setSlugTooltip"),onClick:()=>nt(i),children:[o("sandbox.categoryEditor.addPostsButton"),t.jsx(At,{size:14})]})]}),_>0&&t.jsx("ul",{className:"divide-y border-t bg-background",children:X.map(e=>t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>lt(e.key),className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-left transition-colors hover:bg-accent cursor-pointer",children:[t.jsx(st,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"min-w-0 flex-1",children:[t.jsx("span",{className:"block truncate text-sm",children:e.title||o("sandbox.categoryEditor.untitledPost")}),e.slug&&t.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:e.slug})]})]})},e.key))})]})]})})]}),t.jsx(Nt,{open:!!p,onOpenChange:e=>{e||S||(y(i),j(null),T(null))},children:t.jsxs(Ct,{children:[t.jsxs(wt,{children:[t.jsx(Pt,{children:o("sandbox.categoryEditor.renameDialogTitle")}),t.jsxs(kt,{children:[p?o("sandbox.categoryEditor.renameDialogDescription",{oldSlug:p.oldSlug,newSlug:p.newSlug,count:String(p.count)}):null,p&&p.children>0?` ${o("sandbox.categoryEditor.renameDialogChildren",{count:String(p.children)})}`:null]})]}),t.jsxs(Bt,{children:[t.jsx(Dt,{disabled:S,children:o("sandbox.categoryEditor.cancelButton")}),t.jsx(Tt,{onClick:e=>{e.preventDefault(),p&&bt(p.oldSlug,p.newSlug)},disabled:S,children:S?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{className:"size-3.5"}),o("sandbox.categoryEditor.renamingLabel")]}):o("sandbox.categoryEditor.renameActionButton")})]})]})})]})}function Er(r){const s=St.c(10),u=r.block!==void 0;let n;s[0]!==r?(n=t.jsx(je,{...r}),s[0]=r,s[1]=n):n=s[1];let b;return s[2]!==r.blockKey||s[3]!==r.branch||s[4]!==r.decofile||s[5]!==r.orgSlug||s[6]!==r.virtualMcpId||s[7]!==u||s[8]!==n?(b=t.jsx(Vt,{listing:r.decofile,orgSlug:r.orgSlug,virtualMcpId:r.virtualMcpId,branch:r.branch,blockKey:r.blockKey,present:u,children:n}),s[2]=r.blockKey,s[3]=r.branch,s[4]=r.decofile,s[5]=r.orgSlug,s[6]=r.virtualMcpId,s[7]=u,s[8]=n,s[9]=b):b=s[9],b}export{Er as CategoryEditor};
|