decocms 4.613.1 → 4.613.2
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-Dq-KNxM5.js +1 -0
- package/dist/client/assets/AreaChart-DJZ5kkMZ.js +1 -0
- package/dist/client/assets/ArrowLeft-Dqn2bT_w.js +1 -0
- package/dist/client/assets/ArrowRight-CAgDickW.js +1 -0
- package/dist/client/assets/ArrowUp-4sBBKZzK.js +1 -0
- package/dist/client/assets/BookOpen01-B7HgfzTg.js +1 -0
- package/dist/client/assets/CartesianChart-C6F39bSp.js +1 -0
- package/dist/client/assets/CategoricalChart-C1JOIphb.js +33 -0
- package/dist/client/assets/CheckCircle-C_Ajm69Q.js +1 -0
- package/dist/client/assets/ChevronDown-CTfQz_yW.js +1 -0
- package/dist/client/assets/ChevronSelectorVertical-wx6gpppj.js +1 -0
- package/dist/client/assets/ChevronUp-Bg3xtRAf.js +1 -0
- package/dist/client/assets/CreditCard01-CB7PvVHx.js +1 -0
- package/dist/client/assets/Eye-DlR25mJG.js +1 -0
- package/dist/client/assets/File02-B5-QN1Dl.js +1 -0
- package/dist/client/assets/Fingerprint04-CN5vYo8p.js +1 -0
- package/dist/client/assets/Globe04-H2BdZ0Ti.js +1 -0
- package/dist/client/assets/Image01-BFqudZKw.js +1 -0
- package/dist/client/assets/Key01-DIFUZKO4.js +1 -0
- package/dist/client/assets/LayoutLeft-D8DREd3Q.js +1 -0
- package/dist/client/assets/LinkBroken01-OtZzvuyI.js +1 -0
- package/dist/client/assets/MessageCircle01-DiHU7gWc.js +1 -0
- package/dist/client/assets/Minus-C-L0uUsK.js +1 -0
- package/dist/client/assets/Monitor01-Dd5mByvl.js +1 -0
- package/dist/client/assets/Play-Cz8nUNXY.js +1 -0
- package/dist/client/assets/Plus-Hrr9Aktn.js +1 -0
- package/dist/client/assets/ReferenceLine-DVi6s9_q.js +1 -0
- package/dist/client/assets/SearchMd-Bw_DK2gP.js +1 -0
- package/dist/client/assets/ShoppingBag01-BcP4nQLO.js +1 -0
- package/dist/client/assets/Sun-BBMaxO6y.js +1 -0
- package/dist/client/assets/SwitchHorizontal01-DLzxh9Gd.js +1 -0
- package/dist/client/assets/Tool01-nVLtxvHv.js +1 -0
- package/dist/client/assets/Tooltip-B1HSol_f.js +1 -0
- package/dist/client/assets/Trash01-Dh6D7ABD.js +1 -0
- package/dist/client/assets/Upload01-CuWxQjza.js +1 -0
- package/dist/client/assets/UserCheck01-C0gKOYWe.js +1 -0
- package/dist/client/assets/UserSquare-DqYKKMSn.js +1 -0
- package/dist/client/assets/Users01-BFb0vp-t.js +1 -0
- package/dist/client/assets/XClose-CcNfsDjh.js +1 -0
- package/dist/client/assets/Zap-Dg9_Uuep.js +1 -0
- package/dist/client/assets/access-gate-B0BUDTBB.js +1 -0
- package/dist/client/assets/add-connection-dialog-D8yvZRqW.js +1 -0
- package/dist/client/assets/agent-app-DAxew1JC.js +1 -0
- package/dist/client/assets/agent-assets-D4pZ70ME.js +1 -0
- package/dist/client/assets/agent-automation-Bou8c436.js +20 -0
- package/dist/client/assets/agent-automations-9MMhBcJW.js +1 -0
- package/dist/client/assets/agent-blog-BB8ao3RW.js +2 -0
- package/dist/client/assets/agent-blog-post-CYDyrSUs.js +2 -0
- package/dist/client/assets/agent-business-case-BTaC_R0K.js +1 -0
- package/dist/client/assets/agent-calendar-COMylNyr.js +1 -0
- package/dist/client/assets/agent-capabilities-B548bjTr.js +1 -0
- package/dist/client/assets/agent-connect-sources-CoXgdwS0.js +1 -0
- package/dist/client/assets/agent-deck-BHuydkDy.js +1 -0
- package/dist/client/assets/agent-e2e-C65B8hGv.js +1 -0
- package/dist/client/assets/agent-experiments-zhJy530d.js +1 -0
- package/dist/client/assets/agent-file-DRxbKJHY.js +1 -0
- package/dist/client/assets/agent-hosting-D4Z6xzJ7.js +1 -0
- package/dist/client/assets/agent-icon-TiRfS6qN.js +1 -0
- package/dist/client/assets/agent-library-DAqV7GV5.js +1 -0
- package/dist/client/assets/agent-library-file-BOPS4LzV.js +1 -0
- package/dist/client/assets/agent-overview-765039jq.js +1 -0
- package/dist/client/assets/agent-releases-ChNVOFY0.js +3 -0
- package/dist/client/assets/agent-settings-CAaYS-Qb.js +1 -0
- package/dist/client/assets/agent-site-editor-DeBHGJyd.js +16 -0
- package/dist/client/assets/agent-site-editor-code-CkHYzP36.js +2 -0
- package/dist/client/assets/agent-site-editor-content-vjaFp3r3.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-D3yLw8y2.js +1 -0
- package/dist/client/assets/agent-view-Bmp94OXB.js +1 -0
- package/dist/client/assets/agent-view-guard-6uqg13NS.js +1 -0
- package/dist/client/assets/ai-providers-CU_EzZfp.js +1 -0
- package/dist/client/assets/alert-BAKJ5tDY.js +1 -0
- package/dist/client/assets/analytics-sections-kXxFHR8K.js +1 -0
- package/dist/client/assets/api-keys-DgrPbRdJ.js +1 -0
- package/dist/client/assets/api-keys-F_tbBvf0.js +1 -0
- package/dist/client/assets/app-editor-CBnearTx.js +1 -0
- package/dist/client/assets/asset-utils-HMGAdoDi.js +1 -0
- package/dist/client/assets/auth-D02eFBMZ.js +1 -0
- package/dist/client/assets/auth-catchall-e7kz1Zn1.js +1 -0
- package/dist/client/assets/auth-entry-BCAumgkq.js +1 -0
- package/dist/client/assets/auth-split-layout-eS8OY8FQ.js +1 -0
- package/dist/client/assets/authenticate-and-persist-oauth-ByjK-IN5.js +1 -0
- package/dist/client/assets/automation-list-row-BVpyBCbG.js +1 -0
- package/dist/client/assets/automation-runs-CNPxxThM.js +1 -0
- package/dist/client/assets/automations-Dq3dBjCm.js +1 -0
- package/dist/client/assets/badge-BBSQh6Uu.js +1 -0
- package/dist/client/assets/block-document-RjLwgnqu.js +3 -0
- package/dist/client/assets/blocks-preview-workspace-context-BPIeOkFy.js +1 -0
- package/dist/client/assets/blocks-tab-states-BK5yayIF.js +1 -0
- package/dist/client/assets/blog-preview-url-C-j3cWFn.js +1 -0
- package/dist/client/assets/blog-schema-DECpfoR_.js +1 -0
- package/dist/client/assets/blog-source-gate-4Qts-ar8.js +1 -0
- package/dist/client/assets/blog-view-gate-DhsbDKri.js +1 -0
- package/dist/client/assets/buckets-wb15whxi.js +1 -0
- package/dist/client/assets/build-improve-prompt-doc-DEjZ9hmy.js +2 -0
- package/dist/client/assets/calendar-D9jiUY0V.js +1 -0
- package/dist/client/assets/capability-load-error-CejuD9Wa.js +1 -0
- package/dist/client/assets/category-editor-CehKb-Ft.js +1 -0
- package/dist/client/assets/category-tree-B0yO1Gq4.js +18 -0
- package/dist/client/assets/chart-Di4PD1Ji.js +13 -0
- package/dist/client/assets/chat-context-DpOzXt67.js +44 -0
- package/dist/client/assets/chat-draft-5W1w5RyD.js +1 -0
- package/dist/client/assets/checkbox-DONKjPez.js +1 -0
- package/dist/client/assets/choose-editor-D6fBK6_s.js +1 -0
- package/dist/client/assets/cli-auth-success-D5JPZlKL.js +1 -0
- package/dist/client/assets/cms-settings-editor-B-tSTY59.js +1 -0
- package/dist/client/assets/cms-store-drafts-COCpu3ir.js +1 -0
- package/dist/client/assets/collapsible-Bkbqa1G8.js +1 -0
- package/dist/client/assets/collection-detail-C9zAMC1T.js +1 -0
- package/dist/client/assets/collection-display-button-B_m3Bbl9.js +1 -0
- package/dist/client/assets/collection-search-CpEkYZRJ.js +1 -0
- package/dist/client/assets/collection-table-wrapper-25JYiKDs.js +1 -0
- package/dist/client/assets/collection-tabs-CcFA7CAt.js +1 -0
- package/dist/client/assets/combobox-CtbjK522.js +1 -0
- package/dist/client/assets/command-DOsfIbnR.js +1 -0
- package/dist/client/assets/companion-mcps-section-ChQXno59.js +1 -0
- package/dist/client/assets/config-SXpXedVw.js +1 -0
- package/dist/client/assets/connect-FNLd1CWe.js +9 -0
- package/dist/client/assets/connect-key-NAk-jeH9.js +1 -0
- package/dist/client/assets/connect-layout-DOfe8ci6.js +1 -0
- package/dist/client/assets/connect-source-dialog-8Z_ZVQcB.js +1 -0
- package/dist/client/assets/connection-DVaoR-0s.js +1 -0
- package/dist/client/assets/connection-card-B1-XvXXp.js +1 -0
- package/dist/client/assets/connection-detail-OV0LjFGf.js +1 -0
- package/dist/client/assets/connection-form-helpers-jkxcvfr-.js +1 -0
- package/dist/client/assets/connection-slug-woWVmFSM.js +1 -0
- package/dist/client/assets/connections-DPkjll4_.js +1 -0
- package/dist/client/assets/content-changes-CL5pqu3o.js +1 -0
- package/dist/client/assets/content-tab-DTlwh5lS.js +19 -0
- package/dist/client/assets/context-Bzdt0Vmq.js +1 -0
- package/dist/client/assets/context-menu-DuU5Im6X.js +1 -0
- package/dist/client/assets/context-shell-C34E3UmN.js +37 -0
- package/dist/client/assets/create-organization-dialog-DCXCnTtw.js +1 -0
- package/dist/client/assets/daily-pulse-pGzxz6az.js +1 -0
- package/dist/client/assets/delete-copy-DrkS10Tk.js +4 -0
- package/dist/client/assets/device-hint-D2mnF0WW.js +1 -0
- package/dist/client/assets/discover-CxlzrXFo.js +1 -0
- package/dist/client/assets/domain-settings-5GZZzP9P.js +1 -0
- package/dist/client/assets/drawer-DBYfxUc5.js +1 -0
- package/dist/client/assets/editor-classes-Dt9x0HTK.js +1 -0
- package/dist/client/assets/editor-k1lz5vd2.js +11 -0
- package/dist/client/assets/empty-state-BaX7qcT6.js +1 -0
- package/dist/client/assets/empty-state-DG74voMp.js +1 -0
- package/dist/client/assets/experiments-tab-choice-BuTlL0UN.js +1 -0
- package/dist/client/assets/extract-connection-data-D8RA7aNY.js +1 -0
- package/dist/client/assets/feature-gate-INFDgxGv.js +1 -0
- package/dist/client/assets/feature-paywall-DzuuNoC0.js +1 -0
- package/dist/client/assets/file-explorer-BzowyIJt.js +2 -0
- package/dist/client/assets/file-preview-CFmw-Mpm.js +1 -0
- package/dist/client/assets/file-share-button-jBqCmXDE.js +3 -0
- package/dist/client/assets/file-type-icon-DDtj-qsY.js +1 -0
- package/dist/client/assets/folder-icon-C6S6S7y5.js +1 -0
- package/dist/client/assets/form-Dj9qATwb.js +1 -0
- package/dist/client/assets/frame-navigation-DfV5ZXB6.js +1 -0
- package/dist/client/assets/gateway-client-Bt-zgCod.js +1 -0
- package/dist/client/assets/general-DcAkDAnh.js +1 -0
- package/dist/client/assets/github-icon-CA0Se8ib.js +1 -0
- package/dist/client/assets/held-block-view-DjEfvbV2.js +3 -0
- package/dist/client/assets/home-BskRwsLF.js +1 -0
- package/dist/client/assets/home-overview-BtB0DXFZ.js +1 -0
- package/dist/client/assets/hosted-reconcile-5ztqbsR8.js +1 -0
- package/dist/client/assets/icon-button-C-do25HN.js +1 -0
- package/dist/client/assets/index-B9qoaIXB.js +1 -0
- package/dist/client/assets/index-BkmXMKSP.js +4 -0
- package/dist/client/assets/index-BqI8xAEu.js +15 -0
- package/dist/client/assets/index-CKWVjdl2.js +1 -0
- package/dist/client/assets/index-Cbr3sV-N.js +5 -0
- package/dist/client/assets/index-CmIQCfmv.js +1 -0
- package/dist/client/assets/index-CxzzYASZ.js +1 -0
- package/dist/client/assets/index-D4h9lMWL.js +1 -0
- package/dist/client/assets/index-DFlR3TGo.js +26 -0
- package/dist/client/assets/index-DI7rDat7.js +1 -0
- package/dist/client/assets/index-DV21r4ku.js +69 -0
- package/dist/client/assets/index-IihCyBIe.js +1 -0
- package/dist/client/assets/index-OS1HwRA4.js +4 -0
- package/dist/client/assets/index-TxpTb6t-.js +269 -0
- package/dist/client/assets/index-hsXsAM7a.js +1 -0
- package/dist/client/assets/index-rQ7Z7wiX.js +1 -0
- package/dist/client/assets/index-redirect-B1lzC4kG.js +1 -0
- package/dist/client/assets/index-s9Fdb2Os.js +1 -0
- package/dist/client/assets/infiniteQueryObserver-DIsWsg7j.js +1 -0
- package/dist/client/assets/infra-billing-Cv366YeZ.js +1 -0
- package/dist/client/assets/input-B0bn39Xh.js +17 -0
- package/dist/client/assets/input-D3XRlNJ0.js +1 -0
- package/dist/client/assets/integration-icon-BwJVBZD3.js +1 -0
- package/dist/client/assets/item-actions-sAOtmY_t.js +1 -0
- package/dist/client/assets/jira-icon-DnVzGbtF.js +1 -0
- package/dist/client/assets/label-DBXumtTI.js +1 -0
- package/dist/client/assets/layout-B01bM09Y.js +1 -0
- package/dist/client/assets/legacy-admin-welcome-dialog-BpjGA_Qv.js +1 -0
- package/dist/client/assets/legacy-agents-deep-D4KFdpXi.js +1 -0
- package/dist/client/assets/legacy-main-redirect-DtMiSRM8.js +1 -0
- package/dist/client/assets/library-C7GgLZCd.js +1 -0
- package/dist/client/assets/library-tab-DmJI4J-D.js +162 -0
- package/dist/client/assets/login-BeE0wfrC.js +1 -0
- package/dist/client/assets/markdown-hcA80xrk.js +93 -0
- package/dist/client/assets/mcp-app-renderer-CLV9FGK8.js +11 -0
- package/dist/client/assets/mcp-oauth-5-PCIXK8.js +1 -0
- package/dist/client/assets/mcp-oauth-D2tuj_Fq.js +1 -0
- package/dist/client/assets/members-Dy1mBWZ8.js +1 -0
- package/dist/client/assets/memory-BrJnBalp.js +7 -0
- package/dist/client/assets/mock-board-CPIKUKL1.js +10 -0
- package/dist/client/assets/monaco-editor-DMwFk1Pi.js +9 -0
- package/dist/client/assets/monitoring-CnoT48hP.js +2 -0
- package/dist/client/assets/monitoring-stats-row-BBhVaUWr.js +1 -0
- package/dist/client/assets/multi-select-D4aZZa9s.js +1 -0
- package/dist/client/assets/mustache-CGuBlULa.js +4 -0
- package/dist/client/assets/named-rule-step-JGMEcn4W.js +1 -0
- package/dist/client/assets/named-rule-view-BfDnPZe1.js +1 -0
- package/dist/client/assets/new-project-dialog-dB7_i4Qt.js +1 -0
- package/dist/client/assets/new-project-store-yM3ZBfr8.js +1 -0
- package/dist/client/assets/oauth-callback-BRFLeRze.js +1 -0
- package/dist/client/assets/oauth-callback-ai-provider-BIkfCc8L.js +1 -0
- package/dist/client/assets/oauth-consent-n4PMUX9j.js +1 -0
- package/dist/client/assets/onboarding-COIJY0bR.js +1 -0
- package/dist/client/assets/openai-conversation-DJJmihen.js +3 -0
- package/dist/client/assets/optimistic-project-sidebar-views-CyT7T37Q.js +1 -0
- package/dist/client/assets/order-monitor-day-xy0NwjGB.js +1 -0
- package/dist/client/assets/organization-choice-Dd6EFRi5.js +1 -0
- package/dist/client/assets/orgs-CVbB4v1z.js +1 -0
- package/dist/client/assets/own-accounts-section-hyTDXYqP.js +1 -0
- package/dist/client/assets/pair-Cpn9911A.js +48 -0
- package/dist/client/assets/parse-sections-BNgGwb6K.js +4 -0
- package/dist/client/assets/plan-BgBMTT48.js +1 -0
- package/dist/client/assets/plan-ladder-SUG2zxVV.js +1 -0
- package/dist/client/assets/plan-page-B97PZapX.js +6 -0
- package/dist/client/assets/plan-page-JAVKjas9.css +1 -0
- package/dist/client/assets/plan-usage-card-v0p0iaSW.js +6 -0
- package/dist/client/assets/popover-BhQvI6Ci.js +1 -0
- package/dist/client/assets/post-calendar-CJI0B6nx.js +1 -0
- package/dist/client/assets/post-editor-Bm9waQu0.js +2 -0
- package/dist/client/assets/preview-content-v0t5au3m.js +1 -0
- package/dist/client/assets/preview-dialog-_4bYbxJT.js +1 -0
- package/dist/client/assets/preview-panel-CT3YwHBi.js +1 -0
- package/dist/client/assets/preview-tab-DnzBBG3r.js +557 -0
- package/dist/client/assets/primitives-B09ImGmM.js +1 -0
- package/dist/client/assets/product-picker-dialog-BpoeAcrJ.js +1 -0
- package/dist/client/assets/profile-B2mQKj4P.js +1 -0
- package/dist/client/assets/project-app-view-CJ0A-hzz.js +1 -0
- package/dist/client/assets/project-apps-DTdFltAq.js +1 -0
- package/dist/client/assets/project-icon-79iKoL5J.js +1 -0
- package/dist/client/assets/project-index-Dvzw5ZPI.js +1 -0
- package/dist/client/assets/project-reports-BOQt_VM8.js +1 -0
- package/dist/client/assets/project-tasks-D-84Davh.js +1 -0
- package/dist/client/assets/projects-DeIxK4ey.js +1 -0
- package/dist/client/assets/projects-empty-state-BXwSmEvF.js +1 -0
- package/dist/client/assets/prompts-BtYZ6KQi.js +1 -0
- package/dist/client/assets/record-editor-QKxjwfux.js +1 -0
- package/dist/client/assets/redirect-editor-FE4kqSSu.js +1 -0
- package/dist/client/assets/reports-CC1bODVK.js +1 -0
- package/dist/client/assets/reports-P6WItYho.js +3 -0
- package/dist/client/assets/reports-onboarding-DQj52VFI.js +1 -0
- package/dist/client/assets/reports-tab-ChXJb_14.js +2 -0
- package/dist/client/assets/repositories-C9coyoWr.js +1 -0
- package/dist/client/assets/repositories-Dhj06u1H.js +1 -0
- package/dist/client/assets/repository-binding-C6Q6rTCq.js +1 -0
- package/dist/client/assets/repository-picker-qO39HBTX.js +1 -0
- package/dist/client/assets/require-capability-BGgQVq09.js +1 -0
- package/dist/client/assets/required-auth-layout-C0Zoqnd5.js +1 -0
- package/dist/client/assets/reset-password-DR2sfETw.js +1 -0
- package/dist/client/assets/resizable-BU4mxyhl.js +1 -0
- package/dist/client/assets/resolve-tab-icon-DzSk2OX5.js +1 -0
- package/dist/client/assets/review-settings-CkjRPLoQ.js +1 -0
- package/dist/client/assets/role-color-ofXYD2zQ.js +1 -0
- package/dist/client/assets/roles-CeC1qNxL.js +1 -0
- package/dist/client/assets/route-CbX_GqVG.js +1 -0
- package/dist/client/assets/route-D2IDmDBG.js +1 -0
- package/dist/client/assets/route-Q-TODpFM.js +1 -0
- package/dist/client/assets/route-page-header-1R1hO2lM.js +1 -0
- package/dist/client/assets/sandbox-git-api-b8vIZog_.js +1 -0
- package/dist/client/assets/sandbox-lifecycle-context-ByKDEtoo.js +1 -0
- package/dist/client/assets/save-status-BSEg8O16.js +1 -0
- package/dist/client/assets/schema-BMMpRaT7.js +1 -0
- package/dist/client/assets/schema-DQMwqc3y.js +1 -0
- package/dist/client/assets/scroll-area-BX1dEYr0.js +1 -0
- package/dist/client/assets/search-input-Cqw1sfoq.js +1 -0
- package/dist/client/assets/search-toggle-DFPiKmeS.js +1 -0
- package/dist/client/assets/secret-picker-DM_GCERi.js +1 -0
- package/dist/client/assets/secrets-BZLR1Tiv.js +1 -0
- package/dist/client/assets/section-array-field-C53JCS6V.js +1 -0
- package/dist/client/assets/sections-Dm3F-fbD.js +1 -0
- package/dist/client/assets/sections-editor-DqVIkY4X.js +1 -0
- package/dist/client/assets/select-B043gNlI.js +1 -0
- package/dist/client/assets/select-model-ey39mV4L.js +1 -0
- package/dist/client/assets/seo-editor-3qfBE8tb.js +1 -0
- package/dist/client/assets/separator-BbdzmQ7G.js +1 -0
- package/dist/client/assets/session-runtime-C7t2dJ2C.js +1 -0
- package/dist/client/assets/settings-tab-DmZrvXS-.js +1 -0
- package/dist/client/assets/sheet-BabUGgfu.js +1 -0
- package/dist/client/assets/shell-layout-CQtuJ10m.js +1 -0
- package/dist/client/assets/site-draft-actions-RiUXDN62.js +7 -0
- package/dist/client/assets/site-draft-view-C02Ag8Td.js +1 -0
- package/dist/client/assets/site-editor-CvXc40pp.js +1 -0
- package/dist/client/assets/site-editor-toast-Dw3Pw8Me.js +1 -0
- package/dist/client/assets/skills-CHy7b1a1.js +1 -0
- package/dist/client/assets/slider-Cuy5OPtR.js +1 -0
- package/dist/client/assets/sortable.esm-DsfJ7ZSD.js +1 -0
- package/dist/client/assets/sso-a2YGfBSd.js +1 -0
- package/dist/client/assets/suggestion-C_46bv7Q.js +2 -0
- package/dist/client/assets/super-agent-icon-Cu75RS7q.js +1 -0
- package/dist/client/assets/switch-CYj4jY2U.js +1 -0
- package/dist/client/assets/synced-repos-_8GdV1yJ.js +1 -0
- package/dist/client/assets/tab-icon-glyph-C0XKpT27.js +1 -0
- package/dist/client/assets/table-C7JAS84x.js +1 -0
- package/dist/client/assets/tabs-BjPWlou5.js +1 -0
- package/dist/client/assets/task-board-nk38_QK1.js +1 -0
- package/dist/client/assets/task-key-BqL0wDoN.js +5 -0
- package/dist/client/assets/task-route-I0jIuRPI.js +1 -0
- package/dist/client/assets/task-status-bacBrTx-.js +1 -0
- package/dist/client/assets/taskboard-analytics-DlpWTStQ.js +1 -0
- package/dist/client/assets/tasks-D3aEqkkc.js +4 -0
- package/dist/client/assets/tasks-DrukY02x.js +1 -0
- package/dist/client/assets/textarea-BtM4NiRw.js +1 -0
- package/dist/client/assets/thread-analytics-Dc7tir8o.js +1 -0
- package/dist/client/assets/thread-button-DCotVRko.js +1 -0
- package/dist/client/assets/thread-intent-xzBTK_RX.js +15 -0
- package/dist/client/assets/thread-route-CHHapqFU.js +1 -0
- package/dist/client/assets/thread-route-De5HF2y6.js +1 -0
- package/dist/client/assets/thread-sheet-body-C-nzP9iT.js +1 -0
- package/dist/client/assets/time-range-picker-BegNa_X6.js +1 -0
- package/dist/client/assets/toggle-group-DKY7ztEe.js +1 -0
- package/dist/client/assets/tool-set-selector-DgXNH17f.js +1 -0
- package/dist/client/assets/toolbar-icon-button-uzcw3yD2.js +1 -0
- package/dist/client/assets/tooltip-DYXaNugu.js +1 -0
- package/dist/client/assets/tooltipContext-Jj9fHDnV.js +1 -0
- package/dist/client/assets/track-Bq86LoP3.js +1 -0
- package/dist/client/assets/types-CIVGvpZ0.js +77 -0
- package/dist/client/assets/url-slug-DMOAQ_lT.js +1 -0
- package/dist/client/assets/usage-stats-BDD0I25a.js +141 -0
- package/dist/client/assets/use-ai-providers-B_vRXviN.js +1 -0
- package/dist/client/assets/use-api-keys-uAL0hDQR.js +1 -0
- package/dist/client/assets/use-apply-named-rule-Dk0qpjV1.js +1 -0
- package/dist/client/assets/use-ask-in-chat-BVkYjPHL.js +1 -0
- package/dist/client/assets/use-automations-DRPUZksG.js +1 -0
- package/dist/client/assets/use-autosave-DV_OoQIn.js +1 -0
- package/dist/client/assets/use-blocks-v8-project-BSH68G_p.js +1 -0
- package/dist/client/assets/use-blog-view-CtOHSMkK.js +1 -0
- package/dist/client/assets/use-chat-layout-state-Cyyj9Un-.js +1 -0
- package/dist/client/assets/use-cms-publish-actions-OZwei3g4.js +10 -0
- package/dist/client/assets/use-connect-companion-BYNhLNMG.js +1 -0
- package/dist/client/assets/use-connection-IXleYE4j.js +1 -0
- package/dist/client/assets/use-content-sync-BMrVE7lN.js +1 -0
- package/dist/client/assets/use-copy-9udQq6fq.js +1 -0
- package/dist/client/assets/use-current-view-mBQFHLUH.js +1 -0
- package/dist/client/assets/use-date-fns-locale-BQ8fok30.js +1 -0
- package/dist/client/assets/use-debounced-autosave-CKKt6tHK.js +1 -0
- package/dist/client/assets/use-debounced-value-CbXd2Ffh.js +1 -0
- package/dist/client/assets/use-deco-credits-Cqj99_dF.js +1 -0
- package/dist/client/assets/use-decopilot-events-CSZ1As5G.js +1 -0
- package/dist/client/assets/use-delete-block-Do2HxsU1.js +1 -0
- package/dist/client/assets/use-delete-connection-DrCH_dJP.js +1 -0
- package/dist/client/assets/use-deployment-admin-TEfqeIeo.js +1 -0
- package/dist/client/assets/use-entitlements-DQIFZSxg.js +1 -0
- package/dist/client/assets/use-fast-preview-draft-url-DKxuxaaY.js +1 -0
- package/dist/client/assets/use-file-configs-BUa8LWQS.js +1 -0
- package/dist/client/assets/use-id-selection-LPkxd-T5.js +1 -0
- package/dist/client/assets/use-in-settings-CMsR7cZQ.js +1 -0
- package/dist/client/assets/use-inbox-feed-BGCSyRP9.js +1 -0
- package/dist/client/assets/use-infinite-scroll-BCd_t7BT.js +1 -0
- package/dist/client/assets/use-join-requests-BQQOoEyQ.js +1 -0
- package/dist/client/assets/use-main-panel-tabs-DOFIkafU.js +1 -0
- package/dist/client/assets/use-mcp-auth-status-BbCzZJ_7.js +1 -0
- package/dist/client/assets/use-mcp-client-ExS_LtHV.js +10 -0
- package/dist/client/assets/use-mcp-prompts-CMM6TNGu.js +1 -0
- package/dist/client/assets/use-mcp-tools-CCU4p9Rz.js +1 -0
- package/dist/client/assets/use-mobile-CJUXV6Cd.js +1 -0
- package/dist/client/assets/use-move-blocks-CVrXFQf9.js +1 -0
- package/dist/client/assets/use-navigate-to-agent-GgUPd_lv.js +1 -0
- package/dist/client/assets/use-never-published-BXBSYXJD.js +1 -0
- package/dist/client/assets/use-org-fs-7ZhjAHDq.js +1 -0
- package/dist/client/assets/use-org-notice-DZNaXzPK.js +1 -0
- package/dist/client/assets/use-org-repo-syncs-CU6eNoAC.js +1 -0
- package/dist/client/assets/use-org-sso-BKEBkMtq.js +1 -0
- package/dist/client/assets/use-organization-settings-BMzmJwkq.js +1 -0
- package/dist/client/assets/use-panel-navigate-TXIh5Jjf.js +1 -0
- package/dist/client/assets/use-project-native-view-presence-iIZzPh0n.js +1 -0
- package/dist/client/assets/use-project-scope-CKvnTLpI.js +1 -0
- package/dist/client/assets/use-recent-apps-CsoTzvcJ.js +1 -0
- package/dist/client/assets/use-reports-diagnostic-B5ktHIcG.js +1 -0
- package/dist/client/assets/use-sandbox-events-DgTm5p14.js +2 -0
- package/dist/client/assets/use-secrets-CmhNvyh-.js +1 -0
- package/dist/client/assets/use-section-preview-base-CxmHxD8c.js +1 -0
- package/dist/client/assets/use-sidebar-collapsed-DdxzWT5S.js +1 -0
- package/dist/client/assets/use-tags-CyEQyAhi.js +1 -0
- package/dist/client/assets/use-task-board-analytics-BPZdg5me.js +1 -0
- package/dist/client/assets/use-task-board-item-prs-ByWZevYZ.js +1 -0
- package/dist/client/assets/use-task-board-items-BIQu-vu8.js +1 -0
- package/dist/client/assets/use-task-board-prompts-BD95sybY.js +1 -0
- package/dist/client/assets/use-task-metadata-DGT_hCy-.js +1 -0
- package/dist/client/assets/use-thread-outputs-DvgezGKZ.js +1 -0
- package/dist/client/assets/use-view-draft-kind-kwEa5AZ1.js +1 -0
- package/dist/client/assets/use-voice-input-B_fCdMky.js +1 -0
- package/dist/client/assets/useInfiniteQuery-B1B1l9Rx.js +1 -0
- package/dist/client/assets/useQueries-DCrQluth.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DFT4-et2.js +1 -0
- package/dist/client/assets/users-DdaIDntv.js +1 -0
- package/dist/client/assets/utils-D0VJmDFc.js +4 -0
- package/dist/client/assets/variant-calendar-CY-CCOVR.js +1 -0
- package/dist/client/assets/variant-matcher-override-cLg6yoTm.js +1 -0
- package/dist/client/assets/view-header-b9iFwHmd.js +1 -0
- package/dist/client/assets/virtual-mcp-D_GJvAm-.js +1 -0
- package/dist/client/assets/watch-sse-pool-El5ChbJr.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/AlertCircle-Cc9abj54.js +0 -1
- package/dist/client/assets/AreaChart-i_0tiiBi.js +0 -1
- package/dist/client/assets/ArrowLeft-DmCE9iE9.js +0 -1
- package/dist/client/assets/ArrowRight-XZDtcu4Y.js +0 -1
- package/dist/client/assets/ArrowUp-C0pWnVbm.js +0 -1
- package/dist/client/assets/BookOpen01-BwolTTJT.js +0 -1
- package/dist/client/assets/CartesianChart-CtUMI2La.js +0 -1
- package/dist/client/assets/CategoricalChart-COakPEp6.js +0 -33
- package/dist/client/assets/CheckCircle-DjioCEZU.js +0 -1
- package/dist/client/assets/ChevronDown-BnuV7SgS.js +0 -1
- package/dist/client/assets/ChevronSelectorVertical-Dx2JQhRM.js +0 -1
- package/dist/client/assets/ChevronUp-CyR0aMhj.js +0 -1
- package/dist/client/assets/CreditCard01-BCihmozf.js +0 -1
- package/dist/client/assets/Eye-CYP8vvbu.js +0 -1
- package/dist/client/assets/File02-LpabM5_D.js +0 -1
- package/dist/client/assets/Fingerprint04-DtDtS04t.js +0 -1
- package/dist/client/assets/Globe04-BqzzeANW.js +0 -1
- package/dist/client/assets/Image01-VVLD8oS_.js +0 -1
- package/dist/client/assets/Key01-eiAM4eIZ.js +0 -1
- package/dist/client/assets/LayoutLeft-InV68xzX.js +0 -1
- package/dist/client/assets/LinkBroken01-nj36YoV3.js +0 -1
- package/dist/client/assets/MessageCircle01-C1mrhgbK.js +0 -1
- package/dist/client/assets/Minus-DzYeA1ab.js +0 -1
- package/dist/client/assets/Monitor01-CH4nMVaL.js +0 -1
- package/dist/client/assets/Play-BMP_aq_7.js +0 -1
- package/dist/client/assets/Plus-D2MIpYCd.js +0 -1
- package/dist/client/assets/ReferenceLine-hf6nZDfV.js +0 -1
- package/dist/client/assets/SearchMd-BIqbW6Bo.js +0 -1
- package/dist/client/assets/ShoppingBag01-sGOBRlD0.js +0 -1
- package/dist/client/assets/Sun-Cjf4iHJM.js +0 -1
- package/dist/client/assets/SwitchHorizontal01-Djn4EHnk.js +0 -1
- package/dist/client/assets/Tool01-CYGCQ2nX.js +0 -1
- package/dist/client/assets/Tooltip-CZd4PraL.js +0 -1
- package/dist/client/assets/Trash01-Nwu0tE4W.js +0 -1
- package/dist/client/assets/Upload01-DC_deGyT.js +0 -1
- package/dist/client/assets/UserCheck01-KaL9LT_k.js +0 -1
- package/dist/client/assets/UserSquare-Px337mEZ.js +0 -1
- package/dist/client/assets/Users01-DsrEmiso.js +0 -1
- package/dist/client/assets/XClose-Ag4juj36.js +0 -1
- package/dist/client/assets/Zap-B-MuVCBU.js +0 -1
- package/dist/client/assets/access-gate-DX_hAYay.js +0 -1
- package/dist/client/assets/add-connection-dialog-BTFManlB.js +0 -1
- package/dist/client/assets/agent-app-ByktwCXs.js +0 -1
- package/dist/client/assets/agent-assets-CVUdbNgD.js +0 -1
- package/dist/client/assets/agent-automation-EDDyjgyK.js +0 -20
- package/dist/client/assets/agent-automations-DpMJ7yeo.js +0 -1
- package/dist/client/assets/agent-blog-ajxda-jZ.js +0 -2
- package/dist/client/assets/agent-blog-post-BJJxBWEC.js +0 -2
- package/dist/client/assets/agent-business-case-D5pNqNyA.js +0 -1
- package/dist/client/assets/agent-calendar-CE4LcSpv.js +0 -1
- package/dist/client/assets/agent-capabilities-DlmpC4Ry.js +0 -1
- package/dist/client/assets/agent-connect-sources-CMrKVZcw.js +0 -1
- package/dist/client/assets/agent-deck-CjLV6usd.js +0 -1
- package/dist/client/assets/agent-e2e-DND3_2ji.js +0 -1
- package/dist/client/assets/agent-experiments-BK8c_Tez.js +0 -1
- package/dist/client/assets/agent-file-3PqmakB7.js +0 -1
- package/dist/client/assets/agent-hosting-D-Tv_sr0.js +0 -1
- package/dist/client/assets/agent-icon-1ZLmJzI_.js +0 -1
- package/dist/client/assets/agent-library-Cf3q-c7Y.js +0 -1
- package/dist/client/assets/agent-library-file-B5TbGAtC.js +0 -1
- package/dist/client/assets/agent-overview-hdHgOUUk.js +0 -1
- package/dist/client/assets/agent-releases-A96bOLt0.js +0 -3
- package/dist/client/assets/agent-settings-Bc9W2nTL.js +0 -1
- package/dist/client/assets/agent-site-editor-CXt_HYP9.js +0 -16
- package/dist/client/assets/agent-site-editor-code-C0mbgAZu.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BD2aOWsg.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-B4wH8dnJ.js +0 -1
- package/dist/client/assets/agent-view-Dw1e-t3i.js +0 -1
- package/dist/client/assets/agent-view-guard-BF24y4FM.js +0 -1
- package/dist/client/assets/ai-providers-Dhz7Ianf.js +0 -1
- package/dist/client/assets/alert-C1jyLphN.js +0 -1
- package/dist/client/assets/analytics-sections-O4_YxGiq.js +0 -1
- package/dist/client/assets/api-keys-CRqwKFJy.js +0 -1
- package/dist/client/assets/api-keys-cLPiCqiB.js +0 -1
- package/dist/client/assets/app-editor-MsLfsf-k.js +0 -1
- package/dist/client/assets/asset-utils-BO87hZzw.js +0 -1
- package/dist/client/assets/auth-VnUV54t6.js +0 -1
- package/dist/client/assets/auth-catchall-DY0K5FxI.js +0 -1
- package/dist/client/assets/auth-entry-VAkikSUB.js +0 -1
- package/dist/client/assets/auth-split-layout-DdSlh4UI.js +0 -1
- package/dist/client/assets/authenticate-and-persist-oauth-Dn_HrZ36.js +0 -1
- package/dist/client/assets/automation-list-row-DI42xVU9.js +0 -1
- package/dist/client/assets/automation-runs-DYSYtzje.js +0 -1
- package/dist/client/assets/automations-B0npu1Oy.js +0 -1
- package/dist/client/assets/badge-C_-2ru7p.js +0 -1
- package/dist/client/assets/block-document-WuyYM_qo.js +0 -3
- package/dist/client/assets/blocks-preview-workspace-context-CZrZkcQo.js +0 -1
- package/dist/client/assets/blocks-tab-states-DCMxeCzD.js +0 -1
- package/dist/client/assets/blog-preview-url-CMax6MPm.js +0 -1
- package/dist/client/assets/blog-schema-rJfOHW8k.js +0 -1
- package/dist/client/assets/blog-source-gate-CpnZREkb.js +0 -1
- package/dist/client/assets/blog-view-gate-89TCGMC5.js +0 -1
- package/dist/client/assets/buckets-4Cew2IQ_.js +0 -1
- package/dist/client/assets/build-improve-prompt-doc-QopPSnHK.js +0 -2
- package/dist/client/assets/calendar-DiqE7uly.js +0 -1
- package/dist/client/assets/capability-load-error-djCH3S7K.js +0 -1
- package/dist/client/assets/category-editor-CkMyvv83.js +0 -1
- package/dist/client/assets/category-tree-BUh2YGSR.js +0 -18
- package/dist/client/assets/chart-CrvWzFd6.js +0 -13
- package/dist/client/assets/chat-context-ezxG3DPM.js +0 -44
- package/dist/client/assets/chat-draft-DPKNgSNQ.js +0 -1
- package/dist/client/assets/checkbox-D7R3fVuO.js +0 -1
- package/dist/client/assets/choose-editor-BOJtnpzI.js +0 -1
- package/dist/client/assets/cli-auth-success-C0sLBEpE.js +0 -1
- package/dist/client/assets/cms-settings-editor-DhNdWaJh.js +0 -1
- package/dist/client/assets/cms-store-drafts-Dzzlzq0F.js +0 -1
- package/dist/client/assets/collapsible-CLKlzXKH.js +0 -1
- package/dist/client/assets/collection-detail-CzTYFTor.js +0 -1
- package/dist/client/assets/collection-display-button-BokPM1KM.js +0 -1
- package/dist/client/assets/collection-search-CBgaiTMh.js +0 -1
- package/dist/client/assets/collection-table-wrapper-BjdwrFI5.js +0 -1
- package/dist/client/assets/collection-tabs-BHC0827K.js +0 -1
- package/dist/client/assets/combobox-yMK-_aSj.js +0 -1
- package/dist/client/assets/command-jMuBLlSV.js +0 -1
- package/dist/client/assets/companion-mcps-section-DTLhV93d.js +0 -1
- package/dist/client/assets/config-D0uxWrJF.js +0 -1
- package/dist/client/assets/connect-D1yY_0Ee.js +0 -9
- package/dist/client/assets/connect-key-JYYoVkr8.js +0 -1
- package/dist/client/assets/connect-layout-DAS3hTg_.js +0 -1
- package/dist/client/assets/connect-source-dialog-zX5tGtCO.js +0 -1
- package/dist/client/assets/connection-CflpaRz5.js +0 -1
- package/dist/client/assets/connection-card-Cw9lGmnM.js +0 -1
- package/dist/client/assets/connection-detail-DTS88Qcs.js +0 -1
- package/dist/client/assets/connection-form-helpers-DoIYOt4Y.js +0 -1
- package/dist/client/assets/connection-slug-CeZ8g-ZV.js +0 -1
- package/dist/client/assets/connections-C78FQzIT.js +0 -1
- package/dist/client/assets/content-changes-BKZ60U7y.js +0 -1
- package/dist/client/assets/content-tab-CJIc3OvU.js +0 -19
- package/dist/client/assets/context-BNZMC6X2.js +0 -1
- package/dist/client/assets/context-menu-Dqx5WEjh.js +0 -1
- package/dist/client/assets/context-shell-DgyJ5E_a.js +0 -37
- package/dist/client/assets/create-organization-dialog-Rpqdp1Xh.js +0 -1
- package/dist/client/assets/daily-pulse-Bac0PZYu.js +0 -1
- package/dist/client/assets/delete-copy-CdhzluXZ.js +0 -4
- package/dist/client/assets/device-hint-BLYSuc1X.js +0 -1
- package/dist/client/assets/discover-DUfz4bM1.js +0 -1
- package/dist/client/assets/domain-settings-DLpH28hT.js +0 -1
- package/dist/client/assets/drawer-BdbgwYin.js +0 -1
- package/dist/client/assets/editor-Fb628_ML.js +0 -11
- package/dist/client/assets/editor-classes-BenVB06x.js +0 -1
- package/dist/client/assets/empty-state-B04tjEGw.js +0 -1
- package/dist/client/assets/empty-state-Ciu6g-QI.js +0 -1
- package/dist/client/assets/experiments-tab-choice-BdFtF7dR.js +0 -1
- package/dist/client/assets/extract-connection-data-T1MLOEoC.js +0 -1
- package/dist/client/assets/feature-gate-ebJjmuTV.js +0 -1
- package/dist/client/assets/feature-paywall-CRVE-M4U.js +0 -1
- package/dist/client/assets/file-explorer-DXvclknW.js +0 -2
- package/dist/client/assets/file-preview-BLpY-kYH.js +0 -1
- package/dist/client/assets/file-share-button-DiqPR2D6.js +0 -3
- package/dist/client/assets/file-type-icon-pvD4Ni8s.js +0 -1
- package/dist/client/assets/folder-icon-D4Lokypd.js +0 -1
- package/dist/client/assets/form-ShPmJICU.js +0 -1
- package/dist/client/assets/frame-navigation-ZnV5qopX.js +0 -1
- package/dist/client/assets/gateway-client-B6nX0dtg.js +0 -1
- package/dist/client/assets/general-LXqP8SRu.js +0 -1
- package/dist/client/assets/github-icon-DJBgk66Z.js +0 -1
- package/dist/client/assets/held-block-view-CSR5w8wu.js +0 -3
- package/dist/client/assets/home-DW5Rgkxu.js +0 -1
- package/dist/client/assets/home-overview-UvZ38HHP.js +0 -1
- package/dist/client/assets/hosted-reconcile-EQNKqX5P.js +0 -1
- package/dist/client/assets/icon-button-COYGk2PK.js +0 -1
- package/dist/client/assets/index-B7ODjHYe.js +0 -1
- package/dist/client/assets/index-BFnq-R1P.js +0 -1
- package/dist/client/assets/index-BGtFnmbf.js +0 -1
- package/dist/client/assets/index-BO6T3eRU.js +0 -69
- package/dist/client/assets/index-C1ISeMrJ.js +0 -5
- package/dist/client/assets/index-CGJRx-ab.js +0 -4
- package/dist/client/assets/index-Cvqw2n6R.js +0 -26
- package/dist/client/assets/index-CxJ90OLT.js +0 -1
- package/dist/client/assets/index-D72gb6tH.js +0 -4
- package/dist/client/assets/index-DH8-KoQa.js +0 -15
- package/dist/client/assets/index-DPGzPWk2.js +0 -1
- package/dist/client/assets/index-DQt4K5uR.js +0 -1
- package/dist/client/assets/index-DuRjPLjE.js +0 -1
- package/dist/client/assets/index-Rw5A0DmF.js +0 -269
- package/dist/client/assets/index-fi1kQRv5.js +0 -1
- package/dist/client/assets/index-r4ahglPr.js +0 -1
- package/dist/client/assets/index-redirect-BpydqH70.js +0 -1
- package/dist/client/assets/index-rrOAgeOA.js +0 -1
- package/dist/client/assets/infiniteQueryObserver-CXw_04U8.js +0 -1
- package/dist/client/assets/infra-billing-BmMzIgvy.js +0 -1
- package/dist/client/assets/input-B5YKGYLN.js +0 -1
- package/dist/client/assets/input-BJudM3i8.js +0 -17
- package/dist/client/assets/integration-icon-LSbi_JSK.js +0 -1
- package/dist/client/assets/item-actions-Bfo1NJSu.js +0 -1
- package/dist/client/assets/jira-icon-CIo0-SSC.js +0 -1
- package/dist/client/assets/label-C9fDqO12.js +0 -1
- package/dist/client/assets/layout-CAflu6nv.js +0 -1
- package/dist/client/assets/legacy-admin-welcome-dialog-JaU0aPzp.js +0 -1
- package/dist/client/assets/legacy-agents-deep-Bp2KWvwZ.js +0 -1
- package/dist/client/assets/legacy-main-redirect-CKCqfE3R.js +0 -1
- package/dist/client/assets/library-DpWA1kEQ.js +0 -1
- package/dist/client/assets/library-tab-Dsj61Zi1.js +0 -162
- package/dist/client/assets/login-CnfyIIxa.js +0 -1
- package/dist/client/assets/markdown-CZDwcrN8.js +0 -93
- package/dist/client/assets/mcp-app-renderer-DFfT6-gC.js +0 -11
- package/dist/client/assets/mcp-oauth-DdoGUsBu.js +0 -1
- package/dist/client/assets/mcp-oauth-jckBNFMf.js +0 -1
- package/dist/client/assets/members-B8xCCp5I.js +0 -1
- package/dist/client/assets/memory-YBLgH5K7.js +0 -7
- package/dist/client/assets/mock-board-C4sVnnLR.js +0 -10
- package/dist/client/assets/monaco-editor-DuL1S6bt.js +0 -9
- package/dist/client/assets/monitoring-D7nbaXs3.js +0 -2
- package/dist/client/assets/monitoring-stats-row-BAJ1590o.js +0 -1
- package/dist/client/assets/multi-select-DZqTlYxo.js +0 -1
- package/dist/client/assets/mustache-Bs10QqJV.js +0 -4
- package/dist/client/assets/named-rule-step-BJSR7K07.js +0 -1
- package/dist/client/assets/named-rule-view-BxPR0j2c.js +0 -1
- package/dist/client/assets/new-project-dialog-D93CLZuz.js +0 -1
- package/dist/client/assets/new-project-store-DUIxP9OJ.js +0 -1
- package/dist/client/assets/oauth-callback-CbGu57ll.js +0 -1
- package/dist/client/assets/oauth-callback-ai-provider-B9cX8q7L.js +0 -1
- package/dist/client/assets/oauth-consent-B0LlrbhZ.js +0 -1
- package/dist/client/assets/onboarding-DAg4zdaR.js +0 -1
- package/dist/client/assets/openai-conversation-CzPZLwAz.js +0 -3
- package/dist/client/assets/optimistic-project-sidebar-views-DMlIA9Hh.js +0 -1
- package/dist/client/assets/order-monitor-day-DwzgVeFi.js +0 -1
- package/dist/client/assets/organization-choice-CUjUv8Wj.js +0 -1
- package/dist/client/assets/orgs-D3VlP9sV.js +0 -1
- package/dist/client/assets/own-accounts-section-DHN2_VNi.js +0 -1
- package/dist/client/assets/pair-DVsWTCk_.js +0 -48
- package/dist/client/assets/parse-sections-JjEwrOG4.js +0 -4
- package/dist/client/assets/plan-ByxLRwN9.js +0 -1
- package/dist/client/assets/plan-ladder-DpB5vA1C.js +0 -1
- package/dist/client/assets/plan-page-B3ySRkE9.js +0 -6
- package/dist/client/assets/plan-page-Ce0nH0bn.css +0 -1
- package/dist/client/assets/plan-usage-card-HL8St-RR.js +0 -6
- package/dist/client/assets/popover-NYFpYsO9.js +0 -1
- package/dist/client/assets/post-calendar-gkww5UGQ.js +0 -1
- package/dist/client/assets/post-editor-BrTrdqvC.js +0 -2
- package/dist/client/assets/preview-content-DaIuMINT.js +0 -1
- package/dist/client/assets/preview-dialog-DSR-aXgP.js +0 -1
- package/dist/client/assets/preview-panel-DSYL-oAJ.js +0 -1
- package/dist/client/assets/preview-tab-BUj5FU8A.js +0 -557
- package/dist/client/assets/primitives-BWkjL1e_.js +0 -1
- package/dist/client/assets/product-picker-dialog-DxeJOns2.js +0 -1
- package/dist/client/assets/profile-CRa0L_IA.js +0 -1
- package/dist/client/assets/project-app-view-Cwz9BD0I.js +0 -1
- package/dist/client/assets/project-apps-C-sgd2ph.js +0 -1
- package/dist/client/assets/project-icon-C3OB0ksw.js +0 -1
- package/dist/client/assets/project-index-C3iXC6H2.js +0 -1
- package/dist/client/assets/project-reports-BducprCd.js +0 -1
- package/dist/client/assets/project-tasks-C61Yxm8X.js +0 -1
- package/dist/client/assets/projects-DWQIgdeb.js +0 -1
- package/dist/client/assets/projects-empty-state-Bprwcuuf.js +0 -1
- package/dist/client/assets/prompts-CkY0SWZ_.js +0 -1
- package/dist/client/assets/record-editor-Cn82wuIZ.js +0 -1
- package/dist/client/assets/redirect-editor-Cogwr5iq.js +0 -1
- package/dist/client/assets/reports-CxUS-ONX.js +0 -1
- package/dist/client/assets/reports-DlulkoHP.js +0 -3
- package/dist/client/assets/reports-onboarding-BL549Ipb.js +0 -1
- package/dist/client/assets/reports-tab-B87guwkW.js +0 -2
- package/dist/client/assets/repositories-CrdpA9r1.js +0 -1
- package/dist/client/assets/repositories-DnQzFwIR.js +0 -1
- package/dist/client/assets/repository-binding-CTMyi6Ax.js +0 -1
- package/dist/client/assets/repository-picker-CyPG6dTX.js +0 -1
- package/dist/client/assets/require-capability-RfeflffT.js +0 -1
- package/dist/client/assets/required-auth-layout-CBTYPSrv.js +0 -1
- package/dist/client/assets/reset-password-C9xgNLRS.js +0 -1
- package/dist/client/assets/resizable-B1p6b4uX.js +0 -1
- package/dist/client/assets/resolve-tab-icon-CtVUVPeg.js +0 -1
- package/dist/client/assets/review-settings-C-VDs_sI.js +0 -1
- package/dist/client/assets/role-color-DDCOFe_e.js +0 -1
- package/dist/client/assets/roles-CimWMGkA.js +0 -1
- package/dist/client/assets/route-BPms2T8X.js +0 -1
- package/dist/client/assets/route-BjtpCDFA.js +0 -1
- package/dist/client/assets/route-DHgnTTRx.js +0 -1
- package/dist/client/assets/route-page-header-CfvtfbSN.js +0 -1
- package/dist/client/assets/sandbox-git-api-CbmWqHVe.js +0 -1
- package/dist/client/assets/sandbox-lifecycle-context-BvDXISS1.js +0 -1
- package/dist/client/assets/save-status-CwWi0Kgv.js +0 -1
- package/dist/client/assets/schema--O3exoni.js +0 -1
- package/dist/client/assets/schema-BxrbKJCJ.js +0 -1
- package/dist/client/assets/scroll-area-C0B5ezJM.js +0 -1
- package/dist/client/assets/search-input-C0qu_2Pg.js +0 -1
- package/dist/client/assets/search-toggle-hufpYqXR.js +0 -1
- package/dist/client/assets/secret-picker-CRU2m1jY.js +0 -1
- package/dist/client/assets/secrets-BNEvduEb.js +0 -1
- package/dist/client/assets/section-array-field-CueECt24.js +0 -1
- package/dist/client/assets/sections-D_7xtJeW.js +0 -1
- package/dist/client/assets/sections-editor-gqGWcxFz.js +0 -1
- package/dist/client/assets/select-Da9fUulT.js +0 -1
- package/dist/client/assets/select-model-BdN8Mlev.js +0 -1
- package/dist/client/assets/seo-editor-DepW_b48.js +0 -1
- package/dist/client/assets/separator-CIcuI5xL.js +0 -1
- package/dist/client/assets/session-runtime-ByQgBiqb.js +0 -1
- package/dist/client/assets/settings-tab-C24isTHO.js +0 -1
- package/dist/client/assets/sheet-BwgCTRSg.js +0 -1
- package/dist/client/assets/shell-layout-BrYU9IjE.js +0 -1
- package/dist/client/assets/site-draft-actions-CYsSMm1P.js +0 -7
- package/dist/client/assets/site-draft-view-unAWLRPX.js +0 -1
- package/dist/client/assets/site-editor-Y5SUHwmp.js +0 -1
- package/dist/client/assets/site-editor-toast-DRzJQnJH.js +0 -1
- package/dist/client/assets/skills-NhSrtMFS.js +0 -1
- package/dist/client/assets/slider-BU-gVxE5.js +0 -1
- package/dist/client/assets/sortable.esm-B2cMHEa0.js +0 -1
- package/dist/client/assets/sso-DKeJLOA_.js +0 -1
- package/dist/client/assets/suggestion-CYI14iXm.js +0 -2
- package/dist/client/assets/super-agent-icon-2HC-VYlw.js +0 -1
- package/dist/client/assets/switch-D0iHCTNk.js +0 -1
- package/dist/client/assets/synced-repos-DoxvhjJV.js +0 -1
- package/dist/client/assets/tab-icon-glyph-BwesdhYM.js +0 -1
- package/dist/client/assets/table-B_Ss5NrL.js +0 -1
- package/dist/client/assets/tabs-BTeiXpBf.js +0 -1
- package/dist/client/assets/task-board-CmVVD6_N.js +0 -1
- package/dist/client/assets/task-key-7zcuJrfh.js +0 -5
- package/dist/client/assets/task-route-UX30mhBK.js +0 -1
- package/dist/client/assets/task-status-DX0yzTwn.js +0 -1
- package/dist/client/assets/taskboard-analytics-DghizK4x.js +0 -1
- package/dist/client/assets/tasks-3aWMOW5Q.js +0 -1
- package/dist/client/assets/tasks-zwM1izot.js +0 -4
- package/dist/client/assets/textarea-DGKHR3yh.js +0 -1
- package/dist/client/assets/thread-analytics-BWwxJqCJ.js +0 -1
- package/dist/client/assets/thread-button-DgmVIFvJ.js +0 -1
- package/dist/client/assets/thread-intent-BpDB6WnP.js +0 -15
- package/dist/client/assets/thread-route-Bn1wl4V-.js +0 -1
- package/dist/client/assets/thread-route-CNeJEPg7.js +0 -1
- package/dist/client/assets/thread-sheet-body-tx3QOeO2.js +0 -1
- package/dist/client/assets/time-range-picker-D2F9bJoV.js +0 -1
- package/dist/client/assets/toggle-group-TGayzPCd.js +0 -1
- package/dist/client/assets/tool-set-selector-Dozd1tnm.js +0 -1
- package/dist/client/assets/toolbar-icon-button-EG3hWVMz.js +0 -1
- package/dist/client/assets/tooltip-CVNCZQdL.js +0 -1
- package/dist/client/assets/tooltipContext-DrwsAzpt.js +0 -1
- package/dist/client/assets/track-RmmZI6OX.js +0 -1
- package/dist/client/assets/types-B0LQOhRA.js +0 -77
- package/dist/client/assets/url-slug-BBmGVg5I.js +0 -1
- package/dist/client/assets/usage-stats-te8ZtpDl.js +0 -141
- package/dist/client/assets/use-ai-providers-BleY3P9l.js +0 -1
- package/dist/client/assets/use-api-keys-vzYv1JZ7.js +0 -1
- package/dist/client/assets/use-apply-named-rule-D6OgHD00.js +0 -1
- package/dist/client/assets/use-ask-in-chat-Bi3EhGjs.js +0 -1
- package/dist/client/assets/use-automations-z3BVtto5.js +0 -1
- package/dist/client/assets/use-autosave-CNomLkMl.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-5vE-QSd7.js +0 -1
- package/dist/client/assets/use-blog-view-BaOyXftb.js +0 -1
- package/dist/client/assets/use-chat-layout-state-E7EzUiyy.js +0 -1
- package/dist/client/assets/use-cms-publish-actions-DIJYfUW2.js +0 -10
- package/dist/client/assets/use-connect-companion-BifNGcYb.js +0 -1
- package/dist/client/assets/use-connection-D4i8s0Wu.js +0 -1
- package/dist/client/assets/use-content-sync-BdzCHhRv.js +0 -1
- package/dist/client/assets/use-copy-RIbAL9Rw.js +0 -1
- package/dist/client/assets/use-current-view-B0Cl6clm.js +0 -1
- package/dist/client/assets/use-date-fns-locale-DpZ3Jc_B.js +0 -1
- package/dist/client/assets/use-debounced-autosave-CHdez1dB.js +0 -1
- package/dist/client/assets/use-debounced-value-nSwOlaIe.js +0 -1
- package/dist/client/assets/use-deco-credits-Bm99024K.js +0 -1
- package/dist/client/assets/use-decopilot-events-Bg59XjNf.js +0 -1
- package/dist/client/assets/use-delete-block-4oc2-AuL.js +0 -1
- package/dist/client/assets/use-delete-connection-BAsDMsYc.js +0 -1
- package/dist/client/assets/use-deployment-admin-iFKDbcn9.js +0 -1
- package/dist/client/assets/use-entitlements-Dg0v6CEa.js +0 -1
- package/dist/client/assets/use-fast-preview-draft-url-ZWzG33Tg.js +0 -1
- package/dist/client/assets/use-file-configs-Dcri8iCC.js +0 -1
- package/dist/client/assets/use-id-selection-BQZY7MnJ.js +0 -1
- package/dist/client/assets/use-in-settings-B95mRP6r.js +0 -1
- package/dist/client/assets/use-inbox-feed-SVIpNXni.js +0 -1
- package/dist/client/assets/use-infinite-scroll-D1YdRbdl.js +0 -1
- package/dist/client/assets/use-join-requests-D8WUVQgA.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-DVgOXsqa.js +0 -1
- package/dist/client/assets/use-mcp-auth-status-C7krunxb.js +0 -1
- package/dist/client/assets/use-mcp-client-Dk8pQYmf.js +0 -10
- package/dist/client/assets/use-mcp-prompts-BaE8m6Iv.js +0 -1
- package/dist/client/assets/use-mcp-tools-CzCO96Pl.js +0 -1
- package/dist/client/assets/use-mobile-Cj6SlZ6u.js +0 -1
- package/dist/client/assets/use-move-blocks-BNEoCJRd.js +0 -1
- package/dist/client/assets/use-navigate-to-agent-DgtgLLL4.js +0 -1
- package/dist/client/assets/use-never-published-C102-LWP.js +0 -1
- package/dist/client/assets/use-org-fs-C-4Z5B9C.js +0 -1
- package/dist/client/assets/use-org-notice-f36bS6Ot.js +0 -1
- package/dist/client/assets/use-org-repo-syncs-Cn4bp5ap.js +0 -1
- package/dist/client/assets/use-org-sso-cr7hA-rl.js +0 -1
- package/dist/client/assets/use-organization-settings-BXGW6c9v.js +0 -1
- package/dist/client/assets/use-panel-navigate-D62Ggz47.js +0 -1
- package/dist/client/assets/use-project-native-view-presence-CIJqwOUj.js +0 -1
- package/dist/client/assets/use-project-scope-DFi1C3LM.js +0 -1
- package/dist/client/assets/use-recent-apps-CzmD8kSJ.js +0 -1
- package/dist/client/assets/use-reports-diagnostic-y4EDmvF4.js +0 -1
- package/dist/client/assets/use-sandbox-events-DobAIEKr.js +0 -2
- package/dist/client/assets/use-secrets-CxTXvDD0.js +0 -1
- package/dist/client/assets/use-section-preview-base-DFQ44_7E.js +0 -1
- package/dist/client/assets/use-sidebar-collapsed-DbBbuLG2.js +0 -1
- package/dist/client/assets/use-tags-CDe5_6ZB.js +0 -1
- package/dist/client/assets/use-task-board-analytics-bZDsXhjo.js +0 -1
- package/dist/client/assets/use-task-board-item-prs-CLVKoFka.js +0 -1
- package/dist/client/assets/use-task-board-items-D1Ir-bN0.js +0 -1
- package/dist/client/assets/use-task-board-prompts-C5Lcy4CF.js +0 -1
- package/dist/client/assets/use-task-metadata-Dqcg1NET.js +0 -1
- package/dist/client/assets/use-thread-outputs-GjoQQEug.js +0 -1
- package/dist/client/assets/use-view-draft-kind-C0DFt4DJ.js +0 -1
- package/dist/client/assets/use-voice-input-C9JH_-94.js +0 -1
- package/dist/client/assets/useInfiniteQuery-82aa6tQA.js +0 -1
- package/dist/client/assets/useQueries-CSuXBP-9.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ClkT1XiB.js +0 -1
- package/dist/client/assets/users-BtmrtL8d.js +0 -1
- package/dist/client/assets/utils-7__QeIts.js +0 -4
- package/dist/client/assets/variant-calendar-D6atTWOf.js +0 -1
- package/dist/client/assets/variant-matcher-override-DFlSzaiQ.js +0 -1
- package/dist/client/assets/view-header-uwhsrcRm.js +0 -1
- package/dist/client/assets/virtual-mcp-BeIZpWrC.js +0 -1
- package/dist/client/assets/watch-sse-pool-CYSJPlU7.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ig as ti,bu as ni,c as wn,b as Rn,r as b,m as le,j as r,cd as si,br as Cs,ih as Mo,B as It,Y as on,ax as ri,_ as oi,bt as ai,Z as ii,q as li,ii as bs,hN as ci,ij as ui,ik as di,h as fi,bv as wt,il as Qr,im as xs,io as mi,ip as pt,iq as Xr,ir as pi,fW as hi,is as gi,it as Yr,iu as vi,t as H,fA as Zr,iv as yi,iw as Bt,ix as Si,iy as bi,iz as xi,fo as eo,iA as _s,iB as _i,iC as ki,iD as wi,fl as Ri,fX as ji,iE as Ei,iF as Vi,fz as Ti,K as Ai,iG as to,eT as Ni,fP as Hn,fU as no,iH as so,iI as Ci,iJ as Pi,iK as Bi,iL as Ki,iM as Di,iN as Mi,iO as ro,iP as Fi,iQ as Ii,fn as oo,iR as Li,iS as Oi,fR as ao,iT as zi,fj as $i}from"./index-Rw5A0DmF.js";import{u as Wi}from"./chat-context-ezxG3DPM.js";import{a as Zn,M as io}from"./save-status-CwWi0Kgv.js";import{p as kn,f as Hi,n as qi}from"./parse-sections-JjEwrOG4.js";import{a as Gi}from"./repository-binding-CTMyi6Ax.js";import{t as Ui}from"./ChevronDown-BnuV7SgS.js";import{d as Fo,b as Ji}from"./UserCheck01-KaL9LT_k.js";import{n as Qi}from"./ChevronUp-CyR0aMhj.js";import{b as Yn,e as Xi,Q as lo,L as co}from"./agent-icon-1ZLmJzI_.js";import{S as an}from"./scroll-area-C0B5ezJM.js";import{c as Rt,T as jt,a as Et}from"./tooltip-CVNCZQdL.js";import{g as Yi,h as Zi,i as el,E as tl,j as nl,V as sl,k as rl,l as ol,G as al,s as Jn,v as Qn,u as il,a as qn,p as Io,m as ll,n as cl,c as uo,o as ul,q as dl,A as Gn,P as fo,w as mo,x as po,y as ks,z as fl,B as ml,D as ho,F as pl,J as go,K as vo,L as yo,M as hl,Q as So,T as ln,U as gl,W as vl}from"./held-block-view-CSR5w8wu.js";import{j as yl,u as Sl,i as bl,v as xl,aB as _l,U as kl,k as bo,aU as xo,a9 as Kt,aa as Dt,aq as wl,aV as Rl,aW as jl,aO as _o,at as El,aA as Vl}from"./site-editor-toast-DRzJQnJH.js";import{u as Tl,ao as ko,c as wo,k as Al,A as Nl,ad as Cl,ae as Pl,aj as Bl}from"./blocks-tab-states-DCMxeCzD.js";import{u as Kl}from"./use-delete-block-4oc2-AuL.js";import{b as Dl,u as Ml,k as Un,e as xn}from"./use-never-published-C102-LWP.js";import{b as Es,f as Lo}from"./UserSquare-Px337mEZ.js";import{b as Fl}from"./MessageCircle01-C1mrhgbK.js";import{i as Ro}from"./Tool01-CYGCQ2nX.js";import{s as jo}from"./Eye-CYP8vvbu.js";import{s as Il}from"./Plus-D2MIpYCd.js";import{s as Ll}from"./Trash01-Nwu0tE4W.js";import{i as Vs}from"./Zap-B-MuVCBU.js";import{u as Ol,a as Eo,n as zl,P as $l,o as Wl,C as Hl,D as ql,c as Gl}from"./task-key-7zcuJrfh.js";import{u as Ul,s as Jl,a as Xn,S as Ql,v as Xl}from"./sortable.esm-B2cMHEa0.js";import{s as Yl,g as Zl,u as ec,A as tc}from"./use-section-preview-base-DFQ44_7E.js";import{m as nc,P as sc}from"./mustache-Bs10QqJV.js";import{aR as Vo,aS as rc,X as oc,aT as ac,aU as ic,k as lc}from"./category-tree-BUh2YGSR.js";import{u as cc,a as uc,P as To,w as dc,b as fc}from"./seo-editor-DepW_b48.js";import{v as mc,k as ws,x as Ao,j as pc,y as hc}from"./named-rule-step-BJSR7K07.js";import{u as gc}from"./use-apply-named-rule-D6OgHD00.js";import{o as Jt,f as Ts,y as As,q as Ft,h as cn,u as vc,n as Ut,r as Rs,m as Mt,k as _n,b as yc,s as No,z as Sc,A as bc,B as xc}from"./section-array-field-CueECt24.js";import{b as Co,a as _c}from"./variant-matcher-override-DFlSzaiQ.js";import"./use-panel-navigate-D62Ggz47.js";import"./thread-route-CNeJEPg7.js";import"./use-project-scope-DFi1C3LM.js";import"./use-view-draft-kind-C0DFt4DJ.js";import"./use-blog-view-BaOyXftb.js";import"./use-organization-settings-BXGW6c9v.js";import"./schema--O3exoni.js";import"./task-board-CmVVD6_N.js";import"./thread-intent-BpDB6WnP.js";import"./use-mcp-client-Dk8pQYmf.js";import"./auth-VnUV54t6.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CYSJPlU7.js";import"./session-runtime-ByQgBiqb.js";import"./use-entitlements-Dg0v6CEa.js";import"./use-ai-providers-BleY3P9l.js";import"./use-current-view-B0Cl6clm.js";import"./use-in-settings-B95mRP6r.js";import"./use-decopilot-events-Bg59XjNf.js";import"./use-org-fs-C-4Z5B9C.js";import"./useInfiniteQuery-82aa6tQA.js";import"./infiniteQueryObserver-CXw_04U8.js";import"./Image01-VVLD8oS_.js";import"./Upload01-DC_deGyT.js";import"./label-C9fDqO12.js";import"./SwitchHorizontal01-Djn4EHnk.js";import"./popover-NYFpYsO9.js";import"./switch-D0iHCTNk.js";import"./toggle-group-TGayzPCd.js";import"./active-indicator-CCMhAsc_.js";import"./match-site-slug-config-B47_xZCi.js";import"./use-file-configs-Dcri8iCC.js";import"./asset-utils-BO87hZzw.js";import"./AlertCircle-Cc9abj54.js";import"./hosted-reconcile-EQNKqX5P.js";import"./SearchMd-BIqbW6Bo.js";import"./textarea-DGKHR3yh.js";import"./use-copy-RIbAL9Rw.js";import"./ChevronSelectorVertical-Dx2JQhRM.js";import"./command-jMuBLlSV.js";import"./index-r4ahglPr.js";import"./Play-BMP_aq_7.js";import"./monaco-editor-DuL1S6bt.js";import"./editor-Fb628_ML.js";import"./ArrowUp-C0pWnVbm.js";import"./ArrowLeft-DmCE9iE9.js";import"./ArrowRight-XZDtcu4Y.js";import"./BookOpen01-BwolTTJT.js";import"./Globe04-BqzzeANW.js";import"./CheckCircle-DjioCEZU.js";import"./LinkBroken01-nj36YoV3.js";import"./CreditCard01-BCihmozf.js";import"./File02-LpabM5_D.js";import"./Fingerprint04-DtDtS04t.js";import"./Key01-eiAM4eIZ.js";import"./LayoutLeft-InV68xzX.js";import"./Minus-DzYeA1ab.js";import"./Monitor01-CH4nMVaL.js";import"./Sun-Cjf4iHJM.js";import"./ShoppingBag01-sGOBRlD0.js";import"./Users01-DsrEmiso.js";import"./XClose-Ag4juj36.js";import"./index-BdQq_4o_.js";import"./index-DQt4K5uR.js";import"./utils-7__QeIts.js";import"./calendar-DiqE7uly.js";import"./usage-stats-te8ZtpDl.js";import"./utils-CVEq3hMx.js";import"./markdown-CZDwcrN8.js";import"./use-mobile-Cj6SlZ6u.js";import"./gateway-client-B6nX0dtg.js";import"./form-ShPmJICU.js";import"./select-Da9fUulT.js";import"./editor-classes-BenVB06x.js";import"./combobox-yMK-_aSj.js";import"./content-changes-BKZ60U7y.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-DobAIEKr.js";import"./use-blocks-v8-project-5vE-QSd7.js";import"./use-voice-input-C9JH_-94.js";import"./drawer-BdbgwYin.js";import"./index-D72gb6tH.js";import"./checkbox-D7R3fVuO.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./sandbox-git-api-CbmWqHVe.js";import"./empty-state-Ciu6g-QI.js";import"./search-input-C0qu_2Pg.js";import"./tabs-BTeiXpBf.js";import"./use-debounced-value-nSwOlaIe.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DVsWTCk_.js";import"./collapsible-CLKlzXKH.js";import"./use-task-board-items-D1Ir-bN0.js";import"./config-D0uxWrJF.js";import"./task-route-UX30mhBK.js";import"./project-index-C3iXC6H2.js";import"./shell-layout-BrYU9IjE.js";import"./use-deployment-admin-iFKDbcn9.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-f36bS6Ot.js";import"./integration-icon-LSbi_JSK.js";import"./project-icon-C3OB0ksw.js";import"./use-navigate-to-agent-DgtgLLL4.js";import"./new-project-dialog-D93CLZuz.js";import"./repository-picker-CyPG6dTX.js";import"./github-icon-DJBgk66Z.js";import"./collection-search-CBgaiTMh.js";import"./new-project-store-DUIxP9OJ.js";import"./legacy-admin-welcome-dialog-JaU0aPzp.js";import"./required-auth-layout-CBTYPSrv.js";import"./use-org-sso-cr7hA-rl.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DFfT6-gC.js";import"./types-B0LQOhRA.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-BwgCTRSg.js";import"./use-connection-D4i8s0Wu.js";import"./use-mcp-prompts-BaE8m6Iv.js";import"./use-thread-outputs-GjoQQEug.js";import"./file-type-icon-pvD4Ni8s.js";import"./slider-BU-gVxE5.js";import"./index-fi1kQRv5.js";import"./tooltipContext-DrwsAzpt.js";import"./CategoricalChart-COakPEp6.js";import"./index-CxJ90OLT.js";import"./use-move-blocks-BNEoCJRd.js";const kc={escape:Yi};function wc(g,e){for(const p of Yl(g,e)){const S=typeof p.title=="string"?p.title:void 0;if(S?.includes("{{"))return S}}function Rc(g,e){if(!e)return;const p=ti(g,ni(e));if(p)try{const S=wc(p.resolveType,e);return S&&nc.render(S,p.data,{},kc).trim()||void 0}catch{return}}function jc(g){const e=wn.c(13),{icon:p,label:S,className:x}=g;let V;e[0]!==x?(V=le("size-3.5",x),e[0]=x,e[1]=V):V=e[1];let C;e[2]!==p||e[3]!==V?(C=r.jsx(p,{className:V}),e[2]=p,e[3]=V,e[4]=C):C=e[4];let _;e[5]!==S||e[6]!==C?(_=r.jsx(jt,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":S,className:"shrink-0 cursor-help",children:C})}),e[5]=S,e[6]=C,e[7]=_):_=e[7];let P;e[8]!==S?(P=r.jsx(Et,{className:"max-w-56",children:S}),e[8]=S,e[9]=P):P=e[9];let k;return e[10]!==_||e[11]!==P?(k=r.jsxs(Rt,{children:[_,P]}),e[10]=_,e[11]=P,e[12]=k):k=e[12],k}const Ec="text-global-section-fg focus:bg-global-section/12 focus:text-global-section-fg dark:text-global-section-fg-dark dark:focus:bg-global-section/15 dark:focus:text-global-section-fg-dark [&_svg]:!text-global-section";function Po(g){return Array.from({length:g},(e,p)=>({id:crypto.randomUUID(),index:p}))}function Oo(g){return g.map((e,p)=>({...e,index:p}))}function Vc(g,e){if(e===g.length)return g;if(e<g.length)return Oo(g.slice(0,e));const p=Array.from({length:e-g.length},(S,x)=>({id:crypto.randomUUID(),index:g.length+x}));return[...g,...p]}function zo(g){const e=wn.c(44),{section:p,raw:S,meta:x,decofile:V}=g,C=Rn(),_=Zn(),P=p.isSavedBlock===!0,k=p.isMultivariate===!0;let Y;e[0]!==x||e[1]!==S?(Y=S&&x?Zl(S,x):void 0,e[0]=x,e[1]=S,e[2]=Y):Y=e[2];const ge=Y;let Ue;e[3]!==x||e[4]!==k||e[5]!==S||e[6]!==P?(Ue=S&&x&&!P&&!k?Rc(S,x):void 0,e[3]=x,e[4]=k,e[5]=S,e[6]=P,e[7]=Ue):Ue=e[7];const Le=Ue;let Ce;e[8]!==V||e[9]!==x||e[10]!==S||e[11]!==p?(Ce=rl(S,p,V,x),e[8]=V,e[9]=x,e[10]=S,e[11]=p,e[12]=Ce):Ce=e[12];const Je=Ce;let w;e[13]!==k||e[14]!==S?.__resolveType?(w=!k&&Cs(S?.__resolveType??""),e[13]=k,e[14]=S?.__resolveType,e[15]=w):w=e[15];const c=w,xe=P?Yn:k?Fo:Lo;let G;e[16]!==k||e[17]!==P?(G=P?{color:ai}:k?{color:"oklch(0.65 0.15 160)"}:void 0,e[16]=k,e[17]=P,e[18]=G):G=e[18];const _e=G;let F;e[19]!==xe||e[20]!==_?(F=_?r.jsxs("span",{className:"relative size-4 shrink-0",children:[r.jsx(xe,{className:"absolute inset-0 size-4 text-muted-foreground transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"}),r.jsx(al,{"aria-hidden":!0,className:"absolute inset-0 size-4 opacity-0 transition-opacity group-hover:opacity-100 group-has-[:focus-visible]:opacity-100"})]}):r.jsx(Fl,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[19]=xe,e[20]=_,e[21]=F):F=e[21];let ke;e[22]!==ge?(ke=ge&&r.jsx("img",{src:ge,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded-[var(--studio-control-radius,var(--radius))] object-cover"}),e[22]=ge,e[23]=ke):ke=e[23];let d;e[24]!==_||e[25]!==_e?(d=!_&&r.jsx(Es,{className:"h-4 w-4 shrink-0",style:_e}),e[24]=_,e[25]=_e,e[26]=d):d=e[26];const Oe=_?"shrink":"flex-1",u=p.isHidden&&"line-through opacity-50";let Ee;e[27]!==u||e[28]!==Oe?(Ee=le("min-w-0 truncate text-sm font-medium",Oe,u),e[27]=u,e[28]=Oe,e[29]=Ee):Ee=e[29];const Z=Le??p.label;let ze;e[30]!==Ee||e[31]!==Z?(ze=r.jsx("span",{className:Ee,children:Z}),e[30]=Ee,e[31]=Z,e[32]=ze):ze=e[32];let nt;e[33]!==c||e[34]!==_||e[35]!==Je||e[36]!==C?(nt=_?r.jsxs(r.Fragment,{children:[c&&r.jsx(jc,{icon:Vs,label:C("sectionsEditor.sectionList.asyncBadge"),className:"text-muted-foreground"}),Je&&r.jsx(io,{}),r.jsx("span",{className:"min-w-0 flex-1"})]}):Je&&r.jsx(io,{className:"absolute -right-0.5 -top-0.5"}),e[33]=c,e[34]=_,e[35]=Je,e[36]=C,e[37]=nt):nt=e[37];let Pe;return e[38]!==ze||e[39]!==nt||e[40]!==F||e[41]!==ke||e[42]!==d?(Pe=r.jsxs(r.Fragment,{children:[F,ke,d,ze,nt]}),e[38]=ze,e[39]=nt,e[40]=F,e[41]=ke,e[42]=d,e[43]=Pe):Pe=e[43],Pe}const Tc="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",Ac="text-[oklch(0.45_0.15_160)] hover:bg-[oklch(0.65_0.15_160/0.12)] dark:text-[oklch(0.78_0.15_160)] dark:hover:bg-[oklch(0.65_0.15_160/0.15)]";function $o(g,e,p){if(p)return ol({selected:e});const S=g.isSavedBlock===!0,x=g.isMultivariate===!0;return le("group relative flex select-none items-center gap-2 rounded-[var(--studio-control-radius,var(--radius-md))] px-2 py-2.5",e?"bg-accent text-accent-foreground":S?Tc:x?Ac:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function js(g,e){return le("h-7 shrink-0 overflow-hidden",e?"w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]":g?"w-7 ml-0 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:opacity-100 group-has-[:focus-visible]:opacity-100":"w-0 -ml-2 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:ml-0 group-hover:w-7 group-hover:opacity-100 group-hover:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms] group-has-[:focus-visible]:ml-0 group-has-[:focus-visible]:w-7 group-has-[:focus-visible]:opacity-100 group-has-[:focus-visible]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]")}function Nc(g){const e=wn.c(90),{section:p,raw:S,meta:x,decofile:V,sortableId:C,selected:_,onSelect:P,onDelete:k,onDuplicate:Y,onMakeReusable:ge,onToggleHidden:Ue,onToggleLazy:Le,onAddVariant:Ce,onDetach:Je}=g,w=Rn(),c=Zn(),xe=S?Cs(S.__resolveType??""):!1,G=p.isHidden===!0,_e=xe||G;let F;e[0]!==p?(F=Mo(p),e[0]=p,e[1]=F):F=e[1];const ke=F,d=!!Le&&!p.isMultivariate;let Oe;e[2]!==C?(Oe={id:C,animateLayoutChanges:Bc},e[2]=C,e[3]=Oe):Oe=e[3];const{attributes:u,listeners:Ee,setNodeRef:Z,transform:ze,isDragging:nt}=Ul(Oe);let Pe;e[4]!==ze?(Pe=Hl.Transform.toString(ze?{...ze,x:0}:null),e[4]=ze,e[5]=Pe):Pe=e[5];const st=nt?0:void 0;let de;e[6]!==Pe||e[7]!==st?(de={transform:Pe,opacity:st},e[6]=Pe,e[7]=st,e[8]=de):de=e[8];const v=de;let we;e[9]!==p?(we=el(p),e[9]=p,e[10]=we):we=e[10];const rt=we,ot="button",m=0;let I;e[11]!==P?(I=M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),P())},e[11]=P,e[12]=I):I=e[12];const Ze=nt?"cursor-grabbing":"cursor-pointer";let A;e[13]!==c||e[14]!==p||e[15]!==_||e[16]!==Ze?(A=le("touch-none transition-colors",Ze,$o(p,_,c)),e[13]=c,e[14]=p,e[15]=_,e[16]=Ze,e[17]=A):A=e[17];let Qe;e[18]!==V||e[19]!==x||e[20]!==S||e[21]!==p?(Qe=r.jsx(zo,{section:p,raw:S,meta:x,decofile:V}),e[18]=V,e[19]=x,e[20]=S,e[21]=p,e[22]=Qe):Qe=e[22];const W=!c&&d&&r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx(It,{type:"button",variant:"ghost",size:"icon","aria-label":w(xe?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:le(js(_e,xe)),onClick:M=>{M.stopPropagation(),Le?.()},onPointerDown:Pc,children:r.jsx(Vs,{className:le("h-3.5 w-3.5",xe&&"text-warning")})})}),r.jsx(Et,{side:"bottom",children:w(xe?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),at=c?r.jsx(tl,{label:w(G?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),active:G,onToggle:Ue,children:G?r.jsx(Ro,{className:"h-3.5 w-3.5"}):r.jsx(jo,{className:"h-3.5 w-3.5"})}):r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx(It,{type:"button",variant:"ghost",size:"icon","aria-label":w(G?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),className:le(js(_e,G)),onClick:M=>{M.stopPropagation(),Ue()},onPointerDown:Cc,children:G?r.jsx(Ro,{className:"h-3.5 w-3.5"}):r.jsx(jo,{className:"h-3.5 w-3.5"})})}),r.jsx(Et,{side:"bottom",children:w(G?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection")})]}),fe=oi,Xe=nl;let ve;e[23]!==w?(ve=w("sectionsEditor.sectionList.sectionActionsMenu"),e[23]=w,e[24]=ve):ve=e[24];const it=le(js(_e,!1),"data-[state=open]:ml-0 data-[state=open]:w-7 data-[state=open]:opacity-100 data-[state=open]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]");let $e;e[25]!==Xe||e[26]!==ve||e[27]!==it?($e=r.jsx(Xe,{label:ve,classicClassName:it}),e[25]=Xe,e[26]=ve,e[27]=it,e[28]=$e):$e=e[28];let Be;e[29]!==c||e[30]!==d||e[31]!==xe||e[32]!==Le||e[33]!==w?(Be=c&&d&&r.jsxs(r.Fragment,{children:[r.jsxs(on,{onClick:M=>{M.stopPropagation(),Le?.()},children:[r.jsx(Vs,{className:"h-4 w-4"}),w(xe?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")]}),r.jsx(ri,{})]}),e[29]=c,e[30]=d,e[31]=xe,e[32]=Le,e[33]=w,e[34]=Be):Be=e[34];let Ke;e[35]!==Y?(Ke=M=>{M.stopPropagation(),Y()},e[35]=Y,e[36]=Ke):Ke=e[36];let se;e[37]===Symbol.for("react.memo_cache_sentinel")?(se=r.jsx(Xi,{className:"h-4 w-4"}),e[37]=se):se=e[37];let X;e[38]!==w?(X=w("sectionsEditor.sectionList.duplicateMenuItem"),e[38]=w,e[39]=X):X=e[39];let ee;e[40]!==Ke||e[41]!==X?(ee=r.jsxs(on,{onClick:Ke,children:[se,X]}),e[40]=Ke,e[41]=X,e[42]=ee):ee=e[42];let D;e[43]!==c||e[44]!==ke||e[45]!==Ce||e[46]!==w?(D=ke&&r.jsxs(on,{className:le(!c&&sl),onClick:M=>{M.stopPropagation(),Ce()},children:[r.jsx(Fo,{className:"h-4 w-4"}),w("sectionsEditor.sectionList.addVariantMenuItem")]}),e[43]=c,e[44]=ke,e[45]=Ce,e[46]=w,e[47]=D):D=e[47];let T;e[48]!==c||e[49]!==rt||e[50]!==ge||e[51]!==w?(T=rt&&r.jsxs(on,{className:le(!c&&Ec),onClick:M=>{M.stopPropagation(),ge()},children:[c?r.jsx(Yn,{className:"h-4 w-4"}):r.jsx(Es,{className:"h-4 w-4"}),w("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[48]=c,e[49]=rt,e[50]=ge,e[51]=w,e[52]=T):T=e[52];let me;e[53]!==c||e[54]!==Je||e[55]!==p.isMultivariate||e[56]!==p.isSavedBlock||e[57]!==w?(me=p.isSavedBlock===!0&&!p.isMultivariate&&r.jsxs(on,{onClick:M=>{M.stopPropagation(),Je()},children:[c?r.jsx(Lo,{className:"h-4 w-4"}):r.jsx(Es,{className:"h-4 w-4"}),w("sectionsEditor.sectionList.detachMenuItem")]}),e[53]=c,e[54]=Je,e[55]=p.isMultivariate,e[56]=p.isSavedBlock,e[57]=w,e[58]=me):me=e[58];let We;e[59]!==k?(We=M=>{M.stopPropagation(),k()},e[59]=k,e[60]=We):We=e[60];let et;e[61]===Symbol.for("react.memo_cache_sentinel")?(et=r.jsx(Ll,{className:"h-4 w-4"}),e[61]=et):et=e[61];let De;e[62]!==w?(De=w("sectionsEditor.sectionList.deleteMenuItem"),e[62]=w,e[63]=De):De=e[63];let $;e[64]!==We||e[65]!==De?($=r.jsxs(on,{variant:"destructive",onClick:We,children:[et,De]}),e[64]=We,e[65]=De,e[66]=$):$=e[66];let ie;e[67]!==Be||e[68]!==ee||e[69]!==D||e[70]!==T||e[71]!==me||e[72]!==$?(ie=r.jsxs(ii,{align:"end",className:"w-44",children:[Be,ee,D,T,me,$]}),e[67]=Be,e[68]=ee,e[69]=D,e[70]=T,e[71]=me,e[72]=$,e[73]=ie):ie=e[73];let Ve;e[74]!==fe||e[75]!==$e||e[76]!==ie?(Ve=r.jsxs(fe,{children:[$e,ie]}),e[74]=fe,e[75]=$e,e[76]=ie,e[77]=Ve):Ve=e[77];let Te;return e[78]!==u||e[79]!==Ee||e[80]!==P||e[81]!==Z||e[82]!==v||e[83]!==A||e[84]!==Qe||e[85]!==W||e[86]!==at||e[87]!==Ve||e[88]!==I?(Te=r.jsxs("div",{ref:Z,style:v,...u,...Ee,role:ot,tabIndex:m,onClick:P,onKeyDown:I,className:A,children:[Qe,W,at,Ve]}),e[78]=u,e[79]=Ee,e[80]=P,e[81]=Z,e[82]=v,e[83]=A,e[84]=Qe,e[85]=W,e[86]=at,e[87]=Ve,e[88]=I,e[89]=Te):Te=e[89],Te}function Cc(g){return g.stopPropagation()}function Pc(g){return g.stopPropagation()}function Bc(){return!1}function Ns(g){const e=wn.c(11),{canAddSection:p,onAddSection:S,className:x,size:V}=g,C=Rn();let _;e[0]!==x?(_=le("w-full",x),e[0]=x,e[1]=_):_=e[1];const P=!p;let k;e[2]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(Il,{size:14}),e[2]=k):k=e[2];let Y;e[3]!==C?(Y=C("sectionsEditor.sectionList.addSectionButton"),e[3]=C,e[4]=Y):Y=e[4];let ge;return e[5]!==S||e[6]!==V||e[7]!==_||e[8]!==P||e[9]!==Y?(ge=r.jsxs(It,{type:"button",variant:"outline",size:V,className:_,disabled:P,onClick:S,children:[k,Y]}),e[5]=S,e[6]=V,e[7]=_,e[8]=P,e[9]=Y,e[10]=ge):ge=e[10],ge}function Kc(g){const e=wn.c(101),{listKey:p,rawSections:S,sections:x,meta:V,decofile:C,selectedIndex:_,onSelect:P,onReorder:k,onDelete:Y,onDuplicate:ge,onMakeReusable:Ue,onToggleHidden:Le,onToggleLazy:Ce,onAddVariant:Je,onDetach:w,onAddSection:c,canAddSection:xe}=g,G=xe===void 0?!0:xe,_e=Rn(),F=Zn();let ke;e[0]!==x.length?(ke=()=>Po(x.length),e[0]=x.length,e[1]=ke):ke=e[1];const[d,Oe]=b.useState(ke),[u,Ee]=b.useState(null),[Z,ze]=b.useState(p),[nt,Pe]=b.useState(x.length),st=b.useRef(!1);Z!==p?(ze(p),Pe(x.length),Oe(Po(x.length))):nt!==x.length&&(Pe(x.length),Oe(tt=>Vc(tt,x.length)));let de;e[2]===Symbol.for("react.memo_cache_sentinel")?(de={activationConstraint:{distance:8}},e[2]=de):de=e[2];let v;e[3]===Symbol.for("react.memo_cache_sentinel")?(v={coordinateGetter:Jl},e[3]=v):v=e[3];const we=Ol(Eo($l,de),Eo(zl,v));let rt;e[4]!==d?(rt=d.map(Dc),e[4]=d,e[5]=rt):rt=e[5];const ot=rt;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=tt=>{Ee(String(tt.active.id))},e[6]=m):m=e[6];const I=m;let Ze;e[7]!==ot||e[8]!==k?(Ze=tt=>{Ee(null);const{active:O,over:Ae}=tt;if(!Ae||O.id===Ae.id)return;const He=ot.indexOf(String(O.id)),ht=ot.indexOf(String(Ae.id));He===-1||ht===-1||(Oe(bt=>Oo(Xn([...bt],He,ht))),st.current=!0,requestAnimationFrame(()=>{st.current=!1}),k?.(He,ht))},e[7]=ot,e[8]=k,e[9]=Ze):Ze=e[9];const A=Ze;let Qe;e[10]===Symbol.for("react.memo_cache_sentinel")?(Qe=()=>{Ee(null)},e[10]=Qe):Qe=e[10];const W=Qe;let at,fe,Xe,ve,it,$e,Be,Ke,se,X,ee,D,T,me,We;if(e[11]!==u||e[12]!==G||e[13]!==F||e[14]!==C||e[15]!==d||e[16]!==ot||e[17]!==A||e[18]!==V||e[19]!==c||e[20]!==Je||e[21]!==Y||e[22]!==w||e[23]!==ge||e[24]!==Ue||e[25]!==P||e[26]!==Le||e[27]!==Ce||e[28]!==S||e[29]!==x||e[30]!==_||e[31]!==we||e[32]!==_e){me=Symbol.for("react.early_return_sentinel");e:{const tt=O=>{st.current||P(O)};if(e[48]!==u||e[49]!==G||e[50]!==F||e[51]!==d||e[52]!==c||e[53]!==S||e[54]!==x||e[55]!==_e){const O=u?d.find(Ae=>Ae.id===u):null;if(ve=O!=null?x[O.index]:null,Xe=O!=null?S[O.index]:void 0,d.length===0){let Ae;e[59]!==_e?(Ae=_e("sectionsEditor.sectionList.noSections"),e[59]=_e,e[60]=Ae):Ae=e[60];let He;e[61]!==Ae?(He=r.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:Ae}),e[61]=Ae,e[62]=He):He=e[62];const ht=He;let bt;e[63]!==G||e[64]!==F||e[65]!==ht||e[66]!==c?(bt=F?ht:r.jsxs("div",{className:"space-y-2",children:[ht,r.jsx(Ns,{canAddSection:G,onAddSection:c,size:"sm"})]}),e[63]=G,e[64]=F,e[65]=ht,e[66]=c,e[67]=bt):bt=e[67],me=bt;break e}T=le(O&&"cursor-grabbing"),e[48]=u,e[49]=G,e[50]=F,e[51]=d,e[52]=c,e[53]=S,e[54]=x,e[55]=_e,e[56]=Xe,e[57]=ve,e[58]=T}else Xe=e[56],ve=e[57],T=e[58];fe=ql,Ke=we,se=Gl,X=I,ee=A,D=W,at=Ql,$e=ot,Be=Xl,We="space-y-1",it=d.map(O=>{const Ae=x[O.index];return Ae?r.jsx(Nc,{sortableId:O.id,section:Ae,raw:S[O.index],meta:V,decofile:C,selected:_===O.index,onSelect:()=>tt(O.index),onDelete:()=>Y(O.index),onDuplicate:()=>ge(O.index),onMakeReusable:()=>Ue(O.index),onToggleHidden:()=>Le(O.index),onToggleLazy:Ce?()=>Ce(O.index):void 0,onAddVariant:()=>Je(O.index),onDetach:()=>w(O.index)},O.id):null})}e[11]=u,e[12]=G,e[13]=F,e[14]=C,e[15]=d,e[16]=ot,e[17]=A,e[18]=V,e[19]=c,e[20]=Je,e[21]=Y,e[22]=w,e[23]=ge,e[24]=Ue,e[25]=P,e[26]=Le,e[27]=Ce,e[28]=S,e[29]=x,e[30]=_,e[31]=we,e[32]=_e,e[33]=at,e[34]=fe,e[35]=Xe,e[36]=ve,e[37]=it,e[38]=$e,e[39]=Be,e[40]=Ke,e[41]=se,e[42]=X,e[43]=ee,e[44]=D,e[45]=T,e[46]=me,e[47]=We}else at=e[33],fe=e[34],Xe=e[35],ve=e[36],it=e[37],$e=e[38],Be=e[39],Ke=e[40],se=e[41],X=e[42],ee=e[43],D=e[44],T=e[45],me=e[46],We=e[47];if(me!==Symbol.for("react.early_return_sentinel"))return me;let et;e[68]!==it||e[69]!==We?(et=r.jsx("div",{className:We,children:it}),e[68]=it,e[69]=We,e[70]=et):et=e[70];let De;e[71]!==at||e[72]!==$e||e[73]!==Be||e[74]!==et?(De=r.jsx(at,{items:$e,strategy:Be,children:et}),e[71]=at,e[72]=$e,e[73]=Be,e[74]=et,e[75]=De):De=e[75];let $;e[76]!==Xe||e[77]!==ve||e[78]!==F||e[79]!==C||e[80]!==V?($=ve?r.jsx("div",{className:le("cursor-grabbing shadow-lift",$o(ve,!1,F)),children:r.jsx(zo,{section:ve,raw:Xe,meta:V,decofile:C})}):null,e[76]=Xe,e[77]=ve,e[78]=F,e[79]=C,e[80]=V,e[81]=$):$=e[81];let ie;e[82]!==$?(ie=si.createPortal(r.jsx(Wl,{dropAnimation:Zi,children:$}),document.body),e[82]=$,e[83]=ie):ie=e[83];let Ve;e[84]!==fe||e[85]!==Ke||e[86]!==se||e[87]!==X||e[88]!==ee||e[89]!==D||e[90]!==De||e[91]!==ie?(Ve=r.jsxs(fe,{sensors:Ke,collisionDetection:se,onDragStart:X,onDragEnd:ee,onDragCancel:D,children:[De,ie]}),e[84]=fe,e[85]=Ke,e[86]=se,e[87]=X,e[88]=ee,e[89]=D,e[90]=De,e[91]=ie,e[92]=Ve):Ve=e[92];let Te;e[93]!==G||e[94]!==F||e[95]!==c?(Te=!F&&r.jsx(Ns,{canAddSection:G,onAddSection:c,size:"sm",className:"mt-2"}),e[93]=G,e[94]=F,e[95]=c,e[96]=Te):Te=e[96];let M;return e[97]!==T||e[98]!==Ve||e[99]!==Te?(M=r.jsxs("div",{className:T,children:[Ve,Te]}),e[97]=T,e[98]=Ve,e[99]=Te,e[100]=M):M=e[100],M}function Dc(g){return g.id}function Mc(g,e,p,S){if(!g||typeof g!="object")return{kind:"error",reason:"no-matcher-rule"};const x=e.trim();if(!x)return Jt(g,p,S)?{kind:"inline",blockKey:g.__resolveType??"",inlinedRule:Ts(g,p,S)}:{kind:"noop"};const V=As(g,p,S);if(!V)return{kind:"error",reason:"unreadable-rule"};if(V.blockKey)return{kind:"updateBlock",blockKey:V.blockKey,blockData:Ft(V.resolveType,V.data,x)};const C=Jn(x),_=Qn(C,p);return _?{kind:"error",reason:"invalid-block-id",message:_}:{kind:"createBlock",blockId:C,blockData:Ft(V.resolveType,V.data,x),reference:cn(C)}}const Bo="section-form-stale-save",Fc=3;function Ko(g,e,p){const S=e.global&&e.pageKey?[{label:"Default",sections:[{__resolveType:e.pageKey}]}]:Io(e.pageKey?g[e.pageKey]?.sections:void 0,g,p),x=Math.max(0,Math.min(e.pageVariantIndex,S.length-1)),V=S[x]?.sections??[];return{pageVariants:S,variantIndex:x,rawSections:V,parsedSections:kn(V,g,p)}}const Do=new WeakMap;let Ic=0;function Lc(g){let e=Do.get(g);return e===void 0&&(e=++Ic,Do.set(g,e)),e}function Wf({orgSlug:g,virtualMcpId:e,branch:p,previewReady:S=!0,previewUrl:x,currentPath:V,activePageBlockKey:C=null,activeGlobalBlockKey:_=null,externalSelection:P,onSaved:k,initialEditSeo:Y=!1,onExitSeo:ge,onSelectRoot:Ue,onViewJsonFile:Le,onFocusedBlockChange:Ce,onSectionPicked:Je,onVariantPreviewOverride:w}){const c=Rn(),xe=Wi(),G=xe?.taskId??null,_e=S?{orgSlug:g,virtualMcpId:e,branch:p,threadId:G,previewUrl:x}:null,[F,ke]=b.useState([]),{data:d,isLoading:Oe}=yl(_e,{pollWhile:F.length>0}),{data:u,isLoading:Ee}=Tl(_e),Z=Zn(),ze=xe?.virtualMcpId,Pe=Gi(ze===e?e:null)?.metadata?.siteSlug??null,st=ec({virtualMcpId:e,branch:p,sandboxUrl:x}),de=Sl(e,p),v=bl(de),we=Ti(v),rt=!v,ot=!!st||v,[m,I]=b.useState(null),[Ze,A]=b.useState(null),[Qe,W]=b.useState(null),[at,fe]=b.useState(0),[Xe,ve]=b.useState(void 0),[it,$e]=b.useState(null),Be={index:it,remember:$e},[Ke,se]=b.useState(null),[X,ee]=b.useState(null),[D,T]=b.useState([]),me=b.useRef(null),[We,et]=b.useState(D.length);We!==D.length&&(et(D.length),requestAnimationFrame(()=>{me.current&&(me.current.scrollTop=0)}));const[De,$]=b.useState(0),[ie,Ve]=b.useState(null),[Te,M]=b.useState(null),[tt,O]=b.useState(null),[Ae,He]=b.useState(!1),[ht,bt]=b.useState(!1),jn=b.useRef(null),[En,Wo]=b.useState(!0),[Qt,Vn]=b.useState(!1),[Lt,Tn]=b.useState(!1),[Re,un]=b.useState(Y),[Ps,Bs]=b.useState(Y);Y&&!Ps&&(Bs(!0),un(!0),I(null),A(null),W(null),T([])),!Y&&Ps&&Bs(!1);const[Ho,dn]=b.useState(null),[Ks,An]=b.useState(void 0),[Ds,Ot]=b.useState([]),[Ms,Xt]=b.useState(0),[Me,lt]=b.useState(0),[qo,Fe]=b.useState(null),[Yt,qe]=b.useState(null),[Fs,Is]=b.useState(null),Nn=li(),Cn=xl({orgSlug:g,virtualMcpId:e,branch:p},{tunnel:!1}),fn=Dl({orgSlug:g,virtualMcpId:e,branch:p}),[Go,Uo]=b.useState(V),[Jo,Qo]=b.useState(C),[Xo,Yo]=b.useState(_);(Go!==V||Jo!==C||Xo!==_)&&(queueMicrotask(()=>fn.flush()),Uo(V),Qo(C),Yo(_),I(null),A(null),W(null),fe(0),se(null),ee(null),lt(0),Fe(null),qe(null),T([]),$(t=>t+1),un(!1),dn(null),An(void 0),Ot([]),Xt(t=>t+1));const L=Ml({orgSlug:g,virtualMcpId:e,branch:p}),Ls=il({orgSlug:g,virtualMcpId:e,branch:p},d??{},{onSaved:k}),mn=Ls.save,Pn=Kl({orgSlug:g,virtualMcpId:e,branch:p}),Os=gc({orgSlug:g,virtualMcpId:e,branch:p}),[Zt,en]=b.useState(!1),N=b.useRef(null),_t=b.useRef(null),gt=b.useRef(null),vt=b.useRef(null),Bn=b.useRef({}),zt=b.useRef(null),pn=b.useRef(!1),hn=b.useRef(!1),ye=b.useRef(new Map),tn=b.useRef(!1),ct=b.useRef([]),es=b.useRef(new WeakSet);_l(g,e,t=>{const{activePageKey:n,rawSections:s,parsedSections:o,selectedSectionIndex:a}=re.current,i=new Set;n&&i.add(n);for(const l of[_t.current?.sectionIndex,a]){const f=l==null?void 0:s[l],j=l==null?void 0:o[l],h=f&&j?.isSavedBlock?bs(f,j):null;h&&i.add(h)}if([...i].some(l=>t.has(l))){for(const l of[N,gt,vt])l.current&&clearTimeout(l.current),l.current=null;_t.current=null,ye.current.clear(),n&&t.has(n)&&(Bn.current={})}});const re=b.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null}),[zs,$s]=b.useState(0),[Zo,ea]=b.useState(0),Ws=ci(de,{orgSlug:g,virtualMcpId:e,branch:p}),Hs=ui(Ws,F[0]?.blockKey??null,di(d,F[0]?.blockKey??null)),[ta,na]=b.useState(null),ts=kl(g,e).epoch,[sa,ra]=b.useState(ts);cc(Re?{orgSlug:g,virtualMcpId:e,branch:p}:null,d??void 0,u??void 0);const qs=_??(d&&u?ko(wo(d,u),V,C)?.key??null:null),ns=bo({orgSlug:g,virtualMcpId:e,branch:p},qs?[qs]:[],{withRefs:!0}),[Gs,oa]=b.useState(!1),ss=bo({orgSlug:g,virtualMcpId:e,branch:p},Gs?Al:[]),Us={ready:!(de.kind==="protocol"&&de.hosted)||Gs&&ss.ready,failed:ss.failed,retry:ss.retry,request:()=>oa(!0)};if(ns.failed)return r.jsxs("div",{className:"h-full w-full flex flex-col items-center justify-center gap-3 p-6 text-center text-sm text-muted-foreground",children:[r.jsx("p",{children:c("sectionsEditor.hosted.blockLoadFailed")}),r.jsx("p",{children:c("sectionsEditor.hosted.blockLoadFailedHint")}),r.jsx(It,{variant:"outline",size:"sm",onClick:ns.retry,children:c("sectionsEditor.namedRules.tryAgain")})]});if(!S||Oe||Ee||!ns.ready)return r.jsx("div",{className:"h-full w-full flex items-center justify-center",children:r.jsx(fi,{className:"size-5 text-muted-foreground"})});if(!d||!u)return r.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const aa=wo(d,u),q=!!_,oe=q?null:ko(aa,V,C),y=q?_:oe?.key??null,rs=q&&_?d[_]:void 0,Js=q&&_&&rs?Nl(_,rs):q&&_?_:"",nn=!q&&y&&d[y]?d[y]:null,os=Re&&d&&u&&y&&oe?Vo(d,{kind:"page",pageKey:y,pageName:String(oe.name??""),path:String(oe.path??"")},u):null,ia=Re?nn?.seo:void 0,Kn=Ks!==void 0?Ks:ia,la=Re?rc(Kn):void 0,Qs=os?.seoTypeOptions??[],Xs=Re&&u?oc(u):"",as=Ho??la??{},Dn=Re&&os?uc(as,os):null,Ys=Re&&Dn&&ac(Kn)?qn(Dn,u):null,Zs=Re?ic(d,u)?.seoData:void 0,pe=q?[{label:"Default",sections:[{__resolveType:_}]}]:Io(nn?.sections,d??{},v),yt=pe.length>1,te=Math.min(at,pe.length-1),Se=pe[te],B=Se?.sections??[],ce=kn(B,d,v),Mn=!q&&vc(nn?.sections,v);if(q&&_&&Fs!==_){Is(_);const t=B[0],n=ce[0];if(t&&n){I(0),lt(0),T([]);const s=wt(t,n,d,v);s&&(A(s.data),W(s.resolveType),qe(null),Fe(null))}}!q&&Fs!==null&&Is(null),re.current={rawSections:B,parsedSections:ce,decofile:d??{},activePageKey:y,pageVariants:pe,variantIndex:te,sectionVariantIndex:Me,selectedSectionIndex:m};const ca=()=>({multivariate:Mn,index:te,variants:pe.map(t=>({rule:t.rule})),lazyValues:v&&Mn&&Ni(nn?.sections?.variants?.[te]?.value)}),is=(t,n)=>{if(!w)return;if(!y||!Mn||t.length<=1){w(null);return}const s={multivariate:!0,index:n,variants:t},o=v?xo(y,s):Co(y,s,d,u);w(o.length>0?o:null)},ls=w&&y&&Mn&&yt&&!Oe&&!Ee?y:null;if(ls!==ta&&(na(ls),ls)){const t=pe.map(s=>({rule:s.rule})),n=te;queueMicrotask(()=>is(t,n))}const $t=(t,n,s)=>{if(!w)return;if(!y){w(null);return}const o=ca(),a=v?xo(y,o):Co(y,o,d,u);if(!t||n<0){w(a.length>0?a:null);return}const i={pageKey:y,page:o,sectionIndex:n,sectionLazy:ce[n]?.isLazy??!1,mvObj:t,selectedVariantIndex:s},l=v?Rl(i):_c({...i,decofile:d,meta:u}),f=v?jl(a,l):[...a,...l];w(f.length>0?f:null)},xt=(t,n,s,o=m??-1,a=!1)=>{const i=pt(t,n);if(!i){A(null),W(null),qe(null),Fe(null),a&&$t(null,o,s);return}const f=Xr(i,we)[s];if(!f){A(null),W(null),qe(null),Fe(null),a&&$t(null,o,s);return}const j=gi(f.value,d);A(j?.data??null),W(j?.resolveType??null);const{resolveType:h,formValue:R}=Ut(f.rule,d,u??void 0);qe(h),Fe(R),a&&$t(i,o,s)},cs=t=>{M(null),fe(t),I(null),A(null),W(null),T([]);const n=pe[t]?.rule,{resolveType:s,formValue:o}=Ut(n,d??{},u??void 0);ee(s),se(o),is(pe.map(a=>({rule:a.rule})),t)},ua=(t,n)=>{const s=B[t],o=ce[t];if(!s||!o)return!1;const a=o.isMultivariate?pt(s,o)?.variants?.length??0:0,i=n<a?n:0;if(I(t),lt(i),T([]),$(l=>l+1),o.isMultivariate)xt(s,o,i,t);else{const l=wt(s,o,d,v);l?(A(l.data),W(l.resolveType)):(A(null),W(null)),qe(null),Fe(null)}return!0},er=P?.index;if(P!==void 0&&(P?.seq??null)!==Xe&&(ve(P?.seq??null),typeof er=="number"&&ua(er,0)),ts!==sa){ra(ts);const t=N.current!==null||ye.current.size>0||vt.current!==null||gt.current!==null||L.isPending||Ls.isPending||fn.isPending||F.length>0,n=m!==null&&Qr(me.current,document.activeElement);if(!t&&n&&(tn.current=!0),!t&&!n&&m!==null){const s=B[m],o=ce[m];if(T([]),$(a=>a+1),!s||!o)I(null),A(null),W(null);else if(o.isMultivariate)xt(s,o,Me,m);else{const a=wt(s,o,d,v);A(a?.data??null),W(a?.resolveType??null)}}!t&&Re&&(dn(null),An(void 0),Xt(s=>s+1))}if(zs!==Zo){ea(zs);const t=m!==null?B[m]:null,n=m!==null?ce[m]:null;if(t&&n&&m!==null)if(T([]),$(s=>s+1),n.isMultivariate)xt(t,n,Me,m);else{const s=wt(t,n,d,v);A(s?.data??null),W(s?.resolveType??null)}}const ut=F[0];if(ut){const{formBase:t,target:n}=ut,s=Ko(d,n,v),o=t.sectionIndex,a=s.rawSections.length===t.sectionCount?xs(s.rawSections[o],s.parsedSections[o],n.sectionVariantIndex,d,v):null,i=mi(ut,a,l=>Yr(t,l));if(i){const f=[{...ut,...i,changedAgain:!0},...F.slice(1)];ct.current=f,ke(f)}}const gn={orgSlug:g,virtualMcpId:e,branch:p,threadId:G,previewUrl:v?void 0:x??void 0,siteSlug:Pe},Fn=Qe&&u?qn(Qe,u):null,dt=(t,n)=>{if(!y)return;N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear(),vt.current&&(clearTimeout(vt.current),vt.current=null),gt.current&&(clearTimeout(gt.current),gt.current=null);const s=ln(d,y,t,te,pe);L.mutate({blockKey:y,data:s},{onSuccess:()=>n?.onSuccess?.()??k?.(),onError:o=>{n?.onError?.(),L.reportError(o)}})},Wt=()=>{Ce?.(null),I(null),Tn(!1),A(null),W(null),lt(0),Fe(null),qe(null),T([]),$(t=>t+1)},tr=()=>Qr(me.current,document.activeElement),us=(t=c("sectionsEditor.sectionsEditor.blockChangedElsewhere"))=>{if(N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear(),_t.current=null,H.error(t,{id:Bo}),tr()){tn.current=!0;return}$s(n=>n+1)},nr=()=>{!tn.current||tr()||ct.current.length>0||N.current!==null||pn.current||hn.current||ye.current.size>0||(tn.current=!1,$s(t=>t+1))},sr=()=>{tn.current&&setTimeout(nr,0)},rr=de.kind==="protocol"&&de.source==="github",or=t=>Vl(Nn,Cn,t,de.kind==="protocol"?de:null),ar=t=>{ye.current.size!==0&&setTimeout(()=>{if(pn.current||hn.current)return;const n=[...ye.current.values()];ye.current.clear();for(const s of n)s()},t)},da=t=>{const{activePageKey:n,variantIndex:s,sectionVariantIndex:o}=re.current,a=zt.current;return{formBase:a?.sectionIndex===t&&a.variantIndex===o?a:null,pageKey:n,global:q,pageVariantIndex:s,sectionVariantIndex:o,schema:Fn}},vn=t=>{ct.current=t,ke(t)},fa=t=>{const n=ct.current,s=n.findIndex(i=>i.formBase===t.formBase),o=s>=0?n[s]:void 0,a=o?n.with(s,{...t,choices:so(o.plan,o.choices,t.plan),fresh:Li(o.plan,t.plan,o.fresh),changedAgain:o.changedAgain||Hn(o.plan.theirs)!==Hn(t.plan.theirs)}):[...n,{...t,changedAgain:es.current.has(t.formBase)}];vn(a)},ir=(t,n)=>{const s=ct.current,o=s.findIndex(l=>l.formBase===t),a=s[o];if(!a)return!1;if(Hn(a.plan.mine)===Hn(n))return!0;const i=no({...a.plan,mine:n});if(i.pointers.length===0){const l=s.filter(f=>f!==a);return vn(l),!1}return vn(s.with(o,{...a,plan:i,choices:so(a.plan,a.choices,i)})),!0},ma=t=>{const n=re.current;return n.selectedSectionIndex===t.formBase.sectionIndex&&n.activePageKey===t.target.pageKey&&n.variantIndex===t.target.pageVariantIndex&&n.sectionVariantIndex===t.target.sectionVariantIndex},pa=()=>{const t=ct.current[0];if(!t)return null;const{formBase:n,target:s}=t;N.current&&_t.current?.sectionIndex===n.sectionIndex&&_t.current.sectionVariantIndex===s.sectionVariantIndex&&(clearTimeout(N.current),N.current=null,_t.current=null),ye.current.delete(`${s.pageKey}:${n.sectionIndex}:${s.sectionVariantIndex}`);const o=n.emitted;return o&&typeof o=="object"&&!ir(n,o)&&yn(o,n.sectionIndex,0,s),ct.current[0]??null},ha=()=>{const t=ct.current[0],n=pa();if(!n||!t||n.formBase!==t.formBase||n.plan.pointers.some(i=>!t.plan.pointers.includes(i)))return;const s=ji(n.plan,n.choices);de.kind==="protocol"&&de.source==="github"&&Ei(n.plan,n.choices)&&wl(c,!1),vn(ct.current.slice(1));const{formBase:o,target:a}=n;o.base=n.plan.theirs,o.version=void 0,o.emitted=s,es.current.add(o),(zt.current===o||ma(n))&&(zt.current=o,A(s),$(i=>i+1)),yn(s,o.sectionIndex,0,a)},ga=t=>{const[n,...s]=ct.current;n&&vn([{...n,choices:t},...s])},yn=(t,n,s=0,o,a=!1)=>{const i=o??da(n),l=i.sectionVariantIndex,f=i.formBase,j=a||to(ct.current,f,i,n,v).runNow,h=_t.current;N.current&&(clearTimeout(N.current),N.current=null,h&&(h.sectionIndex!==n||h.sectionVariantIndex!==l)&&h.write());const R=`${i.pageKey}:${n}:${l}`,E=()=>{if(pn.current||hn.current){ye.current.set(R,E);return}const K=typeof t=="function"?t():t,z=to(ct.current,f,i,n,v).base;if(z&&ir(z,K))return;const ne=re.current.decofile,{rawSections:J,parsedSections:Ne,pageVariants:Q,variantIndex:be}=Ko(ne,i,v),Ie=i.pageKey,he=J[n];if(!he)return;const ue=Ne[n];if(!ue)return;const Ge=f?.base,Ye=xs(he,ue,l,ne,v),Nt=!!Ge&&!!Ye&&Ci(Ge,Ye)&&!(f&&Yr(f,Ye));if(Nt&&Ge&&Ye){if(Pi(Ge,Ye)){us(c("sectionsEditor.sectionsEditor.sectionReplacedElsewhere"));return}const U=ue.isSavedBlock?"here":Bi(Ge,J.map((ae,mt)=>xs(ae,Ne[mt],l,ne,v)),n,f?.sectionCount??J.length);if(U==="unknown"){us(c("sectionsEditor.sectionsEditor.sectionReplacedElsewhere"));return}if(typeof U=="number"&&f){f.sectionCount=J.length,f.sectionIndex=U,zt.current===f&&I(U),yn(K,U,s,i);return}}const Ct=Nt&&Ge&&Ye?no({ancestor:Ge,mine:K,theirs:Ye}):null;if(Ct&&Ct.pointers.length>0&&f){f.sectionCount=J.length,fa({plan:Ct,formBase:f,target:i,sectionIndex:n,choices:Ki(Ct),changedAgain:!1,blockKey:ue.isSavedBlock?bs(he,ue):Ie,fresh:{}});return}const Pt=Ct?Ct.merged:null,rn=Pt??K,Gr=Di({merged:!!Pt,tracked:f,current:zt.current,saved:K});Pt&&H.info(c("sectionsEditor.sectionsEditor.blockMergedWithOthers"),{id:Bo}),Gr&&f&&(f.emitted=Pt,A(Pt));const Ss=Gr||!Pt?rn:K;f&&(f.base=Ss,f.sectionCount=J.length,Mi(f,Ss));const Ur={onSuccess:()=>{f&&es.current.delete(f),k?.()},onError:U=>{if(f?.base===Ss&&Ge&&(f.base=Ge),U instanceof El){if(f&&(f.version=void 0),s<Fc){ye.current.delete(R),hn.current=!0;const ae=Oi(s,U.carriedStored);setTimeout(()=>{hn.current=!1,yn(()=>{const mt=f?.emitted;return mt&&typeof mt=="object"?mt:K},n,s+1,i,ae.immediate),ye.current.delete(R),ar(xn(v))},ae.delay)}else us();return}L.reportError(U)}},Jr=U=>{pn.current=!0;let ae=!1;L.mutateAsync(U).then(()=>Ur.onSuccess(),mt=>{ae=!0,Ur.onError(mt)}).finally(()=>{pn.current=!1,ar(ae?xn(v):0),nr()})};if(ue.isSavedBlock){const U=bs(he,ue);if(!U)return;Jr({blockKey:U,data:rn,...Ge?{base:{value:Fi({startedFrom:Ge,stored:Ye,rebased:!!Pt,refused:s>0})}}:{},rebaseOnConflict:!1,guard:ro({formBase:f,rebased:!!Pt,versionOf:or,productionVersionOf:ae=>ao(Nn,Cn,ae),...rr?{copy:{value:ne[U]}}:{}})});return}if(!Ie)return;const Wn={...ne[Ie]},Gt=[...J];if(ue.isMultivariate){const U=pt(he,ue);if(!U||!Ie)return;const ae=Ii(U,l,rn);Gt[n]=Bt(he,ue,ae)}else if(ue.isHidden){const U=Cs(he.__resolveType),ae=U?{...he.section}:{...he},mt=Array.isArray(ae.variants)?[...ae.variants]:[];mt[0]&&(mt[0]=oo(ae.__resolveType,mt[0],rn)),ae.variants=mt,U?Gt[n]={...he,section:ae}:Gt[n]=ae}else ue.isLazy?Gt[n]={...he,section:rn}:Gt[n]=rn;if(Q.length>1){const U=Wn.sections,ae=[...U?.variants??[]];ae[be]&&(ae[be]=oo(U?.__resolveType,ae[be],Gt)),Wn.sections={...U,variants:ae}}else Wn.sections=Gt;Jr({blockKey:Ie,data:Wn,rebaseOnConflict:!1,guard:ro({formBase:null,rebased:!1,versionOf:or,productionVersionOf:U=>ao(Nn,Cn,U),...rr?{copy:{value:ne[Ie]}}:{}})})};if(_t.current={sectionIndex:n,sectionVariantIndex:l,write:E},j){_t.current=null,E();return}N.current=setTimeout(()=>{N.current=null,E()},xn(v))},va=t=>{tn.current=!1,I(t),lt(0),T([]),$(a=>a+1);const n=B[t],s=ce[t];if(Ce?.(s?.isSavedBlock?s.resolveType??null:null),!n||!s)return;if(s.isMultivariate){xt(n,s,0,t);return}const o=wt(n,s,d,v);if(!o){A(null),W(null),qe(null),Fe(null),$t(null,t,0);return}A(o.data),W(o.resolveType),qe(null),Fe(null),$t(null,t,0)},lr=t=>{const n=t;m!==null&&(zt.current=Vi(zt.current,{sectionIndex:m,variantIndex:re.current.sectionVariantIndex,shown:Ze,next:n,sectionCount:re.current.rawSections.length})),A(n),m!==null&&yn(n,m)},ds=t=>{if(!y||!d||!u||!oe)return;const n={kind:"page",pageKey:y,pageName:String(oe.name??""),path:String(oe.path??"")},s=Vo(d,n,u);s&&fn.save(y,()=>{const o=Nn.getQueryData(Ai.decofile(Cn))?.[y];if(!o||typeof o!="object"||o===null||Array.isArray(o))return null;const a={...o,...Bn.current};return Bn.current={},t?.raw!==void 0?dc(a,t.raw,u):t?.inner!==void 0?fc(n,s,a,t.inner):a})},cr=(t,n)=>{y&&(Bn.current[t]=n,ds())},ya=(t,n)=>{if(!y)return;const s=Xn([...B],t,n);m!==null&&(m===t?I(n):t<m&&n>=m?I(m-1):t>m&&n<=m&&I(m+1)),dt(s)},Sa=t=>{if(!y)return;const n=B.filter((s,o)=>o!==t);m===t?Wt():m!==null&&m>t&&I(m-1),dt(n)},ba=t=>{if(!y)return;const n=B[t];if(!n)return;const s=[...B];s.splice(t+1,0,gl(n)),m!==null&&m>t&&I(m+1),dt(s)},xa=t=>{if(!y)return;const n=B[t],s=ce[t];if(!n||!s)return;const o=s.isHidden?ki(n,v):wi(n,u);if(!o)return;const a=[...B];a[t]=o,m===t&&Wt(),dt(a)},_a=t=>{if(!y)return;const n=B[t],s=ce[t];if(!n||!s||s.isMultivariate)return;const o=_i(n);if(!o)return;const a=[...B];a[t]=o,m===t&&Wt(),dt(a)},ka=t=>{if(!y)return;const n=B[t],s=ce[t];if(!n||!s?.isSavedBlock)return;const o=wt(n,s,d,v);if(!o?.data)return;const{name:a,...i}=o.data,l=[...B];s.isLazy?l[t]={...n,section:i}:l[t]=i,m===t&&Wt(),dt(l)},wa=t=>{if(!y)return;const n=qi(ce),s=[...B.slice(0,n),{__resolveType:t.resolveType},...B.slice(n)];dt(s,{onError:()=>{re.current.selectedSectionIndex===n&&Wt()}}),He(!1),I(n),lt(0),T([]),$(l=>l+1);const o=s[n],a=kn(s,d,v)[n];if(!o||!a)return;if(a.isMultivariate){xt(o,a,0);return}const i=wt(o,a,d,v);if(!i){A(null),W(null),qe(null),Fe(null);return}A(i.data),W(i.resolveType),qe(null),Fe(null)},ur=t=>{jn.current=t.append,He(!0)},Ra=t=>{const n=jn.current;if(!n){wa(t);return}n({__resolveType:t.resolveType}),He(!1),jn.current=null},dr=t=>{if(m===null)return;const n=B[m],s=ce[m];!n||!s?.isMultivariate||(lt(t),T([]),$(o=>o+1),xt(n,s,t,m,!0))},ja=t=>{if(m===null||!y)return;const n=B[m],s=ce[m];if(!n||!s?.isMultivariate)return;const o=pt(n,s);if(!o)return;const a=bi(o,t);if(!a){H.error(c("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const i=[...B];i[m]=Bt(n,s,a);const l=a.variants;let f=Me;t===Me?f=Math.min(t,l.length-1):t<Me&&(f=Me-1),lt(f),T([]),$(j=>j+1),xt(i[m],s,f),dt(i)},Ea=t=>{if(m===null||!y)return;const n=B[m],s=ce[m];if(!n||!s?.isMultivariate)return;const o=pt(n,s);if(!o)return;const a=xi(o,t,v),i=[...B];i[m]=Bt(n,s,a);const l=eo(o.variants??[],t,v);lt(l),T([]),$(f=>f+1),xt(i[m],s,l,m,v),dt(i)},Va=(t,n)=>{if(m===null||!y||t===n)return;const s=B[m],o=ce[m];if(!s||!o?.isMultivariate)return;const a=pt(s,o);if(!a)return;const i=yi(a,t,n),l=[...B];l[m]=Bt(s,o,i);let f=Me;Me===t?f=n:t<Me&&n>=Me?f=Me-1:t>Me&&n<=Me&&(f=Me+1),lt(f),xt(l[m],o,f,m,v),dt(l)},Sn=t=>{const n=t??m;if(n===null||!y)return;const s=B[n],o=ce[n];if(!s||!o)return;const a=vi(s,o,void 0,u,v);if(!a){H.error(c("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const i=[...B];i[n]=a.section;const l=kn(i,d,v)[n];if(!l?.isMultivariate){H.error(c("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}I(n),lt(a.newVariantIndex),T([]),$(f=>f+1),xt(a.section,l,a.newVariantIndex,n,v),dt(i)},fr=()=>{if(m===null||!y)return;const t=B[m],n=ce[m];if(!t||!n?.isMultivariate)return;const s=pt(t,n);if(!s)return;const o=Si(t,n,s);if(!o){H.error(c("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const a=[...B];a[m]=o;const i=kn(a,d,v)[m];if(!i)return;lt(0),qe(null),Fe(null),T([]),$(f=>f+1);const l=wt(o,i,d,v);l?(A(l.data),W(l.resolveType)):(A(null),W(null)),$t(null,m,0),dt(a)},Ta=async t=>{if(ie===null||!y)return;const n=Qn(t,d,u);if(n){H.error(n);return}const s=B[ie],o=ce[ie];if(!s||!o)return;const a=wt(s,o,d,v);if(!a){H.error(c("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const i={...a.data,name:t};try{const l=await L.mutateAsync({blockKey:t,data:i,create:!0}),f=[...B];f[ie]={__resolveType:t},await L.mutateAsync({blockKey:y,data:ln(d,y,f,te,pe)}),m===ie&&Wt(),Ve(null),Un(l)||H.success(c("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),k?.()}catch(l){H.error(c("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"),{description:Kt(c,Dt(l))})}},mr=Se?.rule;if(yt&&m===null&&X===null&&mr){const{resolveType:t,formValue:n}=Ut(mr,d??{},u??void 0);ee(t),se(n)}const sn=u?ll(u):[],fs=u&&d?cl(u,d):[],Ht=v&&u&&d?mc(u,d):[],ms=(t,n)=>{if(Ht.length===0)return;const s=Cl(t);return{kinds:Ht,selected:s,campaignPrefill:pc(t),onPick:n,load:Us}},pr=!q&&!!(ot&&u&&d),hr=X&&u?qn(X,u):null,St=()=>{gt.current&&(clearTimeout(gt.current),gt.current=null),vt.current&&(clearTimeout(vt.current),vt.current=null)},qt=async(t,n)=>{if(bc(n,t,u,v))try{await Pn.mutateAsync({blockKey:t})}catch(s){H.error(c("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"),{description:Kt(c,Dt(s))})}},gr=t=>{gt.current&&clearTimeout(gt.current),gt.current=setTimeout(()=>{const{activePageKey:n,decofile:s,variantIndex:o}=re.current;if(!n)return;const a={...s[n]},i={...a.sections},l=[...i.variants??[]],f=l[o],j=f?.rule;if(Jt(j,s,u)){const h=j?.__resolveType??"",R=s[h],E=typeof R?.name=="string"?R.name:h,{__resolveType:K,...z}=t;L.mutate({blockKey:h,data:Ft(K??"",z,E)},{onSuccess:()=>k?.(),onError:L.reportError});return}f&&(l[o]={...f,rule:t}),a.sections={...i,variants:l},L.mutate({blockKey:n,data:a},{onSuccess:()=>k?.(),onError:L.reportError})},xn(v))},vr=t=>{ee(t);const n=t?No(t,u):{__resolveType:Zr(u)};se(t?n:{}),gr(n)},yr=t=>{const n=t;se(n);const s=X?{__resolveType:X,...n}:{...n};gr(s)},In=async(t,n,s)=>{const o=hc(n,t);if(!o.ok)return o.reason==="conflict"&&H.info(t.kind==="experiments"?c("sectionsEditor.namedRulePicker.conflictTests"):c("sectionsEditor.namedRulePicker.conflictCampaigns"),_o),null;const a={};if(s){const i=s(o.rule);if(!i)return null;a[i.blockKey]=i.data}return o.blockWrite&&(a[o.blockWrite.blockKey]=o.blockWrite.block),Object.keys(a).length>0&&!(await Os.apply({writes:a})).ok?null:(o.blockWrite&&H.success(t.kind==="experiments"?c("sectionsEditor.namedRulePicker.createdTest",{name:t.name.trim()}):c("sectionsEditor.namedRulePicker.createdCampaign",{name:t.name.trim()}),{..._o,description:c("sectionsEditor.namedRulePicker.createdHint")}),{rule:o.rule,projected:{...n,...a}})},Sr=Ht.length>0?{kinds:Ht,load:Us,prepare:async t=>(await In(t,re.current.decofile,void 0))?.rule??null,ensureBlock:async t=>{const n=Pl(re.current.decofile,t);return n.kind==="saved"?!0:n.kind==="conflict"?!1:(await Os.apply({writes:{[Bl(t).blockKey]:n.block}})).ok}}:null,br=async t=>{St();const{activePageKey:n,decofile:s,variantIndex:o}=re.current;if(!n)return;const a=await In(t,s,f=>{const j=s[n],h=j?.sections;if(!h||typeof h!="object"||Array.isArray(h))return null;const R=h;if(!Array.isArray(R.variants))return null;const E=[...R.variants],K=E[o];return K?(E[o]={...K,rule:f},{blockKey:n,data:{...j,sections:{...R,variants:E}}}):null});if(!a)return;const{resolveType:i,formValue:l}=Ut(a.rule,a.projected,u??void 0);ee(i),se(l),k?.()},xr=async t=>{St();const{activePageKey:n,decofile:s,variantIndex:o}=re.current;if(!n)return;const a=s[n],i=a?.sections;if(!i||typeof i!="object"||Array.isArray(i))return;const l=i;if(!Array.isArray(l.variants))return;const f=[...l.variants],j=f[o];if(!j)return;const h=Mt(j.rule,s,u),R=cn(t);f[o]={...j,rule:R};const E={...s,[n]:{...a,sections:{...l,variants:f}}},{resolveType:K,formValue:z}=Ut(R,E,u??void 0);ee(K),se(z);try{await L.mutateAsync({blockKey:n,data:E[n]}),h&&h!==t&&await qt(h,E),k?.()}catch(ne){H.error(c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"),{description:Kt(c,Dt(ne))})}},_r=t=>{vt.current&&clearTimeout(vt.current);const{selectedSectionIndex:n,sectionVariantIndex:s}=re.current;n!==null&&(vt.current=setTimeout(()=>{const{rawSections:o,parsedSections:a,decofile:i,activePageKey:l,pageVariants:f,variantIndex:j}=re.current;if(!l)return;const h=o[n],R=a[n];if(!h||!R?.isMultivariate)return;const E=pt(h,R);if(!E)return;const z=(E.variants??[])[s]?.rule;if(Jt(z,i,u)){const Q=z?.__resolveType??"",be=i[Q],Ie=typeof be?.name=="string"?be.name:Q,{__resolveType:he,...ue}=t;L.mutate({blockKey:Q,data:Ft(he??"",ue,Ie)},{onSuccess:()=>k?.(),onError:L.reportError});return}const ne=_s(E,s,t),J=[...o];J[n]=Bt(h,R,ne);const Ne=ln(i,l,J,j,f);L.mutate({blockKey:l,data:Ne},{onSuccess:()=>k?.(),onError:L.reportError})},xn(v)))},Aa=t=>{qe(t);const n=t?No(t,u):{__resolveType:Zr(u)};Fe(t?n:{}),_r(n)},Na=t=>{const n=t;Fe(n);const s=Yt?{__resolveType:Yt,...n}:{...n};_r(s)},Ca=async t=>{St();const{selectedSectionIndex:n,sectionVariantIndex:s,rawSections:o,parsedSections:a,decofile:i,activePageKey:l,pageVariants:f,variantIndex:j}=re.current;if(n===null||!l)return;const h=await In(t,i,K=>{const z=o[n],ne=a[n];if(!z||!ne?.isMultivariate)return null;const J=pt(z,ne);if(!J)return null;const Ne=[...o];return Ne[n]=Bt(z,ne,_s(J,s,K)),{blockKey:l,data:ln(i,l,Ne,j,f)}});if(!h)return;const{resolveType:R,formValue:E}=Ut(h.rule,h.projected,u??void 0);qe(R),Fe(E),k?.()},Pa=async t=>{St();const{selectedSectionIndex:n,sectionVariantIndex:s,rawSections:o,parsedSections:a,decofile:i,activePageKey:l,pageVariants:f,variantIndex:j}=re.current;if(n===null||!l)return;const h=o[n],R=a[n];if(!h||!R?.isMultivariate)return;const E=pt(h,R);if(!E)return;const K=E.variants??[],z=Mt(K[s]?.rule,i,u),ne=cn(t),J=_s(E,s,ne),Ne=[...o];Ne[n]=Bt(h,R,J);const Q=ln(i,l,Ne,j,f),be={...i,[l]:Q},{resolveType:Ie,formValue:he}=Ut(ne,be,u??void 0);qe(Ie),Fe(he);try{await L.mutateAsync({blockKey:l,data:Q}),z&&z!==t&&await qt(z,be),k?.()}catch(ue){H.error(c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"),{description:Kt(c,Dt(ue))})}};if(!q&&!oe)return r.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.noPageFound",{currentPath:V})});if(q&&!rs)return r.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.globalBlockNotFound")});const je=m!==null?ce[m]??null:null,kr=m!==null?B[m]:null,wr=kr&&je?.isMultivariate?pt(kr,je):null,Vt=wr?Xr(wr,we,v):[],Ln=Math.min(Me,Math.max(Vt.length-1,0)),kt=Vt[Ln]??null,Tt=je?.isMultivariate===!0,ps=m!==null&&je!==null,At=ps&&(Tt||!!(Fn&&Ze)),Ba=At&&!q&&je?.isSavedBlock===!0,ft=q||Ba,Rr=q?Js:je?.label??"",Ka=Yt&&u?qn(Yt,u):null,jr=(t,n)=>n&&Z?`${t} · ${n}`:t,Er=je?je.variantOf??je.label:"",Da=(()=>{const t=Tt&&kt?kt.label:null;return t?Z?[jr(Er,t)]:[je.label,t]:[je?.label??""]})(),hs=jr(oe?.name??"",yt?Se?.label:null),On=At&&(!q||D.length>0)?q?[Js,...D]:[hs,...Da,...D]:[],Vr=Re&&oe?[oe.name,"SEO",...Ds]:[],Tr=c("sectionsEditor.pageVariantTabs.variantsLabel"),Ar=Qt&&oe?[oe.name,Tr]:Lt&&oe&&je?[hs,Er,Tr]:[],zn=Ar.length>0?Ar:Vr.length>0?Vr:ft?On.length>0?On:[Rr]:On.length>0?On:[hs],Nr=ps&&!Tt&&!je?.isHidden&&!!y,Ma=ft||!q&&yt&&!!Se||Nr,Fa=ps&&!Tt&&!q&&D.length===0&&!!je&&Mo(je)&&!!y,Ia=Z&&At&&!Lt&&Tt&&D.length===0&&!!kt,Cr=Z&&D.length>0?uo(D[D.length-1]):null,La=D.length>1?uo(D[D.length-2]):null,Pr=ft?Rr:At?je?.label??"":oe?.name??"",Oa=Qt||Lt?c("sectionsEditor.pageVariantTabs.variantsLabel"):Re?c("sectionsEditor.panelSections.seo"):Cr??Pr,Br=Lt?je?.variantOf??je?.label??"":Qt||Re?oe?.name??"":Cr?La??Pr:ft?c("sectionsEditor.sectionsEditor.globalSectionSubtitle"):At?oe?.name??"":oe?.path??"",gs=!Qt&&!Lt&&!Re&&!At&&!ft,za=!Z&&!Re&&!q&&Tt&&D.length===0,bn=()=>{if(!y)return;St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const t=d[y],n=yc(t.sections,B,u,v);if(!n)return;const{sections:s,newVariantIndex:o}=n;L.mutate({blockKey:y,data:{...t,sections:s}},{onSuccess:()=>{fe(o),I(null),A(null),W(null),T([]),se(null),ee(null)},onError:L.reportError})},$n=(t,n,s)=>{if(!y)return;St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const o=d[y],a=o.sections;if(!a||typeof a!="object"||Array.isArray(a))return;const i=a;if(!Array.isArray(i.variants))return;const l=t([...i.variants]);if(!l)return;const f=Sc(i,l),j={...d,[y]:{...o,sections:f}};L.mutate({blockKey:y,data:j[y]},{onSuccess:()=>{n?.();const h=typeof s=="string"?[s]:s??[];(async()=>{for(const R of h)await qt(R,j)})()},onError:L.reportError})},Kr=(t,n)=>{if(t===n)return;let s=te;te===t?s=n:t<te&&n>=te?s=te-1:t>te&&n<=te&&(s=te+1),fe(s);const o=Xn(pe.map(a=>({rule:a.rule})),t,n);is(o,s),$n(a=>Xn(a,t,n))},Dr=t=>{const n=pe[t]?.rule,s=Mt(n,d??{},u??void 0);$n(o=>o.length<=1?null:(o.splice(t,1),o),()=>{pe.length-1===1?fe(0):t<te?fe(te-1):t===te&&fe(Math.max(0,t-1)),I(null),A(null),W(null),T([]),se(null),ee(null)},s)},$a=()=>{const t=pe.map((n,s)=>({variant:n,index:s})).filter(({variant:n})=>!Ri(n.rule)).map(({variant:n})=>Mt(n.rule,d??{},u??void 0)).filter(n=>!!n);$n(n=>{const s=zi({variants:n}),o=n[s];return o?[{...o,rule:$i(u)}]:null},()=>{fe(0),I(null),A(null),W(null),T([]),se(null),ee(null),Vn(!1)},t)},Mr=t=>{let n=t+1;$n(s=>(n=eo(s,t,v),xc(s,t,v)),()=>{fe(n),I(null),A(null),W(null),T([]),se(null),ee(null)})},Wa=async(t,n)=>{St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const s=re.current.activePageKey,o=re.current.decofile;if(!s)return;const a=o[s],i=a.sections;if(!i||typeof i!="object"||Array.isArray(i))return;const l=i;if(!Array.isArray(l.variants))return;const f=[...l.variants],j=f[t];if(!j?.rule||typeof j.rule!="object"){H.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const h=j.rule,R=n.trim();en(!0);try{if(!R){if(!Jt(h,o,u)){M(null);return}const Q=h.__resolveType??"";f[t]={...j,rule:Ts(h,o,u)};const be={...o,[s]:{...a,sections:{...l,variants:f}}};await L.mutateAsync({blockKey:s,data:be[s]}),await qt(Q,be),M(null),k?.();return}const E=As(h,o,u);if(!E){H.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(E.blockKey){await L.mutateAsync({blockKey:E.blockKey,data:Ft(E.resolveType,E.data,R)}),M(null),k?.();return}const K=Jn(R),z=Qn(K,o,u);if(z){H.error(z);return}const ne=Ft(E.resolveType,E.data,R);let J=null,Ne=!1;try{const Q=await L.mutateAsync({blockKey:K,data:ne,create:!0});Ne=Un(Q),J=Ne?null:K,f[t]={...j,rule:cn(K)},await L.mutateAsync({blockKey:s,data:{...a,sections:{...l,variants:f}}}),J=null}catch(Q){throw J&&await Pn.mutateAsync({blockKey:J}).catch(()=>{}),Q}M(null),Ne||H.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:R})),k?.()}catch(E){H.error(c("sectionsEditor.sectionsEditor.failedToRenameVariant"),{description:Kt(c,Dt(E))})}finally{en(!1)}},Ha=async(t,n)=>{St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const{selectedSectionIndex:s,rawSections:o,parsedSections:a,decofile:i,activePageKey:l,pageVariants:f,variantIndex:j}=re.current;if(s===null||!l)return;const h=o[s],R=a[s];if(!h||!R?.isMultivariate)return;const E=pt(h,R);if(!E)return;const K=E.variants??[],z=K[t];if(!z?.rule||typeof z.rule!="object"){H.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const ne=z.rule,J=n.trim();en(!0);const Ne=async Q=>{const be={...E,variants:Q},Ie=[...o];Ie[s]=Bt(h,R,be);const he=ln(i,l,Ie,j,f);return await L.mutateAsync({blockKey:l,data:he}),{...i,[l]:he}};try{if(!J){if(!Jt(ne,i,u)){O(null);return}const Ye=ne.__resolveType??"",Nt=[...K];Nt[t]={...z,rule:Ts(ne,i,u)};const Ct=await Ne(Nt);await qt(Ye,Ct),O(null),k?.();return}const Q=As(ne,i,u);if(!Q){H.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(Q.blockKey){await L.mutateAsync({blockKey:Q.blockKey,data:Ft(Q.resolveType,Q.data,J)}),O(null),k?.();return}const be=Jn(J),Ie=Qn(be,i,u);if(Ie){H.error(Ie);return}const he=Ft(Q.resolveType,Q.data,J);let ue=null,Ge=!1;try{const Ye=await L.mutateAsync({blockKey:be,data:he,create:!0});Ge=Un(Ye),ue=Ge?null:be;const Nt=[...K];Nt[t]={...z,rule:cn(be)},await Ne(Nt),ue=null}catch(Ye){throw ue&&await Pn.mutateAsync({blockKey:ue}).catch(()=>{}),Ye}O(null),Ge||H.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:J})),k?.()}catch(Q){H.error(c("sectionsEditor.sectionsEditor.failedToRenameVariant"),{description:Kt(c,Dt(Q))})}finally{en(!1)}},Fr=async(t,n,s)=>{A(s);try{await L.mutateAsync({blockKey:t,data:s})}catch(o){throw A(a=>a===s?n:a),o}},qa={rename:async(t,n,s)=>{St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const{activePageKey:o,decofile:a}=re.current;if(!o)return;const i=Array.isArray(t.variants)?[...t.variants]:[],l=i[n],f=l?.rule&&typeof l.rule=="object"?l.rule:void 0,j=async R=>{const E={...t,variants:R};return await Fr(o,t,E),{...a,[o]:E}},h=Mc(f,s,a,u);if(h.kind!=="noop"){if(h.kind==="error"){H.error(h.reason==="no-matcher-rule"?c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"):h.reason==="unreadable-rule"?c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"):h.message??c("sectionsEditor.sectionsEditor.failedToRenameVariant"));return}en(!0);try{if(h.kind==="inline"){const K=[...i];K[n]={...l,rule:h.inlinedRule};const z=await j(K);await qt(h.blockKey,z),k?.();return}if(h.kind==="updateBlock"){await L.mutateAsync({blockKey:h.blockKey,data:h.blockData}),k?.();return}let R=null,E=!1;try{const K=await L.mutateAsync({blockKey:h.blockId,data:h.blockData,create:!0});E=Un(K),R=E?null:h.blockId;const z=[...i];z[n]={...l,rule:h.reference},await j(z),R=null}catch(K){throw R&&await Pn.mutateAsync({blockKey:R}).catch(()=>{}),K}E||H.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:s.trim()})),k?.()}catch(R){H.error(c("sectionsEditor.sectionsEditor.failedToRenameVariant"),{description:Kt(c,Dt(R))})}finally{en(!1)}}},selectGlobal:async(t,n,s)=>{St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const{activePageKey:o,decofile:a}=re.current;if(!o)return;const i=Array.isArray(t.variants)?[...t.variants]:[],l=i[n];if(!l)return;const f=Mt(l.rule,a,u);i[n]={...l,rule:cn(s)};const j={...t,variants:i},h={...a,[o]:j};try{await Fr(o,t,j),f&&f!==s&&await qt(f,h),k?.()}catch(R){H.error(c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"),{description:Kt(c,Dt(R))})}},selectNamedRule:async(t,n,s)=>{St(),N.current&&(clearTimeout(N.current),N.current=null),ye.current.clear();const{activePageKey:o,decofile:a}=re.current;if(!o)return;let i=null;!await In(s,a,f=>{const j=Array.isArray(t.variants)?[...t.variants]:[],h=j[n];return h?(j[n]={...h,rule:f},i={...t,variants:j},{blockKey:o,data:i}):null})||!i||(A(i),k?.())}},Ir=()=>{Wt(),v&&$t(null,-1,0)},Lr=t=>{dn(t),ds({inner:t})},Or=t=>{An(t),ds({raw:t})},zr=()=>{dn(null),Ot([])},$r=()=>Xt(t=>t+1),Wr=()=>{fn.flush(),un(!1),dn(null),An(void 0),Ot([]),Xt(t=>t+1),ge?.()},Ga=()=>{Vn(!1),Tn(!1),I(null),un(!0)},Ua=()=>{Re&&Wr(),I(null),Vn(!0)},Ja=()=>Tn(!0),vs=t=>{if(Qt&&t===0){Vn(!1);return}if(Lt&&t<2){Tn(!1),t===0&&I(null);return}if(Re){if(t===0){Wr();return}if(t===1){Ot([]),Xt(s=>s+1);return}Ot(Ds.slice(0,t-1)),Xt(s=>s+1);return}if(q){T(D.slice(0,t)),$(s=>s+1);return}if(t===0){Ir();return}if(t===1){T([]),$(s=>s+1);return}const n=!Z&&Tt&&kt?1:0;if(n===1&&t===2){T([]),$(s=>s+1);return}T(D.slice(0,t-1-n))},ys=zn.length>1?r.jsx("button",{type:"button",onClick:()=>vs(vl(zn.length,{isMultivariateSectionTop:za})),title:c("sectionsEditor.sectionsEditor.back"),"aria-label":c("sectionsEditor.sectionsEditor.back"),className:le("shrink-0 inline-flex size-6 items-center justify-center rounded-[var(--studio-control-radius,var(--radius-md))] transition-colors",ft?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:r.jsx(Ji,{className:"size-4"})}):null,Qa=ft||At||Re?Ma&&r.jsxs("div",{className:le("border-b px-3 py-2.5",ft&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[r.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[!q&&yt&&Se&&r.jsxs("button",{type:"button",onClick:Ir,title:c("sectionsEditor.sectionsEditor.editingInVariant",{variant:Se.label}),className:le("shrink-0 inline-flex items-center gap-1 rounded-lg h-6 px-1.5 text-xs font-medium cursor-pointer transition-opacity hover:opacity-80",dl),children:[r.jsx(ul,{rule:Rs(Se.rule,d??{},u??void 0),matchers:sn}),r.jsx("span",{className:"max-w-[160px] truncate",children:Se.label})]}),r.jsx("div",{className:"flex-1"}),ft&&r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx("span",{className:"shrink-0 cursor-help",children:r.jsx(Yn,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),r.jsx(Et,{side:"bottom",className:"max-w-[260px]",children:c("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Nr&&r.jsx(Gn,{onClick:()=>Sn()})]}),ft&&r.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:c("sectionsEditor.sectionsEditor.globalSectionBanner")})]}):r.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[r.jsx("div",{className:"flex-1 min-w-0",children:r.jsx(fo,{pageKey:y,initialName:oe.name,initialPath:oe.path,onFieldChange:cr,variant:"header"})}),r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx(It,{type:"button",variant:"ghost",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.editSeo"),className:"shrink-0",onClick:()=>un(!0),children:r.jsx(lo,{size:14})})}),r.jsx(Et,{side:"bottom",children:c("sectionsEditor.sectionsEditor.editSeo")})]}),r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx(It,{type:"button",variant:"ghost",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.viewJson"),className:"shrink-0",onClick:()=>Le&&y?Le():bt(!0),children:r.jsx(co,{size:14})})}),r.jsx(Et,{side:"bottom",children:c("sectionsEditor.sectionsEditor.viewJson")})]}),r.jsx(Gn,{onClick:bn})]}),Xa=r.jsxs(r.Fragment,{children:[yt&&y&&r.jsx(mo,{listKey:y,variants:pe,activeIndex:te,decofile:d??{},meta:u,matchers:sn,onSelect:cs,onReorder:Kr,onRename:M,onDuplicate:Mr,onDelete:Dr,onAdd:bn}),yt&&X!==null&&r.jsx(po,{className:"mt-3",children:r.jsx("div",{className:le("space-y-3",Zt&&"pointer-events-none opacity-50"),children:r.jsx(ks,{currentRt:X,currentLabel:_n(Se?.rule,d??{},we,u??void 0),currentGlobalKey:Mt(Se?.rule,d??{},u??void 0)??void 0,matchers:sn,globals:fs,onSelect:vr,onSelectGlobal:xr,named:ms(Se?.rule,br),namedRow:ws(Se?.rule,Ht),rule:Se?.rule,schema:hr,formValue:Ke,onChange:yr,formKey:`${te}:${X??""}`,formWrapperClassName:"space-y-3",meta:u??void 0,decofile:d,onSaveReferencedBlock:mn,sandbox:gn})})})]}),Hr=r.jsxs(r.Fragment,{children:[r.jsx(fl,{listKey:`${y??""}:${m??""}`,variants:Vt.map((t,n)=>({index:n,label:t.label})),selectedIndex:Ln,onSelect:dr,onRename:O,onDuplicate:Ea,onDelete:ja,onRemoveAll:fr,onReorder:Va,onAdd:()=>Sn()}),r.jsx(po,{children:r.jsx(ks,{currentRt:Yt??"",currentLabel:_n(kt?.rule,d??{},we,u??void 0),currentGlobalKey:Mt(kt?.rule,d??{},u??void 0)??void 0,matchers:sn,globals:fs,onSelect:Aa,onSelectGlobal:Pa,named:ms(kt?.rule,Ca),namedRow:ws(kt?.rule,Ht),rule:kt?.rule,schema:Ka,formValue:qo,onChange:Na,formKey:`${m??"none"}:${Ln}:${Yt??""}`,formWrapperClassName:"pt-1",meta:u??void 0,decofile:d,onSaveReferencedBlock:mn,sandbox:gn})})]}),qr=r.jsx("div",{className:le(Z?"px-2":"p-2 pt-3"),children:r.jsx(Kc,{listKey:`${y??""}-${te}`,rawSections:B,sections:ce,meta:u,decofile:d,selectedIndex:m,onSelect:t=>{va(t),Je?.(t)},onReorder:ya,onDelete:Sa,onDuplicate:ba,onMakeReusable:Ve,onToggleHidden:xa,onToggleLazy:rt?_a:void 0,onAddVariant:Sn,onDetach:ka,onAddSection:()=>He(!0),canAddSection:pr})}),Ya=r.jsxs("div",{className:"min-w-0 max-w-full space-y-4 overflow-x-hidden px-3",children:[y&&oe&&r.jsx(fo,{pageKey:y,initialName:oe.name,initialPath:oe.path,onFieldChange:cr}),nn&&y?r.jsx(To,{rawSeo:Kn,innerSeo:as,defaultResolveType:Xs,seoTypesLoading:v&&!u,seoSchema:Ys,activeResolveType:Dn,seoTypeOptions:Qs,formResetKey:Ms,siteDefaultSeo:Zs,onBreadcrumbChange:Ot,onPersistRaw:Or,onInnerChange:Lr,onClearForm:zr,onBumpFormKey:$r,asyncRenderAvailable:rt}):r.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:c("sectionsEditor.sectionsEditor.seoSchemaNotFound")})]}),Za=r.jsx(an,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:r.jsx("div",{className:"mx-auto max-w-2xl",children:nn&&y?r.jsx(To,{rawSeo:Kn,innerSeo:as,defaultResolveType:Xs,seoTypesLoading:v&&!u,seoSchema:Ys,activeResolveType:Dn,seoTypeOptions:Qs,formResetKey:Ms,siteDefaultSeo:Zs,onBreadcrumbChange:Ot,onPersistRaw:Or,onInnerChange:Lr,onClearForm:zr,onBumpFormKey:$r,asyncRenderAvailable:rt}):r.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:c("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"),ei=r.jsxs(an,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[yt&&y&&r.jsx(mo,{listKey:y,variants:pe,activeIndex:te,decofile:d??{},meta:u,matchers:sn,onSelect:cs,onReorder:Kr,onRename:M,onDuplicate:Mr,onDelete:Dr,onAdd:bn}),yt&&X!==null&&r.jsxs("div",{className:le("px-3 border-b",En?"pt-3 pb-5 space-y-3":"py-2"),children:[r.jsxs("button",{type:"button",onClick:()=>Wo(t=>!t),className:"flex w-full items-center justify-between gap-2 text-left cursor-pointer rounded-[var(--studio-control-radius,var(--radius-sm))] py-0.5 hover:bg-accent","aria-expanded":En,children:[r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:c("sectionsEditor.sectionsEditor.variantRule")}),En?r.jsx(Qi,{className:"size-3.5 shrink-0 text-muted-foreground"}):r.jsx(Ui,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),En&&r.jsx("div",{className:le("space-y-3",Zt&&"pointer-events-none opacity-50"),children:r.jsx(ks,{currentRt:X,currentLabel:_n(Se?.rule,d??{},we,u??void 0),currentGlobalKey:Mt(Se?.rule,d??{},u??void 0)??void 0,matchers:sn,globals:fs,onSelect:vr,onSelectGlobal:xr,named:ms(Se?.rule,br),namedRow:ws(Se?.rule,Ht),rule:Se?.rule,schema:hr,formValue:Ke,onChange:yr,formKey:`${te}:${X??""}`,formWrapperClassName:"space-y-3",meta:u??void 0,decofile:d,onSaveReferencedBlock:mn,sandbox:gn})})]}),qr]},"editor-section-list");return r.jsx(lc,{value:v,children:r.jsx(ml,{children:r.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[!Z&&ys&&r.jsx("div",{className:"flex min-w-0 shrink-0 items-center gap-2 px-3 py-2",children:ys}),(Z||zn.length>1)&&r.jsx(Hi,{crumbs:zn,onSelect:vs,onSelectRoot:()=>{fn.flush(),Ue?Ue():vs(0)}}),r.jsx("div",{className:"shrink-0",children:Z?r.jsxs("div",{className:le("flex items-center gap-2 border-b px-3 py-2.5",ft&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[Z&&ys,ft&&r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx("span",{className:"shrink-0 cursor-help",children:r.jsx(Yn,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),r.jsx(Et,{side:"bottom",className:"max-w-[260px]",children:c("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),r.jsxs("div",{className:"flex min-w-0 flex-1 flex-col leading-tight",children:[r.jsx("span",{className:"truncate text-sm font-semibold",children:Oa}),Br&&r.jsx("span",{className:"truncate text-xs text-muted-foreground",children:Br})]}),gs&&yt&&Se&&r.jsx(ho,{variants:pe,activeIndex:te,onSelect:cs,onManage:Ua,onRemoveAll:$a}),Ia&&r.jsx(ho,{variants:Vt,activeIndex:Ln,onSelect:dr,onManage:Ja,onRemoveAll:fr}),gs&&!yt&&r.jsx(Gn,{onClick:bn}),Fa&&r.jsx(Gn,{onClick:()=>Sn()}),r.jsx(pl,{}),gs&&r.jsxs(r.Fragment,{children:[r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx(It,{type:"button",variant:"outline",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.editSeo"),className:"shrink-0",onClick:Ga,children:r.jsx(lo,{size:14})})}),r.jsx(Et,{side:"bottom",children:c("sectionsEditor.sectionsEditor.editSeo")})]}),!Le&&r.jsxs(Rt,{children:[r.jsx(jt,{asChild:!0,children:r.jsx(It,{type:"button",variant:"outline",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.viewJson"),className:"shrink-0",onClick:()=>bt(!0),children:r.jsx(co,{size:14})})}),r.jsx(Et,{side:"bottom",children:c("sectionsEditor.sectionsEditor.viewJson")})]})]})]}):Qa}),ut&&r.jsx(pi,{open:!0,fields:hi(ut.plan,ut.target.schema),choices:ut.choices,changedAgain:ut.changedAgain,author:Hs??null,authorPending:Hs===void 0,fieldsAsLabeled:Ws!==null,fresh:ut.fresh,keepTyping:v,onChoose:(t,n)=>ga({...ut.choices,[t]:n}),onApply:ha},Lc(ut.formBase)),Lt?r.jsx(go,{onAdd:()=>Sn(),children:Hr},"editor-section-variants"):At?r.jsxs(an,{viewportRef:me,onBlur:sr,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[!Z&&Tt&&Vt.length>0&&D.length===0&&Hr,r.jsx(Ao,{value:Sr,children:r.jsx(vo,{value:q&&v?Be:null,children:r.jsx(yo,{activeSchema:Fn,formValue:Ze,formResetKey:De,onFormChange:lr,onBreadcrumbChange:T,breadcrumbPath:D,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:u,decofile:d,onSaveReferencedBlock:mn,sandbox:gn,previewBaseUrl:st,onRequestAddSection:ur,onVariantMatcherOp:q?qa:void 0})})})]},"editor-section-form"):q?r.jsx(an,{viewportRef:me,onBlur:sr,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx(Ao,{value:Sr,children:r.jsx(vo,{value:q&&v?Be:null,children:r.jsx(yo,{activeSchema:Fn,formValue:Ze,formResetKey:De,onFormChange:lr,onBreadcrumbChange:T,breadcrumbPath:D,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:u,decofile:d,onSaveReferencedBlock:mn,sandbox:gn,previewBaseUrl:st,onRequestAddSection:ur})})})},"editor-global-block"):Re?Z?r.jsx(an,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx("div",{className:"p-3",children:Ya})},"editor-seo"):Za:Qt?r.jsx(go,{onAdd:bn,children:Xa},"editor-variants"):Z?r.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[r.jsx(an,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx("div",{className:"py-2",children:qr})}),r.jsx("div",{className:"shrink-0 border-t p-2",children:r.jsx(Ns,{canAddSection:pr,onAddSection:()=>He(!0)})})]},"editor-section-list"):ei,r.jsx(hl,{open:ie!==null,onOpenChange:t=>{t||Ve(null)},defaultBlockId:ie!==null?Jn(ce[ie]?.label??""):"",isPending:L.isPending,onSubmit:Ta}),ot&&r.jsx(tc,{open:Ae,onOpenChange:t=>{He(t),t||(jn.current=null)},meta:u,decofile:d,previewBaseUrl:st,onSelect:Ra}),ht&&y&&d&&r.jsx(sc,{open:ht,onOpenChange:bt,pageKey:y,decofile:d}),Te!==null&&r.jsx(So,{open:!0,initialName:Jt(pe[Te]?.rule,d??{},u??void 0)?_n(pe[Te]?.rule,d??{},we,u??void 0):"",autoLabel:we(Rs(pe[Te]?.rule,d??{},u??void 0)),isPending:Zt,onSubmit:async t=>{await Wa(Te,t)},onOpenChange:t=>{!t&&!Zt&&M(null)}}),tt!==null&&r.jsx(So,{open:!0,initialName:Jt(Vt[tt]?.rule,d??{},u??void 0)?_n(Vt[tt]?.rule,d??{},we,u??void 0):"",autoLabel:we(Rs(Vt[tt]?.rule,d??{},u??void 0)),isPending:Zt,onSubmit:async t=>{await Ha(tt,t)},onOpenChange:t=>{!t&&!Zt&&O(null)}})]})})})}export{Wf as SectionsEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as d,c3 as rt,c4 as _e,j as c,c5 as st,c6 as be,c7 as k,c8 as lt,c9 as j,ca as N,cb as $,cc as at,cd as Ee,ce as Re,cf as it,cg as ct,ch as dt,ci as ut,cj as pt,ck as ft,cl as mt,cm as ht,cn as vt,co as gt,cp as xt,cq as St,c as ee,m as oe,a_ as wt}from"./index-Rw5A0DmF.js";import{c as Ne}from"./index-BdQq_4o_.js";import{V as Ct}from"./index-DQt4K5uR.js";import{t as je}from"./ChevronDown-BnuV7SgS.js";import{n as yt}from"./ChevronUp-CyR0aMhj.js";var It=[" ","Enter","ArrowUp","ArrowDown"],bt=[" ","Enter"],J="Select",[de,ue,Tt]=it(J),[ne]=vt(J,[Tt,Re]),pe=Re(),[_t,G]=ne(J),[Nt,Pt]=ne(J),Me=r=>{const{__scopeSelect:e,children:t,open:o,defaultOpen:n,onOpenChange:l,value:s,defaultValue:a,onValueChange:i,dir:u,name:f,autoComplete:m,disabled:w,required:C,form:S}=r,p=pe(e),[g,y]=d.useState(null),[v,x]=d.useState(null),[F,M]=d.useState(!1),re=rt(u),[P,O]=_e({prop:o,defaultProp:n??!1,onChange:l,caller:J}),[U,q]=_e({prop:s,defaultProp:a,onChange:i,caller:J}),L=d.useRef(null),B=g?S||!!g.closest("form"):!0,[W,V]=d.useState(new Set),H=Array.from(W).map(E=>E.props.value).join(";");return c.jsx(st,{...p,children:c.jsxs(_t,{required:C,scope:e,trigger:g,onTriggerChange:y,valueNode:v,onValueNodeChange:x,valueNodeHasChildren:F,onValueNodeHasChildrenChange:M,contentId:be(),value:U,onValueChange:q,open:P,onOpenChange:O,dir:re,triggerPointerDownPosRef:L,disabled:w,children:[c.jsx(de.Provider,{scope:e,children:c.jsx(Nt,{scope:r.__scopeSelect,onNativeOptionAdd:d.useCallback(E=>{V(D=>new Set(D).add(E))},[]),onNativeOptionRemove:d.useCallback(E=>{V(D=>{const z=new Set(D);return z.delete(E),z})},[]),children:t})}),B?c.jsxs(et,{"aria-hidden":!0,required:C,tabIndex:-1,name:f,autoComplete:m,value:U,onChange:E=>q(E.target.value),disabled:w,form:S,children:[U===void 0?c.jsx("option",{value:""}):null,Array.from(W)]},H):null]})})};Me.displayName=J;var Ae="SelectTrigger",Oe=d.forwardRef((r,e)=>{const{__scopeSelect:t,disabled:o=!1,...n}=r,l=pe(t),s=G(Ae,t),a=s.disabled||o,i=k(e,s.onTriggerChange),u=ue(t),f=d.useRef("touch"),[m,w,C]=ot(p=>{const g=u().filter(x=>!x.disabled),y=g.find(x=>x.value===s.value),v=nt(g,p,y);v!==void 0&&s.onValueChange(v.value)}),S=p=>{a||(s.onOpenChange(!0),C()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return c.jsx(lt,{asChild:!0,...l,children:c.jsx(j.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":tt(s.value)?"":void 0,...n,ref:i,onClick:N(n.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&S(p)}),onPointerDown:N(n.onPointerDown,p=>{f.current=p.pointerType;const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(S(p),p.preventDefault())}),onKeyDown:N(n.onKeyDown,p=>{const g=m.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&w(p.key),!(g&&p.key===" ")&&It.includes(p.key)&&(S(),p.preventDefault())})})})});Oe.displayName=Ae;var De="SelectValue",ke=d.forwardRef((r,e)=>{const{__scopeSelect:t,className:o,style:n,children:l,placeholder:s="",...a}=r,i=G(De,t),{onValueNodeHasChildrenChange:u}=i,f=l!==void 0,m=k(e,i.onValueNodeChange);return $(()=>{u(f)},[u,f]),c.jsx(j.span,{...a,ref:m,style:{pointerEvents:"none"},children:tt(i.value)?c.jsx(c.Fragment,{children:s}):l})});ke.displayName=De;var Et="SelectIcon",Le=d.forwardRef((r,e)=>{const{__scopeSelect:t,children:o,...n}=r;return c.jsx(j.span,{"aria-hidden":!0,...n,ref:e,children:o||"▼"})});Le.displayName=Et;var Rt="SelectPortal",Be=r=>c.jsx(at,{asChild:!0,...r});Be.displayName=Rt;var Q="SelectContent",Ve=d.forwardRef((r,e)=>{const t=G(Q,r.__scopeSelect),[o,n]=d.useState();if($(()=>{n(new DocumentFragment)},[]),!t.open){const l=o;return l?Ee.createPortal(c.jsx(He,{scope:r.__scopeSelect,children:c.jsx(de.Slot,{scope:r.__scopeSelect,children:c.jsx("div",{children:r.children})})}),l):null}return c.jsx(ze,{...r,ref:e})});Ve.displayName=Q;var A=10,[He,Y]=ne(Q),jt="SelectContentImpl",Mt=gt("SelectContent.RemoveScroll"),ze=d.forwardRef((r,e)=>{const{__scopeSelect:t,position:o="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:l,onPointerDownOutside:s,side:a,sideOffset:i,align:u,alignOffset:f,arrowPadding:m,collisionBoundary:w,collisionPadding:C,sticky:S,hideWhenDetached:p,avoidCollisions:g,...y}=r,v=G(Q,t),[x,F]=d.useState(null),[M,re]=d.useState(null),P=k(e,h=>F(h)),[O,U]=d.useState(null),[q,L]=d.useState(null),B=ue(t),[W,V]=d.useState(!1),H=d.useRef(!1);d.useEffect(()=>{if(x)return ut(x)},[x]),pt();const E=d.useCallback(h=>{const[T,...R]=B().map(_=>_.ref.current),[I]=R.slice(-1),b=document.activeElement;for(const _ of h)if(_===b||(_?.scrollIntoView({block:"nearest"}),_===T&&M&&(M.scrollTop=0),_===I&&M&&(M.scrollTop=M.scrollHeight),_?.focus(),document.activeElement!==b))return},[B,M]),D=d.useCallback(()=>E([O,x]),[E,O,x]);d.useEffect(()=>{W&&D()},[W,D]);const{onOpenChange:z,triggerPointerDownPosRef:K}=v;d.useEffect(()=>{if(x){let h={x:0,y:0};const T=I=>{h={x:Math.abs(Math.round(I.pageX)-(K.current?.x??0)),y:Math.abs(Math.round(I.pageY)-(K.current?.y??0))}},R=I=>{h.x<=10&&h.y<=10?I.preventDefault():x.contains(I.target)||z(!1),document.removeEventListener("pointermove",T),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",T),document.addEventListener("pointerup",R,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",R,{capture:!0})}}},[x,z,K]),d.useEffect(()=>{const h=()=>z(!1);return window.addEventListener("blur",h),window.addEventListener("resize",h),()=>{window.removeEventListener("blur",h),window.removeEventListener("resize",h)}},[z]);const[fe,ae]=ot(h=>{const T=B().filter(b=>!b.disabled),R=T.find(b=>b.ref.current===document.activeElement),I=nt(T,h,R);I&&setTimeout(()=>I.ref.current.focus())}),me=d.useCallback((h,T,R)=>{const I=!H.current&&!R;(v.value!==void 0&&v.value===T||I)&&(U(h),I&&(H.current=!0))},[v.value]),he=d.useCallback(()=>x?.focus(),[x]),te=d.useCallback((h,T,R)=>{const I=!H.current&&!R;(v.value!==void 0&&v.value===T||I)&&L(h)},[v.value]),ie=o==="popper"?Se:Fe,se=ie===Se?{side:a,sideOffset:i,align:u,alignOffset:f,arrowPadding:m,collisionBoundary:w,collisionPadding:C,sticky:S,hideWhenDetached:p,avoidCollisions:g}:{};return c.jsx(He,{scope:t,content:x,viewport:M,onViewportChange:re,itemRefCallback:me,selectedItem:O,onItemLeave:he,itemTextRefCallback:te,focusSelectedItem:D,selectedItemText:q,position:o,isPositioned:W,searchRef:fe,children:c.jsx(ft,{as:Mt,allowPinchZoom:!0,children:c.jsx(mt,{asChild:!0,trapped:v.open,onMountAutoFocus:h=>{h.preventDefault()},onUnmountAutoFocus:N(n,h=>{v.trigger?.focus({preventScroll:!0}),h.preventDefault()}),children:c.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:c.jsx(ie,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:h=>h.preventDefault(),...y,...se,onPlaced:()=>V(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:N(y.onKeyDown,h=>{const T=h.ctrlKey||h.altKey||h.metaKey;if(h.key==="Tab"&&h.preventDefault(),!T&&h.key.length===1&&ae(h.key),["ArrowUp","ArrowDown","Home","End"].includes(h.key)){let I=B().filter(b=>!b.disabled).map(b=>b.ref.current);if(["ArrowUp","End"].includes(h.key)&&(I=I.slice().reverse()),["ArrowUp","ArrowDown"].includes(h.key)){const b=h.target,_=I.indexOf(b);I=I.slice(_+1)}setTimeout(()=>E(I)),h.preventDefault()}})})})})})})});ze.displayName=jt;var At="SelectItemAlignedPosition",Fe=d.forwardRef((r,e)=>{const{__scopeSelect:t,onPlaced:o,...n}=r,l=G(Q,t),s=Y(Q,t),[a,i]=d.useState(null),[u,f]=d.useState(null),m=k(e,P=>f(P)),w=ue(t),C=d.useRef(!1),S=d.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:y,focusSelectedItem:v}=s,x=d.useCallback(()=>{if(l.trigger&&l.valueNode&&a&&u&&p&&g&&y){const P=l.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),U=l.valueNode.getBoundingClientRect(),q=y.getBoundingClientRect();if(l.dir!=="rtl"){const b=q.left-O.left,_=U.left-b,X=P.left-_,Z=P.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Ne(_,[A,Math.max(A,ge-ve)]);a.style.minWidth=Z+"px",a.style.left=xe+"px"}else{const b=O.right-q.right,_=window.innerWidth-U.right-b,X=window.innerWidth-P.right-_,Z=P.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Ne(_,[A,Math.max(A,ge-ve)]);a.style.minWidth=Z+"px",a.style.right=xe+"px"}const L=w(),B=window.innerHeight-A*2,W=p.scrollHeight,V=window.getComputedStyle(u),H=parseInt(V.borderTopWidth,10),E=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),z=parseInt(V.paddingBottom,10),K=H+E+W+z+D,fe=Math.min(g.offsetHeight*5,K),ae=window.getComputedStyle(p),me=parseInt(ae.paddingTop,10),he=parseInt(ae.paddingBottom,10),te=P.top+P.height/2-A,ie=B-te,se=g.offsetHeight/2,h=g.offsetTop+se,T=H+E+h,R=K-T;if(T<=te){const b=L.length>0&&g===L[L.length-1].ref.current;a.style.bottom="0px";const _=u.clientHeight-p.offsetTop-p.offsetHeight,X=Math.max(ie,se+(b?he:0)+_+D),Z=T+X;a.style.height=Z+"px"}else{const b=L.length>0&&g===L[0].ref.current;a.style.top="0px";const X=Math.max(te,H+p.offsetTop+(b?me:0)+se)+R;a.style.height=X+"px",p.scrollTop=T-te+p.offsetTop}a.style.margin=`${A}px 0`,a.style.minHeight=fe+"px",a.style.maxHeight=B+"px",o?.(),requestAnimationFrame(()=>C.current=!0)}},[w,l.trigger,l.valueNode,a,u,p,g,y,l.dir,o]);$(()=>x(),[x]);const[F,M]=d.useState();$(()=>{u&&M(window.getComputedStyle(u).zIndex)},[u]);const re=d.useCallback(P=>{P&&S.current===!0&&(x(),v?.(),S.current=!1)},[x,v]);return c.jsx(Dt,{scope:t,contentWrapper:a,shouldExpandOnScrollRef:C,onScrollButtonChange:re,children:c.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:c.jsx(j.div,{...n,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})});Fe.displayName=At;var Ot="SelectPopperPosition",Se=d.forwardRef((r,e)=>{const{__scopeSelect:t,align:o="start",collisionPadding:n=A,...l}=r,s=pe(t);return c.jsx(xt,{...s,...l,ref:e,align:o,collisionPadding:n,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Se.displayName=Ot;var[Dt,Te]=ne(Q,{}),we="SelectViewport",Ue=d.forwardRef((r,e)=>{const{__scopeSelect:t,nonce:o,...n}=r,l=Y(we,t),s=Te(we,t),a=k(e,l.onViewportChange),i=d.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),c.jsx(de.Slot,{scope:t,children:c.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:N(n.onScroll,u=>{const f=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:w}=s;if(w?.current&&m){const C=Math.abs(i.current-f.scrollTop);if(C>0){const S=window.innerHeight-A*2,p=parseFloat(m.style.minHeight),g=parseFloat(m.style.height),y=Math.max(p,g);if(y<S){const v=y+C,x=Math.min(S,v),F=v-x;m.style.height=x+"px",m.style.bottom==="0px"&&(f.scrollTop=F>0?F:0,m.style.justifyContent="flex-end")}}}i.current=f.scrollTop})})})]})});Ue.displayName=we;var We="SelectGroup",[kt,Lt]=ne(We),Bt=d.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r,n=be();return c.jsx(kt,{scope:t,id:n,children:c.jsx(j.div,{role:"group","aria-labelledby":n,...o,ref:e})})});Bt.displayName=We;var Ke="SelectLabel",Vt=d.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r,n=Lt(Ke,t);return c.jsx(j.div,{id:n.id,...o,ref:e})});Vt.displayName=Ke;var ce="SelectItem",[Ht,$e]=ne(ce),Ge=d.forwardRef((r,e)=>{const{__scopeSelect:t,value:o,disabled:n=!1,textValue:l,...s}=r,a=G(ce,t),i=Y(ce,t),u=a.value===o,[f,m]=d.useState(l??""),[w,C]=d.useState(!1),S=k(e,v=>i.itemRefCallback?.(v,o,n)),p=be(),g=d.useRef("touch"),y=()=>{n||(a.onValueChange(o),a.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(Ht,{scope:t,value:o,disabled:n,textId:p,isSelected:u,onItemTextChange:d.useCallback(v=>{m(x=>x||(v?.textContent??"").trim())},[]),children:c.jsx(de.ItemSlot,{scope:t,value:o,disabled:n,textValue:f,children:c.jsx(j.div,{role:"option","aria-labelledby":p,"data-highlighted":w?"":void 0,"aria-selected":u&&w,"data-state":u?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...s,ref:S,onFocus:N(s.onFocus,()=>C(!0)),onBlur:N(s.onBlur,()=>C(!1)),onClick:N(s.onClick,()=>{g.current!=="mouse"&&y()}),onPointerUp:N(s.onPointerUp,()=>{g.current==="mouse"&&y()}),onPointerDown:N(s.onPointerDown,v=>{g.current=v.pointerType}),onPointerMove:N(s.onPointerMove,v=>{g.current=v.pointerType,n?i.onItemLeave?.():g.current==="mouse"&&v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(s.onPointerLeave,v=>{v.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:N(s.onKeyDown,v=>{i.searchRef?.current!==""&&v.key===" "||(bt.includes(v.key)&&y(),v.key===" "&&v.preventDefault())})})})})});Ge.displayName=ce;var le="SelectItemText",Ye=d.forwardRef((r,e)=>{const{__scopeSelect:t,className:o,style:n,...l}=r,s=G(le,t),a=Y(le,t),i=$e(le,t),u=Pt(le,t),[f,m]=d.useState(null),w=k(e,y=>m(y),i.onItemTextChange,y=>a.itemTextRefCallback?.(y,i.value,i.disabled)),C=f?.textContent,S=d.useMemo(()=>c.jsx("option",{value:i.value,disabled:i.disabled,children:C},i.value),[i.disabled,i.value,C]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=u;return $(()=>(p(S),()=>g(S)),[p,g,S]),c.jsxs(c.Fragment,{children:[c.jsx(j.span,{id:i.textId,...l,ref:w}),i.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Ee.createPortal(l.children,s.valueNode):null]})});Ye.displayName=le;var qe="SelectItemIndicator",Xe=d.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r;return $e(qe,t).isSelected?c.jsx(j.span,{"aria-hidden":!0,...o,ref:e}):null});Xe.displayName=qe;var Ce="SelectScrollUpButton",Ze=d.forwardRef((r,e)=>{const t=Y(Ce,r.__scopeSelect),o=Te(Ce,r.__scopeSelect),[n,l]=d.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let a=function(){const u=i.scrollTop>0;l(u)};const i=t.viewport;return a(),i.addEventListener("scroll",a),()=>i.removeEventListener("scroll",a)}},[t.viewport,t.isPositioned]),n?c.jsx(Qe,{...r,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:i}=t;a&&i&&(a.scrollTop=a.scrollTop-i.offsetHeight)}}):null});Ze.displayName=Ce;var ye="SelectScrollDownButton",Je=d.forwardRef((r,e)=>{const t=Y(ye,r.__scopeSelect),o=Te(ye,r.__scopeSelect),[n,l]=d.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let a=function(){const u=i.scrollHeight-i.clientHeight,f=Math.ceil(i.scrollTop)<u;l(f)};const i=t.viewport;return a(),i.addEventListener("scroll",a),()=>i.removeEventListener("scroll",a)}},[t.viewport,t.isPositioned]),n?c.jsx(Qe,{...r,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:i}=t;a&&i&&(a.scrollTop=a.scrollTop+i.offsetHeight)}}):null});Je.displayName=ye;var Qe=d.forwardRef((r,e)=>{const{__scopeSelect:t,onAutoScroll:o,...n}=r,l=Y("SelectScrollButton",t),s=d.useRef(null),a=ue(t),i=d.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return d.useEffect(()=>()=>i(),[i]),$(()=>{a().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),c.jsx(j.div,{"aria-hidden":!0,...n,ref:e,style:{flexShrink:0,...n.style},onPointerDown:N(n.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:N(n.onPointerMove,()=>{l.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:N(n.onPointerLeave,()=>{i()})})}),zt="SelectSeparator",Ft=d.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r;return c.jsx(j.div,{"aria-hidden":!0,...o,ref:e})});Ft.displayName=zt;var Ie="SelectArrow",Ut=d.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r,n=pe(t),l=G(Ie,t),s=Y(Ie,t);return l.open&&s.position==="popper"?c.jsx(St,{...n,...o,ref:e}):null});Ut.displayName=Ie;var Wt="SelectBubbleInput",et=d.forwardRef(({__scopeSelect:r,value:e,...t},o)=>{const n=d.useRef(null),l=k(o,n),s=ct(e);return d.useEffect(()=>{const a=n.current;if(!a)return;const i=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(i,"value").set;if(s!==e&&f){const m=new Event("change",{bubbles:!0});f.call(a,e),a.dispatchEvent(m)}},[s,e]),c.jsx(j.select,{...t,style:{...Ct,...t.style},ref:l,defaultValue:e})});et.displayName=Wt;function tt(r){return r===""||r===void 0}function ot(r){const e=dt(r),t=d.useRef(""),o=d.useRef(0),n=d.useCallback(s=>{const a=t.current+s;e(a),(function i(u){t.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>i(""),1e3))})(a)},[e]),l=d.useCallback(()=>{t.current="",window.clearTimeout(o.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(o.current),[]),[t,n,l]}function nt(r,e,t){const n=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,l=t?r.indexOf(t):-1;let s=Kt(r,Math.max(l,0));n.length===1&&(s=s.filter(u=>u!==t));const i=s.find(u=>u.textValue.toLowerCase().startsWith(n.toLowerCase()));return i!==t?i:void 0}function Kt(r,e){return r.map((t,o)=>r[(e+o)%r.length])}var $t=Me,Gt=Oe,Yt=ke,qt=Le,Xt=Be,Zt=Ve,Jt=Ue,Qt=Ge,Pe=Ye,eo=Xe,to=Ze,oo=Je;function uo(r){const e=ee.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let o;return e[2]!==t?(o=c.jsx($t,{"data-slot":"select",...t}),e[2]=t,e[3]=o):o=e[3],o}function po(r){const e=ee.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let o;return e[2]!==t?(o=c.jsx(Yt,{"data-slot":"select-value",...t}),e[2]=t,e[3]=o):o=e[3],o}function fo(r){const e=ee.c(15);let t,o,n,l,s;e[0]!==r?({className:o,size:l,variant:s,children:t,...n}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=l,e[5]=s):(t=e[1],o=e[2],n=e[3],l=e[4],s=e[5]);const a=l===void 0?"default":l,i=s===void 0?"outline":s;let u;e[6]!==o?(u=oe("data-[placeholder]:text-subtle-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-ring aria-invalid:bg-destructive/10 aria-invalid:shadow-[inset_0_0_0_1px_var(--destructive)] flex w-fit items-center justify-between gap-1.5 px-3 text-sm whitespace-nowrap transition-[color,background-color,box-shadow] outline-none disabled:text-subtle-foreground disabled:pointer-events-none","data-[variant=outline]:rounded-[var(--studio-control-radius,var(--radius-lg))] data-[variant=outline]:bg-[var(--studio-input-background)] data-[variant=outline]:shadow-edge data-[variant=outline]:hover:bg-sidebar","data-[variant=filled]:rounded-full data-[variant=filled]:bg-muted data-[variant=filled]:hover:bg-secondary-hover","data-[variant=pill]:rounded-full data-[variant=pill]:bg-card data-[variant=pill]:shadow-edge data-[variant=pill]:hover:bg-[var(--studio-outline-hover-background)]","data-[size=default]:h-[var(--studio-control-height,2.25rem)] data-[size=default]:pl-4 data-[size=sm]:h-8 data-[size=xs]:h-7 data-[size=xs]:px-2.5 data-[size=xs]:text-xs data-[size=xs]:font-medium","*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",o),e[6]=o,e[7]=u):u=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=c.jsx(qt,{asChild:!0,children:c.jsx(je,{className:"size-3.5 stroke-[1.5]"})}),e[8]=f):f=e[8];let m;return e[9]!==t||e[10]!==n||e[11]!==a||e[12]!==u||e[13]!==i?(m=c.jsxs(Gt,{"data-slot":"select-trigger","data-size":a,"data-variant":i,className:u,...n,children:[t,f]}),e[9]=t,e[10]=n,e[11]=a,e[12]=u,e[13]=i,e[14]=m):m=e[14],m}function mo(r){const e=ee.c(25);let t,o,n,l,s;e[0]!==r?({className:o,children:t,position:l,hideScrollButtons:s,...n}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=l,e[5]=s):(t=e[1],o=e[2],n=e[3],l=e[4],s=e[5]);const a=l===void 0?"popper":l,i=s===void 0?!1:s,u=a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let f;e[6]!==o||e[7]!==u?(f=oe("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-[var(--studio-surface-radius,var(--radius-lg))] border shadow-md",u,o),e[6]=o,e[7]=u,e[8]=f):f=e[8];let m;e[9]!==i?(m=!i&&c.jsx(no,{}),e[9]=i,e[10]=m):m=e[10];const w=a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let C;e[11]!==w?(C=oe("p-1",w),e[11]=w,e[12]=C):C=e[12];let S;e[13]!==t||e[14]!==C?(S=c.jsx(Jt,{className:C,children:t}),e[13]=t,e[14]=C,e[15]=S):S=e[15];let p;e[16]!==i?(p=!i&&c.jsx(ro,{}),e[16]=i,e[17]=p):p=e[17];let g;return e[18]!==a||e[19]!==n||e[20]!==f||e[21]!==m||e[22]!==S||e[23]!==p?(g=c.jsx(Xt,{children:c.jsxs(Zt,{"data-slot":"select-content",translate:"no",className:f,position:a,...n,children:[m,S,p]})}),e[18]=a,e[19]=n,e[20]=f,e[21]=m,e[22]=S,e[23]=p,e[24]=g):g=e[24],g}function ho(r){const e=ee.c(19);let t,o,n,l,s;e[0]!==r?({className:o,children:t,description:n,hideCheck:s,...l}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=l,e[5]=s):(t=e[1],o=e[2],n=e[3],l=e[4],s=e[5]);const a=s===void 0?!1:s,i=n&&"items-start py-2";let u;e[6]!==o||e[7]!==i?(u=oe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",i,o),e[6]=o,e[7]=i,e[8]=u):u=e[8];let f;e[9]!==a?(f=!a&&c.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:c.jsx(eo,{children:c.jsx(wt,{className:"size-4"})})}),e[9]=a,e[10]=f):f=e[10];let m;e[11]!==t||e[12]!==n?(m=n?c.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c.jsx(Pe,{children:t}),c.jsx("span",{className:"text-xs text-muted-foreground whitespace-normal",children:n})]}):c.jsx(Pe,{children:t}),e[11]=t,e[12]=n,e[13]=m):m=e[13];let w;return e[14]!==l||e[15]!==u||e[16]!==f||e[17]!==m?(w=c.jsxs(Qt,{"data-slot":"select-item",className:u,...l,children:[f,m]}),e[14]=l,e[15]=u,e[16]=f,e[17]=m,e[18]=w):w=e[18],w}function no(r){const e=ee.c(9);let t,o;e[0]!==r?({className:t,...o}=r,e[0]=r,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let n;e[3]!==t?(n=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=n):n=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=c.jsx(yt,{className:"size-4"}),e[5]=l):l=e[5];let s;return e[6]!==o||e[7]!==n?(s=c.jsx(to,{"data-slot":"select-scroll-up-button",className:n,...o,children:l}),e[6]=o,e[7]=n,e[8]=s):s=e[8],s}function ro(r){const e=ee.c(9);let t,o;e[0]!==r?({className:t,...o}=r,e[0]=r,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let n;e[3]!==t?(n=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=n):n=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=c.jsx(je,{className:"size-4"}),e[5]=l):l=e[5];let s;return e[6]!==o||e[7]!==n?(s=c.jsx(oo,{"data-slot":"select-scroll-down-button",className:n,...o,children:l}),e[6]=o,e[7]=n,e[8]=s):s=e[8],s}export{uo as S,po as a,fo as b,ho as c,mo as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,b as A,r as R,m as G,j as s,B as H,s as J,x as K,v as Q,D as U}from"./index-Rw5A0DmF.js";import{d as V,b as W,a as X,D as Y}from"./drawer-BdbgwYin.js";import{u as Z}from"./use-mobile-Cj6SlZ6u.js";import{d as ee}from"./chat-context-ezxG3DPM.js";import{S as F,a as se,M as le,c as te}from"./index-D72gb6tH.js";function me(L){const e=$.c(48),{variant:o,className:t,placeholder:n,model:l,isLoading:I,credentialId:P,onCredentialChange:k,onModelChange:b,filterModels:E}=L,z=o===void 0?"borderless":o,w=n===void 0?"Select model":n,r=A(),[a,S]=R.useState(!1),i=b!==void 0,q=Z(),O=z==="borderless"?"ghost":"outline",_=z==="borderless"&&"md:border-none";let d;e[0]!==t||e[1]!==_?(d=G("text-sm hover:bg-accent py-0.5 px-1 gap-1 shadow-none cursor-pointer border-0 group min-w-0 shrink justify-start overflow-hidden",_,t),e[0]=t,e[1]=_,e[2]=d):d=e[2];let c;e[3]!==I||e[4]!==l||e[5]!==w||e[6]!==i?(c=i?s.jsx(F,{model:l??null,placeholder:w,isLoading:I}):s.jsx(ne,{placeholder:w}),e[3]=I,e[4]=l,e[5]=w,e[6]=i,e[7]=c):c=e[7];let D;e[8]!==O||e[9]!==d||e[10]!==c?(D=s.jsx(H,{variant:O,size:"sm",className:d,children:c}),e[8]=O,e[9]=d,e[10]=c,e[11]=D):D=e[11];const m=D;let y;e[12]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(se,{}),e[12]=y):y=e[12];let N;e[13]!==P||e[14]!==E||e[15]!==l||e[16]!==k||e[17]!==b||e[18]!==i?(N=s.jsx(R.Suspense,{fallback:y,children:i?s.jsx(le,{onClose:()=>S(!1),credentialId:P??null,onCredentialChange:k??oe,selectedModel:l??null,onModelChange:b,filterModels:E}):s.jsx(te,{onClose:()=>S(!1)})}),e[13]=P,e[14]=E,e[15]=l,e[16]=k,e[17]=b,e[18]=i,e[19]=N):N=e[19];const f=N;if(q){let g;e[20]!==m?(g=s.jsx(V,{asChild:!0,children:m}),e[20]=m,e[21]=g):g=e[21];let j;e[22]!==r?(j=r("chat.selectModel.selectModel"),e[22]=r,e[23]=j):j=e[23];let M;e[24]!==j?(M=s.jsx(W,{className:"sr-only",children:j}),e[24]=j,e[25]=M):M=e[25];let C;e[26]!==f?(C=s.jsx("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden",children:f}),e[26]=f,e[27]=C):C=e[27];let v;e[28]!==M||e[29]!==C?(v=s.jsxs(X,{className:"p-0 flex flex-col max-h-[95vh]",children:[M,C]}),e[28]=M,e[29]=C,e[30]=v):v=e[30];let T;return e[31]!==a||e[32]!==g||e[33]!==v?(T=s.jsxs(Y,{open:a,onOpenChange:S,children:[g,v]}),e[31]=a,e[32]=g,e[33]=v,e[34]=T):T=e[34],T}let h;e[35]!==m?(h=s.jsx(J,{asChild:!0,children:m}),e[35]=m,e[36]=h):h=e[36];let x;e[37]!==r?(x=r("chat.selectModel.selectModel"),e[37]=r,e[38]=x):x=e[38];let p;e[39]!==x?(p=s.jsx(K,{className:"sr-only",children:x}),e[39]=x,e[40]=p):p=e[40];let u;e[41]!==f||e[42]!==p?(u=s.jsxs(Q,{className:"p-0 gap-0 sm:max-w-fit overflow-hidden h-[100dvh] sm:h-auto max-h-[100dvh] sm:max-h-[85vh] w-full max-w-full sm:max-w-fit rounded-none sm:rounded-xl border-0 sm:border",closeButtonClassName:"top-3.5 right-3.5 z-20",children:[p,f]}),e[41]=f,e[42]=p,e[43]=u):u=e[43];let B;return e[44]!==a||e[45]!==h||e[46]!==u?(B=s.jsxs(U,{open:a,onOpenChange:S,children:[h,u]}),e[44]=a,e[45]=h,e[46]=u,e[47]=B):B=e[47],B}function oe(){}function ne(L){const e=$.c(4),{placeholder:o}=L,{selectedModel:t,isModelsLoading:n}=ee();let l;return e[0]!==n||e[1]!==t||e[2]!==o?(l=s.jsx(F,{model:t,placeholder:o,isLoading:n}),e[0]=n,e[1]=t,e[2]=o,e[3]=l):l=e[3],l}export{me as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as C,b as ee,j as s,q as ze,K as Ne,r as Z,av as Ae,B as Ue,h as Pe}from"./index-Rw5A0DmF.js";import{Q as we}from"./agent-icon-1ZLmJzI_.js";import{S as Ee}from"./scroll-area-C0B5ezJM.js";import{X as Re,d as _e}from"./held-block-view-CSR5w8wu.js";import{a0 as Ie,z as Oe}from"./blocks-tab-states-DCMxeCzD.js";import{aV as Be,aT as fe,Y as Me,aW as He,aX as Qe,aY as Ye,aZ as Ve,aR as We,aS as Xe,a_ as qe,X as Ge,aU as Ze}from"./category-tree-BUh2YGSR.js";import{L as Fe}from"./label-C9fDqO12.js";import{S as Ce}from"./switch-D0iHCTNk.js";import{a as Je}from"./save-status-CwWi0Kgv.js";import{c as et,b as tt,a as st,d as lt,S as ot}from"./select-Da9fUulT.js";import{v as it,k as nt,u as rt,i as at}from"./site-editor-toast-DRzJQnJH.js";import{b as ct}from"./use-never-published-C102-LWP.js";import{c as dt,u as ft}from"./hosted-reconcile-EQNKqX5P.js";import{a as Ke}from"./Image01-VVLD8oS_.js";const mt="https://deco.cx/docs/en/performance/edge-async-render";function ut(a){const e=C.c(30),{rawSeo:t,onEnableChange:i,onAsyncRenderChange:d,enableUnavailable:r,enableUnavailableHint:l,children:o}=a,u=r===void 0?!1:r,c=ee(),m=Je();let p;e[0]!==t?(p=fe(t),e[0]=t,e[1]=p):p=e[1];const n=p;let f;e[2]!==t?(f=Be(t),e[2]=t,e[3]=f):f=e[3];const h=f,x=!n&&u;let y;e[4]!==c?(y=c("sectionsEditor.seoFormChrome.enableLabel"),e[4]=c,e[5]=y):y=e[5];let v;e[6]!==y?(v=s.jsx(Fe,{htmlFor:"seo-enable",className:"text-sm font-medium",children:y}),e[6]=y,e[7]=v):v=e[7];const k=x&&l?"seo-enable-hint":void 0;let b;e[8]!==x||e[9]!==n||e[10]!==i||e[11]!==k?(b=s.jsx(Ce,{id:"seo-enable",checked:n,disabled:x,"aria-describedby":k,onCheckedChange:i}),e[8]=x,e[9]=n,e[10]=i,e[11]=k,e[12]=b):b=e[12];let S;e[13]!==v||e[14]!==b?(S=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[v,b]}),e[13]=v,e[14]=b,e[15]=S):S=e[15];let j;e[16]!==x||e[17]!==l?(j=x&&l&&s.jsx("p",{id:"seo-enable-hint",className:"text-xs leading-normal text-muted-foreground",children:l}),e[16]=x,e[17]=l,e[18]=j):j=e[18];let g;e[19]!==h||e[20]!==o||e[21]!==m||e[22]!==n||e[23]!==d||e[24]!==c?(g=n&&(m||!d?o:s.jsxs(s.Fragment,{children:[o,s.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[s.jsxs("div",{className:"min-w-0 space-y-1",children:[s.jsx("p",{className:"text-sm font-medium",children:c("sectionsEditor.seoFormChrome.asyncRenderLabel")}),s.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",s.jsx("a",{href:mt,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:c("sectionsEditor.seoFormChrome.documentationLinkText")}),"."]})]}),s.jsx(Ce,{id:"seo-async-render",checked:h,onCheckedChange:d,className:"shrink-0"})]})]})),e[19]=h,e[20]=o,e[21]=m,e[22]=n,e[23]=d,e[24]=c,e[25]=g):g=e[25];let N;return e[26]!==g||e[27]!==S||e[28]!==j?(N=s.jsxs("div",{className:"space-y-4",children:[S,j,g]}),e[26]=g,e[27]=S,e[28]=j,e[29]=N):N=e[29],N}function pt(a){const e=C.c(20),{options:t,value:i,onChange:d}=a,r=ee();if(t.length<=1)return null;let l;e[0]!==r?(l=r("sectionsEditor.seoTypeSelect.label"),e[0]=r,e[1]=l):l=e[1];let o;e[2]!==l?(o=s.jsx(Fe,{className:"text-xs text-muted-foreground",children:l}),e[2]=l,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("sectionsEditor.seoTypeSelect.placeholder"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==u?(c=s.jsx(tt,{className:"w-full",children:s.jsx(st,{placeholder:u})}),e[6]=u,e[7]=c):c=e[7];let m;e[8]!==t?(m=t.filter(xt).map(ht),e[8]=t,e[9]=m):m=e[9];let p;e[10]!==m?(p=s.jsx(lt,{children:m}),e[10]=m,e[11]=p):p=e[11];let n;e[12]!==d||e[13]!==c||e[14]!==p||e[15]!==i?(n=s.jsxs(ot,{value:i,onValueChange:d,children:[c,p]}),e[12]=d,e[13]=c,e[14]=p,e[15]=i,e[16]=n):n=e[16];let f;return e[17]!==o||e[18]!==n?(f=s.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[o,n]}),e[17]=o,e[18]=n,e[19]=f):f=e[19],f}function ht(a){return s.jsx(et,{value:a.resolveType,children:a.title},a.resolveType)}function xt(a){return a.resolveType.length>0}function yt(a){const e=C.c(40),{rawSeo:t,innerSeo:i,defaultResolveType:d,seoSchema:r,activeResolveType:l,seoTypeOptions:o,formResetKey:u,siteDefaultSeo:c,onBreadcrumbChange:m,onPersistRaw:p,onInnerChange:n,onClearForm:f,onBumpFormKey:h,beforeFields:x,asyncRenderAvailable:y,seoTypesLoading:v}=a,k=y===void 0?!0:y,b=v===void 0?!1:v,S=ee(),g=!Me()||!b&&d!=="";let N;e[0]!==d||e[1]!==h||e[2]!==f||e[3]!==p||e[4]!==g?(N=K=>{if(K){if(!g)return;const $=Qe(d);p($),f(),h();return}p(null),f(),h()},e[0]=d,e[1]=h,e[2]=f,e[3]=p,e[4]=g,e[5]=N):N=e[5];const w=N;let E;e[6]!==p||e[7]!==t?(E=K=>{const $=He(K,t);p($)},e[6]=p,e[7]=t,e[8]=E):E=e[8];const T=E;let _;e[9]!==h||e[10]!==n?(_=K=>{n({__resolveType:K}),h()},e[9]=h,e[10]=n,e[11]=_):_=e[11];const L=_,z=!g;let R;e[12]!==g||e[13]!==b||e[14]!==S?(R=g||b?void 0:S("sectionsEditor.seoFormChrome.noSeoTypeHint"),e[12]=g,e[13]=b,e[14]=S,e[15]=R):R=e[15];const q=k?T:void 0;let P;e[16]!==l||e[17]!==L||e[18]!==t||e[19]!==r||e[20]!==o?(P=fe(t)&&r&&l&&o&&o.length>0&&s.jsx(pt,{options:o,value:l,onChange:L}),e[16]=l,e[17]=L,e[18]=t,e[19]=r,e[20]=o,e[21]=P):P=e[21];let F;e[22]!==l||e[23]!==u||e[24]!==i||e[25]!==m||e[26]!==n||e[27]!==t||e[28]!==r||e[29]!==c?(F=fe(t)&&r&&l&&s.jsx(Re,{schema:r,resolveType:l,value:i,formResetKey:u,onChange:K=>n(K),onBreadcrumbChange:m,siteDefaultSeo:c}),e[22]=l,e[23]=u,e[24]=i,e[25]=m,e[26]=n,e[27]=t,e[28]=r,e[29]=c,e[30]=F):F=e[30];let O;return e[31]!==x||e[32]!==w||e[33]!==t||e[34]!==F||e[35]!==z||e[36]!==R||e[37]!==q||e[38]!==P?(O=s.jsxs(ut,{rawSeo:t,onEnableChange:w,enableUnavailable:z,enableUnavailableHint:R,onAsyncRenderChange:q,children:[x,P,F]}),e[31]=x,e[32]=w,e[33]=t,e[34]=F,e[35]=z,e[36]=R,e[37]=q,e[38]=P,e[39]=O):O=e[39],O}function Se(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function vt(a,e,t,i){if(a.kind==="page"){if(!Se(t))return null;const d=t.seo!==void 0?t.seo:e.rawSeoData;return{...t,seo:i===null?null:Ye(i,d)}}return Se(t)?e.siteKind==="block"?i:{...t,seo:i}:null}function gt(a,e,t){if(e===null&&Ie(t??void 0)){const{seo:i,...d}=a;return d}return{...a,seo:e}}function bt(a,e){const t=a.__resolveType;return typeof t=="string"&&t.length>0?t:e.seoResolveType}function St(a){const e=C.c(29),{orgSlug:t,virtualMcpId:i,branch:d,target:r,resolved:l,meta:o,onSaved:u}=a,c=ze();let m;e[0]!==d||e[1]!==t||e[2]!==i?(m={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,e[1]=t,e[2]=i,e[3]=m):m=e[3];const p=it(m);let n;e[4]!==d||e[5]!==t||e[6]!==i?(n={orgSlug:t,virtualMcpId:i,branch:d},e[4]=d,e[5]=t,e[6]=i,e[7]=n):n=e[7];let f;e[8]!==u?(f={onSaved:u,holdsCopy:!0},e[8]=u,e[9]=f):f=e[9];const{save:h,flush:x,isPending:y,hold:v,v8:k}=ct(n,f),b=k?p:`${t}/${i}/${d}`;let S;e[10]!==b||e[11]!==c||e[12]!==l||e[13]!==h||e[14]!==r?(S=E=>{l&&h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return vt(r,l,_,E)})},e[10]=b,e[11]=c,e[12]=l,e[13]=h,e[14]=r,e[15]=S):S=e[15];const j=S;let g;e[16]!==b||e[17]!==o||e[18]!==c||e[19]!==l||e[20]!==h||e[21]!==r?(g=E=>{!l||r.kind!=="page"||h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return Se(_)?gt(_,E,o):null})},e[16]=b,e[17]=o,e[18]=c,e[19]=l,e[20]=h,e[21]=r,e[22]=g):g=e[22];const N=g;let w;return e[23]!==x||e[24]!==v||e[25]!==y||e[26]!==N||e[27]!==j?(w={persistSeo:j,persistRawSeo:N,flush:x,isPending:y,hold:v},e[23]=x,e[24]=v,e[25]=y,e[26]=N,e[27]=j,e[28]=w):w=e[28],w}function J(a){return typeof a=="string"&&a.trim()?a:void 0}function Te(a,e){if(a){if(e)try{const t=new URL(a,e).href;return _e(t)}catch{return}return _e(a)}}function jt(a){if(!a)return{};const e=J(a.title),t=J(a.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:J(a.description),image:J(a.image),favicon:J(a.favicon)}}function kt(a){if(!a)return"example.com";try{return new URL(a).host}catch{return"example.com"}}const Nt=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function je(a){const e=C.c(10),{src:t,className:i,iconSize:d}=a,r=d===void 0?20:d;if(t){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={objectFit:"cover"},e[0]=c):c=e[0];let m;return e[1]!==i||e[2]!==t?(m=s.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:i,style:c}),e[1]=i,e[2]=t,e[3]=m):m=e[3],m}let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=l):l=e[4];let o;e[5]!==r?(o=s.jsx(Ke,{size:r}),e[5]=r,e[6]=o):o=e[6];let u;return e[7]!==i||e[8]!==o?(u=s.jsx("div",{className:i,style:l,children:o}),e[7]=i,e[8]=o,e[9]=u):u=e[9],u}function wt(a){const e=C.c(33),{seo:t,host:i,path:d,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#fff",border:"1px solid #dadce0"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={background:"#f1f3f4"},e[1]=o):o=e[1];let u;e[2]!==t.favicon?(u=s.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:o,children:t.favicon?s.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):s.jsx(Ke,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=u):u=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#202124"},e[4]=c):c=e[4];let m;e[5]!==i?(m=s.jsx("div",{className:"truncate text-[13px] leading-tight",style:c,children:i}),e[5]=i,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let n;e[8]!==i||e[9]!==d?(n=s.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[i,d]}),e[8]=i,e[9]=d,e[10]=n):n=e[10];let f;e[11]!==m||e[12]!==n?(f=s.jsxs("div",{className:"min-w-0",children:[m,n]}),e[11]=m,e[12]=n,e[13]=f):f=e[13];let h;e[14]!==u||e[15]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2",children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let v;e[21]!==y?(v=s.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=v):v=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k={color:"#4d5156"},e[23]=k):k=e[23];let b;e[24]!==t.description||e[25]!==r?(b=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=b):b=e[26];let S;e[27]!==b?(S=s.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:k,children:b}),e[27]=b,e[28]=S):S=e[28];let j;return e[29]!==v||e[30]!==S||e[31]!==h?(j=s.jsxs("div",{className:"rounded-lg p-3 text-left",style:l,children:[h,v,S]}),e[29]=v,e[30]=S,e[31]=h,e[32]=j):j=e[32],j}function Et(a){const e=C.c(26),{seo:t,host:i,t:d}=a;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let l;e[1]!==t.image?(l=s.jsx(je,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={borderTop:"1px solid #e2e8f0"},e[3]=o):o=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[4]=u):u=e[4];let c;e[5]!==i?(c=s.jsx("div",{className:"truncate text-[11px]",style:u,children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];let p;e[8]!==t.title||e[9]!==d?(p=t.title??d("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=d,e[10]=p):p=e[10];let n;e[11]!==p?(n=s.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[11]=p,e[12]=n):n=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#60666c"},e[13]=f):f=e[13];let h;e[14]!==t.description||e[15]!==d?(h=t.description??d("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=d,e[16]=h):h=e[16];let x;e[17]!==h?(x=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:f,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==c||e[21]!==n?(y=s.jsxs("div",{className:"px-3 py-2",style:o,children:[c,n,x]}),e[19]=x,e[20]=c,e[21]=n,e[22]=y):y=e[22];let v;return e[23]!==y||e[24]!==l?(v=s.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[l,y]}),e[23]=y,e[24]=l,e[25]=v):v=e[25],v}function _t(a){const e=C.c(36),{seo:t,host:i,accent:d,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#f0f2f5"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#3b4045"},e[1]=o):o=e[1];let u;e[2]!==r?(u=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==u?(c=s.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:o,children:u}),e[4]=u,e[5]=c):c=e[5];const m=`3px solid ${d}`;let p;e[6]!==m?(p={background:"#fff",borderLeft:m},e[6]=m,e[7]=p):p=e[7];let n;e[8]!==t.image?(n=s.jsx(je,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=n):n=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1c2024"},e[10]=f):f=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=s.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:f,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let v;e[17]!==t.description||e[18]!==r?(v=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=v):v=e[19];let k;e[20]!==v?(k=s.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:v}),e[20]=v,e[21]=k):k=e[21];let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b={color:"#8a9099"},e[22]=b):b=e[22];let S;e[23]!==i?(S=s.jsx("div",{className:"mt-0.5 text-[10px]",style:b,children:i}),e[23]=i,e[24]=S):S=e[24];let j;e[25]!==x||e[26]!==k||e[27]!==S?(j=s.jsxs("div",{className:"px-2.5 py-1.5",children:[x,k,S]}),e[25]=x,e[26]=k,e[27]=S,e[28]=j):j=e[28];let g;e[29]!==j||e[30]!==p||e[31]!==n?(g=s.jsxs("div",{className:"overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-md))]",style:p,children:[n,j]}),e[29]=j,e[30]=p,e[31]=n,e[32]=g):g=e[32];let N;return e[33]!==g||e[34]!==c?(N=s.jsxs("div",{className:"rounded-lg p-2 text-left",style:l,children:[c,g]}),e[33]=g,e[34]=c,e[35]=N):N=e[35],N}function Ct(a){const e=C.c(39),{seo:t,host:i,accent:d,dark:r,t:l}=a,o=r?"#2b2d31":"#fff",u=r?"#00a8fc":"#1264a3",c=r?"#dbdee1":"#3b4045",m=r?"#949ba4":"#8a9099",p=r?"none":"1px solid #e2e8f0";let n;e[0]!==o||e[1]!==p?(n={background:o,border:p},e[0]=o,e[1]=p,e[2]=n):n=e[2];const f=`3px solid ${d}`;let h;e[3]!==f?(h={borderLeft:f,borderRadius:2},e[3]=f,e[4]=h):h=e[4];let x;e[5]!==m?(x={color:m},e[5]=m,e[6]=x):x=e[6];let y;e[7]!==i||e[8]!==x?(y=s.jsx("div",{className:"text-[10px]",style:x,children:i}),e[7]=i,e[8]=x,e[9]=y):y=e[9];let v;e[10]!==u?(v={color:u},e[10]=u,e[11]=v):v=e[11];let k;e[12]!==t.title||e[13]!==l?(k=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=l,e[14]=k):k=e[14];let b;e[15]!==v||e[16]!==k?(b=s.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:v,children:k}),e[15]=v,e[16]=k,e[17]=b):b=e[17];let S;e[18]!==c?(S={color:c},e[18]=c,e[19]=S):S=e[19];let j;e[20]!==t.description||e[21]!==l?(j=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=l,e[22]=j):j=e[22];let g;e[23]!==S||e[24]!==j?(g=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:S,children:j}),e[23]=S,e[24]=j,e[25]=g):g=e[25];let N;e[26]!==g||e[27]!==y||e[28]!==b?(N=s.jsxs("div",{className:"min-w-0 flex-1",children:[y,b,g]}),e[26]=g,e[27]=y,e[28]=b,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=s.jsx(je,{src:t.image,className:"size-14 shrink-0 rounded-[var(--studio-control-radius,var(--radius))]",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let E;e[32]!==N||e[33]!==w||e[34]!==h?(E=s.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=E):E=e[35];let T;return e[36]!==E||e[37]!==n?(T=s.jsx("div",{className:"rounded-lg p-2.5 text-left",style:n,children:E}),e[36]=E,e[37]=n,e[38]=T):T=e[38],T}function Tt(a){const e=C.c(21),{platform:t,seo:i,host:d,path:r,t:l}=a;let o;e[0]!==d||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==i||e[6]!==l?(o=t.layout==="search"?s.jsx(wt,{seo:i,host:d,path:r,t:l}):t.layout==="card"?s.jsx(Et,{seo:i,host:d,path:r,t:l}):t.layout==="chat"?s.jsx(_t,{seo:i,host:d,path:r,accent:t.color,t:l}):s.jsx(Ct,{seo:i,host:d,path:r,accent:t.color,dark:t.id==="discord",t:l}),e[0]=d,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=i,e[6]=l,e[7]=o):o=e[7];const u=o;let c;e[8]!==t.color?(c=s.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=c):c=e[9];let m;e[10]!==t.labelKey||e[11]!==l?(m=l(t.labelKey),e[10]=t.labelKey,e[11]=l,e[12]=m):m=e[12];let p;e[13]!==m?(p=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:m}),e[13]=m,e[14]=p):p=e[14];let n;e[15]!==c||e[16]!==p?(n=s.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[c,p]}),e[15]=c,e[16]=p,e[17]=n):n=e[17];let f;return e[18]!==u||e[19]!==n?(f=s.jsxs("div",{children:[n,u]}),e[18]=u,e[19]=n,e[20]=f):f=e[20],f}function Pt(a){const e=C.c(18),{seo:t,url:i,path:d}=a,r=d===void 0?"/":d,l=ee();let o,u,c;if(e[0]!==t||e[1]!==i){const v=jt(t);o=v,u=Te(v.image,i),c=Te(v.favicon,i),e[0]=t,e[1]=i,e[2]=o,e[3]=u,e[4]=c}else o=e[2],u=e[3],c=e[4];let m;e[5]!==o||e[6]!==u||e[7]!==c?(m={...o,image:u,favicon:c},e[5]=o,e[6]=u,e[7]=c,e[8]=m):m=e[8];const p=m;let n;e[9]!==i?(n=kt(i),e[9]=i,e[10]=n):n=e[10];const f=n,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==f||e[13]!==l||e[14]!==p?(x=Nt.map(v=>s.jsx(Tt,{platform:v,seo:p,host:f,path:h,t:l},v.id)),e[11]=h,e[12]=f,e[13]=l,e[14]=p,e[15]=x):x=e[15];let y;return e[16]!==x?(y=s.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function De(a,e,t){const i=C.c(3);let d;return i[0]!==e||i[1]!==t?(d=e?Ve(e,t):[],i[0]=e,i[1]=t,i[2]=d):d=i[2],nt(a,d)}function Rt(a){const e=C.c(7),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l}=a;let o;if(e[0]!==d||e[1]!==t||e[2]!==i?(o={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,e[1]=t,e[2]=i,e[3]=o):o=e[3],!De(o,r,l).ready){let m;return e[4]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"h-full w-full flex items-center justify-center",children:s.jsx(Pe,{className:"size-5 text-muted-foreground"})}),e[4]=m):m=e[4],m}let c;return e[5]!==a?(c=s.jsx(Ft,{...a}),e[5]=a,e[6]=c):c=e[6],c}function Ft(a){const e=C.c(77),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l,target:o,previewBaseUrl:u,onSaved:c,onEditDefaultSeo:m,onBack:p}=a,n=ee(),f=We(r,o,l),h=rt(i,d);let x;e[0]!==h?(x=at(h),e[0]=h,e[1]=x):x=e[1];const y=!x,v=f?.seoData,k=o.kind==="site"?"site":o.pageKey,[b,S]=Z.useState(k),[j,g]=Z.useState(null),[N,w]=Z.useState(0),[E,T]=Z.useState(void 0),{persistSeo:_,persistRawSeo:L,flush:z,isPending:R,hold:q}=St({orgSlug:t,virtualMcpId:i,branch:d,target:o,resolved:f,meta:l,onSaved:c});let P;e[2]!==d||e[3]!==t||e[4]!==i?(P=dt({orgSlug:t,virtualMcpId:i,branch:d}),e[2]=d,e[3]=t,e[4]=i,e[5]=P):P=e[5];const F=ft(P)(f?.blockKey??""),[O,K]=Z.useState(F);(b!==k||O!==F)&&(f&&q(f.blockKey),S(k),K(F),g(null),T(void 0),w(Dt));const $=o.kind==="page",$e=$?f?.rawSeoData:void 0,G=E!==void 0?E:$e,Le=$?Xe(G)??void 0:void 0,D=j??Le??v??{},A=f?qe(bt(D,f),r,l):null,B=A&&(!$||fe(G))?Oe(A,l):null;let te;e[6]!==l?(te=Ge(l),e[6]=l,e[7]=te):te=e[7];const me=te;let U,se;e[8]!==r||e[9]!==D||e[10]!==l||e[11]!==o.kind?(U=o.kind==="page"?Ze(r,l)?.seoData??{}:{},se=o.kind==="page"?Lt(U,D):D,e[8]=r,e[9]=D,e[10]=l,e[11]=o.kind,e[12]=U,e[13]=se):(U=e[12],se=e[13]);const ue=se;let le;e[14]!==_||e[15]!==f||e[16]!==g?(le=I=>{if(!f)return;const ke=I;g(ke),_(ke)},e[14]=_,e[15]=f,e[16]=g,e[17]=le):le=e[17];const pe=le;let oe;e[18]!==g?(oe=()=>g(null),e[18]=g,e[19]=oe):oe=e[19];const he=oe;let ie;e[20]!==w?(ie=()=>w(Kt),e[20]=w,e[21]=ie):ie=e[21];const xe=ie;let ne;e[22]!==z||e[23]!==p?(ne=()=>{z(),p?.()},e[22]=z,e[23]=p,e[24]=ne):ne=e[24];const ye=ne,M=o.kind==="page"?o.path:"/";let re;e[25]!==M||e[26]!==u||e[27]!==o.kind?(re=o.kind==="page"&&u?$t(M,u):u??null,e[25]=M,e[26]=u,e[27]=o.kind,e[28]=re):re=e[28];const ve=re;let ae;e[29]!==f||e[30]!==n||e[31]!==o.kind?(ae=o.kind==="site"?n("sectionsEditor.seoEditor.noSiteSeoBlock"):n(f?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[29]=f,e[30]=n,e[31]=o.kind,e[32]=ae):ae=e[32];const ge=ae,ce=$&&f,be=o.kind==="site"&&f&&B;let H;e[33]!==ye||e[34]!==n||e[35]!==o.kind||e[36]!==o.pageName?(H=o.kind==="page"?s.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[s.jsx("button",{type:"button",onClick:ye,title:o.pageName,className:"min-w-0 truncate rounded-[var(--studio-control-radius,var(--radius-md))] px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),s.jsx(Ae,{className:"size-3 shrink-0 text-muted-foreground/60"}),s.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):s.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[s.jsx(we,{size:16,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:n("sectionsEditor.seoEditor.defaultSeoLabel")}),s.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",n("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[33]=ye,e[34]=n,e[35]=o.kind,e[36]=o.pageName,e[37]=H):H=e[37];let Q;e[38]!==R?(Q=R&&s.jsx(Pe,{className:"size-3.5 text-muted-foreground"}),e[38]=R,e[39]=Q):Q=e[39];let Y;e[40]!==m||e[41]!==n||e[42]!==o.kind?(Y=o.kind==="page"&&m&&s.jsxs(Ue,{type:"button",variant:"outline",size:"sm",onClick:m,children:[s.jsx(we,{size:14}),n("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[40]=m,e[41]=n,e[42]=o.kind,e[43]=Y):Y=e[43];let V;e[44]!==Q||e[45]!==Y?(V=s.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[Q,Y]}),e[44]=Q,e[45]=Y,e[46]=V):V=e[46];let W;e[47]!==H||e[48]!==V?(W=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[H,V]}),e[47]=H,e[48]=V,e[49]=W):W=e[49];let X;e[50]!==A||e[51]!==y||e[52]!==xe||e[53]!==he||e[54]!==me||e[55]!==G||e[56]!==D||e[57]!==ge||e[58]!==N||e[59]!==pe||e[60]!==M||e[61]!==L||e[62]!==_||e[63]!==ue||e[64]!==ve||e[65]!==f||e[66]!==B||e[67]!==g||e[68]!==T||e[69]!==ce||e[70]!==be||e[71]!==U||e[72]!==n?(X=!f||!ce&&!be?s.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ge}):s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsx(Ee,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"px-5 py-4",children:ce?s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:n("sectionsEditor.seoEditor.emptyFieldsHint")}),s.jsx(yt,{rawSeo:G,innerSeo:D,defaultResolveType:me,seoSchema:B,activeResolveType:A,seoTypeOptions:f.seoTypeOptions,formResetKey:N,siteDefaultSeo:U,onPersistRaw:I=>{T(I),L(I)},onInnerChange:I=>{g(I),_(I)},onClearForm:he,onBumpFormKey:xe,asyncRenderAvailable:y})]}):B&&A&&s.jsx(Re,{schema:B,resolveType:A,value:D,formResetKey:N,onChange:pe})})}),s.jsx(Ee,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"@container px-5 py-4",children:s.jsx(Pt,{seo:ue,url:ve,path:M})})})]}),e[50]=A,e[51]=y,e[52]=xe,e[53]=he,e[54]=me,e[55]=G,e[56]=D,e[57]=ge,e[58]=N,e[59]=pe,e[60]=M,e[61]=L,e[62]=_,e[63]=ue,e[64]=ve,e[65]=f,e[66]=B,e[67]=g,e[68]=T,e[69]=ce,e[70]=be,e[71]=U,e[72]=n,e[73]=X):X=e[73];let de;return e[74]!==W||e[75]!==X?(de=s.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,X]}),e[74]=W,e[75]=X,e[76]=de):de=e[76],de}function Kt(a){return a+1}function Dt(a){return a+1}function $t(a,e){try{return new URL(a,e).href}catch{return e}}function Lt(a,e){const t=e.__resolveType,i=a.__resolveType;if(typeof t=="string"&&typeof i=="string"&&t!==i)return{...e};const d={...a};for(const[r,l]of Object.entries(e))r!=="__resolveType"&&l!=null&&(typeof l=="string"&&l.trim()===""||(d[r]=l));return d}const Gt=Object.freeze(Object.defineProperty({__proto__:null,SeoEditor:Rt,useEnsureSiteSeoBlocks:De},Symbol.toStringTag,{value:"Module"}));export{yt as P,bt as a,vt as b,Gt as s,De as u,gt as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as p,m as d,j as f,f_ as m}from"./index-Rw5A0DmF.js";function x(s){const t=p.c(12);let o,a,r,i;t[0]!==s?({className:o,orientation:r,decorative:i,...a}=s,t[0]=s,t[1]=o,t[2]=a,t[3]=r,t[4]=i):(o=t[1],a=t[2],r=t[3],i=t[4]);const l=r===void 0?"horizontal":r,c=i===void 0?!0:i;let e;t[5]!==o?(e=d("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),t[5]=o,t[6]=e):e=t[6];let n;return t[7]!==c||t[8]!==l||t[9]!==a||t[10]!==e?(n=f.jsx(m,{"data-slot":"separator-root",decorative:c,orientation:l,className:e,...a}),t[7]=c,t[8]=l,t[9]=a,t[10]=e,t[11]=n):n=t[11],n}export{x as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dY as o}from"./index-Rw5A0DmF.js";function s(r){return r.toLowerCase().trim().replace(/\//g,"-").replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function n(r){const t=r?.trim();if(!t)return null;try{const e=new URL(t);return e.protocol!=="http:"&&e.protocol!=="https:"?null:e.href}catch{return null}}function i(r){return n(r?.previewServerUrl)??n(r?.productionUrl)}function u(r){const t=r?.trim();if(!t)return null;const e=/^https?:\/\//i.test(t)?t:`https://${t}`;return n(e)}function p(r){const t=s(r??"");return t?u(`${t}.deco.site`):null}const d=["cms","sandbox"];function c(r){return r==="cms"||r==="sandbox"?r:null}function l(r){return!!i(r)&&(o(r)||r?.fastPreview===!0)}function a(r){return l(r)?"cms":"sandbox"}function m(r,t){return c(r?.runtime)??a(t)}export{d as T,m as a,u as b,p as c,a as d,s as e,c as p,i as r,n as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,j as o}from"./index-Rw5A0DmF.js";import{V as a}from"./index-CGJRx-ab.js";function p(s){const t=e.c(2),{virtualMcpId:r}=s;let i;return t[0]!==r?(i=o.jsx(a,{virtualMcpId:r}),t[0]=r,t[1]=i):i=t[1],i}export{p as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as n,m as u,j as i,eL as z,d$ as R,aU as k,eM as B,eN as D,b8 as E,e1 as O,e0 as P}from"./index-Rw5A0DmF.js";function L(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(R,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function T(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(P,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function F(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=u("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(O,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function M(o){const e=n.c(29);let t,s,a,l,m,h,x;e[0]!==o?({className:s,children:t,side:m,size:h,hideCloseButton:x,container:a,...l}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=m,e[6]=h,e[7]=x):(t=e[1],s=e[2],a=e[3],l=e[4],m=e[5],h=e[6],x=e[7]);const r=m===void 0?"right":m,C=h===void 0?"sm":h,g=x===void 0?!1:x,N=a?"absolute":void 0;let c;e[8]!==N?(c=i.jsx(F,{className:N}),e[8]=N,e[9]=c):c=e[9];const j=a&&"absolute",v=r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l",y=r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r",S=(r==="left"||r==="right")&&(C==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),$=r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",w=r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let d;e[10]!==s||e[11]!==$||e[12]!==w||e[13]!==j||e[14]!==v||e[15]!==y||e[16]!==S?(d=u("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",j,v,y,S,$,w,s),e[10]=s,e[11]=$,e[12]=w,e[13]=j,e[14]=v,e[15]=y,e[16]=S,e[17]=d):d=e[17];let f;e[18]!==g?(f=!g&&i.jsxs(D,{className:"data-[state=open]:bg-secondary absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus-ring disabled:pointer-events-none rounded-lg",children:[i.jsx(E,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[18]=g,e[19]=f):f=e[19];let p;e[20]!==t||e[21]!==l||e[22]!==d||e[23]!==f?(p=i.jsxs(k,{"data-slot":"sheet-content",className:d,...l,children:[t,f]}),e[20]=t,e[21]=l,e[22]=d,e[23]=f,e[24]=p):p=e[24];let b;return e[25]!==a||e[26]!==p||e[27]!==c?(b=i.jsxs(T,{container:a,children:[c,p]}),e[25]=a,e[26]=p,e[27]=c,e[28]=b):b=e[28],b}function U(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=u("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function q(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=u("mt-auto flex flex-col gap-2 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function A(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=u("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(z,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function G(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=u("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(B,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{A as S,M as a,L as b,U as c,G as d,q as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as R,b as Q,e as Xe,j as n,B as F,t as We,o as gt,cu as pe,ai as zt,a as fe,M as cn,V as Ft,K as ht,cv as Bt,cw as Kt,aw as Ze,m as bt,bb as dn,C as kt,r as X,af as un,ag as ie,cx as mn,w as Mt,x as qt,v as Ht,D as Ut,d as Jt,a6 as jt,H as fn,T as Vt,i as et,E as xt,aY as Gt,cy as gn,cz as hn,b9 as Tt,J as pn,cA as yn,bG as bn,aW as xn,y as wn,cB as Sn,cC as jn,cD as vn,cE as kn,cF as Tn,a7 as Nn,u as Pn,a8 as _n,cG as In,cH as On,l as Wt,cI as Nt,cJ as An,O as Cn,b3 as Pt,cK as En,a0 as $n}from"./index-Rw5A0DmF.js";import{t as Yt}from"./Globe04-BqzzeANW.js";import{a as Ln,s as se}from"./UserSquare-Px337mEZ.js";import{u as Dn}from"./use-deployment-admin-iFKDbcn9.js";import{a as Rn}from"./admin-fetch-BhTJlAsX.js";import{a0 as zn,B as yt,y as Fn,a1 as Bn,a2 as Kn,n as _t,h as Mn,a3 as qn,k as Hn,a4 as Un}from"./agent-icon-1ZLmJzI_.js";import{s as Jn,d as Vn}from"./UserCheck01-KaL9LT_k.js";import{s as Gn}from"./XClose-Ag4juj36.js";import{l as Qt,i as Wn,c as Yn,b as Qn,a as Xn,w as Zn,O as es,j as ts,u as ns,k as ss,o as os}from"./use-org-notice-f36bS6Ot.js";import{u as is,a as as}from"./use-project-scope-DFi1C3LM.js";import{u as Xt,a as rs}from"./use-panel-navigate-D62Ggz47.js";import{i as me}from"./CheckCircle-DjioCEZU.js";import{i as It}from"./Monitor01-CH4nMVaL.js";import{i as Ve}from"./Zap-B-MuVCBU.js";import{s as Ot}from"./Plus-D2MIpYCd.js";import{a as ls}from"./Tool01-CYGCQ2nX.js";import{e as Ge,b as oe,d as cs,a as ds,c as us,C as ms}from"./command-jMuBLlSV.js";import{I as fs}from"./integration-icon-LSbi_JSK.js";import{P as gs}from"./project-icon-C3OB0ksw.js";import{a as hs}from"./use-navigate-to-agent-DgtgLLL4.js";import{u as ps}from"./use-debounced-value-nSwOlaIe.js";import{a as ys,m as bs}from"./use-mcp-client-Dk8pQYmf.js";import{a as xs}from"./new-project-dialog-D93CLZuz.js";import{u as ws,n as Ss}from"./new-project-store-DUIxP9OJ.js";import{L as js}from"./legacy-admin-welcome-dialog-JaU0aPzp.js";import{R as vs}from"./required-auth-layout-CBTYPSrv.js";import{t as ks,u as Ts,b as Ns,A as At}from"./use-view-draft-kind-C0DFt4DJ.js";import{u as Ps,a as _s,c as Is,b as Os}from"./thread-route-CNeJEPg7.js";import{c as As,f as Cs}from"./thread-intent-BpDB6WnP.js";import{u as Es}from"./use-blog-view-BaOyXftb.js";import{u as $s}from"./use-org-sso-cr7hA-rl.js";function Ls(t){const e=R.c(49),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=Q();let c;e[0]!==a||e[1]!==i?(c=async()=>{const I=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await I.json();if(!I.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=i,e[2]=c):c=e[2];let f;e[3]!==a?(f=I=>{window.location.href=`/${I.slug??a}`},e[3]=a,e[4]=f):f=e[4];let g;e[5]!==i?(g=I=>{We.error(I instanceof Error?I.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=g):g=e[6];let h;e[7]!==c||e[8]!==f||e[9]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[7]=c,e[8]=f,e[9]=g,e[10]=h):h=e[10];const d=Xe(h),u=Ds;let l;e[11]!==s||e[12]!==o?(l=s?n.jsx(gt,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Yt,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=l):l=e[13];let y;e[14]!==o||e[15]!==i?(y=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=y):y=e[16];let m;e[17]!==y?(m=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[17]=y,e[18]=m):m=e[18];let w;e[19]!==r||e[20]!==i?(w=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=w):w=e[21];let j;e[22]!==w?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[22]=w,e[23]=j):j=e[23];let p;e[24]!==m||e[25]!==j?(p=n.jsxs("div",{className:"space-y-2",children:[m,j]}),e[24]=m,e[25]=j,e[26]=p):p=e[26];let b;e[27]!==d?(b=()=>d.mutate(),e[27]=d,e[28]=b):b=e[28];let S;e[29]!==d.isPending||e[30]!==o||e[31]!==i?(S=d.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=d.isPending,e[30]=o,e[31]=i,e[32]=S):S=e[32];let x;e[33]!==d.isPending||e[34]!==b||e[35]!==S?(x=n.jsx(F,{onClick:b,disabled:d.isPending,children:S}),e[33]=d.isPending,e[34]=b,e[35]=S,e[36]=x):x=e[36];const k=d.isPending;let T;e[37]!==i?(T=i("common.goHome"),e[37]=i,e[38]=T):T=e[38];let v;e[39]!==d.isPending||e[40]!==T?(v=n.jsx(F,{variant:"ghost",onClick:u,disabled:k,children:T}),e[39]=d.isPending,e[40]=T,e[41]=v):v=e[41];let P;e[42]!==x||e[43]!==v?(P=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[x,v]}),e[42]=x,e[43]=v,e[44]=P):P=e[44];let _;return e[45]!==p||e[46]!==P||e[47]!==l?(_=n.jsxs(pe,{children:[l,p,P]}),e[45]=p,e[46]=P,e[47]=l,e[48]=_):_=e[48],_}function Ds(){window.location.href="/"}function Ct(t){const e=R.c(26),{orgSlug:o,orgId:a,orgName:s,reason:r}=t,i=Q(),{isAdmin:c}=Dn(),f=Rs,g=r==="not-found",h=g?Ln:zt;let d;e[0]!==g||e[1]!==i?(d=i(g?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=g,e[1]=i,e[2]=d):d=e[2];const u=d;let l;e[3]!==g||e[4]!==s||e[5]!==o||e[6]!==i?(l=g?n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:s??o}),".",n.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=g,e[4]=s,e[5]=o,e[6]=i,e[7]=l):l=e[7];const y=l;let m;e[8]!==h?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(h,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=h,e[9]=m):m=e[9];let w;e[10]!==u?(w=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[10]=u,e[11]=w):w=e[11];let j;e[12]!==y?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=j):j=e[13];let p;e[14]!==w||e[15]!==j?(p=n.jsxs("div",{className:"space-y-2",children:[w,j]}),e[14]=w,e[15]=j,e[16]=p):p=e[16];let b;e[17]!==c||e[18]!==a||e[19]!==o||e[20]!==i?(b=c&&a?n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[n.jsx(zs,{orgId:a,orgSlug:o}),n.jsx(F,{variant:"ghost",onClick:f,children:i("common.goHome")})]}):n.jsx(F,{onClick:f,children:i("common.goHome")}),e[17]=c,e[18]=a,e[19]=o,e[20]=i,e[21]=b):b=e[21];let S;return e[22]!==m||e[23]!==p||e[24]!==b?(S=n.jsxs(pe,{children:[m,p,b]}),e[22]=m,e[23]=p,e[24]=b,e[25]=S):S=e[25],S}function Rs(){window.location.href="/"}function zs(t){const e=R.c(20),{orgId:o,orgSlug:a}=t,s=Q(),{data:r}=fe.useSession(),i=r?.user.email;let c;e[0]!==i||e[1]!==o?(c=()=>Rn(`/api/_admin/orgs/${o}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=o,e[2]=c):c=e[2];let f;e[3]!==a?(f=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=f):f=e[4];let g;e[5]!==s?(g=w=>{We.error(w instanceof Error?w.message:s("common.noAccessScreen.adminJoinFailed"))},e[5]=s,e[6]=g):g=e[6];let h;e[7]!==c||e[8]!==f||e[9]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[7]=c,e[8]=f,e[9]=g,e[10]=h):h=e[10];const d=Xe(h);let u;e[11]!==d?(u=()=>d.mutate(),e[11]=d,e[12]=u):u=e[12];const l=!i||d.isPending;let y;e[13]!==d.isPending||e[14]!==s?(y=d.isPending?s("common.noAccessScreen.adminJoining"):s("common.noAccessScreen.adminJoin"),e[13]=d.isPending,e[14]=s,e[15]=y):y=e[15];let m;return e[16]!==u||e[17]!==l||e[18]!==y?(m=n.jsx(F,{onClick:u,disabled:l,children:y}),e[16]=u,e[17]=l,e[18]=y,e[19]=m):m=e[19],m}function Fs(t){const e=R.c(59),{invitationId:o,orgName:a,orgSlug:s,orgLogo:r}=t,i=Q();let c;e[0]!==o?(c=async()=>{const O=await fe.organization.acceptInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[0]=o,e[1]=c):c=e[1];let f;e[2]!==s?(f=()=>{cn(),window.location.href=`/${s}`},e[2]=s,e[3]=f):f=e[3];let g;e[4]!==i?(g=O=>{We.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=g):g=e[5];let h;e[6]!==c||e[7]!==f||e[8]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[6]=c,e[7]=f,e[8]=g,e[9]=h):h=e[9];const d=Xe(h);let u;e[10]!==o?(u=async()=>{const O=await fe.organization.rejectInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[10]=o,e[11]=u):u=e[11];let l,y;e[12]!==i?(l=()=>{We.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},y=O=>{We.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=y):(l=e[13],y=e[14]);let m;e[15]!==u||e[16]!==l||e[17]!==y?(m={mutationFn:u,onSuccess:l,onError:y},e[15]=u,e[16]=l,e[17]=y,e[18]=m):m=e[18];const w=Xe(m),j=d.isPending||w.isPending;let p;e[19]!==r||e[20]!==a?(p=r?n.jsx(gt,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(zn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=p):p=e[21];let b;e[22]!==a||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=b):b=e[24];let S;e[25]!==b?(S=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=e[26];let x;e[27]!==i?(x=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=x):x=e[28];let k;e[29]!==x?(k=n.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[29]=x,e[30]=k):k=e[30];let T;e[31]!==S||e[32]!==k?(T=n.jsxs("div",{className:"space-y-2",children:[S,k]}),e[31]=S,e[32]=k,e[33]=T):T=e[33];let v;e[34]!==d?(v=()=>d.mutate(),e[34]=d,e[35]=v):v=e[35];let P;e[36]!==d.isPending||e[37]!==i?(P=d.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=d.isPending,e[37]=i,e[38]=P):P=e[38];let _;e[39]!==j||e[40]!==v||e[41]!==P?(_=n.jsx(F,{onClick:v,disabled:j,children:P}),e[39]=j,e[40]=v,e[41]=P,e[42]=_):_=e[42];let I;e[43]!==w?(I=()=>w.mutate(),e[43]=w,e[44]=I):I=e[44];let A;e[45]!==w.isPending||e[46]!==i?(A=w.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=w.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==j||e[49]!==I||e[50]!==A?(E=n.jsx(F,{variant:"ghost",onClick:I,disabled:j,children:A}),e[48]=j,e[49]=I,e[50]=A,e[51]=E):E=e[51];let $;e[52]!==_||e[53]!==E?($=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,E]}),e[52]=_,e[53]=E,e[54]=$):$=e[54];let L;return e[55]!==T||e[56]!==$||e[57]!==p?(L=n.jsxs(pe,{children:[p,T,$]}),e[55]=T,e[56]=$,e[57]=p,e[58]=L):L=e[58],L}function Bs(t){const e=R.c(23),{orgName:o,orgLogo:a}=t,s=Q();let r;e[0]!==a||e[1]!==o?(r=a?n.jsx(gt,{url:a,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(Jn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=o,e[2]=r):r=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let c;e[5]!==i?(c=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let f;e[7]!==o||e[8]!==s?(f=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=f):f=e[9];let g;e[10]!==f?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[10]=f,e[11]=g):g=e[11];let h;e[12]!==c||e[13]!==g?(h=n.jsxs("div",{className:"space-y-2",children:[c,g]}),e[12]=c,e[13]=g,e[14]=h):h=e[14];let d;e[15]!==s?(d=s("common.goHome"),e[15]=s,e[16]=d):d=e[16];let u;e[17]!==d?(u=n.jsx(F,{variant:"ghost",onClick:Ks,children:d}),e[17]=d,e[18]=u):u=e[18];let l;return e[19]!==r||e[20]!==h||e[21]!==u?(l=n.jsxs(pe,{children:[r,h,u]}),e[19]=r,e[20]=h,e[21]=u,e[22]=l):l=e[22],l}function Ks(){window.location.href="/"}function Ms(t){const e=R.c(45),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=Q();let c;e[0]!==a?(c=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),I=await _.json();if(!_.ok||!I.success)throw new Error(I.error??"Failed to request access");return I},e[0]=a,e[1]=c):c=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=Hs,e[2]=f):f=e[2];let g;e[3]!==i?(g=_=>{We.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=g):g=e[4];let h;e[5]!==c||e[6]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[5]=c,e[6]=g,e[7]=h):h=e[7];const d=Xe(h);let u;e[8]!==s||e[9]!==o?(u=s?n.jsx(gt,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Yt,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=u):u=e[10];let l;e[11]!==o||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=l):l=e[13];let y;e[14]!==l?(y=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=y):y=e[15];let m;e[16]!==r||e[17]!==i?(m=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=m):m=e[18];let w;e[19]!==m?(w=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[19]=m,e[20]=w):w=e[20];let j;e[21]!==y||e[22]!==w?(j=n.jsxs("div",{className:"space-y-2",children:[y,w]}),e[21]=y,e[22]=w,e[23]=j):j=e[23];let p;e[24]!==d?(p=()=>d.mutate(),e[24]=d,e[25]=p):p=e[25];let b;e[26]!==d.isPending||e[27]!==i?(b=d.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=d.isPending,e[27]=i,e[28]=b):b=e[28];let S;e[29]!==d.isPending||e[30]!==p||e[31]!==b?(S=n.jsx(F,{onClick:p,disabled:d.isPending,children:b}),e[29]=d.isPending,e[30]=p,e[31]=b,e[32]=S):S=e[32];const x=d.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let T;e[35]!==d.isPending||e[36]!==k?(T=n.jsx(F,{variant:"ghost",onClick:qs,disabled:x,children:k}),e[35]=d.isPending,e[36]=k,e[37]=T):T=e[37];let v;e[38]!==S||e[39]!==T?(v=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,T]}),e[38]=S,e[39]=T,e[40]=v):v=e[40];let P;return e[41]!==j||e[42]!==v||e[43]!==u?(P=n.jsxs(pe,{children:[u,j,v]}),e[41]=j,e[42]=v,e[43]=u,e[44]=P):P=e[44],P}function qs(){window.location.href="/"}function Hs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Us(t){const e=R.c(7);let o;e[0]!==t?(o=ht.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let s;return e[4]!==o||e[5]!==a?(s={queryKey:o,queryFn:a,refetchOnWindowFocus:!1},e[4]=o,e[5]=a,e[6]=s):s=e[6],Ft(s)}function Js({orgSlug:t}){const{data:e}=Us(t);if(e.status!=="member"){const o=Bt()?.org===t;o&&Kt();const a=localStorage.getItem(Ze.lastOrgSlug())===t;if(a&&localStorage.removeItem(Ze.lastOrgSlug()),(o||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(Ct,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(Fs,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Ls,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Ms,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(Bs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(Ct,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function Zt(t){const e=R.c(42),{ariaLabel:o,dismissLabel:a,eyebrow:s,title:r,description:i,icon:c,children:f,footerLeading:g,actions:h,onDismiss:d,tone:u}=t,l=u===void 0?"neutral":u,y=g||h;let m;e[0]!==l?(m=l==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=m):m=e[1];let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=n.jsx(Gn,{size:14}),e[2]=w):w=e[2];let j;e[3]!==a||e[4]!==d?(j=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:d,children:w}),e[3]=a,e[4]=d,e[5]=j):j=e[5];const p=c&&"flex items-start gap-3",b=f&&"pb-3";let S;e[6]!==p||e[7]!==b?(S=bt("p-4 pr-11",p,b),e[6]=p,e[7]=b,e[8]=S):S=e[8];let x;e[9]!==c?(x=c&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=x):x=e[10];let k;e[11]!==s?(k=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=k):k=e[12];let T;e[13]!==r?(T=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=T):T=e[14];let v;e[15]!==i?(v=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=v):v=e[16];let P;e[17]!==T||e[18]!==v||e[19]!==k?(P=n.jsxs("div",{children:[k,T,v]}),e[17]=T,e[18]=v,e[19]=k,e[20]=P):P=e[20];let _;e[21]!==f?(_=f&&n.jsx("div",{className:"mt-3",children:f}),e[21]=f,e[22]=_):_=e[22];let I;e[23]!==P||e[24]!==_?(I=n.jsxs("div",{className:"min-w-0 flex-1",children:[P,_]}),e[23]=P,e[24]=_,e[25]=I):I=e[25];let A;e[26]!==I||e[27]!==S||e[28]!==x?(A=n.jsxs("div",{className:S,children:[x,I]}),e[26]=I,e[27]=S,e[28]=x,e[29]=A):A=e[29];let E;e[30]!==h||e[31]!==g||e[32]!==y||e[33]!==l?(E=y&&n.jsxs("div",{className:bt("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:g}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:h})]}),e[30]=h,e[31]=g,e[32]=y,e[33]=l,e[34]=E):E=e[34];let $;return e[35]!==o||e[36]!==A||e[37]!==E||e[38]!==m||e[39]!==j||e[40]!==l?($=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":l,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[m,j,A,E]}),e[35]=o,e[36]=A,e[37]=E,e[38]=m,e[39]=j,e[40]=l,e[41]=$):$=e[41],$}const Vs=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function Gs(t){return Vs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function Ws(t,e){return Gs(e).map(o=>({element:Qt(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const Ys=Qt("switcher"),Qs=30;function en(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Xs(t,e){return Ws(t,e).filter(o=>typeof o.element=="string"&&en(o.element))}function Zs(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(o,{driver:a})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>a.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{Qe=!1},steps:e}}let Qe=!1;async function eo(){return(await dn(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function to(t,e){if(Qe)return;Qe=!0;let o=0;const a=()=>{if(!en(Ys)&&o++<Qs){requestAnimationFrame(a);return}const s=Xs(t,e);if(s.length===0){Qe=!1;return}eo().then(r=>{r(Zs(t,s)).drive()}).catch(()=>{Qe=!1})};a()}const tn=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:It,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:yt,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:Vn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:kt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:se,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:It,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:se,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:me,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:Ve,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:se,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:me,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:Ve,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:me,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:se,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:Ve,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:se,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:me,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:Ve,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:se,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:me,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:Ve,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:se,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:yt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:me,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:kt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:Ve,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:me,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:se,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:yt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:se,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:Fn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],ft="studio.release-feed.v1",wt=new Set;let ge="",he={},St=!1;function no(){if(St)return ge||"{}";try{return localStorage.getItem(ft)??"{}"}catch{return ge||"{}"}}function nn(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Et(){const t=no();return t!==ge&&(ge=t,he=nn(t)),he}function so(t){wt.add(t);const e=o=>{if(!(o.key!==ft&&o.key!==null)){try{const a=localStorage.getItem(ft)??"{}",r={...nn(a),...he};he=r,ge=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{wt.delete(t),window.removeEventListener("storage",e)}}function oo(t){he=t,ge=JSON.stringify(t);try{localStorage.setItem(ft,ge),St=!1}catch{St=!0}wt.forEach(e=>e())}function io(){const t=R.c(7),e=X.useSyncExternalStore(so,Et,Et);let o;t[0]!==e?(o=f=>!!e[f],t[0]=e,t[1]=o):o=t[1];const a=o,s=ao;let r;t[2]!==e?(r=tn.reduce((f,g)=>e[g.id]?f:f+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let c;return t[4]!==a||t[5]!==i?(c={isSeen:a,markSeen:s,unseenCount:i},t[4]=a,t[5]=i,t[6]=c):c=t[6],c}function ao(t){he[t]||oo({...he,[t]:{seenAt:new Date().toISOString()}})}const $t=new Map;function sn(t){let e=$t.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},$t.set(t,e)),e}function ro(t,e){const o=sn(t);return o.subscribers.add(e),o.intervalId===null&&(o.intervalId=setInterval(()=>{o.now=Date.now();for(const a of o.subscribers)a()},t)),()=>{o.subscribers.delete(e),o.subscribers.size===0&&o.intervalId!==null&&(clearInterval(o.intervalId),o.intervalId=null)}}function lo(t){const e=R.c(4),o=t===void 0?6e4:t;let a;e[0]!==o?(a=()=>sn(o).now,e[0]=o,e[1]=a):a=e[1];const s=a;let r;return e[2]!==o?(r=i=>ro(o,i),e[2]=o,e[3]=r):r=e[3],X.useSyncExternalStore(r,s,s)}const co=720*60*60*1e3,uo=10080*60*1e3;function mo(t){const[e,o,a]=t.split("-").map(Number);return!e||!o||!a?new Date(t).getTime():new Date(e,o-1,a).getTime()}function fo(t){const e=tn[0];if(!e)return null;const o=mo(e.date),a=t-o;return a<0||a>co?null:e}function go(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function ho(t,e){const o=go(t);return o===null?!1:e-o>=uo}function po(){const t=R.c(46),e=Q(),o=is(),a=un(),s=Xt(),r=!!o,i=a===ie.home&&!o;let c;t[0]!==s||t[1]!==r?(c=r&&!!s&&Wn(s),t[0]=s,t[1]=r,t[2]=c):c=t[2];const f=c,{data:g}=fe.useSession(),{isSeen:h,markSeen:d}=io(),u=lo(6e4);let l,y,m;if(t[3]!==h||t[4]!==u||t[5]!==g?.user?.createdAt){m=Symbol.for("react.early_return_sentinel");e:{if(l=fo(u),!l){m=null;break e}if(!ho(g?.user?.createdAt,u)){m=null;break e}y=h(l.id)}t[3]=h,t[4]=u,t[5]=g?.user?.createdAt,t[6]=l,t[7]=y,t[8]=m}else l=t[6],y=t[7],m=t[8];if(m!==Symbol.for("react.early_return_sentinel"))return m;if(y)return null;let w;t[9]!==l.id||t[10]!==r||t[11]!==d||t[12]!==i||t[13]!==f||t[14]!==e?(w=()=>{d(l.id),to(e,{onOrgHome:i,inProject:r,onSiteEditor:f})},t[9]=l.id,t[10]=r,t[11]=d,t[12]=i,t[13]=f,t[14]=e,t[15]=w):w=t[15];const j=w;let p;t[16]!==e?(p=e("announcements.release.ariaLabel"),t[16]=e,t[17]=p):p=t[17];let b;t[18]!==e?(b=e("announcements.release.dismiss"),t[18]=e,t[19]=b):b=t[19];const S=l.eyebrow,x=l.title;let k;t[20]!==l.id||t[21]!==d?(k=()=>d(l.id),t[20]=l.id,t[21]=d,t[22]=k):k=t[22];let T;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==d||t[26]!==e?(T=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>d(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=l.id,t[24]=l.learnMoreHref,t[25]=d,t[26]=e,t[27]=T):T=t[27];let v;t[28]!==l.cta||t[29]!==l.id||t[30]!==d||t[31]!==j?(v=l.cta?"href"in l.cta?n.jsx(F,{asChild:!0,size:"sm",onClick:()=>d(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):n.jsx(F,{size:"sm",onClick:j,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=d,t[31]=j,t[32]=v):v=t[32];let P;t[33]!==l.bullets?(P=l.bullets.map(yo),t[33]=l.bullets,t[34]=P):P=t[34];let _;t[35]!==P?(_=n.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=_):_=t[36];let I;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==v||t[40]!==_||t[41]!==p||t[42]!==b||t[43]!==k||t[44]!==T?(I=n.jsx(Zt,{ariaLabel:p,dismissLabel:b,eyebrow:S,title:x,onDismiss:k,footerLeading:T,actions:v,children:_}),t[37]=l.eyebrow,t[38]=l.title,t[39]=v,t[40]=_,t[41]=p,t[42]=b,t[43]=k,t[44]=T,t[45]=I):I=t[45],I}function yo(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function bo(t){const e=R.c(11),{open:o,onOpenChange:a}=t,s=Q();let r;e[0]!==s?(r=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=r):r=e[1];let i;e[2]!==r?(i=n.jsx(Mt,{children:n.jsx(qt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"flex flex-col gap-4",children:mn.map(xo)}),e[4]=c):c=e[4];let f;e[5]!==i?(f=n.jsxs(Ht,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=f):f=e[6];let g;return e[7]!==a||e[8]!==o||e[9]!==f?(g=n.jsx(Ut,{open:o,onOpenChange:a,children:f}),e[7]=a,e[8]=o,e[9]=f,e[10]=g):g=e[10],g}function xo(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(wo)})]},t.label)}function wo(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(So)})]},t.description)}function So(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const Lt=8,Ye=["all","organizations","projects","chats","connections","actions"],jo=5;function Dt(t){switch(t){case"all":return"commandPalette.scope.all";case"organizations":return"commandPalette.organizations";case"projects":return"commandPalette.projects";case"chats":return"commandPalette.scope.chats";case"connections":return"commandPalette.connections";case"actions":return"commandPalette.actions";default:return t}}function vo(t,e){const o=a=>{const s=e.indexOf(a);return s===-1?Number.POSITIVE_INFINITY:s};return[...t].sort((a,s)=>o(a.slug)-o(s.slug)||a.name.localeCompare(s.name))}function ko(t,e){const{org:o}=jt(),a=ys({connectionId:Vt,orgId:o.id,orgSlug:o.slug}),{data:s}=et({queryKey:ht.globalSearch(o.id,t,Lt),enabled:e&&!!a&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!a)return[];try{return(await a.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:Lt}})).structuredContent?.items??[]}catch{return[]}}});return s??[]}function To(t){const e=R.c(213),{open:o,onOpenChange:a}=t,s=Q(),r=Jt(),{org:i}=jt(),{projects:c,hasProjects:f}=as(),{remember:g}=hs(i.slug),[h,d]=X.useState(""),[u,l]=X.useState("all");let y;e[0]!==u?(y=z=>u==="all"||u===z,e[0]=u,e[1]=y):y=e[1];const m=y,w=X.useDeferredValue(h),j=ko(w,m("chats")||m("connections")),p=Yn(),{data:b}=fn(),{recent:S}=Qn();let x;e[2]!==h?(x=h.trim(),e[2]=h,e[3]=x):x=e[3];const k=x,T=ps(k,150),{hits:v}=Xn(m("organizations")?T:"");let P,_;if(e[4]!==i||e[5]!==v||e[6]!==b||e[7]!==S){const z=vo(Zn(b??[],i),S);let U;e[10]!==v?(U=new Set(v.map(Io)),e[10]=v,e[11]=U):U=e[11],P=U,_=[...z,...v.filter(Ie=>!z.some(B=>B.id===Ie.id))],e[4]=i,e[5]=v,e[6]=b,e[7]=S,e[8]=P,e[9]=_}else P=e[8],_=e[9];const I=_;let A;e[12]!==I||e[13]!==i.slug||e[14]!==u||e[15]!==k?(A=u==="all"&&!k?I.filter(z=>z.slug!==i.slug).slice(0,jo):I,e[12]=I,e[13]=i.slug,e[14]=u,e[15]=k,e[16]=A):A=e[16];const E=A;let $;e[17]!==a?($=()=>{a(!1),d(""),l("all")},e[17]=a,e[18]=$):$=e[18];const L=$;let O;e[19]!==u?(O=z=>{const U=Ye.indexOf(u);l(Ye[(U+z+Ye.length)%Ye.length]??"all")},e[19]=u,e[20]=O):O=e[20];const K=O;let H;e[21]!==L?(H=(z,U)=>{xt("command_palette_used",{kind:U}),z(),L()},e[21]=L,e[22]=H):H=e[22];const D=H;let ae;e[23]!==r||e[24]!==i.id||e[25]!==i.slug?(ae=z=>{if(z.type==="connection"){if(!z.slug){r({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:z.slug}});return}if(z.type==="task"){r({to:ie.tasks,params:{org:i.slug,taskKey:z.key??void 0}});return}const U=Gt(i.id).id;gn(r,hn({org:i.slug,agentId:z.virtual_mcp_id??U,superAgentId:U}),{search:()=>({thread:z.id}),replace:!1})},e[23]=r,e[24]=i.id,e[25]=i.slug,e[26]=ae):ae=e[26];const Z=ae;let ee;e[27]!==h?(ee=[h],e[27]=h,e[28]=ee):ee=e[28];const ne=ee;let te,J,V,q,G,W,Y,C,M,ye,be,re,le,ce,de,ue;if(e[29]!==L||e[30]!==K||e[31]!==D||e[32]!==f||e[33]!==j||e[34]!==r||e[35]!==a||e[36]!==o||e[37]!==Z||e[38]!==i.slug||e[39]!==E||e[40]!==c||e[41]!==g||e[42]!==ne||e[43]!==u||e[44]!==P||e[45]!==m||e[46]!==s||e[47]!==h||e[48]!==p){const z=j.filter(_o),U=j.filter(Po);let Ie;e[65]!==i.slug?(Ie={org:i.slug},e[65]=i.slug,e[66]=Ie):Ie=e[66];const B=Ie;let Oe;e[67]!==s?(Oe=s("sidebar.navDestinations.home"),e[67]=s,e[68]=Oe):Oe=e[68];let at;e[69]===Symbol.for("react.memo_cache_sentinel")?(at=n.jsx(Mn,{"aria-hidden":"true"}),e[69]=at):at=e[69];let Ae;e[70]!==B||e[71]!==Oe?(Ae={key:"home",label:Oe,icon:at,to:ie.home,params:B},e[70]=B,e[71]=Oe,e[72]=Ae):Ae=e[72];let Ce;e[73]!==s?(Ce=s("sidebar.navDestinations.reports"),e[73]=s,e[74]=Ce):Ce=e[74];let rt;e[75]===Symbol.for("react.memo_cache_sentinel")?(rt=n.jsx(qn,{"aria-hidden":"true"}),e[75]=rt):rt=e[75];let Ee;e[76]!==B||e[77]!==Ce?(Ee={key:"reports",label:Ce,icon:rt,to:ie.reports,params:B},e[76]=B,e[77]=Ce,e[78]=Ee):Ee=e[78];let $e;e[79]!==s?($e=s("sidebar.navDestinations.tasks"),e[79]=s,e[80]=$e):$e=e[80];let lt;e[81]===Symbol.for("react.memo_cache_sentinel")?(lt=n.jsx(_t,{"aria-hidden":"true"}),e[81]=lt):lt=e[81];let Le;e[82]!==i.slug?(Le={org:i.slug,taskKey:void 0},e[82]=i.slug,e[83]=Le):Le=e[83];let De;e[84]!==$e||e[85]!==Le?(De={key:"tasks",label:$e,icon:lt,to:ie.tasks,params:Le},e[84]=$e,e[85]=Le,e[86]=De):De=e[86];let Re;e[87]!==s?(Re=s("sidebar.navDestinations.library"),e[87]=s,e[88]=Re):Re=e[88];let ct;e[89]===Symbol.for("react.memo_cache_sentinel")?(ct=n.jsx(Hn,{"aria-hidden":"true"}),e[89]=ct):ct=e[89];let ze;e[90]!==B||e[91]!==Re?(ze={key:"library",label:Re,icon:ct,to:ie.library,params:B},e[90]=B,e[91]=Re,e[92]=ze):ze=e[92];let Fe;e[93]!==s?(Fe=s("sidebar.navDestinations.discover"),e[93]=s,e[94]=Fe):Fe=e[94];let dt;e[95]===Symbol.for("react.memo_cache_sentinel")?(dt=n.jsx(Un,{"aria-hidden":"true"}),e[95]=dt):dt=e[95];let Be;e[96]!==B||e[97]!==Fe?(Be={key:"discover",label:Fe,icon:dt,to:ie.discover,params:B},e[96]=B,e[97]=Fe,e[98]=Be):Be=e[98];let ut;e[99]!==Ae||e[100]!==Ee||e[101]!==De||e[102]!==ze||e[103]!==Be?(ut=[Ae,Ee,De,ze,Be],e[99]=Ae,e[100]=Ee,e[101]=De,e[102]=ze,e[103]=Be,e[104]=ut):ut=e[104];const pt=ut;J=cs,be=o,e[105]!==L||e[106]!==a?(re=N=>N?a(!0):L(),e[105]=L,e[106]=a,e[107]=re):re=e[107],e[108]!==s?(le=s("commandPalette.title"),e[108]=s,e[109]=le):le=e[109],e[110]!==s?(ce=s("commandPalette.description"),e[110]=s,e[111]=ce):ce=e[111];let Ke;e[112]!==u||e[113]!==s?(Ke=u==="all"?s("commandPalette.placeholder"):s("commandPalette.placeholderScoped",{scope:s(Dt(u)).toLowerCase()}),e[112]=u,e[113]=s,e[114]=Ke):Ke=e[114];let Me;e[115]!==s?(Me=s("commandPalette.placeholder"),e[115]=s,e[116]=Me):Me=e[116];let qe;e[117]!==K||e[118]!==u||e[119]!==h?(qe=N=>{if(N.key==="Tab"){N.preventDefault(),K(N.shiftKey?-1:1);return}N.key==="Backspace"&&!h&&u!=="all"&&(N.preventDefault(),l("all"))},e[117]=K,e[118]=u,e[119]=h,e[120]=qe):qe=e[120],e[121]!==Ke||e[122]!==Me||e[123]!==qe||e[124]!==h?(de=n.jsx(ds,{placeholder:Ke,"aria-label":Me,value:h,onValueChange:d,onKeyDown:qe}),e[121]=Ke,e[122]=Me,e[123]=qe,e[124]=h,e[125]=de):de=e[125];let He;e[126]!==s?(He=s("commandPalette.scope.label"),e[126]=s,e[127]=He):He=e[127];let Ue;e[128]!==u||e[129]!==s?(Ue=Ye.map(N=>n.jsx("button",{type:"button",role:"radio","aria-checked":u===N,tabIndex:-1,onMouseDown:No,onClick:()=>l(N),className:bt("h-7 shrink-0 cursor-pointer rounded-full px-3 text-xs font-medium transition-colors focus-ring",u===N?"bg-foreground text-background":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:s(Dt(N))},N)),e[128]=u,e[129]=s,e[130]=Ue):Ue=e[130],e[131]!==He||e[132]!==Ue?(ue=n.jsx("div",{role:"radiogroup","aria-label":He,className:"flex gap-1 overflow-x-auto border-b px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Ue}),e[131]=He,e[132]=Ue,e[133]=ue):ue=e[133],te=us,V="h-[min(420px,60vh)] max-h-none";let Je;e[134]!==s?(Je=s("commandPalette.empty"),e[134]=s,e[135]=Je):Je=e[135],e[136]!==Je?(q=n.jsx(ms,{children:Je}),e[136]=Je,e[137]=q):q=e[137],e[138]!==D||e[139]!==i.slug||e[140]!==E||e[141]!==P||e[142]!==m||e[143]!==s||e[144]!==h||e[145]!==p?(G=m("organizations")&&E.length>0&&n.jsx(Ge,{heading:s("commandPalette.organizations"),children:E.map(N=>n.jsxs(oe,{value:`org ${N.name} ${N.slug}`,keywords:P.has(N.id)?[h]:void 0,onSelect:()=>D(()=>p(N.slug),"organization"),children:[n.jsx(es,{org:N,size:"xs"}),n.jsx("span",{className:"min-w-0 flex-1 truncate",children:N.name}),N.slug===i.slug&&n.jsx("span",{className:"text-meta shrink-0",children:s("sidebar.rail.currentOrganization")})]},`org:${N.id}`))}),e[138]=D,e[139]=i.slug,e[140]=E,e[141]=P,e[142]=m,e[143]=s,e[144]=h,e[145]=p,e[146]=G):G=e[146],e[147]!==pt||e[148]!==D||e[149]!==r||e[150]!==m||e[151]!==s?(W=m("actions")&&n.jsx(Ge,{heading:s("commandPalette.goTo"),children:pt.map(N=>n.jsxs(oe,{onSelect:()=>D(()=>r({to:N.to,params:N.params}),"destination"),children:[N.icon,n.jsx("span",{children:N.label})]},N.key))}),e[147]=pt,e[148]=D,e[149]=r,e[150]=m,e[151]=s,e[152]=W):W=e[152],e[153]!==D||e[154]!==f||e[155]!==r||e[156]!==i.slug||e[157]!==c||e[158]!==g||e[159]!==m||e[160]!==s?(Y=m("projects")&&f&&n.jsx(Ge,{heading:s("commandPalette.projects"),children:c.map(N=>n.jsxs(oe,{value:`project ${N.title}`,onSelect:()=>D(()=>{g(N.id),r({to:ie.projects,params:{org:i.slug,agentId:N.id}})},"project"),children:[n.jsx(gs,{icon:N.icon,name:N.title,"aria-hidden":"true"}),n.jsx("span",{children:N.title})]},N.id))}),e[153]=D,e[154]=f,e[155]=r,e[156]=i.slug,e[157]=c,e[158]=g,e[159]=m,e[160]=s,e[161]=Y):Y=e[161],e[162]!==D||e[163]!==r||e[164]!==B||e[165]!==m||e[166]!==s?(C=m("actions")&&n.jsxs(Ge,{heading:s("commandPalette.actions"),children:[n.jsxs(oe,{value:s("commandPalette.newProject"),onSelect:()=>D(()=>r({to:ie.home,params:B}),"new_project"),children:[n.jsx(Ot,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.newProject")})]}),n.jsxs(oe,{value:s("commandPalette.inviteTeammate"),onSelect:()=>D(()=>r({to:"/$org/settings/members",params:B}),"invite"),children:[n.jsx(Bn,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.inviteTeammate")})]}),n.jsxs(oe,{value:s("commandPalette.addConnection"),onSelect:()=>D(()=>r({to:"/$org/settings/connections",params:B,search:{tab:"all"}}),"add_connection"),children:[n.jsx(Ot,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.addConnection")})]}),n.jsxs(oe,{value:s("commandPalette.settings"),onSelect:()=>D(()=>r({to:"/$org/settings/general",params:B}),"settings"),children:[n.jsx(ls,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.settings")})]})]}),e[162]=D,e[163]=r,e[164]=B,e[165]=m,e[166]=s,e[167]=C):C=e[167],M=m("connections")&&z.length>0&&n.jsx(Ge,{heading:s("commandPalette.connections"),children:z.map(N=>n.jsxs(oe,{value:`${N.title} ${N.id}`,keywords:ne,onSelect:()=>D(()=>Z(N),"connection"),children:[n.jsx(fs,{icon:N.icon,name:N.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:N.title})]},`connection:${N.id}`))}),ye=m("chats")&&U.length>0&&n.jsx(Ge,{heading:s("commandPalette.results"),children:U.map(N=>n.jsxs(oe,{value:`${N.title} ${N.id}`,keywords:ne,onSelect:()=>D(()=>Z(N),N.type),children:[N.type==="thread"?n.jsx(Kn,{"aria-hidden":"true"}):n.jsx(_t,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:N.title}),N.type==="task"&&N.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:N.key})]},`${N.type}:${N.id}`))}),e[29]=L,e[30]=K,e[31]=D,e[32]=f,e[33]=j,e[34]=r,e[35]=a,e[36]=o,e[37]=Z,e[38]=i.slug,e[39]=E,e[40]=c,e[41]=g,e[42]=ne,e[43]=u,e[44]=P,e[45]=m,e[46]=s,e[47]=h,e[48]=p,e[49]=te,e[50]=J,e[51]=V,e[52]=q,e[53]=G,e[54]=W,e[55]=Y,e[56]=C,e[57]=M,e[58]=ye,e[59]=be,e[60]=re,e[61]=le,e[62]=ce,e[63]=de,e[64]=ue}else te=e[49],J=e[50],V=e[51],q=e[52],G=e[53],W=e[54],Y=e[55],C=e[56],M=e[57],ye=e[58],be=e[59],re=e[60],le=e[61],ce=e[62],de=e[63],ue=e[64];let xe;e[168]!==te||e[169]!==V||e[170]!==q||e[171]!==G||e[172]!==W||e[173]!==Y||e[174]!==C||e[175]!==M||e[176]!==ye?(xe=n.jsxs(te,{className:V,children:[q,G,W,Y,C,M,ye]}),e[168]=te,e[169]=V,e[170]=q,e[171]=G,e[172]=W,e[173]=Y,e[174]=C,e[175]=M,e[176]=ye,e[177]=xe):xe=e[177];let tt;e[178]===Symbol.for("react.memo_cache_sentinel")?(tt=["↑","↓"],e[178]=tt):tt=e[178];let we;e[179]!==s?(we=s("commandPalette.hint.navigate"),e[179]=s,e[180]=we):we=e[180];let Se;e[181]!==we?(Se=n.jsx(mt,{keys:tt,label:we}),e[181]=we,e[182]=Se):Se=e[182];let nt;e[183]===Symbol.for("react.memo_cache_sentinel")?(nt=["↵"],e[183]=nt):nt=e[183];let je;e[184]!==s?(je=s("commandPalette.hint.open"),e[184]=s,e[185]=je):je=e[185];let ve;e[186]!==je?(ve=n.jsx(mt,{keys:nt,label:je}),e[186]=je,e[187]=ve):ve=e[187];let st;e[188]===Symbol.for("react.memo_cache_sentinel")?(st=["Tab"],e[188]=st):st=e[188];let ke;e[189]!==s?(ke=s("commandPalette.hint.filter"),e[189]=s,e[190]=ke):ke=e[190];let Te;e[191]!==ke?(Te=n.jsx(mt,{keys:st,label:ke}),e[191]=ke,e[192]=Te):Te=e[192];let ot;e[193]===Symbol.for("react.memo_cache_sentinel")?(ot=["Esc"],e[193]=ot):ot=e[193];let Ne;e[194]!==s?(Ne=s("commandPalette.hint.close"),e[194]=s,e[195]=Ne):Ne=e[195];let Pe;e[196]!==Ne?(Pe=n.jsx(mt,{keys:ot,label:Ne}),e[196]=Ne,e[197]=Pe):Pe=e[197];let _e;e[198]!==Se||e[199]!==ve||e[200]!==Te||e[201]!==Pe?(_e=n.jsxs("div",{className:"flex items-center gap-4 border-t px-3 py-2 text-xs text-muted-foreground",children:[Se,ve,Te,Pe]}),e[198]=Se,e[199]=ve,e[200]=Te,e[201]=Pe,e[202]=_e):_e=e[202];let it;return e[203]!==J||e[204]!==be||e[205]!==re||e[206]!==le||e[207]!==ce||e[208]!==de||e[209]!==ue||e[210]!==xe||e[211]!==_e?(it=n.jsxs(J,{open:be,onOpenChange:re,title:le,description:ce,children:[de,ue,xe,_e]}),e[203]=J,e[204]=be,e[205]=re,e[206]=le,e[207]=ce,e[208]=de,e[209]=ue,e[210]=xe,e[211]=_e,e[212]=it):it=e[212],it}function No(t){return t.preventDefault()}function Po(t){return t.type!=="connection"}function _o(t){return t.type==="connection"}function Io(t){return t.id}function mt(t){const e=R.c(7),{keys:o,label:a}=t;let s;e[0]!==o?(s=o.map(Oo),e[0]=o,e[1]=s):s=e[1];let r;e[2]!==s?(r=n.jsx("span",{className:"flex items-center gap-0.5",children:s}),e[2]=s,e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==r?(i=n.jsxs("span",{className:"flex items-center gap-1.5",children:[r,a]}),e[4]=a,e[5]=r,e[6]=i):i=e[6],i}function Oo(t){return n.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border bg-muted px-1 font-mono text-2xs",children:t},t)}const Ao=300*1e3,Co=2;function Eo(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function $o(t,e){return t.count>=Co&&t.version!==null&&t.version!==e}function Lo(){const t=R.c(31),e=Q();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:ht.appVersionCheck(),queryFn:Ro,refetchInterval:Ao,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:a,dataUpdatedAt:s}=et(o),[r,i]=X.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[f,g]=X.useState(c);s!==r&&(i(s),g(v=>Eo(v,a,"4.613.1")));const[h,d]=X.useState(null);if(!$o(f,h))return null;let u;t[2]!==e?(u=e("announcements.version.ariaLabel"),t[2]=e,t[3]=u):u=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let y;t[6]!==e?(y=e("announcements.version.eyebrow"),t[6]=e,t[7]=y):y=t[7];let m;t[8]!==e?(m=e("announcements.version.title"),t[8]=e,t[9]=m):m=t[9];let w;t[10]!==e?(w=e("announcements.version.description"),t[10]=e,t[11]=w):w=t[11];let j;t[12]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Tt,{size:16}),t[12]=j):j=t[12];let p;t[13]!==f.version?(p=()=>d(f.version),t[13]=f.version,t[14]=p):p=t[14];let b;t[15]!==e?(b=e("announcements.version.currentSession",{version:"4.613.1"}),t[15]=e,t[16]=b):b=t[16];let S;t[17]!==e?(S=e("announcements.version.refresh"),t[17]=e,t[18]=S):S=t[18];let x;t[19]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(Tt,{size:14}),t[19]=x):x=t[19];let k;t[20]!==S?(k=n.jsxs(F,{size:"sm",onClick:Do,children:[S,x]}),t[20]=S,t[21]=k):k=t[21];let T;return t[22]!==k||t[23]!==u||t[24]!==l||t[25]!==y||t[26]!==m||t[27]!==w||t[28]!==p||t[29]!==b?(T=n.jsx(Zt,{ariaLabel:u,dismissLabel:l,eyebrow:y,title:m,description:w,icon:j,tone:"system",onDismiss:p,footerLeading:b,actions:k}),t[22]=k,t[23]=u,t[24]=l,t[25]=y,t[26]=m,t[27]=w,t[28]=p,t[29]=b,t[30]=T):T=t[30],T}function Do(){return window.location.reload()}async function Ro(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function zo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Fo=Date.parse("2026-07-21T00:00:00Z"),Rt=t=>zo(Ze.ptBrAnnouncementSeen(t));function Bo(){const t=R.c(35),e=Q(),[o,a]=pn(),{data:s,isPending:r}=fe.useSession(),i=s?.user,c=i?.id,f=i?.createdAt,g=f!=null&&new Date(f).getTime()<Fo,h=yn()==="pt-BR",d=!r&&!!c&&g&&h&&o.language==="en"&&!Rt(c).has()&&!bn(),[u,l]=X.useState(!1),[y,m]=X.useState(!1);!u&&!r&&(l(!0),d&&c&&(Rt(c).mark(),a(Mo),m(!0),xt("pt_br_auto_switch_shown")));let w;t[0]===Symbol.for("react.memo_cache_sentinel")?(w=D=>{xt("pt_br_auto_switch_closed",{action:D}),m(!1)},t[0]=w):w=t[0];const j=w;let p;t[1]!==a?(p=()=>{a(Ko),j("switch-back")},t[1]=a,t[2]=p):p=t[2];const b=p;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=D=>!D&&j("dismiss"),t[3]=S):S=t[3];let x;t[4]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=x):x=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let T;t[7]!==k?(T=n.jsx(qt,{children:k}),t[7]=k,t[8]=T):T=t[8];let v;t[9]!==e?(v=e("announcements.ptBr.description"),t[9]=e,t[10]=v):v=t[10];let P;t[11]!==v?(P=n.jsx(xn,{children:v}),t[11]=v,t[12]=P):P=t[12];let _;t[13]!==T||t[14]!==P?(_=n.jsxs(Mt,{children:[T,P]}),t[13]=T,t[14]=P,t[15]=_):_=t[15];let I;t[16]!==e?(I=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=I):I=t[17];let A;t[18]!==b||t[19]!==I?(A=n.jsx(F,{variant:"outline",onClick:b,children:I}),t[18]=b,t[19]=I,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>j("ok"),t[21]=E):E=t[21];let $;t[22]!==e?($=e("announcements.ptBr.ok"),t[22]=e,t[23]=$):$=t[23];let L;t[24]!==$?(L=n.jsx(F,{onClick:E,children:$}),t[24]=$,t[25]=L):L=t[25];let O;t[26]!==A||t[27]!==L?(O=n.jsxs(wn,{children:[A,L]}),t[26]=A,t[27]=L,t[28]=O):O=t[28];let K;t[29]!==O||t[30]!==_?(K=n.jsxs(Ht,{className:"sm:max-w-md",children:[x,_,O]}),t[29]=O,t[30]=_,t[31]=K):K=t[31];let H;return t[32]!==y||t[33]!==K?(H=n.jsx(Ut,{open:y,onOpenChange:S,children:K}),t[32]=y,t[33]=K,t[34]=H):H=t[34],H}function Ko(t){return{...t,language:"en"}}function Mo(t){return{...t,language:"pt-BR"}}function qo(t){const e=Sn(t);return typeof e=="string"?e:void 0}function Ho(){return qo("experiment-pipeline-check"),null}function Uo(t){const e=R.c(1),{activeOrg:o}=t;if(!o)return null;jn(o.id,{name:o.name??void 0,slug:o.slug??void 0}),vn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(Ho,{}),e[0]=a):a=e[0],a}function Jo(t){const{prev:e,virtualMcpId:o,decopilotId:a,savedLayout:s,opts:r,autosendValue:i}=t,c={mainpanel:void 0};o?c.virtualmcpid=o:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const f=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,h=(o??f)!==f;let d,u;return r?.panel?u=r.panel:r?.newThread&&!h&&kn(e.tabId)?(u=e.tabId,c.mainpanel=e.mainpanel,d=e.sidepanel):s?(u=s.tab,s.sidepanel!==void 0&&(d=s.sidepanel),s.mainpanel!==void 0&&(c.mainpanel=s.mainpanel)):!h&&e.tabId&&!Tn(e.tabId)&&(u=e.tabId),d!==void 0&&(c.sidepanel=d),r?.autosend&&(c.autosend=i),{tabId:ks(u,t.target,t.blogView),search:c}}const on="studio:thread-layout:v4",Vo=50;function an(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function Go(t,e,o,a=Vo){const s=t.filter(([r])=>r!==e);for(s.push([e,an(o)]);s.length>a;)s.shift();return s}function vt(){try{const t=sessionStorage.getItem(on);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function rn(t){try{sessionStorage.setItem(on,JSON.stringify(t))}catch{}}function Wo(t,e){t&&rn(Go(vt(),t,e))}function Yo(t){if(!t)return null;const e=vt().find(([o])=>o===t);return e?an(e[1]):null}function Ki(t){if(!t)return;const e=vt(),o=e.filter(([a])=>a!==t);o.length!==e.length&&rn(o)}function ln(t){return{queryKey:ht.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Mi(t){const e=R.c(10);let o;e[0]!==t?(o=ln(t),e[0]=t,e[1]=o):o=e[1];const a=et(o);let s;e[2]!==a.data?.prompts?(s=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=s):s=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==s||e[8]!==r?(i={isLoading:a.isLoading,prompts:s,tiles:r},e[6]=a.isLoading,e[7]=s,e[8]=r,e[9]=i):i=e[9],i}function Qo(t){const e=R.c(31),{orgSlug:o,orgName:a,domain:s}=t,r=Q();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const c=i,f=Xo;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(zt,{className:"h-6 w-6 text-primary"})}),e[2]=g):g=e[2];let h;e[3]!==r?(h=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=h):h=e[4];let d;e[5]!==h?(d=n.jsx("h3",{className:"text-lg font-medium",children:h}),e[5]=h,e[6]=d):d=e[6];let u;e[7]!==s||e[8]!==a||e[9]!==r?(u=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${r("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=a,e[9]=r,e[10]=u):u=e[10];let l;e[11]!==u?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[11]=u,e[12]=l):l=e[12];let y;e[13]!==d||e[14]!==l?(y=n.jsxs("div",{className:"space-y-2",children:[d,l]}),e[13]=d,e[14]=l,e[15]=y):y=e[15];let m;e[16]!==r?(m=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=m):m=e[17];let w;e[18]!==c||e[19]!==m?(w=n.jsx(F,{onClick:c,children:m}),e[18]=c,e[19]=m,e[20]=w):w=e[20];let j;e[21]!==r?(j=r("common.goBack"),e[21]=r,e[22]=j):j=e[22];let p;e[23]!==j?(p=n.jsx(F,{variant:"ghost",onClick:f,children:j}),e[23]=j,e[24]=p):p=e[24];let b;e[25]!==p||e[26]!==w?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,p]}),e[25]=p,e[26]=w,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==y?(S=n.jsxs(pe,{children:[g,y,b]}),e[28]=b,e[29]=y,e[30]=S):S=e[30],S}function Xo(){window.location.href="/"}function Zo(t){const e=R.c(27),{notice:o,orgSlug:a}=t,s=Q();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(Nn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let c;e[3]!==o.message?(c=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=c):c=e[4];let f;e[5]!==i||e[6]!==c?(f=n.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=f):f=e[7];let g;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(g=o.ctaUrl&&o.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=g):g=e[10];const h=`/${encodeURIComponent(a)}/settings/infra-billing`;let d;e[11]!==s?(d=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=d):d=e[12];let u;e[13]!==h||e[14]!==d?(u=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:h,children:d})}),e[13]=h,e[14]=d,e[15]=u):u=e[15];let l;e[16]!==s?(l=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=l):l=e[17];let y;e[18]!==l?(y=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=y):y=e[19];let m;e[20]!==y||e[21]!==g||e[22]!==u?(m=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,u,y]}),e[20]=y,e[21]=g,e[22]=u,e[23]=m):m=e[23];let w;return e[24]!==m||e[25]!==f?(w=n.jsxs(pe,{children:[r,f,m]}),e[24]=m,e[25]=f,e[26]=w):w=e[26],w}const ei="/settings/infra-billing";function ti(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(ei)}function ni(t){const e=R.c(7),{org:o,children:a}=t;let s;e[0]!==o.id||e[1]!==o.name?(s={id:o.id,organizationId:o.id,slug:"_org",name:o.name,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s):s=e[2];const r=s;let i;return e[3]!==a||e[4]!==o||e[5]!==r?(i=n.jsx($n,{org:o,project:r,children:a}),e[3]=a,e[4]=o,e[5]=r,e[6]=i):i=e[6],i}function si(){const t=Jt(),e=As(),{org:o}=jt(),a=Pn({strict:!1}),s=Xt(),{openPanel:r,closePanel:i}=rs(),c=Ps(),f=_s(),g=Is(),h=Os(),d=Ts(),u=Es(),{data:l}=fe.useSession(),y=(p,b=!0)=>t({to:".",search:p,replace:b}),m=()=>y(p=>({...p,sidepanel:!0})),w=(p,b,S)=>{const x=!!f&&f===p;f&&!x&&Wo(f,{tab:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const k=x?null:Yo(p),T=Gt(o.id).id;if(b===T&&!S?.panel)return h(p,()=>S?.autosend?{autosend:At}:{});const v=Jo({prev:{virtualmcpid:c,tabId:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:b,decopilotId:T,savedLayout:k,opts:S,autosendValue:At,target:e?.threads.get().find(P=>P.id===p),blogView:u});return h(p,()=>v.search,{virtualMcpId:b,view:{tabId:v.tabId}})};return{openSidePanel:m,setTaskId:w,createNewTask:async(p,b,S)=>{const x=crypto.randomUUID(),k=p??g,T=d==="blog"&&k===g&&!S?.panel?Ns(b,Cs(l?.user)):null;try{await e?.create({id:x,virtual_mcp_id:k,...T??(b?{branch:b}:{})})}catch{}w(x,k,{...S,newThread:!0})},openTab:r,closeTab:i}}const oi=new Set(["/$org/","/$org/home"]);function ii(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ai},t[0]=e):e=t[0],Wt(e)}function ai(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&oi.has(e)}function ri(){const t=R.c(54);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=_n(e)?.params.org,[s,r]=X.useState(!1),[i,c]=ts(),[f,g]=ws(),h=In(),d=ii(),u=a??"";let l;t[1]!==u?(l=ln(u),t[1]=u,t[2]=l):l=t[2];const y=!!a&&d;let m;t[3]!==l||t[4]!==y?(m={...l,enabled:y},t[3]=l,t[4]=y,t[5]=m):m=t[5],et(m);const{data:w}=fe.useSession(),j=w?.user?.id;let p,b;t[6]!==h?(p=()=>{const C=M=>{if(Pt(M)&&M.code==="KeyK"){M.preventDefault(),os();return}if(M.key==="?"&&!En(M.target)){M.preventDefault(),r(!0);return}Pt(M)&&M.code==="BracketLeft"&&h.history.canGoBack()&&(M.preventDefault(),h.history.back())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},b=[h],t[6]=h,t[7]=p,t[8]=b):(p=t[7],b=t[8]),X.useEffect(p,b);let S;t[9]!==a||t[10]!==j?(S=On(a,j),t[9]=a,t[10]=j,t[11]=S):S=t[11];const{data:x}=Ft(S),k=x?.id,T=x?.slug,{data:v}=$s(k,T),P=!!v?.ssoRequired&&!v.authenticated,{data:_}=ns(T);let I;t[12]===Symbol.for("react.memo_cache_sentinel")?(I={select:li},t[12]=I):I=t[12];const A=Wt(I),E=_?.severity==="block"&&!ti(A),$=k??"",L=T??"";let O;t[13]!==L||t[14]!==$?(O=bs({connectionId:Vt,orgId:$,orgSlug:L}),t[13]=L,t[14]=$,t[15]=O):O=t[15];const K=!!k&&!!T;let H;if(t[16]!==O||t[17]!==K?(H={...O,enabled:K},t[16]=O,t[17]=K,t[18]=H):H=t[18],et(H),(!x||Nt(x)||P||E)&&ss(),!x){let C;return t[19]!==a?(C=n.jsx(Js,{orgSlug:a}),t[19]=a,t[20]=C):C=t[20],C}if(Nt(x)){localStorage.getItem(Ze.lastOrgSlug())===a&&localStorage.removeItem(Ze.lastOrgSlug()),Bt()?.org===a&&Kt();let C;return t[21]!==x.name?(C=n.jsx(An,{orgName:x.name}),t[21]=x.name,t[22]=C):C=t[22],C}if(E&&_){let C;return t[23]!==x.slug||t[24]!==_?(C=n.jsx(Zo,{notice:_,orgSlug:x.slug}),t[23]=x.slug,t[24]=_,t[25]=C):C=t[25],C}if(P){let C;return t[26]!==x.id||t[27]!==x.name||t[28]!==x.slug||t[29]!==v.domain?(C=n.jsx(Qo,{orgId:x.id,orgSlug:x.slug,orgName:x.name,domain:v.domain}),t[26]=x.id,t[27]=x.name,t[28]=x.slug,t[29]=v.domain,t[30]=C):C=t[30],C}const ae=x.logo??null;let Z;t[31]!==x||t[32]!==ae?(Z={...x,logo:ae},t[31]=x,t[32]=ae,t[33]=Z):Z=t[33];let ee;t[34]!==x?(ee=n.jsx(Uo,{activeOrg:x}),t[34]=x,t[35]=ee):ee=t[35];let ne;t[36]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(Cn,{}),t[36]=ne):ne=t[36];let te;t[37]===Symbol.for("react.memo_cache_sentinel")?(te=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(po,{}),n.jsx(Lo,{})]}),t[37]=te):te=t[37];let J;t[38]!==i||t[39]!==c?(J=i&&n.jsx(To,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=J):J=t[40];let V;t[41]!==f||t[42]!==g?(V=f&&n.jsx(xs,{open:!0,onOpenChange:g,source:Ss()}),t[41]=f,t[42]=g,t[43]=V):V=t[43];let q;t[44]!==s?(q=n.jsx(bo,{open:s,onOpenChange:r}),t[44]=s,t[45]=q):q=t[45];let G,W;t[46]===Symbol.for("react.memo_cache_sentinel")?(G=n.jsx(Bo,{}),W=n.jsx(js,{}),t[46]=G,t[47]=W):(G=t[46],W=t[47]);let Y;return t[48]!==Z||t[49]!==ee||t[50]!==J||t[51]!==V||t[52]!==q?(Y=n.jsxs(ni,{org:Z,children:[ee,ne,te,J,V,q,G,W]}),t[48]=Z,t[49]=ee,t[50]=J,t[51]=V,t[52]=q,t[53]=Y):Y=t[53],Y}function li(t){return t.location.pathname}function ci(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(vs,{children:n.jsx(ri,{})}),t[0]=e):e=t[0],e}const qi=Object.freeze(Object.defineProperty({__proto__:null,default:ci,usePanelActions:si},Symbol.toStringTag,{value:"Module"}));export{lo as a,Mi as b,Ki as f,qi as s,si as u};
|