decocms 4.577.1 → 4.578.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Bj2NuHQY.js → AlertCircle-BttmH_EW.js} +1 -1
- package/dist/client/assets/{AreaChart-wF798x8i.js → AreaChart-BeQ7O-oz.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DCMq103h.js → ArrowLeft-C_GHEWeK.js} +1 -1
- package/dist/client/assets/{ArrowUp-AwRcCsuH.js → ArrowUp-51wIoVbi.js} +1 -1
- package/dist/client/assets/{BookOpen01-D2g_6Ti1.js → BookOpen01-CDYle7oQ.js} +1 -1
- package/dist/client/assets/{CartesianChart-B6p3i5Ce.js → CartesianChart-Ydd3fzeG.js} +1 -1
- package/dist/client/assets/{CategoricalChart-Bjq2Qe33.js → CategoricalChart-DeS4pERs.js} +1 -1
- package/dist/client/assets/{CheckCircle-BfCYdSA_.js → CheckCircle-C3-mSikS.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Bwduw2Hp.js → ChevronSelectorVertical-B417CqKz.js} +1 -1
- package/dist/client/assets/{ChevronUp-JSFuaLqF.js → ChevronUp-EmQwLtzg.js} +1 -1
- package/dist/client/assets/{CreditCard01-DsaJOWgX.js → CreditCard01-DANJ2Q0i.js} +1 -1
- package/dist/client/assets/{Globe04-BBKBtEaK.js → Globe04-Cuhejf9G.js} +1 -1
- package/dist/client/assets/{Key01-BTIXWKkS.js → Key01-qpabI11H.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DjOOxf0e.js → LinkBroken01-CrTBWjs0.js} +1 -1
- package/dist/client/assets/{Minus-BAq-AD33.js → Minus-CzyQFk6M.js} +1 -1
- package/dist/client/assets/{Monitor01-CqtNhdJN.js → Monitor01-CuxWk6vM.js} +1 -1
- package/dist/client/assets/{Play-kmXfE4Am.js → Play-s__3_cku.js} +1 -1
- package/dist/client/assets/{Plus-Bq5KiXqn.js → Plus-niUoy_uM.js} +1 -1
- package/dist/client/assets/{ReferenceLine-CcfMMo9r.js → ReferenceLine-D7fZO7Od.js} +1 -1
- package/dist/client/assets/{SearchMd-D1P7yVqT.js → SearchMd-DcWhidrm.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CAQ4NRTU.js → ShoppingBag01-CiAvRXvs.js} +1 -1
- package/dist/client/assets/{Sun-C5iV1Zpq.js → Sun-CB2w_c2y.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CP6L8rlm.js → SwitchHorizontal01-D4s0wqq6.js} +1 -1
- package/dist/client/assets/{Tool01-DAYJL0v-.js → Tool01-DRAEzq3d.js} +1 -1
- package/dist/client/assets/{Tooltip-DiDmzDgy.js → Tooltip-CPqx6foD.js} +1 -1
- package/dist/client/assets/{Trash01-Dt7pyOwE.js → Trash01-B0DFZIg9.js} +1 -1
- package/dist/client/assets/{Upload01-CZ2h76oj.js → Upload01-CF32qbWU.js} +1 -1
- package/dist/client/assets/UserSquare-C01-Jxv6.js +1 -0
- package/dist/client/assets/{Users01-BZzvQda-.js → Users01-BnjH2fbf.js} +1 -1
- package/dist/client/assets/{XClose-D2u966Hj.js → XClose-CznGRv9E.js} +1 -1
- package/dist/client/assets/{Zap-CDj8jJFt.js → Zap-DRZwAN9E.js} +1 -1
- package/dist/client/assets/{access-gate-DL6Fx00C.js → access-gate-DKCp0oSn.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DXVmpebU.js → add-connection-dialog-DNldeOcj.js} +1 -1
- package/dist/client/assets/agent-app-B-urmXmZ.js +1 -0
- package/dist/client/assets/{agent-assets-C4JxM7ek.js → agent-assets-DZ2i3aIp.js} +1 -1
- package/dist/client/assets/{agent-automation-BRLWOY9Z.js → agent-automation-DM5au--P.js} +1 -1
- package/dist/client/assets/{agent-automations-Bi4PZQpt.js → agent-automations-BgMKlEKo.js} +1 -1
- package/dist/client/assets/{agent-blog-CZFhSkNf.js → agent-blog-DRawqCX5.js} +2 -2
- package/dist/client/assets/{agent-blog-post-DWjaJsuP.js → agent-blog-post-4Yzlewwc.js} +2 -2
- package/dist/client/assets/{agent-calendar-DVRrZoQI.js → agent-calendar-C9NotvdT.js} +1 -1
- package/dist/client/assets/{agent-capabilities-DHVCvnvi.js → agent-capabilities-jT-VtqUC.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-zocgSqV4.js → agent-connect-sources-CrnDKgE0.js} +1 -1
- package/dist/client/assets/agent-deck-BBmqDT35.js +1 -0
- package/dist/client/assets/{agent-e2e-C7P50BKx.js → agent-e2e-mvh6F0Be.js} +1 -1
- package/dist/client/assets/agent-experiments-tJkf5zEV.js +1 -0
- package/dist/client/assets/{agent-file-CVIHN4Pv.js → agent-file-BO8UjxRg.js} +1 -1
- package/dist/client/assets/agent-hosting-BC9PAjNJ.js +1 -0
- package/dist/client/assets/agent-icon-Clk7SRdQ.js +1 -0
- package/dist/client/assets/agent-library-BKkTVzrq.js +1 -0
- package/dist/client/assets/agent-library-file-BrZYdHRW.js +1 -0
- package/dist/client/assets/agent-overview-B1REPbfy.js +1 -0
- package/dist/client/assets/{agent-releases-Bxmxt--5.js → agent-releases-BV2KNppz.js} +1 -1
- package/dist/client/assets/agent-settings-DbGtVJ2w.js +1 -0
- package/dist/client/assets/{agent-site-editor-Bxgpwy-D.js → agent-site-editor-Bow7ioXm.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-BJ6yQoLJ.js +2 -0
- package/dist/client/assets/agent-site-editor-content-Cg8Mk6hH.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-CqN3vC1Y.js +1 -0
- package/dist/client/assets/agent-view-DV1ov_VY.js +1 -0
- package/dist/client/assets/{agent-view-guard-B4P_nOY3.js → agent-view-guard-D7RNQw3n.js} +1 -1
- package/dist/client/assets/{ai-providers-CvpoHUFb.js → ai-providers-C10gOn1c.js} +1 -1
- package/dist/client/assets/{alert-0-4Lk02S.js → alert-C40ffdTq.js} +1 -1
- package/dist/client/assets/{analytics-sections-DEuK9yNO.js → analytics-sections-C8V0d1eU.js} +1 -1
- package/dist/client/assets/{api-keys-BWb-_Fqf.js → api-keys-Cr8tyjtC.js} +1 -1
- package/dist/client/assets/api-keys-DxmWJBFA.js +1 -0
- package/dist/client/assets/{app-editor-DVjFa_ip.js → app-editor-ByystBM6.js} +1 -1
- package/dist/client/assets/{asset-utils-DSh1-4fR.js → asset-utils-D4HWdZ_7.js} +1 -1
- package/dist/client/assets/{auth-DFCgioOs.js → auth-D_w34xQ-.js} +1 -1
- package/dist/client/assets/{auth-catchall-_w9pWMK8.js → auth-catchall-gVavleR3.js} +1 -1
- package/dist/client/assets/{auth-entry-HAlWF4UX.js → auth-entry-Bhy_H_Rg.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BSaVPfK6.js → auth-split-layout-Dlt5Y9Yo.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BGX0Y23v.js → authenticate-and-persist-oauth-jwCoKgM4.js} +1 -1
- package/dist/client/assets/{automation-list-row-Xayp8iFs.js → automation-list-row-CJf3Hfci.js} +1 -1
- package/dist/client/assets/{automation-runs-CUwzltO7.js → automation-runs-DFAxj_hn.js} +1 -1
- package/dist/client/assets/{automations-C0bs2qin.js → automations-Bnx6noDz.js} +1 -1
- package/dist/client/assets/{badge-DbKUf3vA.js → badge-Bec4Z79_.js} +1 -1
- package/dist/client/assets/{block-document-zkAHP8m2.js → block-document-3uCBlgZI.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-DQL_zlqC.js → blocks-preview-workspace-context-CFT39hTK.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-BUfMyINR.js → blocks-tab-states-DgLrbRiD.js} +1 -1
- package/dist/client/assets/{blog-preview-url-CT-VZElJ.js → blog-preview-url-DiFMPgbV.js} +1 -1
- package/dist/client/assets/{blog-schema-Dys-tzF0.js → blog-schema-BS2v2MSK.js} +1 -1
- package/dist/client/assets/{blog-source-gate-CYaEgV9t.js → blog-source-gate-CwZXRzP6.js} +1 -1
- package/dist/client/assets/{blog-view-gate-zXMdlu7Q.js → blog-view-gate-hTnrbFjq.js} +1 -1
- package/dist/client/assets/{buckets-DOgpbimo.js → buckets-DRTwHO8z.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BMf33123.js → build-improve-prompt-doc-DDEce0zc.js} +1 -1
- package/dist/client/assets/{calendar-5Nt9EKO9.js → calendar-BHxqLYB2.js} +1 -1
- package/dist/client/assets/{capability-load-error-BSxnBi9L.js → capability-load-error-Cg21B6QM.js} +1 -1
- package/dist/client/assets/{category-editor-DziWemO6.js → category-editor-DrwVl4Sl.js} +1 -1
- package/dist/client/assets/{category-tree-Cm0a3nBT.js → category-tree-CgP369CP.js} +1 -1
- package/dist/client/assets/{chart-DPgJVmAl.js → chart-Cz95W4qb.js} +1 -1
- package/dist/client/assets/{chat-context-D8Eje7xK.js → chat-context-2_7VL2Se.js} +1 -1
- package/dist/client/assets/{chat-draft-ArmxHiV6.js → chat-draft-BH8Etp5p.js} +1 -1
- package/dist/client/assets/{checkbox-CCw3an34.js → checkbox-DcSwaw9N.js} +1 -1
- package/dist/client/assets/{choose-editor-CXiL24Bl.js → choose-editor-C4LsHc8P.js} +1 -1
- package/dist/client/assets/{cli-auth-success-c7wBWUO5.js → cli-auth-success-Dg6G0C4J.js} +1 -1
- package/dist/client/assets/{client-icons-CuJeSv2A.js → client-icons-ohal0kIt.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-gxtK9SOp.js → cms-settings-editor-_WpAeDPl.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-chLFxeWf.js → cms-store-drafts-DXYwm7p9.js} +1 -1
- package/dist/client/assets/{collapsible-CVtLl5wO.js → collapsible-C0DaEqwH.js} +1 -1
- package/dist/client/assets/{collection-detail-D_Bcp_j6.js → collection-detail-DqPGF8Zk.js} +1 -1
- package/dist/client/assets/{collection-display-button-CnhRvkGN.js → collection-display-button-BYPP-sV7.js} +1 -1
- package/dist/client/assets/{collection-search-CC2QUXh2.js → collection-search-n_O3WZGN.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DSy_nx4_.js → collection-table-wrapper-nXT01FCH.js} +1 -1
- package/dist/client/assets/{collection-tabs-DHZJ_O9U.js → collection-tabs-Bj6L8MsE.js} +1 -1
- package/dist/client/assets/{combobox-CB15NqGc.js → combobox-CgNU2tMt.js} +1 -1
- package/dist/client/assets/{command-BOSLOC8n.js → command-BtcP4IBQ.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CeNpBYo7.js → companion-mcps-section-CPNG8Vx3.js} +1 -1
- package/dist/client/assets/{config-DqdBgCnO.js → config-C9iB0RU8.js} +1 -1
- package/dist/client/assets/{connect-WyHpmSHS.js → connect-D3tjGmEi.js} +1 -1
- package/dist/client/assets/{connect-layout-D_zQARSX.js → connect-layout-eEBnzEV_.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-DHtZw9ff.js → connect-source-dialog-_DXcUm0Y.js} +1 -1
- package/dist/client/assets/{connection-D0YCkaZO.js → connection-BKTcYZml.js} +1 -1
- package/dist/client/assets/{connection-card-B1Rl2nXN.js → connection-card-COLQiOkG.js} +1 -1
- package/dist/client/assets/{connection-detail-LxUhih2_.js → connection-detail-DzBabz1S.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CAOx4zgX.js → connection-form-helpers-9_MGiUYQ.js} +1 -1
- package/dist/client/assets/{connection-slug-BH_NX0Ks.js → connection-slug-DXuQYZmG.js} +1 -1
- package/dist/client/assets/{connections-BhxOwljy.js → connections-CLDKZJVw.js} +1 -1
- package/dist/client/assets/{content-tab-BdaE3oCc.js → content-tab-DHk7zASR.js} +3 -3
- package/dist/client/assets/{context-BmOpD-Hr.js → context-f8fDVtNj.js} +1 -1
- package/dist/client/assets/{context-menu-Df7WW_d5.js → context-menu-Dsw1Ex34.js} +1 -1
- package/dist/client/assets/{context-shell-cJbikpSJ.js → context-shell-DpQEYO74.js} +3 -3
- package/dist/client/assets/{core.esm-CAA73EV4.js → core.esm-rweyZtAP.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BLvG9G-Z.js → create-organization-dialog-DUk4B45U.js} +1 -1
- package/dist/client/assets/{delete-copy-CAFEtw8Z.js → delete-copy-DZE-3KQB.js} +1 -1
- package/dist/client/assets/{device-hint-DgkMhcRQ.js → device-hint-CQX1G1PE.js} +1 -1
- package/dist/client/assets/{discover-Cceep_sX.js → discover-uwdyIAIK.js} +1 -1
- package/dist/client/assets/{domain-settings-52h_8fKM.js → domain-settings-Ba1MIa2U.js} +1 -1
- package/dist/client/assets/{drawer-B9PFQFcy.js → drawer-XRqK1CkH.js} +1 -1
- package/dist/client/assets/{editor-DZ4pzlHx.js → editor-CBAsUN_D.js} +1 -1
- package/dist/client/assets/{editor-classes-Cb5f4sl2.js → editor-classes-DJG-Wj7v.js} +1 -1
- package/dist/client/assets/{empty-message-CXYzekmD.js → empty-message-DgtU67aA.js} +1 -1
- package/dist/client/assets/{empty-state-BkAAjXrp.js → empty-state-BVQ9VzOU.js} +1 -1
- package/dist/client/assets/{empty-state-DMtSEEQ1.js → empty-state-CfzBgpuZ.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-CDm4A9Wq.js → experiments-tab-choice-DuLgqqx_.js} +1 -1
- package/dist/client/assets/{extract-connection-data-u6K4j2aJ.js → extract-connection-data-EIjdoFBg.js} +1 -1
- package/dist/client/assets/{feature-gate-DFWAlRCv.js → feature-gate-Bsh6-M6w.js} +1 -1
- package/dist/client/assets/{feature-paywall-BiIzjBeB.js → feature-paywall-DGSKlw9o.js} +1 -1
- package/dist/client/assets/{file-explorer-M__gA7Xu.js → file-explorer-DnoVcCFG.js} +1 -1
- package/dist/client/assets/{file-preview-D7WeSAA4.js → file-preview-D_0IU7PB.js} +1 -1
- package/dist/client/assets/{file-share-button-BtW_yxzc.js → file-share-button-B1Fk0nBQ.js} +1 -1
- package/dist/client/assets/{file-type-icon-mKSSLPP8.js → file-type-icon-DED9IxiZ.js} +1 -1
- package/dist/client/assets/{folder-icon-DCyvwLH6.js → folder-icon-Detn5ugB.js} +1 -1
- package/dist/client/assets/{form-8HJUl2GV.js → form-CxSSvRAm.js} +1 -1
- package/dist/client/assets/{frame-navigation-Bp6fuuV5.js → frame-navigation-MwhFGymR.js} +1 -1
- package/dist/client/assets/{general-C9cj7tJH.js → general-DEU4SDIa.js} +1 -1
- package/dist/client/assets/{github-icon-DEvD-SlA.js → github-icon-N9MEN1MZ.js} +1 -1
- package/dist/client/assets/{held-block-view-DRxUlNuB.js → held-block-view-D_87TUke.js} +1 -1
- package/dist/client/assets/{home-DR1hV3al.js → home-6nU3ZamX.js} +1 -1
- package/dist/client/assets/{home-overview-CgBJdfHr.js → home-overview-C3Zj8fkv.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-DH_YtUfF.js → hosted-reconcile-f9zR8ohF.js} +1 -1
- package/dist/client/assets/{icon-button-CadQrI05.js → icon-button-DUjjoGv_.js} +1 -1
- package/dist/client/assets/{index-Tvs593C1.js → index-1TeON1d1.js} +1 -1
- package/dist/client/assets/{index-C9E0iqgh.js → index-B3ab16ZV.js} +1 -1
- package/dist/client/assets/{index-C5aoCNXr.js → index-BRMdzLQF.js} +1 -1
- package/dist/client/assets/{index-t9nYrZiR.js → index-BX-xETn9.js} +1 -1
- package/dist/client/assets/{index-CcTmEE1N.js → index-BhtDSp6y.js} +1 -1
- package/dist/client/assets/{index-_sPF1edR.js → index-CAJpA_Gg.js} +1 -1
- package/dist/client/assets/{index-BvGbwvSS.js → index-CpQGG70q.js} +1 -1
- package/dist/client/assets/{index-C1fc6W9Q.js → index-D2WZClU1.js} +1 -1
- package/dist/client/assets/{index-gX7QfQio.js → index-DIeS-zcI.js} +1 -1
- package/dist/client/assets/{index-8kUWDN7v.js → index-DK-8s7Az.js} +1 -1
- package/dist/client/assets/{index-yzkfeOP2.js → index-DKvQA4se.js} +1 -1
- package/dist/client/assets/{index-CWKxkTwy.js → index-DkcRNYY4.js} +51 -51
- package/dist/client/assets/{index-ButqNodW.js → index-Dn1sSLiR.js} +1 -1
- package/dist/client/assets/{index-Bkf6As2Q.js → index-DoI9gwtY.js} +1 -1
- package/dist/client/assets/{index-DVdV24aR.js → index-Dsc22z2E.js} +1 -1
- package/dist/client/assets/{index-CzrYE4jE.js → index-DyJk9i7m.js} +1 -1
- package/dist/client/assets/{index-BLdRRqFU.js → index-Rlc6g0eH.js} +1 -1
- package/dist/client/assets/{index-redirect-DOlNtcAX.js → index-redirect-xsDNsYua.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DCK-YXw1.js → infiniteQueryObserver-Bitq8wqo.js} +1 -1
- package/dist/client/assets/{infra-billing-B-pN25L9.js → infra-billing-Bq7lICUo.js} +1 -1
- package/dist/client/assets/{input-DA-TtdGL.js → input-Z8vNy904.js} +1 -1
- package/dist/client/assets/{input-1NX4JUHA.js → input-cZnIeAU-.js} +3 -3
- package/dist/client/assets/{integration-icon-C1bpkd7s.js → integration-icon-D_f17Dc0.js} +1 -1
- package/dist/client/assets/{item-actions-kNG-BlG3.js → item-actions-tUfJogkL.js} +1 -1
- package/dist/client/assets/{jira-icon-CnBOGlR6.js → jira-icon-B_i3CvQt.js} +1 -1
- package/dist/client/assets/{label-BXSXPHWU.js → label-Dn3Jp5Ws.js} +1 -1
- package/dist/client/assets/{layout-C0J9eFzL.js → layout-Uu1mBCHM.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-DbVWjlJ6.js → legacy-admin-welcome-dialog-BZv5i7Tg.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DVKmxbFS.js → legacy-agents-deep-DP_-DfVk.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-D0wT4Yry.js → legacy-main-redirect-BUWLccLo.js} +1 -1
- package/dist/client/assets/library-CEXxPUaa.js +1 -0
- package/dist/client/assets/{library-tab-gK_7g-te.js → library-tab-BFNRWK_p.js} +1 -1
- package/dist/client/assets/{login-DnxvVl1t.js → login-bQ_A0WZT.js} +1 -1
- package/dist/client/assets/{markdown-DiEygcQw.js → markdown-b_kJoSST.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BbTTGmQC.js → mcp-app-renderer-DnzeUjpd.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CQGGouuy.js → mcp-oauth-DFR30m4O.js} +1 -1
- package/dist/client/assets/{mcp-oauth-TUUsAJpA.js → mcp-oauth-DtWQzykq.js} +1 -1
- package/dist/client/assets/{members-nUmVbnC9.js → members-D0Lz_KgP.js} +1 -1
- package/dist/client/assets/{memory-Blrtbn8a.js → memory-BoBRHeM6.js} +1 -1
- package/dist/client/assets/{mock-board-CC-isAOX.js → mock-board-DHgHCl4G.js} +3 -3
- package/dist/client/assets/{monaco-editor-C9ZwdTpU.js → monaco-editor-UZynMXqx.js} +1 -1
- package/dist/client/assets/{monitoring-B36SUiOP.js → monitoring-DxDbj9fw.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-H3pnSbDz.js → monitoring-stats-row-Cuheh0jS.js} +1 -1
- package/dist/client/assets/{multi-select-obeT7dRo.js → multi-select-DME84cUe.js} +1 -1
- package/dist/client/assets/{mustache-gM754ehf.js → mustache-y-ZQsp_m.js} +1 -1
- package/dist/client/assets/{named-rule-step-W9P9uG-f.js → named-rule-step-DN_fLt7U.js} +1 -1
- package/dist/client/assets/{named-rule-view-BJLbVNsp.js → named-rule-view-DZEGURWO.js} +1 -1
- package/dist/client/assets/{new-project-dialog-Cfdy4DZo.js → new-project-dialog-woRLqi3-.js} +1 -1
- package/dist/client/assets/{oauth-callback-Cxz67hG6.js → oauth-callback-BgK3JUto.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Diui0sS6.js → oauth-callback-ai-provider-DIdeF5L_.js} +1 -1
- package/dist/client/assets/{oauth-consent-BWS32jU1.js → oauth-consent-DeoVyPXJ.js} +1 -1
- package/dist/client/assets/{onboarding-Cg2Txb26.js → onboarding-CrBz7CJY.js} +1 -1
- package/dist/client/assets/{openai-conversation-CGGu6BWJ.js → openai-conversation-Cv54h2Lp.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-cd4O2LnM.js → optimistic-project-sidebar-views-BZ1sAhod.js} +1 -1
- package/dist/client/assets/{order-monitor-day-DrziIuIu.js → order-monitor-day-HVJjPS8X.js} +1 -1
- package/dist/client/assets/{organization-choice-CPef1x_g.js → organization-choice-DiOY09h_.js} +1 -1
- package/dist/client/assets/{orgs--h6JaB89.js → orgs-CDazo1cx.js} +1 -1
- package/dist/client/assets/{own-accounts-section-D0sCVz2F.js → own-accounts-section-DFgMqqFp.js} +1 -1
- package/dist/client/assets/{pair-DbwVEDlq.js → pair-BV9OnQjN.js} +1 -1
- package/dist/client/assets/{parse-sections-CMxFIp3d.js → parse-sections-DRVKTg0R.js} +2 -2
- package/dist/client/assets/plan-Cts1Yk_E.js +1 -0
- package/dist/client/assets/{plan-ladder-XiZUV3-n.js → plan-ladder-KbWc-Or1.js} +1 -1
- package/dist/client/assets/{plan-usage-card-BsCyr1kn.js → plan-usage-card-CN7VFizA.js} +1 -1
- package/dist/client/assets/{popover-CTEYICXO.js → popover-DGUQnbhk.js} +1 -1
- package/dist/client/assets/{post-calendar-DbsJgYWp.js → post-calendar-CqQDC3t2.js} +1 -1
- package/dist/client/assets/{post-editor-GP7cTHEm.js → post-editor-D5cDZX8g.js} +2 -2
- package/dist/client/assets/{preview-content-BYvAegAr.js → preview-content-5E4VEVNy.js} +1 -1
- package/dist/client/assets/{preview-dialog-tONoLcHy.js → preview-dialog-CW0UxxZH.js} +1 -1
- package/dist/client/assets/{preview-panel-CxdwWGtV.js → preview-panel-X9Db-uFN.js} +1 -1
- package/dist/client/assets/{preview-tab-BJQS3_gN.js → preview-tab-D3OqBk4l.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-DVmdugXw.js → product-picker-dialog-WEdrqBYL.js} +1 -1
- package/dist/client/assets/{profile-CFEIL030.js → profile-Dr7jNljC.js} +1 -1
- package/dist/client/assets/{project-app-view-DpcLMitT.js → project-app-view-BlutJfNT.js} +1 -1
- package/dist/client/assets/{project-apps-T4OBSnxG.js → project-apps-I71-E6Qd.js} +1 -1
- package/dist/client/assets/{project-icon-CsM5Xu_3.js → project-icon-DwgAxTAv.js} +1 -1
- package/dist/client/assets/{project-index-CnwYmkRd.js → project-index-iv5dTkyZ.js} +1 -1
- package/dist/client/assets/project-reports-D_a4jtSV.js +1 -0
- package/dist/client/assets/project-tasks-BCzd3AL6.js +1 -0
- package/dist/client/assets/{projects-empty-state-DAdhJyFi.js → projects-empty-state-CupYJqrY.js} +1 -1
- package/dist/client/assets/{projects-D9OLRq0V.js → projects-gSmj9ecH.js} +1 -1
- package/dist/client/assets/{prompts-hNC_o6uG.js → prompts-CBaHiUu4.js} +1 -1
- package/dist/client/assets/{record-editor-BUh6IBbj.js → record-editor-Dhg3qN0D.js} +1 -1
- package/dist/client/assets/{redirect-editor-CRbYvUNE.js → redirect-editor-P9JRSoek.js} +1 -1
- package/dist/client/assets/{reports-CoqdbgJH.js → reports-DcvRbz_i.js} +1 -1
- package/dist/client/assets/reports-DehFoQ2c.js +1 -0
- package/dist/client/assets/{reports-onboarding-B8pLePIS.js → reports-onboarding-CNToIJAM.js} +1 -1
- package/dist/client/assets/{reports-tab-BTcGlLJG.js → reports-tab-BZqA8TQ_.js} +2 -2
- package/dist/client/assets/{repositories-cxta7jGt.js → repositories-Ccur-dYQ.js} +1 -1
- package/dist/client/assets/repositories-DPEF306T.js +1 -0
- package/dist/client/assets/{repository-binding-DScgU6HN.js → repository-binding-BLl1r28B.js} +1 -1
- package/dist/client/assets/{repository-picker-BUWqEoln.js → repository-picker-BOvn8tow.js} +1 -1
- package/dist/client/assets/{require-capability-Cqs162cO.js → require-capability-CbgooziO.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BiIyXd3D.js → required-auth-layout-Du4rT7sh.js} +1 -1
- package/dist/client/assets/{reset-password-da4PvhID.js → reset-password-BWHhQAiH.js} +1 -1
- package/dist/client/assets/{resizable-Bf-xwR0k.js → resizable-vWMGfcV5.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CGJDnTEl.js → resolve-tab-icon-CyktvCbJ.js} +1 -1
- package/dist/client/assets/review-settings-BYvflnLC.js +1 -0
- package/dist/client/assets/{role-color-C7dBdDUi.js → role-color-DXKobZxk.js} +1 -1
- package/dist/client/assets/{roles-z96sRIvs.js → roles-DtM-OJk0.js} +1 -1
- package/dist/client/assets/{route-D7eWiLEQ.js → route-C8tElGsM.js} +1 -1
- package/dist/client/assets/{route-UFlyMaLZ.js → route-DYywXwGr.js} +1 -1
- package/dist/client/assets/route-ptA81iuF.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-DY2xu0Uo.js → sandbox-lifecycle-context-CVRjjAk0.js} +1 -1
- package/dist/client/assets/{save-status-DshwUBI8.js → save-status-DnvkIbvY.js} +1 -1
- package/dist/client/assets/{schema-DWYnTC39.js → schema-C2C3qx85.js} +1 -1
- package/dist/client/assets/{schema-DUByfd2Y.js → schema-CAleC_3r.js} +1 -1
- package/dist/client/assets/{scroll-area-EO9hsjie.js → scroll-area-DMASCzA7.js} +1 -1
- package/dist/client/assets/{search-input-Dc1w2xyv.js → search-input-BzsoblR3.js} +1 -1
- package/dist/client/assets/{search-toggle-BZIowSkC.js → search-toggle-C8mpkT93.js} +1 -1
- package/dist/client/assets/{secret-picker-t9uXEG8-.js → secret-picker-1TYTZlJ-.js} +1 -1
- package/dist/client/assets/{secrets-CPHCsh_T.js → secrets-D8N8c2eG.js} +1 -1
- package/dist/client/assets/{section-array-field-BFg67nYp.js → section-array-field-CBlVxN-e.js} +1 -1
- package/dist/client/assets/{sections-CrmI_GQr.js → sections-D5nPXiNR.js} +1 -1
- package/dist/client/assets/{sections-editor-CrXI2Bvd.js → sections-editor-DDwn5ekg.js} +1 -1
- package/dist/client/assets/{select-CWL8C0Pw.js → select-DVeciAl9.js} +1 -1
- package/dist/client/assets/{select-model-_wNlq-Z9.js → select-model-BNTO0fSE.js} +1 -1
- package/dist/client/assets/{seo-editor-B3mQn1CH.js → seo-editor-BZPpMR_G.js} +1 -1
- package/dist/client/assets/{separator-Cyq4ZO_K.js → separator-4lVFkBOm.js} +1 -1
- package/dist/client/assets/settings-tab-DNW19Zfd.js +1 -0
- package/dist/client/assets/{sheet-Bqz29cSo.js → sheet-DgqpeU2r.js} +1 -1
- package/dist/client/assets/{shell-layout-DVIwCYxA.js → shell-layout-Dqg0y9U5.js} +1 -1
- package/dist/client/assets/{site-draft-actions-DQ2Ndjsf.js → site-draft-actions-BU5wxMfk.js} +1 -1
- package/dist/client/assets/{site-draft-view-CIEvFlZ7.js → site-draft-view-0GYco8RC.js} +1 -1
- package/dist/client/assets/site-editor-Bb1utT9X.js +1 -0
- package/dist/client/assets/site-editor-toast-DHWingRQ.js +1 -0
- package/dist/client/assets/{skills-0h7pumIQ.js → skills-QMeBFjVZ.js} +1 -1
- package/dist/client/assets/{slider-GCMZAdst.js → slider-DkvAjMqC.js} +1 -1
- package/dist/client/assets/{sortable.esm-CYzspn3s.js → sortable.esm-D1XbpNQK.js} +1 -1
- package/dist/client/assets/{sso-Ca2H_kJv.js → sso-CA2di6VE.js} +1 -1
- package/dist/client/assets/{suggestion-CppSMZxc.js → suggestion-DKq9tnks.js} +1 -1
- package/dist/client/assets/{super-agent-icon-Dq0ZAaMf.js → super-agent-icon-Des3Gzt2.js} +1 -1
- package/dist/client/assets/{switch-DBO_GrNe.js → switch-D_fyZtAR.js} +1 -1
- package/dist/client/assets/{synced-repos-BTn3MABM.js → synced-repos-q-9Pq41U.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-BaeBTavE.js → tab-icon-glyph-CnCjm5vj.js} +1 -1
- package/dist/client/assets/{table-xCmpwB0s.js → table-B6gmAyVe.js} +1 -1
- package/dist/client/assets/{tabs-rkhPwLiJ.js → tabs-C3-glM5w.js} +1 -1
- package/dist/client/assets/{task-board-D7RCmGkN.js → task-board-F0C1flaU.js} +1 -1
- package/dist/client/assets/{task-route-BJeZEOaQ.js → task-route-CgJ6kEGQ.js} +1 -1
- package/dist/client/assets/{task-status-ISwbNtXh.js → task-status-DtZHG42q.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-B3vmd83_.js → taskboard-analytics-DhB06IEO.js} +1 -1
- package/dist/client/assets/{tasks-BLz1W4rF.js → tasks-BjEh1sq-.js} +1 -1
- package/dist/client/assets/tasks-rVWKpPqZ.js +1 -0
- package/dist/client/assets/{textarea-CvY2QE-l.js → textarea-BcNUedZJ.js} +1 -1
- package/dist/client/assets/{thread-analytics-DmP3G179.js → thread-analytics-CHIWrhgS.js} +1 -1
- package/dist/client/assets/{thread-intent-0TjSPqLd.js → thread-intent-BBtcC3eO.js} +1 -1
- package/dist/client/assets/{thread-route-BbSych2c.js → thread-route-B-8pwMl6.js} +1 -1
- package/dist/client/assets/{thread-route-4ZjlovaL.js → thread-route-BDEM9uAG.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-JQX8n1oy.js → thread-sheet-body-XQutdGAn.js} +1 -1
- package/dist/client/assets/{time-range-picker-Bcp8sqUk.js → time-range-picker-DIndNk54.js} +1 -1
- package/dist/client/assets/{toggle-group-BPubP3Pi.js → toggle-group-BJvueItv.js} +1 -1
- package/dist/client/assets/{tool-namespace-c-MaHIy3.js → tool-namespace-8W3F8hsl.js} +1 -1
- package/dist/client/assets/{tool-set-selector-qnchAzSg.js → tool-set-selector-HD2rc5mb.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DqW_CkJO.js → toolbar-icon-button-DqwBIL-q.js} +1 -1
- package/dist/client/assets/{tooltip-mM1fQXaq.js → tooltip-CcU7DhuT.js} +1 -1
- package/dist/client/assets/{tooltipContext-B2y0_sWP.js → tooltipContext-qk98CIlc.js} +1 -1
- package/dist/client/assets/{track-XkKLQQJT.js → track-DQBd80xZ.js} +1 -1
- package/dist/client/assets/{types-E9_eqrxO.js → types-CBXbXFqf.js} +1 -1
- package/dist/client/assets/{url-slug-BVpN8K6B.js → url-slug-D48mGvuH.js} +1 -1
- package/dist/client/assets/{usage-stats-DT9jvl-J.js → usage-stats-D6OFaO8E.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Bku85sJ3.js → use-ai-providers-BJ7TKB-_.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-Bwm7LB-d.js → use-apply-named-rule-BDDeFxUe.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-BqR7YrFk.js +1 -0
- package/dist/client/assets/{use-automations-D9iFnWhp.js → use-automations-DGdQY13E.js} +1 -1
- package/dist/client/assets/{use-autosave-CLbBIg-P.js → use-autosave-yYU_ezVq.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-fuQSIOiU.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-Cbkyo6cP.js → use-chat-layout-state-7fLexK-W.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-XYKTfqt2.js → use-cms-publish-actions-Di7RH3ic.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DCIdJC0W.js → use-connect-companion-Ddgl8MAG.js} +1 -1
- package/dist/client/assets/{use-connection-CLoaxXGr.js → use-connection-8PrHxvAI.js} +1 -1
- package/dist/client/assets/{use-content-sync-14ry1gRC.js → use-content-sync-8KVw9tn9.js} +1 -1
- package/dist/client/assets/{use-copy-D3ELC0tX.js → use-copy-F5Ataqy3.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DU1bARSL.js → use-date-fns-locale-D8L_b1Z0.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Dxp05968.js → use-debounced-autosave-D2pTqcG8.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CgYJanEq.js → use-debounced-value-CbdraSYQ.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DlgC2mIc.js → use-deco-credits-D5BjRSSa.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DhxeqkWl.js → use-decopilot-events-CoAHF-ln.js} +1 -1
- package/dist/client/assets/{use-delete-block-BJD7162e.js → use-delete-block-B_3TZ6oj.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DtzGQTsr.js → use-delete-connection-BiAYYkr3.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-8guQU4GC.js → use-deployment-admin-glI5z0S-.js} +1 -1
- package/dist/client/assets/{use-entitlements-J4XPZF2l.js → use-entitlements-C7UoqTI0.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BX0PGrG_.js → use-fast-preview-draft-url-BK4D_Y49.js} +1 -1
- package/dist/client/assets/{use-file-configs-DngvlIXa.js → use-file-configs-C0B0PjW_.js} +1 -1
- package/dist/client/assets/{use-id-selection-Dkbf-QZH.js → use-id-selection-CTG-YWBc.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-b7aNeh2-.js → use-inbox-feed-Br6iChGF.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BWIp-OKY.js → use-infinite-scroll-Ca25srcJ.js} +1 -1
- package/dist/client/assets/{use-join-requests-CdvnKUpu.js → use-join-requests-Dfcdd55y.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-i0OC0oRI.js → use-main-panel-tabs-HePCt0jA.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CxxAbIdU.js → use-mcp-auth-status-BZvjXleK.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CmWEhN6T.js → use-mcp-client-DFeSZL8q.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-RB8yW0_L.js → use-mcp-prompts-BTRRV8Ft.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Bfew76Ae.js → use-mcp-tools-TDs-I0b1.js} +1 -1
- package/dist/client/assets/{use-mobile-BZ5I1Gts.js → use-mobile-BnBdDTHN.js} +1 -1
- package/dist/client/assets/{use-move-blocks-a-Gpcz1Q.js → use-move-blocks-CckOr-lB.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CMbT8SLE.js → use-navigate-to-agent-D12paxCm.js} +1 -1
- package/dist/client/assets/{use-never-published-Cq663vOp.js → use-never-published-DFEsFGpN.js} +1 -1
- package/dist/client/assets/{use-org-fs-D8fqy59B.js → use-org-fs-BVX55_QU.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-D0tdQJ2P.js → use-org-repo-syncs-ZSOjbeOM.js} +1 -1
- package/dist/client/assets/{use-org-sso-D-kGbeq_.js → use-org-sso-BjEvyyup.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BZz5ibUN.js → use-organization-settings-Bp5pncRd.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-BbI14MhH.js → use-project-native-view-presence-BygogdOC.js} +1 -1
- package/dist/client/assets/{use-project-scope-3ijTexFj.js → use-project-scope-DOHE3bKU.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CWPH7SDm.js → use-recent-apps-DP2oLcqz.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-V-qftvBJ.js → use-reports-diagnostic-DpDAVu1I.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-CBP-Uwww.js → use-sandbox-events-EhUTp4km.js} +1 -1
- package/dist/client/assets/{use-secrets-CfMZEME2.js → use-secrets-CxjuCsrh.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DxIpbqPr.js → use-section-preview-base-cdgVeEAb.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Cbxz0vjB.js → use-sidebar-collapsed-BIEPyypZ.js} +1 -1
- package/dist/client/assets/{use-tags-DTSxZWpz.js → use-tags-C3U-POZn.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BKNhIlpV.js → use-task-board-analytics-C3VZMz7B.js} +1 -1
- package/dist/client/assets/{use-task-board-events-MfMFlaj-.js → use-task-board-events-DbjmwIOB.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-i0iDRtks.js → use-task-board-item-prs-EqF0sY_y.js} +1 -1
- package/dist/client/assets/{use-task-board-items-6-h_Haer.js → use-task-board-items-qkbAWHCl.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-BzepMvGT.js → use-task-board-prompts-Rl7l1WO8.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CkJg1Id-.js → use-task-metadata-Cd0VDdAR.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DegzudvH.js → use-thread-outputs-BVOJLuSg.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-BQ4N5uEB.js → use-view-draft-kind-CLUDIePm.js} +1 -1
- package/dist/client/assets/{use-voice-input-vD0BpiqU.js → use-voice-input-Bl7eFiVx.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DAeB0Xdz.js +1 -0
- package/dist/client/assets/{useQueries-D6BmTkII.js → useQueries-BoFvlKGQ.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D8216v2q.js +1 -0
- package/dist/client/assets/{users-RduqDlHV.js → users-CNjQRe0O.js} +1 -1
- package/dist/client/assets/{utils-CkU_P8Ie.js → utils-BQSMlXSP.js} +1 -1
- package/dist/client/assets/{variant-calendar-1rTVvyAx.js → variant-calendar-NNYJdzAI.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-B3zGkPXZ.js → variant-matcher-override-DT5fklqI.js} +1 -1
- package/dist/client/assets/{view-header-B-Vek7fH.js → view-header-tpv-7x2O.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DPJ0M-HO.js → virtual-mcp-MVkHUb3W.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-DqTWfbxM.js → watch-sse-pool-Dj-biyb-.js} +1 -1
- package/dist/client/index.html +11 -3
- package/dist/server/migrate.js +245 -245
- package/dist/server/server.js +772 -771
- package/package.json +1 -1
- package/dist/client/assets/UserSquare-CBWDFbi3.js +0 -1
- package/dist/client/assets/agent-app-DClrb2ok.js +0 -1
- package/dist/client/assets/agent-deck-BQ_G3Xvk.js +0 -1
- package/dist/client/assets/agent-experiments-B7tgn9fP.js +0 -1
- package/dist/client/assets/agent-hosting-DmUbTOe2.js +0 -1
- package/dist/client/assets/agent-icon-BwEytdmh.js +0 -1
- package/dist/client/assets/agent-library-BhTWSN-a.js +0 -1
- package/dist/client/assets/agent-library-file-C9nXPWjk.js +0 -1
- package/dist/client/assets/agent-overview-gQqe-_Zq.js +0 -1
- package/dist/client/assets/agent-settings-BZlQcdRN.js +0 -1
- package/dist/client/assets/agent-site-editor-code-D3XwSBBo.js +0 -2
- package/dist/client/assets/agent-site-editor-content-5EK8c-yC.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DtbJe_5m.js +0 -1
- package/dist/client/assets/agent-view-DJh235b7.js +0 -1
- package/dist/client/assets/api-keys-PaXWWj2O.js +0 -1
- package/dist/client/assets/library-sYbbN7ux.js +0 -1
- package/dist/client/assets/plan-1pM1JHac.js +0 -1
- package/dist/client/assets/project-reports-Bsj_xvMI.js +0 -1
- package/dist/client/assets/project-tasks-BGrqP4mL.js +0 -1
- package/dist/client/assets/reports-D5qXQXTJ.js +0 -1
- package/dist/client/assets/repositories-Cb1lXF50.js +0 -1
- package/dist/client/assets/review-settings-Ulx4CyPZ.js +0 -1
- package/dist/client/assets/route-CNldsqd_.js +0 -1
- package/dist/client/assets/settings-tab-CDHhpvzE.js +0 -1
- package/dist/client/assets/site-editor-C927WhHx.js +0 -1
- package/dist/client/assets/site-editor-toast-BLqoqKy_.js +0 -1
- package/dist/client/assets/tasks-hZ3cVL1W.js +0 -1
- package/dist/client/assets/use-ask-in-chat-C5w0G3Ru.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-BTQz7erp.js +0 -1
- package/dist/client/assets/useInfiniteQuery-njPYFTao.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CSPS7F0z.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as T,r as E,a4 as Ae,eH as Te,b as Z,m as $,j as r,a5 as Be,es as Ve,B as we,t as te,I as Qe,h as Ge,bu as We}from"./index-CWKxkTwy.js";import{b as _e}from"./Tool01-DAYJL0v-.js";import{s as Ye}from"./Trash01-Dt7pyOwE.js";import{i as Pe}from"./Upload01-CZ2h76oj.js";import{r as He,L as Ke,s as Je,F as Xe,i as Ue}from"./use-never-published-Cq663vOp.js";import{L as Ne}from"./label-BXSXPHWU.js";import{T as ke,a as Ee,c as Se}from"./tooltip-mM1fQXaq.js";import{u as Ze}from"./repository-binding-DScgU6HN.js";import{u as et}from"./chat-context-D8Eje7xK.js";import{u as Ce,a8 as tt,h as st,b as it,a9 as rt}from"./site-editor-toast-BLqoqKy_.js";import{c as nt}from"./use-organization-settings-BZz5ibUN.js";import{a as ot}from"./SwitchHorizontal01-CP6L8rlm.js";import{a as at,b as lt,P as ct}from"./popover-CTEYICXO.js";import{S as dt}from"./switch-DBO_GrNe.js";import{a as ft,T as ut}from"./toggle-group-BPubP3Pi.js";import{m as mt}from"./match-site-slug-config-D3fUJ6vX.js";import{u as pt}from"./use-file-configs-DngvlIXa.js";import{u as gt}from"./asset-utils-DSh1-4fR.js";import{i as xt}from"./AlertCircle-Bj2NuHQY.js";const $e=E.createContext(null);function ls(t){const e=T.c(3),{children:s}=t,n=et(),l=Ce(n?.virtualMcpId,n?.currentBranch);let o;return e[0]!==l.kind||e[1]!==s?(o=E.createElement($e.Provider,{value:l.kind},s),e[0]=l.kind,e[1]=s,e[2]=o):o=e[2],o}function ht(){const t=T.c(4),e=E.useContext($e),{org:s}=Ae(),n=nt("new_blocks_editor"),l=!!s.id;let o;return t[0]!==e||t[1]!==n||t[2]!==l?(o=tt({backend:e,hasOrg:l,orgFlag:n}),t[0]=e,t[1]=n,t[2]=l,t[3]=o):o=t[3],o}function bt(){return ht()??!1}function yt(t){if(typeof t=="string")return t;if(!t||typeof t!="object")return"";const e=t;if(Array.isArray(e.variants)){const s=e.variants,n=s.find(i=>i.rule?.__resolveType?.includes("always")),l=Te(n);if(typeof l=="string")return l;const o=s.map(i=>Te(i)).find(i=>typeof i=="string");if(typeof o=="string")return o}return typeof e.src=="string"?e.src:typeof e.url=="string"?e.url:typeof e.value=="string"?e.value:""}function vt(t){const e=T.c(29),{className:s}=t,n=Z();if(bt()){let d;e[0]!==n?(d=n("sectionsEditor.field.missingRequired"),e[0]=n,e[1]=d):d=e[1];let p;e[2]!==s?(p=$("shrink-0 cursor-help text-destructive",s),e[2]=s,e[3]=p):p=e[3];let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(Be,{className:"size-3.5"}),e[4]=x):x=e[4];let m;e[5]!==d||e[6]!==p?(m=r.jsx(ke,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":d,className:p,children:x})}),e[5]=d,e[6]=p,e[7]=m):m=e[7];let g;e[8]!==n?(g=n("sectionsEditor.field.missingRequiredTooltip"),e[8]=n,e[9]=g):g=e[9];let h;e[10]!==g?(h=r.jsx(Ee,{className:"max-w-56",children:g}),e[10]=g,e[11]=h):h=e[11];let w;return e[12]!==m||e[13]!==h?(w=r.jsxs(Se,{children:[m,h]}),e[12]=m,e[13]=h,e[14]=w):w=e[14],w}let o;e[15]!==n?(o=n("sectionsEditor.field.missingRequired"),e[15]=n,e[16]=o):o=e[16];let i;e[17]!==s?(i=$("size-2 shrink-0 cursor-help rounded-full bg-destructive",s),e[17]=s,e[18]=i):i=e[18];let f;e[19]!==o||e[20]!==i?(f=r.jsx(ke,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":o,className:i})}),e[19]=o,e[20]=i,e[21]=f):f=e[21];let c;e[22]!==n?(c=n("sectionsEditor.field.missingRequiredTooltip"),e[22]=n,e[23]=c):c=e[23];let a;e[24]!==c?(a=r.jsx(Ee,{className:"max-w-56",children:c}),e[24]=c,e[25]=a):a=e[25];let u;return e[26]!==f||e[27]!==a?(u=r.jsxs(Se,{children:[f,a]}),e[26]=f,e[27]=a,e[28]=u):u=e[28],u}const Re=E.createContext({required:!1,invalid:!1});function jt(){return E.useContext(Re)}function cs(t){const e=T.c(6),{required:s,invalid:n,children:l}=t;let o;e[0]!==n||e[1]!==s?(o={required:s,invalid:n},e[0]=n,e[1]=s,e[2]=o):o=e[2];let i;return e[3]!==l||e[4]!==o?(i=r.jsx(Re.Provider,{value:o,children:l}),e[3]=l,e[4]=o,e[5]=i):i=e[5],i}function ds(t){return t==null?!0:typeof t=="string"?t.trim()==="":Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:!1}const wt="cursor-help underline decoration-dotted decoration-muted-foreground/50 underline-offset-4";function Oe(t){return Ze(t)?.metadata?.fieldDescriptionTooltips??!1}function Nt(t){const e=T.c(9),{description:s,virtualMcpId:n,children:l}=t,o=Oe(n);if(!s||!o)return l;let i;e[0]!==l?(i=E.cloneElement(l,{className:$(l.props.className,wt)}),e[0]=l,e[1]=i):i=e[1];let f;e[2]!==i?(f=r.jsx(ke,{asChild:!0,children:i}),e[2]=i,e[3]=f):f=e[3];let c;e[4]!==s?(c=r.jsx(Ee,{className:"max-w-64",children:s}),e[4]=s,e[5]=c):c=e[5];let a;return e[6]!==f||e[7]!==c?(a=r.jsxs(Se,{delayDuration:300,children:[f,c]}),e[6]=f,e[7]=c,e[8]=a):a=e[8],a}function kt(t){const e=T.c(17),{htmlFor:s,label:n,description:l,labelClassName:o,virtualMcpId:i}=t,f=Oe(i),{required:c,invalid:a}=jt();let u;e[0]!==a||e[1]!==c?(u=c&&a&&r.jsx(vt,{className:"mt-0.5 self-start"}),e[0]=a,e[1]=c,e[2]=u):u=e[2];let d;e[3]!==s||e[4]!==n||e[5]!==o||e[6]!==u?(d=r.jsxs(Ne,{htmlFor:s,className:o,children:[n,u]}),e[3]=s,e[4]=n,e[5]=o,e[6]=u,e[7]=d):d=e[7];const p=d;if(!f){let m;e[8]!==l?(m=l&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:l}),e[8]=l,e[9]=m):m=e[9];let g;return e[10]!==p||e[11]!==m?(g=r.jsxs("div",{className:"space-y-0.5",children:[p,m]}),e[10]=p,e[11]=m,e[12]=g):g=e[12],g}let x;return e[13]!==l||e[14]!==p||e[15]!==i?(x=r.jsx(Nt,{description:l,virtualMcpId:i,children:p}),e[13]=l,e[14]=p,e[15]=i,e[16]=x):x=e[16],x}function Et(t){const e=Z(),s=Ce(t?.virtualMcpId,t?.branch),{connection:n}=it(t?.virtualMcpId),l=rt(s,n);if(!l||!t||s.kind!=="protocol"||!s.describe.assets)return null;const{maxBytes:o}=s.describe.assets,i=f=>`${l}/assets/${encodeURIComponent(f)}`;return async f=>{if(f.size>o)throw new Error(e("sectionsEditor.fileField.tooLarge",{max:`${Math.floor(o/(1024*1024))} MB`}));if(s.describe.readOnly)throw new Error(e("decoServe.upload.readOnly",{name:f.name}));let c;try{c=await fetch(i(f.name),{method:"PUT",signal:Ve(),headers:{"content-type":f.type||"application/octet-stream"},body:f})}catch{throw new Error(e("decoServe.upload.serverGone",{name:f.name}))}const a=await c.json().catch(()=>null);if(!c.ok||typeof a?.path!="string"){const u=a?.error?.message;throw new Error(e("decoServe.upload.failed",{name:f.name,detail:typeof u=="string"?u:`HTTP ${c.status}`}))}return a.path}}function St(t,e){const s=T.c(6),n=Ce(t?.virtualMcpId,t?.branch);let l;s[0]!==n||s[1]!==t?.previewUrl?(l=n.kind==="protocol"&&n.source==="sandbox"?t?.previewUrl??null:st(n),s[0]=n,s[1]=t?.previewUrl,s[2]=l):l=s[2];const o=l;let i;return s[3]!==e||s[4]!==o?(i=o&&e.startsWith("/")&&!e.startsWith("//")?new URL(e,o).href:e,s[3]=e,s[4]=o,s[5]=i):i=s[5],i}function Ct(){const t=T.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100",children:r.jsxs("span",{className:"flex items-center gap-1.5 rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow-soft",children:[r.jsx(Pe,{size:14}),"Click to replace"]})}),t[0]=e):e=t[0],e}function Ft(t){try{const e=new URL(t).pathname;return decodeURIComponent(e.split("/").pop()??t)}catch{return t.split("/").pop()??t}}function It(t){const e=t.lastIndexOf(".");return e<0||e===t.length-1?"":t.slice(e+1).toLowerCase()}const Tt=["low","medium","high","original"];function De(t){return t==="low"||t==="medium"||t==="high"||t==="original"}function Me(t,e){try{return new URL(t).searchParams.get(e)}catch{const s=_t(t);for(const n of s){const l=n.indexOf("=");if((l>=0?n.slice(0,l):n)===e)return l>=0?n.slice(l+1):""}return null}}function qe(t,e,s){const n=t.indexOf("#"),l=n>=0?t.slice(n):"",o=n>=0?t.slice(0,n):t,i=o.indexOf("?"),f=i>=0?o.slice(0,i):o,c=(i>=0?o.slice(i+1).split("&"):[]).filter(Boolean).filter(a=>{const u=a.indexOf("=");return(u>=0?a.slice(0,u):a)!==e});return s!==void 0&&c.push(`${e}=${s}`),`${f}${c.length?`?${c.join("&")}`:""}${l}`}function _t(t){const e=t.indexOf("#"),s=e>=0?t.slice(0,e):t,n=s.indexOf("?");return n<0?[]:s.slice(n+1).split("&").filter(Boolean)}function Ut(t){if(!t)return;const e=Me(t,"quality");return De(e)?e:void 0}function Pt(t,e){return qe(t,"quality",e)}function $t(t){return t?Me(t,"muted")!=="false":!0}function Rt(t,e){return qe(t,"muted",e?void 0:"false")}function Ot(t){const e=T.c(36),{value:s,onChange:n,showMuted:l}=t,o=l===void 0?!1:l,i=Z(),f=E.useId();let c;e[0]!==s?(c=Ut(s),e[0]=s,e[1]=c):c=e[1];const a=c;let u;e[2]!==s?(u=$t(s),e[2]=s,e[3]=u):u=e[3];const d=u;let p;e[4]!==i?(p=i("sectionsEditor.mediaTransformControls.mediaOptionsLabel"),e[4]=i,e[5]=p):p=e[5];let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(ot,{size:14}),e[6]=x):x=e[6];let m;e[7]!==p?(m=r.jsx(at,{asChild:!0,children:r.jsx(we,{type:"button",variant:"outline",size:"sm",className:"h-9 shrink-0","aria-label":p,children:x})}),e[7]=p,e[8]=m):m=e[8];let g;e[9]!==i?(g=i("sectionsEditor.mediaTransformControls.qualityLabel"),e[9]=i,e[10]=g):g=e[10];let h;e[11]!==g?(h=r.jsx(Ne,{className:"text-xs text-muted-foreground",children:g}),e[11]=g,e[12]=h):h=e[12];const w=a??"";let v;e[13]!==n||e[14]!==s?(v=j=>n(Pt(s,De(j)?j:void 0)),e[13]=n,e[14]=s,e[15]=v):v=e[15];let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=Tt.map(Dt),e[16]=N):N=e[16];let S;e[17]!==v||e[18]!==w?(S=r.jsx(ft,{type:"single",variant:"outline",size:"sm",value:w,onValueChange:v,children:N}),e[17]=v,e[18]=w,e[19]=S):S=e[19];let y;e[20]!==S||e[21]!==h?(y=r.jsxs("div",{className:"flex flex-col gap-1.5",children:[h,S]}),e[20]=S,e[21]=h,e[22]=y):y=e[22];let k;e[23]!==d||e[24]!==f||e[25]!==n||e[26]!==o||e[27]!==i||e[28]!==s?(k=o&&r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsx(Ne,{htmlFor:f,className:"text-xs text-muted-foreground",children:i("sectionsEditor.mediaTransformControls.mutedLabel")}),r.jsx(dt,{id:f,checked:d,onCheckedChange:j=>n(Rt(s,j))})]}),e[23]=d,e[24]=f,e[25]=n,e[26]=o,e[27]=i,e[28]=s,e[29]=k):k=e[29];let b;e[30]!==y||e[31]!==k?(b=r.jsx(lt,{align:"end",className:"w-auto min-w-52 p-3",children:r.jsxs("div",{className:"flex flex-col gap-3",children:[y,k]})}),e[30]=y,e[31]=k,e[32]=b):b=e[32];let C;return e[33]!==b||e[34]!==m?(C=r.jsxs(ct,{children:[m,b]}),e[33]=b,e[34]=m,e[35]=C):C=e[35],C}function Dt(t){return r.jsx(ut,{value:t,className:"h-8 px-3 text-xs capitalize",children:t},t)}function Mt(t){try{const e=new URL(t);return e.protocol==="http:"||e.protocol==="https:"?e.href:""}catch{return""}}const Le=new Set(["image/png","image/jpeg","image/gif","image/webp","image/svg+xml","image/avif"]);function qt(t){const e=T.c(25),{siteSlug:s,onUploaded:n,onNeedsPicker:l,serveUpload:o}=t,i=Z(),f=!o;let c;e[0]!==f?(c={enabled:f},e[0]=f,e[1]=c):c=e[1];const a=pt(c),u=gt(),[d,p]=E.useState(!1);let x;e[2]!==a.data?.configs?(x=a.data?.configs??[],e[2]=a.data?.configs,e[3]=x):x=e[3];let m;e[4]!==s||e[5]!==x?(m=mt(x,s),e[4]=s,e[5]=x,e[6]=m):m=e[6];const g=m;let h;e[7]!==a.data?.configs||e[8]!==g?.id||e[9]!==l||e[10]!==n||e[11]!==o||e[12]!==i||e[13]!==u?(h=async function(C){if(!C)return;const j=Array.from(C).filter(Lt);if(j.length===0){te.error(i("sectionsEditor.imageField.onlyImageFilesAccepted"));return}if(o){try{n(await o(j[0]))}catch(U){const F=U;te.error(F instanceof Error?F.message:i("sectionsEditor.imageField.uploadFailed"))}return}const R=He(a.data?.configs??[],g?.id,typeof window<"u"?window.localStorage.getItem(Ke):null);if(!R){l();return}try{const U=await u.mutateAsync({configId:R,file:j[0]}),F=Mt(U.publicUrl);if(!F){te.error(i("sectionsEditor.imageField.uploadFailed"));return}n(F),j.length>1&&te.info(i("sectionsEditor.imageField.uploadedWithExtraFilesIgnored",{fileName:j[0].name}))}catch(U){const F=U;te.error(F instanceof Error?F.message:i("sectionsEditor.imageField.uploadFailed"))}},e[7]=a.data?.configs,e[8]=g?.id,e[9]=l,e[10]=n,e[11]=o,e[12]=i,e[13]=u,e[14]=h):h=e[14];const w=h,v=g?.id??null;let N,S;e[15]===Symbol.for("react.memo_cache_sentinel")?(N=b=>{b.preventDefault(),b.dataTransfer.types.includes("Files")&&p(!0)},S=b=>{b.currentTarget===b.target&&p(!1)},e[15]=N,e[16]=S):(N=e[15],S=e[16]);let y;e[17]!==w?(y={onDragOver:N,onDragLeave:S,onDrop:b=>{b.preventDefault(),b.stopPropagation(),p(!1),w(b.dataTransfer.files)}},e[17]=w,e[18]=y):y=e[18];let k;return e[19]!==w||e[20]!==d||e[21]!==v||e[22]!==y||e[23]!==u.isPending?(k={isDragging:d,isPending:u.isPending,lockedConfigId:v,handleFiles:w,dropProps:y},e[19]=w,e[20]=d,e[21]=v,e[22]=y,e[23]=u.isPending,e[24]=k):k=e[24],k}function Lt(t){return Le.has(t.type||"")}const zt=3;function fs(t){const e=T.c(97),{schema:s,value:n,onChange:l,path:o,label:i,sandbox:f,compact:c}=t,a=Z();let u;e[0]!==n?(u=yt(n),e[0]=n,e[1]=u):u=e[1];const d=u,[p,x]=E.useState(!1),[m,g]=E.useState(!1),[h,w]=E.useState(!1),v=St(f,d),[N,S]=E.useState(0);let y;e[2]!==N||e[3]!==v?(y=N>0?`${v}${v.includes("?")?"&":"?"}retry=${N}`:v,e[2]=N,e[3]=v,e[4]=y):y=e[4];let k;e[5]!==y?(k=Je(y),e[5]=y,e[6]=k):k=e[6];const b=k,C=!!d&&!b;let j,R;e[7]!==d?(j=d?Ft(d):"",R=j?It(j):"",e[7]=d,e[8]=j,e[9]=R):(j=e[8],R=e[9]);const U=R;let F;e[10]!==l?(F=function(fe){g(!1),w(!1),S(0),l(fe)},e[10]=l,e[11]=F):F=e[11];const I=F,[O,se]=E.useState(d),[ze,Fe]=E.useState(d);ze!==d&&(Fe(d),se(d));let ie;e[12]!==I||e[13]!==d?(ie=function(fe){se(fe);const ee=fe.trim();ee&&!Ue(ee)||ee!==d&&(Fe(ee),I(ee))},e[12]=I,e[13]=d,e[14]=ie):ie=e[14];const ue=ie;let re;e[15]!==d||e[16]!==O?(re=function(){O.trim()&&!Ue(O)&&se(d)},e[15]=d,e[16]=O,e[17]=re):re=e[17];const me=re,P=Et(f),Ie=E.useRef(null);let ne;e[18]!==P?(ne=()=>P?Ie.current?.click():x(!0),e[18]=P,e[19]=ne):ne=e[19];const D=ne,pe=f?.siteSlug;let oe;e[20]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>x(!0),e[20]=oe):oe=e[20];let ae;e[21]!==P||e[22]!==I||e[23]!==pe?(ae={siteSlug:pe,onUploaded:I,onNeedsPicker:oe,serveUpload:P},e[21]=P,e[22]=I,e[23]=pe,e[24]=ae):ae=e[24];const{isDragging:le,isPending:ce,lockedConfigId:ge,dropProps:xe,handleFiles:he}=qt(ae),be=!i&&"hidden";let M;e[25]!==be?(M=$("min-w-0",be),e[25]=be,e[26]=M):M=e[26];const ye=f?.virtualMcpId;let q;e[27]!==i||e[28]!==o||e[29]!==s.description||e[30]!==ye?(q=r.jsx(kt,{htmlFor:o,label:i,description:s.description,labelClassName:"text-muted-foreground",virtualMcpId:ye}),e[27]=i,e[28]=o,e[29]=s.description,e[30]=ye,e[31]=q):q=e[31];let L;e[32]!==M||e[33]!==q?(L=r.jsx("div",{className:M,children:q}),e[32]=M,e[33]=q,e[34]=L):L=e[34];const ve=le&&"border-primary ring-2 ring-primary/30",je=ce&&"pointer-events-none opacity-60";let z;e[35]!==ve||e[36]!==je?(z=$("group relative w-full overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-xl))] border shadow-edge border-border/60 bg-muted/30 transition",ve,je),e[35]=ve,e[36]=je,e[37]=z):z=e[37];let A;e[38]!==D||e[39]!==c||e[40]!==U||e[41]!==j||e[42]!==h||e[43]!==m||e[44]!==ce||e[45]!==i||e[46]!==N||e[47]!==v||e[48]!==b||e[49]!==d||e[50]!==a||e[51]!==C?(A=d?r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:D,"aria-label":a("sectionsEditor.imageField.replaceImage"),className:$("relative block w-full cursor-pointer bg-[image:linear-gradient(45deg,rgba(0,0,0,0.04)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.04)_75%),linear-gradient(45deg,rgba(0,0,0,0.04)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.04)_75%)] bg-[position:0_0,8px_8px] [background-size:16px_16px]",c?"h-28":"h-40"),children:[!h&&!C&&r.jsx("img",{src:b,alt:i,className:$("h-full w-full object-contain transition-opacity",!m&&"opacity-0"),onLoad:()=>g(!0),onError:()=>{v!==d&&N<zt?setTimeout(()=>S(At),600):w(!0)}},d),(h||C)&&r.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1 text-muted-foreground",children:[r.jsx(_e,{size:20}),r.jsx("p",{className:"text-xs",children:a("sectionsEditor.imageField.previewUnavailable")})]}),!m&&!h&&!C&&r.jsx("div",{className:"absolute inset-0 animate-pulse bg-muted/60"}),r.jsx(Ct,{})]}),!c&&r.jsxs("div",{className:"flex items-center gap-2 border-t border-border/60 bg-background/50 px-3 py-2",children:[r.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-medium",children:j}),U&&r.jsx("span",{className:"shrink-0 rounded-[var(--studio-control-radius,var(--radius))] bg-muted px-1.5 py-0.5 text-2xs font-medium uppercase text-muted-foreground",children:U})]})]}):r.jsxs("button",{type:"button",onClick:D,className:$("flex w-full flex-col items-center justify-center gap-2 text-sm text-muted-foreground hover:bg-accent hover:text-foreground",c?"h-28":"h-40"),children:[r.jsx(_e,{size:20}),r.jsx("span",{className:"text-sm font-medium",children:a(ce?"sectionsEditor.imageField.uploading":"sectionsEditor.imageField.dropImageOrClickToBrowse")}),!c&&r.jsx("span",{className:"text-xs text-muted-foreground",children:a("sectionsEditor.imageField.supportedFormatsAndSize")})]}),e[38]=D,e[39]=c,e[40]=U,e[41]=j,e[42]=h,e[43]=m,e[44]=ce,e[45]=i,e[46]=N,e[47]=v,e[48]=b,e[49]=d,e[50]=a,e[51]=C,e[52]=A):A=e[52];let B;e[53]!==le||e[54]!==a?(B=le&&r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-primary/10 backdrop-blur-[1px]",children:r.jsx("span",{className:"rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow-soft",children:a("sectionsEditor.imageField.dropToUpload")})}),e[53]=le,e[54]=a,e[55]=B):B=e[55];let V;e[56]!==xe||e[57]!==z||e[58]!==A||e[59]!==B?(V=r.jsxs("div",{...xe,className:z,children:[A,B]}),e[56]=xe,e[57]=z,e[58]=A,e[59]=B,e[60]=V):V=e[60];let Q;e[61]!==ue?(Q=_=>ue(_.target.value),e[61]=ue,e[62]=Q):Q=e[62];let G;e[63]!==d?(G=_=>{_.key==="Escape"&&se(d)},e[63]=d,e[64]=G):G=e[64];let W;e[65]!==a?(W=a("sectionsEditor.imageField.urlPlaceholder"),e[65]=a,e[66]=W):W=e[66];let Y;e[67]!==o||e[68]!==me||e[69]!==Q||e[70]!==G||e[71]!==W||e[72]!==O?(Y=r.jsx(Qe,{id:o,type:"url",value:O,onChange:Q,onBlur:me,onKeyDown:G,placeholder:W,className:"h-9 min-w-0 flex-1"}),e[67]=o,e[68]=me,e[69]=Q,e[70]=G,e[71]=W,e[72]=O,e[73]=Y):Y=e[73];let H;e[74]!==D||e[75]!==d||e[76]!==a?(H=!d&&r.jsxs(we,{type:"button",variant:"outline",size:"sm",onClick:D,className:"h-9 shrink-0",children:[r.jsx(Pe,{size:14}),a("sectionsEditor.imageField.browse")]}),e[74]=D,e[75]=d,e[76]=a,e[77]=H):H=e[77];let K;e[78]!==I||e[79]!==d||e[80]!==a?(K=d&&r.jsxs(r.Fragment,{children:[r.jsx(Ot,{value:d,onChange:I}),r.jsx(we,{type:"button",variant:"ghost",size:"sm",onClick:()=>I(""),className:"h-9 shrink-0","aria-label":a("sectionsEditor.imageField.removeImage"),children:r.jsx(Ye,{size:14})})]}),e[78]=I,e[79]=d,e[80]=a,e[81]=K):K=e[81];let J;e[82]!==Y||e[83]!==H||e[84]!==K?(J=r.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2",children:[Y,H,K]}),e[82]=Y,e[83]=H,e[84]=K,e[85]=J):J=e[85];let X;e[86]!==he||e[87]!==ge||e[88]!==p||e[89]!==P||e[90]!==I?(X=P?r.jsx("input",{ref:Ie,type:"file",accept:[...Le].join(","),className:"hidden",onChange:_=>{he(_.target.files),_.target.value=""}}):r.jsx(Xe,{open:p,onOpenChange:x,mode:"image",onSelect:_=>I(_),lockedConfigId:ge}),e[86]=he,e[87]=ge,e[88]=p,e[89]=P,e[90]=I,e[91]=X):X=e[91];let de;return e[92]!==L||e[93]!==V||e[94]!==J||e[95]!==X?(de=r.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:[L,V,J,X]}),e[92]=L,e[93]=V,e[94]=J,e[95]=X,e[96]=de):de=e[96],de}function At(t){return t+1}function us(t){const e=T.c(15),{isPending:s,isError:n}=t,l=Z();if(n){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx(xt,{size:13}),e[0]=c):c=e[0];let a;e[1]!==l?(a=l("sandbox.saveStatus.failed"),e[1]=l,e[2]=a):a=e[2];let u;return e[3]!==a?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-destructive",children:[c,a]}),e[3]=a,e[4]=u):u=e[4],u}if(s){let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx(Ge,{className:"size-[13px]"}),e[5]=c):c=e[5];let a;e[6]!==l?(a=l("sandbox.saveStatus.saving"),e[6]=l,e[7]=a):a=e[7];let u;return e[8]!==a?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[c,a]}),e[8]=a,e[9]=u):u=e[9],u}let o;e[10]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(We,{size:13}),e[10]=o):o=e[10];let i;e[11]!==l?(i=l("sandbox.saveStatus.saved"),e[11]=l,e[12]=i):i=e[12];let f;return e[13]!==i?(f=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground/70",children:[o,i]}),e[13]=i,e[14]=f):f=e[14],f}export{Ct as C,kt as F,fs as I,vt as M,ls as N,Tt as Q,cs as R,us as S,bt as a,Oe as b,jt as c,Nt as d,yt as e,Ft as f,It as g,Et as h,ds as i,St as j,Ot as k,Ut as l,qt as m,Pt as s,ht as u};
|
|
1
|
+
import{c as T,r as E,a4 as Ae,eH as Te,b as Z,m as $,j as r,a5 as Be,es as Ve,B as we,t as te,I as Qe,h as Ge,bu as We}from"./index-DkcRNYY4.js";import{b as _e}from"./Tool01-DRAEzq3d.js";import{s as Ye}from"./Trash01-B0DFZIg9.js";import{i as Pe}from"./Upload01-CF32qbWU.js";import{r as He,L as Ke,s as Je,F as Xe,i as Ue}from"./use-never-published-DFEsFGpN.js";import{L as Ne}from"./label-Dn3Jp5Ws.js";import{T as ke,a as Ee,c as Se}from"./tooltip-CcU7DhuT.js";import{u as Ze}from"./repository-binding-BLl1r28B.js";import{u as et}from"./chat-context-2_7VL2Se.js";import{u as Ce,a8 as tt,h as st,b as it,a9 as rt}from"./site-editor-toast-DHWingRQ.js";import{c as nt}from"./use-organization-settings-Bp5pncRd.js";import{a as ot}from"./SwitchHorizontal01-D4s0wqq6.js";import{a as at,b as lt,P as ct}from"./popover-DGUQnbhk.js";import{S as dt}from"./switch-D_fyZtAR.js";import{a as ft,T as ut}from"./toggle-group-BJvueItv.js";import{m as mt}from"./match-site-slug-config-D3fUJ6vX.js";import{u as pt}from"./use-file-configs-C0B0PjW_.js";import{u as gt}from"./asset-utils-D4HWdZ_7.js";import{i as xt}from"./AlertCircle-BttmH_EW.js";const $e=E.createContext(null);function ls(t){const e=T.c(3),{children:s}=t,n=et(),l=Ce(n?.virtualMcpId,n?.currentBranch);let o;return e[0]!==l.kind||e[1]!==s?(o=E.createElement($e.Provider,{value:l.kind},s),e[0]=l.kind,e[1]=s,e[2]=o):o=e[2],o}function ht(){const t=T.c(4),e=E.useContext($e),{org:s}=Ae(),n=nt("new_blocks_editor"),l=!!s.id;let o;return t[0]!==e||t[1]!==n||t[2]!==l?(o=tt({backend:e,hasOrg:l,orgFlag:n}),t[0]=e,t[1]=n,t[2]=l,t[3]=o):o=t[3],o}function bt(){return ht()??!1}function yt(t){if(typeof t=="string")return t;if(!t||typeof t!="object")return"";const e=t;if(Array.isArray(e.variants)){const s=e.variants,n=s.find(i=>i.rule?.__resolveType?.includes("always")),l=Te(n);if(typeof l=="string")return l;const o=s.map(i=>Te(i)).find(i=>typeof i=="string");if(typeof o=="string")return o}return typeof e.src=="string"?e.src:typeof e.url=="string"?e.url:typeof e.value=="string"?e.value:""}function vt(t){const e=T.c(29),{className:s}=t,n=Z();if(bt()){let d;e[0]!==n?(d=n("sectionsEditor.field.missingRequired"),e[0]=n,e[1]=d):d=e[1];let p;e[2]!==s?(p=$("shrink-0 cursor-help text-destructive",s),e[2]=s,e[3]=p):p=e[3];let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(Be,{className:"size-3.5"}),e[4]=x):x=e[4];let m;e[5]!==d||e[6]!==p?(m=r.jsx(ke,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":d,className:p,children:x})}),e[5]=d,e[6]=p,e[7]=m):m=e[7];let g;e[8]!==n?(g=n("sectionsEditor.field.missingRequiredTooltip"),e[8]=n,e[9]=g):g=e[9];let h;e[10]!==g?(h=r.jsx(Ee,{className:"max-w-56",children:g}),e[10]=g,e[11]=h):h=e[11];let w;return e[12]!==m||e[13]!==h?(w=r.jsxs(Se,{children:[m,h]}),e[12]=m,e[13]=h,e[14]=w):w=e[14],w}let o;e[15]!==n?(o=n("sectionsEditor.field.missingRequired"),e[15]=n,e[16]=o):o=e[16];let i;e[17]!==s?(i=$("size-2 shrink-0 cursor-help rounded-full bg-destructive",s),e[17]=s,e[18]=i):i=e[18];let f;e[19]!==o||e[20]!==i?(f=r.jsx(ke,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":o,className:i})}),e[19]=o,e[20]=i,e[21]=f):f=e[21];let c;e[22]!==n?(c=n("sectionsEditor.field.missingRequiredTooltip"),e[22]=n,e[23]=c):c=e[23];let a;e[24]!==c?(a=r.jsx(Ee,{className:"max-w-56",children:c}),e[24]=c,e[25]=a):a=e[25];let u;return e[26]!==f||e[27]!==a?(u=r.jsxs(Se,{children:[f,a]}),e[26]=f,e[27]=a,e[28]=u):u=e[28],u}const Re=E.createContext({required:!1,invalid:!1});function jt(){return E.useContext(Re)}function cs(t){const e=T.c(6),{required:s,invalid:n,children:l}=t;let o;e[0]!==n||e[1]!==s?(o={required:s,invalid:n},e[0]=n,e[1]=s,e[2]=o):o=e[2];let i;return e[3]!==l||e[4]!==o?(i=r.jsx(Re.Provider,{value:o,children:l}),e[3]=l,e[4]=o,e[5]=i):i=e[5],i}function ds(t){return t==null?!0:typeof t=="string"?t.trim()==="":Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:!1}const wt="cursor-help underline decoration-dotted decoration-muted-foreground/50 underline-offset-4";function Oe(t){return Ze(t)?.metadata?.fieldDescriptionTooltips??!1}function Nt(t){const e=T.c(9),{description:s,virtualMcpId:n,children:l}=t,o=Oe(n);if(!s||!o)return l;let i;e[0]!==l?(i=E.cloneElement(l,{className:$(l.props.className,wt)}),e[0]=l,e[1]=i):i=e[1];let f;e[2]!==i?(f=r.jsx(ke,{asChild:!0,children:i}),e[2]=i,e[3]=f):f=e[3];let c;e[4]!==s?(c=r.jsx(Ee,{className:"max-w-64",children:s}),e[4]=s,e[5]=c):c=e[5];let a;return e[6]!==f||e[7]!==c?(a=r.jsxs(Se,{delayDuration:300,children:[f,c]}),e[6]=f,e[7]=c,e[8]=a):a=e[8],a}function kt(t){const e=T.c(17),{htmlFor:s,label:n,description:l,labelClassName:o,virtualMcpId:i}=t,f=Oe(i),{required:c,invalid:a}=jt();let u;e[0]!==a||e[1]!==c?(u=c&&a&&r.jsx(vt,{className:"mt-0.5 self-start"}),e[0]=a,e[1]=c,e[2]=u):u=e[2];let d;e[3]!==s||e[4]!==n||e[5]!==o||e[6]!==u?(d=r.jsxs(Ne,{htmlFor:s,className:o,children:[n,u]}),e[3]=s,e[4]=n,e[5]=o,e[6]=u,e[7]=d):d=e[7];const p=d;if(!f){let m;e[8]!==l?(m=l&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:l}),e[8]=l,e[9]=m):m=e[9];let g;return e[10]!==p||e[11]!==m?(g=r.jsxs("div",{className:"space-y-0.5",children:[p,m]}),e[10]=p,e[11]=m,e[12]=g):g=e[12],g}let x;return e[13]!==l||e[14]!==p||e[15]!==i?(x=r.jsx(Nt,{description:l,virtualMcpId:i,children:p}),e[13]=l,e[14]=p,e[15]=i,e[16]=x):x=e[16],x}function Et(t){const e=Z(),s=Ce(t?.virtualMcpId,t?.branch),{connection:n}=it(t?.virtualMcpId),l=rt(s,n);if(!l||!t||s.kind!=="protocol"||!s.describe.assets)return null;const{maxBytes:o}=s.describe.assets,i=f=>`${l}/assets/${encodeURIComponent(f)}`;return async f=>{if(f.size>o)throw new Error(e("sectionsEditor.fileField.tooLarge",{max:`${Math.floor(o/(1024*1024))} MB`}));if(s.describe.readOnly)throw new Error(e("decoServe.upload.readOnly",{name:f.name}));let c;try{c=await fetch(i(f.name),{method:"PUT",signal:Ve(),headers:{"content-type":f.type||"application/octet-stream"},body:f})}catch{throw new Error(e("decoServe.upload.serverGone",{name:f.name}))}const a=await c.json().catch(()=>null);if(!c.ok||typeof a?.path!="string"){const u=a?.error?.message;throw new Error(e("decoServe.upload.failed",{name:f.name,detail:typeof u=="string"?u:`HTTP ${c.status}`}))}return a.path}}function St(t,e){const s=T.c(6),n=Ce(t?.virtualMcpId,t?.branch);let l;s[0]!==n||s[1]!==t?.previewUrl?(l=n.kind==="protocol"&&n.source==="sandbox"?t?.previewUrl??null:st(n),s[0]=n,s[1]=t?.previewUrl,s[2]=l):l=s[2];const o=l;let i;return s[3]!==e||s[4]!==o?(i=o&&e.startsWith("/")&&!e.startsWith("//")?new URL(e,o).href:e,s[3]=e,s[4]=o,s[5]=i):i=s[5],i}function Ct(){const t=T.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100",children:r.jsxs("span",{className:"flex items-center gap-1.5 rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow-soft",children:[r.jsx(Pe,{size:14}),"Click to replace"]})}),t[0]=e):e=t[0],e}function Ft(t){try{const e=new URL(t).pathname;return decodeURIComponent(e.split("/").pop()??t)}catch{return t.split("/").pop()??t}}function It(t){const e=t.lastIndexOf(".");return e<0||e===t.length-1?"":t.slice(e+1).toLowerCase()}const Tt=["low","medium","high","original"];function De(t){return t==="low"||t==="medium"||t==="high"||t==="original"}function Me(t,e){try{return new URL(t).searchParams.get(e)}catch{const s=_t(t);for(const n of s){const l=n.indexOf("=");if((l>=0?n.slice(0,l):n)===e)return l>=0?n.slice(l+1):""}return null}}function qe(t,e,s){const n=t.indexOf("#"),l=n>=0?t.slice(n):"",o=n>=0?t.slice(0,n):t,i=o.indexOf("?"),f=i>=0?o.slice(0,i):o,c=(i>=0?o.slice(i+1).split("&"):[]).filter(Boolean).filter(a=>{const u=a.indexOf("=");return(u>=0?a.slice(0,u):a)!==e});return s!==void 0&&c.push(`${e}=${s}`),`${f}${c.length?`?${c.join("&")}`:""}${l}`}function _t(t){const e=t.indexOf("#"),s=e>=0?t.slice(0,e):t,n=s.indexOf("?");return n<0?[]:s.slice(n+1).split("&").filter(Boolean)}function Ut(t){if(!t)return;const e=Me(t,"quality");return De(e)?e:void 0}function Pt(t,e){return qe(t,"quality",e)}function $t(t){return t?Me(t,"muted")!=="false":!0}function Rt(t,e){return qe(t,"muted",e?void 0:"false")}function Ot(t){const e=T.c(36),{value:s,onChange:n,showMuted:l}=t,o=l===void 0?!1:l,i=Z(),f=E.useId();let c;e[0]!==s?(c=Ut(s),e[0]=s,e[1]=c):c=e[1];const a=c;let u;e[2]!==s?(u=$t(s),e[2]=s,e[3]=u):u=e[3];const d=u;let p;e[4]!==i?(p=i("sectionsEditor.mediaTransformControls.mediaOptionsLabel"),e[4]=i,e[5]=p):p=e[5];let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(ot,{size:14}),e[6]=x):x=e[6];let m;e[7]!==p?(m=r.jsx(at,{asChild:!0,children:r.jsx(we,{type:"button",variant:"outline",size:"sm",className:"h-9 shrink-0","aria-label":p,children:x})}),e[7]=p,e[8]=m):m=e[8];let g;e[9]!==i?(g=i("sectionsEditor.mediaTransformControls.qualityLabel"),e[9]=i,e[10]=g):g=e[10];let h;e[11]!==g?(h=r.jsx(Ne,{className:"text-xs text-muted-foreground",children:g}),e[11]=g,e[12]=h):h=e[12];const w=a??"";let v;e[13]!==n||e[14]!==s?(v=j=>n(Pt(s,De(j)?j:void 0)),e[13]=n,e[14]=s,e[15]=v):v=e[15];let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=Tt.map(Dt),e[16]=N):N=e[16];let S;e[17]!==v||e[18]!==w?(S=r.jsx(ft,{type:"single",variant:"outline",size:"sm",value:w,onValueChange:v,children:N}),e[17]=v,e[18]=w,e[19]=S):S=e[19];let y;e[20]!==S||e[21]!==h?(y=r.jsxs("div",{className:"flex flex-col gap-1.5",children:[h,S]}),e[20]=S,e[21]=h,e[22]=y):y=e[22];let k;e[23]!==d||e[24]!==f||e[25]!==n||e[26]!==o||e[27]!==i||e[28]!==s?(k=o&&r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsx(Ne,{htmlFor:f,className:"text-xs text-muted-foreground",children:i("sectionsEditor.mediaTransformControls.mutedLabel")}),r.jsx(dt,{id:f,checked:d,onCheckedChange:j=>n(Rt(s,j))})]}),e[23]=d,e[24]=f,e[25]=n,e[26]=o,e[27]=i,e[28]=s,e[29]=k):k=e[29];let b;e[30]!==y||e[31]!==k?(b=r.jsx(lt,{align:"end",className:"w-auto min-w-52 p-3",children:r.jsxs("div",{className:"flex flex-col gap-3",children:[y,k]})}),e[30]=y,e[31]=k,e[32]=b):b=e[32];let C;return e[33]!==b||e[34]!==m?(C=r.jsxs(ct,{children:[m,b]}),e[33]=b,e[34]=m,e[35]=C):C=e[35],C}function Dt(t){return r.jsx(ut,{value:t,className:"h-8 px-3 text-xs capitalize",children:t},t)}function Mt(t){try{const e=new URL(t);return e.protocol==="http:"||e.protocol==="https:"?e.href:""}catch{return""}}const Le=new Set(["image/png","image/jpeg","image/gif","image/webp","image/svg+xml","image/avif"]);function qt(t){const e=T.c(25),{siteSlug:s,onUploaded:n,onNeedsPicker:l,serveUpload:o}=t,i=Z(),f=!o;let c;e[0]!==f?(c={enabled:f},e[0]=f,e[1]=c):c=e[1];const a=pt(c),u=gt(),[d,p]=E.useState(!1);let x;e[2]!==a.data?.configs?(x=a.data?.configs??[],e[2]=a.data?.configs,e[3]=x):x=e[3];let m;e[4]!==s||e[5]!==x?(m=mt(x,s),e[4]=s,e[5]=x,e[6]=m):m=e[6];const g=m;let h;e[7]!==a.data?.configs||e[8]!==g?.id||e[9]!==l||e[10]!==n||e[11]!==o||e[12]!==i||e[13]!==u?(h=async function(C){if(!C)return;const j=Array.from(C).filter(Lt);if(j.length===0){te.error(i("sectionsEditor.imageField.onlyImageFilesAccepted"));return}if(o){try{n(await o(j[0]))}catch(U){const F=U;te.error(F instanceof Error?F.message:i("sectionsEditor.imageField.uploadFailed"))}return}const R=He(a.data?.configs??[],g?.id,typeof window<"u"?window.localStorage.getItem(Ke):null);if(!R){l();return}try{const U=await u.mutateAsync({configId:R,file:j[0]}),F=Mt(U.publicUrl);if(!F){te.error(i("sectionsEditor.imageField.uploadFailed"));return}n(F),j.length>1&&te.info(i("sectionsEditor.imageField.uploadedWithExtraFilesIgnored",{fileName:j[0].name}))}catch(U){const F=U;te.error(F instanceof Error?F.message:i("sectionsEditor.imageField.uploadFailed"))}},e[7]=a.data?.configs,e[8]=g?.id,e[9]=l,e[10]=n,e[11]=o,e[12]=i,e[13]=u,e[14]=h):h=e[14];const w=h,v=g?.id??null;let N,S;e[15]===Symbol.for("react.memo_cache_sentinel")?(N=b=>{b.preventDefault(),b.dataTransfer.types.includes("Files")&&p(!0)},S=b=>{b.currentTarget===b.target&&p(!1)},e[15]=N,e[16]=S):(N=e[15],S=e[16]);let y;e[17]!==w?(y={onDragOver:N,onDragLeave:S,onDrop:b=>{b.preventDefault(),b.stopPropagation(),p(!1),w(b.dataTransfer.files)}},e[17]=w,e[18]=y):y=e[18];let k;return e[19]!==w||e[20]!==d||e[21]!==v||e[22]!==y||e[23]!==u.isPending?(k={isDragging:d,isPending:u.isPending,lockedConfigId:v,handleFiles:w,dropProps:y},e[19]=w,e[20]=d,e[21]=v,e[22]=y,e[23]=u.isPending,e[24]=k):k=e[24],k}function Lt(t){return Le.has(t.type||"")}const zt=3;function fs(t){const e=T.c(97),{schema:s,value:n,onChange:l,path:o,label:i,sandbox:f,compact:c}=t,a=Z();let u;e[0]!==n?(u=yt(n),e[0]=n,e[1]=u):u=e[1];const d=u,[p,x]=E.useState(!1),[m,g]=E.useState(!1),[h,w]=E.useState(!1),v=St(f,d),[N,S]=E.useState(0);let y;e[2]!==N||e[3]!==v?(y=N>0?`${v}${v.includes("?")?"&":"?"}retry=${N}`:v,e[2]=N,e[3]=v,e[4]=y):y=e[4];let k;e[5]!==y?(k=Je(y),e[5]=y,e[6]=k):k=e[6];const b=k,C=!!d&&!b;let j,R;e[7]!==d?(j=d?Ft(d):"",R=j?It(j):"",e[7]=d,e[8]=j,e[9]=R):(j=e[8],R=e[9]);const U=R;let F;e[10]!==l?(F=function(fe){g(!1),w(!1),S(0),l(fe)},e[10]=l,e[11]=F):F=e[11];const I=F,[O,se]=E.useState(d),[ze,Fe]=E.useState(d);ze!==d&&(Fe(d),se(d));let ie;e[12]!==I||e[13]!==d?(ie=function(fe){se(fe);const ee=fe.trim();ee&&!Ue(ee)||ee!==d&&(Fe(ee),I(ee))},e[12]=I,e[13]=d,e[14]=ie):ie=e[14];const ue=ie;let re;e[15]!==d||e[16]!==O?(re=function(){O.trim()&&!Ue(O)&&se(d)},e[15]=d,e[16]=O,e[17]=re):re=e[17];const me=re,P=Et(f),Ie=E.useRef(null);let ne;e[18]!==P?(ne=()=>P?Ie.current?.click():x(!0),e[18]=P,e[19]=ne):ne=e[19];const D=ne,pe=f?.siteSlug;let oe;e[20]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>x(!0),e[20]=oe):oe=e[20];let ae;e[21]!==P||e[22]!==I||e[23]!==pe?(ae={siteSlug:pe,onUploaded:I,onNeedsPicker:oe,serveUpload:P},e[21]=P,e[22]=I,e[23]=pe,e[24]=ae):ae=e[24];const{isDragging:le,isPending:ce,lockedConfigId:ge,dropProps:xe,handleFiles:he}=qt(ae),be=!i&&"hidden";let M;e[25]!==be?(M=$("min-w-0",be),e[25]=be,e[26]=M):M=e[26];const ye=f?.virtualMcpId;let q;e[27]!==i||e[28]!==o||e[29]!==s.description||e[30]!==ye?(q=r.jsx(kt,{htmlFor:o,label:i,description:s.description,labelClassName:"text-muted-foreground",virtualMcpId:ye}),e[27]=i,e[28]=o,e[29]=s.description,e[30]=ye,e[31]=q):q=e[31];let L;e[32]!==M||e[33]!==q?(L=r.jsx("div",{className:M,children:q}),e[32]=M,e[33]=q,e[34]=L):L=e[34];const ve=le&&"border-primary ring-2 ring-primary/30",je=ce&&"pointer-events-none opacity-60";let z;e[35]!==ve||e[36]!==je?(z=$("group relative w-full overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-xl))] border shadow-edge border-border/60 bg-muted/30 transition",ve,je),e[35]=ve,e[36]=je,e[37]=z):z=e[37];let A;e[38]!==D||e[39]!==c||e[40]!==U||e[41]!==j||e[42]!==h||e[43]!==m||e[44]!==ce||e[45]!==i||e[46]!==N||e[47]!==v||e[48]!==b||e[49]!==d||e[50]!==a||e[51]!==C?(A=d?r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:D,"aria-label":a("sectionsEditor.imageField.replaceImage"),className:$("relative block w-full cursor-pointer bg-[image:linear-gradient(45deg,rgba(0,0,0,0.04)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.04)_75%),linear-gradient(45deg,rgba(0,0,0,0.04)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.04)_75%)] bg-[position:0_0,8px_8px] [background-size:16px_16px]",c?"h-28":"h-40"),children:[!h&&!C&&r.jsx("img",{src:b,alt:i,className:$("h-full w-full object-contain transition-opacity",!m&&"opacity-0"),onLoad:()=>g(!0),onError:()=>{v!==d&&N<zt?setTimeout(()=>S(At),600):w(!0)}},d),(h||C)&&r.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1 text-muted-foreground",children:[r.jsx(_e,{size:20}),r.jsx("p",{className:"text-xs",children:a("sectionsEditor.imageField.previewUnavailable")})]}),!m&&!h&&!C&&r.jsx("div",{className:"absolute inset-0 animate-pulse bg-muted/60"}),r.jsx(Ct,{})]}),!c&&r.jsxs("div",{className:"flex items-center gap-2 border-t border-border/60 bg-background/50 px-3 py-2",children:[r.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-medium",children:j}),U&&r.jsx("span",{className:"shrink-0 rounded-[var(--studio-control-radius,var(--radius))] bg-muted px-1.5 py-0.5 text-2xs font-medium uppercase text-muted-foreground",children:U})]})]}):r.jsxs("button",{type:"button",onClick:D,className:$("flex w-full flex-col items-center justify-center gap-2 text-sm text-muted-foreground hover:bg-accent hover:text-foreground",c?"h-28":"h-40"),children:[r.jsx(_e,{size:20}),r.jsx("span",{className:"text-sm font-medium",children:a(ce?"sectionsEditor.imageField.uploading":"sectionsEditor.imageField.dropImageOrClickToBrowse")}),!c&&r.jsx("span",{className:"text-xs text-muted-foreground",children:a("sectionsEditor.imageField.supportedFormatsAndSize")})]}),e[38]=D,e[39]=c,e[40]=U,e[41]=j,e[42]=h,e[43]=m,e[44]=ce,e[45]=i,e[46]=N,e[47]=v,e[48]=b,e[49]=d,e[50]=a,e[51]=C,e[52]=A):A=e[52];let B;e[53]!==le||e[54]!==a?(B=le&&r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-primary/10 backdrop-blur-[1px]",children:r.jsx("span",{className:"rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow-soft",children:a("sectionsEditor.imageField.dropToUpload")})}),e[53]=le,e[54]=a,e[55]=B):B=e[55];let V;e[56]!==xe||e[57]!==z||e[58]!==A||e[59]!==B?(V=r.jsxs("div",{...xe,className:z,children:[A,B]}),e[56]=xe,e[57]=z,e[58]=A,e[59]=B,e[60]=V):V=e[60];let Q;e[61]!==ue?(Q=_=>ue(_.target.value),e[61]=ue,e[62]=Q):Q=e[62];let G;e[63]!==d?(G=_=>{_.key==="Escape"&&se(d)},e[63]=d,e[64]=G):G=e[64];let W;e[65]!==a?(W=a("sectionsEditor.imageField.urlPlaceholder"),e[65]=a,e[66]=W):W=e[66];let Y;e[67]!==o||e[68]!==me||e[69]!==Q||e[70]!==G||e[71]!==W||e[72]!==O?(Y=r.jsx(Qe,{id:o,type:"url",value:O,onChange:Q,onBlur:me,onKeyDown:G,placeholder:W,className:"h-9 min-w-0 flex-1"}),e[67]=o,e[68]=me,e[69]=Q,e[70]=G,e[71]=W,e[72]=O,e[73]=Y):Y=e[73];let H;e[74]!==D||e[75]!==d||e[76]!==a?(H=!d&&r.jsxs(we,{type:"button",variant:"outline",size:"sm",onClick:D,className:"h-9 shrink-0",children:[r.jsx(Pe,{size:14}),a("sectionsEditor.imageField.browse")]}),e[74]=D,e[75]=d,e[76]=a,e[77]=H):H=e[77];let K;e[78]!==I||e[79]!==d||e[80]!==a?(K=d&&r.jsxs(r.Fragment,{children:[r.jsx(Ot,{value:d,onChange:I}),r.jsx(we,{type:"button",variant:"ghost",size:"sm",onClick:()=>I(""),className:"h-9 shrink-0","aria-label":a("sectionsEditor.imageField.removeImage"),children:r.jsx(Ye,{size:14})})]}),e[78]=I,e[79]=d,e[80]=a,e[81]=K):K=e[81];let J;e[82]!==Y||e[83]!==H||e[84]!==K?(J=r.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2",children:[Y,H,K]}),e[82]=Y,e[83]=H,e[84]=K,e[85]=J):J=e[85];let X;e[86]!==he||e[87]!==ge||e[88]!==p||e[89]!==P||e[90]!==I?(X=P?r.jsx("input",{ref:Ie,type:"file",accept:[...Le].join(","),className:"hidden",onChange:_=>{he(_.target.files),_.target.value=""}}):r.jsx(Xe,{open:p,onOpenChange:x,mode:"image",onSelect:_=>I(_),lockedConfigId:ge}),e[86]=he,e[87]=ge,e[88]=p,e[89]=P,e[90]=I,e[91]=X):X=e[91];let de;return e[92]!==L||e[93]!==V||e[94]!==J||e[95]!==X?(de=r.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:[L,V,J,X]}),e[92]=L,e[93]=V,e[94]=J,e[95]=X,e[96]=de):de=e[96],de}function At(t){return t+1}function us(t){const e=T.c(15),{isPending:s,isError:n}=t,l=Z();if(n){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx(xt,{size:13}),e[0]=c):c=e[0];let a;e[1]!==l?(a=l("sandbox.saveStatus.failed"),e[1]=l,e[2]=a):a=e[2];let u;return e[3]!==a?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-destructive",children:[c,a]}),e[3]=a,e[4]=u):u=e[4],u}if(s){let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx(Ge,{className:"size-[13px]"}),e[5]=c):c=e[5];let a;e[6]!==l?(a=l("sandbox.saveStatus.saving"),e[6]=l,e[7]=a):a=e[7];let u;return e[8]!==a?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[c,a]}),e[8]=a,e[9]=u):u=e[9],u}let o;e[10]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(We,{size:13}),e[10]=o):o=e[10];let i;e[11]!==l?(i=l("sandbox.saveStatus.saved"),e[11]=l,e[12]=i):i=e[12];let f;return e[13]!==i?(f=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground/70",children:[o,i]}),e[13]=i,e[14]=f):f=e[14],f}export{Ct as C,kt as F,fs as I,vt as M,ls as N,Tt as Q,cs as R,us as S,bt as a,Oe as b,jt as c,Nt as d,yt as e,Ft as f,It as g,Et as h,ds as i,St as j,Ot as k,Ut as l,qt as m,Pt as s,ht as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aF as s,cm as e,aG as a,cn as d,bt as l}from"./index-
|
|
1
|
+
import{aF as s,cm as e,aG as a,cn as d,bt as l}from"./index-DkcRNYY4.js";const o=500;s({title:a().max(o),url:a().max(o),icon:a().max(o)});const t=s({keyId:a().max(o),modelId:a().max(o),title:a().max(o).optional()}).nullable();d(["fast","smart","thinking","image","web_search","deep_research"]);d(["fast","smart","thinking"]);const b=s({tiers:s({fast:t,smart:t,thinking:t,image:t,web_search:t,deep_research:t})});s({tiers:s({fast:t.optional(),smart:t.optional(),thinking:t.optional()})});const f=50,c=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;s({host:a().trim().toLowerCase().min(1).max(o).regex(c).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:a().min(1).max(o).describe("Vault secret id holding the PAT used to authenticate this host.")});s({ids:l(a().max(o)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const u=s({voice_mode:e().optional(),home_task_intake_enabled:e().optional().describe("Show Task mode on the Home composer and allow reports to start tasks."),demo_mode:e().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),demo_board_reset:e().optional().describe("Curated demo org: every morning the task board returns to its captured snapshot, and admins can reset or recapture it on demand."),reports_only:e().optional().describe("Curated Deco Score look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),reviewer_enabled:e().optional().describe("Run the Reviewer on a task's pull request when the card reaches In Review — it reviews the code with the repo's stack-appropriate skills, fixes what it finds on the PR's own branch, then exercises the change on the deploy preview and approves or hands the card to a human."),qa_agent_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),code_reviewer_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),auto_merge:e().optional().describe("When a card reaches Ready for Deployment, merge its pull request automatically instead of waiting for someone to press Ship."),auto_resolve_conflicts:e().optional().describe("When a pull request in Ready for Deployment can't be merged because it conflicts with its base branch, hand it back to the Super Agent to resolve the conflict (check out the branch, merge the base, push). Unset, it follows `auto_merge`; set it explicitly to run one without the other."),cheap_reviewer_model:e().optional().describe("Run the Reviewer on a cheaper model than the Super Agent that wrote the code. On by default — turning it off trades cost for some review depth."),coding_agent_org_mcps:e().optional().describe("Give a coding-agent run (the claude-code harness in a sandbox) every MCP connection in the org as its own MCP server, on top of the narrow Studio surface it always gets. Off by default: each connection is one more server the agent connects to at session start, and all of their tools land in its context."),coding_agents_claude_code:e().optional().describe("Run chats on a Code Agent (an agent imported from a GitHub repo) with the claude-code harness inside its sandbox, instead of hosted Decopilot. Off by default: it changes the runtime of every such chat, and claude-code flushes whole turns rather than streaming tokens."),task_board_codex:e().optional().describe("Allow tasks to select the Codex harness. Off by default; existing tasks keep Claude Code. Reviewers keep their own runtime."),chat_harness_codex:e().optional().describe("Use Codex for new sandbox chats. Off by default; requires hosted sandboxes and a ChatGPT subscription or Responses API provider. Existing chats keep their pinned runtime."),chat_harness_sandbox_only:e().optional().describe("Run every chat with the claude-code harness in its own sandbox instead of hosted Decopilot. On by default (see DEFAULT_ON_FLAGS); a deployment without hosted sandboxes keeps Decopilot regardless."),sandbox_run_metadata:e().optional().describe("Forward a sandbox run's metadata (such as a webhook trigger's run_metadata) to the MCP tools it calls, as hosted Decopilot runs do. Off by default."),sandbox_repo_snapshots:e().optional().describe("Keep a Freestyle snapshot of each project repo at its default branch's head, with its dependencies installed and its dev server running, so a new sandbox for that repo starts already serving. Off by default: each push to a default branch costs a snapshot build the next time a sandbox starts."),auto_assign_report_tasks_to_super_agent:e().optional().describe("When a Deco Score import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned."),hosting_enabled:e().optional().describe("Per-site Hosting tab (deployments, domains, deploy outcomes). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),deco_analytics_enabled:e().optional().describe("Per-site Deco Analytics tab (traffic, realtime, usage & limits). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),e2e_enabled:e().optional().describe("Per-site E2E tab (end-to-end test runs). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),experiments_enabled:e().optional().describe("Per-site Experiments tab (A/B tests + variant results). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org."),experiments_v2_enabled:e().optional().describe("Rebuilt Experiments tab: describe the test in prose and an agent drafts it, plus inline editing and the implement/preview tools that write the split into the site. Off by default — an org without it keeps the table-and-dialog tab, which only records experiment metadata. Requires `experiments_enabled`, which still decides whether the tab exists at all."),monitor_enabled:e().optional().describe("Per-site Monitor tab (CDN Performance + Audience from the stats-lake warehouse). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. Its own deployment-wide switch `MONITOR_GA` opens it to every org at once (independent of the control-plane trio)."),site_create_enabled:e().optional().describe('The "Create a new site" option under New project: generates a GitHub repository from a site template in an account the org connected, and opens it as a project. Off by default, for every org — deco.cx staff included.'),new_blocks_editor:e().optional().describe("Use the redesigned blocks editor for every member of the organization. Off by default — the classic editor stays until an admin opts the org in."),blog_ai_enabled:e().optional().describe("The blog's brand context tab and its agentic generation — campaigns, post drafting and link suggestions. Off by default; with it off the blog is written by hand and every BLOG_* tool refuses, over MCP and in the app alike, so an agent cannot spend the organization's credits on a feature it turned off."),site_apps_install_enabled:e().optional().describe("Installing a site app from the Apps tab: writes the app module, registers it (the manifest on Deno, APP_REGISTRY on TanStack), adds the npm dependency, then reinstalls dependencies and restarts the dev script on the running sandbox. Off by default — it writes code and restarts the dev server on install, and the restart only works on a daemon new enough to honour a forced step, so an org opts in once its pods are running one. With it off the catalogue stays browsable and nothing is installable, which is also the lever for an org that does not want the CMS writing code."),multi_app_preview:e().optional().describe("Previewing more than one app of a monorepo: an Apps list in project settings, app tabs with a split view in the preview, and a dev server per extra app in the sandbox, served at its own preview host. Off by default."),cms_auto_commit:e().optional().describe("Fast Preview: commit each CMS save to the editing branch. On by default (see DEFAULT_ON_FLAGS). Off, saves are kept in Studio and shown in the editor and the preview, and reach the branch in one commit when someone publishes or submits for review."),hide_default_blog_blocks:e().optional().describe("Hide the `deco-cms/blog` app's own blocks (`blog/*`) everywhere a post is written — the inserter, the format briefs, and generated drafts — so only the site's own `site/sections/Blog/Post/*` blocks are eligible, plus, in the inserter, the sections under the blog app's `customSectionPaths`. Off by default. Blocks already present in a post keep rendering; this only governs what can be added."),blog_view_enabled:e().optional().describe("Blog as a project view of its own (a sidebar row, an app tile and `/blog`), edited on Blog drafts with each post beside the site's render of it. Off by default: the blog stays in the Site Editor's Content tab, and `blog-draft-` branches are ordinary drafts.")}),h=new Set(["reviewer_enabled","cheap_reviewer_model","chat_harness_sandbox_only","cms_auto_commit"]);function m(i,n){const r=i?.[n];return h.has(n)?r!==!1:r===!0}function g(i){const n=i?.auto_resolve_conflicts;return typeof n=="boolean"?n:i?.auto_merge===!0}export{h as D,f as G,u as O,b as S,g as a,c as b,m as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aF as r,dA as p,dy as _,aG as n,bt as o,cn as m}from"./index-
|
|
1
|
+
import{aF as r,dA as p,dy as _,aG as n,bt as o,cn as m}from"./index-DkcRNYY4.js";const f=r({key:n().min(1,"Key is required"),value:n()}),g=r({title:n().min(1,"Name is required"),description:n().nullable().optional(),icon:n().nullable().optional(),ui_type:m(["HTTP","SSE","Websocket","NPX","STDIO"]),connection_url:n().optional(),connection_token:n().nullable().optional(),npx_package:n().optional(),stdio_command:n().optional(),stdio_args:n().optional(),stdio_cwd:n().optional(),env_vars:o(f).optional(),configuration_scopes:o(n()).nullable().optional(),configuration_state:p(n(),_()).nullable().optional()}).refine(e=>e.ui_type==="NPX"?!!e.npx_package?.trim():!0,{message:"NPM package is required",path:["npx_package"]}).refine(e=>e.ui_type==="STDIO"?!!e.stdio_command?.trim():!0,{message:"Command is required",path:["stdio_command"]}).refine(e=>e.ui_type==="HTTP"||e.ui_type==="SSE"||e.ui_type==="Websocket"?!!e.connection_url?.trim():!0,{message:"URL is required",path:["connection_url"]}).refine(e=>(e.ui_type==="HTTP"||e.ui_type==="SSE"||e.ui_type==="Websocket")&&e.connection_url?.trim()?n().url().safeParse(e.connection_url.trim()).success:!0,{message:"Enter a valid URL",path:["connection_url"]});function S(e,u,s){const a=i=>{if(i==="*")return!0;const c=i.split("::")[0]??"";let t=s;for(const l of c.split(".")){if(t===null||typeof t!="object")return!1;t=t[l]}return t!=null};return[...new Set([...e,...u.filter(a)])]}export{S as a,g as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,c1 as T,bZ as ce,j as b,c3 as _,ch as ae,dZ as O,c4 as C,cb as P,c5 as ie,c as F,m as $}from"./index-CWKxkTwy.js";import{c as de}from"./index-BdQq_4o_.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,v]=q(U),Z=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[A,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,W]=d.useState(!1),m=T(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:A,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:m,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});Z.displayName=U;var G="ScrollAreaViewport",J=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=v(G,o),a=d.useRef(null),c=T(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});J.displayName=G;var g="ScrollAreaScrollbar",K=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Q,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(V,{...l,ref:e}):null});K.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Q,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(V,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Q=d.forwardRef((r,e)=>{const o=v(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(V,{"data-state":n?"visible":"hidden",...t,ref:e})})}),V=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=v(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(me,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),me=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[ve,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=v(g,o),[w,A]=d.useState(null),Y=T(e,m=>A(m)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function W(m){if(x.current){const p=m.clientX-x.current.left,R=m.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const m=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",m,{passive:!1}),()=>document.removeEventListener("wheel",m,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(ve,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,m=>{m.button===0&&(m.target.setPointerCapture(m.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),W(m))}),onPointerMove:C(r.onPointerMove,W),onPointerUp:C(r.onPointerUp,m=>{const p=m.target;p.hasPointerCapture(m.pointerId)&&p.releasePointerCapture(m.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),H="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(H,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=v(H,o),s=ee(H,o),{onThumbPositionChange:a}=s,c=T(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,A=h.clientY-S.top;s.onThumbPointerDown({x:w,y:A})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=H;var B="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=v(B,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=B;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=v(B,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=Z,Ce=J,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] transition-[color,box-shadow] focus-ring",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(K,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
1
|
+
import{r as d,c1 as T,bZ as ce,j as b,c3 as _,ch as ae,dZ as O,c4 as C,cb as P,c5 as ie,c as F,m as $}from"./index-DkcRNYY4.js";import{c as de}from"./index-BdQq_4o_.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,v]=q(U),Z=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[A,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,W]=d.useState(!1),m=T(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:A,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:m,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});Z.displayName=U;var G="ScrollAreaViewport",J=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=v(G,o),a=d.useRef(null),c=T(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});J.displayName=G;var g="ScrollAreaScrollbar",K=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Q,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(V,{...l,ref:e}):null});K.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Q,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(V,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Q=d.forwardRef((r,e)=>{const o=v(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(V,{"data-state":n?"visible":"hidden",...t,ref:e})})}),V=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=v(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(me,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),me=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[ve,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=v(g,o),[w,A]=d.useState(null),Y=T(e,m=>A(m)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function W(m){if(x.current){const p=m.clientX-x.current.left,R=m.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const m=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",m,{passive:!1}),()=>document.removeEventListener("wheel",m,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(ve,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,m=>{m.button===0&&(m.target.setPointerCapture(m.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),W(m))}),onPointerMove:C(r.onPointerMove,W),onPointerUp:C(r.onPointerUp,m=>{const p=m.target;p.hasPointerCapture(m.pointerId)&&p.releasePointerCapture(m.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),H="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(H,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=v(H,o),s=ee(H,o),{onThumbPositionChange:a}=s,c=T(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,A=h.clientY-S.top;s.onThumbPointerDown({x:w,y:A})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=H;var B="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=v(B,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=B;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=v(B,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=Z,Ce=J,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] transition-[color,box-shadow] focus-ring",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(K,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,j as a,bT as j,h as I,bU as S,bV as b}from"./index-
|
|
1
|
+
import{c as f,j as a,bT as j,h as I,bU as S,bV as b}from"./index-DkcRNYY4.js";import{i as g}from"./SearchMd-DcWhidrm.js";function N(x){const e=f.c(14),{value:r,onChange:l,placeholder:h,onKeyDown:i,className:p,isSearching:c,disabled:u}=x,m=h===void 0?"Search...":h;let s;e[0]!==c?(s=a.jsx(j,{className:"pr-0",children:c?a.jsx(I,{className:"size-4"}):a.jsx(g,{})}),e[0]=c,e[1]=s):s=e[1];let t;e[2]!==l?(t=d=>l(d.target.value),e[2]=l,e[3]=t):t=e[3];let n;e[4]!==u||e[5]!==i||e[6]!==m||e[7]!==t||e[8]!==r?(n=a.jsx(S,{type:"text",value:r,onChange:t,onKeyDown:i,placeholder:m,disabled:u}),e[4]=u,e[5]=i,e[6]=m,e[7]=t,e[8]=r,e[9]=n):n=e[9];let o;return e[10]!==p||e[11]!==s||e[12]!==n?(o=a.jsxs(b,{size:"sm",className:p,children:[s,n]}),e[10]=p,e[11]=s,e[12]=n,e[13]=o):o=e[13],o}export{N as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,r as C,m as B,j as a,b2 as M}from"./index-
|
|
1
|
+
import{c as K,r as C,m as B,j as a,b2 as M}from"./index-DkcRNYY4.js";import{i as I}from"./SearchMd-DcWhidrm.js";import{I as O}from"./icon-button-DUjjoGv_.js";function G(S){const e=K.c(34),{value:t,onChange:s,label:E,placeholder:D,clearLabel:F,expanded:o,className:j}=S,w=E===void 0?"Search":E,d=D===void 0?"Search…":D,_=F===void 0?"Clear search":F,[L,p]=C.useState(t!==""),[R,z]=C.useState(!1),[V,$]=C.useState(t);if(t!==V&&($(t),t===""&&!R&&p(!1)),!L&&!o){let l,g;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>p(!0),g=a.jsx(I,{}),e[0]=l,e[1]=g):(l=e[0],g=e[1]);let v;return e[2]!==w?(v=a.jsx(O,{label:w,tooltipSide:"bottom",variant:"outline",onClick:l,children:g}),e[2]=w,e[3]=v):v=e[3],v}const k=o?"h-10 w-full px-3":"h-7 w-32 animate-search-expand px-2.5 sm:w-44";let n;e[4]!==j||e[5]!==k?(n=B("inline-flex shrink-0 items-center gap-1.5 overflow-hidden rounded-full bg-card text-card-foreground shadow-edge",k,j),e[4]=j,e[5]=k,e[6]=n):n=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(I,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=x):x=e[7];const y=!o;let r;e[8]!==s?(r=l=>s(l.target.value),e[8]=s,e[9]=r):r=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>z(!0),e[10]=h):h=e[10];let i;e[11]!==t?(i=()=>{z(!1),t===""&&p(!1)},e[11]=t,e[12]=i):i=e[12];let c;e[13]!==s?(c=l=>{l.key==="Escape"&&s("")},e[13]=s,e[14]=c):c=e[14];const N=o?"text-sm":"text-xs";let f;e[15]!==N?(f=B("w-full min-w-0 bg-transparent outline-none placeholder:text-muted-foreground",N),e[15]=N,e[16]=f):f=e[16];let u;e[17]!==d||e[18]!==i||e[19]!==c||e[20]!==f||e[21]!==y||e[22]!==r||e[23]!==t?(u=a.jsx("input",{autoFocus:y,value:t,onChange:r,onFocus:h,onBlur:i,onKeyDown:c,placeholder:d,"aria-label":d,className:f}),e[17]=d,e[18]=i,e[19]=c,e[20]=f,e[21]=y,e[22]=r,e[23]=t,e[24]=u):u=e[24];let m;e[25]!==_||e[26]!==o||e[27]!==s||e[28]!==t?(m=t!==""&&a.jsx("button",{type:"button","aria-label":_,onMouseDown:P,onClick:()=>{s(""),o||p(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground",children:a.jsx(M,{className:"size-3.5"})}),e[25]=_,e[26]=o,e[27]=s,e[28]=t,e[29]=m):m=e[29];let b;return e[30]!==u||e[31]!==m||e[32]!==n?(b=a.jsxs("div",{className:n,children:[x,u,m]}),e[30]=u,e[31]=m,e[32]=n,e[33]=b):b=e[33],b}function P(S){return S.preventDefault()}export{G as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,ax as d,b as j,j as i}from"./index-
|
|
1
|
+
import{c as x,ax as d,b as j,j as i}from"./index-DkcRNYY4.js";import{t as E}from"./Users01-BnjH2fbf.js";const R=/^[A-Za-z0-9_.-]+$/;function b(f){const e=x.c(15),{field:p,secretById:t}=f,s=j(),n=p.value||"";if(!n)return null;let l;e[0]!==n||e[1]!==t?(l=t.get(n),e[0]=n,e[1]=t,e[2]=l):l=e[2];const c=l;if(!c){let a;e[3]!==n||e[4]!==s?(a=s("sandbox.envVarsField.missingSecret",{id:n}),e[3]=n,e[4]=s,e[5]=a):a=e[5];let u;return e[6]!==a?(u=i.jsx("span",{className:"text-destructive",children:a}),e[6]=a,e[7]=u):u=e[7],u}let o;e[8]!==c.scope?(o=i.jsx(N,{scope:c.scope}),e[8]=c.scope,e[9]=o):o=e[9];let r;e[10]!==c.name?(r=i.jsx("span",{className:"truncate font-mono",children:c.name}),e[10]=c.name,e[11]=r):r=e[11];let m;return e[12]!==o||e[13]!==r?(m=i.jsxs("span",{className:"inline-flex items-center gap-1.5 truncate",children:[o,r]}),e[12]=o,e[13]=r,e[14]=m):m=e[14],m}function N(f){const e=x.c(2),{scope:p}=f,t=p==="user"?d:E;let s;return e[0]!==t?(s=i.jsx(t,{className:"size-3 text-muted-foreground"}),e[0]=t,e[1]=s):s=e[1],s}export{b as S,R as a,N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as j,b as N,j as s,n as C,hr as F,R as k,r as y,dY as L,B as D,ax as O,af as E,D as B,v as R,w as A,x as I,aT as q,I as _,y as V,t as z,ge as H}from"./index-
|
|
1
|
+
import{c as j,b as N,j as s,n as C,hr as F,R as k,r as y,dY as L,B as D,ax as O,af as E,D as B,v as R,w as A,x as I,aT as q,I as _,y as V,t as z,ge as H}from"./index-DkcRNYY4.js";import{i as Y}from"./AlertCircle-BttmH_EW.js";import{s as G}from"./Plus-niUoy_uM.js";import{t as J}from"./Users01-BnjH2fbf.js";import{E as K}from"./empty-state-CfzBgpuZ.js";import{L as w}from"./label-Dn3Jp5Ws.js";import{S as M,b as Q,a as U,d as W,c as P}from"./select-DVeciAl9.js";import{T as X}from"./textarea-BcNUedZJ.js";import{u as Z,a as ee}from"./use-secrets-CxjuCsrh.js";import{R as te}from"./require-capability-CbgooziO.js";import"./index-BdQq_4o_.js";import"./index-DK-8s7Az.js";import"./ChevronUp-EmQwLtzg.js";import"./access-gate-DKCp0oSn.js";import"./capability-load-error-Cg21B6QM.js";function se(t){const e=j.c(6),{error:r}=t,i=N();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Y,{size:16}),e[0]=c):c=e[0];let n;e[1]!==r.message||e[2]!==i?(n=i("settings.secrets.failedToLoadError",{error:r.message}),e[1]=r.message,e[2]=i,e[3]=n):n=e[3];let l;return e[4]!==n?(l=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[c,s.jsx("span",{className:"text-sm font-medium",children:n})]}),e[4]=n,e[5]=l):l=e[5],l}function re(t){const e=j.c(8),{scope:r}=t,i=N(),c=r==="user"?O:J;let n;e[0]!==r||e[1]!==i?(n=i(r==="user"?"settings.secrets.scopePrivate":"settings.secrets.scopeOrganization"),e[0]=r,e[1]=i,e[2]=n):n=e[2];const l=n;let a;e[3]!==c?(a=s.jsx(c,{size:12}),e[3]=c,e[4]=a):a=e[4];let m;return e[5]!==l||e[6]!==a?(m=s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-muted text-muted-foreground text-xs",children:[a,l]}),e[5]=l,e[6]=a,e[7]=m):m=e[7],m}function $(t){const e=j.c(20),{secret:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(E,{size:16,className:"text-muted-foreground"})}),e[0]=i):i=e[0];let c;e[1]!==r.name?(c=s.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=c):c=e[2];let n;e[3]!==r.scope?(n=s.jsx(re,{scope:r.scope}),e[3]=r.scope,e[4]=n):n=e[4];let l;e[5]!==c||e[6]!==n?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[c,n]}),e[5]=c,e[6]=n,e[7]=l):l=e[7];let a;e[8]!==r.description?(a=r.description?s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r.description}):null,e[8]=r.description,e[9]=a):a=e[9];let m;e[10]!==l||e[11]!==a?(m=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[i,s.jsxs("div",{className:"min-w-0",children:[l,a]})]}),e[10]=l,e[11]=a,e[12]=m):m=e[12];let d;e[13]!==r.createdAt?(d=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=d):d=e[14];let u;e[15]!==d?(u=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:d}),e[15]=d,e[16]=u):u=e[16];let x;return e[17]!==m||e[18]!==u?(x=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[m,u]}),e[17]=m,e[18]=u,e[19]=x):x=e[19],x}function ne(t){const e=j.c(9),{action:r}=t,i=N();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(E,{}),e[0]=c):c=e[0];let n;e[1]!==i?(n=i("settings.secrets.emptyTitle"),e[1]=i,e[2]=n):n=e[2];let l;e[3]!==i?(l=i("settings.secrets.emptyDescription"),e[3]=i,e[4]=l):l=e[4];let a;return e[5]!==r||e[6]!==n||e[7]!==l?(a=s.jsx(H,{children:s.jsx(K,{size:"inline",icon:c,title:n,description:l,children:r})}),e[5]=r,e[6]=n,e[7]=l,e[8]=a):a=e[8],a}function T({open:t,onOpenChange:e}){const r=N(),[i,c]=y.useState("organization"),[n,l]=y.useState(""),[a,m]=y.useState(""),[d,u]=y.useState(""),x=ee();function g(){c("organization"),l(""),m(""),u("")}function p(){g(),e(!1)}async function S(o){if(o.preventDefault(),!(!n.trim()||!a))try{await x.mutateAsync({scope:i,name:n.trim(),value:a,description:d.trim()||void 0}),z.success(r("settings.secrets.secretCreated",{name:n.trim()})),p()}catch(f){z.error(f instanceof Error?f.message:r("settings.secrets.failedToCreateSecret"))}}return s.jsx(B,{open:t,onOpenChange:o=>{o?e(o):p()},children:s.jsxs(R,{className:"sm:max-w-lg",children:[s.jsxs(A,{children:[s.jsx(I,{children:r("settings.secrets.newSecretTitle")}),s.jsx(q,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:S,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-scope",children:r("settings.secrets.scopeLabel")}),s.jsxs(M,{value:i,onValueChange:o=>c(o),children:[s.jsx(Q,{id:"secret-scope",children:s.jsx(U,{})}),s.jsxs(W,{children:[s.jsx(P,{value:"organization",children:r("settings.secrets.scopeOrganizationDescription")}),s.jsx(P,{value:"user",children:r("settings.secrets.scopePrivateDescription")})]})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-name",children:r("settings.secrets.nameLabel")}),s.jsx(_,{id:"secret-name",value:n,onChange:o=>l(o.target.value),placeholder:r("settings.secrets.namePlaceholder"),autoComplete:"off",required:!0}),s.jsx("p",{className:"text-xs text-muted-foreground",children:r("settings.secrets.nameHelp")})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-value",children:r("settings.secrets.valueLabel")}),s.jsx(_,{id:"secret-value",type:"password",value:a,onChange:o=>m(o.target.value),autoComplete:"new-password",required:!0})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-description",children:r("settings.secrets.descriptionLabel")}),s.jsx(X,{id:"secret-description",value:d,onChange:o=>u(o.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(V,{children:[s.jsx(D,{type:"button",variant:"outline",onClick:p,disabled:x.isPending,children:r("settings.secrets.cancelButton")}),s.jsx(D,{type:"submit",disabled:x.isPending||!n.trim()||!a,children:x.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function ie(){const t=j.c(34),e=N(),r=Z(),[i,c]=y.useState(!1);let n,l;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c(!0),l=s.jsx(G,{size:14}),t[0]=n,t[1]=l):(n=t[0],l=t[1]);let a;t[2]!==e?(a=e("settings.secrets.newSecret"),t[2]=e,t[3]=a):a=t[3];let m;t[4]!==a?(m=s.jsx(C.Actions,{children:s.jsxs(D,{size:"sm",onClick:n,children:[l,a]})}),t[4]=a,t[5]=m):m=t[5];const d=m;if(r.length===0){let o;t[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ne,{action:!1}),t[6]=o):o=t[6];let f;t[7]!==i?(f=s.jsx(T,{open:i,onOpenChange:c}),t[7]=i,t[8]=f):f=t[8];let h;return t[9]!==d||t[10]!==f?(h=s.jsxs(s.Fragment,{children:[d,o,f]}),t[9]=d,t[10]=f,t[11]=h):h=t[11],h}let u,x,g;if(t[12]!==d||t[13]!==r||t[14]!==e){const o=r.filter(oe),f=r.filter(ae),h=r.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let b;t[18]!==r.length||t[19]!==e||t[20]!==h?(b=e(h,{count:r.length}),t[18]=r.length,t[19]=e,t[20]=h,t[21]=b):b=t[21];let v;t[22]!==b?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:b}),t[22]=b,t[23]=v):v=t[23],t[24]!==d||t[25]!==v?(u=s.jsxs("div",{className:"flex items-center justify-between",children:[v,d]}),t[24]=d,t[25]=v,t[26]=u):u=t[26],x=o.length>0?s.jsxs("section",{className:"surface p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionOrganization")}),s.jsx("div",{children:o.map(le)})]}):null,g=f.length>0?s.jsxs("section",{className:"surface p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionPrivate")}),s.jsx("div",{children:f.map(ce)})]}):null,t[12]=d,t[13]=r,t[14]=e,t[15]=u,t[16]=x,t[17]=g}else u=t[15],x=t[16],g=t[17];let p;t[27]!==i?(p=s.jsx(T,{open:i,onOpenChange:c}),t[27]=i,t[28]=p):p=t[28];let S;return t[29]!==u||t[30]!==x||t[31]!==g||t[32]!==p?(S=s.jsxs(s.Fragment,{children:[u,x,g,p]}),t[29]=u,t[30]=x,t[31]=g,t[32]=p,t[33]=S):S=t[33],S}function ce(t){return s.jsx($,{secret:t},t.id)}function le(t){return s.jsx($,{secret:t},t.id)}function ae(t){return t.scope==="user"}function oe(t){return t.scope==="organization"}function me(){const t=j.c(7),e=N();let r;t[0]!==e?(r=e("settings.nav.secrets"),t[0]=e,t[1]=r):r=t[1];let i;t[2]!==r?(i=s.jsx(C.Title,{children:r}),t[2]=r,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(k,{fallback:de,children:s.jsx(y.Suspense,{fallback:s.jsx(L,{className:"h-32 w-full"}),children:s.jsx(ie,{})})}),t[4]=c):c=t[4];let n;return t[5]!==i?(n=s.jsx(C,{children:s.jsx(C.Content,{children:s.jsx(C.Container,{children:s.jsxs(F,{children:[i,c]})})})}),t[5]=i,t[6]=n):n=t[6],n}function de(t){const{error:e}=t;return s.jsx(se,{error:e??new Error("Failed to load secrets")})}function _e(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(te,{capability:"secrets:manage",area:"secrets",children:s.jsx(me,{})}),t[0]=e):e=t[0],e}export{_e as default};
|
package/dist/client/assets/{section-array-field-BFg67nYp.js → section-array-field-CBlVxN-e.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{by as g,bx as E,f6 as w,eL as L,f7 as A,f8 as y,f9 as j,eH as d,fa as P,fb as T,fc as k,fd as D,fe as x,ff as R,bj as B,fg as C,fh as K}from"./index-
|
|
1
|
+
import{by as g,bx as E,f6 as w,eL as L,f7 as A,f8 as y,f9 as j,eH as d,fa as P,fb as T,fc as k,fd as D,fe as x,ff as R,bj as B,fg as C,fh as K}from"./index-DkcRNYY4.js";import{z as I,r as F,y as U,a0 as W,aa as $}from"./blocks-tab-states-DgLrbRiD.js";const l="https://docs.decocms.com/storefront/blocks",ne={quickstart:`${l}/next/quickstart`,siteEditor:`${l}/next/site-editor#edit-on-your-machine`,serve:`${l}/next/cli#deco-serve`,schema:`${l}/next/cli#deco-schema-and-deco-content`,troubleshooting:`${l}/next/troubleshooting#site-editor`},ae="https://github.com/decocms/blocks/tree/main/.agents/skills/deco-site-workflow";function Y(e){return e.includes("matchers")||e.includes("Match")}function m(e,r){const t=e.__resolveType;return typeof t!="string"||!t||W(t,r)?!1:r?w(r,t):Y(t)}function oe(e,r){const t=[];for(const[n,a]of Object.entries(r)){if(n.includes("/")||!g(n,e)||E(n)||!a||typeof a!="object"||Array.isArray(a))continue;const o=a;m(o,e)&&t.push({blockKey:n,matcherResolveType:o.__resolveType??"",name:typeof o.name=="string"?o.name:void 0})}return t.sort((n,a)=>(n.name??n.blockKey).localeCompare(a.name??a.blockKey))}function p(e,r,t){if(!e)return!1;const n=e.__resolveType;if(typeof n!="string"||!g(n,t)||!Object.hasOwn(r,n))return!1;const a=r[n];return!a||typeof a!="object"||Array.isArray(a)?!1:m(a,t)}function se(e,r,t){return p(e,r,t)?e?.__resolveType??null:null}function S(e,r,t){if(!e)return null;const n=e.__resolveType??"";if(!n)return null;if(p(e,r,t)){const s=r[n]??{},i=s.__resolveType??n,{__resolveType:c,name:u,...v}=s;return{resolveType:i,data:v,blockKey:n}}const{__resolveType:a,...o}=e;return{resolveType:n,data:o}}function q(e,r,t){const n=S(e,r,t);return n?{__resolveType:n.resolveType,...n.data}:{__resolveType:""}}function ie(e,r,t){if(e)return p(e,r,t)?q(e,r,t):e}function z(e,r,t,n){if(!e)return"Default";if(p(e,r,n)){const a=e.__resolveType??"",o=r[a];return I(a,o)}return t(e,F(r))}function ce(e,r,t){return{__resolveType:e,...r,name:t}}function ue(e){return{__resolveType:e}}function le(e,r,t){const n=S(e,r,t);return n?{resolveType:n.resolveType,formValue:n.data}:{resolveType:"",formValue:{}}}function fe(e,r){const t={__resolveType:e};if(!e||!r)return t;const n=U(e,r),a=n?.type==="inline-union"?n.inlineUnionBranches?.[0]?.discriminators:void 0;return a?{...t,...a}:t}function V(e){const r=[];for(let t=e;t?.key!=null;t=t.parent)r.push(t.key);return r.reverse()}function G(e){return{blockKey:e.blockKey,path:V(e)}}function H(e,r,t){const n=[];for(const[o,s]of Object.entries(e))o!==r&&n.push({node:s,blockKey:o,parent:null,key:null});const a=new Set;for(;n.length>0;){const o=n.pop(),{node:s}=o;if(!(!s||typeof s!="object")&&!a.has(s)){if(a.add(s),Array.isArray(s)){s.forEach((i,c)=>{n.push({node:i,blockKey:o.blockKey,parent:o,key:c})});continue}t(s,o);for(const[i,c]of Object.entries(s))n.push({node:c,blockKey:o.blockKey,parent:o,key:i})}}}function N(e,r,t){if(!r)return[];const n=[];return H(e,r,(a,o)=>{if(a.__resolveType!==r||!p(a,e,t))return;const s=J(o);n.push({...G(o),...s?{variant:s}:{}})}),n}function J(e){for(let r=e;r;r=r.parent){const t=r.parent,n=t?.parent,a=n?.parent;if(!t||!n||!a)return;if(r.key==="rule"&&typeof t.key=="number"&&n.key==="variants"&&$(a.node)&&L(a.node.__resolveType)){const o=a.node.experiment;return{containerPath:V(a),containerType:a.node.__resolveType,index:t.key,...typeof o=="string"?{experiment:o}:{}}}}}function Q(e){for(const r of e.anyOfRefs??[]){if(r.resolveType!==A&&r.resolveType!==y)continue;const t=r.schema?.properties?.variants?.items?.properties?.value,n=t?.lazy?t.properties?.value:t;if(n?.type==="array")return n}}function X(e){return Q(e)!==void 0}function ye(e,r){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return Array.isArray(t.variants)?t.__resolveType===R?!0:r&&t.__resolveType===y&&!M(t.variants):!1}function M(e){return e.some(r=>Array.isArray(d(r)))}function O(e,r){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return t.__resolveType===A?!0:r&&t.__resolveType===y&&Array.isArray(t.variants)&&M(t.variants)}function pe(e,r){if(!O(e,r))return null;const t=e.variants;if(!Array.isArray(t))return null;const n=B(t[0],r);return Array.isArray(n)?n:null}function ve(e,r,t,n){if(!O(e,n))return r;const a=structuredClone(e),o=[...a.variants??[]];return o.length===0?o.push({rule:k(t),value:T(a.__resolveType,r)}):o[0]=C(a.__resolveType,o[0],r),{...a,variants:o}}function de(e,r){const n=e[r]?.sections;if(!n||Array.isArray(n))return 1;const a=n;return Array.isArray(a.variants)?a.variants.length:1}function _e(e,r,t){const a=e[r]?.sections;if(Array.isArray(a))return t===0?a:[];if(a&&typeof a=="object"){const o=a.variants;if(Array.isArray(o)){const s=d(o[t]);return Array.isArray(s)?s:[]}}return[]}function he(e,r,t){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.variants)){const a=n.variants,o=j(a.map(s=>z(s.rule,r,t)));return a.map((s,i)=>{const c=o[i],u=d(s);return{label:c||`Variant ${i+1}`,sections:Array.isArray(u)?u:[],rule:s.rule}})}}return[]}function _(e,r,t){return{rule:k(r),value:T(t,e)}}function h(e,r){return e?e.__resolveType===y?y:A:D(r)}function f(e,r,t){return{...r,__resolveType:h(r,t),variants:e}}function be(e,r,t,n=!1){const a=structuredClone(r);if(e&&typeof e=="object"&&!Array.isArray(e)){const c=e;if(!Array.isArray(c.variants))return null;const u=[...c.variants],v=P(u,n);return u.splice(v,0,_(a,t,h(c))),{sections:f(u,c),newVariantIndex:v}}const o=h(void 0,t),s=_(Array.isArray(e)?e:[],t,o),i=_(a,t,o);return{sections:f(n?[i,s]:[s,i],void 0,t),newVariantIndex:n?0:1}}function Ae(e,r,t=!1){const n=e[r];if(!n)return null;const a=[...e];return a.splice(K(e,r,t),0,structuredClone(n)),a}function ge(e,r){if(r.length===0)return f([],e);if(r.length===1){const t=r[0],n=t?.rule;if(!x(n))return f(r,e);const a=d(t);if(Array.isArray(a))return a}return f(r,e)}function Z(e,r,t){return N(e,r,t).length}function Te(e,r,t,n){return n?!1:Z(e,r,t)===0}const ke={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};function b(e){return e.includes("/sections/")||e.includes("multivariate/section")||e===R}function ee(e){if(e.anyOfRefs?.length)return e.anyOfRefs.some(t=>b(t.resolveType));const r=e.properties?.__resolveType;return r?.type==="block-ref"&&r.anyOfRefs?.length?r.anyOfRefs.some(t=>b(t.resolveType)):!1}function Re(e){return e.type!=="block-ref"||!e.anyOfRefs?.length?!1:e.anyOfRefs.some(r=>b(r.resolveType))}function me(e,r){if(r==="global"||r==="sections"||X(e))return!0;const t=e.type==="array"?e.items:void 0;return t?ee(t):!1}export{Te as A,Ae as B,ke as C,ae as D,de as a,be as b,ne as c,X as d,me as e,q as f,_e as g,ue as h,b as i,Re as j,z as k,oe as l,se as m,le as n,p as o,he as p,ce as q,ie as r,fe as s,ye as t,O as u,pe as v,ve as w,Q as x,S as y,ge as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aX as i,X as e,l as s}from"./agent-icon-
|
|
1
|
+
import{aX as i,X as e,l as s}from"./agent-icon-Clk7SRdQ.js";import{dL as n}from"./index-DkcRNYY4.js";import{a as o}from"./UserSquare-C01-Jxv6.js";const r=["general","views","connections","repository","site"],a={general:{icon:s,titleKey:"virtualMcp.settings.general.title",descriptionKey:"virtualMcp.settings.general.description"},views:{icon:o,titleKey:"virtualMcp.settings.views.title",descriptionKey:"virtualMcp.settings.views.description"},connections:{icon:i,titleKey:"virtualMcp.settings.connections.title",descriptionKey:"virtualMcp.settings.connections.description"},repository:{icon:n,titleKey:"virtualMcp.settings.repository.title",descriptionKey:"virtualMcp.settings.repository.description"},site:{icon:e,titleKey:"virtualMcp.settings.site.title",descriptionKey:"virtualMcp.settings.site.description"}};function g(t){return!!t&&r.includes(t)}export{a as P,r as a,g as i};
|