decocms 4.593.0 → 4.594.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BPb6lfDc.js → AlertCircle-CngNmW3n.js} +1 -1
- package/dist/client/assets/{AreaChart-Yh5pBNgF.js → AreaChart-w2QCUzTm.js} +1 -1
- package/dist/client/assets/{ArrowLeft-D_px05Ip.js → ArrowLeft-7wIIyF4Y.js} +1 -1
- package/dist/client/assets/{ArrowRight-DYc-7xj5.js → ArrowRight-Dyuh-rXZ.js} +1 -1
- package/dist/client/assets/{ArrowUp-bsUZSt57.js → ArrowUp-C9hRfWJJ.js} +1 -1
- package/dist/client/assets/{BookOpen01-CKzuPfPT.js → BookOpen01-Bov9QL4X.js} +1 -1
- package/dist/client/assets/{CartesianChart-8sA8UDc5.js → CartesianChart-DZFTbe0Q.js} +1 -1
- package/dist/client/assets/{CategoricalChart-D0wEIkFu.js → CategoricalChart-BJA3WMzp.js} +1 -1
- package/dist/client/assets/{CheckCircle-Dvda272I.js → CheckCircle-C0mDI2jO.js} +1 -1
- package/dist/client/assets/{ChevronDown-C0zFtKr8.js → ChevronDown-Cz82ih9S.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BtbkxpS7.js → ChevronSelectorVertical-B_wf9OPd.js} +1 -1
- package/dist/client/assets/{ChevronUp-CHkdbh-i.js → ChevronUp-CLsy4_cr.js} +1 -1
- package/dist/client/assets/{CreditCard01-BnEtKIxX.js → CreditCard01-C7XdJQOf.js} +1 -1
- package/dist/client/assets/{Eye-CE9bd3Ra.js → Eye-BoMcImel.js} +1 -1
- package/dist/client/assets/{File02-OGn6eCfs.js → File02-BmbcQ1JX.js} +1 -1
- package/dist/client/assets/{Fingerprint04-ZnmHU3Kp.js → Fingerprint04-CeWGcIpe.js} +1 -1
- package/dist/client/assets/{Globe04-BK5-p2nj.js → Globe04-_51WnfFJ.js} +1 -1
- package/dist/client/assets/{Image01-Do_f-fPi.js → Image01-nL5rafgN.js} +1 -1
- package/dist/client/assets/{Key01-C2Ozqf6q.js → Key01-DPEcpDw6.js} +1 -1
- package/dist/client/assets/{LayoutLeft-tXOkIxzs.js → LayoutLeft-DFrTynS3.js} +1 -1
- package/dist/client/assets/{LinkBroken01-sFiApfPs.js → LinkBroken01-BPaKcMJ1.js} +1 -1
- package/dist/client/assets/{MessageCircle01-LN8Gr1lL.js → MessageCircle01-DEwhGd-N.js} +1 -1
- package/dist/client/assets/{Minus-vz8sJtmc.js → Minus-CZtTY14n.js} +1 -1
- package/dist/client/assets/{Monitor01-Ctq4Y9xp.js → Monitor01-Dzk9r8YI.js} +1 -1
- package/dist/client/assets/{Play-B5OMs0GO.js → Play-BNkIfSsq.js} +1 -1
- package/dist/client/assets/{Plus-KLH-MPJh.js → Plus-WQeLSh07.js} +1 -1
- package/dist/client/assets/{ReferenceLine-Hl32My8w.js → ReferenceLine-Kl_nxn9t.js} +1 -1
- package/dist/client/assets/{SearchMd-1p8IP99o.js → SearchMd-CrM5HGUz.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BZ5p5Jaw.js → ShoppingBag01-Dvi8noNw.js} +1 -1
- package/dist/client/assets/{Sun-8QBdDNyc.js → Sun-BUSaNVU-.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BRSeU65r.js → SwitchHorizontal01-HaaMuIs0.js} +1 -1
- package/dist/client/assets/{Tool01-CIkfFpNs.js → Tool01-9Nk8XcOI.js} +1 -1
- package/dist/client/assets/{Tooltip-B9ptxG-X.js → Tooltip--i_yceGL.js} +1 -1
- package/dist/client/assets/{Trash01-1e348d5z.js → Trash01-By8obgKt.js} +1 -1
- package/dist/client/assets/{TrendUp01-Sag3n7qI.js → TrendUp01-D-BYwryf.js} +1 -1
- package/dist/client/assets/{Upload01-DQiq1N5L.js → Upload01-BPnZnmHF.js} +1 -1
- package/dist/client/assets/{UserCheck01-Dq2vpnim.js → UserCheck01-CuByTN5F.js} +1 -1
- package/dist/client/assets/{UserSquare-BAlzvt_y.js → UserSquare-T90Jaoc-.js} +1 -1
- package/dist/client/assets/{Users01-CJNRoJXK.js → Users01-D1-vaLa3.js} +1 -1
- package/dist/client/assets/{XClose-CQjSvos9.js → XClose-Bomoew3H.js} +1 -1
- package/dist/client/assets/{Zap-BbT-W69e.js → Zap-lo-lOcPp.js} +1 -1
- package/dist/client/assets/{access-gate-BwaSQQ2b.js → access-gate-D9gT0mCZ.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-b9bCaaJ-.js → add-connection-dialog-Bn6L9Ywx.js} +1 -1
- package/dist/client/assets/agent-app-BBl0rE0n.js +1 -0
- package/dist/client/assets/{agent-assets-epUkCzig.js → agent-assets-BLuZ1J0l.js} +1 -1
- package/dist/client/assets/{agent-automation-DN5QlWy_.js → agent-automation-C0jF6GoO.js} +1 -1
- package/dist/client/assets/{agent-automations-DeGcvAoe.js → agent-automations-CIknlYgn.js} +1 -1
- package/dist/client/assets/agent-blog-Dz0ZGfFq.js +2 -0
- package/dist/client/assets/agent-blog-post-r0FRVJ6G.js +2 -0
- package/dist/client/assets/{agent-calendar-EBTKBv82.js → agent-calendar-eiAtEeXX.js} +1 -1
- package/dist/client/assets/{agent-capabilities-Dsy9OzBC.js → agent-capabilities-DWZ6HVp_.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-B2TM-6qo.js → agent-connect-sources-tGjfqQgF.js} +1 -1
- package/dist/client/assets/agent-deck-Bhm8TGFo.js +1 -0
- package/dist/client/assets/{agent-e2e-DMK6Z36v.js → agent-e2e-ba5rV3St.js} +1 -1
- package/dist/client/assets/agent-experiments-D8dPEPBA.js +1 -0
- package/dist/client/assets/agent-file-n_x6LXzO.js +1 -0
- package/dist/client/assets/{agent-hosting-DOLRQkiF.js → agent-hosting-D6vOkjJV.js} +1 -1
- package/dist/client/assets/{agent-icon-CFsULo4q.js → agent-icon-zvo6Zsex.js} +1 -1
- package/dist/client/assets/agent-library-BM2Fah9h.js +1 -0
- package/dist/client/assets/agent-library-file-BO40iakQ.js +1 -0
- package/dist/client/assets/agent-overview-CJRKK7hh.js +1 -0
- package/dist/client/assets/agent-releases-CjP_903O.js +3 -0
- package/dist/client/assets/agent-settings-CE2XV9z9.js +1 -0
- package/dist/client/assets/{agent-site-editor-BiguEz5z.js → agent-site-editor-CRCOwi7y.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-1w7lcxGQ.js +2 -0
- package/dist/client/assets/agent-site-editor-content-BU4N-bBf.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-D9XYlGea.js +1 -0
- package/dist/client/assets/agent-view-B4jYgL5h.js +1 -0
- package/dist/client/assets/{agent-view-guard-BRen2fDa.js → agent-view-guard-DupPwYUR.js} +1 -1
- package/dist/client/assets/{ai-providers-X4uIftAC.js → ai-providers-P9lSOFin.js} +1 -1
- package/dist/client/assets/{alert-D6c8UL8s.js → alert-QfzOpdUg.js} +1 -1
- package/dist/client/assets/{analytics-sections-BeagNbn2.js → analytics-sections-at8BigEj.js} +1 -1
- package/dist/client/assets/api-keys-BoLbPekZ.js +1 -0
- package/dist/client/assets/{api-keys-Bhaq6l4m.js → api-keys-yj-YvHdL.js} +1 -1
- package/dist/client/assets/app-editor-CALR-Eh0.js +1 -0
- package/dist/client/assets/{asset-utils-DedHJB9N.js → asset-utils-BDYUvtkF.js} +1 -1
- package/dist/client/assets/{auth-WUI0GELm.js → auth--2gxCib9.js} +1 -1
- package/dist/client/assets/{auth-catchall-36sTseza.js → auth-catchall-BwHg1hCN.js} +1 -1
- package/dist/client/assets/{auth-entry-BtvDZBee.js → auth-entry-8MjIvWkA.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DbgIe7Q7.js → auth-split-layout-DP2m0wm-.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-D7yFnk3v.js → authenticate-and-persist-oauth-GGQFCWKI.js} +1 -1
- package/dist/client/assets/{automation-list-row-B-bTXdxL.js → automation-list-row-BJoBOS8m.js} +1 -1
- package/dist/client/assets/{automation-runs-DTOCdqSY.js → automation-runs-ComF4nUM.js} +1 -1
- package/dist/client/assets/{automations-BXXmJoq9.js → automations-C5fxNUIr.js} +1 -1
- package/dist/client/assets/{badge-xkOOGTR2.js → badge-Di6qp_17.js} +1 -1
- package/dist/client/assets/{block-document-ClS1Gx3q.js → block-document-D7KablrH.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-BOiyLqjl.js → blocks-preview-workspace-context-JYcUL0TS.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Dgkd6bcn.js → blocks-tab-states-D8VyxdkW.js} +1 -1
- package/dist/client/assets/blog-preview-url-DwcMPB8a.js +1 -0
- package/dist/client/assets/blog-schema-Dhm1FJA9.js +1 -0
- package/dist/client/assets/blog-source-gate-B93Jk1n3.js +1 -0
- package/dist/client/assets/{blog-view-gate-DYONh8sE.js → blog-view-gate-BDjHkxlS.js} +1 -1
- package/dist/client/assets/{buckets-W8OuOQja.js → buckets-DAeP-NAt.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-7R1He4iw.js → build-improve-prompt-doc-WLZ-Q0Fx.js} +1 -1
- package/dist/client/assets/{calendar-CCy2brqO.js → calendar-CqkLsAo9.js} +1 -1
- package/dist/client/assets/{capability-load-error-74rIpav9.js → capability-load-error-j4JpxktV.js} +1 -1
- package/dist/client/assets/category-editor-BblvA1zP.js +1 -0
- package/dist/client/assets/category-tree-DSsAlLjn.js +18 -0
- package/dist/client/assets/{chart-DVwx0iDS.js → chart-BZy9kWyI.js} +1 -1
- package/dist/client/assets/{chat-context-Dk_Ebz6D.js → chat-context-CxkYg5uT.js} +1 -1
- package/dist/client/assets/{chat-draft-x-F0ZPWu.js → chat-draft-DzaoNZT_.js} +1 -1
- package/dist/client/assets/{checkbox-DR00CmJr.js → checkbox-C-dWRGEo.js} +1 -1
- package/dist/client/assets/{choose-editor-3geZkU-m.js → choose-editor-DS4c61th.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CX_XFx5r.js → cli-auth-success-DV77yJjs.js} +1 -1
- package/dist/client/assets/cms-settings-editor-DaqJeGro.js +1 -0
- package/dist/client/assets/{cms-store-drafts-BdqXOATK.js → cms-store-drafts-5dkWWhlw.js} +1 -1
- package/dist/client/assets/{collapsible-C5AFdLwb.js → collapsible-BSD-rIyq.js} +1 -1
- package/dist/client/assets/{collection-detail-DJYxfZho.js → collection-detail-wkxjhC55.js} +1 -1
- package/dist/client/assets/{collection-display-button-BS2sbab3.js → collection-display-button-JBmYQ-27.js} +1 -1
- package/dist/client/assets/{collection-search-ugxEd4a5.js → collection-search-BpNjeFlC.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-omwG60bs.js → collection-table-wrapper-BmrrNnjL.js} +1 -1
- package/dist/client/assets/{collection-tabs-BsiuG_yk.js → collection-tabs-CmuugrOY.js} +1 -1
- package/dist/client/assets/{combobox-BYBZebi0.js → combobox-D_fSr7_C.js} +1 -1
- package/dist/client/assets/{command-CRJnywSm.js → command-CwP4XJhp.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-C5X6hxKV.js → companion-mcps-section-CG0lncr5.js} +1 -1
- package/dist/client/assets/{config-Br1Io2is.js → config-4NBdyaeh.js} +1 -1
- package/dist/client/assets/{connect-BvcW8HFx.js → connect-ChCcHtpb.js} +1 -1
- package/dist/client/assets/{connect-key-Bng8UgOW.js → connect-key-CJ6TvBP8.js} +1 -1
- package/dist/client/assets/{connect-layout-BK-aWbrg.js → connect-layout-DTpwfpPI.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-D8TZSkBE.js → connect-source-dialog-_ChBZ2Vd.js} +1 -1
- package/dist/client/assets/{connection-C7PBWSJ2.js → connection-DezKWiQc.js} +1 -1
- package/dist/client/assets/{connection-card-DbjUpBUS.js → connection-card-CxiJ1Nzx.js} +1 -1
- package/dist/client/assets/{connection-detail-FZzRV6Ym.js → connection-detail-CYCmhAUL.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-tAcDvyB7.js → connection-form-helpers-UXeTmEmu.js} +1 -1
- package/dist/client/assets/{connection-slug-xMtStNjP.js → connection-slug-DWaKdRBx.js} +1 -1
- package/dist/client/assets/{connections-IQMsafFW.js → connections-Bc9bEkOC.js} +1 -1
- package/dist/client/assets/{content-tab-Dby-qF-f.js → content-tab-ChWZ09d_.js} +4 -4
- package/dist/client/assets/{context-jsYDuqDI.js → context-1XEBvNOV.js} +1 -1
- package/dist/client/assets/{context-menu-Cvn-dR-4.js → context-menu-haKBWhFK.js} +1 -1
- package/dist/client/assets/{context-shell-Bm22btDj.js → context-shell-DApzBqkB.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-CXfqVYbt.js → create-organization-dialog-BXvqxw2I.js} +1 -1
- package/dist/client/assets/{daily-pulse-CxBxkzGT.js → daily-pulse-Dpm7YKyw.js} +1 -1
- package/dist/client/assets/{delete-copy-tGyXeEYr.js → delete-copy-L_pixdww.js} +2 -2
- package/dist/client/assets/{device-hint-D3KIwRP_.js → device-hint-DfNddHqx.js} +1 -1
- package/dist/client/assets/{discover-UPogBeQB.js → discover-CDF3_FOL.js} +1 -1
- package/dist/client/assets/{domain-settings-DarbfYc3.js → domain-settings-SR0-GydA.js} +1 -1
- package/dist/client/assets/{drawer-CQosC7Hh.js → drawer-CmJXwXhP.js} +1 -1
- package/dist/client/assets/{editor-classes-CiUorYg6.js → editor-classes-C_k7lpha.js} +1 -1
- package/dist/client/assets/{editor-DnZdk2c2.js → editor-stZYyxdg.js} +1 -1
- package/dist/client/assets/{empty-state-D4GKvYHp.js → empty-state-BP4JRDLR.js} +1 -1
- package/dist/client/assets/{empty-state-B5kfNSn2.js → empty-state-DlNabApi.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-BNwFp10h.js → experiments-tab-choice-DZp7Pnbi.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BwsA-RYq.js → extract-connection-data-CzqnFJl9.js} +1 -1
- package/dist/client/assets/{feature-gate-WGXGW3TJ.js → feature-gate-C_eiJnqB.js} +1 -1
- package/dist/client/assets/{feature-paywall-CXj-cCjT.js → feature-paywall-CBOn7yV2.js} +1 -1
- package/dist/client/assets/{file-explorer-CQ0OZXxU.js → file-explorer-BrZ-CG01.js} +1 -1
- package/dist/client/assets/{file-preview-CimYREH1.js → file-preview-PTP8hmPn.js} +1 -1
- package/dist/client/assets/{file-share-button-BAqDjZ0D.js → file-share-button-BegoNidK.js} +1 -1
- package/dist/client/assets/{file-type-icon-Cst2WgHg.js → file-type-icon-M87xyG0K.js} +1 -1
- package/dist/client/assets/{folder-icon-h8_LtFFJ.js → folder-icon-Dcx7O7hC.js} +1 -1
- package/dist/client/assets/{form-Bmlz7qRb.js → form-CJTkS9yd.js} +1 -1
- package/dist/client/assets/{frame-navigation-DiMr25uz.js → frame-navigation-BZ8W_2dq.js} +1 -1
- package/dist/client/assets/{gateway-client-Dcj5rv8f.js → gateway-client-zPU6BhGI.js} +1 -1
- package/dist/client/assets/{general-BTp6LTq7.js → general-CvWpV1rC.js} +1 -1
- package/dist/client/assets/{github-icon-HoxHOYky.js → github-icon-D3IlXxDN.js} +1 -1
- package/dist/client/assets/{held-block-view-CB9_UtVc.js → held-block-view-CEue5DyE.js} +1 -1
- package/dist/client/assets/{home-CTP0vpaw.js → home-CBhOYnUz.js} +1 -1
- package/dist/client/assets/{home-overview-oJuOP6Jj.js → home-overview-nMDmkNSh.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-DipRdTAf.js → hosted-reconcile-CC64pDxA.js} +1 -1
- package/dist/client/assets/{icon-button-CkP-MdlY.js → icon-button-C9InOUgM.js} +1 -1
- package/dist/client/assets/{index-oZBvLpfd.js → index-B6vsr4i3.js} +1 -1
- package/dist/client/assets/{index-CpqnzQ6X.js → index-B8ZkvDME.js} +1 -1
- package/dist/client/assets/{index-ztFBZP-a.js → index-BIBRRoOW.js} +1 -1
- package/dist/client/assets/{index-C4-rqYj_.js → index-BPvzZzln.js} +1 -1
- package/dist/client/assets/{index-D4nZeJZF.js → index-C-bUN66r.js} +1 -1
- package/dist/client/assets/index-CFbcObvG.css +1 -0
- package/dist/client/assets/{index-Dj_uCaww.js → index-CY-w4kYr.js} +1 -1
- package/dist/client/assets/{index-DGcnGUGR.js → index-Cdf0nHrK.js} +1 -1
- package/dist/client/assets/{index-C5wldXHS.js → index-CiG92g6c.js} +1 -1
- package/dist/client/assets/{index-CtgoU6en.js → index-CnFOA69K.js} +1 -1
- package/dist/client/assets/{index-fjBXVTkP.js → index-CyK1A-PV.js} +1 -1
- package/dist/client/assets/{index-Cy5OtK8P.js → index-D2FJssDQ.js} +1 -1
- package/dist/client/assets/{index-B7BDvGS9.js → index-Dy0Aphio.js} +1 -1
- package/dist/client/assets/{index-CrMNCOay.js → index-OaQ5Wven.js} +1 -1
- package/dist/client/assets/{index-DFEtjxfd.js → index-g0fJQ3Ik.js} +1 -1
- package/dist/client/assets/{index-jEofb67j.js → index-hl8iFWLs.js} +1 -1
- package/dist/client/assets/{index-DCNDjBOm.js → index-kPKwu4SB.js} +1 -1
- package/dist/client/assets/{index-BGvfgBXQ.js → index-mb-jxjEy.js} +8 -8
- package/dist/client/assets/{index-redirect-DTMlUMlL.js → index-redirect-Cc2j63PQ.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CjHha6VI.js → infiniteQueryObserver-Dfcni9SV.js} +1 -1
- package/dist/client/assets/{infra-billing-R5GG28fc.js → infra-billing-BYZXmRJD.js} +1 -1
- package/dist/client/assets/{input-CIXcgL8B.js → input-BUC-cGry.js} +3 -3
- package/dist/client/assets/{input-CWx7kP2y.js → input-DjfzIqsk.js} +1 -1
- package/dist/client/assets/{integration-icon-nO6TvSsO.js → integration-icon-DRbGJhQo.js} +1 -1
- package/dist/client/assets/item-actions-CDU7n7Cr.js +1 -0
- package/dist/client/assets/{jira-icon-DX-tTt4z.js → jira-icon-DdgjDC_T.js} +1 -1
- package/dist/client/assets/{label-2ri5y0AT.js → label-DFYaZzfV.js} +1 -1
- package/dist/client/assets/{layout-m0ghuzGv.js → layout-C1ShA0A2.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-dJnURvJJ.js → legacy-admin-welcome-dialog-C0rLwEhl.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-JluLJXF7.js → legacy-agents-deep-0KD5AZ-a.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-COiP2ETV.js → legacy-main-redirect-DsJJQAHz.js} +1 -1
- package/dist/client/assets/library-DKYFm9Uv.js +1 -0
- package/dist/client/assets/{library-tab-CAU7uiMF.js → library-tab-BttdbOwT.js} +1 -1
- package/dist/client/assets/{login-DgFE1SmG.js → login-DkrQRBM-.js} +1 -1
- package/dist/client/assets/{markdown-Du_1i_DV.js → markdown-B-EQMrBl.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CHuh8eBE.js → mcp-app-renderer-B8_THT37.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Be_pa5Ik.js → mcp-oauth-Cya-fh0P.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Bppcz_3X.js → mcp-oauth-_iPR8QjI.js} +1 -1
- package/dist/client/assets/{members-CS-oK1Zf.js → members-BVOPoO_W.js} +1 -1
- package/dist/client/assets/{memory-Bl0VJnb1.js → memory-C23hLBrZ.js} +1 -1
- package/dist/client/assets/{mock-board-BQeILTVh.js → mock-board-BcZu24PK.js} +3 -3
- package/dist/client/assets/{monaco-editor-DCzjvWW2.js → monaco-editor-DttATUsj.js} +1 -1
- package/dist/client/assets/{monitoring-B4nvDMf7.js → monitoring-CLDBgSzo.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BK9I1n3g.js → monitoring-stats-row-CRxmylqh.js} +1 -1
- package/dist/client/assets/{multi-select-DLpc9WGW.js → multi-select-CSOG3KaA.js} +1 -1
- package/dist/client/assets/{mustache-fgm1GoLm.js → mustache-clchl4ci.js} +1 -1
- package/dist/client/assets/{named-rule-step-ikHUM8J-.js → named-rule-step-C-_N0SXT.js} +1 -1
- package/dist/client/assets/{named-rule-view-BJLF9MVt.js → named-rule-view-DrUf_Aau.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BfJtWdgg.js → new-project-dialog-KtG8l1yi.js} +1 -1
- package/dist/client/assets/{new-project-store-CUIYzGdu.js → new-project-store-DDZH8miu.js} +1 -1
- package/dist/client/assets/{oauth-callback-DAF-HNU5.js → oauth-callback-B-J4rjBS.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BlZK1cl5.js → oauth-callback-ai-provider-DCheihxt.js} +1 -1
- package/dist/client/assets/{oauth-consent-BjKAsSxp.js → oauth-consent-P6jhSz87.js} +1 -1
- package/dist/client/assets/{onboarding-CStDT_bk.js → onboarding-BoQQb_DJ.js} +1 -1
- package/dist/client/assets/{openai-conversation-DJ7Npc2v.js → openai-conversation-BRIcN7ns.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CaqEFCbi.js → optimistic-project-sidebar-views-BhBXjk9R.js} +1 -1
- package/dist/client/assets/{order-monitor-day-B3sADUCG.js → order-monitor-day-DEr2FQ1w.js} +1 -1
- package/dist/client/assets/{organization-choice-vaH8PRN7.js → organization-choice-NHrCNKHD.js} +1 -1
- package/dist/client/assets/{orgs-C-TKQP3D.js → orgs-oDKfi1NH.js} +1 -1
- package/dist/client/assets/{own-accounts-section-BpgBL9aq.js → own-accounts-section-DfQklfiL.js} +1 -1
- package/dist/client/assets/{pair-M_Ks4KYr.js → pair-CI1Rts6X.js} +1 -1
- package/dist/client/assets/{parse-sections-BuUvGGsv.js → parse-sections-Cv7KSMgB.js} +3 -3
- package/dist/client/assets/{plan-D-khZ7ZC.js → plan-DhBEXV7d.js} +1 -1
- package/dist/client/assets/{plan-ladder-De9sRz_u.js → plan-ladder-Dn1mCpkd.js} +1 -1
- package/dist/client/assets/{plan-usage-card-8gBO_kT7.js → plan-usage-card-CoidaM8B.js} +1 -1
- package/dist/client/assets/{popover-BdGhwX6j.js → popover-D73VbCM5.js} +1 -1
- package/dist/client/assets/post-calendar-bB_dTysf.js +1 -0
- package/dist/client/assets/{post-editor-mxtEx2vX.js → post-editor-DJgKYRYW.js} +2 -2
- package/dist/client/assets/{preview-content-Dxe4XKdO.js → preview-content-g2WEpueQ.js} +1 -1
- package/dist/client/assets/{preview-dialog--RYpR3-k.js → preview-dialog-DEGn7q2O.js} +1 -1
- package/dist/client/assets/{preview-panel-Bk5cvms4.js → preview-panel-BWh6T2ND.js} +1 -1
- package/dist/client/assets/preview-tab-BFrQickY.js +557 -0
- package/dist/client/assets/primitives-BHTaKbue.js +1 -0
- package/dist/client/assets/{product-picker-dialog-CIU4p36P.js → product-picker-dialog-B1FnNY41.js} +1 -1
- package/dist/client/assets/{profile-CA2wDqLs.js → profile-KHrko28l.js} +1 -1
- package/dist/client/assets/{project-app-view-CsobOn93.js → project-app-view-CEsZ7pyQ.js} +1 -1
- package/dist/client/assets/{project-apps-CzXp3RuA.js → project-apps-BFfwYw5p.js} +1 -1
- package/dist/client/assets/{project-icon-BUl2sFaB.js → project-icon-Bl4IAncl.js} +1 -1
- package/dist/client/assets/{project-index-D3eqGaeY.js → project-index-DyqPLhTf.js} +1 -1
- package/dist/client/assets/project-reports-Bo9Tf1zF.js +1 -0
- package/dist/client/assets/project-tasks-t-YvuQ_q.js +1 -0
- package/dist/client/assets/{projects-DSjvBTqn.js → projects-D4oIfDMZ.js} +1 -1
- package/dist/client/assets/{projects-empty-state-C_4sZ19U.js → projects-empty-state-PFeDurZg.js} +1 -1
- package/dist/client/assets/{prompts-JIqJQ8rm.js → prompts-TmqmoJme.js} +1 -1
- package/dist/client/assets/record-editor-WmiU2d6T.js +1 -0
- package/dist/client/assets/redirect-editor-BlBcxP_z.js +1 -0
- package/dist/client/assets/reports-Cb0Mwz-u.js +1 -0
- package/dist/client/assets/{reports-DJZwSZy6.js → reports-DxGhEr3Y.js} +1 -1
- package/dist/client/assets/{reports-onboarding-CSkswBMH.js → reports-onboarding-CM7YPxA7.js} +1 -1
- package/dist/client/assets/{reports-tab-6fV3Jvgl.js → reports-tab-DLrLzkx3.js} +2 -2
- package/dist/client/assets/{repositories-BTuTm0L2.js → repositories-67wiZj2r.js} +1 -1
- package/dist/client/assets/repositories-CDNeFlHK.js +1 -0
- package/dist/client/assets/{repository-binding-DrxBu24C.js → repository-binding-w-FCDYuS.js} +1 -1
- package/dist/client/assets/{repository-picker-Darc81nL.js → repository-picker-DF0-TGsg.js} +1 -1
- package/dist/client/assets/{require-capability-C51SGps0.js → require-capability-7Xn2Fb3C.js} +1 -1
- package/dist/client/assets/{required-auth-layout-pSTI6t_x.js → required-auth-layout-B1owCwtw.js} +1 -1
- package/dist/client/assets/{reset-password-BnNzHLPz.js → reset-password-BvZRYC01.js} +1 -1
- package/dist/client/assets/{resizable-BU7UxgwC.js → resizable-CJbr1Nyi.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-Bd3WwXB0.js → resolve-tab-icon-3aZJM1BR.js} +1 -1
- package/dist/client/assets/{review-settings-D31XkFbq.js → review-settings-CISstknV.js} +1 -1
- package/dist/client/assets/{role-color-CJIemPpG.js → role-color-CW1lGNZj.js} +1 -1
- package/dist/client/assets/{roles-C7hVcM54.js → roles-D7rYnEMh.js} +1 -1
- package/dist/client/assets/route-CFBPrBcw.js +1 -0
- package/dist/client/assets/{route-ajk3Lz1i.js → route-CPaIZZ88.js} +1 -1
- package/dist/client/assets/{route-1boDLy4Y.js → route-CT0-z-8-.js} +1 -1
- package/dist/client/assets/{route-page-header-D3RVWIBC.js → route-page-header-CRzmHOKm.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-lqhbN6-M.js → sandbox-git-api-1xYJwdHB.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-QpFv1h24.js → sandbox-lifecycle-context-CxRkhFod.js} +1 -1
- package/dist/client/assets/{save-status-96Apsuux.js → save-status-Csuo4rYY.js} +1 -1
- package/dist/client/assets/{schema-DIQ-2mII.js → schema-BluyjH2z.js} +1 -1
- package/dist/client/assets/{schema-DklwT0XH.js → schema-DU3GC-Ez.js} +1 -1
- package/dist/client/assets/{scroll-area-CLaLCTf7.js → scroll-area-D9mVov2B.js} +1 -1
- package/dist/client/assets/{search-input-BytjnRYd.js → search-input-D-gp-h4P.js} +1 -1
- package/dist/client/assets/{search-toggle-BEH-S2im.js → search-toggle-C1j-Ki1u.js} +1 -1
- package/dist/client/assets/{secret-picker-k0C3uZq8.js → secret-picker-BoQX39kK.js} +1 -1
- package/dist/client/assets/{secrets-1-DGosfc.js → secrets-BZwPjTxC.js} +1 -1
- package/dist/client/assets/section-array-field-4siTAXTX.js +1 -0
- package/dist/client/assets/{sections-DfnSEAao.js → sections-Cwqt7k6K.js} +1 -1
- package/dist/client/assets/sections-editor-B2wYNbjz.js +1 -0
- package/dist/client/assets/{select-BH6i4t87.js → select-DnlDCB9E.js} +1 -1
- package/dist/client/assets/{select-model-DuodXwbD.js → select-model-Cm1Kbu8h.js} +1 -1
- package/dist/client/assets/seo-editor-DbLTH9Vw.js +1 -0
- package/dist/client/assets/{separator-DE4QJAwp.js → separator-DsSANYB0.js} +1 -1
- package/dist/client/assets/{session-runtime-CnePJMYk.js → session-runtime-D2GKulko.js} +1 -1
- package/dist/client/assets/settings-tab-CSzHYez6.js +1 -0
- package/dist/client/assets/{sheet-CX86ajAE.js → sheet-Ctckoytn.js} +1 -1
- package/dist/client/assets/{shell-layout-MrR8EGxZ.js → shell-layout-BS_Y65pV.js} +1 -1
- package/dist/client/assets/{site-draft-actions-CCPyXgQA.js → site-draft-actions-BZf0yVqo.js} +1 -1
- package/dist/client/assets/{site-draft-view-B3wpg14y.js → site-draft-view-NypTEK1x.js} +1 -1
- package/dist/client/assets/site-editor-BbPLQWC_.js +1 -0
- package/dist/client/assets/{site-editor-toast-DjTYO8yl.js → site-editor-toast-DfzFv4iY.js} +1 -1
- package/dist/client/assets/{skills-CwoSapY8.js → skills-2_Ugx28k.js} +1 -1
- package/dist/client/assets/{slider-B1Q72VZH.js → slider-Bqy5W8RM.js} +1 -1
- package/dist/client/assets/{sortable.esm-CXd3MFy1.js → sortable.esm-Cl-YQgc8.js} +1 -1
- package/dist/client/assets/{sso-DieJGjil.js → sso-CdbJh-Eu.js} +1 -1
- package/dist/client/assets/{suggestion-Cpa996zU.js → suggestion-BoV2NIg6.js} +1 -1
- package/dist/client/assets/{super-agent-icon-Db04o97L.js → super-agent-icon-CDA5EiNS.js} +1 -1
- package/dist/client/assets/{switch-B7uarNO5.js → switch--3C-A5oU.js} +1 -1
- package/dist/client/assets/{synced-repos-aIXgLnBB.js → synced-repos-BpiKoBMD.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-D_VxeQZE.js → tab-icon-glyph-CEoTzCNL.js} +1 -1
- package/dist/client/assets/{table-Bta2Y1CD.js → table-Cy5fo0ER.js} +1 -1
- package/dist/client/assets/{tabs-s8CSecQV.js → tabs-DJ6SkMve.js} +1 -1
- package/dist/client/assets/{task-board-DshmncwN.js → task-board-CShHcm1L.js} +1 -1
- package/dist/client/assets/{task-key-PomUyZRb.js → task-key-BP2--GY6.js} +1 -1
- package/dist/client/assets/{task-route-DIKoinWO.js → task-route-BDNP9yC7.js} +1 -1
- package/dist/client/assets/{task-status-LX7lBTjN.js → task-status-GPS8HLw1.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DfkqsYeI.js → taskboard-analytics-DPlKE9oq.js} +1 -1
- package/dist/client/assets/tasks-Coh8-0jv.js +1 -0
- package/dist/client/assets/{tasks-BGD-BUHo.js → tasks-DQ5zrDt3.js} +1 -1
- package/dist/client/assets/{textarea-C_mtz3Kv.js → textarea-BCGFjA5F.js} +1 -1
- package/dist/client/assets/{thread-analytics-aGwSdxKv.js → thread-analytics-B5IqH-5A.js} +1 -1
- package/dist/client/assets/{thread-button-Bc5fnhGX.js → thread-button-Dw70OEJl.js} +1 -1
- package/dist/client/assets/{thread-intent-DJ2isQQx.js → thread-intent-BQWCtBA_.js} +1 -1
- package/dist/client/assets/{thread-route-DI1GCHqT.js → thread-route-DRsKlO-E.js} +1 -1
- package/dist/client/assets/{thread-route-C13LdFpr.js → thread-route-Dix8r-rB.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CnbjjV-I.js → thread-sheet-body-iwOtv26B.js} +1 -1
- package/dist/client/assets/{time-range-picker-A0UZNhWR.js → time-range-picker-CUAzqD4s.js} +1 -1
- package/dist/client/assets/{toggle-group-BjeGXB13.js → toggle-group-jkikwCcL.js} +1 -1
- package/dist/client/assets/{tool-set-selector-rXUFKU4u.js → tool-set-selector-Clh56c6v.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BmCu83-X.js → toolbar-icon-button-DcIFSTOI.js} +1 -1
- package/dist/client/assets/{tooltip-D0-ybZJ-.js → tooltip-DCzbfwd7.js} +1 -1
- package/dist/client/assets/{tooltipContext-Dm5XB4Pa.js → tooltipContext-2wUW4UR-.js} +1 -1
- package/dist/client/assets/{track-BI5WxsF3.js → track-D4IkVAbh.js} +1 -1
- package/dist/client/assets/{types-DeHdmC2C.js → types-BQYXFpO6.js} +1 -1
- package/dist/client/assets/{url-slug-Bt323BC1.js → url-slug-E3otz4_J.js} +1 -1
- package/dist/client/assets/{usage-stats-4TwUkhM4.js → usage-stats-CiB8uQLm.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Cykm4Omp.js → use-ai-providers-CTbi7eSd.js} +1 -1
- package/dist/client/assets/{use-api-keys-QqkV0EMu.js → use-api-keys-CuxnpyDB.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-B0v5Nv1Q.js → use-apply-named-rule-BroFciug.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-vlpFfAp7.js +1 -0
- package/dist/client/assets/{use-automations-CIfofZgd.js → use-automations-BdniAcmH.js} +1 -1
- package/dist/client/assets/{use-autosave-phCMBUyD.js → use-autosave-C9MsBAi1.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-BloQ91Xb.js +1 -0
- package/dist/client/assets/use-blog-view-Bi3aoju6.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-BWjgOEMc.js → use-chat-layout-state-77HNlix_.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-CPyM3m5I.js → use-cms-publish-actions-DGO40mZ2.js} +1 -1
- package/dist/client/assets/{use-connect-companion-eWYXL_LA.js → use-connect-companion-BkEQhdBC.js} +1 -1
- package/dist/client/assets/{use-connection-dER7f5j5.js → use-connection-DxwzNo03.js} +1 -1
- package/dist/client/assets/{use-content-sync-BSudZND-.js → use-content-sync-C9H2kDwl.js} +1 -1
- package/dist/client/assets/{use-copy-CzwPMJY2.js → use-copy-DSNmvH9L.js} +1 -1
- package/dist/client/assets/{use-current-view-BhCzT_on.js → use-current-view-DvszbK0Z.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DbDI1yRa.js → use-date-fns-locale-BSsydU_s.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BUqTz9gI.js → use-debounced-autosave-D6iRm-Vv.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DNV71VAt.js → use-debounced-value-CAOKwJaL.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D1eTXz3B.js → use-deco-credits-DnZKzVHP.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DwV1bANi.js → use-decopilot-events-BhcT5RAV.js} +1 -1
- package/dist/client/assets/{use-delete-block-B3Q8p71v.js → use-delete-block-Bd0Db3-p.js} +1 -1
- package/dist/client/assets/{use-delete-connection-KjVy0n0M.js → use-delete-connection-BMDl_PP-.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-U97at0FL.js → use-deployment-admin-DCWHLNad.js} +1 -1
- package/dist/client/assets/{use-entitlements-BnUu4797.js → use-entitlements-CzwT7L5B.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Cyb7nHOV.js → use-fast-preview-draft-url-DbEjmD3f.js} +1 -1
- package/dist/client/assets/{use-file-configs-D-0GlBYS.js → use-file-configs-yKe4yLHn.js} +1 -1
- package/dist/client/assets/{use-id-selection-lO2dafiF.js → use-id-selection-DmcvY3GI.js} +1 -1
- package/dist/client/assets/{use-in-settings-BZ-N_1GQ.js → use-in-settings-BTBVzmbg.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-adObXP9V.js → use-inbox-feed-BOy7gIMv.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DuNc__Oo.js → use-infinite-scroll-DnhPBPks.js} +1 -1
- package/dist/client/assets/{use-join-requests-CGnr0fzd.js → use-join-requests-C0zVtdAh.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-C_KJU7HA.js → use-main-panel-tabs-BCg6GLFm.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CIA9x3GT.js → use-mcp-auth-status-BZRJODR4.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CsG2AAiF.js → use-mcp-client-4k5JKqzF.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DJkMWAp0.js → use-mcp-prompts-pJuJ9yii.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C4sfkkEQ.js → use-mcp-tools-Dh4scI4V.js} +1 -1
- package/dist/client/assets/{use-mobile-B4kazYmP.js → use-mobile-CBwmaBFU.js} +1 -1
- package/dist/client/assets/{use-move-blocks-CQpVSPWP.js → use-move-blocks-D8MFSTf7.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CYt8D-re.js → use-navigate-to-agent-H87rWFYJ.js} +1 -1
- package/dist/client/assets/{use-never-published-Dhj1oB8k.js → use-never-published-Db-SviVk.js} +1 -1
- package/dist/client/assets/{use-org-fs-BQ1-EjeH.js → use-org-fs-CbXrwKDd.js} +1 -1
- package/dist/client/assets/{use-org-notice-FqFlDSJV.js → use-org-notice-BLDWm2ef.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DZJLO1tr.js → use-org-repo-syncs-BLfbsB0Y.js} +1 -1
- package/dist/client/assets/{use-org-sso-CCCXGXRa.js → use-org-sso-Cfy5SkJ5.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CcEgBKiR.js → use-organization-settings-UrGbnM2k.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BEVdshk4.js → use-panel-navigate-B5u6ws6M.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-BWWCr0OJ.js → use-project-native-view-presence-Cww1Huve.js} +1 -1
- package/dist/client/assets/{use-project-scope-DaSiwM20.js → use-project-scope-Dydp2D08.js} +1 -1
- package/dist/client/assets/{use-recent-apps-DJU0pj25.js → use-recent-apps-B6ojF6fA.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BBFJaws_.js → use-reports-diagnostic-EfyKTU1j.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-Bh6eTl2p.js → use-sandbox-events-DEHux0gs.js} +1 -1
- package/dist/client/assets/{use-secrets-DRWI9snD.js → use-secrets-G3Yo5eAI.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DgxMYdVR.js → use-section-preview-base-C2ASOAPw.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Cb1DkW28.js → use-sidebar-collapsed-DgMGLJyh.js} +1 -1
- package/dist/client/assets/{use-tags-CY161EKU.js → use-tags-laGjgQqt.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DstP91hQ.js → use-task-board-analytics-Ct6FAXeB.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-DENiL_-n.js → use-task-board-item-prs-BbVn1nYd.js} +1 -1
- package/dist/client/assets/{use-task-board-items-BOf8g772.js → use-task-board-items-B_EMxvU9.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-Cy7ux4ZM.js → use-task-board-prompts-CE2PVOHH.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CLvpp-M5.js → use-task-metadata-L0GKyc-x.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CBGDKGBc.js → use-thread-outputs-B9502nWa.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-Bm-Nz5rU.js → use-view-draft-kind-CZT4hOaN.js} +1 -1
- package/dist/client/assets/{use-voice-input-l3y10Zzf.js → use-voice-input-Nzha8Za1.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-FxnnBp9W.js +1 -0
- package/dist/client/assets/{useQueries-BADhFyMC.js → useQueries-CQ0xJF7W.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CtWAJlQZ.js +1 -0
- package/dist/client/assets/{users-BlAutU5k.js → users-C_-sgV42.js} +1 -1
- package/dist/client/assets/{utils-D3hrWqhu.js → utils-pe9cqItP.js} +1 -1
- package/dist/client/assets/{variant-calendar-Cf89P2oq.js → variant-calendar-d5m67-k3.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-cabGpziX.js → variant-matcher-override-DoPQRIHU.js} +1 -1
- package/dist/client/assets/{view-header-CqefLZ8T.js → view-header-B0xV_oWh.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BfLRvmz0.js → virtual-mcp-DN6fu9Nf.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-mz6vVQb7.js → watch-sse-pool-7J-tc7Ge.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-app-qi4Zg0Ko.js +0 -1
- package/dist/client/assets/agent-blog-C-T8yJPu.js +0 -2
- package/dist/client/assets/agent-blog-post-spGtFEpJ.js +0 -2
- package/dist/client/assets/agent-deck-8F4Y3xtF.js +0 -1
- package/dist/client/assets/agent-experiments-CxOy1OMh.js +0 -1
- package/dist/client/assets/agent-file-BHPXEsLM.js +0 -1
- package/dist/client/assets/agent-library-BDMtzZv5.js +0 -1
- package/dist/client/assets/agent-library-file-BU6GZbp1.js +0 -1
- package/dist/client/assets/agent-overview-BpZl9px0.js +0 -1
- package/dist/client/assets/agent-releases-BojH--RB.js +0 -2
- package/dist/client/assets/agent-settings-CmejIfdg.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CsUpsDOZ.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DcDYGjSi.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DoYr2JdT.js +0 -1
- package/dist/client/assets/agent-view-5HH2xFah.js +0 -1
- package/dist/client/assets/api-keys-tTCGO1A5.js +0 -1
- package/dist/client/assets/app-editor-BDvMcyIq.js +0 -1
- package/dist/client/assets/blog-preview-url-CQF91dum.js +0 -1
- package/dist/client/assets/blog-schema-B993jmPJ.js +0 -1
- package/dist/client/assets/blog-source-gate-B40koNXU.js +0 -1
- package/dist/client/assets/category-editor-DrOqNXNY.js +0 -1
- package/dist/client/assets/category-tree-B08EozIk.js +0 -4
- package/dist/client/assets/cms-settings-editor-DMhLCkuK.js +0 -1
- package/dist/client/assets/empty-message-CG0mkpBx.js +0 -15
- package/dist/client/assets/index-w9K6scL8.css +0 -1
- package/dist/client/assets/item-actions-DHBqlB8t.js +0 -1
- package/dist/client/assets/library-Wi-0o3Yx.js +0 -1
- package/dist/client/assets/post-calendar-CYarN2j3.js +0 -1
- package/dist/client/assets/preview-tab-BRY7e3Ww.js +0 -557
- package/dist/client/assets/project-reports-DUszwxkV.js +0 -1
- package/dist/client/assets/project-tasks-C9wh-MvK.js +0 -1
- package/dist/client/assets/record-editor-5hDNYEyc.js +0 -1
- package/dist/client/assets/redirect-editor-CIkflDxt.js +0 -1
- package/dist/client/assets/reports-BQo9TgIr.js +0 -1
- package/dist/client/assets/repositories-BT4LP6yW.js +0 -1
- package/dist/client/assets/route-FPh-7Znc.js +0 -1
- package/dist/client/assets/section-array-field-08gf_aaJ.js +0 -1
- package/dist/client/assets/sections-editor-Cm1IpUw4.js +0 -1
- package/dist/client/assets/seo-editor-vJ_3bHov.js +0 -1
- package/dist/client/assets/settings-tab-C97802nQ.js +0 -1
- package/dist/client/assets/site-editor-BiU8V7py.js +0 -1
- package/dist/client/assets/tasks-B2acfxpH.js +0 -1
- package/dist/client/assets/use-ask-in-chat-CJn-8DXz.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-BUDjuC95.js +0 -1
- package/dist/client/assets/use-blog-view-CZ2egr0r.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Comohppg.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-XSNjcYue.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Et,j as s,b as Tt,r as _,au as It,m as Ot,h as Ft,t as wt}from"./index-BGvfgBXQ.js";import{u as Mt}from"./chat-context-Dk_Ebz6D.js";import{u as Pt}from"./use-voice-input-l3y10Zzf.js";import{S as $t}from"./scroll-area-CLaLCTf7.js";import{u as Ut,A as Vt}from"./use-section-preview-base-DgxMYdVR.js";import{y as zt,l as Lt,t as qt}from"./blocks-tab-states-Dgkd6bcn.js";import{H as Ht,u as Dt,c as Gt,b as Wt,S as Zt}from"./held-block-view-CB9_UtVc.js";import{b as Jt,u as Qt,k as Xt}from"./use-never-published-Dhj1oB8k.js";import{n as Yt}from"./content-tab-Dby-qF-f.js";import{S as te}from"./save-status-96Apsuux.js";import"./use-panel-navigate-BEVdshk4.js";import"./thread-route-DI1GCHqT.js";import"./use-project-scope-DaSiwM20.js";import"./repository-binding-DrxBu24C.js";import"./use-mcp-client-CsG2AAiF.js";import"./auth-WUI0GELm.js";import"./use-view-draft-kind-Bm-Nz5rU.js";import"./use-blog-view-CZ2egr0r.js";import"./use-organization-settings-CcEgBKiR.js";import"./schema-DIQ-2mII.js";import"./task-board-DshmncwN.js";import"./thread-intent-DJ2isQQx.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-mz6vVQb7.js";import"./session-runtime-CnePJMYk.js";import"./use-entitlements-BnUu4797.js";import"./use-ai-providers-Cykm4Omp.js";import"./use-current-view-BhCzT_on.js";import"./use-in-settings-BZ-N_1GQ.js";import"./use-decopilot-events-DwV1bANi.js";import"./popover-BdGhwX6j.js";import"./drawer-CQosC7Hh.js";import"./tooltip-D0-ybZJ-.js";import"./index-CpqnzQ6X.js";import"./use-mobile-B4kazYmP.js";import"./agent-icon-CFsULo4q.js";import"./AlertCircle-BPb6lfDc.js";import"./UserCheck01-Dq2vpnim.js";import"./Tool01-CIkfFpNs.js";import"./ArrowUp-bsUZSt57.js";import"./ArrowLeft-D_px05Ip.js";import"./ArrowRight-DYc-7xj5.js";import"./BookOpen01-CKzuPfPT.js";import"./Globe04-BK5-p2nj.js";import"./CheckCircle-Dvda272I.js";import"./TrendUp01-Sag3n7qI.js";import"./ChevronDown-C0zFtKr8.js";import"./ChevronSelectorVertical-BtbkxpS7.js";import"./ChevronUp-CHkdbh-i.js";import"./UserSquare-BAlzvt_y.js";import"./LinkBroken01-sFiApfPs.js";import"./CreditCard01-BnEtKIxX.js";import"./File02-OGn6eCfs.js";import"./MessageCircle01-LN8Gr1lL.js";import"./SwitchHorizontal01-BRSeU65r.js";import"./Eye-CE9bd3Ra.js";import"./Fingerprint04-ZnmHU3Kp.js";import"./Image01-Do_f-fPi.js";import"./Key01-C2Ozqf6q.js";import"./LayoutLeft-tXOkIxzs.js";import"./Minus-vz8sJtmc.js";import"./Monitor01-Ctq4Y9xp.js";import"./Sun-8QBdDNyc.js";import"./Play-B5OMs0GO.js";import"./Plus-KLH-MPJh.js";import"./SearchMd-1p8IP99o.js";import"./ShoppingBag01-BZ5p5Jaw.js";import"./Trash01-1e348d5z.js";import"./Upload01-DQiq1N5L.js";import"./Users01-CJNRoJXK.js";import"./XClose-CQjSvos9.js";import"./Zap-BbT-W69e.js";import"./index-ztFBZP-a.js";import"./checkbox-DR00CmJr.js";import"./select-BH6i4t87.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./site-editor-toast-DjTYO8yl.js";import"./use-sandbox-events-Bh6eTl2p.js";import"./sandbox-url-D3mC8qhT.js";import"./use-blocks-v8-project-BUDjuC95.js";import"./utils-D3hrWqhu.js";import"./sandbox-git-api-lqhbN6-M.js";import"./empty-state-B5kfNSn2.js";import"./calendar-CCy2brqO.js";import"./textarea-C_mtz3Kv.js";import"./usage-stats-4TwUkhM4.js";import"./utils-CVEq3hMx.js";import"./markdown-Du_1i_DV.js";import"./use-copy-CzwPMJY2.js";import"./gateway-client-Dcj5rv8f.js";import"./form-Bmlz7qRb.js";import"./label-2ri5y0AT.js";import"./editor-classes-CiUorYg6.js";import"./switch-B7uarNO5.js";import"./task-key-PomUyZRb.js";import"./sortable.esm-CXd3MFy1.js";import"./toggle-group-BjeGXB13.js";import"./active-indicator-CCMhAsc_.js";import"./empty-message-CG0mkpBx.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-M_Ks4KYr.js";import"./collapsible-C5AFdLwb.js";import"./use-task-board-items-BOf8g772.js";import"./config-Br1Io2is.js";import"./task-route-DIKoinWO.js";import"./project-index-D3eqGaeY.js";import"./shell-layout-MrR8EGxZ.js";import"./use-deployment-admin-U97at0FL.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-FqFlDSJV.js";import"./command-CRJnywSm.js";import"./index-B7BDvGS9.js";import"./integration-icon-nO6TvSsO.js";import"./project-icon-BUl2sFaB.js";import"./use-navigate-to-agent-CYt8D-re.js";import"./use-debounced-value-DNV71VAt.js";import"./new-project-dialog-BfJtWdgg.js";import"./repository-picker-Darc81nL.js";import"./github-icon-HoxHOYky.js";import"./useInfiniteQuery-Comohppg.js";import"./infiniteQueryObserver-CjHha6VI.js";import"./collection-search-ugxEd4a5.js";import"./new-project-store-CUIYzGdu.js";import"./legacy-admin-welcome-dialog-dJnURvJJ.js";import"./required-auth-layout-pSTI6t_x.js";import"./use-org-sso-CCCXGXRa.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CHuh8eBE.js";import"./types-DeHdmC2C.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-CX86ajAE.js";import"./use-connection-dER7f5j5.js";import"./use-mcp-prompts-DJkMWAp0.js";import"./use-thread-outputs-CBGDKGBc.js";import"./file-type-icon-Cst2WgHg.js";import"./section-array-field-08gf_aaJ.js";import"./named-rule-step-ikHUM8J-.js";import"./slider-B1Q72VZH.js";import"./index-DCNDjBOm.js";import"./tooltipContext-Dm5XB4Pa.js";import"./CategoricalChart-D0wEIkFu.js";import"./index-CrMNCOay.js";import"./combobox-BYBZebi0.js";import"./match-site-slug-config-B47_xZCi.js";import"./use-file-configs-D-0GlBYS.js";import"./asset-utils-DedHJB9N.js";import"./hosted-reconcile-DipRdTAf.js";import"./search-input-BytjnRYd.js";import"./tabs-s8CSecQV.js";import"./delete-copy-tGyXeEYr.js";import"./category-tree-B08EozIk.js";import"./use-move-blocks-CQpVSPWP.js";import"./index-oZBvLpfd.js";import"./view-header-CqefLZ8T.js";import"./use-cms-publish-actions-CPyM3m5I.js";import"./use-content-sync-BSudZND-.js";import"./use-delete-block-B3Q8p71v.js";import"./item-actions-DHBqlB8t.js";import"./date-utils-CrvIKg-s.js";import"./badge-xkOOGTR2.js";import"./empty-state-D4GKvYHp.js";import"./monaco-editor-DCzjvWW2.js";import"./editor-DnZdk2c2.js";import"./sandbox-lifecycle-context-QpFv1h24.js";import"./parse-sections-BuUvGGsv.js";import"./mustache-fgm1GoLm.js";import"./collection-table-wrapper-omwG60bs.js";import"./table-Bta2Y1CD.js";import"./agent-capabilities-Dsy9OzBC.js";function ee(e,t){if(!e||!t?.length)return e;const o=Object.fromEntries(Object.entries(e.properties??{}).filter(([r])=>!t.includes(r)));return Object.keys(o).length>0?{...e,properties:o}:e}function _t(e,t,o){return typeof e!="string"?null:ee(zt(e,t),o)}function re(e,t,o){if(!t||typeof e!="string")return!1;const r=_t(e,t,o);return!!r&&Object.keys(r.properties??{}).length>0}function oe(e,t){const o=(e.title||e.resolveType.split("/").pop()||"").replace(/\.(tsx?|jsx?)$/,"").replace(/[^A-Za-z0-9_-]/g,""),r=/^[A-Za-z]/.test(o)&&o.length>0?o:"Section",i=Yt(t,r);return{blockKey:i,data:{__resolveType:e.resolveType,name:i}}}function vi(e){const t=Et.c(10),o=e.saveGuard?void 0:e.block!==void 0;let r;t[0]!==e?(r=s.jsx(ie,{...e}),t[0]=e,t[1]=r):r=t[1];let i;return t[2]!==e.blockKey||t[3]!==e.branch||t[4]!==e.decofile||t[5]!==e.orgSlug||t[6]!==e.virtualMcpId||t[7]!==o||t[8]!==r?(i=s.jsx(Ht,{listing:e.decofile,orgSlug:e.orgSlug,virtualMcpId:e.virtualMcpId,branch:e.branch,blockKey:e.blockKey,present:o,children:r}),t[2]=e.blockKey,t[3]=e.branch,t[4]=e.decofile,t[5]=e.orgSlug,t[6]=e.virtualMcpId,t[7]=o,t[8]=r,t[9]=i):i=t[9],i}function ie(e){const t=Et.c(95),{orgSlug:o,virtualMcpId:r,branch:i,blockKey:a,block:b,meta:m,decofile:c,title:At,excludeFields:v,previewBaseUrl:gt,notice:Z,saveGuard:J,persistDefaults:Q,schemaWaiting:St}=e,X=gt===void 0?null:gt,Y=St===void 0?!0:St,tt=Mt()?.taskId??null,h=Tt(),K=Pt(r);let R;t[0]!==i||t[1]!==X||t[2]!==r?(R={virtualMcpId:r,branch:i,sandboxUrl:X},t[0]=i,t[1]=X,t[2]=r,t[3]=R):R=t[3];const x=Ut(R),l=typeof b?.__resolveType=="string"?b.__resolveType:"";let N;t[4]!==v||t[5]!==m||t[6]!==l?(N=_t(l,m,v),t[4]=v,t[5]=m,t[6]=l,t[7]=N):N=t[7];const et=N;let C;t[8]!==v||t[9]!==m||t[10]!==l?(C=re(l,m,v),t[8]=v,t[9]=m,t[10]=l,t[11]=C):C=t[11];const rt=C;let T;t[12]!==m||t[13]!==l||t[14]!==Y||t[15]!==K?(T=Y&&l!==""&&!(K.resolved&&K.runtime==="cms")&&!Lt(l,m),t[12]=m,t[13]=l,t[14]=Y,t[15]=K,t[16]=T):T=t[16];const I=T,yt=At??(b?qt(a,b,m):a);let O;t[17]!==i||t[18]!==o||t[19]!==r?(O={orgSlug:o,virtualMcpId:r,branch:i},t[17]=i,t[18]=o,t[19]=r,t[20]=O):O=t[20];let F;t[21]!==J?(F={guard:J,holdsCopy:!0},t[21]=J,t[22]=F):F=t[22];const{save:ot,flush:it,isPending:st}=Jt(O,F);let M;t[23]!==i||t[24]!==o||t[25]!==r?(M={orgSlug:o,virtualMcpId:r,branch:i},t[23]=i,t[24]=o,t[25]=r,t[26]=M):M=t[26];const mt=Qt(M);let P;t[27]!==i||t[28]!==o||t[29]!==r?(P={orgSlug:o,virtualMcpId:r,branch:i},t[27]=i,t[28]=o,t[29]=r,t[30]=P):P=t[30];const nt=Dt(P,c).save,[Kt,Rt]=_.useState(a),[lt,kt]=_.useState(null),[pt,jt]=_.useState(0);let $;t[31]===Symbol.for("react.memo_cache_sentinel")?($=[],t[31]=$):$=t[31];const[g,Bt]=_.useState($),[at,d]=_.useState(!1),U=_.useRef(null);Kt!==a&&(Rt(a),kt(null),jt(me),Bt([]));let V;t[32]!==b?(V=b??{},t[32]=b,t[33]=V):V=t[33];const ct=V;let S;t[34]!==lt?(S=lt??{},t[34]=lt,t[35]=S):S=t[35];let z;t[36]!==ct||t[37]!==S?(z={...ct,...S},t[36]=ct,t[37]=S,t[38]=z):z=t[38];const dt=z;let L;t[39]!==a||t[40]!==l||t[41]!==ot?(L=n=>{const p=n;kt(p),ot(a,{...p,__resolveType:l})},t[39]=a,t[40]=l,t[41]=ot,t[42]=L):L=t[42];const ut=L;let q;t[43]===Symbol.for("react.memo_cache_sentinel")?(q=n=>{Bt(n)},t[43]=q):q=t[43];const A=q;let H;t[44]!==c||t[45]!==it||t[46]!==mt||t[47]!==h?(H=async(n,p)=>{try{const{blockKey:u,data:f}=oe(n,c),vt=await mt.mutateAsync({blockKey:u,data:f});Xt(vt)||wt.success(h("sandbox.appEditor.createdSection",{name:u})),p({__resolveType:u}),it()}catch(u){const f=u,vt=f instanceof Error?f.message:h("sandbox.appEditor.failedAddSection");throw wt.error(vt),f}},t[44]=c,t[45]=it,t[46]=mt,t[47]=h,t[48]=H):H=t[48];const y=H;let D;t[49]!==d?(D=n=>{U.current=n.append,d(!0)},t[49]=d,t[50]=D):D=t[50];const ft=D;let G;t[51]!==y||t[52]!==d?(G=async n=>{const p=U.current;if(p)try{await y(n,u=>{p(u),d(!1),U.current=null})}catch{}},t[51]=y,t[52]=d,t[53]=G):G=t[53];const ht=G,bt=g.length>0?[yt,...g]:[],Nt="flex h-full flex-col",Ct="flex h-12 shrink-0 items-center justify-between border-b px-6",xt=bt.length>0?s.jsx("nav",{"aria-label":h("sandbox.appEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:bt.map((n,p)=>{const u=p===bt.length-1,f=Gt(n);return s.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[p>0&&s.jsx(It,{className:"size-3 shrink-0 text-muted-foreground/60"}),s.jsx("button",{type:"button",onClick:()=>{A(p===0?[]:Wt(g,p)),jt(se)},title:f,className:Ot("min-w-0 truncate rounded-lg px-1 py-0.5 text-left transition-colors",u?"font-medium text-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:f})]},`${f}-${p}`)})}):s.jsx("span",{className:"text-sm font-medium",children:yt});let k;t[54]!==st?(k=s.jsx(te,{isPending:st,isError:!1}),t[54]=st,t[55]=k):k=t[55];let j;t[56]!==xt||t[57]!==k?(j=s.jsxs("div",{className:Ct,children:[xt,k]}),t[56]=xt,t[57]=k,t[58]=j):j=t[58];let B;t[59]!==I||t[60]!==a||t[61]!==i||t[62]!==g||t[63]!==c||t[64]!==dt||t[65]!==pt||t[66]!==y||t[67]!==A||t[68]!==ut||t[69]!==ft||t[70]!==rt||t[71]!==m||t[72]!==o||t[73]!==Q||t[74]!==nt||t[75]!==et||t[76]!==x||t[77]!==h||t[78]!==tt||t[79]!==r?(B=rt?s.jsx(Zt,{schema:et,value:dt,onChange:ut,persistDefaults:Q,basePath:"",breadcrumbPath:g,onBreadcrumbChange:A,decofile:c,meta:m,onSaveReferencedBlock:nt,previewBaseUrl:x,onAddSectionItem:y,onRequestAddSection:ft,sandbox:{orgSlug:o,virtualMcpId:r,branch:i,threadId:tt}},`${a}:${pt}`):s.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center text-xs text-muted-foreground",children:[I&&s.jsx(Ft,{className:"size-4"}),s.jsx("p",{children:h(I?"sandbox.appEditor.schemaAwaitsBuild":"sandbox.appEditor.noEditableSchema")})]}),t[59]=I,t[60]=a,t[61]=i,t[62]=g,t[63]=c,t[64]=dt,t[65]=pt,t[66]=y,t[67]=A,t[68]=ut,t[69]=ft,t[70]=rt,t[71]=m,t[72]=o,t[73]=Q,t[74]=nt,t[75]=et,t[76]=x,t[77]=h,t[78]=tt,t[79]=r,t[80]=B):B=t[80];let w;t[81]!==Z||t[82]!==B?(w=s.jsx($t,{className:"min-h-0 min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"px-6 py-6",children:s.jsxs("div",{className:"mx-auto max-w-xl",children:[Z,B]})})}),t[81]=Z,t[82]=B,t[83]=w):w=t[83];let E;t[84]!==at||t[85]!==c||t[86]!==ht||t[87]!==m||t[88]!==x||t[89]!==d?(E=x&&s.jsx(Vt,{open:at,onOpenChange:n=>{d(n),n||(U.current=null)},meta:m,decofile:c,previewBaseUrl:x,onSelect:n=>{ht(n)}}),t[84]=at,t[85]=c,t[86]=ht,t[87]=m,t[88]=x,t[89]=d,t[90]=E):E=t[90];let W;return t[91]!==j||t[92]!==w||t[93]!==E?(W=s.jsxs("div",{className:Nt,children:[j,w,E]}),t[91]=j,t[92]=w,t[93]=E,t[94]=W):W=t[94],W}function se(e){return e+1}function me(e){return e+1}export{vi as AppEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{N as y}from"./site-editor-toast-DjTYO8yl.js";import{a0 as h,W as _}from"./blocks-tab-states-Dgkd6bcn.js";import{s as R,X as B,Y as T}from"./category-tree-B08EozIk.js";const s=t=>typeof t=="string"?t:"";function p(t,r){for(const e of T(t)){const o=s(e[r]);if(o)return o}return null}function b(t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const e=t;return typeof e.__resolveType!="string"||!h(e.__resolveType,r)?null:typeof e.path=="string"?e.path:null}function C(t){return _(t).filter(r=>r!=="*").length}function P(t,r,e){let o=null,a=Number.POSITIVE_INFINITY;for(const u of Object.values(t)){const n=b(u,e);if(!n||!r.test(JSON.stringify(u)))continue;const l=C(n);l<a&&(o=n,a=l)}return o}const O=/blogpostpage/i,E=/blogcategorypage/i;function m(t,r){return p(t,"pageSlug")??P(t,O,r)}function G(t,r){return p(t,"categorySlug")??P(t,E,r)}function I(t){const r=t.categories;if(!Array.isArray(r)||r.length===0)return"";const e=r[0];return s(e?.slug)}function L(t,r){let e=t;if(/:category[*?]?/.test(e)){if(!r.category)return null;e=e.replace(/:category[*?]?/g,g(r.category))}if(/:slug[*?]?/.test(e)){if(!r.slug)return null;e=e.replace(/:slug[*?]?/g,encodeURIComponent(r.slug))}return e}const f=/:(?:categorySlug|categoria|category|slug)[*?]?/,d=/:(?:categorySlug|categoria|category|slug)[*?]?/g;function A(t,r=!1){return/:(?:categorySlug|categoria|category)\*|\/\*$/.test(t)?!0:r&&/:slug\*/.test(t)&&!/:(?:categorySlug|categoria|category)[*?]?/.test(t)}function g(t){return t.split("/").filter(r=>r!=="."&&r!=="..").map(encodeURIComponent).join("/")}function S(t,r){if(!r)return"";const e=R(t).categories;return B(r,e).join("/")}function M(t,r){return/\/\*$/.test(t)&&!f.test(t)?r?t.replace(/\/\*$/,`/${g(r)}`):null:f.test(t)?r?t.replace(d,g(r)):null:t}function v({decofile:t,category:r,previewBaseUrl:e,draftPointer:o,meta:a}){if(!e)return null;const u=G(t,a);if(!u)return null;const n=s(r.slug),l=M(u,A(u,!0)?S(t,n):n);if(!l)return null;try{return y(new URL(l,e).href,o)}catch{return null}}const j="draft";function U({decofile:t,post:r,previewBaseUrl:e,draftPointer:o,meta:a,planning:u=!1}){if(!e)return null;const n=m(t,a);if(!n)return null;const l=I(r),c=L(n,{category:A(n)?S(t,l):l,slug:s(r.slug)});if(!c)return null;try{const i=new URL(c,e);return u&&i.searchParams.set(j,"true"),y(i.href,o)}catch{return null}}export{L as a,U as b,v as c,m as f};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as N,j as i,r as _,m as R,b as T}from"./index-BGvfgBXQ.js";import{a as v}from"./UserCheck01-Dq2vpnim.js";import{O as P,S as K,I as D,a as I}from"./held-block-view-CB9_UtVc.js";import{t as y}from"./ChevronDown-C0zFtKr8.js";import{C as W,a as Y,b as w}from"./collapsible-C5AFdLwb.js";import{ah as B,ai as L}from"./category-tree-B08EozIk.js";function $(l){const e=N.c(2);let t;return e[0]!==l?(t=i.jsx(P,{children:i.jsx(K,{...l})}),e[0]=l,e[1]=t):t=e[1],t}function A(l){const e=N.c(18),{icon:t,title:o,defaultOpen:c,children:d}=l,j=c===void 0?!1:c,[f,C]=_.useState(j);let m;e[0]!==t?(m=i.jsx(t,{size:15}),e[0]=t,e[1]=m):m=e[1];let s;e[2]!==o?(s=i.jsx("span",{className:"flex-1 text-left",children:o}),e[2]=o,e[3]=s):s=e[3];const b=f&&"rotate-180";let n;e[4]!==b?(n=R("transition-transform",b),e[4]=b,e[5]=n):n=e[5];let p;e[6]!==n?(p=i.jsx(y,{size:15,className:n}),e[6]=n,e[7]=p):p=e[7];let r;e[8]!==m||e[9]!==s||e[10]!==p?(r=i.jsx(W,{asChild:!0,children:i.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground cursor-pointer",children:[m,s,p]})}),e[8]=m,e[9]=s,e[10]=p,e[11]=r):r=e[11];let a;e[12]!==d?(a=i.jsx(Y,{className:"px-2 pt-4",children:d}),e[12]=d,e[13]=a):a=e[13];let u;return e[14]!==f||e[15]!==r||e[16]!==a?(u=i.jsxs(w,{open:f,onOpenChange:C,className:"mt-4",children:[r,a]}),e[14]=f,e[15]=r,e[16]=a,e[17]=u):u=e[17],u}function Z(l){const e=N.c(32),{schema:t,value:o,onChange:c,basePath:d,meta:j,decofile:f,sandbox:C,onSaveReferencedBlock:m}=l,s=T();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const[n,p]=_.useState(b);if(!t)return null;let r;e[1]!==s?(r=s("sandbox.blogCustomFields.title"),e[1]=s,e[2]=r):r=e[2];let a;e[3]!==s?(a=s("sandbox.blogCustomFields.description"),e[3]=s,e[4]=a):a=e[4];let u;e[5]!==a?(u=i.jsx("p",{className:"mb-4 text-xs text-muted-foreground",children:a}),e[5]=a,e[6]=u):u=e[6];let x;e[7]!==s?(x=s("sandbox.blogCustomFields.breadcrumbLabel"),e[7]=s,e[8]=x):x=e[8];let h;e[9]!==s?(h=s("sandbox.blogCustomFields.backToFields"),e[9]=s,e[10]=h):h=e[10];let g;e[11]!==n||e[12]!==x||e[13]!==h?(g=i.jsx(D,{path:n,onNavigate:p,label:x,backTitle:h}),e[11]=n,e[12]=x,e[13]=h,e[14]=g):g=e[14];let S;e[15]!==c?(S=F=>c(F),e[15]=c,e[16]=S):S=e[16];let E;e[17]!==d||e[18]!==n||e[19]!==f||e[20]!==j||e[21]!==m||e[22]!==C||e[23]!==t||e[24]!==S||e[25]!==o?(E=i.jsx($,{schema:t,value:o,onChange:S,basePath:d,breadcrumbPath:n,onBreadcrumbChange:p,meta:j,decofile:f,sandbox:C,onSaveReferencedBlock:m}),e[17]=d,e[18]=n,e[19]=f,e[20]=j,e[21]=m,e[22]=C,e[23]=t,e[24]=S,e[25]=o,e[26]=E):E=e[26];let O;return e[27]!==r||e[28]!==u||e[29]!==g||e[30]!==E?(O=i.jsxs(A,{icon:v,title:r,children:[u,g,E]}),e[27]=r,e[28]=u,e[29]=g,e[30]=E,e[31]=O):O=e[31],O}function k(l,e){if(!e)return null;const o=I(B[l],e)?.properties?.[L[l]];if(!o)return null;const c=o.properties?o:o.plainSchema;return c?.properties?c:null}const z=new Set(["__resolveType","@type"]);function G(l,e){const t=l?.properties;if(!t)return null;const o=Object.fromEntries(Object.entries(t).filter(([c,d])=>!e.has(c)&&!z.has(c)&&d.hidden!==!0));return Object.keys(o).length===0?null:{type:"object",properties:o}}function ee(l,e,t){return G(k(l,e),t)}const V=["title","slug","excerpt","date","readTime","image","mobileImage","alt","authors","categories","sections","seo","extraProps","scheduledDatetime","status","dateModified","planning","content"],te=new Set(V),M=["name","slug","parentSlug","description","sections"],se=new Set(M);export{Z as C,te as K,$ as S,A as a,ee as b,se as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as A,a6 as V,bh as X,j as a,b as z,B as F,h as q,r as J}from"./index-BGvfgBXQ.js";import{E as Q}from"./empty-state-D4GKvYHp.js";import{n as Z}from"./BookOpen01-CKzuPfPT.js";import{c as H,u as ee}from"./chat-context-Dk_Ebz6D.js";import{c as te,u as se,i as oe,h as re,j as ae,f as ie,k as ne}from"./site-editor-toast-DjTYO8yl.js";import{i as le,u as ce,S as fe,C as de,B as me}from"./blocks-tab-states-Dgkd6bcn.js";import{E as $,B as ue}from"./empty-message-CG0mkpBx.js";import{u as pe}from"./use-sandbox-events-Bh6eTl2p.js";import{a as he}from"./sandbox-lifecycle-context-QpFv1h24.js";import{u as ge}from"./use-voice-input-l3y10Zzf.js";import{k as xe,S as be,i as ve,n as Se,C as ye,F as je,s as ke,p as Be}from"./category-tree-B08EozIk.js";import{f as Ee}from"./blog-preview-url-CQF91dum.js";import{E as Pe}from"./empty-state-B5kfNSn2.js";import{G}from"./github-icon-HoxHOYky.js";import{R as we}from"./new-project-dialog-BfJtWdgg.js";import{a as K}from"./agent-capabilities-Dsy9OzBC.js";import{b as Ce}from"./repository-binding-DrxBu24C.js";function Ve(R){const e=A.c(27),{children:f}=R,{currentBranch:c,virtualMcpId:s}=H(),{org:d}=V(),m=pe(),v=he(),{runtime:j,previewServerUrl:E}=ge(s),{url:B}=te(s),r=se(s,c),t=oe(r),h=r.kind==="protocol"&&r.source==="github";X(h);const n=xe({fastPreviewActive:t||j==="cms",previewState:v.previewState,lifecyclePhase:m.lifecycle.phase});let u;e[0]!==r||e[1]!==B?(u=re(r)??B,e[0]=r,e[1]=B,e[2]=u):u=e[2];const p=u,i=j==="cms"&&!p;if(n.kind==="sandbox-card"){const l=`/${d.slug}/settings/connections`;let P;return e[3]!==n.state||e[4]!==v.start||e[5]!==l||e[6]!==m.lifecycle||e[7]!==m.phase?(P=a.jsx(be,{state:n.state,claimPhase:m.phase,lifecycle:m.lifecycle,onStart:v.start,connectionsHref:l}),e[3]=n.state,e[4]=v.start,e[5]=l,e[6]=m.lifecycle,e[7]=m.phase,e[8]=P):P=e[8],P}if(!s||!c){let l;return e[9]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx($,{title:"Waiting for sandbox context…"}),e[9]=l):l=e[9],l}if(le(r)){let l;return e[10]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(fe,{}),e[10]=l):l=e[10],l}if(r.kind==="pending"){let l;return e[11]!==r?(l=a.jsx(de,{backend:r}),e[11]=r,e[12]=l):l=e[12],l}const S=t?null:v.previewUrl,y=p??(i?E:v.previewUrl);let k;e[13]!==c||e[14]!==f||e[15]!==i||e[16]!==n.devServerReady||e[17]!==n.sandboxWarming||e[18]!==h||e[19]!==d.slug||e[20]!==S||e[21]!==y||e[22]!==s?(k=a.jsx(_e,{orgSlug:d.slug,virtualMcpId:s,branch:c,previewUrl:S,sitePreviewUrl:y,fastPreviewActive:i,hostedDraft:h,devServerReady:n.devServerReady,sandboxWarming:n.sandboxWarming,children:f}),e[13]=c,e[14]=f,e[15]=i,e[16]=n.devServerReady,e[17]=n.sandboxWarming,e[18]=h,e[19]=d.slug,e[20]=S,e[21]=y,e[22]=s,e[23]=k):k=e[23];let g;return e[24]!==t||e[25]!==k?(g=a.jsx(ue,{value:t,children:k}),e[24]=t,e[25]=k,e[26]=g):g=e[26],g}function _e(R){const e=A.c(58),{orgSlug:f,virtualMcpId:c,branch:s,previewUrl:d,sitePreviewUrl:m,fastPreviewActive:v,hostedDraft:j,devServerReady:E,sandboxWarming:B,children:r}=R,t=z(),h=ee()?.taskId??null;let n;e[0]!==s||e[1]!==f||e[2]!==d||e[3]!==h||e[4]!==c?(n={orgSlug:f,virtualMcpId:c,branch:s,threadId:h,previewUrl:d},e[0]=s,e[1]=f,e[2]=d,e[3]=h,e[4]=c,e[5]=n):n=e[5];const u=n;let p;e[6]!==E?(p={fetchEnabled:E},e[6]=E,e[7]=p):p=e[7];const{data:i,isLoading:S,refetch:y}=ae(u,p);let k;e[8]!==E?(k={fetchEnabled:E},e[8]=E,e[9]=k):k=e[9];const{data:g,isLoading:l,refetch:P}=ce(u,k);let N;e[10]!==s||e[11]!==j||e[12]!==f||e[13]!==c?(N=j?{orgSlug:f,virtualMcpId:c,branch:s}:null,e[10]=s,e[11]=j,e[12]=f,e[13]=c,e[14]=N):N=e[14];const D=N,M=ie(D,ve);let L;e[15]!==M?(L=[...M,Se,ye,je],e[15]=M,e[16]=L):L=e[16];let O;e[17]===Symbol.for("react.memo_cache_sentinel")?(O={withRefs:!0},e[17]=O):O=e[17];const T=ne(D,L,O);if(T.failed){let o;e[18]!==t?(o=t("sectionsEditor.hosted.blockLoadFailed"),e[18]=t,e[19]=o):o=e[19];let x;e[20]!==t?(x=t("sectionsEditor.hosted.blockLoadFailedHint"),e[20]=t,e[21]=x):x=e[21];let b;e[22]!==o||e[23]!==x?(b=a.jsx($,{title:o,description:x}),e[22]=o,e[23]=x,e[24]=b):b=e[24];const w=T.retry;let C;e[25]!==t?(C=t("sectionsEditor.namedRules.tryAgain"),e[25]=t,e[26]=C):C=e[26];let _;e[27]!==T.retry||e[28]!==C?(_=a.jsx(F,{variant:"outline",size:"sm",onClick:w,children:C}),e[27]=T.retry,e[28]=C,e[29]=_):_=e[29];let W;return e[30]!==_||e[31]!==b?(W=a.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 p-6 text-center",children:[b,_]}),e[30]=_,e[31]=b,e[32]=W):W=e[32],W}const I=!i||!g;if(S||l||!T.ready||I&&B){let o;return e[33]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsx(q,{className:"size-5 text-muted-foreground"})}),e[33]=o):o=e[33],o}if(I){let o;return e[34]!==i||e[35]!==g||e[36]!==y||e[37]!==P?(o=a.jsx(me,{source:"data",onRetry:()=>{i||y(),g||P()}}),e[34]=i,e[35]=g,e[36]=y,e[37]=P,e[38]=o):o=e[38],o}const Y=ke(i);if(!Be.some(o=>Y[o].length>0)&&!Ee(i,g)){let o;e[39]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(Z,{size:22}),e[39]=o):o=e[39];let x;e[40]!==t?(x=t("sandbox.blogWorkspace.noBlogApp"),e[40]=t,e[41]=x):x=e[41];let b;e[42]!==t?(b=t("sandbox.blogWorkspace.noBlogAppHint"),e[42]=t,e[43]=b):b=e[43];let w;return e[44]!==x||e[45]!==b?(w=a.jsx(Q,{className:"h-full",icon:o,title:x,description:b}),e[44]=x,e[45]=b,e[46]=w):w=e[46],w}let U;return e[47]!==s||e[48]!==r||e[49]!==i||e[50]!==v||e[51]!==j||e[52]!==g||e[53]!==f||e[54]!==d||e[55]!==m||e[56]!==c?(U=r({orgSlug:f,virtualMcpId:c,branch:s,decofile:i,meta:g,previewUrl:d,sitePreviewUrl:m,fastPreviewActive:v,hostedDraft:j}),e[47]=s,e[48]=r,e[49]=i,e[50]=v,e[51]=j,e[52]=g,e[53]=f,e[54]=d,e[55]=m,e[56]=c,e[57]=U):U=e[57],U}function Xe(R){const e=A.c(20),{virtualMcpId:f,children:c}=R,s=z(),[d,m]=J.useState(!1),v=Ce(f),{activeTask:j}=H();if(K(v?.metadata)||K(j?.metadata))return c;let B;e[0]===Symbol.for("react.memo_cache_sentinel")?(B=a.jsx("div",{className:"flex size-14 items-center justify-center rounded-full bg-muted",children:a.jsx(G,{className:"size-7 text-foreground"})}),e[0]=B):B=e[0];let r;e[1]!==s?(r=s("mainPanelTabs.contentTab.noContentToEdit"),e[1]=s,e[2]=r):r=e[2];let t;e[3]!==s?(t=s("mainPanelTabs.contentTab.connectGithubDescription"),e[3]=s,e[4]=t):t=e[4];let h,n;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>m(!0),n=a.jsx(G,{className:"size-4"}),e[5]=h,e[6]=n):(h=e[5],n=e[6]);let u;e[7]!==s?(u=s("mainPanelTabs.previewTab.connectGithub"),e[7]=s,e[8]=u):u=e[8];let p;e[9]!==u?(p=a.jsxs(F,{onClick:h,children:[n,u]}),e[9]=u,e[10]=p):p=e[10];let i;e[11]!==r||e[12]!==t||e[13]!==p?(i=a.jsx(Pe,{className:"h-full",image:B,title:r,description:t,actions:p}),e[11]=r,e[12]=t,e[13]=p,e[14]=i):i=e[14];let S;e[15]!==d?(S=a.jsx(we,{open:d,onOpenChange:m,mode:"agent"}),e[15]=d,e[16]=S):S=e[16];let y;return e[17]!==i||e[18]!==S?(y=a.jsxs(a.Fragment,{children:[i,S]}),e[17]=i,e[18]=S,e[19]=y):y=e[19],y}export{Ve as B,Xe as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as jt,j as t,b as St,r as k,B as et,a9 as Et,I as ot,aP as vt,aO as Nt,aL as Ct,aJ as wt,aK as Pt,aN as kt,aM as Bt,b9 as Dt,h as Tt,t as B}from"./index-BGvfgBXQ.js";import{u as Ft}from"./chat-context-Dk_Ebz6D.js";import{i as L}from"./AlertCircle-BPb6lfDc.js";import{i as _t}from"./ArrowRight-DYc-7xj5.js";import{i as st}from"./File02-OGn6eCfs.js";import{d as At}from"./UserSquare-BAlzvt_y.js";import{L as O}from"./label-2ri5y0AT.js";import{S as Rt,b as Lt,a as Ot,d as zt,c as z}from"./select-BH6i4t87.js";import{b as It,C as Ht,a as Mt,c as Wt}from"./blog-schema-B993jmPJ.js";import{H as $t,u as Vt}from"./held-block-view-CB9_UtVc.js";import{a as Gt,b as I,j as p,T as Yt,s as qt,aM as Jt,o as Qt,aN as Ut,_ as Xt,aO as Zt,m as rt,a1 as Kt,a5 as te,W as ee,h as oe,l as se,aP as re,d as ie,f as ae,H as ne,aQ as le}from"./category-tree-B08EozIk.js";import{c as me}from"./blog-preview-url-CQF91dum.js";import{u as ce}from"./use-never-published-Dhj1oB8k.js";import{u as de}from"./use-move-blocks-CQpVSPWP.js";import{H as it}from"./hosted-reconcile-DipRdTAf.js";import{u as pe}from"./use-fast-preview-draft-url-Cyb7nHOV.js";import{u as ge}from"./use-autosave-phCMBUyD.js";import{S as ue}from"./save-status-96Apsuux.js";import{B as xe,a as he}from"./block-document-ClS1Gx3q.js";import{c as fe,T as ye,a as be}from"./tooltip-D0-ybZJ-.js";import"./use-panel-navigate-BEVdshk4.js";import"./thread-route-DI1GCHqT.js";import"./use-project-scope-DaSiwM20.js";import"./repository-binding-DrxBu24C.js";import"./use-mcp-client-CsG2AAiF.js";import"./auth-WUI0GELm.js";import"./use-view-draft-kind-Bm-Nz5rU.js";import"./use-blog-view-CZ2egr0r.js";import"./use-organization-settings-CcEgBKiR.js";import"./schema-DIQ-2mII.js";import"./task-board-DshmncwN.js";import"./thread-intent-DJ2isQQx.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-mz6vVQb7.js";import"./session-runtime-CnePJMYk.js";import"./use-entitlements-BnUu4797.js";import"./use-ai-providers-Cykm4Omp.js";import"./use-current-view-BhCzT_on.js";import"./use-in-settings-BZ-N_1GQ.js";import"./use-decopilot-events-DwV1bANi.js";import"./index-BdQq_4o_.js";import"./index-CpqnzQ6X.js";import"./ChevronDown-C0zFtKr8.js";import"./ChevronUp-CHkdbh-i.js";import"./UserCheck01-Dq2vpnim.js";import"./collapsible-C5AFdLwb.js";import"./utils-D3hrWqhu.js";import"./agent-icon-CFsULo4q.js";import"./Tool01-CIkfFpNs.js";import"./ArrowUp-bsUZSt57.js";import"./ArrowLeft-D_px05Ip.js";import"./BookOpen01-CKzuPfPT.js";import"./Globe04-BK5-p2nj.js";import"./CheckCircle-Dvda272I.js";import"./TrendUp01-Sag3n7qI.js";import"./ChevronSelectorVertical-BtbkxpS7.js";import"./LinkBroken01-sFiApfPs.js";import"./CreditCard01-BnEtKIxX.js";import"./MessageCircle01-LN8Gr1lL.js";import"./SwitchHorizontal01-BRSeU65r.js";import"./Eye-CE9bd3Ra.js";import"./Fingerprint04-ZnmHU3Kp.js";import"./Image01-Do_f-fPi.js";import"./Key01-C2Ozqf6q.js";import"./LayoutLeft-tXOkIxzs.js";import"./Minus-vz8sJtmc.js";import"./Monitor01-Ctq4Y9xp.js";import"./Sun-8QBdDNyc.js";import"./Play-B5OMs0GO.js";import"./Plus-KLH-MPJh.js";import"./SearchMd-1p8IP99o.js";import"./ShoppingBag01-BZ5p5Jaw.js";import"./Trash01-1e348d5z.js";import"./Upload01-DQiq1N5L.js";import"./Users01-CJNRoJXK.js";import"./XClose-CQjSvos9.js";import"./Zap-BbT-W69e.js";import"./blocks-tab-states-Dgkd6bcn.js";import"./site-editor-toast-DjTYO8yl.js";import"./use-sandbox-events-Bh6eTl2p.js";import"./sandbox-url-D3mC8qhT.js";import"./use-blocks-v8-project-BUDjuC95.js";import"./use-voice-input-l3y10Zzf.js";import"./popover-BdGhwX6j.js";import"./drawer-CQosC7Hh.js";import"./use-mobile-B4kazYmP.js";import"./index-ztFBZP-a.js";import"./checkbox-DR00CmJr.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./sandbox-git-api-lqhbN6-M.js";import"./empty-state-B5kfNSn2.js";import"./calendar-CCy2brqO.js";import"./textarea-C_mtz3Kv.js";import"./usage-stats-4TwUkhM4.js";import"./utils-CVEq3hMx.js";import"./markdown-Du_1i_DV.js";import"./use-copy-CzwPMJY2.js";import"./gateway-client-Dcj5rv8f.js";import"./form-Bmlz7qRb.js";import"./editor-classes-CiUorYg6.js";import"./switch-B7uarNO5.js";import"./task-key-PomUyZRb.js";import"./sortable.esm-CXd3MFy1.js";import"./toggle-group-BjeGXB13.js";import"./active-indicator-CCMhAsc_.js";import"./empty-message-CG0mkpBx.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-M_Ks4KYr.js";import"./use-task-board-items-BOf8g772.js";import"./config-Br1Io2is.js";import"./task-route-DIKoinWO.js";import"./project-index-D3eqGaeY.js";import"./shell-layout-MrR8EGxZ.js";import"./use-deployment-admin-U97at0FL.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-FqFlDSJV.js";import"./command-CRJnywSm.js";import"./index-B7BDvGS9.js";import"./integration-icon-nO6TvSsO.js";import"./project-icon-BUl2sFaB.js";import"./use-navigate-to-agent-CYt8D-re.js";import"./use-debounced-value-DNV71VAt.js";import"./new-project-dialog-BfJtWdgg.js";import"./repository-picker-Darc81nL.js";import"./github-icon-HoxHOYky.js";import"./useInfiniteQuery-Comohppg.js";import"./infiniteQueryObserver-CjHha6VI.js";import"./collection-search-ugxEd4a5.js";import"./new-project-store-CUIYzGdu.js";import"./legacy-admin-welcome-dialog-dJnURvJJ.js";import"./required-auth-layout-pSTI6t_x.js";import"./use-org-sso-CCCXGXRa.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CHuh8eBE.js";import"./types-DeHdmC2C.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-CX86ajAE.js";import"./use-connection-dER7f5j5.js";import"./use-mcp-prompts-DJkMWAp0.js";import"./use-thread-outputs-CBGDKGBc.js";import"./file-type-icon-Cst2WgHg.js";import"./section-array-field-08gf_aaJ.js";import"./named-rule-step-ikHUM8J-.js";import"./slider-B1Q72VZH.js";import"./index-DCNDjBOm.js";import"./tooltipContext-Dm5XB4Pa.js";import"./CategoricalChart-D0wEIkFu.js";import"./index-CrMNCOay.js";import"./combobox-BYBZebi0.js";import"./scroll-area-CLaLCTf7.js";import"./match-site-slug-config-B47_xZCi.js";import"./use-file-configs-D-0GlBYS.js";import"./asset-utils-DedHJB9N.js";import"./search-input-BytjnRYd.js";import"./tabs-s8CSecQV.js";import"./delete-copy-tGyXeEYr.js";import"./index-oZBvLpfd.js";import"./suggestion-Cpa996zU.js";import"./product-picker-dialog-CIU4p36P.js";import"./index-D4nZeJZF.js";const H="__none__";function je({orgSlug:r,virtualMcpId:s,branch:g,blockKey:n,block:y,decofile:x,meta:D,onManagePosts:at,onOpenPost:nt,previewBaseUrl:M,fastPreviewActive:lt=!0}){const o=St(),W=Ft()?.taskId??null,b=ce({orgSlug:r,virtualMcpId:s,branch:g},{holdsCopy:!0}),v=de({orgSlug:r,virtualMcpId:s,branch:g}),mt=pe({orgSlug:r,virtualMcpId:s,branch:g}),$=Gt(y,"categories"),V=e=>{const a=b.shown(e);return a?{[e]:a}:{}},[m,G,Y]=ge($,e=>{b.mutate({blockKey:n,data:I(n,"categories",e)})},{isSaving:b.isPending||v.isPending,onSeed:()=>b.hold(n)}),N=(e,a)=>G({...m,[e]:a}),ct=It("categories",D,Wt),R=Vt({orgSlug:r,virtualMcpId:s,branch:g},x),q=R.save,J=me({decofile:x,category:m,previewBaseUrl:M,draftPointer:lt?mt:null,meta:D}),i=p(m.slug),[Q,f]=k.useState(i),[U,j]=k.useState(null),[dt,pt]=k.useState(i);dt!==i&&(pt(i),f(i));const[d,T]=k.useState(null),[S,F]=k.useState(!1),X=i?Yt(x).filter(e=>e.categorySlugs.includes(i)):[],_=X.length,A=qt(x).categories,Z=(i?A.filter(e=>e.parentSlug===i):[]).length,gt=i?Jt(i,A).add(i):new Set,K=Qt(A).filter(({entry:e,depth:a})=>e.slug&&!gt.has(e.slug)&&a+1<Ut).map(({entry:e,depth:a})=>({slug:e.slug,label:e.label,depth:a})),C=p(m.parentSlug),ut=Xt(x,"categories",n,p(m.name)),E=Zt(m),xt=E.length===1?o("sandbox.postEditor.missingFieldSingular",{fields:rt(E,o)}):o("sandbox.postEditor.missingFieldPlural",{fields:rt(E,o)}),ht=e=>N("slug",e),tt=(e,a)=>{const c={name:p(a.name),slug:p(a.slug)},l={[n]:I(n,"categories",a)};let h=0;for(const{key:u,payload:w}of se(x)){const P=re(w,e,c);P!==w&&(l[u]=ie(u,ae(P)),h+=1)}if(e!==c.slug)for(const{key:u,payload:w}of ne(x,"categories")){if(u===n)continue;const P=le(w,e,c.slug);P!==w&&(l[u]=I(u,"categories",P))}return{writes:l,posts:h}},ft=async()=>{if(!i||S)return;const e=p(m.name),a={...m,name:e},{writes:c,posts:l}=tt(i,a);if(!(l===0&&e===p($.name))){F(!0);try{Y(a),await v.move({writes:c,deletes:[]},{shown:()=>V(n)}),l>0&&B.success(o("sandbox.categoryEditor.renameNameSuccess",{count:String(l)}))}catch(h){if(h instanceof it)return;B.error(h instanceof Error?h.message:o("sandbox.categoryEditor.renameFailed"))}finally{F(!1)}}},yt=async(e,a)=>{const c={...m,slug:a},{writes:l,posts:h}=tt(e,c);F(!0);try{Y(c),await v.move({writes:l,deletes:[]},{shown:()=>V(n)}),B.success(h>0?o("sandbox.categoryEditor.renameSuccessWithPosts",{count:String(h)}):o("sandbox.categoryEditor.renameSuccessNoPosts")),T(null)}catch(u){if(f(e),j(null),T(null),u instanceof it)return;B.error(u instanceof Error?u.message:o("sandbox.categoryEditor.renameFailed"))}finally{F(!1)}},bt=()=>{const e=ee(Q);if(f(e),e===i)return;if(!e){f(i),j(null);return}const a=A.filter(l=>l.key!==n).map(l=>p(l.slug)).filter(Boolean);let c=e;if(a.includes(e)){c=oe(e,a);const l=o("sandbox.categoryEditor.slugDeduped",{slug:c});f(c),j(l),B.info(l)}else j(null);if(_===0&&Z===0){ht(c);return}T({oldSlug:i,newSlug:c,count:_,children:Z})};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[t.jsx("span",{className:"truncate text-sm font-medium",children:p(m.name)||o("sandbox.categoryEditor.untitledCategory")}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[t.jsx(ue,{isPending:b.isPending||R.isPending||v.isPending,isError:b.isError||R.isError||v.isError}),E.length>0&&t.jsxs(fe,{children:[t.jsx(ye,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(L,{size:14}),E.length," ",E.length===1?o("sandbox.postEditor.issueSingular"):o("sandbox.postEditor.issuePlural")]})}),t.jsx(be,{side:"bottom",children:xt})]}),J&&t.jsxs(et,{type:"button",variant:"outline",size:"sm",title:o("sandbox.categoryEditor.previewTooltip"),onClick:()=>window.open(J,"_blank","noopener,noreferrer"),children:[t.jsx(Et,{size:14}),o("sandbox.categoryEditor.seeCategoryPreview")]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[t.jsx(Kt,{value:p(m.name),onChange:e=>N("name",e),readOnly:S,onBlur:()=>{ft()},placeholder:o("sandbox.categoryEditor.categoryNamePlaceholder"),className:"py-1 text-3xl font-bold text-foreground"}),ut&&t.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(L,{size:14,className:"mt-px shrink-0"}),o("sandbox.categoryEditor.duplicateNameWarning")]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(O,{htmlFor:"category-slug",children:o("sandbox.categoryEditor.slugLabel")}),t.jsx(ot,{id:"category-slug",value:Q,onChange:e=>{j(null),f(te(e.target.value))},onBlur:bt,placeholder:o("sandbox.categoryEditor.slugPlaceholder"),maxLength:80,className:"h-10"}),U&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(L,{size:14,className:"mt-px shrink-0"}),U]})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(O,{htmlFor:"category-parent",children:o("sandbox.categoryEditor.parentLabel")}),t.jsxs(Rt,{value:C||H,onValueChange:e=>N("parentSlug",e===H?void 0:e),children:[t.jsx(Lt,{id:"category-parent",className:"h-10 w-full",children:t.jsx(Ot,{})}),t.jsxs(zt,{children:[t.jsx(z,{value:H,children:o("sandbox.categoryEditor.parentNone")}),C&&!K.some(e=>e.slug===C)&&t.jsx(z,{value:C,children:C}),K.map(e=>t.jsx(z,{value:e.slug,children:t.jsx("span",{style:{paddingLeft:e.depth*12},children:e.label})},e.slug))]})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:o("sandbox.categoryEditor.parentDescription")})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(O,{htmlFor:"category-description",children:o("sandbox.categoryEditor.descriptionLabel")}),t.jsx(ot,{id:"category-description",value:p(m.description),onChange:e=>N("description",e.target.value),placeholder:o("sandbox.categoryEditor.descriptionPlaceholder"),className:"h-10"})]}),t.jsx(Ht,{schema:ct,value:m,onChange:G,basePath:"category",meta:D,decofile:x,sandbox:{orgSlug:r,virtualMcpId:s,branch:g,threadId:W},onSaveReferencedBlock:q}),t.jsx(Mt,{icon:At,title:o("sandbox.categoryEditor.contentTitle"),defaultOpen:!0,children:t.jsx(xe,{value:he(m.sections),onChange:e=>N("sections",e),meta:D,decofile:x,sandboxRef:{orgSlug:r,virtualMcpId:s,branch:g,threadId:W},previewBaseUrl:M,onSaveReferencedBlock:q,emptyMessage:o("sandbox.categoryEditor.noContentEmpty")})}),t.jsxs("div",{className:"mt-6 overflow-hidden rounded-lg border bg-muted/30",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(st,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:o("sandbox.categoryEditor.postsInCategory",{count:String(_)})})]}),t.jsxs(et,{type:"button",variant:"outline",size:"sm",disabled:!i,title:o(i?"sandbox.categoryEditor.pickPostsTooltip":"sandbox.categoryEditor.setSlugTooltip"),onClick:()=>at(i),children:[o("sandbox.categoryEditor.addPostsButton"),t.jsx(_t,{size:14})]})]}),_>0&&t.jsx("ul",{className:"divide-y border-t bg-background",children:X.map(e=>t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>nt(e.key),className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-left transition-colors hover:bg-accent cursor-pointer",children:[t.jsx(st,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"min-w-0 flex-1",children:[t.jsx("span",{className:"block truncate text-sm",children:e.title||o("sandbox.categoryEditor.untitledPost")}),e.slug&&t.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:e.slug})]})]})},e.key))})]})]})})]}),t.jsx(vt,{open:!!d,onOpenChange:e=>{e||S||(f(i),j(null),T(null))},children:t.jsxs(Nt,{children:[t.jsxs(Ct,{children:[t.jsx(wt,{children:o("sandbox.categoryEditor.renameDialogTitle")}),t.jsxs(Pt,{children:[d?o("sandbox.categoryEditor.renameDialogDescription",{oldSlug:d.oldSlug,newSlug:d.newSlug,count:String(d.count)}):null,d&&d.children>0?` ${o("sandbox.categoryEditor.renameDialogChildren",{count:String(d.children)})}`:null]})]}),t.jsxs(kt,{children:[t.jsx(Bt,{disabled:S,children:o("sandbox.categoryEditor.cancelButton")}),t.jsx(Dt,{onClick:e=>{e.preventDefault(),d&&yt(d.oldSlug,d.newSlug)},disabled:S,children:S?t.jsxs(t.Fragment,{children:[t.jsx(Tt,{className:"size-3.5"}),o("sandbox.categoryEditor.renamingLabel")]}):o("sandbox.categoryEditor.renameActionButton")})]})]})})]})}function vr(r){const s=jt.c(10),g=r.block!==void 0;let n;s[0]!==r?(n=t.jsx(je,{...r}),s[0]=r,s[1]=n):n=s[1];let y;return s[2]!==r.blockKey||s[3]!==r.branch||s[4]!==r.decofile||s[5]!==r.orgSlug||s[6]!==r.virtualMcpId||s[7]!==g||s[8]!==n?(y=t.jsx($t,{listing:r.decofile,orgSlug:r.orgSlug,virtualMcpId:r.virtualMcpId,branch:r.branch,blockKey:r.blockKey,present:g,children:n}),s[2]=r.blockKey,s[3]=r.branch,s[4]=r.decofile,s[5]=r.orgSlug,s[6]=r.virtualMcpId,s[7]=g,s[8]=n,s[9]=y):y=s[9],y}export{vr as CategoryEditor};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{c as x,j as b,bc as I,bf as Ke,bg as Ue,bd as me,bx as Ge,aI as ze,b as He,r as Ve,t as re,m as Z,B as Xe}from"./index-BGvfgBXQ.js";import{S as V,d as qe,f as We,u as ge,g as Ye,i as Je}from"./empty-message-CG0mkpBx.js";import{u as Qe}from"./use-move-blocks-CQpVSPWP.js";import{H as Ze}from"./hosted-reconcile-DipRdTAf.js";import{s as et}from"./session-runtime-CnePJMYk.js";import{W as tt,X as nt,w as ot}from"./blocks-tab-states-Dgkd6bcn.js";import{Y as st}from"./agent-icon-CFsULo4q.js";import{s as rt}from"./Plus-KLH-MPJh.js";import{s as it}from"./Trash01-1e348d5z.js";function In(t){const e=x.c(12),{state:n,claimPhase:o,lifecycle:s,onStart:r,connectionsHref:i}=t;switch(n.kind){case"starting":{let a;e[0]!==o||e[1]!==s?(a=qe({claimPhase:o,lifecycle:s}),e[0]=o,e[1]=s,e[2]=a):a=e[2];let u;return e[3]!==o||e[4]!==a?(u=b.jsx(V,{kind:"starting",progress:a,claimPhase:o}),e[3]=o,e[4]=a,e[5]=u):u=e[5],u}case"suspended":{let a;return e[6]!==r?(a=b.jsx(V,{kind:"suspended",onResume:r}),e[6]=r,e[7]=a):a=e[7],a}case"errored":{let a;return e[8]!==i||e[9]!==r||e[10]!==n.error?(a=b.jsx(V,{kind:"errored",error:n.error,onRetry:r,connectionsHref:i}),e[8]=i,e[9]=r,e[10]=n.error,e[11]=a):a=e[11],a}}}const at=new Set(["clone-failed","install-failed","start-failed","crashed"]);function Ln(t){if(t.fastPreviewActive)return{kind:"ready",devServerReady:!1,sandboxWarming:!1};if(t.previewState.kind!=="iframe")return{kind:"sandbox-card",state:t.previewState};const e=t.lifecyclePhase==="running",n=!e&&!at.has(t.lifecyclePhase);return{kind:"ready",devServerReady:e,sandboxWarming:n}}const ct=["draft","active","paused","finished"],ut=["launch","seasonal","trend","seo_gap","inventory","partnership","reputation"],lt=["awareness","education","conversion","retention","repositioning"],dt=["category","collection"],ft=3,jn=12,pt=60,mt=25,gt=8e3,ht=2e3,yt="vtex/loaders/intelligentSearch/productList.ts";function _(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function X(t){return typeof t=="string"||typeof t=="number"?String(t):""}function q(t){const e=_(t);return!!e&&typeof e.__resolveType=="string"&&"productId"in e}function Dn(t){if(typeof t=="string")return t?[t]:[];if(Array.isArray(t))return t.every(o=>typeof o=="string")?t:t.map(o=>X(_(o)?.productId));const e=_(t),n=_(e?.props);return n&&Array.isArray(n.ids)?n.ids.map(X):e&&"productId"in e?[X(e.productId)]:[]}function bt(t){const e=_(t)??{};return typeof e.__resolveType=="string"?e.__resolveType:yt}function St(t,e){if(typeof t=="string")return e[0]??"";if(Array.isArray(t)){if(t.length>0&&t.every(i=>typeof i=="string"))return e;const r=t.find(q);if(r)return e.map((i,a)=>{const u=_(t[a]);return{...q(u)?u:{__resolveType:r.__resolveType},productId:i}})}const n=_(t);if(q(n)&&!_(n.props)?.ids)return{...n,productId:e[0]??""};const o=_(n?.props)??{},s=bt(t);return{...n??{},__resolveType:s,props:{...o,ids:e,simulationBehavior:o.simulationBehavior??"default"}}}const vt=["title","titleTemplate","description","descriptionTemplate"];function he(t){return typeof t=="string"?t.trim():""}function ie(t){if(!Je(t))return"";const e=ge(t);if(!e)return"";const n=[];for(const o of vt){const s=he(e[o]);s&&n.push(`${o}: ${s}`)}return n.join(`
|
|
2
|
-
`).slice(0,ht)}function ye(t,e){const n=t[e.key],o=n&&typeof n=="object"?ge(n.seo):null,s=he(o?.__resolveType);if(s){const r=Ye(s);if(r==="pdp"||r==="plp")return"commerce"}return tt(e.path).length>0?"commerce":e.path==="/"?"home":"institutional"}function At(t,e){const n=[],o=new Set;let s=gt;const r=(l,p)=>{!p||o.has(p)||n.length>=mt||p.length>s||(o.add(p),n.push({key:l,content:p}),s-=p.length)},i=We(t);i&&r("site",ie(i.seoData));const a={home:[],institutional:[],commerce:[]};for(const l of e)a[ye(t,l)].push(l);const u=[...a.home,...a.institutional,...a.commerce.slice(0,2)];for(const l of u){const p=t[l.key];!p||typeof p!="object"||r(l.path,ie(p.seo))}return n}const W={post:"blog/loaders/Blogpost.ts",author:"blog/loaders/Author.ts",category:"blog/loaders/Category.ts"},be=["posts","authors","categories"],Mn={posts:"post",authors:"author",categories:"category"};function $n(t){return be.includes(t)}const $={posts:"post",authors:"author",categories:"category"},Se={posts:W.post,authors:W.author,categories:W.category},_t=Object.fromEntries(Object.entries(Se).map(([t,e])=>[e,t]));function ve(t){return typeof t=="string"?_t[t]??null:null}function Fn(t){return ve(t)!==null}function m(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function c(t){return typeof t=="string"?t:""}function Ct(t,e){switch(t){case"posts":return{label:c(e.title)||"Untitled post",subtitle:c(e.slug),missing:F(e)};case"authors":return{label:c(e.name)||"Unnamed author",subtitle:c(e.email),missing:[]};case"categories":return{label:c(e.name)||"Unnamed category",subtitle:c(e.slug),slug:c(e.slug),parentSlug:c(e.parentSlug),missing:It(e)};default:{const n=t;throw new Error(`Unhandled blog kind: ${String(n)}`)}}}function wt(t){const e={posts:[],authors:[],categories:[]},n=[];for(const[o,s]of Object.entries(t)){const r=m(s);if(!r)continue;const i=ve(r.__resolveType);if(!i)continue;const a=m(r[$[i]])??{},u={key:o,kind:i,...Ct(i,a)};e[i].push(u),n.push({entry:u,key:M(c(a[i==="posts"?"title":"name"]))})}xt(n);for(const o of be)e[o].sort((s,r)=>s.label.localeCompare(r.label));return e}function xt(t){const e=new Map;for(const{entry:n,key:o}of t){if(!o)continue;const s=`${n.kind}:${o}`;e.set(s,(e.get(s)??0)+1)}for(const{entry:n,key:o}of t)o&&(e.get(`${n.kind}:${o}`)??0)>1&&(n.duplicateName=!0)}function Et(t,e){return wt(t)[e]}function w(t,e){return Et(t,e).map(n=>({key:n.key,payload:ee(m(t[n.key])??void 0,e)}))}const Y=Object.freeze({});function ee(t,e){return t?m(t[$[e]])??Y:Y}function Ae(t,e,n){return{name:t,__resolveType:Se[e],[$[e]]:n}}function Kn({records:t,selected:e,valueField:n,toRef:o}){const s=Array.isArray(e)?e:[],r=d=>typeof d=="string"?d:c(m(d)?.[n]),i=d=>typeof d=="string"?d:c(m(d)?.name),a=d=>{const f=r(d),h=f?t.find(({payload:E})=>c(E[n])===f):void 0;if(h)return h;const y=i(d);return y?t.find(({payload:E})=>c(E.name)===y):void 0},u=t.map(({key:d,payload:f})=>({value:d,label:c(f.name)||c(f[n])||d})),l=new Map,p=[];return s.forEach((d,f)=>{const h=a(d);if(h){p.includes(h.key)||p.push(h.key);return}const y=`unresolved:${f}`;l.set(y,d),p.push(y),u.push({value:y,label:i(d)||r(d)||"Unknown"})}),{options:u,selectedValues:p,refsForValues:d=>d.map(f=>{const h=t.find(y=>y.key===f);return h?o(h.payload):l.get(f)}).filter(f=>f!==void 0)}}function Un(t){return w(t,"authors").map(({payload:e})=>({...e,name:c(e.name),email:c(e.email)})).filter(e=>e.email)}function v(t){return Array.isArray(t)?t:[]}function C(t){if(typeof t=="string")return t;const e=m(t);return e?c(e.slug):""}function _e(t){if(typeof t=="string")return t;const e=m(t);return e?c(e.email):""}const kt={title:"sandbox.blogField.title",slug:"sandbox.blogField.slug",category:"sandbox.blogField.category",excerpt:"sandbox.blogField.excerpt",image:"sandbox.blogField.image",name:"sandbox.blogField.name"};function Gn(t,e){return t.map(n=>e(kt[n])).join(", ")}function F(t){const e=[];return c(t.title).trim()||e.push("title"),c(t.slug).trim()||e.push("slug"),v(t.categories).map(C).filter(Boolean).length===0&&e.push("category"),c(t.excerpt).trim()||e.push("excerpt"),c(t.image).trim()||e.push("image"),e}const zn=["draft","generating","awaiting_review","scheduled","published","archived"],Pt=8;function T(t){switch(c(t.status)){case"draft":case"idea":return"draft";case"generating":return"generating";case"awaiting_review":case"in_review":return"awaiting_review";case"scheduled":return"scheduled";case"published":return"published";case"archived":return"archived";case"":return"published";default:return"awaiting_review"}}function Hn(t){return T(t)==="archived"}function Tt(t,e){return e!=="published"&&e!=="scheduled"||T(t)===e?!1:F(t).length>0}function Ot(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+1,Pt).toISOString()}function Ce(t,e,n){if(e!=="scheduled")return{...t,status:e,scheduledDatetime:""};const o=c(t.scheduledDatetime);return{...t,status:"scheduled",scheduledDatetime:Number.isNaN(new Date(o).getTime())?Ot(n):o}}function Bt(t,e=je(t)){return w(t,"posts").map(({key:n,payload:o})=>({key:n,duplicateTitle:e.has(n),title:c(o.title)||"Untitled post",slug:c(o.slug),date:c(o.date),scheduledDatetime:c(o.scheduledDatetime),categorySlugs:v(o.categories).map(C).filter(Boolean),authorEmails:v(o.authors).map(_e).filter(Boolean),missing:F(o),status:T(o),form:"live"}))}function Vn(){return P(12)}function Xn(t){const e=m(t.planning)??{},n=m(e.format);return{campaignKey:c(e.campaignKey)||void 0,format:n?{name:c(n.name),value:c(n.value)}:void 0,brief:c(e.brief)||void 0}}function we(t=!1){return t?{content:""}:{sections:[]}}function qn(t){return{title:t.title,slug:"",excerpt:"",date:t.now.toISOString().slice(0,10),image:"",alt:"",authors:[],categories:[],...we(t.legacyContent),status:"draft",planning:t.planning??{}}}function xe(t,e){return{name:t,[$.posts]:e}}function Wn(t,e){return me(t)?xe(t,e):Ae(t,"posts",e)}function Ee(t){const e=[];for(const[n,o]of Object.entries(t)){if(!me(n))continue;const s=m(o);s&&e.push({key:n,payload:ee(s,"posts")})}return e}function Nt(t){return[...Ee(t),...w(t,"posts")]}function Yn(t){const e=je(t);return[...Ee(t).map(({key:o,payload:s})=>({key:o,duplicateTitle:e.has(o),title:c(s.title)||"Untitled post",slug:c(s.slug),date:c(s.date),scheduledDatetime:c(s.scheduledDatetime),categorySlugs:v(s.categories).map(C).filter(Boolean),authorEmails:v(s.authors).map(_e).filter(Boolean),missing:F(s),status:T(s),form:"planning"})),...Bt(t,e)]}function Rt(t,e,n){const o=Ce(t.payload,e,n),s=I(t.key),r=e==="scheduled"||e==="published"?"live":"planning",i=r==="live"?Ke(s):Ue(s),a=r==="live"?Ae(i,"posts",o):xe(i,o);return{writes:{[i]:a},deletes:i===t.key?[]:[t.key]}}function Jn(t,e,n){const o=v(t.categories);if(!o.some(u=>C(u)===e))return t;let s=!1;const r=o.map(u=>{const l=C(u);if(l!==e&&l!==n.slug)return u;const p=m(u);return p&&c(p.slug)===n.slug&&c(p.name)===n.name?u:(s=!0,{name:n.name,slug:n.slug})});if(!s){const u=o.map(C).filter(Boolean);if(new Set(u).size===u.length)return t}const i=new Set,a=r.filter(u=>{const l=C(u);return l?i.has(l)?!1:(i.add(l),!0):!0});return{...t,categories:a}}function It(t){const e=[];return c(t.name).trim()||e.push("name"),c(t.slug).trim()||e.push("slug"),e}function Qn(t,e){const n=v(t.categories);return n.some(o=>C(o)===e)?{...t,categories:n.filter(o=>C(o)!==e)}:t}function Zn(t,e,n){return c(t.parentSlug)!==e?t:{...t,parentSlug:n}}function eo(t){const e=c(t.status),n=e==="idea"||e==="in_review"?{status:T(t)}:{};return{...t,...n,dateModified:new Date().toISOString()}}function P(t){const e=new Uint8Array(Math.ceil(t/2));return crypto.getRandomValues(e),Array.from(e,n=>n.toString(16).padStart(2,"0")).join("").slice(0,t)}function to(t,e){const n=`collections/blog/${e}/${P(12)}`;if(!Object.hasOwn(t,n))return n;throw new Error("Could not generate a unique blog block key")}function no(t,{legacyContent:e=!1}={}){switch(t){case"posts":return{title:"Untitled post",excerpt:"",slug:`untitled-${P(8)}`,date:new Date().toISOString().slice(0,10),image:"",alt:"",authors:[],categories:[],...we(e)};case"authors":return{name:"New author",type:"Person",email:"",jobTitle:"",company:"",url:"",avatar:""};case"categories":return{name:"New category",slug:`category-${P(8)}`,description:"",sections:[]};default:{const n=t;throw new Error(`Unhandled blog kind: ${String(n)}`)}}}const Lt={Paragraph:{title:"Paragraph",description:"Rich text content",iconName:"Pilcrow01"},Heading:{title:"Heading",description:"Section title (H1–H6)",iconName:"HeadingSquare"},Quote:{title:"Quote",description:"Pull quote",iconName:"MessageTextSquare02"},Code:{title:"Code",description:"Code block with syntax highlighting",iconName:"Code02"},List:{title:"List",description:"Bulleted or numbered list",iconName:"List"},BlockImage:{title:"Image",description:"Image with optional caption",iconName:"Image01"},Video:{title:"Video",description:"Embedded video",iconName:"PlayCircle"},Divider:{title:"Divider",description:"Horizontal divider",iconName:"Divider"},Cta:{title:"Call to action",description:"Button linking to a URL",iconName:"CursorClick01"},Callout:{title:"Callout",description:"Highlighted note, tip or warning",iconName:"Lightbulb02"},Stat:{title:"Stat",description:"Single key metric",iconName:"BarChartSquareUp"},StatGroup:{title:"Stat group",description:"Row of metrics",iconName:"BarChartSquare02"},CardGroup:{title:"Card group",description:"Grid of cards",iconName:"LayoutGrid01"},Checklist:{title:"Checklist",description:"List of check items",iconName:"CheckSquare"},Steps:{title:"Steps",description:"Step-by-step guide",iconName:"LayersThree01"},Comparison:{title:"Comparison",description:"Side-by-side comparison",iconName:"Columns03"},Table:{title:"Table",description:"Rows and columns of structured data",iconName:"Table"},ProductCard:{title:"Product card",description:"Single product",iconName:"Tag01"},ProductShelf:{title:"Product shelf",description:"Row of products",iconName:"ShoppingBag01"}},ae="Box";function ke(t){return t.startsWith("blog/")?"app":"site"}function jt(t){return t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")||t.startsWith("/")}function B(...t){for(const e of t)if(e!==void 0)return e}function ce(t){if(t&&!(t.includes("/")||/\.(tsx?|jsx?)$/.test(t)))return t}function Dt(t){const e=t.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[-_]+/g," ").trim();return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():t}function Mt(t,e){const n=ot(t,e),o=K(t),s=Lt[o],r=ke(t),i=ce(n.title),a=ce(n.description),u=(r==="site"?B(i,s?.title):B(s?.title,i))??Dt(o),l=r==="site"?B(a,s?.description):B(s?.description,a),p=r==="site"?n.icon:void 0,g=p&&jt(p)?p:void 0,d=g!==void 0?s?.iconName??ae:B(p,s?.iconName)??ae;return{resolveType:t,title:u,description:l,iconName:d,iconUrl:g,source:r}}function Pe(t,{hideDefaults:e=!1,customPaths:n=[]}={}){const o=new Set,s=[],r=t.manifest?.blocks??{};for(const[i,a]of Object.entries(r))for(const u of Object.keys(a))o.has(u)||!(i==="sections"&&Te(u,n)&&!nt(u,t))&&!Ft(u)||e&&ke(u)==="app"||(o.add(u),s.push(Mt(u,t)));return s.sort((i,a)=>i.title.localeCompare(a.title))}function K(t){return(t.split("/").pop()??t).replace(/\.(tsx?|jsx?)$/,"")}const $t=["blog/sections/blocks/","site/sections/Blog/Post/"];function Ft(t,e=[]){return $t.some(n=>t.startsWith(n))||Te(t,e)}function Te(t,e){if(e.length===0)return!1;const n=t.toLowerCase();return e.some(o=>n===o||n.startsWith(`${o}/`))}const Kt=/\/blog\.tsx?$/;function Ut(t){const e=[];for(const[n,o]of Object.entries(t)){if(n.includes("/")||!o||typeof o!="object"||Array.isArray(o))continue;const s=o;typeof s.__resolveType=="string"&&Kt.test(s.__resolveType)&&e.push(s)}return e}const Gt=Ge(ze());function oo(t){const e=new Set;for(const n of Ut(t)){const o=Gt.safeParse(n.customSectionPaths);if(o.success)for(const s of o.data){const r=s.trim().replace(/^\/+|\/+$/g,"").toLowerCase();r&&e.add(r)}}return[...e]}const zt="blog-manager-brand",Ht="blog-manager-context",Oe=["companyName","description","language","storeUrl","targetAudience","values","competitors","keywords","commercialPolicies","specialDates"],Be=["tone","dos","avoid","categories","vocabulary","voiceExamples"];function so(t){return m(t)??Y}function D(t,e){const n={};for(const o of e)o in t&&(n[o]=t[o]);return n}function ro(t,e,n){const o=D(t,Oe);if(m(n))return o;const s=m(e)??{};return{...D(s,Be),...o}}function Vt(t,e){const n=m(t)??{},o=m(e),s=D(n,Oe),r=o??D(n,Be);return{brand:s,context:r,merged:{...s,...r}}}function io(t){return Vt(t[zt],t[Ht])}function ao(t){return{companyName:c(t.companyName),description:c(t.description),language:c(t.language),storeUrl:et(c(t.storeUrl))??"",tone:c(t.tone),targetAudience:c(t.targetAudience),values:A(S(t.values)),competitors:A(S(t.competitors)),specialDates:A(S(t.specialDates)),dos:A(S(t.dos)),avoid:A(S(t.avoid)),keywords:R(N(t.keywords)),commercialPolicies:A(S(t.commercialPolicies)),vocabulary:A(S(t.vocabulary)),voiceExamples:Q(J(t.voiceExamples))}}function J(t){if(!Array.isArray(t))return[];const e=[];for(const n of t){if(typeof n=="string"){n.trim()&&e.push({text:n,sounds:!0});continue}const o=m(n);if(!o)continue;const s=c(o.text)||c(o.value);e.push({text:s,sounds:o.sounds!==!1})}return e}function Q(t){return t.filter(e=>e.text.trim())}function co(t,e,n){const o=[];for(const s of n.textFields){const r=c(e[s]).trim();r&&(n.mode==="empty"&&c(t[s]).trim()||(t[s]=r,o.push(s)))}for(const s of n.ruleFields){const r=A(S(e[s]));r.length!==0&&(n.mode==="empty"&&A(S(t[s])).length>0||(t[s]=r,o.push(s)))}for(const s of n.termFields??[]){const r=R(N(e[s]));r.length!==0&&(n.mode==="empty"&&R(N(t[s])).length>0||(t[s]=r,o.push(s)))}for(const s of n.exampleFields??[]){const r=Q(J(e[s]));r.length!==0&&(n.mode==="empty"&&Q(J(t[s])).length>0||(t[s]=r,o.push(s)))}return o}function N(t){if(!Array.isArray(t))return[];const e=[];for(const n of t){if(typeof n=="string"){e.push(n);continue}const o=m(n);o&&e.push(c(o.name)||c(o.value))}return e}function R(t){return t.filter(e=>e.trim())}function S(t){if(!Array.isArray(t))return[];const e=[];for(const n of t){if(typeof n=="string"){n.trim()&&e.push({name:n,value:""});continue}const o=m(n);o&&e.push({name:c(o.name),value:c(o.value)})}return e}function A(t){return t.filter(e=>e.name.trim()||e.value.trim())}const Xt=6e4,qt=4e3;function Wt(t){const e=[],n=new Set,o=(s,r)=>{if(typeof s=="string"){if(!s.includes(" ")||s.length<4||/^(https?:)?\/\//.test(s)||/^data:/.test(s))return;const i=`${r}: ${s.trim()}`;if(n.has(i))return;n.add(i),e.push(i);return}if(Array.isArray(s)){for(const i of s)o(i,r);return}if(s&&typeof s=="object")for(const[i,a]of Object.entries(s))i!=="__resolveType"&&o(a,i)};return o(t,"block"),e.join(`
|
|
3
|
-
`)}function uo(t,e){const n=new Map,o=d=>{const f=n.get(d);if(f!==void 0)return f;const h=Wt(t[d]).slice(0,qt);return n.set(d,h),h},s=(d,f)=>o(f).length-o(d).length,r=At(t,e),i=r.reduce((d,f)=>d+f.content.length,0),a={home:[],institutional:[],commerce:[]};for(const d of e)a[ye(t,d)].push(d.key);const u=[...w(t,"posts").map(d=>d.key).sort(s),...w(t,"categories").map(d=>d.key),...a.home,...a.institutional.sort(s),...a.commerce.sort(s)],l=[],p=new Set;let g=Math.max(0,Xt-i);for(const d of u){if(l.length>=pt)break;if(p.has(d)||!t[d])continue;p.add(d);const f=o(d);if(f.length>g)break;l.push({key:d,content:f}),g-=f.length}return{blocks:l,seo:r}}const Ne="blog-manager/campaigns/";function lo(){return`${Ne}${crypto.randomUUID()}`}function L(t,e,n){return t.find(o=>o===e)??n}function ue(t){return c(t)||null}function Yt(t){const e=[];for(const n of v(t)){const o=m(n);o&&e.push({kind:L(dt,o.kind,"category"),id:c(o.id),name:c(o.name),url:c(o.url),description:c(o.description)})}return e}function Jt(t){const e=v(t.images).map(o=>c(o));return(e.length>0?e:[c(t.image)].filter(Boolean)).slice(0,ft)}function Qt(t){const e=[];for(const n of v(t)){const o=m(n);o&&e.push({id:c(o.id),name:c(o.name),url:c(o.url),images:Jt(o),category:c(o.category),description:c(o.description)})}return e}function fo(t,e){return{name:t,campaignName:e.name,seedKey:e.seedKey,status:e.status,period:{start:e.period.start??"",end:e.period.end??""},trigger:{type:e.trigger.type,note:e.trigger.note},intent:{objective:e.intent.objective,targets:e.intent.targets,products:e.intent.products,keywords:e.intent.keywords},guardrails:{avoidComplements:e.guardrails.avoidComplements,toneOverrides:e.guardrails.toneOverrides},createdAt:e.createdAt,updatedAt:e.updatedAt}}function po(t){const e=[];for(const[n,o]of Object.entries(t)){if(!n.startsWith(Ne))continue;const s=m(o);if(!s)continue;const r=m(s.period)??{},i=m(s.trigger)??{},a=m(s.intent)??{},u=m(s.guardrails)??{};e.push({key:n,name:c(s.campaignName),seedKey:c(s.seedKey),status:L(ct,s.status,"draft"),period:{start:ue(r.start),end:ue(r.end)},trigger:{type:L(ut,i.type,"seasonal"),note:c(i.note)},intent:{objective:L(lt,a.objective,"awareness"),targets:Yt(a.targets),products:Qt(a.products),keywords:R(N(a.keywords))},guardrails:{avoidComplements:S(u.avoidComplements),toneOverrides:c(u.toneOverrides)},createdAt:c(s.createdAt),updatedAt:c(s.updatedAt)})}return e.sort((n,o)=>o.createdAt.localeCompare(n.createdAt)||n.name.localeCompare(o.name))}function mo(t){const e=t.toISOString();return{name:"",seedKey:"",status:"draft",period:{start:null,end:null},trigger:{type:"seasonal",note:""},intent:{objective:"awareness",targets:[],products:[],keywords:[]},guardrails:{avoidComplements:[],toneOverrides:""},createdAt:e,updatedAt:e}}const Re="blog-manager/campaign-seeds/";function go(){return`${Re}${crypto.randomUUID()}`}function ho(t,e){return{name:t,seedName:e.name,keywords:e.keywords,prompt:e.prompt,createdAt:e.createdAt,updatedAt:e.updatedAt}}function yo(t){const e=[];for(const[n,o]of Object.entries(t)){if(!n.startsWith(Re))continue;const s=m(o);s&&e.push({key:n,name:c(s.seedName),keywords:R(N(s.keywords)),prompt:c(s.prompt),createdAt:c(s.createdAt),updatedAt:c(s.updatedAt)})}return e.sort((n,o)=>o.createdAt.localeCompare(n.createdAt)||n.name.localeCompare(o.name))}function bo(t){const e=t.toISOString();return{name:"",keywords:[],prompt:"",createdAt:e,updatedAt:e}}const So="blog-manager-formats",Zt=40;function vo(t){return w(t,"posts").slice(0,Zt).map(({key:e,payload:n})=>({key:e,title:c(n.title),sections:v(n.sections).map(o=>c(m(o)?.__resolveType)).filter(Boolean).map(K)}))}function en(t,e){return Pe(t,e).map(n=>({name:K(n.resolveType),resolveType:n.resolveType,title:n.title,description:n.description}))}function Ie(t,e={}){const n=new Set,o=/\[@[^\]]+\]\(([^)\s]+)\)/g;for(const r of t.matchAll(o))r[1]&&n.add(r[1]);const s=/(?:^|[\s([{>])@([A-Za-z][\w-]*)/g;for(const r of t.replace(o," ").matchAll(s)){const i=r[1];i&&n.add(e[i]??i)}return[...n]}function Ao(t,e,n={}){const o=new Set(e);return Ie(t,n).filter(s=>!o.has(s))}function _o(t,e){const n=/\[@[^\]]+\]\([^)\s]+\)/g,o=[];let s=0;for(const r of t.matchAll(n)){const i=r.index??0;o.push(le(t.slice(s,i),e),r[0]),s=i+r[0].length}return o.push(le(t.slice(s),e)),o.join("")}function le(t,e){return t.replace(/(^|[\s([{>])@([A-Za-z][\w-]*)/g,(n,o,s)=>{const r=e[s];return r?`${o}[@${s}](${r})`:n})}const tn=["Heading","Paragraph","BlockImage","List","Cta"];function Co(t){return tn.filter(e=>e in t)}function M(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase().replace(/\s+/g," ").trim()}function wo(t,e,n,o){const s=M(o);return s?Le(t,e).some(r=>r.key!==n&&M(r.name)===s):!1}function Le(t,e){return e!=="posts"?w(t,e).map(({key:n,payload:o})=>({key:n,name:c(o.name)})):Nt(t).map(({key:n,payload:o})=>({key:n,name:c(o.title)}))}function je(t){const e=new Map;for(const{key:o,name:s}of Le(t,"posts")){const r=M(s);if(!r)continue;const i=e.get(r);i?i.push(o):e.set(r,[o])}const n=new Set;for(const o of e.values())if(o.length>1)for(const s of o)n.add(s);return n}const nn=["companyName","language","description","tone","targetAudience"];function xo(t){const e=m(t)??{},n=[];for(const o of nn)c(e[o]).trim()||n.push(o);return A(S(e.dos)).length===0&&n.push("dos"),A(S(e.avoid)).length===0&&n.push("avoid"),n}function on(t,e){const n=t.required;if(!Array.isArray(n))return;const o=new Set(e&&typeof e=="object"?Object.keys(e):[]),s=n.filter(r=>typeof r=="string"&&o.has(r));return s.length>0?s:void 0}const sn=6,rn=6e3;function an(t){const e=t.schema??{},n=e.$defs??e.definitions;return n&&typeof n=="object"?n:{}}function cn(t,e){for(const n of Object.values(e.manifest?.blocks??{})){const o=n[t];if(o)return o}}function j(t,e,n){if(Array.isArray(t))return t.map(r=>j(r,e,n));if(!t||typeof t!="object")return t;const o=t;if(typeof o.$ref=="string"){if(n>=sn)return{};const r=o.$ref.split("/").pop()??"",i=e[r];return i===void 0?{}:j(i,e,n+1)}const s={};for(const[r,i]of Object.entries(o))s[r]=j(i,e,n);return s}function un(t,e){const n=an(e),o=j(cn(t,e),n,0);if(!o||typeof o!="object")return{};const s=o,r=s.allOf,i=Array.isArray(r)&&r.length===1?r[0]:s;if(!i||typeof i!="object")return{};const{$schema:a,...u}=i,l=de(u);return JSON.stringify(l).length>rn?de(u,!0):l}function de(t,e=!1){const n={...t},o=n.properties;if(o&&typeof o=="object"){const s=Object.fromEntries(Object.entries(o).filter(([r])=>!r.startsWith("__")).map(([r,i])=>[r,e?De(i):i]));n.properties=s,n.required=on(n,s),n.required||delete n.required}return n}function De(t){if(!t||typeof t!="object")return t;const e=t,n={};for(const o of["type","description","format","options","enum"])o in e&&(n[o]=e[o]);return Array.isArray(e.anyOf)&&(n.anyOf=e.anyOf.map(De)),n}function ln(t){if(t==null)return null;if(Array.isArray(t))return"array";const e=typeof t;return e==="number"||e==="boolean"||e==="string"||e==="object"?e:null}function dn(t,e){const n=t.properties;if(!e||!n||typeof n!="object")return t;const o=n;let s=!1;const r={};for(const[i,a]of Object.entries(o)){const u=a&&typeof a=="object"?{...a}:a,l=u?.type,p=ln(e[i]);u&&typeof u=="object"&&p&&typeof l=="string"&&l!==p&&(delete u.type,delete u.enum,s=!0),r[i]=u}return s?{...t,properties:r}:t}const fn={Paragraph:{html:"<p>A dúvida entre 9000 ou 12000 BTUs é a mais comum na hora de escolher.</p>"},Heading:{text:"Antes de escolher: o resumo",level:"h2"},Quote:{quote:"Levei só a mala de bordo e não senti falta de nada.",attribution:"Ana, leitora"},List:{items:`<strong>Tecnologia Inverter:</strong> temperatura mais estável;
|
|
4
|
-
<strong>Gaveta HortiNatura:</strong> frescor por duas vezes mais tempo;`,style:"unordered"},BlockImage:{url:"https://cdn.exemplo.com/2026/10/mochila.webp",alt:"Mochila escolar azul apoiada em uma cadeira de sala de aula",size:"full"},Video:{url:"https://www.youtube.com/watch?v=dQw4w9WgXcQ",caption:"Como medir a capacidade da mala"},Divider:{},Cta:{text:"Ver toda a linha Escolar",href:"/escolar"},Callout:{title:"VOCÊ SABIA?",body:"Pediatras recomendam que a mochila carregada não passe de 10% do peso da criança.",variant:"tip"},Code:{code:"const total = itens.length;",language:"ts"},Stat:{value:"30%",label:"menos desperdício",description:"Comparado ao modelo anterior da mesma linha."},StatGroup:{stats:'[{"value":"30%","label":"menos desperdício"},{"value":"2x","label":"mais frescor"}]'},CardGroup:{cards:'[{"title":"Pré-escola","body":"Pouco material, mochila pequena."},{"title":"Fundamental","body":"Cadernos e livros pesam; considere rodinhas."}]'},Checklist:{title:"Antes de comprar, confira",items:'["Capacidade em litros","Alças acolchoadas","Compartimento para notebook"]'},Steps:{title:"Como medir",steps:'[{"title":"Meça a altura","description":"Da base ao topo, sem as alças."},{"title":"Some a profundidade"}]'},Comparison:{left:'{"title":"Com rodinhas","items":["Poupa a coluna","Mais pesada vazia"]}',right:'{"title":"De costas","items":["Mais leve","Exige ajuste das alças"]}'},Table:{headers:'["Modelo","Capacidade","Preço"]',rows:'[["Bordo","38L","R$ 399"],["Média","68L","R$ 599"]]'}},pn=600;function mn(t,e){for(const{payload:n}of w(e,"posts"))for(const o of v(n.sections)){const s=m(o);if(!s||s.__resolveType!==t)continue;const{__resolveType:r,...i}=s;if(Object.keys(i).length!==0&&!(JSON.stringify(i).length>pn))return i}}function Eo(t,e,n,o){const s=en(e,o),r=gn(e,o),i=new Set(Ie(t.value,r)),a=s.filter(g=>i.has(g.resolveType)),u=a.length>0?a:s,l=new Set,p=[];for(const g of u){if(l.has(g.name)||r[g.name]!==g.resolveType)continue;l.add(g.name);const d=mn(g.resolveType,n)??fn[g.name];p.push({name:g.name,title:g.title,description:g.description??"",schema:dn(un(g.resolveType,e),d),example:d})}return p}function gn(t,e){const n={};for(const o of Pe(t,e)){const s=K(o.resolveType);s in n||(n[s]=o.resolveType)}return n}function hn(t,e,n={}){const o=[];for(const s of t){const r=e[s.type];if(!r)continue;const i=Sn(s.props,s.productIds??[],n[s.type]);o.push({__resolveType:r,...i})}return o}const yn=["product","products"];function bn(t){const e=m(t);return e?yn.find(n=>n in e)??null:null}function Sn(t,e,n){const o=e.filter(Boolean),s=bn(n);if(o.length===0||!s)return t;const r=n[s];return{...t,[s]:St(r,o)}}const te=80;function vn(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,te)}function ko(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+/,"").slice(0,te)}function fe(t,e){const n=te-e.length-1;return`${t.slice(0,n).replace(/-+$/,"")}-${e}`}function Me(t,e,n){const o=vn(t)||`${n}-${P(6)}`,s=new Set(e);if(!s.has(o))return o;for(let r=2;r<100;r++){const i=fe(o,String(r));if(!s.has(i))return i}return fe(o,P(4))}function An(t,e){return Me(t,e,"post")}function Po(t,e){return Me(t,e,"category")}function To({draft:t,resolveTypes:e,productShapes:n,categories:o,authors:s,planning:r,takenSlugs:i,now:a}){const u=new Set(t.categorySlugs),l=new Set(t.authorEmails),p={title:t.title,slug:An(t.title,i),date:a.toISOString().slice(0,10),excerpt:t.excerpt,image:t.cover.url,alt:t.cover.alt,authors:s.filter(g=>l.has(g.email)),categories:o.filter(g=>u.has(g.slug)),seo:{title:t.seo.title,description:t.seo.description,image:t.cover.url},sections:hn(t.sections,e,n),planning:r??{}};return Ce(p,"awaiting_review",a)}const Oo={draft:"sandbox.postBoard.laneDraft",generating:"sandbox.postBoard.laneGenerating",awaiting_review:"sandbox.postBoard.laneAwaitingReview",scheduled:"sandbox.postBoard.laneScheduled",published:"sandbox.postBoard.lanePublished",archived:"sandbox.postBoard.laneArchived"};function Bo({orgSlug:t,virtualMcpId:e,branch:n,decofile:o,onMoved:s}){const r=He(),i=Qe({orgSlug:t,virtualMcpId:e,branch:n}),[a,u]=Ve.useState(new Set),l=f=>ee(o[f],"posts"),p=(f,h,y=l(f))=>h==="generating"?{kind:"not-a-target"}:a.has(I(f))?{kind:"in-flight"}:Tt(y,h)?{kind:"incomplete"}:null,g=f=>{switch(f.kind){case"incomplete":return r("sandbox.postBoard.moveBlocked");case"in-flight":return r("sandbox.postBoard.moveInFlight");case"not-a-target":return r("sandbox.postBoard.moveNotATarget");default:return String(f)}};return{apply:async(f,h,y,E)=>{const z=y??l(f);if(T(z)===h)return null;const H=p(f,h,z);if(H)return H.kind!=="in-flight"&&re.error(g(H)),null;const ne=I(f);u(k=>new Set(k).add(ne));const oe=Rt({key:f,payload:z},h,new Date),O=Object.keys(oe.writes)[0]??f;O!==f&&s?.(f,O);try{return await i.move(oe,{shown:E}),O}catch(k){return O!==f&&s?.(O,f),k instanceof Ze||re.error(k instanceof Error?k.message:r("sandbox.postBoard.moveFailed")),null}finally{u(k=>{const se=new Set(k);return se.delete(ne),se})}},refuse:p,reasonText:g,isMoving:f=>a.has(I(f))}}function _n(t){const e=x.c(15),{value:n,onChange:o,placeholder:s,className:r,onFocus:i,onBlur:a,onKeyDown:u,spellCheck:l,readOnly:p,inputRef:g}=t,d=l===void 0?!0:l;let f;e[0]!==o?(f=E=>o(E.target.value),e[0]=o,e[1]=f):f=e[1];let h;e[2]!==r?(h=Z("w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-muted-foreground/50 focus:ring-0",r),e[2]=r,e[3]=h):h=e[3];let y;return e[4]!==g||e[5]!==a||e[6]!==i||e[7]!==u||e[8]!==s||e[9]!==p||e[10]!==d||e[11]!==f||e[12]!==h||e[13]!==n?(y=b.jsx("textarea",{ref:g,value:n,onChange:f,onInput:Cn,onFocus:i,onBlur:a,onKeyDown:u,placeholder:s,spellCheck:d,readOnly:p,rows:1,className:h}),e[4]=g,e[5]=a,e[6]=i,e[7]=u,e[8]=s,e[9]=p,e[10]=d,e[11]=f,e[12]=h,e[13]=n,e[14]=y):y=e[14],y}function Cn(t){const e=t.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function No(t){return typeof t=="string"?t:""}function Ro(t){const e=x.c(11);let n,o;e[0]!==t?({className:n,...o}=t,e[0]=t,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let s;e[3]!==n?(s=Z(n,"pr-9"),e[3]=n,e[4]=s):s=e[4];let r;e[5]!==o||e[6]!==s?(r=b.jsx(_n,{...o,className:s}),e[5]=o,e[6]=s,e[7]=r):r=e[7];let i;e[8]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(st,{size:18,"aria-hidden":!0,className:"pointer-events-none absolute right-2 top-3 text-muted-foreground/40 transition-opacity group-hover/editable:text-muted-foreground group-focus-within/editable:text-muted-foreground"}),e[8]=i):i=e[8];let a;return e[9]!==r?(a=b.jsxs("div",{className:"group/editable relative -mx-2 rounded-md px-2 transition-colors hover:bg-accent focus-within:bg-muted/50",children:[r,i]}),e[9]=r,e[10]=a):a=e[10],a}function Io(t){const e=x.c(5),{label:n,onClick:o,disabled:s}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=b.jsx(rt,{size:13}),e[0]=r):r=e[0];let i;return e[1]!==s||e[2]!==n||e[3]!==o?(i=b.jsxs("button",{type:"button",onClick:o,disabled:s,className:"flex items-center gap-1.5 rounded-lg border border-dashed px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-foreground/30 hover:text-foreground disabled:opacity-40 disabled:hover:border-dashed disabled:hover:text-muted-foreground cursor-pointer",children:[r,n]}),e[1]=s,e[2]=n,e[3]=o,e[4]=i):i=e[4],i}function Lo(t){const e=x.c(4),{label:n,onClick:o}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx(it,{className:"size-3.25"}),e[0]=s):s=e[0];let r;return e[1]!==n||e[2]!==o?(r=b.jsx(Xe,{variant:"ghost-destructive",size:"icon-xs",type:"button","aria-label":n,onClick:o,className:"opacity-0 transition-opacity group-hover/item:opacity-100",children:s}),e[1]=n,e[2]=o,e[3]=r):r=e[3],r}function jo(t){const e=x.c(2),{children:n}=t;let o;return e[0]!==n?(o=b.jsx("div",{className:"absolute -top-9 left-0 z-10 flex items-center gap-0.5 rounded-md bg-popover p-0.5 shadow-soft",children:n}),e[0]=n,e[1]=o):o=e[1],o}function Do(t){if(Array.isArray(t))return t;if(typeof t!="string"||t.trim()==="")return[];try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}}function Mo(t){const e=x.c(14),{options:n,value:o,emptyLabel:s,onChange:r}=t;let i;e[0]!==s||e[1]!==r||e[2]!==o?(i=s&&b.jsx(pe,{active:!o,onClick:()=>r(""),children:s}),e[0]=s,e[1]=r,e[2]=o,e[3]=i):i=e[3];let a;if(e[4]!==r||e[5]!==n||e[6]!==o){let l;e[8]!==r||e[9]!==o?(l=p=>b.jsx(pe,{active:p===o,onClick:()=>r(p),children:p},p),e[8]=r,e[9]=o,e[10]=l):l=e[10],a=n.filter(Boolean).map(l),e[4]=r,e[5]=n,e[6]=o,e[7]=a}else a=e[7];let u;return e[11]!==i||e[12]!==a?(u=b.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[i,a]}),e[11]=i,e[12]=a,e[13]=u):u=e[13],u}function pe(t){const e=x.c(7),{active:n,onClick:o,children:s}=t,r=n?"border-primary bg-primary text-primary-foreground":"bg-card hover:bg-accent";let i;e[0]!==r?(i=Z("cursor-pointer rounded-md border px-2.5 py-1 text-xs font-medium transition-colors",r),e[0]=r,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==s||e[4]!==o||e[5]!==i?(a=b.jsx("button",{type:"button","aria-pressed":n,onClick:o,className:i,children:s}),e[2]=n,e[3]=s,e[4]=o,e[5]=i,e[6]=a):a=e[6],a}function $o(t,e=[]){return typeof t=="string"?t:JSON.stringify(t??e)}const $e=4;function U(t){const e=new Map;for(const n of t)n.slug&&!e.has(n.slug)&&e.set(n.slug,n);return e}function G(t,e){const n=t.parentSlug;if(!t.slug||!n||n===t.slug)return;const o=e.get(n);return o===t?void 0:o}function wn(t,e){const n=U(e),o=[],s=new Set;let r=n.get(t);for(;r&&!s.has(r.slug??"")&&(s.add(r.slug??""),o.push(r),!(o.length>=$e));)r=G(r,n);return o.reverse()}function Fe(t,e){const n=new Map;for(const o of t){const s=G(o,e);if(!s?.slug)continue;const r=n.get(s);r?r.push(o):n.set(s,[o])}for(const o of n.values())o.sort((s,r)=>s.label.localeCompare(r.label));return n}function Fo(t,e){const n=U(e),o=Fe(e,n),s=new Set([t]),r=n.get(t);let i=r?[r]:[];for(;i.length;){const a=[];for(const u of i)for(const l of o.get(u)??[])l.slug&&!s.has(l.slug)&&(s.add(l.slug),a.push(l));i=a}return s.delete(t),s}function Ko(t,e){if(!t)return[];const n=U(e),o=wn(t,e),s=o[0];return!s||G(s,n)?[t]:o.map(r=>r.slug??"")}function Uo(t){const e=U(t),n=Fe(t,e),o=new Set,s=[],r=(a,u)=>{if(!o.has(a)&&(o.add(a),s.push({entry:a,depth:u}),!(u+1>=$e)))for(const l of n.get(a)??[])r(l,u+1)},i=t.filter(a=>!G(a,e)).sort((a,u)=>a.label.localeCompare(u.label));for(const a of i)r(a,0);for(const a of t)r(a,0);return s}export{Hn as $,qn as A,Mn as B,Ht as C,Pt as D,Vn as E,So as F,ao as G,w as H,Un as I,Eo as J,xe as K,gn as L,Bt as M,To as N,jn as O,Mo as P,Oo as Q,zn as R,In as S,Yn as T,Xn as U,An as V,vn as W,Ko as X,Ut as Y,K as Z,wo as _,ee as a,F as a0,Ro as a1,T as a2,Kn as a3,Lo as a4,ko as a5,Io as a6,jo as a7,_n as a8,Do as a9,Oe as aA,Be as aB,Ao as aC,ro as aD,D as aE,co as aF,vo as aG,N as aH,J as aI,M as aJ,_o as aK,Co as aL,Fo as aM,$e as aN,It as aO,Jn as aP,Zn as aQ,Dn as aa,St as ab,Mt as ac,Ft as ad,oo as ae,$o as af,Pe as ag,Se as ah,$ as ai,yo as aj,bo as ak,go as al,Yt as am,Qt as an,ct as ao,ut as ap,lt as aq,dt as ar,ft as as,fo as at,lo as au,mo as av,ho as aw,so as ax,en as ay,uo as az,Ae as b,wn as c,Wn as d,no as e,eo as f,to as g,Po as h,Fn as i,No as j,Ln as k,Nt as l,Gn as m,zt as n,Uo as o,be as p,$n as q,Qn as r,wt as s,io as t,Bo as u,xo as v,po as w,A as x,S as y,Ce as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as H,r as q,j as r,b as ct,gi as kt,B as wt,gh as St,gV as vt,bY as Tt,bX as Et,bW as Pt,I as It,m as Bt,q as Nt,K as $t}from"./index-BGvfgBXQ.js";import{H as Rt,C as Mt}from"./held-block-view-CB9_UtVc.js";import{i as Dt}from"./AlertCircle-BPb6lfDc.js";import{c as Ft}from"./Tool01-CIkfFpNs.js";import{aB as Kt,v as Ot,Y as _t}from"./site-editor-toast-DjTYO8yl.js";import{a as Ct}from"./view-header-CqefLZ8T.js";import{AppEditor as Gt}from"./app-editor-BDvMcyIq.js";import{a as U,r as Lt,p as yt,e as ft,i as zt,f as At,g as jt,j as Yt}from"./use-cms-publish-actions-CPyM3m5I.js";import{B as qt}from"./badge-xkOOGTR2.js";import{L as Ht}from"./label-2ri5y0AT.js";import{S as Ut}from"./scroll-area-CLaLCTf7.js";import{S as Vt}from"./switch-B7uarNO5.js";import{b as Qt}from"./use-never-published-Dhj1oB8k.js";import{S as Wt}from"./save-status-96Apsuux.js";import{E as Xt}from"./empty-message-CG0mkpBx.js";import"./utils-D3hrWqhu.js";import"./agent-icon-CFsULo4q.js";import"./UserCheck01-Dq2vpnim.js";import"./ArrowUp-bsUZSt57.js";import"./ArrowLeft-D_px05Ip.js";import"./ArrowRight-DYc-7xj5.js";import"./BookOpen01-CKzuPfPT.js";import"./Globe04-BK5-p2nj.js";import"./CheckCircle-Dvda272I.js";import"./TrendUp01-Sag3n7qI.js";import"./ChevronDown-C0zFtKr8.js";import"./ChevronSelectorVertical-BtbkxpS7.js";import"./ChevronUp-CHkdbh-i.js";import"./UserSquare-BAlzvt_y.js";import"./LinkBroken01-sFiApfPs.js";import"./CreditCard01-BnEtKIxX.js";import"./File02-OGn6eCfs.js";import"./MessageCircle01-LN8Gr1lL.js";import"./SwitchHorizontal01-BRSeU65r.js";import"./Eye-CE9bd3Ra.js";import"./Fingerprint04-ZnmHU3Kp.js";import"./Image01-Do_f-fPi.js";import"./Key01-C2Ozqf6q.js";import"./LayoutLeft-tXOkIxzs.js";import"./Minus-vz8sJtmc.js";import"./Monitor01-Ctq4Y9xp.js";import"./Sun-8QBdDNyc.js";import"./Play-B5OMs0GO.js";import"./Plus-KLH-MPJh.js";import"./SearchMd-1p8IP99o.js";import"./ShoppingBag01-BZ5p5Jaw.js";import"./Trash01-1e348d5z.js";import"./Upload01-DQiq1N5L.js";import"./Users01-CJNRoJXK.js";import"./XClose-CQjSvos9.js";import"./Zap-BbT-W69e.js";import"./blocks-tab-states-Dgkd6bcn.js";import"./sandbox-url-D3mC8qhT.js";import"./use-voice-input-l3y10Zzf.js";import"./session-runtime-CnePJMYk.js";import"./chat-context-Dk_Ebz6D.js";import"./use-panel-navigate-BEVdshk4.js";import"./thread-route-DI1GCHqT.js";import"./use-project-scope-DaSiwM20.js";import"./repository-binding-DrxBu24C.js";import"./use-mcp-client-CsG2AAiF.js";import"./auth-WUI0GELm.js";import"./use-view-draft-kind-Bm-Nz5rU.js";import"./use-blog-view-CZ2egr0r.js";import"./use-organization-settings-CcEgBKiR.js";import"./schema-DIQ-2mII.js";import"./task-board-DshmncwN.js";import"./thread-intent-DJ2isQQx.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-mz6vVQb7.js";import"./use-entitlements-BnUu4797.js";import"./use-ai-providers-Cykm4Omp.js";import"./use-current-view-BhCzT_on.js";import"./use-in-settings-BZ-N_1GQ.js";import"./use-decopilot-events-DwV1bANi.js";import"./popover-BdGhwX6j.js";import"./drawer-CQosC7Hh.js";import"./tooltip-D0-ybZJ-.js";import"./index-CpqnzQ6X.js";import"./use-mobile-B4kazYmP.js";import"./index-ztFBZP-a.js";import"./checkbox-DR00CmJr.js";import"./select-BH6i4t87.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./empty-state-B5kfNSn2.js";import"./calendar-CCy2brqO.js";import"./textarea-C_mtz3Kv.js";import"./usage-stats-4TwUkhM4.js";import"./utils-CVEq3hMx.js";import"./markdown-Du_1i_DV.js";import"./use-copy-CzwPMJY2.js";import"./gateway-client-Dcj5rv8f.js";import"./form-Bmlz7qRb.js";import"./editor-classes-CiUorYg6.js";import"./task-key-PomUyZRb.js";import"./sortable.esm-CXd3MFy1.js";import"./toggle-group-BjeGXB13.js";import"./active-indicator-CCMhAsc_.js";import"./section-array-field-08gf_aaJ.js";import"./command-CRJnywSm.js";import"./index-B7BDvGS9.js";import"./named-rule-step-ikHUM8J-.js";import"./slider-B1Q72VZH.js";import"./index-DCNDjBOm.js";import"./tooltipContext-Dm5XB4Pa.js";import"./CategoricalChart-D0wEIkFu.js";import"./index-CrMNCOay.js";import"./combobox-BYBZebi0.js";import"./match-site-slug-config-B47_xZCi.js";import"./use-file-configs-D-0GlBYS.js";import"./asset-utils-DedHJB9N.js";import"./useInfiniteQuery-Comohppg.js";import"./infiniteQueryObserver-CjHha6VI.js";import"./hosted-reconcile-DipRdTAf.js";import"./use-sandbox-events-Bh6eTl2p.js";import"./use-blocks-v8-project-BUDjuC95.js";import"./sandbox-git-api-lqhbN6-M.js";import"./use-section-preview-base-DgxMYdVR.js";import"./content-tab-Dby-qF-f.js";import"./delete-copy-tGyXeEYr.js";import"./category-tree-B08EozIk.js";import"./use-move-blocks-CQpVSPWP.js";import"./index-oZBvLpfd.js";import"./use-delete-block-B3Q8p71v.js";import"./item-actions-DHBqlB8t.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-D4GKvYHp.js";import"./monaco-editor-DCzjvWW2.js";import"./editor-DnZdk2c2.js";import"./use-content-sync-BSudZND-.js";import"./collapsible-C5AFdLwb.js";import"./sandbox-lifecycle-context-QpFv1h24.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./parse-sections-BuUvGGsv.js";import"./mustache-fgm1GoLm.js";import"./search-input-BytjnRYd.js";import"./collection-table-wrapper-omwG60bs.js";import"./table-Bta2Y1CD.js";import"./agent-capabilities-Dsy9OzBC.js";import"./github-icon-HoxHOYky.js";import"./new-project-dialog-BfJtWdgg.js";import"./use-navigate-to-agent-CYt8D-re.js";import"./repository-picker-Darc81nL.js";import"./collection-search-ugxEd4a5.js";import"./use-debounced-value-DNV71VAt.js";import"./new-project-store-CUIYzGdu.js";import"./pair-M_Ks4KYr.js";import"./use-task-board-items-BOf8g772.js";import"./config-Br1Io2is.js";import"./task-route-DIKoinWO.js";import"./project-index-D3eqGaeY.js";import"./shell-layout-MrR8EGxZ.js";import"./use-deployment-admin-U97at0FL.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-FqFlDSJV.js";import"./integration-icon-nO6TvSsO.js";import"./project-icon-BUl2sFaB.js";import"./legacy-admin-welcome-dialog-dJnURvJJ.js";import"./required-auth-layout-pSTI6t_x.js";import"./use-org-sso-CCCXGXRa.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CHuh8eBE.js";import"./types-DeHdmC2C.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-CX86ajAE.js";import"./use-connection-dER7f5j5.js";import"./use-mcp-prompts-DJkMWAp0.js";import"./use-thread-outputs-CBGDKGBc.js";import"./file-type-icon-Cst2WgHg.js";import"./tabs-s8CSecQV.js";function Jt(l){const t=H.c(12),[i,s]=q.useState(0);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n=>{n.has(U)&&s(Zt)},t[0]=e):e=t[0],Kt(l.orgSlug,l.virtualMcpId,e);let o;t[1]!==l?(o=r.jsx(te,{...l}),t[1]=l,t[2]=o):o=t[2];let d;t[3]!==i||t[4]!==o?(d=r.jsx(q.Fragment,{children:o},i),t[3]=i,t[4]=o,t[5]=d):d=t[5];let m;return t[6]!==l.branch||t[7]!==l.decofile||t[8]!==l.orgSlug||t[9]!==l.virtualMcpId||t[10]!==d?(m=r.jsx(Rt,{listing:l.decofile,orgSlug:l.orgSlug,virtualMcpId:l.virtualMcpId,branch:l.branch,blockKey:U,present:void 0,children:d}),t[6]=l.branch,t[7]=l.decofile,t[8]=l.orgSlug,t[9]=l.virtualMcpId,t[10]=d,t[11]=m):m=t[11],m}function Zt(l){return l+1}function te(l){const t=H.c(103),{orgSlug:i,virtualMcpId:s,branch:e,block:o,saveGuard:d,onOpenForm:m}=l,n=ct();let f;t[0]!==e||t[1]!==i||t[2]!==s?(f={orgSlug:i,virtualMcpId:s,branch:e},t[0]=e,t[1]=i,t[2]=s,t[3]=f):f=t[3];let a;t[4]!==d?(a={guard:d,holdsCopy:!0},t[4]=d,t[5]=a):a=t[5];const{save:h,isPending:p}=Qt(f,a);let x;t[6]===Symbol.for("react.memo_cache_sentinel")?(x={},t[6]=x):x=t[6];const[c,$]=q.useState(x);let S;t[7]!==o||t[8]!==c?(S=F=>{const Y=ft(o,F);if(Y.kind==="locked"||!Object.hasOwn(c,F))return Y;const L=c[F];return L===void 0?ft({},F):{kind:"value",value:L,isDefault:!1}},t[7]=o,t[8]=c,t[9]=S):S=t[9];const g=S,[C]=q.useState(o);let E;t[10]!==o||t[11]!==c||t[12]!==C||t[13]!==h?(E=(F,Y)=>{const L=ft(C,F),O=L.kind==="value"&&L.isDefault&&Y===L.value?void 0:Y,z={...c,[F]:O};zt(o,F,O)&&delete z[F],$(z),h(U,Object.keys(z).length>0?At(o,z):ee)},t[10]=o,t[11]=c,t[12]=C,t[13]=h,t[14]=E):E=t[14];const u=E;let v;t[15]!==g?(v=F=>{const Y=g(F);return Y.kind==="value"&&Y.value===!1},t[15]=g,t[16]=v):v=t[16];const w=v;let k,y,j,b,R,P,B,N,M,I,_,T,D;if(t[17]!==u||t[18]!==w||t[19]!==p||t[20]!==m||t[21]!==g||t[22]!==n){const F=w("telemetry.enabled"),Y=w("analytics.enabled");let L;t[36]!==m||t[37]!==g||t[38]!==n?(L=(K,A,G)=>{const dt=G===void 0?!1:G,pt=g(K),ht={label:n(`sandbox.cmsSettingsPage.${K}.label`),help:n(`sandbox.cmsSettingsPage.${K}.help`),disabled:dt};return pt.kind==="locked"?r.jsx(kt,{title:r.jsxs("span",{className:"flex items-center gap-2",children:[ht.label,r.jsx(qt,{variant:"muted",size:"sm",children:n("sandbox.cmsSettingsPage.variants")})]}),description:n(pt.reason==="variants"?"sandbox.cmsSettingsPage.locked.variants":"sandbox.cmsSettingsPage.locked.other"),action:r.jsx(wt,{type:"button",variant:"outline",size:"sm",onClick:m,children:n("sandbox.cmsSettingsPage.openForm")})},K):A(pt,ht)},t[36]=m,t[37]=g,t[38]=n,t[39]=L):L=t[39];const O=L;N="flex h-full flex-col",M="cms-settings-page";let z;t[40]!==n?(z=n("sandbox.cmsSettingsPage.intro"),t[40]=n,t[41]=z):z=t[41];let J;t[42]!==p?(J=r.jsx(Wt,{isPending:p,isError:!1}),t[42]=p,t[43]=J):J=t[43],t[44]!==z||t[45]!==J?(I=r.jsx(Ct,{intro:z,actions:J}),t[44]=z,t[45]=J,t[46]=I):I=t[46],j=Ut,B="min-h-0 min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",R="mx-auto flex max-w-2xl flex-col gap-8 px-4 py-6";let Z;t[47]!==n?(Z=n("sandbox.cmsSettingsPage.telemetry.title"),t[47]=n,t[48]=Z):Z=t[48];let tt;t[49]!==n?(tt=n("sandbox.cmsSettingsPage.telemetry.description"),t[49]=n,t[50]=tt):tt=t[50];let et;t[51]!==u?(et=(K,A)=>r.jsx(ut,{...A,checked:K.value===!0,onChange:G=>u("telemetry.enabled",G)},"telemetry.enabled"),t[51]=u,t[52]=et):et=t[52];let it;t[53]!==O||t[54]!==et?(it=O("telemetry.enabled",et),t[53]=O,t[54]=et,t[55]=it):it=t[55];let nt;t[56]!==u?(nt=(K,A)=>r.jsx(ut,{...A,checked:K.value===!0,onChange:G=>u("telemetry.metrics",G)},"telemetry.metrics"),t[56]=u,t[57]=nt):nt=t[57];const mt=O("telemetry.metrics",nt,F);let st;t[58]!==u||t[59]!==O||t[60]!==F?(st=ie.map(K=>O(K,(A,G)=>r.jsx(se,{...G,rate:A.value,onChange:dt=>u(K,dt)},K),F)),t[58]=u,t[59]=O,t[60]=F,t[61]=st):st=t[61];let lt;t[62]!==it||t[63]!==mt||t[64]!==st?(lt=r.jsxs(St,{children:[it,mt,st]}),t[62]=it,t[63]=mt,t[64]=st,t[65]=lt):lt=t[65],t[66]!==Z||t[67]!==tt||t[68]!==lt?(P=r.jsx(vt,{title:Z,description:tt,children:lt}),t[66]=Z,t[67]=tt,t[68]=lt,t[69]=P):P=t[69],y=vt,t[70]!==n?(D=n("sandbox.cmsSettingsPage.analytics.title"),t[70]=n,t[71]=D):D=t[71],t[72]!==n?(b=n("sandbox.cmsSettingsPage.analytics.description"),t[72]=n,t[73]=b):b=t[73],k=St;let ot;t[74]!==u?(ot=(K,A)=>r.jsx(ut,{...A,checked:K.value===!0,onChange:G=>u("analytics.enabled",G)},"analytics.enabled"),t[74]=u,t[75]=ot):ot=t[75],t[76]!==O||t[77]!==ot?(_=O("analytics.enabled",ot),t[76]=O,t[77]=ot,t[78]=_):_=t[78];let at;t[79]!==u?(at=(K,A)=>r.jsx(le,{...A,value:K.value,onChange:G=>u("analytics.collector",G===""?void 0:G)},"analytics.collector"),t[79]=u,t[80]=at):at=t[80],T=O("analytics.collector",at,Y),t[17]=u,t[18]=w,t[19]=p,t[20]=m,t[21]=g,t[22]=n,t[23]=k,t[24]=y,t[25]=j,t[26]=b,t[27]=R,t[28]=P,t[29]=B,t[30]=N,t[31]=M,t[32]=I,t[33]=_,t[34]=T,t[35]=D}else k=t[23],y=t[24],j=t[25],b=t[26],R=t[27],P=t[28],B=t[29],N=t[30],M=t[31],I=t[32],_=t[33],T=t[34],D=t[35];let V;t[81]!==k||t[82]!==_||t[83]!==T?(V=r.jsxs(k,{children:[_,T]}),t[81]=k,t[82]=_,t[83]=T,t[84]=V):V=t[84];let Q;t[85]!==y||t[86]!==b||t[87]!==V||t[88]!==D?(Q=r.jsx(y,{title:D,description:b,children:V}),t[85]=y,t[86]=b,t[87]=V,t[88]=D,t[89]=Q):Q=t[89];let W;t[90]!==R||t[91]!==P||t[92]!==Q?(W=r.jsxs("div",{className:R,children:[P,Q]}),t[90]=R,t[91]=P,t[92]=Q,t[93]=W):W=t[93];let X;t[94]!==j||t[95]!==B||t[96]!==W?(X=r.jsx(j,{className:B,children:W}),t[94]=j,t[95]=B,t[96]=W,t[97]=X):X=t[97];let rt;return t[98]!==N||t[99]!==M||t[100]!==I||t[101]!==X?(rt=r.jsxs("div",{className:N,"data-testid":M,children:[I,X]}),t[98]=N,t[99]=M,t[100]=I,t[101]=X,t[102]=rt):rt=t[102],rt}function ee(){return null}const ie=["telemetry.errorSampleRate","telemetry.traceSampleRate"];function gt(){const l=H.c(4),t=q.useId(),i=`${t}-help`,s=`${t}-error`;let e;return l[0]!==t||l[1]!==i||l[2]!==s?(e={control:t,help:i,error:s},l[0]=t,l[1]=i,l[2]=s,l[3]=e):e=l[3],e}function xt(l,t){return t?`${l.help} ${l.error}`:l.help}function bt(l){const t=H.c(17),{ids:i,label:s,help:e,disabled:o,error:d,control:m}=l,n=o&&"opacity-60";let f;t[0]!==n?(f=Bt(n),t[0]=n,t[1]=f):f=t[1];let a;t[2]!==i.control||t[3]!==s?(a=r.jsx(Ht,{htmlFor:i.control,children:s}),t[2]=i.control,t[3]=s,t[4]=a):a=t[4];let h;t[5]!==e||t[6]!==i.help?(h=r.jsx("span",{id:i.help,children:e}),t[5]=e,t[6]=i.help,t[7]=h):h=t[7];let p;t[8]!==d||t[9]!==i.error?(p=d&&r.jsx("p",{id:i.error,role:"alert",className:"mt-1 text-xs text-destructive",children:d}),t[8]=d,t[9]=i.error,t[10]=p):p=t[10];let x;return t[11]!==m||t[12]!==f||t[13]!==a||t[14]!==h||t[15]!==p?(x=r.jsx(kt,{className:f,title:a,description:h,action:m,children:p}),t[11]=m,t[12]=f,t[13]=a,t[14]=h,t[15]=p,t[16]=x):x=t[16],x}function ut(l){const t=H.c(16);let i,s,e;t[0]!==l?({checked:i,onChange:s,...e}=l,t[0]=l,t[1]=i,t[2]=s,t[3]=e):(i=t[1],s=t[2],e=t[3]);const o=gt(),d=o.control;let m;t[4]!==o?(m=xt(o,null),t[4]=o,t[5]=m):m=t[5];let n;t[6]!==i||t[7]!==o.control||t[8]!==s||t[9]!==e.disabled||t[10]!==m?(n=r.jsx(Vt,{id:d,"aria-describedby":m,checked:i,disabled:e.disabled,onCheckedChange:s}),t[6]=i,t[7]=o.control,t[8]=s,t[9]=e.disabled,t[10]=m,t[11]=n):n=t[11];let f;return t[12]!==o||t[13]!==e||t[14]!==n?(f=r.jsx(bt,{...e,ids:o,control:n}),t[12]=o,t[13]=e,t[14]=n,t[15]=f):f=t[15],f}function se(l){const t=H.c(49);let i,s,e;t[0]!==l?({rate:s,onChange:i,...e}=l,t[0]=l,t[1]=i,t[2]=s,t[3]=e):(i=t[1],s=t[2],e=t[3]);const o=ct(),d=gt(),[m,n]=q.useState(null);let f;t[4]!==s||t[5]!==m?(f=m??String(Lt(s)),t[4]=s,t[5]=m,t[6]=f):f=t[6];const a=f;let h;t[7]!==m?(h=m!==null&&m.trim()!==""&&yt(m)===null,t[7]=m,t[8]=h):h=t[8];const p=h;let x,c,$,S,g,C,E,u,v,w;if(t[9]!==d||t[10]!==p||t[11]!==e||t[12]!==o){const N=p?o("sandbox.cmsSettingsPage.invalidRate"):null;$=bt,u=e,v=d,w=N,c=Tt,C="sm",E="w-28",x=Et,S=d.control,g=xt(d,N),t[9]=d,t[10]=p,t[11]=e,t[12]=o,t[13]=x,t[14]=c,t[15]=$,t[16]=S,t[17]=g,t[18]=C,t[19]=E,t[20]=u,t[21]=v,t[22]=w}else x=t[13],c=t[14],$=t[15],S=t[16],g=t[17],C=t[18],E=t[19],u=t[20],v=t[21],w=t[22];const k=p||void 0;let y;t[23]!==i||t[24]!==s?(y=N=>{const M=N.target.value;n(M);const I=yt(M);I!==null&&I!==s&&i(I)},t[23]=i,t[24]=s,t[25]=y):y=t[25];let j;t[26]!==p?(j=()=>{p||n(null)},t[26]=p,t[27]=j):j=t[27];let b;t[28]!==x||t[29]!==e.disabled||t[30]!==a||t[31]!==k||t[32]!==y||t[33]!==j||t[34]!==S||t[35]!==g?(b=r.jsx(x,{id:S,"aria-describedby":g,type:"number",inputMode:"decimal",min:0,max:100,step:.1,value:a,disabled:e.disabled,"aria-invalid":k,className:"text-right tabular-nums",onChange:y,onBlur:j}),t[28]=x,t[29]=e.disabled,t[30]=a,t[31]=k,t[32]=y,t[33]=j,t[34]=S,t[35]=g,t[36]=b):b=t[36];let R;t[37]===Symbol.for("react.memo_cache_sentinel")?(R=r.jsx(Pt,{className:"pr-2 text-muted-foreground",children:"%"}),t[37]=R):R=t[37];let P;t[38]!==c||t[39]!==b||t[40]!==C||t[41]!==E?(P=r.jsxs(c,{size:C,className:E,children:[b,R]}),t[38]=c,t[39]=b,t[40]=C,t[41]=E,t[42]=P):P=t[42];let B;return t[43]!==$||t[44]!==P||t[45]!==u||t[46]!==v||t[47]!==w?(B=r.jsx($,{...u,ids:v,error:w,control:P}),t[43]=$,t[44]=P,t[45]=u,t[46]=v,t[47]=w,t[48]=B):B=t[48],B}function le(l){const t=H.c(37);let i,s,e;t[0]!==l?({value:e,onChange:i,...s}=l,t[0]=l,t[1]=i,t[2]=s,t[3]=e):(i=t[1],s=t[2],e=t[3]);const o=ct(),d=gt(),[m,n]=q.useState(null),f=m??e;let a;t[4]!==f?(a=jt(f),t[4]=f,t[5]=a):a=t[5];const h=!a;let p,x,c,$,S,g,C;if(t[6]!==d||t[7]!==h||t[8]!==s||t[9]!==o){const j=h?o("sandbox.cmsSettingsPage.invalidUrl"):null;x=bt,S=s,g=d,C=j,p=It,c=d.control,$=xt(d,j),t[6]=d,t[7]=h,t[8]=s,t[9]=o,t[10]=p,t[11]=x,t[12]=c,t[13]=$,t[14]=S,t[15]=g,t[16]=C}else p=t[10],x=t[11],c=t[12],$=t[13],S=t[14],g=t[15],C=t[16];const E=s.disabled,u=h||void 0;let v;t[17]!==o?(v=o("sandbox.cmsSettingsPage.analytics.collector.placeholder"),t[17]=o,t[18]=v):v=t[18];let w;t[19]!==i||t[20]!==e?(w=j=>{const b=j.target.value;n(b),jt(b)&&b.trim()!==e&&i(b.trim())},t[19]=i,t[20]=e,t[21]=w):w=t[21];let k;t[22]!==p||t[23]!==s.disabled||t[24]!==f||t[25]!==w||t[26]!==c||t[27]!==$||t[28]!==u||t[29]!==v?(k=r.jsx(p,{id:c,"aria-describedby":$,type:"url",size:"sm",className:"w-64",value:f,disabled:E,"aria-invalid":u,placeholder:v,onChange:w}),t[22]=p,t[23]=s.disabled,t[24]=f,t[25]=w,t[26]=c,t[27]=$,t[28]=u,t[29]=v,t[30]=k):k=t[30];let y;return t[31]!==x||t[32]!==k||t[33]!==S||t[34]!==g||t[35]!==C?(y=r.jsx(x,{...S,ids:g,error:C,control:k}),t[31]=x,t[32]=k,t[33]=S,t[34]=g,t[35]=C,t[36]=y):y=t[36],y}function bl(l){const t=H.c(6);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=[U],t[0]=i):i=t[0];let s;t[1]!==l?(s=r.jsx(oe,{...l}),t[1]=l,t[2]=s):s=t[2];let e;return t[3]!==l||t[4]!==s?(e=r.jsx(Mt,{listing:l.decofile,scope:l,names:i,children:s}),t[3]=l,t[4]=s,t[5]=e):e=t[5],e}function oe(l){const t=H.c(57),{orgSlug:i,virtualMcpId:s,branch:e,decofile:o,meta:d,persistDefaults:m,standalone:n}=l,f=n===void 0?!1:n,a=ct(),h=Nt();let p;t[0]!==e||t[1]!==i||t[2]!==s?(p={orgSlug:i,virtualMcpId:s,branch:e},t[0]=e,t[1]=i,t[2]=s,t[3]=p):p=t[3];const x=Ot(p),c=Yt(o),[$,S]=q.useState(!1),g=q.useRef(c.kind==="absent"?"create":"off");let C;t[4]!==e||t[5]!==x||t[6]!==i||t[7]!==h||t[8]!==s?(C=()=>({ifMatch:T=>T===U&&g.current!=="off"?{[U]:null}:void 0,onApplied:()=>{g.current="off"},onRejected:()=>{if(g.current!=="create")return;g.current="reread";const T={mutationKey:_t(i,s,e)},D=()=>{if(h.isMutating(T)>0){setTimeout(D,100);return}h.invalidateQueries({queryKey:$t.decofile(x)}).finally(()=>{g.current="off"})};setTimeout(D,0)}}),t[4]=e,t[5]=x,t[6]=i,t[7]=h,t[8]=s,t[9]=C):C=t[9];const[E]=q.useState(C);if(c.kind==="conflict"){let T;return t[10]!==a?(T=a("sandbox.cmsSettingsBlock.conflictTitle"),t[10]=a,t[11]=T):T=t[11],r.jsx(Xt,{icon:Dt,title:T,description:a("sandbox.cmsSettingsBlock.conflictDescription",{type:c.resolveType||"?"})})}if(f&&!$){let T;t[12]!==S?(T=()=>S(!0),t[12]=S,t[13]=T):T=t[13];let D;return t[14]!==e||t[15]!==o||t[16]!==E||t[17]!==i||t[18]!==T||t[19]!==c.block||t[20]!==s?(D=r.jsx(Jt,{orgSlug:i,virtualMcpId:s,branch:e,block:c.block,decofile:o,saveGuard:E,onOpenForm:T}),t[14]=e,t[15]=o,t[16]=E,t[17]=i,t[18]=T,t[19]=c.block,t[20]=s,t[21]=D):D=t[21],D}const u=c.block;let v;t[22]!==a?(v=a("sandbox.collectionsSidebar.settings"),t[22]=a,t[23]=v):v=t[23];const w=c.kind!=="absent"&&m!==!1;let k;t[24]!==a?(k=a("sandbox.cmsSettingsBlock.description"),t[24]=a,t[25]=k):k=t[25];let y;t[26]!==k?(y=r.jsx("p",{children:k}),t[26]=k,t[27]=y):y=t[27];let j;t[28]!==a||t[29]!==c.kind?(j=c.kind==="absent"&&r.jsxs("p",{"data-testid":"cms-settings-defaults-notice",className:"flex items-start gap-1.5 rounded-lg border bg-muted/40 px-3 py-2",children:[r.jsx(Ft,{size:14,className:"mt-px shrink-0"}),r.jsx("span",{children:a("sandbox.cmsSettingsBlock.defaultsNotice")})]}),t[28]=a,t[29]=c.kind,t[30]=j):j=t[30];let b;t[31]!==y||t[32]!==j?(b=r.jsxs("div",{className:"mb-6 flex flex-col gap-2 text-xs text-muted-foreground",children:[y,j]}),t[31]=y,t[32]=j,t[33]=b):b=t[33];let R;t[34]!==e||t[35]!==o||t[36]!==E||t[37]!==d||t[38]!==i||t[39]!==b||t[40]!==v||t[41]!==w||t[42]!==c.block||t[43]!==s?(R=r.jsx(Gt,{orgSlug:i,virtualMcpId:s,branch:e,blockKey:U,block:u,decofile:o,meta:d,title:v,saveGuard:E,persistDefaults:w,notice:b},`settings:${U}`),t[34]=e,t[35]=o,t[36]=E,t[37]=d,t[38]=i,t[39]=b,t[40]=v,t[41]=w,t[42]=c.block,t[43]=s,t[44]=R):R=t[44];const P=R;if(!f)return P;let B;t[45]!==a?(B=a("siteEditor.contentTypes.back",{type:a("siteEditor.contentTypes.settings")}),t[45]=a,t[46]=B):B=t[46];let N;t[47]!==S?(N=()=>S(!1),t[47]=S,t[48]=N):N=t[48];let M;t[49]!==B||t[50]!==N?(M=r.jsx(Ct,{back:{label:B,onClick:N}}),t[49]=B,t[50]=N,t[51]=M):M=t[51];let I;t[52]!==P?(I=r.jsx("div",{className:"min-h-0 flex-1",children:P}),t[52]=P,t[53]=I):I=t[53];let _;return t[54]!==M||t[55]!==I?(_=r.jsxs("div",{className:"flex h-full flex-col",children:[M,I]}),t[54]=M,t[55]=I,t[56]=_):_=t[56],_}export{bl as CmsSettingsEditor};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{r as q,c as k,b as J,j as n,m as f,B as M,a7 as ce,b6 as ae,bo as Z,bC as U,bB as de}from"./index-BGvfgBXQ.js";import{_ as fe}from"./agent-icon-CFsULo4q.js";import{i as ue}from"./Play-B5OMs0GO.js";import{S as X}from"./sandbox-start-errors-BK_aDCyt.js";import{G as me}from"./pair-M_Ks4KYr.js";import{C as pe}from"./section-array-field-08gf_aaJ.js";import"./site-editor-toast-DjTYO8yl.js";import{a0 as xe,o as he,a1 as $,Y as ye,y as F,a2 as ge}from"./blocks-tab-states-Dgkd6bcn.js";const Q=q.createContext(!1),nt=Q.Provider;function it(){return q.useContext(Q)}const ve={provision:0,cloning:1,install:2,dev:3};function _e(t){return ve[t.step]}const W=48,ee=28,te=3,be=(()=>{const t=[];let e=0;for(let s=0;s<W;s++)s===ee?t.push(null):(t.push(e/(W-1)*te),e++);return t})();function je(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function Se(t,e,s){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?pe[e.kind].long:s[t.step]}const N="bg-foreground/[0.05]",j="bg-foreground/[0.09]",Ne=Array.from({length:35},()=>Math.random()*1.8),Te=Array.from({length:35},()=>Math.random()<.4);function ke(t){const e=k.c(31),{progress:s,claimPhase:o}=t,i=J();let r;e[0]!==s?(r=_e(s),e[0]=s,e[1]=r):r=e[1];const l=r;let c;e[2]!==o||e[3]!==s||e[4]!==i?(c=Se(s,o,je(i)),e[2]=o,e[3]=s,e[4]=i,e[5]=c):c=e[5];const a=c;let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(me,{}),e[6]=p):p=e[6];const m=`${s.step}-${a}`;let u;e[7]!==a||e[8]!==m?(u=n.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-foreground/10 bg-background px-3.5 py-1.5 shadow-[0_4px_20px_-4px_rgb(0_0_0_/_0.12)]",children:[p,n.jsxs("span",{className:"animate-in fade-in text-sm font-medium text-foreground/85 duration-500",children:[a,"…"]},m)]}),e[7]=a,e[8]=m,e[9]=u):u=e[9];let v;e[10]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(Ee,{}),e[10]=v):v=e[10];let d;e[11]!==l?(d=n.jsx(L,{phase:0,current:l,children:v}),e[11]=l,e[12]=d):d=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(Re,{}),e[13]=y):y=e[13];let g;e[14]!==l?(g=n.jsx(L,{phase:1,current:l,children:y}),e[14]=l,e[15]=g):g=e[15];let x;e[16]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(we,{}),e[16]=x):x=e[16];let h;e[17]!==l?(h=n.jsx(L,{phase:2,current:l,children:x}),e[17]=l,e[18]=h):h=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(Pe,{}),e[19]=S):S=e[19];let _;e[20]!==l?(_=n.jsx(L,{phase:3,current:l,children:S}),e[20]=l,e[21]=_):_=e[21];let b;e[22]!==h||e[23]!==_||e[24]!==d||e[25]!==g?(b=n.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[d,g,h,_]}),e[22]=h,e[23]=_,e[24]=d,e[25]=g,e[26]=b):b=e[26];let C;e[27]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx("style",{children:`
|
|
2
|
-
@keyframes vm-pulse-soft {
|
|
3
|
-
0%, 100% { opacity: 0.25; }
|
|
4
|
-
50% { opacity: 1; }
|
|
5
|
-
}
|
|
6
|
-
@keyframes vm-breathe {
|
|
7
|
-
0%, 100% { opacity: 0.5; }
|
|
8
|
-
50% { opacity: 1; }
|
|
9
|
-
}
|
|
10
|
-
@keyframes vm-rack-scan {
|
|
11
|
-
0%, 100% { opacity: 0; }
|
|
12
|
-
8% { opacity: 1; }
|
|
13
|
-
22% { opacity: 0; }
|
|
14
|
-
}
|
|
15
|
-
`}),e[27]=C):C=e[27];let T;return e[28]!==b||e[29]!==u?(T=n.jsxs("div",{className:"relative flex w-full flex-col items-center justify-center gap-12 select-none [clip-path:inset(-24px_0_-200px_0)]",children:[u,b,C]}),e[28]=b,e[29]=u,e[30]=T):T=e[30],T}function L(t){const e=k.c(10),{phase:s,current:o,children:i}=t,r=s-o,l=r<0,c=r===0,a=l?90:r*-22,p=l?.94:1-Math.max(r,0)*.04,m=l?0:c?1:r===1?.8:.55,u=l?10:30-r,v=!c;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=f("absolute inset-0 overflow-hidden rounded-xl border border-foreground/10 bg-background shadow-[0_20px_60px_-20px_rgb(0_0_0_/_0.35)] transition-all ease-[cubic-bezier(0.22,1,0.36,1)]"),e[0]=d):d=e[0];const y=`translateY(${a}px) scale(${p})`,g=c?"auto":"none";let x;e[1]!==m||e[2]!==y||e[3]!==g||e[4]!==u?(x={transform:y,opacity:m,zIndex:u,transitionDuration:"1000ms",pointerEvents:g},e[1]=m,e[2]=y,e[3]=g,e[4]=u,e[5]=x):x=e[5];let h;return e[6]!==i||e[7]!==v||e[8]!==x?(h=n.jsx("div",{"aria-hidden":v,className:d,style:x,children:i}),e[6]=i,e[7]=v,e[8]=x,e[9]=h):h=e[9],h}function B(t){const e=k.c(7),{showUrl:s}=t,o=s===void 0?!1:s;let i,r,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx("div",{className:f("size-2.5 rounded-full",j)}),r=n.jsx("div",{className:f("size-2.5 rounded-full",j)}),l=n.jsx("div",{className:f("size-2.5 rounded-full",j)}),e[0]=i,e[1]=r,e[2]=l):(i=e[0],r=e[1],l=e[2]);let c;e[3]!==o?(c=o&&n.jsx("div",{className:f("ml-3 h-3.5 max-w-[220px] flex-1 rounded-sm",N)}),e[3]=o,e[4]=c):c=e[4];let a;return e[5]!==c?(a=n.jsxs("div",{className:"flex h-7 shrink-0 items-center gap-1.5 px-3",children:[i,r,l,c]}),e[5]=c,e[6]=a):a=e[6],a}function Ee(){const t=k.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsxs("div",{className:"flex h-full flex-col",children:[e,n.jsx("div",{className:"flex flex-1 px-8 py-5",children:n.jsx("div",{className:"grid h-full w-full grid-cols-8 grid-rows-6 gap-2",children:be.map(Ce)})})]}),t[1]=s):s=t[1],s}function Ce(t,e){if(e===ee)return n.jsx("div",{className:"rounded-md bg-chart-1/[0.55]",style:{animation:"vm-breathe 2.4s ease-in-out infinite"}},e);const s=t;return n.jsx("div",{className:f("relative rounded-md",j),children:n.jsx("div",{className:"absolute inset-0 rounded-md bg-chart-1/40 opacity-0",style:{animation:`vm-rack-scan ${te}s ease-in-out infinite`,animationDelay:`${s}s`}})},e)}function Re(){const t=k.c(5);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),t[0]=e):e=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("div",{className:f("w-[18%] rounded-md",N),style:{animation:"vm-breathe 3s ease-in-out infinite"}}),t[1]=s):s=t[1];let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"h-[42%] shrink-0 rounded-md bg-chart-3/[0.12]",style:{animation:"vm-breathe 3s ease-in-out 0.4s infinite"}}),t[2]=o):o=t[2];let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx("div",{className:"col-span-3 rounded-md bg-chart-3/[0.12]",style:{animation:"vm-breathe 3s ease-in-out 0.8s infinite"}}),t[3]=i):i=t[3];let r;return t[4]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsxs("div",{className:"flex h-full flex-col",children:[e,n.jsxs("div",{className:"flex min-h-0 flex-1 gap-1.5 p-3",children:[s,n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[o,n.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-5 gap-1.5",children:[i,n.jsxs("div",{className:"col-span-2 grid grid-rows-2 gap-1.5",children:[n.jsx("div",{className:f("rounded-md",N),style:{animation:"vm-breathe 3s ease-in-out 1.2s infinite"}}),n.jsx("div",{className:f("rounded-md",N),style:{animation:"vm-breathe 3s ease-in-out 1.6s infinite"}})]})]})]})]})]}),t[4]=r):r=t[4],r}function we(){const t=k.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsxs("div",{className:"flex h-full flex-col",children:[e,n.jsx("div",{className:"relative flex flex-1 items-center justify-center px-8 py-5",children:n.jsx("div",{className:"grid w-full gap-2",style:{gridTemplateColumns:"repeat(7, minmax(0, 1fr))"},children:Ne.map(De)})})]}),t[1]=s):s=t[1],s}function De(t,e){return n.jsx("div",{className:f("aspect-square rounded-md",Te[e]?"bg-chart-2/70":j),style:{animation:`vm-pulse-soft 2.2s ease-in-out ${t}s infinite`}},e)}function Pe(){const t=k.c(11);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{showUrl:!0}),t[0]=e):e=t[0];let s,o,i,r,l;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("div",{className:"mb-2 h-5 rounded-md bg-chart-1/[0.10]"}),o=n.jsx("div",{className:f("h-1.5 w-[70%] rounded-sm",j)}),i=n.jsx("div",{className:f("h-1.5 w-[55%] rounded-sm",j)}),r=n.jsx("div",{className:f("h-1.5 w-[80%] rounded-sm",j)}),l=n.jsx("div",{className:f("h-1.5 w-[50%] rounded-sm",j)}),t[1]=s,t[2]=o,t[3]=i,t[4]=r,t[5]=l):(s=t[1],o=t[2],i=t[3],r=t[4],l=t[5]);let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsxs("div",{className:"flex w-[18%] shrink-0 flex-col gap-1.5 bg-chart-1/[0.05] p-2.5",children:[s,o,i,r,l,n.jsx("div",{className:"mt-auto",children:n.jsx("div",{className:f("h-4 rounded-md",j)})})]}),t[6]=c):c=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"relative h-[42%] shrink-0 overflow-hidden bg-chart-1/[0.10]",children:n.jsxs("div",{className:"absolute right-3 bottom-3 left-3 space-y-1.5",children:[n.jsx("div",{className:"h-3 w-[35%] rounded-sm bg-chart-1/[0.15]"}),n.jsx("div",{className:f("h-1.5 w-[55%] rounded-sm",N)})]})}),t[7]=a):a=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsxs("div",{className:"flex shrink-0 gap-1.5",children:[n.jsx("div",{className:"h-4 w-12 rounded-full bg-chart-1/[0.12]"}),n.jsx("div",{className:f("h-4 w-10 rounded-full",N)}),n.jsx("div",{className:f("h-4 w-14 rounded-full",N)})]}),t[8]=p):p=t[8];let m;t[9]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsxs("div",{className:f("col-span-3 flex flex-col justify-end gap-1 rounded-md p-2",N),children:[n.jsx("div",{className:f("h-1.5 w-[50%] rounded-sm",j)}),n.jsx("div",{className:f("h-1 w-[75%] rounded-sm",j)})]}),t[9]=m):m=t[9];let u;return t[10]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsxs("div",{className:"flex h-full flex-col",children:[e,n.jsxs("div",{className:"flex min-h-0 flex-1",children:[c,n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[a,n.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-2.5 p-3",children:[p,n.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-5 gap-2",children:[m,n.jsxs("div",{className:"col-span-2 grid grid-rows-2 gap-2",children:[n.jsx("div",{className:f("rounded-md",N)}),n.jsx("div",{className:f("rounded-md",N)})]})]})]})]})]})]}),t[10]=u):u=t[10],u}function ot(t){const e=k.c(52),s=J();if(t.kind==="starting"){let d;return e[0]!==t.claimPhase||e[1]!==t.progress?(d=n.jsx("div",{className:"flex h-full w-full items-center justify-center bg-background p-6",children:n.jsx(ke,{progress:t.progress,claimPhase:t.claimPhase})}),e[0]=t.claimPhase,e[1]=t.progress,e[2]=d):d=e[2],d}if(t.kind==="errored"){const d=t.error.code===X.githubNotAuthenticated,y=t.error.code===X.githubConnectionMissing;let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(ce,{className:"size-12 text-destructive"}),e[3]=g):g=e[3];let x;e[4]!==s?(x=s("sandbox.stateCard.erroredHeadline"),e[4]=s,e[5]=x):x=e[5];let h;e[6]!==x?(h=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[6]=x,e[7]=h):h=e[7];let S;e[8]!==y||e[9]!==d||e[10]!==t.error.message||e[11]!==s?(S=y?s("sandbox.stateCard.githubConnectionMissingMessage"):d?s("sandbox.stateCard.githubNotAuthenticatedMessage"):t.error.message,e[8]=y,e[9]=d,e[10]=t.error.message,e[11]=s,e[12]=S):S=e[12];let _;e[13]!==S?(_=n.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:S}),e[13]=S,e[14]=_):_=e[14];let b;e[15]!==y||e[16]!==d||e[17]!==t.connectionsHref||e[18]!==s?(b=(d||y)&&t.connectionsHref&&n.jsx(M,{asChild:!0,children:n.jsx("a",{href:t.connectionsHref,children:s(y?"sandbox.stateCard.linkRepoAgain":"sandbox.stateCard.reconnectGithub")})}),e[15]=y,e[16]=d,e[17]=t.connectionsHref,e[18]=s,e[19]=b):b=e[19];const C=t.onRetry;let T;e[20]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(ae,{className:"size-4"}),e[20]=T):T=e[20];let R;e[21]!==s?(R=s("sandbox.stateCard.retry"),e[21]=s,e[22]=R):R=e[22];let w;e[23]!==t.onRetry||e[24]!==R?(w=n.jsxs(M,{variant:"outline",onClick:C,children:[T," ",R]}),e[23]=t.onRetry,e[24]=R,e[25]=w):w=e[25];let D;e[26]!==b||e[27]!==w?(D=n.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[b,w]}),e[26]=b,e[27]=w,e[28]=D):D=e[28];let A;return e[29]!==D||e[30]!==h||e[31]!==_?(A=n.jsx("div",{className:"flex h-full w-full items-center justify-center bg-background p-6",children:n.jsxs("div",{className:"flex w-full max-w-md flex-col items-center gap-4 text-center",children:[g,h,_,D]})}),e[29]=D,e[30]=h,e[31]=_,e[32]=A):A=e[32],A}let o;e[33]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(fe,{className:"size-12 text-muted-foreground"}),e[33]=o):o=e[33];let i;e[34]!==s?(i=s("sandbox.stateCard.suspendedHeadline"),e[34]=s,e[35]=i):i=e[35];let r;e[36]!==i?(r=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[36]=i,e[37]=r):r=e[37];let l;e[38]!==s?(l=s("sandbox.stateCard.resumeToContinue"),e[38]=s,e[39]=l):l=e[39];let c;e[40]!==l?(c=n.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:l}),e[40]=l,e[41]=c):c=e[41];const a=t.onResume;let p;e[42]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(ue,{className:"size-4"}),e[42]=p):p=e[42];let m;e[43]!==s?(m=s("sandbox.stateCard.resume"),e[43]=s,e[44]=m):m=e[44];let u;e[45]!==t.onResume||e[46]!==m?(u=n.jsxs(M,{onClick:a,className:"mt-2",children:[p," ",m]}),e[45]=t.onResume,e[46]=m,e[47]=u):u=e[47];let v;return e[48]!==r||e[49]!==c||e[50]!==u?(v=n.jsx("div",{className:"flex h-full w-full items-center justify-center bg-background p-6",children:n.jsxs("div",{className:"flex w-full max-w-md flex-col items-center gap-4 text-center",children:[o,r,c,u]})}),e[48]=r,e[49]=c,e[50]=u,e[51]=v):v=e[51],v}function lt(t){switch(t.lifecycle.phase){case"cloning":case"checking-out":return{step:"cloning",status:"doing"};case"clone-failed":return{step:"cloning",status:"failed"};case"installing":return{step:"install",status:"doing"};case"install-failed":return{step:"install",status:"failed"};case"starting":return{step:"dev",status:"doing"};case"running":return{step:"dev",status:"done"};case"start-failed":return{step:"dev",status:"failed"};case"crashed":return{step:"dev",status:"failed"};case"idle":return t.claimPhase&&t.claimPhase.kind!=="ready"&&t.claimPhase.kind!=="failed"?{step:"provision",status:"doing"}:{step:"cloning",status:"doing"}}}const Oe="website/sections/Rendering/Lazy.tsx";function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Y(t){if(!I(t))return!1;const e=t.__resolveType;return typeof e=="string"&&Z(e)}function Ae(t){return t!=null}function z(t){if(t==null)return t;if(Y(t)){const e=t.section;return e==null?null:I(e)?e:{}}return I(t)?t:void 0}function Le(t,e){return t===null?null:Y(e)?{...e,section:t}:t}function rt(t){return{__resolveType:t}}function ct(t,e){if(!Ae(e))return null;if(t){const s=z(e)??{};return{__resolveType:Oe,section:s}}return Y(e)?z(e)??null:I(e)?e:null}const E="website/sections/Seo/SeoV2.tsx",Ie=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function P(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function $e(t,e){return typeof t.__resolveType=="string"&&O(t.__resolveType,e)?!0:Ie.some(s=>s in t)}function at(t,e){return Object.entries(t).filter(([s,o])=>{if(!P(o))return!1;const i=o.__resolveType;return he(s,o)||typeof i=="string"&&O(i,e)}).map(([s])=>s)}function Be(t,e){for(const[s,o]of Object.entries(t)){if(!P(o)||U(o))continue;const i=o,r=i.__resolveType;if(typeof r=="string"&&xe(r,e))continue;const l=i.seo;if(P(l)){const c=l;if($e(c,e))return{blockKey:s,kind:"nested",seoData:c,blockData:i,seoResolveType:e?Ye(e,i,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:E}}}for(const[s,o]of Object.entries(t)){if(!P(o)||U(o))continue;const i=o;if(typeof i.__resolveType=="string"&&O(i.__resolveType,e))return{blockKey:s,kind:"block",seoData:i,blockData:i,seoResolveType:i.__resolveType}}return null}function Ke(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function dt(t,e,s){if(e.kind==="site"){const a=Be(t,s);return a?{blockKey:a.blockKey,seoData:a.seoData,seoResolveType:a.seoResolveType,siteKind:a.kind,seoTypeOptions:s?oe(s,a.blockData):void 0,build:p=>Ke(a,p)}:null}const o=t[e.pageKey];if(!P(o))return null;const i=o,r=i.seo,l=z(r),c=l&&P(l)?l:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:s?Fe(s,c):typeof c?.__resolveType=="string"?c.__resolveType:E,seoTypeOptions:s?K(s):void 0,build:a=>({...i,seo:a===null?null:Le(a,r)})}}const Me="General";function H(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function O(t,e){return H(t)?!0:!e||!$(e)?!1:K(e).some(s=>s.resolveType===t)}function ft(t,e,s){const o=new Set;let i=t;for(let r=0;r<32;r++){if(o.has(i))return null;if(o.add(i),!Object.hasOwn(e,i))return F(i,s)?i:null;const l=e[i];if(!l||typeof l!="object"||Array.isArray(l))return null;const c=l.__resolveType;if(typeof c!="string"||!c)return null;i=c}return null}function se(t,e){return t===E?Me:e}function ne(t,e){const s=ge(t),o=$(e),i=new Set,r=[];for(const l of s){if(o){if(Z(l.resolveType))continue}else if(!H(l.resolveType))continue;de(l.resolveType,e)||i.has(l.resolveType)||(i.add(l.resolveType),r.push({resolveType:l.resolveType,title:se(l.resolveType,l.title),description:l.description}))}return r}function K(t){const e=ye(t),s=F(e,t),o=ne(s?.properties?.seo,t);return o.length>0?o:$(t)?[]:Ve(t)}function Ve(t){const e=t.manifest?.blocks??{},s=[];for(const[o,i]of Object.entries(e))if(o.includes("sections"))for(const r of Object.keys(i)){if(!H(r))continue;const l=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;s.push({resolveType:r,title:se(r,l)})}return s}function ie(t){const e=K(t),s=e.find(i=>i.resolveType===E);if(s)return s.resolveType;const o=$(t)?"":E;return e[0]?.resolveType??o}function oe(t,e){const s=e.__resolveType;if(typeof s=="string"){const o=F(s,t),i=ne(o?.properties?.seo,t);if(i.length>0)return i}return K(t)}function ze(t,e){const s=oe(t,e),o=s.find(i=>i.resolveType===E);return o?o.resolveType:s[0]?.resolveType??ie(t)}function Fe(t,e){const s=e?.__resolveType;return typeof s=="string"&&s.length>0?s:ie(t)}function Ye(t,e,s){const o=s.__resolveType;return typeof o=="string"&&O(o,t)?o:ze(t,e)}const G=["type","title","description","canonical","noIndexing","favicon","image","themeColor"],le=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],re=["jsonLD","title","description","noIndexing","configJsonLD"];function He(t){return t===E||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":null}function Ge(t){const e=t.toLowerCase();return/pdp|product/.test(e)?"pdp":/plp|listing|categor|search/.test(e)?"plp":null}function V(t,e){const s=Object.keys(t.properties??{}).filter(o=>o!=="__resolveType");return s.length>0&&s.every(o=>e.includes(o))}function Ue(t,e,s=!1){const o=He(t);if(o)return o;if(!s||t.includes("/"))return"full";const i=Ge(t);return e?i==="pdp"&&V(e,le)?"pdp":i==="plp"&&V(e,re)?"plp":V(e,G)?"general":"full":i??"full"}function Xe(t){switch(t){case"general":return G;case"pdp":return le;case"plp":return re;default:return null}}function ut(t,e,s=!1){const o=Xe(Ue(e,t,s));if(!o||!t.properties)return t;const i={};for(const r of o){const l=t.properties[r];l&&(i[r]=l)}return{...t,properties:i}}function mt(){return G.filter(t=>t!=="type")}function pt(t){const e=k.c(10),{icon:s,title:o,description:i}=t;let r;e[0]!==s?(r=s&&n.jsx(s,{size:24,className:"text-muted-foreground/60"}),e[0]=s,e[1]=r):r=e[1];let l;e[2]!==o?(l=n.jsx("div",{children:o}),e[2]=o,e[3]=l):l=e[3];let c;e[4]!==i?(c=i&&n.jsx("div",{className:"text-xs text-muted-foreground/80 max-w-sm",children:i}),e[4]=i,e[5]=c):c=e[5];let a;return e[6]!==r||e[7]!==l||e[8]!==c?(a=n.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-2 p-6 text-center text-sm text-muted-foreground",children:[r,l,c]}),e[6]=r,e[7]=l,e[8]=c,e[9]=a):a=e[9],a}export{nt as B,E as D,pt as E,G,ot as S,ie as a,it as b,ut as c,lt as d,mt as e,Be as f,Ue as g,Y as h,Ae as i,rt as j,ft as k,dt as r,at as s,ct as t,z as u,Le as w};
|