decocms 4.591.0 → 4.591.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-YhZjgz3z.js → AlertCircle-CzISmSv-.js} +1 -1
- package/dist/client/assets/{AreaChart-DxcSxjnj.js → AreaChart-CwYkoyxd.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DKmeVw2g.js → ArrowLeft-Cp5wBgN1.js} +1 -1
- package/dist/client/assets/{ArrowRight-ByiLOQ-Z.js → ArrowRight-CeB6x55t.js} +1 -1
- package/dist/client/assets/{ArrowUp-LTRAev48.js → ArrowUp-COdTIRs6.js} +1 -1
- package/dist/client/assets/{BookOpen01-w6cABT4A.js → BookOpen01-BHs6bUbD.js} +1 -1
- package/dist/client/assets/{CartesianChart-C-XZ57RU.js → CartesianChart-6JTa6wpg.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CyMcVoxL.js → CategoricalChart-BqZTua92.js} +1 -1
- package/dist/client/assets/{CheckCircle-DUu5tII5.js → CheckCircle-ChJcEZnJ.js} +1 -1
- package/dist/client/assets/{ChevronDown-C8CxUQ_T.js → ChevronDown-fzLgfNMN.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-khl3NRRy.js → ChevronSelectorVertical-BTk3FRkw.js} +1 -1
- package/dist/client/assets/{ChevronUp-XF6kY__Q.js → ChevronUp-b-VOSMPT.js} +1 -1
- package/dist/client/assets/{CreditCard01-B84w_4wA.js → CreditCard01-B0Yfe9hH.js} +1 -1
- package/dist/client/assets/{Eye-jP-KSjF2.js → Eye-DArYaInn.js} +1 -1
- package/dist/client/assets/{File02-Og9Y1QbI.js → File02-DVaBtYaE.js} +1 -1
- package/dist/client/assets/{Fingerprint04-Qqn5-NQT.js → Fingerprint04-CALESuKW.js} +1 -1
- package/dist/client/assets/{Globe04-sNFykcx8.js → Globe04-BGV551sq.js} +1 -1
- package/dist/client/assets/{Image01-DuxttnrD.js → Image01-8jmgxAd8.js} +1 -1
- package/dist/client/assets/{Key01-DkKNT5xr.js → Key01-DGjA9S6x.js} +1 -1
- package/dist/client/assets/{LayoutLeft-ld7-2Nxv.js → LayoutLeft-Vc1HAa0M.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Cz9SgJZI.js → LinkBroken01-D4pDcB76.js} +1 -1
- package/dist/client/assets/{MessageCircle01-Bq-XqsDx.js → MessageCircle01-BpGqYTnP.js} +1 -1
- package/dist/client/assets/{Minus-BeVh1re7.js → Minus-Dw6Nli5H.js} +1 -1
- package/dist/client/assets/{Monitor01-B-zYbw2R.js → Monitor01-Br8acw8G.js} +1 -1
- package/dist/client/assets/{Play-B2OKSDvz.js → Play-C4UbfvzT.js} +1 -1
- package/dist/client/assets/{Plus-4hwCOkAR.js → Plus-RCDHml3m.js} +1 -1
- package/dist/client/assets/{ReferenceLine-DC7QU8Um.js → ReferenceLine-BaWNdAtc.js} +1 -1
- package/dist/client/assets/{SearchMd-Bc390UpW.js → SearchMd-BvUkn3rx.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DXhtTUbh.js → ShoppingBag01-CAJ64xat.js} +1 -1
- package/dist/client/assets/{Sun-yBDwq2Bd.js → Sun-GOAVarv9.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BdKgEs3S.js → SwitchHorizontal01-CxL0NygI.js} +1 -1
- package/dist/client/assets/{Tool01-FczjkJMT.js → Tool01-C3uo6Lgt.js} +1 -1
- package/dist/client/assets/{Tooltip-D3JV30v9.js → Tooltip-ijK8GJwk.js} +1 -1
- package/dist/client/assets/{Trash01-qvtzIWfE.js → Trash01-hjBWefQQ.js} +1 -1
- package/dist/client/assets/{TrendUp01-B-NOnIyQ.js → TrendUp01-iFr5GCuv.js} +1 -1
- package/dist/client/assets/{Upload01-ImxC9sTu.js → Upload01-qGyzp9T6.js} +1 -1
- package/dist/client/assets/{UserCheck01-D7w_8TCh.js → UserCheck01-DZjyuuBK.js} +1 -1
- package/dist/client/assets/{UserSquare-DIIMsFpr.js → UserSquare-ByLgJRcg.js} +1 -1
- package/dist/client/assets/{Users01--8CcGNkI.js → Users01-CqdtHmSR.js} +1 -1
- package/dist/client/assets/{XClose-BZXp1QY6.js → XClose-CsOm5OF2.js} +1 -1
- package/dist/client/assets/{Zap-B2ks3Wta.js → Zap-DJuxbhuP.js} +1 -1
- package/dist/client/assets/{access-gate-lYIc00N2.js → access-gate-BRbA9z61.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CPLfBN4o.js → add-connection-dialog-C_sfKhNP.js} +1 -1
- package/dist/client/assets/agent-app-KcLcVuvW.js +1 -0
- package/dist/client/assets/agent-assets-CTfoRBsg.js +1 -0
- package/dist/client/assets/{agent-automation-CJX1PcI7.js → agent-automation-qCDnCR9w.js} +1 -1
- package/dist/client/assets/{agent-automations-DhWX3VDi.js → agent-automations-swI_7sFA.js} +1 -1
- package/dist/client/assets/{agent-blog-UNgCOmaF.js → agent-blog-DywHfbcF.js} +2 -2
- package/dist/client/assets/{agent-blog-post-r1E2NMlq.js → agent-blog-post-CMxln6qx.js} +2 -2
- package/dist/client/assets/{agent-calendar-DZM-SmDt.js → agent-calendar-BWNmM7E7.js} +1 -1
- package/dist/client/assets/{agent-capabilities-CqF8uA2k.js → agent-capabilities-Dl5qDebF.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-BTFlmidn.js → agent-connect-sources-fQGzOuZ8.js} +1 -1
- package/dist/client/assets/agent-deck-DtFtG-uU.js +1 -0
- package/dist/client/assets/{agent-e2e-BcOoi_jM.js → agent-e2e-CsN4vXlg.js} +1 -1
- package/dist/client/assets/agent-experiments-DTR-s4pe.js +1 -0
- package/dist/client/assets/agent-file-DltUebDB.js +1 -0
- package/dist/client/assets/{agent-hosting-Ce7c5cVW.js → agent-hosting-BTSTq4mZ.js} +1 -1
- package/dist/client/assets/{agent-icon-BwQIyYDL.js → agent-icon-BDoJ39oK.js} +1 -1
- package/dist/client/assets/agent-library-COo2GDdn.js +1 -0
- package/dist/client/assets/agent-library-file-EXaEuagq.js +1 -0
- package/dist/client/assets/agent-overview-UailvCri.js +1 -0
- package/dist/client/assets/{agent-releases-cJYQpiZA.js → agent-releases-096WrRe1.js} +1 -1
- package/dist/client/assets/agent-settings-CJP-_4zD.js +1 -0
- package/dist/client/assets/{agent-site-editor-DgOJs8dc.js → agent-site-editor-D5NdG3ya.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-BZGVUEun.js +2 -0
- package/dist/client/assets/agent-site-editor-content-PfSFSNZ5.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-CaciVvp9.js +1 -0
- package/dist/client/assets/agent-view-DJwTS-DW.js +1 -0
- package/dist/client/assets/{agent-view-guard-DfsVFBKh.js → agent-view-guard-BGcDWcPU.js} +1 -1
- package/dist/client/assets/{ai-providers-DKom6G5A.js → ai-providers-BpEUU1pI.js} +1 -1
- package/dist/client/assets/{alert-CSII7q9k.js → alert-CeUAN2Gm.js} +1 -1
- package/dist/client/assets/{analytics-sections-CSeXLMNU.js → analytics-sections-BggC7iJ9.js} +1 -1
- package/dist/client/assets/{api-keys-Za8n8BoF.js → api-keys-B43QdkMk.js} +1 -1
- package/dist/client/assets/api-keys-ns5plBYO.js +1 -0
- package/dist/client/assets/{app-editor-BbKiFrAb.js → app-editor-CzDuoB95.js} +1 -1
- package/dist/client/assets/{asset-utils--1YS2GmS.js → asset-utils-D3oLKwAE.js} +1 -1
- package/dist/client/assets/{auth-YeO9cvE7.js → auth-PzOm_zFv.js} +1 -1
- package/dist/client/assets/{auth-catchall-CfpV5I6T.js → auth-catchall-DbQ-000B.js} +1 -1
- package/dist/client/assets/{auth-entry-B1jh4Nkd.js → auth-entry-DWU242Fg.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CuL7voF_.js → auth-split-layout-5r4joR8z.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Bvs8L7zL.js → authenticate-and-persist-oauth-BDW-ZPLh.js} +1 -1
- package/dist/client/assets/{automation-list-row-C6AizTuQ.js → automation-list-row-oa6t_8-9.js} +1 -1
- package/dist/client/assets/{automation-runs-BQ6xc609.js → automation-runs-CtevjOto.js} +1 -1
- package/dist/client/assets/{automations-DrH8YxJO.js → automations-BwUBif8p.js} +1 -1
- package/dist/client/assets/{badge-CrpSoVcT.js → badge-CA_zRurx.js} +1 -1
- package/dist/client/assets/{block-document-DkWiQ_lk.js → block-document-_79-V04H.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-D1PcuPRJ.js → blocks-preview-workspace-context-zoaVWyNB.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Bj3h1DoL.js → blocks-tab-states-B8JNI9rP.js} +1 -1
- package/dist/client/assets/{blog-preview-url-C176c3xd.js → blog-preview-url-pZbpXnSV.js} +1 -1
- package/dist/client/assets/{blog-schema-_vLaAgLd.js → blog-schema-CilAbDlC.js} +1 -1
- package/dist/client/assets/{blog-source-gate-BsD7oyF3.js → blog-source-gate-CuhbPoPW.js} +1 -1
- package/dist/client/assets/{blog-view-gate-CH_iXcK1.js → blog-view-gate-DkmdG0vt.js} +1 -1
- package/dist/client/assets/{buckets-ugS9dwYY.js → buckets-zq4ipxKc.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CQbKtY96.js → build-improve-prompt-doc-B2KHjCtV.js} +1 -1
- package/dist/client/assets/{calendar-DcCL43Fg.js → calendar-BROMdOEm.js} +1 -1
- package/dist/client/assets/{capability-load-error-HKkTfNeN.js → capability-load-error-B2nGOB8U.js} +1 -1
- package/dist/client/assets/{category-editor-CC8WzKpk.js → category-editor-CkOr_tBK.js} +1 -1
- package/dist/client/assets/{category-tree-BPfpEh1N.js → category-tree-CDQb6hKD.js} +1 -1
- package/dist/client/assets/{chart-DAyuzxOu.js → chart-DFP5BeIe.js} +1 -1
- package/dist/client/assets/{chat-context-DfED6LPo.js → chat-context-Bv66eHof.js} +1 -1
- package/dist/client/assets/{chat-draft-CobTYtTB.js → chat-draft-B-z19fpg.js} +1 -1
- package/dist/client/assets/{checkbox-DASadjKf.js → checkbox-CXlqSbPC.js} +1 -1
- package/dist/client/assets/{choose-editor-B7_SYDCP.js → choose-editor-CgLJ-xuj.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BGpHM1m5.js → cli-auth-success-8pWPeNxE.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-ByL9dzVB.js → cms-settings-editor-D2NvmbtZ.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-BbtGWzB7.js → cms-store-drafts-DCNFP7LB.js} +1 -1
- package/dist/client/assets/{collapsible-LeclbAjM.js → collapsible-DzLPWd70.js} +1 -1
- package/dist/client/assets/{collection-detail-CleyWB3_.js → collection-detail-CCi6huRZ.js} +1 -1
- package/dist/client/assets/{collection-display-button-CJexWfaO.js → collection-display-button-CF7hoid9.js} +1 -1
- package/dist/client/assets/{collection-search-CYqBsHbj.js → collection-search-CdjAgPSP.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CNmOlvYB.js → collection-table-wrapper-CWctg3S1.js} +1 -1
- package/dist/client/assets/{collection-tabs-D4hWO-Ro.js → collection-tabs-D03BVHFN.js} +1 -1
- package/dist/client/assets/{combobox-BWIQy6ql.js → combobox-Cfg_BsiZ.js} +1 -1
- package/dist/client/assets/{command-xP2LnUJe.js → command-CTDIy4l6.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-C0i-NHex.js → companion-mcps-section-Cy2umPEM.js} +1 -1
- package/dist/client/assets/{config-HuX3Jki5.js → config-CCcwWB8c.js} +1 -1
- package/dist/client/assets/{connect-BosgIdSK.js → connect-CVfAe8Qe.js} +1 -1
- package/dist/client/assets/{connect-key-dUIWbhRX.js → connect-key-COnDBirE.js} +1 -1
- package/dist/client/assets/{connect-layout-BqZp2MR-.js → connect-layout-DiA9oBHd.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-9D6XZOFR.js → connect-source-dialog-DgeFUsaD.js} +1 -1
- package/dist/client/assets/{connection-DoFtJTxa.js → connection-B3DAaQoc.js} +1 -1
- package/dist/client/assets/{connection-card-BdnQs1AE.js → connection-card-CM3dQtaR.js} +1 -1
- package/dist/client/assets/{connection-detail-Bbn3pd3p.js → connection-detail-D3cB0EmB.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DXxjALkN.js → connection-form-helpers-CvBBFmRQ.js} +1 -1
- package/dist/client/assets/{connection-slug-ZKurc5Zd.js → connection-slug-CnFKm4nL.js} +1 -1
- package/dist/client/assets/{connections-BUftbHPD.js → connections-DqyZjinv.js} +1 -1
- package/dist/client/assets/{content-tab-BkxV3qsJ.js → content-tab-CmqbXB83.js} +10 -10
- package/dist/client/assets/{context-BNxWhJ65.js → context-CWkIELvN.js} +1 -1
- package/dist/client/assets/{context-menu-cenwFeb1.js → context-menu-DEyHZ9o-.js} +1 -1
- package/dist/client/assets/{context-shell-kmpJd48J.js → context-shell-BNE5ZlsL.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-CZT6Te30.js → create-organization-dialog-B1tyfK6Q.js} +1 -1
- package/dist/client/assets/{daily-pulse-o3n7GFRl.js → daily-pulse-DPTt6UvA.js} +1 -1
- package/dist/client/assets/{delete-copy-B6tNeLWc.js → delete-copy-Cv0ifUJG.js} +1 -1
- package/dist/client/assets/{device-hint-CmwEy7St.js → device-hint-nPYgqbIG.js} +1 -1
- package/dist/client/assets/{discover-BlO78HB-.js → discover-B7LhTmwb.js} +1 -1
- package/dist/client/assets/{domain-settings-BP9bTwhZ.js → domain-settings-BYiHALNW.js} +1 -1
- package/dist/client/assets/{drawer-K3Wlsh8W.js → drawer-BEcXc_-E.js} +1 -1
- package/dist/client/assets/{editor-CUuL2Ko8.js → editor-BFAj_1BW.js} +1 -1
- package/dist/client/assets/{editor-classes-D8_D8KdL.js → editor-classes-BxMZYBKM.js} +1 -1
- package/dist/client/assets/{empty-message-C3ejVO36.js → empty-message-C0f5_LY5.js} +1 -1
- package/dist/client/assets/{empty-state-Dk5NTk4O.js → empty-state-BkUMxsIo.js} +1 -1
- package/dist/client/assets/{empty-state-Dot5VHSn.js → empty-state-obejKp5A.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-DYV542_D.js → experiments-tab-choice-BboZlACY.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C9_f-O9G.js → extract-connection-data-CuocrlN0.js} +1 -1
- package/dist/client/assets/{feature-gate-DljMHkMs.js → feature-gate-Bw3bXdA4.js} +1 -1
- package/dist/client/assets/{feature-paywall-ybsx0N3p.js → feature-paywall-DeRLsq8M.js} +1 -1
- package/dist/client/assets/{file-explorer-ebSl_Aam.js → file-explorer--EQh0bHO.js} +1 -1
- package/dist/client/assets/{file-preview-B86WTGzH.js → file-preview-C0A1Khjl.js} +1 -1
- package/dist/client/assets/{file-share-button-Dp4fO3k1.js → file-share-button-BPQx1PMv.js} +1 -1
- package/dist/client/assets/{file-type-icon-h6P4o9hk.js → file-type-icon-DVl3LYgB.js} +1 -1
- package/dist/client/assets/{folder-icon-CXc15nSf.js → folder-icon-CAQabffa.js} +1 -1
- package/dist/client/assets/{form-CYo32y8X.js → form-BZRFxWry.js} +1 -1
- package/dist/client/assets/{frame-navigation-jUk378Mt.js → frame-navigation-CQQpWfbX.js} +1 -1
- package/dist/client/assets/{gateway-client-D7xURYLq.js → gateway-client-23IpJZq4.js} +1 -1
- package/dist/client/assets/{general-DIKs2LBE.js → general-CV_QwMf2.js} +1 -1
- package/dist/client/assets/{github-icon-CBUT7oqk.js → github-icon-CBNn-o18.js} +1 -1
- package/dist/client/assets/{held-block-view-xDAeHvTe.js → held-block-view-YbSpr4rH.js} +3 -3
- package/dist/client/assets/{home-CSOliyLJ.js → home-Cp7pc1Nc.js} +1 -1
- package/dist/client/assets/{home-overview-CxmtIa2s.js → home-overview-CDH5DaIu.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-DjO-WLTf.js → hosted-reconcile-CpaX3Kk9.js} +1 -1
- package/dist/client/assets/{icon-button-CRZUG5Bn.js → icon-button-SEPOUIsz.js} +1 -1
- package/dist/client/assets/{index-CIxPjsIW.js → index-BH0NNV-_.js} +1 -1
- package/dist/client/assets/{index-H_d4oQKD.js → index-C8hJzRYZ.js} +1 -1
- package/dist/client/assets/{index-CEw3Onwq.js → index-CArf-8X7.js} +1 -1
- package/dist/client/assets/{index-CJ-MGZ1_.js → index-CL5AbR0i.js} +1 -1
- package/dist/client/assets/{index-Co6rR0gn.js → index-CTMcJAph.js} +3 -3
- package/dist/client/assets/{index-BkWtbPOi.js → index-Cbm5nFnf.js} +1 -1
- package/dist/client/assets/{index-C83GzOw4.js → index-CcZwoObK.js} +1 -1
- package/dist/client/assets/{index-CrCYW4co.js → index-CeH1uymC.js} +1 -1
- package/dist/client/assets/{index-C2rPQ85D.js → index-D1VYxwS2.js} +1 -1
- package/dist/client/assets/{index-CfQZ6ouc.js → index-DCrMMrc1.js} +1 -1
- package/dist/client/assets/{index-DkEq0I1E.js → index-DLxdCPEu.js} +1 -1
- package/dist/client/assets/{index-B_ZKuqFc.js → index-DVnJxoIV.js} +1 -1
- package/dist/client/assets/{index-B9K7bmaT.js → index-DiuIOj3H.js} +1 -1
- package/dist/client/assets/{index-Dj0VrxKZ.js → index-IT8TkaWL.js} +1 -1
- package/dist/client/assets/{index-DjdLSQgE.js → index-lloVSdjU.js} +1 -1
- package/dist/client/assets/{index-redirect-Kbn7FeQJ.js → index-redirect-wrAKZzFR.js} +1 -1
- package/dist/client/assets/{index-BYwrh0Ja.js → index-rnYUd4dS.js} +1 -1
- package/dist/client/assets/{index-C65c08UD.js → index-zWe21PVN.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Ce7PwSkK.js → infiniteQueryObserver-D9m6eB2O.js} +1 -1
- package/dist/client/assets/{infra-billing-DysCzOO8.js → infra-billing-60iN2wEr.js} +1 -1
- package/dist/client/assets/{input-BWYttX4j.js → input-eXowApKu.js} +1 -1
- package/dist/client/assets/{input-Dm8BJ9c8.js → input-h0wz_TXZ.js} +3 -3
- package/dist/client/assets/{integration-icon-WwiC7Wtv.js → integration-icon-_XZmtsUQ.js} +1 -1
- package/dist/client/assets/{item-actions-DSnEShq6.js → item-actions-BTbo4VGv.js} +1 -1
- package/dist/client/assets/{jira-icon-B7BiwHJr.js → jira-icon-Bot-p4Py.js} +1 -1
- package/dist/client/assets/{label-ByksOdld.js → label-trmpdZLi.js} +1 -1
- package/dist/client/assets/{layout-DHLDJrw7.js → layout-C-cUvA7Y.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-y00gy3h8.js → legacy-admin-welcome-dialog-CUKFHE53.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DXdTwjAk.js → legacy-agents-deep-CSPw0gvh.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-CyhAeNms.js → legacy-main-redirect-C5BvZoki.js} +1 -1
- package/dist/client/assets/library-Ck1LsxTN.js +1 -0
- package/dist/client/assets/{library-tab-BhUSHGPA.js → library-tab-CpZ6q1qr.js} +1 -1
- package/dist/client/assets/{login-BwPyZNiN.js → login-DAJXJhrY.js} +1 -1
- package/dist/client/assets/{markdown-0xIVphkp.js → markdown-Dc3CvpIQ.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Bjqoi7kP.js → mcp-app-renderer-D4M3J8xI.js} +1 -1
- package/dist/client/assets/{mcp-oauth-JXrnvfrE.js → mcp-oauth-B4J7uUwj.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Bp5RDM0Z.js → mcp-oauth-v1wlsxnr.js} +1 -1
- package/dist/client/assets/{members-B5Ww144g.js → members-BDXWGlxv.js} +1 -1
- package/dist/client/assets/{memory-cmx--IcK.js → memory-C6fS_dk4.js} +1 -1
- package/dist/client/assets/{mock-board-DJV3iPMg.js → mock-board-L6wLs7Cj.js} +3 -3
- package/dist/client/assets/{monaco-editor-CEXzvqLi.js → monaco-editor-Cop8b3Iq.js} +1 -1
- package/dist/client/assets/{monitoring-CSGZQUTB.js → monitoring-TGVc4sza.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BKMHVqaf.js → monitoring-stats-row-DFSbHH_1.js} +1 -1
- package/dist/client/assets/{multi-select-DoVs80Q6.js → multi-select-CgSYI-SO.js} +1 -1
- package/dist/client/assets/{mustache-CLdnmKg-.js → mustache-CdP8aWYo.js} +1 -1
- package/dist/client/assets/{named-rule-step-D2LCAtmv.js → named-rule-step-MGqpbfvr.js} +1 -1
- package/dist/client/assets/{named-rule-view-D4Tvdjnt.js → named-rule-view-BcughUTX.js} +1 -1
- package/dist/client/assets/{new-project-dialog-ClY7MVAq.js → new-project-dialog-C9TjL-bf.js} +1 -1
- package/dist/client/assets/{new-project-store-o7wgM79J.js → new-project-store-DziLBvLE.js} +1 -1
- package/dist/client/assets/{oauth-callback-Dz7MbQ9s.js → oauth-callback-BYBCupF-.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-D2KsgY19.js → oauth-callback-ai-provider-DekPvyld.js} +1 -1
- package/dist/client/assets/{oauth-consent-CKPjTK6P.js → oauth-consent-I9AzZRg_.js} +1 -1
- package/dist/client/assets/{onboarding-CLjMSnfw.js → onboarding-D-LllJI3.js} +1 -1
- package/dist/client/assets/{openai-conversation-g4Hubu2Y.js → openai-conversation-BlD_ym1N.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-xtSYWvxt.js → optimistic-project-sidebar-views-B3ScBIX8.js} +1 -1
- package/dist/client/assets/{order-monitor-day-Bld--1VN.js → order-monitor-day-I-qDM9kN.js} +1 -1
- package/dist/client/assets/{organization-choice-Dk8yyAn7.js → organization-choice-BtO7vVfY.js} +1 -1
- package/dist/client/assets/{orgs-JYyPk5GG.js → orgs-DoZeaOU9.js} +1 -1
- package/dist/client/assets/{own-accounts-section-BylmuFeP.js → own-accounts-section-WC2YQHur.js} +1 -1
- package/dist/client/assets/{pair-CMODrGDG.js → pair-Ds0-e3lZ.js} +1 -1
- package/dist/client/assets/{parse-sections-MF4zyx6W.js → parse-sections-DR_12bc5.js} +4 -4
- package/dist/client/assets/{plan-f-H69hN4.js → plan-9OrDLcOP.js} +1 -1
- package/dist/client/assets/{plan-ladder-Deo867zJ.js → plan-ladder-BhsGSh5u.js} +1 -1
- package/dist/client/assets/{plan-usage-card-Cz4JPTVT.js → plan-usage-card-XFJJHMmu.js} +1 -1
- package/dist/client/assets/{popover-ByOmFUvE.js → popover-C8zi00Ue.js} +1 -1
- package/dist/client/assets/{post-calendar-CB20VV8X.js → post-calendar-0qVUtDwn.js} +1 -1
- package/dist/client/assets/{post-editor-aG2XEiXP.js → post-editor-1NMNs92L.js} +1 -1
- package/dist/client/assets/{preview-content-QfODQmms.js → preview-content-CkKl8ZNQ.js} +1 -1
- package/dist/client/assets/{preview-dialog-D6MQ0zRZ.js → preview-dialog-DvruGkSl.js} +1 -1
- package/dist/client/assets/{preview-panel-l7gxlk-r.js → preview-panel-DvGs4NBe.js} +1 -1
- package/dist/client/assets/{preview-tab-DGe2bHYr.js → preview-tab-B6qjDxNU.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-DlDoTZHm.js → product-picker-dialog-CxMIxnVH.js} +1 -1
- package/dist/client/assets/{profile-BDEcJL3d.js → profile-CIv9uH9k.js} +1 -1
- package/dist/client/assets/{project-app-view-B8kjp-2V.js → project-app-view-Dis-yc3P.js} +1 -1
- package/dist/client/assets/{project-apps-70lKZzi6.js → project-apps-B22pTvYC.js} +1 -1
- package/dist/client/assets/{project-icon-BM70uWoi.js → project-icon-BWLuHtAC.js} +1 -1
- package/dist/client/assets/{project-index-wmMvuKn9.js → project-index-BuGJUH1H.js} +1 -1
- package/dist/client/assets/project-reports-BrxV6cp-.js +1 -0
- package/dist/client/assets/project-tasks-Drfeslni.js +1 -0
- package/dist/client/assets/{projects-6T_IwIBH.js → projects-BUZGm2qT.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DWtSMl8V.js → projects-empty-state-BbuqCUBa.js} +1 -1
- package/dist/client/assets/{prompts-BXaQ6yMc.js → prompts-Bb7YMjhn.js} +1 -1
- package/dist/client/assets/record-editor-DpFDePV5.js +1 -0
- package/dist/client/assets/{redirect-editor-BiGPcSNi.js → redirect-editor-ByYjuA1G.js} +1 -1
- package/dist/client/assets/reports-B9s6jT4A.js +1 -0
- package/dist/client/assets/{reports-Bx8z68bS.js → reports-Pu2jzKU8.js} +1 -1
- package/dist/client/assets/{reports-onboarding-CDVMMBm_.js → reports-onboarding-iS7AGjXC.js} +1 -1
- package/dist/client/assets/{reports-tab-C9ROb0lH.js → reports-tab-XAOKssbW.js} +2 -2
- package/dist/client/assets/{repositories-C6VDwuIL.js → repositories-Cx31XGsh.js} +1 -1
- package/dist/client/assets/repositories-Dqo40TlZ.js +1 -0
- package/dist/client/assets/{repository-binding-BHd6MPBb.js → repository-binding--vh_BYpc.js} +1 -1
- package/dist/client/assets/{repository-picker-nPE23DGW.js → repository-picker-Brbv4xAW.js} +1 -1
- package/dist/client/assets/{require-capability-CZSksrq9.js → require-capability-BAfns9Aj.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Dww56YPo.js → required-auth-layout-DS3Ymu6e.js} +1 -1
- package/dist/client/assets/{reset-password-BMC_LZug.js → reset-password-DZbyY6JF.js} +1 -1
- package/dist/client/assets/{resizable-h9dmPWbU.js → resizable-DxAoPV5h.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-BPaOT2xB.js → resolve-tab-icon-e4_ZG2lV.js} +1 -1
- package/dist/client/assets/{review-settings-Cl1a0d89.js → review-settings-ZwTP4tx5.js} +1 -1
- package/dist/client/assets/{role-color-YRba4q2q.js → role-color-DRYA-NI9.js} +1 -1
- package/dist/client/assets/{roles-BWVqYNHT.js → roles-CqJbEns3.js} +1 -1
- package/dist/client/assets/route-B3IhE4_f.js +1 -0
- package/dist/client/assets/{route-DaEwQ38M.js → route-B_TmhkDK.js} +1 -1
- package/dist/client/assets/{route-_yNYwLZk.js → route-D70xVZu3.js} +1 -1
- package/dist/client/assets/{route-page-header-BOjMyZLU.js → route-page-header-Bpm0W1nW.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-D_zqXusJ.js → sandbox-git-api-DOzEUsKW.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-EGqIRkVc.js → sandbox-lifecycle-context-Dp0s3TpP.js} +1 -1
- package/dist/client/assets/{save-status-srO2QuMe.js → save-status-BtdtqD2M.js} +1 -1
- package/dist/client/assets/{schema-BQcrDa3T.js → schema-BhHglPtg.js} +1 -1
- package/dist/client/assets/{schema-Cxd_IYVT.js → schema-Hu_PAkfm.js} +1 -1
- package/dist/client/assets/{scroll-area-CEoR6duQ.js → scroll-area-86kp0Juo.js} +1 -1
- package/dist/client/assets/{search-input-DCEAN2B_.js → search-input-OHQ7aB3a.js} +1 -1
- package/dist/client/assets/{search-toggle-BldmGfWb.js → search-toggle-DQQyP_lz.js} +1 -1
- package/dist/client/assets/{secret-picker-CghhglQ_.js → secret-picker-ChpIYvE5.js} +1 -1
- package/dist/client/assets/{secrets-FSjqhq3q.js → secrets-Bab9DPUO.js} +1 -1
- package/dist/client/assets/{section-array-field-jF8nhKtJ.js → section-array-field-BYNGi1SJ.js} +1 -1
- package/dist/client/assets/{sections-f6vVHiGq.js → sections-B0KD_iOl.js} +1 -1
- package/dist/client/assets/{sections-editor-CXAHFjs0.js → sections-editor-BVl-tWHW.js} +1 -1
- package/dist/client/assets/{select-CJT3vEkz.js → select-DPgeUwK8.js} +1 -1
- package/dist/client/assets/{select-model-BvJgKq70.js → select-model-C_3sJmJn.js} +1 -1
- package/dist/client/assets/{seo-editor-CZ4-TR_e.js → seo-editor-_3HPQ8Q6.js} +1 -1
- package/dist/client/assets/{separator-CdEXNDuC.js → separator-DhjB_iu5.js} +1 -1
- package/dist/client/assets/{session-runtime-Dkb1hEYc.js → session-runtime-i5m3WIi5.js} +1 -1
- package/dist/client/assets/settings-tab-Cjv_Rd4o.js +1 -0
- package/dist/client/assets/{sheet-C0A9yRVS.js → sheet-BK-tSef6.js} +1 -1
- package/dist/client/assets/{shell-layout-D0391DDt.js → shell-layout-BuI483D3.js} +1 -1
- package/dist/client/assets/{site-draft-actions-BraZcTPM.js → site-draft-actions-DoX_UDfb.js} +1 -1
- package/dist/client/assets/{site-draft-view-D79vzGI8.js → site-draft-view-BPK_umRU.js} +1 -1
- package/dist/client/assets/site-editor-DjbeXhle.js +1 -0
- package/dist/client/assets/{site-editor-toast-5k29E4pC.js → site-editor-toast-tb2AMckD.js} +1 -1
- package/dist/client/assets/{skills-C8uBdKUN.js → skills-C-X6unw1.js} +1 -1
- package/dist/client/assets/{slider-aN5f33jd.js → slider-Ls5eTZcT.js} +1 -1
- package/dist/client/assets/{sortable.esm-BzAeO9al.js → sortable.esm-BjAYLhGV.js} +1 -1
- package/dist/client/assets/{sso-Dsn9j17d.js → sso-m7GTAbeC.js} +1 -1
- package/dist/client/assets/{suggestion-DW2n4CBa.js → suggestion-C-xAkFMh.js} +1 -1
- package/dist/client/assets/{super-agent-icon-CWQKOwHl.js → super-agent-icon-CW1v2RWL.js} +1 -1
- package/dist/client/assets/{switch-C05Bdxkv.js → switch-md0gRiEr.js} +1 -1
- package/dist/client/assets/{synced-repos-CU7npNUl.js → synced-repos-Dny6042B.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-B2FmN0Et.js → tab-icon-glyph-B2J47YqA.js} +1 -1
- package/dist/client/assets/{table-5dU5MLGF.js → table-D0iRcy-V.js} +1 -1
- package/dist/client/assets/{tabs-B9Lp_Gl4.js → tabs-2mcRw6CQ.js} +1 -1
- package/dist/client/assets/{task-board-D8vQl4zG.js → task-board-PS4uTaEc.js} +1 -1
- package/dist/client/assets/{task-key-DKIfifpb.js → task-key-CN2bdn8Q.js} +1 -1
- package/dist/client/assets/{task-route-B92WPPIW.js → task-route-CeP9N75K.js} +1 -1
- package/dist/client/assets/{task-status-BZKLaJ_D.js → task-status-Dtw0yYYt.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BmfIwNnr.js → taskboard-analytics-Cq4a6PcZ.js} +1 -1
- package/dist/client/assets/{tasks-DI_W73Sf.js → tasks-DwdT3G88.js} +1 -1
- package/dist/client/assets/tasks-yTUoQbs0.js +1 -0
- package/dist/client/assets/{textarea-DRBiRj4t.js → textarea-CpsIhOMc.js} +1 -1
- package/dist/client/assets/{thread-analytics-2clzzevh.js → thread-analytics-BuaDw2wT.js} +1 -1
- package/dist/client/assets/{thread-button-CPaB2lDX.js → thread-button-BBpIpfN4.js} +1 -1
- package/dist/client/assets/{thread-intent-Rcy0Pg3z.js → thread-intent-1ccDEEyI.js} +1 -1
- package/dist/client/assets/{thread-route-CnbaUAwN.js → thread-route-CftGRyLL.js} +1 -1
- package/dist/client/assets/{thread-route-DJE0KvRB.js → thread-route-DR-mysJ4.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CRiFMNbm.js → thread-sheet-body-BeI89SCu.js} +1 -1
- package/dist/client/assets/{time-range-picker-6kZfSpIm.js → time-range-picker-DG4w9hkA.js} +1 -1
- package/dist/client/assets/{toggle-group-CO5wWexp.js → toggle-group-Ls4QOte6.js} +1 -1
- package/dist/client/assets/{tool-set-selector-2doqGyvN.js → tool-set-selector-DjbDtWc3.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-dAeP99an.js → toolbar-icon-button-w0w5tyY2.js} +1 -1
- package/dist/client/assets/{tooltip-Df_zpMYP.js → tooltip-BwiBQZRg.js} +1 -1
- package/dist/client/assets/{tooltipContext-Cj1vIq_G.js → tooltipContext-CAee1FwO.js} +1 -1
- package/dist/client/assets/{track-DryuRN6b.js → track-DovfvUQO.js} +1 -1
- package/dist/client/assets/{types-SntTl9LD.js → types-CQPseOG9.js} +1 -1
- package/dist/client/assets/{url-slug-Njv7Xgdn.js → url-slug-_KiIaSc5.js} +1 -1
- package/dist/client/assets/{usage-stats-CcHqAfdx.js → usage-stats-DTtlBjNo.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DXbjXAAv.js → use-ai-providers-DZEaT-ul.js} +1 -1
- package/dist/client/assets/{use-api-keys-BbdYWKNH.js → use-api-keys-Bnfl-RCF.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-74TBpxWc.js → use-apply-named-rule-BMJ9PQoA.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-CRX_DV_t.js +1 -0
- package/dist/client/assets/{use-automations-Bm9d_6lI.js → use-automations-D0ZND8n5.js} +1 -1
- package/dist/client/assets/{use-autosave-DaMiE4qw.js → use-autosave-DCpw1AWV.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-D5fKsCGm.js +1 -0
- package/dist/client/assets/use-blog-view-CNoSAPL8.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-r1wL4NUk.js → use-chat-layout-state-B1ybe4ap.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-C-Y0B_ks.js → use-cms-publish-actions-CZ7OOlql.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BEI8B8yF.js → use-connect-companion-CU0e5fqV.js} +1 -1
- package/dist/client/assets/{use-connection-B4lKIQA0.js → use-connection-BNMimkPL.js} +1 -1
- package/dist/client/assets/{use-content-sync-ByXwQqVy.js → use-content-sync-ClbM0XA1.js} +1 -1
- package/dist/client/assets/{use-copy-AMXzSVfx.js → use-copy-CE9nrbOr.js} +1 -1
- package/dist/client/assets/{use-current-view-CVH5iSiB.js → use-current-view-D44ayMhH.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DmnCBcqa.js → use-date-fns-locale-DjUw_n69.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C22ZXkLt.js → use-debounced-autosave-BcqPkjFV.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Ds-2wPLv.js → use-debounced-value-DT9lKq9i.js} +1 -1
- package/dist/client/assets/{use-deco-credits-6MNKEkyK.js → use-deco-credits-D66VTWCl.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DX7MZUy2.js → use-decopilot-events-_mLqRiEF.js} +1 -1
- package/dist/client/assets/{use-delete-block-CNxWWGza.js → use-delete-block-DQun19Xn.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CVKGfTkS.js → use-delete-connection-BCDQzopb.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CZPavVrN.js → use-deployment-admin-DlPnuM4S.js} +1 -1
- package/dist/client/assets/{use-entitlements-CxCyre5I.js → use-entitlements-DNwniW7G.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-C3CNk748.js → use-fast-preview-draft-url-BDGYAn85.js} +1 -1
- package/dist/client/assets/{use-file-configs-DsAFcAwe.js → use-file-configs-DNyK94-h.js} +1 -1
- package/dist/client/assets/{use-id-selection-BzTsnf59.js → use-id-selection-B4X3PiKb.js} +1 -1
- package/dist/client/assets/{use-in-settings-BXkcP6Tk.js → use-in-settings-Bm865pUH.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-DP-nqXz2.js → use-inbox-feed-j1HCg11s.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-B4z6ckVO.js → use-infinite-scroll-COH_kc3E.js} +1 -1
- package/dist/client/assets/{use-join-requests-Bqa735J4.js → use-join-requests-CaFjJ02B.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BlAC3VzU.js → use-main-panel-tabs-CKNAH4y7.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-cHDvspxX.js → use-mcp-auth-status-BiCnJXr1.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DCnzMVrb.js → use-mcp-client-I3y8cfsJ.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CRpq7gfO.js → use-mcp-prompts-BvVRtZ43.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-njEG_v1t.js → use-mcp-tools-D4mbfBv6.js} +1 -1
- package/dist/client/assets/{use-mobile-BjmNO-73.js → use-mobile-BmDu9lai.js} +1 -1
- package/dist/client/assets/{use-move-blocks-CDfA49US.js → use-move-blocks-D9FoxaY3.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DzbDWWrX.js → use-navigate-to-agent-DGvRNQ_A.js} +1 -1
- package/dist/client/assets/{use-never-published-D20aR_4t.js → use-never-published-tdlolbih.js} +1 -1
- package/dist/client/assets/{use-org-fs-BO82dyFR.js → use-org-fs-DhWc9O8e.js} +1 -1
- package/dist/client/assets/{use-org-notice-ezdUR3Gu.js → use-org-notice-BcxmaTvi.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-joFXwNxF.js → use-org-repo-syncs-CZEtfIEc.js} +1 -1
- package/dist/client/assets/{use-org-sso-DTYzAmmb.js → use-org-sso-QOAhbUXz.js} +1 -1
- package/dist/client/assets/{use-organization-settings-C-OR4uXE.js → use-organization-settings-CwuyWnwZ.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-D5ZYoVsJ.js → use-panel-navigate-D-3r_Fkm.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-DcUjD0rF.js → use-project-native-view-presence-DNdTgIQV.js} +1 -1
- package/dist/client/assets/{use-project-scope-Cq06T8Sd.js → use-project-scope-uv2IbJz0.js} +1 -1
- package/dist/client/assets/{use-recent-apps-BFGTxzlN.js → use-recent-apps-YAb9EkOH.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-DSgXCsed.js → use-reports-diagnostic-CV_Elu-_.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-DXDi0dWz.js → use-sandbox-events-Dw0utopN.js} +1 -1
- package/dist/client/assets/{use-secrets-BFRC4ZPk.js → use-secrets-BrD_3u0D.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CWxDDmDb.js → use-section-preview-base-BVnv1Txk.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-DkTKI361.js → use-sidebar-collapsed-Du6f3z_j.js} +1 -1
- package/dist/client/assets/{use-tags-AyTGyIua.js → use-tags-D9qlYHDa.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-tnGqbbon.js → use-task-board-analytics-CFtX6Vrh.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-03AOC4zL.js → use-task-board-item-prs-DPCCrxHj.js} +1 -1
- package/dist/client/assets/{use-task-board-items-Cd_kifwE.js → use-task-board-items-hngRazfo.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-BJ65k3lZ.js → use-task-board-prompts-sTov8wbK.js} +1 -1
- package/dist/client/assets/{use-task-metadata-MaJXoAaP.js → use-task-metadata-B2z2taUm.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-WE3Zzudk.js → use-thread-outputs-Bk_M_0CQ.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-ju72v-Rv.js → use-view-draft-kind-CJIOo5Xm.js} +1 -1
- package/dist/client/assets/{use-voice-input-CA0Mk-lk.js → use-voice-input-CFTfX25b.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BRexMxca.js +1 -0
- package/dist/client/assets/{useQueries-BwtH89jQ.js → useQueries-DDQVd688.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DM12jCFI.js +1 -0
- package/dist/client/assets/{users-B-vu_ub8.js → users-BLg85oUh.js} +1 -1
- package/dist/client/assets/{utils-C6Y0YLD5.js → utils-Bb7MZu12.js} +1 -1
- package/dist/client/assets/{variant-calendar-DfAmuwSR.js → variant-calendar-CJdjEOV3.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-VfDIUAOt.js → variant-matcher-override-DXon6gCQ.js} +1 -1
- package/dist/client/assets/{view-header-BteGrIr7.js → view-header-DOoJu_73.js} +1 -1
- package/dist/client/assets/{virtual-mcp-Dl1XmogB.js → virtual-mcp-YeTBM8yt.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-nN0YjPdK.js → watch-sse-pool-D23qxy7t.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-B8myuSDB.js +0 -1
- package/dist/client/assets/agent-assets-D8izkVLz.js +0 -1
- package/dist/client/assets/agent-deck-BgzQ-G99.js +0 -1
- package/dist/client/assets/agent-experiments-a3b_e0sl.js +0 -1
- package/dist/client/assets/agent-file-CAw3QH9Z.js +0 -1
- package/dist/client/assets/agent-library-BwIvrg-e.js +0 -1
- package/dist/client/assets/agent-library-file-wNvD0GEZ.js +0 -1
- package/dist/client/assets/agent-overview-CnVErwoF.js +0 -1
- package/dist/client/assets/agent-settings-BNzej8K4.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CA7J488e.js +0 -2
- package/dist/client/assets/agent-site-editor-content-2699CRxp.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BYBmgXSe.js +0 -1
- package/dist/client/assets/agent-view-C6GSwnGI.js +0 -1
- package/dist/client/assets/api-keys-PGbi0SlO.js +0 -1
- package/dist/client/assets/library-D_KC3xZd.js +0 -1
- package/dist/client/assets/project-reports-mPNvRl8n.js +0 -1
- package/dist/client/assets/project-tasks-rcnNzHIy.js +0 -1
- package/dist/client/assets/record-editor-DnnEuS8O.js +0 -1
- package/dist/client/assets/reports-BWpjNtfB.js +0 -1
- package/dist/client/assets/repositories-Ch_CLrmt.js +0 -1
- package/dist/client/assets/route-BR0RkEyk.js +0 -1
- package/dist/client/assets/settings-tab-Cp9O0Dqn.js +0 -1
- package/dist/client/assets/site-editor-CM61MCKc.js +0 -1
- package/dist/client/assets/tasks-CvQvQ-MW.js +0 -1
- package/dist/client/assets/use-ask-in-chat-C850d6eE.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-BQL6-7Xt.js +0 -1
- package/dist/client/assets/use-blog-view-DmMgmqOT.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Cj2z9qEd.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-s7tbBu3Y.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as U,r as I,a6 as Ve,eL as Ue,b as ee,m as O,j as r,a7 as Qe,ev as Ge,B as Ne,t as se,I as Ye,h as We,aY as Ke}from"./index-Co6rR0gn.js";import{a as Pe}from"./Image01-DuxttnrD.js";import{s as He}from"./Trash01-qvtzIWfE.js";import{i as Re}from"./Upload01-ImxC9sTu.js";import{r as Je,L as Xe,s as Ze,F as et,i as $e}from"./use-never-published-D20aR_4t.js";import{L as Ce}from"./label-ByksOdld.js";import{T as Se,a as ke,c as Ee}from"./tooltip-Df_zpMYP.js";import{b as Ie}from"./repository-binding-BHd6MPBb.js";import{u as tt}from"./chat-context-DfED6LPo.js";import{u as Fe,a6 as st,h as it,b as rt,a7 as nt}from"./site-editor-toast-5k29E4pC.js";import{c as ot}from"./use-organization-settings-C-OR4uXE.js";import{a as at}from"./SwitchHorizontal01-BdKgEs3S.js";import{a as lt,b as ct,P as dt}from"./popover-ByOmFUvE.js";import{S as ft}from"./switch-C05Bdxkv.js";import{T as ut,a as mt}from"./toggle-group-CO5wWexp.js";import{m as pt}from"./match-site-slug-config-B47_xZCi.js";import{u as gt}from"./use-file-configs-DsAFcAwe.js";import{u as xt}from"./asset-utils--1YS2GmS.js";import{i as ht}from"./AlertCircle-YhZjgz3z.js";const Oe=I.createContext(null);function cs(t){const e=U.c(3),{children:s}=t,n=tt(),a=Fe(n?.virtualMcpId,n?.currentBranch);let o;return e[0]!==a.kind||e[1]!==s?(o=I.createElement(Oe.Provider,{value:a.kind},s),e[0]=a.kind,e[1]=s,e[2]=o):o=e[2],o}function vt(){const t=U.c(4),e=I.useContext(Oe),{org:s}=Ve(),n=ot("new_blocks_editor"),a=!!s.id;let o;return t[0]!==e||t[1]!==n||t[2]!==a?(o=st({backend:e,hasOrg:a,orgFlag:n}),t[0]=e,t[1]=n,t[2]=a,t[3]=o):o=t[3],o}function yt(){return vt()??!1}function bt(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")),a=Ue(n);if(typeof a=="string")return a;const o=s.map(i=>Ue(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 jt(t){const e=U.c(29),{className:s}=t,n=ee();if(yt()){let c;e[0]!==n?(c=n("sectionsEditor.field.missingRequired"),e[0]=n,e[1]=c):c=e[1];let m;e[2]!==s?(m=O("shrink-0 cursor-help text-destructive",s),e[2]=s,e[3]=m):m=e[3];let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(Qe,{className:"size-3.5"}),e[4]=x):x=e[4];let p;e[5]!==c||e[6]!==m?(p=r.jsx(Se,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":c,className:m,children:x})}),e[5]=c,e[6]=m,e[7]=p):p=e[7];let h;e[8]!==n?(h=n("sectionsEditor.field.missingRequiredTooltip"),e[8]=n,e[9]=h):h=e[9];let g;e[10]!==h?(g=r.jsx(ke,{className:"max-w-56",children:h}),e[10]=h,e[11]=g):g=e[11];let w;return e[12]!==p||e[13]!==g?(w=r.jsxs(Ee,{children:[p,g]}),e[12]=p,e[13]=g,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=O("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(Se,{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 d;e[22]!==n?(d=n("sectionsEditor.field.missingRequiredTooltip"),e[22]=n,e[23]=d):d=e[23];let l;e[24]!==d?(l=r.jsx(ke,{className:"max-w-56",children:d}),e[24]=d,e[25]=l):l=e[25];let u;return e[26]!==f||e[27]!==l?(u=r.jsxs(Ee,{children:[f,l]}),e[26]=f,e[27]=l,e[28]=u):u=e[28],u}const Me=I.createContext({required:!1,invalid:!1});function wt(){return I.useContext(Me)}function ds(t){const e=U.c(6),{required:s,invalid:n,children:a}=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]!==a||e[4]!==o?(i=r.jsx(Me.Provider,{value:o,children:a}),e[3]=a,e[4]=o,e[5]=i):i=e[5],i}function fs(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 Nt="cursor-help underline decoration-dotted decoration-muted-foreground/50 underline-offset-4";function De(t){return Ie(t)?.metadata?.fieldDescriptionTooltips??!1}function Ct(t){const e=U.c(9),{description:s,virtualMcpId:n,children:a}=t,o=De(n);if(!s||!o)return a;let i;e[0]!==a?(i=I.cloneElement(a,{className:O(a.props.className,Nt)}),e[0]=a,e[1]=i):i=e[1];let f;e[2]!==i?(f=r.jsx(Se,{asChild:!0,children:i}),e[2]=i,e[3]=f):f=e[3];let d;e[4]!==s?(d=r.jsx(ke,{className:"max-w-64",children:s}),e[4]=s,e[5]=d):d=e[5];let l;return e[6]!==f||e[7]!==d?(l=r.jsxs(Ee,{delayDuration:300,children:[f,d]}),e[6]=f,e[7]=d,e[8]=l):l=e[8],l}function St(t){const e=U.c(17),{htmlFor:s,label:n,description:a,labelClassName:o,virtualMcpId:i}=t,f=De(i),{required:d,invalid:l}=wt();let u;e[0]!==l||e[1]!==d?(u=d&&l&&r.jsx(jt,{className:"mt-0.5 self-start"}),e[0]=l,e[1]=d,e[2]=u):u=e[2];let c;e[3]!==s||e[4]!==n||e[5]!==o||e[6]!==u?(c=r.jsxs(Ce,{htmlFor:s,className:o,children:[n,u]}),e[3]=s,e[4]=n,e[5]=o,e[6]=u,e[7]=c):c=e[7];const m=c;if(!f){let p;e[8]!==a?(p=a&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:a}),e[8]=a,e[9]=p):p=e[9];let h;return e[10]!==m||e[11]!==p?(h=r.jsxs("div",{className:"space-y-0.5",children:[m,p]}),e[10]=m,e[11]=p,e[12]=h):h=e[12],h}let x;return e[13]!==a||e[14]!==m||e[15]!==i?(x=r.jsx(Ct,{description:a,virtualMcpId:i,children:m}),e[13]=a,e[14]=m,e[15]=i,e[16]=x):x=e[16],x}function kt(t){const e=ee(),s=Ie(t?.virtualMcpId),n=Fe(t?.virtualMcpId,t?.branch),{connection:a}=rt(t?.virtualMcpId),o=nt(n,a);if(s?.metadata?.assetStorageConfigId||!o||!t||n.kind!=="protocol"||!n.describe.assets)return null;const{maxBytes:i}=n.describe.assets,f=d=>`${o}/assets/${encodeURIComponent(d)}`;return async d=>{if(d.size>i)throw new Error(e("sectionsEditor.fileField.tooLarge",{max:`${Math.floor(i/(1024*1024))} MB`}));if(n.describe.readOnly)throw new Error(e("decoServe.upload.readOnly",{name:d.name}));let l;try{l=await fetch(f(d.name),{method:"PUT",signal:Ge(),headers:{"content-type":d.type||"application/octet-stream"},body:d})}catch{throw new Error(e("decoServe.upload.serverGone",{name:d.name}))}const u=await l.json().catch(()=>null);if(!l.ok||typeof u?.path!="string"){const c=u?.error?.message;throw new Error(e("decoServe.upload.failed",{name:d.name,detail:typeof c=="string"?c:`HTTP ${l.status}`}))}return u.path}}function Et(t,e){const s=U.c(6),n=Fe(t?.virtualMcpId,t?.branch);let a;s[0]!==n||s[1]!==t?.previewUrl?(a=n.kind==="protocol"&&n.source==="sandbox"?t?.previewUrl??null:it(n),s[0]=n,s[1]=t?.previewUrl,s[2]=a):a=s[2];const o=a;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 It(){const t=U.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(Re,{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 Tt(t){const e=t.lastIndexOf(".");return e<0||e===t.length-1?"":t.slice(e+1).toLowerCase()}const _t=["low","medium","high","original"];function Le(t){return t==="low"||t==="medium"||t==="high"||t==="original"}function qe(t,e){try{return new URL(t).searchParams.get(e)}catch{const s=Ut(t);for(const n of s){const a=n.indexOf("=");if((a>=0?n.slice(0,a):n)===e)return a>=0?n.slice(a+1):""}return null}}function ze(t,e,s){const n=t.indexOf("#"),a=n>=0?t.slice(n):"",o=n>=0?t.slice(0,n):t,i=o.indexOf("?"),f=i>=0?o.slice(0,i):o,d=(i>=0?o.slice(i+1).split("&"):[]).filter(Boolean).filter(l=>{const u=l.indexOf("=");return(u>=0?l.slice(0,u):l)!==e});return s!==void 0&&d.push(`${e}=${s}`),`${f}${d.length?`?${d.join("&")}`:""}${a}`}function Ut(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 Pt(t){if(!t)return;const e=qe(t,"quality");return Le(e)?e:void 0}function $t(t,e){return ze(t,"quality",e)}function Rt(t){return t?qe(t,"muted")!=="false":!0}function Ot(t,e){return ze(t,"muted",e?void 0:"false")}function Mt(t){const e=U.c(36),{value:s,onChange:n,showMuted:a}=t,o=a===void 0?!1:a,i=ee(),f=I.useId();let d;e[0]!==s?(d=Pt(s),e[0]=s,e[1]=d):d=e[1];const l=d;let u;e[2]!==s?(u=Rt(s),e[2]=s,e[3]=u):u=e[3];const c=u;let m;e[4]!==i?(m=i("sectionsEditor.mediaTransformControls.mediaOptionsLabel"),e[4]=i,e[5]=m):m=e[5];let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(at,{size:14}),e[6]=x):x=e[6];let p;e[7]!==m?(p=r.jsx(lt,{asChild:!0,children:r.jsx(Ne,{type:"button",variant:"outline",size:"sm",className:"h-9 shrink-0","aria-label":m,children:x})}),e[7]=m,e[8]=p):p=e[8];let h;e[9]!==i?(h=i("sectionsEditor.mediaTransformControls.qualityLabel"),e[9]=i,e[10]=h):h=e[10];let g;e[11]!==h?(g=r.jsx(Ce,{className:"text-xs text-muted-foreground",children:h}),e[11]=h,e[12]=g):g=e[12];const w=l??"";let N;e[13]!==n||e[14]!==s?(N=b=>n($t(s,Le(b)?b:void 0)),e[13]=n,e[14]=s,e[15]=N):N=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=_t.map(Dt),e[16]=y):y=e[16];let F;e[17]!==N||e[18]!==w?(F=r.jsx(ut,{type:"single",variant:"outline",size:"sm",value:w,onValueChange:N,children:y}),e[17]=N,e[18]=w,e[19]=F):F=e[19];let v;e[20]!==F||e[21]!==g?(v=r.jsxs("div",{className:"flex flex-col gap-1.5",children:[g,F]}),e[20]=F,e[21]=g,e[22]=v):v=e[22];let C;e[23]!==c||e[24]!==f||e[25]!==n||e[26]!==o||e[27]!==i||e[28]!==s?(C=o&&r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsx(Ce,{htmlFor:f,className:"text-xs text-muted-foreground",children:i("sectionsEditor.mediaTransformControls.mutedLabel")}),r.jsx(ft,{id:f,checked:c,onCheckedChange:b=>n(Ot(s,b))})]}),e[23]=c,e[24]=f,e[25]=n,e[26]=o,e[27]=i,e[28]=s,e[29]=C):C=e[29];let S;e[30]!==v||e[31]!==C?(S=r.jsx(ct,{align:"end",className:"w-auto min-w-52 p-3",children:r.jsxs("div",{className:"flex flex-col gap-3",children:[v,C]})}),e[30]=v,e[31]=C,e[32]=S):S=e[32];let j;return e[33]!==S||e[34]!==p?(j=r.jsxs(dt,{children:[p,S]}),e[33]=S,e[34]=p,e[35]=j):j=e[35],j}function Dt(t){return r.jsx(mt,{value:t,className:"h-8 px-3 text-xs capitalize",children:t},t)}function Lt(t){try{const e=new URL(t);return e.protocol==="http:"||e.protocol==="https:"?e.href:""}catch{return""}}const Ae=new Set(["image/png","image/jpeg","image/gif","image/webp","image/svg+xml","image/avif"]);function qt(t){const e=U.c(26),{siteSlug:s,virtualMcpId:n,onUploaded:a,onNeedsPicker:o,serveUpload:i}=t,f=ee(),l=Ie(n)?.metadata?.assetStorageConfigId,u=!i;let c;e[0]!==u?(c={enabled:u},e[0]=u,e[1]=c):c=e[1];const m=gt(c),x=xt(),[p,h]=I.useState(!1);let g;e[2]!==m.data?.configs?(g=m.data?.configs??[],e[2]=m.data?.configs,e[3]=g):g=e[3];let w;e[4]!==l||e[5]!==s||e[6]!==g?(w=pt(g,s,l),e[4]=l,e[5]=s,e[6]=g,e[7]=w):w=e[7];const y=w?.id??null;let F;e[8]!==m.data?.configs||e[9]!==y||e[10]!==o||e[11]!==a||e[12]!==i||e[13]!==f||e[14]!==x?(F=async function(M){if(!M)return;const $=Array.from(M).filter(zt);if($.length===0){se.error(f("sectionsEditor.imageField.onlyImageFilesAccepted"));return}if(i){try{a(await i($[0]))}catch(T){const _=T;se.error(_ instanceof Error?_.message:f("sectionsEditor.imageField.uploadFailed"))}return}const k=Je(m.data?.configs??[],y,typeof window<"u"?window.localStorage.getItem(Xe):null);if(!k){o();return}try{const T=await x.mutateAsync({configId:k,file:$[0]}),_=Lt(T.publicUrl);if(!_){se.error(f("sectionsEditor.imageField.uploadFailed"));return}a(_),$.length>1&&se.info(f("sectionsEditor.imageField.uploadedWithExtraFilesIgnored",{fileName:$[0].name}))}catch(T){const _=T;se.error(_ instanceof Error?_.message:f("sectionsEditor.imageField.uploadFailed"))}},e[8]=m.data?.configs,e[9]=y,e[10]=o,e[11]=a,e[12]=i,e[13]=f,e[14]=x,e[15]=F):F=e[15];const v=F;let C,S;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=E=>{E.preventDefault(),E.dataTransfer.types.includes("Files")&&h(!0)},S=E=>{E.currentTarget===E.target&&h(!1)},e[16]=C,e[17]=S):(C=e[16],S=e[17]);let j;e[18]!==v?(j={onDragOver:C,onDragLeave:S,onDrop:E=>{E.preventDefault(),E.stopPropagation(),h(!1),v(E.dataTransfer.files)}},e[18]=v,e[19]=j):j=e[19];let b;return e[20]!==v||e[21]!==p||e[22]!==y||e[23]!==j||e[24]!==x.isPending?(b={isDragging:p,isPending:x.isPending,lockedConfigId:y,handleFiles:v,dropProps:j},e[20]=v,e[21]=p,e[22]=y,e[23]=j,e[24]=x.isPending,e[25]=b):b=e[25],b}function zt(t){return Ae.has(t.type||"")}const At=3;function us(t){const e=U.c(98),{schema:s,value:n,onChange:a,path:o,label:i,sandbox:f,compact:d}=t,l=ee();let u;e[0]!==n?(u=bt(n),e[0]=n,e[1]=u):u=e[1];const c=u,[m,x]=I.useState(!1),[p,h]=I.useState(!1),[g,w]=I.useState(!1),N=Et(f,c),[y,F]=I.useState(0);let v;e[2]!==y||e[3]!==N?(v=y>0?`${N}${N.includes("?")?"&":"?"}retry=${y}`:N,e[2]=y,e[3]=N,e[4]=v):v=e[4];let C;e[5]!==v?(C=Ze(v),e[5]=v,e[6]=C):C=e[6];const S=C,j=!!c&&!S;let b,E;e[7]!==c?(b=c?Ft(c):"",E=b?Tt(b):"",e[7]=c,e[8]=b,e[9]=E):(b=e[8],E=e[9]);const M=E;let $;e[10]!==a?($=function(fe){h(!1),w(!1),F(0),a(fe)},e[10]=a,e[11]=$):$=e[11];const k=$,[T,_]=I.useState(c),[Be,Te]=I.useState(c);Be!==c&&(Te(c),_(c));let ie;e[12]!==k||e[13]!==c?(ie=function(fe){_(fe);const te=fe.trim();te&&!$e(te)||te!==c&&(Te(te),k(te))},e[12]=k,e[13]=c,e[14]=ie):ie=e[14];const ue=ie;let re;e[15]!==c||e[16]!==T?(re=function(){T.trim()&&!$e(T)&&_(c)},e[15]=c,e[16]=T,e[17]=re):re=e[17];const me=re,R=kt(f),_e=I.useRef(null);let ne;e[18]!==R?(ne=()=>R?_e.current?.click():x(!0),e[18]=R,e[19]=ne):ne=e[19];const D=ne,pe=f?.siteSlug,ge=f?.virtualMcpId;let oe;e[20]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>x(!0),e[20]=oe):oe=e[20];let ae;e[21]!==R||e[22]!==k||e[23]!==ge||e[24]!==pe?(ae={siteSlug:pe,virtualMcpId:ge,onUploaded:k,onNeedsPicker:oe,serveUpload:R},e[21]=R,e[22]=k,e[23]=ge,e[24]=pe,e[25]=ae):ae=e[25];const{isDragging:le,isPending:ce,lockedConfigId:xe,dropProps:he,handleFiles:ve}=qt(ae),ye=!i&&"hidden";let L;e[26]!==ye?(L=O("min-w-0",ye),e[26]=ye,e[27]=L):L=e[27];const be=f?.virtualMcpId;let q;e[28]!==i||e[29]!==o||e[30]!==s.description||e[31]!==be?(q=r.jsx(St,{htmlFor:o,label:i,description:s.description,labelClassName:"text-muted-foreground",virtualMcpId:be}),e[28]=i,e[29]=o,e[30]=s.description,e[31]=be,e[32]=q):q=e[32];let z;e[33]!==L||e[34]!==q?(z=r.jsx("div",{className:L,children:q}),e[33]=L,e[34]=q,e[35]=z):z=e[35];const je=le&&"border-primary ring-2 ring-primary/30",we=ce&&"pointer-events-none opacity-60";let A;e[36]!==je||e[37]!==we?(A=O("group relative w-full overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-xl))] border shadow-edge border-border/60 bg-muted/30 transition",je,we),e[36]=je,e[37]=we,e[38]=A):A=e[38];let B;e[39]!==D||e[40]!==d||e[41]!==M||e[42]!==b||e[43]!==g||e[44]!==p||e[45]!==ce||e[46]!==i||e[47]!==y||e[48]!==N||e[49]!==S||e[50]!==c||e[51]!==l||e[52]!==j?(B=c?r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:D,"aria-label":l("sectionsEditor.imageField.replaceImage"),className:O("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]",d?"h-28":"h-40"),children:[!g&&!j&&r.jsx("img",{src:S,alt:i,className:O("h-full w-full object-contain transition-opacity",!p&&"opacity-0"),onLoad:()=>h(!0),onError:()=>{N!==c&&y<At?setTimeout(()=>F(Bt),600):w(!0)}},c),(g||j)&&r.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1 text-muted-foreground",children:[r.jsx(Pe,{size:20}),r.jsx("p",{className:"text-xs",children:l("sectionsEditor.imageField.previewUnavailable")})]}),!p&&!g&&!j&&r.jsx("div",{className:"absolute inset-0 animate-pulse bg-muted/60"}),r.jsx(It,{})]}),!d&&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:b}),M&&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:M})]})]}):r.jsxs("button",{type:"button",onClick:D,className:O("flex w-full flex-col items-center justify-center gap-2 text-sm text-muted-foreground hover:bg-accent hover:text-foreground",d?"h-28":"h-40"),children:[r.jsx(Pe,{size:20}),r.jsx("span",{className:"text-sm font-medium",children:l(ce?"sectionsEditor.imageField.uploading":"sectionsEditor.imageField.dropImageOrClickToBrowse")}),!d&&r.jsx("span",{className:"text-xs text-muted-foreground",children:l("sectionsEditor.imageField.supportedFormatsAndSize")})]}),e[39]=D,e[40]=d,e[41]=M,e[42]=b,e[43]=g,e[44]=p,e[45]=ce,e[46]=i,e[47]=y,e[48]=N,e[49]=S,e[50]=c,e[51]=l,e[52]=j,e[53]=B):B=e[53];let V;e[54]!==le||e[55]!==l?(V=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:l("sectionsEditor.imageField.dropToUpload")})}),e[54]=le,e[55]=l,e[56]=V):V=e[56];let Q;e[57]!==he||e[58]!==A||e[59]!==B||e[60]!==V?(Q=r.jsxs("div",{...he,className:A,children:[B,V]}),e[57]=he,e[58]=A,e[59]=B,e[60]=V,e[61]=Q):Q=e[61];let G;e[62]!==ue?(G=P=>ue(P.target.value),e[62]=ue,e[63]=G):G=e[63];let Y;e[64]!==c?(Y=P=>{P.key==="Escape"&&_(c)},e[64]=c,e[65]=Y):Y=e[65];let W;e[66]!==l?(W=l("sectionsEditor.imageField.urlPlaceholder"),e[66]=l,e[67]=W):W=e[67];let K;e[68]!==o||e[69]!==me||e[70]!==G||e[71]!==Y||e[72]!==W||e[73]!==T?(K=r.jsx(Ye,{id:o,type:"url",value:T,onChange:G,onBlur:me,onKeyDown:Y,placeholder:W,className:"h-9 min-w-0 flex-1"}),e[68]=o,e[69]=me,e[70]=G,e[71]=Y,e[72]=W,e[73]=T,e[74]=K):K=e[74];let H;e[75]!==D||e[76]!==c||e[77]!==l?(H=!c&&r.jsxs(Ne,{type:"button",variant:"outline",size:"sm",onClick:D,className:"h-9 shrink-0",children:[r.jsx(Re,{size:14}),l("sectionsEditor.imageField.browse")]}),e[75]=D,e[76]=c,e[77]=l,e[78]=H):H=e[78];let J;e[79]!==k||e[80]!==c||e[81]!==l?(J=c&&r.jsxs(r.Fragment,{children:[r.jsx(Mt,{value:c,onChange:k}),r.jsx(Ne,{type:"button",variant:"ghost",size:"sm",onClick:()=>k(""),className:"h-9 shrink-0","aria-label":l("sectionsEditor.imageField.removeImage"),children:r.jsx(He,{size:14})})]}),e[79]=k,e[80]=c,e[81]=l,e[82]=J):J=e[82];let X;e[83]!==K||e[84]!==H||e[85]!==J?(X=r.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2",children:[K,H,J]}),e[83]=K,e[84]=H,e[85]=J,e[86]=X):X=e[86];let Z;e[87]!==ve||e[88]!==xe||e[89]!==m||e[90]!==R||e[91]!==k?(Z=R?r.jsx("input",{ref:_e,type:"file",accept:[...Ae].join(","),className:"hidden",onChange:P=>{ve(P.target.files),P.target.value=""}}):r.jsx(et,{open:m,onOpenChange:x,mode:"image",onSelect:P=>k(P),lockedConfigId:xe}),e[87]=ve,e[88]=xe,e[89]=m,e[90]=R,e[91]=k,e[92]=Z):Z=e[92];let de;return e[93]!==z||e[94]!==Q||e[95]!==X||e[96]!==Z?(de=r.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:[z,Q,X,Z]}),e[93]=z,e[94]=Q,e[95]=X,e[96]=Z,e[97]=de):de=e[97],de}function Bt(t){return t+1}function ms(t){const e=U.c(15),{isPending:s,isError:n}=t,a=ee();if(n){let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(ht,{size:13}),e[0]=d):d=e[0];let l;e[1]!==a?(l=a("sandbox.saveStatus.failed"),e[1]=a,e[2]=l):l=e[2];let u;return e[3]!==l?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-destructive",children:[d,l]}),e[3]=l,e[4]=u):u=e[4],u}if(s){let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(We,{className:"size-[13px]"}),e[5]=d):d=e[5];let l;e[6]!==a?(l=a("sandbox.saveStatus.saving"),e[6]=a,e[7]=l):l=e[7];let u;return e[8]!==l?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[d,l]}),e[8]=l,e[9]=u):u=e[9],u}let o;e[10]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(Ke,{size:13}),e[10]=o):o=e[10];let i;e[11]!==a?(i=a("sandbox.saveStatus.saved"),e[11]=a,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{It as C,St as F,us as I,jt as M,cs as N,_t as Q,ds as R,ms as S,yt as a,De as b,wt as c,Ct as d,bt as e,Ft as f,Tt as g,kt as h,fs as i,Et as j,Mt as k,Pt as l,qt as m,$t as s,vt as u};
|
|
1
|
+
import{c as U,r as I,a6 as Ve,eL as Ue,b as ee,m as O,j as r,a7 as Qe,ev as Ge,B as Ne,t as se,I as Ye,h as We,aY as Ke}from"./index-CTMcJAph.js";import{a as Pe}from"./Image01-8jmgxAd8.js";import{s as He}from"./Trash01-hjBWefQQ.js";import{i as Re}from"./Upload01-qGyzp9T6.js";import{r as Je,L as Xe,s as Ze,F as et,i as $e}from"./use-never-published-tdlolbih.js";import{L as Ce}from"./label-trmpdZLi.js";import{T as Se,a as ke,c as Ee}from"./tooltip-BwiBQZRg.js";import{b as Ie}from"./repository-binding--vh_BYpc.js";import{u as tt}from"./chat-context-Bv66eHof.js";import{u as Fe,a6 as st,h as it,b as rt,a7 as nt}from"./site-editor-toast-tb2AMckD.js";import{c as ot}from"./use-organization-settings-CwuyWnwZ.js";import{a as at}from"./SwitchHorizontal01-CxL0NygI.js";import{a as lt,b as ct,P as dt}from"./popover-C8zi00Ue.js";import{S as ft}from"./switch-md0gRiEr.js";import{T as ut,a as mt}from"./toggle-group-Ls4QOte6.js";import{m as pt}from"./match-site-slug-config-B47_xZCi.js";import{u as gt}from"./use-file-configs-DNyK94-h.js";import{u as xt}from"./asset-utils-D3oLKwAE.js";import{i as ht}from"./AlertCircle-CzISmSv-.js";const Oe=I.createContext(null);function cs(t){const e=U.c(3),{children:s}=t,n=tt(),a=Fe(n?.virtualMcpId,n?.currentBranch);let o;return e[0]!==a.kind||e[1]!==s?(o=I.createElement(Oe.Provider,{value:a.kind},s),e[0]=a.kind,e[1]=s,e[2]=o):o=e[2],o}function vt(){const t=U.c(4),e=I.useContext(Oe),{org:s}=Ve(),n=ot("new_blocks_editor"),a=!!s.id;let o;return t[0]!==e||t[1]!==n||t[2]!==a?(o=st({backend:e,hasOrg:a,orgFlag:n}),t[0]=e,t[1]=n,t[2]=a,t[3]=o):o=t[3],o}function yt(){return vt()??!1}function bt(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")),a=Ue(n);if(typeof a=="string")return a;const o=s.map(i=>Ue(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 jt(t){const e=U.c(29),{className:s}=t,n=ee();if(yt()){let c;e[0]!==n?(c=n("sectionsEditor.field.missingRequired"),e[0]=n,e[1]=c):c=e[1];let m;e[2]!==s?(m=O("shrink-0 cursor-help text-destructive",s),e[2]=s,e[3]=m):m=e[3];let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(Qe,{className:"size-3.5"}),e[4]=x):x=e[4];let p;e[5]!==c||e[6]!==m?(p=r.jsx(Se,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":c,className:m,children:x})}),e[5]=c,e[6]=m,e[7]=p):p=e[7];let h;e[8]!==n?(h=n("sectionsEditor.field.missingRequiredTooltip"),e[8]=n,e[9]=h):h=e[9];let g;e[10]!==h?(g=r.jsx(ke,{className:"max-w-56",children:h}),e[10]=h,e[11]=g):g=e[11];let w;return e[12]!==p||e[13]!==g?(w=r.jsxs(Ee,{children:[p,g]}),e[12]=p,e[13]=g,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=O("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(Se,{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 d;e[22]!==n?(d=n("sectionsEditor.field.missingRequiredTooltip"),e[22]=n,e[23]=d):d=e[23];let l;e[24]!==d?(l=r.jsx(ke,{className:"max-w-56",children:d}),e[24]=d,e[25]=l):l=e[25];let u;return e[26]!==f||e[27]!==l?(u=r.jsxs(Ee,{children:[f,l]}),e[26]=f,e[27]=l,e[28]=u):u=e[28],u}const Me=I.createContext({required:!1,invalid:!1});function wt(){return I.useContext(Me)}function ds(t){const e=U.c(6),{required:s,invalid:n,children:a}=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]!==a||e[4]!==o?(i=r.jsx(Me.Provider,{value:o,children:a}),e[3]=a,e[4]=o,e[5]=i):i=e[5],i}function fs(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 Nt="cursor-help underline decoration-dotted decoration-muted-foreground/50 underline-offset-4";function De(t){return Ie(t)?.metadata?.fieldDescriptionTooltips??!1}function Ct(t){const e=U.c(9),{description:s,virtualMcpId:n,children:a}=t,o=De(n);if(!s||!o)return a;let i;e[0]!==a?(i=I.cloneElement(a,{className:O(a.props.className,Nt)}),e[0]=a,e[1]=i):i=e[1];let f;e[2]!==i?(f=r.jsx(Se,{asChild:!0,children:i}),e[2]=i,e[3]=f):f=e[3];let d;e[4]!==s?(d=r.jsx(ke,{className:"max-w-64",children:s}),e[4]=s,e[5]=d):d=e[5];let l;return e[6]!==f||e[7]!==d?(l=r.jsxs(Ee,{delayDuration:300,children:[f,d]}),e[6]=f,e[7]=d,e[8]=l):l=e[8],l}function St(t){const e=U.c(17),{htmlFor:s,label:n,description:a,labelClassName:o,virtualMcpId:i}=t,f=De(i),{required:d,invalid:l}=wt();let u;e[0]!==l||e[1]!==d?(u=d&&l&&r.jsx(jt,{className:"mt-0.5 self-start"}),e[0]=l,e[1]=d,e[2]=u):u=e[2];let c;e[3]!==s||e[4]!==n||e[5]!==o||e[6]!==u?(c=r.jsxs(Ce,{htmlFor:s,className:o,children:[n,u]}),e[3]=s,e[4]=n,e[5]=o,e[6]=u,e[7]=c):c=e[7];const m=c;if(!f){let p;e[8]!==a?(p=a&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:a}),e[8]=a,e[9]=p):p=e[9];let h;return e[10]!==m||e[11]!==p?(h=r.jsxs("div",{className:"space-y-0.5",children:[m,p]}),e[10]=m,e[11]=p,e[12]=h):h=e[12],h}let x;return e[13]!==a||e[14]!==m||e[15]!==i?(x=r.jsx(Ct,{description:a,virtualMcpId:i,children:m}),e[13]=a,e[14]=m,e[15]=i,e[16]=x):x=e[16],x}function kt(t){const e=ee(),s=Ie(t?.virtualMcpId),n=Fe(t?.virtualMcpId,t?.branch),{connection:a}=rt(t?.virtualMcpId),o=nt(n,a);if(s?.metadata?.assetStorageConfigId||!o||!t||n.kind!=="protocol"||!n.describe.assets)return null;const{maxBytes:i}=n.describe.assets,f=d=>`${o}/assets/${encodeURIComponent(d)}`;return async d=>{if(d.size>i)throw new Error(e("sectionsEditor.fileField.tooLarge",{max:`${Math.floor(i/(1024*1024))} MB`}));if(n.describe.readOnly)throw new Error(e("decoServe.upload.readOnly",{name:d.name}));let l;try{l=await fetch(f(d.name),{method:"PUT",signal:Ge(),headers:{"content-type":d.type||"application/octet-stream"},body:d})}catch{throw new Error(e("decoServe.upload.serverGone",{name:d.name}))}const u=await l.json().catch(()=>null);if(!l.ok||typeof u?.path!="string"){const c=u?.error?.message;throw new Error(e("decoServe.upload.failed",{name:d.name,detail:typeof c=="string"?c:`HTTP ${l.status}`}))}return u.path}}function Et(t,e){const s=U.c(6),n=Fe(t?.virtualMcpId,t?.branch);let a;s[0]!==n||s[1]!==t?.previewUrl?(a=n.kind==="protocol"&&n.source==="sandbox"?t?.previewUrl??null:it(n),s[0]=n,s[1]=t?.previewUrl,s[2]=a):a=s[2];const o=a;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 It(){const t=U.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(Re,{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 Tt(t){const e=t.lastIndexOf(".");return e<0||e===t.length-1?"":t.slice(e+1).toLowerCase()}const _t=["low","medium","high","original"];function Le(t){return t==="low"||t==="medium"||t==="high"||t==="original"}function qe(t,e){try{return new URL(t).searchParams.get(e)}catch{const s=Ut(t);for(const n of s){const a=n.indexOf("=");if((a>=0?n.slice(0,a):n)===e)return a>=0?n.slice(a+1):""}return null}}function ze(t,e,s){const n=t.indexOf("#"),a=n>=0?t.slice(n):"",o=n>=0?t.slice(0,n):t,i=o.indexOf("?"),f=i>=0?o.slice(0,i):o,d=(i>=0?o.slice(i+1).split("&"):[]).filter(Boolean).filter(l=>{const u=l.indexOf("=");return(u>=0?l.slice(0,u):l)!==e});return s!==void 0&&d.push(`${e}=${s}`),`${f}${d.length?`?${d.join("&")}`:""}${a}`}function Ut(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 Pt(t){if(!t)return;const e=qe(t,"quality");return Le(e)?e:void 0}function $t(t,e){return ze(t,"quality",e)}function Rt(t){return t?qe(t,"muted")!=="false":!0}function Ot(t,e){return ze(t,"muted",e?void 0:"false")}function Mt(t){const e=U.c(36),{value:s,onChange:n,showMuted:a}=t,o=a===void 0?!1:a,i=ee(),f=I.useId();let d;e[0]!==s?(d=Pt(s),e[0]=s,e[1]=d):d=e[1];const l=d;let u;e[2]!==s?(u=Rt(s),e[2]=s,e[3]=u):u=e[3];const c=u;let m;e[4]!==i?(m=i("sectionsEditor.mediaTransformControls.mediaOptionsLabel"),e[4]=i,e[5]=m):m=e[5];let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(at,{size:14}),e[6]=x):x=e[6];let p;e[7]!==m?(p=r.jsx(lt,{asChild:!0,children:r.jsx(Ne,{type:"button",variant:"outline",size:"sm",className:"h-9 shrink-0","aria-label":m,children:x})}),e[7]=m,e[8]=p):p=e[8];let h;e[9]!==i?(h=i("sectionsEditor.mediaTransformControls.qualityLabel"),e[9]=i,e[10]=h):h=e[10];let g;e[11]!==h?(g=r.jsx(Ce,{className:"text-xs text-muted-foreground",children:h}),e[11]=h,e[12]=g):g=e[12];const w=l??"";let N;e[13]!==n||e[14]!==s?(N=b=>n($t(s,Le(b)?b:void 0)),e[13]=n,e[14]=s,e[15]=N):N=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=_t.map(Dt),e[16]=y):y=e[16];let F;e[17]!==N||e[18]!==w?(F=r.jsx(ut,{type:"single",variant:"outline",size:"sm",value:w,onValueChange:N,children:y}),e[17]=N,e[18]=w,e[19]=F):F=e[19];let v;e[20]!==F||e[21]!==g?(v=r.jsxs("div",{className:"flex flex-col gap-1.5",children:[g,F]}),e[20]=F,e[21]=g,e[22]=v):v=e[22];let C;e[23]!==c||e[24]!==f||e[25]!==n||e[26]!==o||e[27]!==i||e[28]!==s?(C=o&&r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsx(Ce,{htmlFor:f,className:"text-xs text-muted-foreground",children:i("sectionsEditor.mediaTransformControls.mutedLabel")}),r.jsx(ft,{id:f,checked:c,onCheckedChange:b=>n(Ot(s,b))})]}),e[23]=c,e[24]=f,e[25]=n,e[26]=o,e[27]=i,e[28]=s,e[29]=C):C=e[29];let S;e[30]!==v||e[31]!==C?(S=r.jsx(ct,{align:"end",className:"w-auto min-w-52 p-3",children:r.jsxs("div",{className:"flex flex-col gap-3",children:[v,C]})}),e[30]=v,e[31]=C,e[32]=S):S=e[32];let j;return e[33]!==S||e[34]!==p?(j=r.jsxs(dt,{children:[p,S]}),e[33]=S,e[34]=p,e[35]=j):j=e[35],j}function Dt(t){return r.jsx(mt,{value:t,className:"h-8 px-3 text-xs capitalize",children:t},t)}function Lt(t){try{const e=new URL(t);return e.protocol==="http:"||e.protocol==="https:"?e.href:""}catch{return""}}const Ae=new Set(["image/png","image/jpeg","image/gif","image/webp","image/svg+xml","image/avif"]);function qt(t){const e=U.c(26),{siteSlug:s,virtualMcpId:n,onUploaded:a,onNeedsPicker:o,serveUpload:i}=t,f=ee(),l=Ie(n)?.metadata?.assetStorageConfigId,u=!i;let c;e[0]!==u?(c={enabled:u},e[0]=u,e[1]=c):c=e[1];const m=gt(c),x=xt(),[p,h]=I.useState(!1);let g;e[2]!==m.data?.configs?(g=m.data?.configs??[],e[2]=m.data?.configs,e[3]=g):g=e[3];let w;e[4]!==l||e[5]!==s||e[6]!==g?(w=pt(g,s,l),e[4]=l,e[5]=s,e[6]=g,e[7]=w):w=e[7];const y=w?.id??null;let F;e[8]!==m.data?.configs||e[9]!==y||e[10]!==o||e[11]!==a||e[12]!==i||e[13]!==f||e[14]!==x?(F=async function(M){if(!M)return;const $=Array.from(M).filter(zt);if($.length===0){se.error(f("sectionsEditor.imageField.onlyImageFilesAccepted"));return}if(i){try{a(await i($[0]))}catch(T){const _=T;se.error(_ instanceof Error?_.message:f("sectionsEditor.imageField.uploadFailed"))}return}const k=Je(m.data?.configs??[],y,typeof window<"u"?window.localStorage.getItem(Xe):null);if(!k){o();return}try{const T=await x.mutateAsync({configId:k,file:$[0]}),_=Lt(T.publicUrl);if(!_){se.error(f("sectionsEditor.imageField.uploadFailed"));return}a(_),$.length>1&&se.info(f("sectionsEditor.imageField.uploadedWithExtraFilesIgnored",{fileName:$[0].name}))}catch(T){const _=T;se.error(_ instanceof Error?_.message:f("sectionsEditor.imageField.uploadFailed"))}},e[8]=m.data?.configs,e[9]=y,e[10]=o,e[11]=a,e[12]=i,e[13]=f,e[14]=x,e[15]=F):F=e[15];const v=F;let C,S;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=E=>{E.preventDefault(),E.dataTransfer.types.includes("Files")&&h(!0)},S=E=>{E.currentTarget===E.target&&h(!1)},e[16]=C,e[17]=S):(C=e[16],S=e[17]);let j;e[18]!==v?(j={onDragOver:C,onDragLeave:S,onDrop:E=>{E.preventDefault(),E.stopPropagation(),h(!1),v(E.dataTransfer.files)}},e[18]=v,e[19]=j):j=e[19];let b;return e[20]!==v||e[21]!==p||e[22]!==y||e[23]!==j||e[24]!==x.isPending?(b={isDragging:p,isPending:x.isPending,lockedConfigId:y,handleFiles:v,dropProps:j},e[20]=v,e[21]=p,e[22]=y,e[23]=j,e[24]=x.isPending,e[25]=b):b=e[25],b}function zt(t){return Ae.has(t.type||"")}const At=3;function us(t){const e=U.c(98),{schema:s,value:n,onChange:a,path:o,label:i,sandbox:f,compact:d}=t,l=ee();let u;e[0]!==n?(u=bt(n),e[0]=n,e[1]=u):u=e[1];const c=u,[m,x]=I.useState(!1),[p,h]=I.useState(!1),[g,w]=I.useState(!1),N=Et(f,c),[y,F]=I.useState(0);let v;e[2]!==y||e[3]!==N?(v=y>0?`${N}${N.includes("?")?"&":"?"}retry=${y}`:N,e[2]=y,e[3]=N,e[4]=v):v=e[4];let C;e[5]!==v?(C=Ze(v),e[5]=v,e[6]=C):C=e[6];const S=C,j=!!c&&!S;let b,E;e[7]!==c?(b=c?Ft(c):"",E=b?Tt(b):"",e[7]=c,e[8]=b,e[9]=E):(b=e[8],E=e[9]);const M=E;let $;e[10]!==a?($=function(fe){h(!1),w(!1),F(0),a(fe)},e[10]=a,e[11]=$):$=e[11];const k=$,[T,_]=I.useState(c),[Be,Te]=I.useState(c);Be!==c&&(Te(c),_(c));let ie;e[12]!==k||e[13]!==c?(ie=function(fe){_(fe);const te=fe.trim();te&&!$e(te)||te!==c&&(Te(te),k(te))},e[12]=k,e[13]=c,e[14]=ie):ie=e[14];const ue=ie;let re;e[15]!==c||e[16]!==T?(re=function(){T.trim()&&!$e(T)&&_(c)},e[15]=c,e[16]=T,e[17]=re):re=e[17];const me=re,R=kt(f),_e=I.useRef(null);let ne;e[18]!==R?(ne=()=>R?_e.current?.click():x(!0),e[18]=R,e[19]=ne):ne=e[19];const D=ne,pe=f?.siteSlug,ge=f?.virtualMcpId;let oe;e[20]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>x(!0),e[20]=oe):oe=e[20];let ae;e[21]!==R||e[22]!==k||e[23]!==ge||e[24]!==pe?(ae={siteSlug:pe,virtualMcpId:ge,onUploaded:k,onNeedsPicker:oe,serveUpload:R},e[21]=R,e[22]=k,e[23]=ge,e[24]=pe,e[25]=ae):ae=e[25];const{isDragging:le,isPending:ce,lockedConfigId:xe,dropProps:he,handleFiles:ve}=qt(ae),ye=!i&&"hidden";let L;e[26]!==ye?(L=O("min-w-0",ye),e[26]=ye,e[27]=L):L=e[27];const be=f?.virtualMcpId;let q;e[28]!==i||e[29]!==o||e[30]!==s.description||e[31]!==be?(q=r.jsx(St,{htmlFor:o,label:i,description:s.description,labelClassName:"text-muted-foreground",virtualMcpId:be}),e[28]=i,e[29]=o,e[30]=s.description,e[31]=be,e[32]=q):q=e[32];let z;e[33]!==L||e[34]!==q?(z=r.jsx("div",{className:L,children:q}),e[33]=L,e[34]=q,e[35]=z):z=e[35];const je=le&&"border-primary ring-2 ring-primary/30",we=ce&&"pointer-events-none opacity-60";let A;e[36]!==je||e[37]!==we?(A=O("group relative w-full overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-xl))] border shadow-edge border-border/60 bg-muted/30 transition",je,we),e[36]=je,e[37]=we,e[38]=A):A=e[38];let B;e[39]!==D||e[40]!==d||e[41]!==M||e[42]!==b||e[43]!==g||e[44]!==p||e[45]!==ce||e[46]!==i||e[47]!==y||e[48]!==N||e[49]!==S||e[50]!==c||e[51]!==l||e[52]!==j?(B=c?r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:D,"aria-label":l("sectionsEditor.imageField.replaceImage"),className:O("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]",d?"h-28":"h-40"),children:[!g&&!j&&r.jsx("img",{src:S,alt:i,className:O("h-full w-full object-contain transition-opacity",!p&&"opacity-0"),onLoad:()=>h(!0),onError:()=>{N!==c&&y<At?setTimeout(()=>F(Bt),600):w(!0)}},c),(g||j)&&r.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1 text-muted-foreground",children:[r.jsx(Pe,{size:20}),r.jsx("p",{className:"text-xs",children:l("sectionsEditor.imageField.previewUnavailable")})]}),!p&&!g&&!j&&r.jsx("div",{className:"absolute inset-0 animate-pulse bg-muted/60"}),r.jsx(It,{})]}),!d&&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:b}),M&&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:M})]})]}):r.jsxs("button",{type:"button",onClick:D,className:O("flex w-full flex-col items-center justify-center gap-2 text-sm text-muted-foreground hover:bg-accent hover:text-foreground",d?"h-28":"h-40"),children:[r.jsx(Pe,{size:20}),r.jsx("span",{className:"text-sm font-medium",children:l(ce?"sectionsEditor.imageField.uploading":"sectionsEditor.imageField.dropImageOrClickToBrowse")}),!d&&r.jsx("span",{className:"text-xs text-muted-foreground",children:l("sectionsEditor.imageField.supportedFormatsAndSize")})]}),e[39]=D,e[40]=d,e[41]=M,e[42]=b,e[43]=g,e[44]=p,e[45]=ce,e[46]=i,e[47]=y,e[48]=N,e[49]=S,e[50]=c,e[51]=l,e[52]=j,e[53]=B):B=e[53];let V;e[54]!==le||e[55]!==l?(V=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:l("sectionsEditor.imageField.dropToUpload")})}),e[54]=le,e[55]=l,e[56]=V):V=e[56];let Q;e[57]!==he||e[58]!==A||e[59]!==B||e[60]!==V?(Q=r.jsxs("div",{...he,className:A,children:[B,V]}),e[57]=he,e[58]=A,e[59]=B,e[60]=V,e[61]=Q):Q=e[61];let G;e[62]!==ue?(G=P=>ue(P.target.value),e[62]=ue,e[63]=G):G=e[63];let Y;e[64]!==c?(Y=P=>{P.key==="Escape"&&_(c)},e[64]=c,e[65]=Y):Y=e[65];let W;e[66]!==l?(W=l("sectionsEditor.imageField.urlPlaceholder"),e[66]=l,e[67]=W):W=e[67];let K;e[68]!==o||e[69]!==me||e[70]!==G||e[71]!==Y||e[72]!==W||e[73]!==T?(K=r.jsx(Ye,{id:o,type:"url",value:T,onChange:G,onBlur:me,onKeyDown:Y,placeholder:W,className:"h-9 min-w-0 flex-1"}),e[68]=o,e[69]=me,e[70]=G,e[71]=Y,e[72]=W,e[73]=T,e[74]=K):K=e[74];let H;e[75]!==D||e[76]!==c||e[77]!==l?(H=!c&&r.jsxs(Ne,{type:"button",variant:"outline",size:"sm",onClick:D,className:"h-9 shrink-0",children:[r.jsx(Re,{size:14}),l("sectionsEditor.imageField.browse")]}),e[75]=D,e[76]=c,e[77]=l,e[78]=H):H=e[78];let J;e[79]!==k||e[80]!==c||e[81]!==l?(J=c&&r.jsxs(r.Fragment,{children:[r.jsx(Mt,{value:c,onChange:k}),r.jsx(Ne,{type:"button",variant:"ghost",size:"sm",onClick:()=>k(""),className:"h-9 shrink-0","aria-label":l("sectionsEditor.imageField.removeImage"),children:r.jsx(He,{size:14})})]}),e[79]=k,e[80]=c,e[81]=l,e[82]=J):J=e[82];let X;e[83]!==K||e[84]!==H||e[85]!==J?(X=r.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2",children:[K,H,J]}),e[83]=K,e[84]=H,e[85]=J,e[86]=X):X=e[86];let Z;e[87]!==ve||e[88]!==xe||e[89]!==m||e[90]!==R||e[91]!==k?(Z=R?r.jsx("input",{ref:_e,type:"file",accept:[...Ae].join(","),className:"hidden",onChange:P=>{ve(P.target.files),P.target.value=""}}):r.jsx(et,{open:m,onOpenChange:x,mode:"image",onSelect:P=>k(P),lockedConfigId:xe}),e[87]=ve,e[88]=xe,e[89]=m,e[90]=R,e[91]=k,e[92]=Z):Z=e[92];let de;return e[93]!==z||e[94]!==Q||e[95]!==X||e[96]!==Z?(de=r.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:[z,Q,X,Z]}),e[93]=z,e[94]=Q,e[95]=X,e[96]=Z,e[97]=de):de=e[97],de}function Bt(t){return t+1}function ms(t){const e=U.c(15),{isPending:s,isError:n}=t,a=ee();if(n){let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(ht,{size:13}),e[0]=d):d=e[0];let l;e[1]!==a?(l=a("sandbox.saveStatus.failed"),e[1]=a,e[2]=l):l=e[2];let u;return e[3]!==l?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-destructive",children:[d,l]}),e[3]=l,e[4]=u):u=e[4],u}if(s){let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(We,{className:"size-[13px]"}),e[5]=d):d=e[5];let l;e[6]!==a?(l=a("sandbox.saveStatus.saving"),e[6]=a,e[7]=l):l=e[7];let u;return e[8]!==l?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[d,l]}),e[8]=l,e[9]=u):u=e[9],u}let o;e[10]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(Ke,{size:13}),e[10]=o):o=e[10];let i;e[11]!==a?(i=a("sandbox.saveStatus.saved"),e[11]=a,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{It as C,St as F,us as I,jt as M,cs as N,_t as Q,ds as R,ms as S,yt as a,De as b,wt as c,Ct as d,bt as e,Ft as f,Tt as g,kt as h,fs as i,Et as j,Mt as k,Pt as l,qt as m,$t as s,vt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aH as s,cp as e,aI as a,cq as d,bx as l}from"./index-
|
|
1
|
+
import{aH as s,cp as e,aI as a,cq as d,bx as l}from"./index-CTMcJAph.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 g(i,n){const r=i?.[n];return h.has(n)?r!==!1:r===!0}function m(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,m as a,c as b,g as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aH as r,dA as p,dy as _,aI as n,bx as o,cq as m}from"./index-
|
|
1
|
+
import{aH as r,dA as p,dy as _,aI as n,bx as o,cq as m}from"./index-CTMcJAph.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,c4 as T,c0 as ce,j as b,c6 as _,ck as ae,e1 as O,c7 as C,ce as P,c8 as ie,c as F,m as $}from"./index-Co6rR0gn.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),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[A,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,W]=d.useState(!1),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}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=v(J,o),a=d.useRef(null),c=T(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=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(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(V,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=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(Z,{"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"))})})}),Z=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=B(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(me,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=B(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=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 k="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=v(k,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=k;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=v(k,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function B(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] 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(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
1
|
+
import{r as d,c4 as T,c0 as ce,j as b,c6 as _,ck as ae,e1 as O,c7 as C,ce as P,c8 as ie,c as F,m as $}from"./index-CTMcJAph.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),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[A,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,W]=d.useState(!1),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}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=v(J,o),a=d.useRef(null),c=T(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=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(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(V,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=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(Z,{"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"))})})}),Z=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=B(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(me,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=B(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=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 k="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=v(k,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=k;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=v(k,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function B(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] 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(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,j as a,bW as j,h as I,bX as S,bY as b}from"./index-
|
|
1
|
+
import{c as f,j as a,bW as j,h as I,bX as S,bY as b}from"./index-CTMcJAph.js";import{i as g}from"./SearchMd-BvUkn3rx.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,b5 as M}from"./index-
|
|
1
|
+
import{c as K,r as C,m as B,j as a,b5 as M}from"./index-CTMcJAph.js";import{i as I}from"./SearchMd-BvUkn3rx.js";import{I as O}from"./icon-button-SEPOUIsz.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,az as d,b as j,j as i}from"./index-
|
|
1
|
+
import{c as x,az as d,b as j,j as i}from"./index-CTMcJAph.js";import{t as E}from"./Users01-CqdtHmSR.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,hs as F,R as k,r as y,e0 as L,B as D,az as O,ah as T,D as B,v as R,w as A,x as I,aU as q,I as _,y as V,t as z,gh as H}from"./index-
|
|
1
|
+
import{c as j,b as N,j as s,n as C,hs as F,R as k,r as y,e0 as L,B as D,az as O,ah as T,D as B,v as R,w as A,x as I,aU as q,I as _,y as V,t as z,gh as H}from"./index-CTMcJAph.js";import{i as U}from"./AlertCircle-CzISmSv-.js";import{s as G}from"./Plus-RCDHml3m.js";import{t as J}from"./Users01-CqdtHmSR.js";import{E as K}from"./empty-state-BkUMxsIo.js";import{L as w}from"./label-trmpdZLi.js";import{S as M,b as Q,a as W,d as X,c as P}from"./select-DPgeUwK8.js";import{T as Y}from"./textarea-CpsIhOMc.js";import{u as Z,a as ee}from"./use-secrets-BrD_3u0D.js";import{R as te}from"./require-capability-BAfns9Aj.js";import"./index-BdQq_4o_.js";import"./index-CeH1uymC.js";import"./ChevronDown-fzLgfNMN.js";import"./ChevronUp-b-VOSMPT.js";import"./access-gate-BRbA9z61.js";import"./capability-load-error-B2nGOB8U.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(U,{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(T,{size:16,className:"text-muted-foreground"})}),e[0]=i):i=e[0];let c;e[1]!==r.name?(c=s.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=c):c=e[2];let n;e[3]!==r.scope?(n=s.jsx(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(T,{}),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 E({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(W,{})}),s.jsxs(X,{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(Y,{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(E,{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(E,{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 ze(){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{ze as default};
|
package/dist/client/assets/{section-array-field-jF8nhKtJ.js → section-array-field-BYNGi1SJ.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bB as g,bA as E,f9 as w,eQ as L,fa as A,fb as y,fc as j,eL as d,fd as P,fe as T,ff as k,fg as D,fh as B,fi as R,bn as x,fj as C,fk as K}from"./index-
|
|
1
|
+
import{bB as g,bA as E,f9 as w,eQ as L,fa as A,fb as y,fc as j,eL as d,fd as P,fe as T,ff as k,fg as D,fh as B,fi as R,bn as x,fj as C,fk as K}from"./index-CTMcJAph.js";import{z as I,r as F,y as U,a0 as W,aa as $}from"./blocks-tab-states-B8JNI9rP.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 N(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 H(e,r,t){if(!r)return[];const n=[];return N(e,r,(a,o)=>{if(a.__resolveType!==r||!p(a,e,t))return;const s=Q(o);n.push({...G(o),...s?{variant:s}:{}})}),n}function Q(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 J(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 J(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=x(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(!B(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 H(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,J as x,S as y,ge as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as i}from"./File02-
|
|
1
|
+
import{s as i}from"./File02-DVaBtYaE.js";import{dO as e}from"./index-CTMcJAph.js";import{a as s}from"./UserSquare-ByLgJRcg.js";import{aE as n}from"./agent-icon-BDoJ39oK.js";import{a as o}from"./UserCheck01-DZjyuuBK.js";const r=["general","views","connections","repository","site"],y={general:{icon:o,titleKey:"virtualMcp.settings.general.title",descriptionKey:"virtualMcp.settings.general.description"},views:{icon:s,titleKey:"virtualMcp.settings.views.title",descriptionKey:"virtualMcp.settings.views.description"},connections:{icon:n,titleKey:"virtualMcp.settings.connections.title",descriptionKey:"virtualMcp.settings.connections.description"},repository:{icon:e,titleKey:"virtualMcp.settings.repository.title",descriptionKey:"virtualMcp.settings.repository.description"},site:{icon:i,titleKey:"virtualMcp.settings.site.title",descriptionKey:"virtualMcp.settings.site.description"}};function v(t){return!!t&&r.includes(t)}export{y as P,r as a,v as i};
|