decocms 4.517.0 → 4.518.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-BB436TvV.js → ActiveShapeUtils-DC4ySNWR.js} +1 -1
- package/dist/client/assets/{AlertCircle-Cch634f7.js → AlertCircle-DgnxHqxe.js} +1 -1
- package/dist/client/assets/{AreaChart-CpsihjcZ.js → AreaChart-Ccsbdjec.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CohopnCT.js → ArrowLeft-BJ1448l4.js} +1 -1
- package/dist/client/assets/{ArrowUp-DLUdomd9.js → ArrowUp-723TVuFG.js} +1 -1
- package/dist/client/assets/{BarChart-DC5-aC-9.js → BarChart-BdOKvWnK.js} +1 -1
- package/dist/client/assets/{Building02-BHJQSDUK.js → Building02-DU823ZCw.js} +1 -1
- package/dist/client/assets/{CartesianChart-dMOiAgfo.js → CartesianChart-3-g5kX2i.js} +1 -1
- package/dist/client/assets/{CategoricalChart-BCAB1JR1.js → CategoricalChart-CinaMpxG.js} +1 -1
- package/dist/client/assets/{CheckCircle-Cs8i9zYt.js → CheckCircle-C7csYE-y.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-C5d75KyY.js → ChevronSelectorVertical-B0Z7parR.js} +1 -1
- package/dist/client/assets/{ChevronUp-BT7eMKPK.js → ChevronUp-DiTVmUiH.js} +1 -1
- package/dist/client/assets/{Copy01-B341DqLV.js → Copy01-DRNuKy-h.js} +1 -1
- package/dist/client/assets/{CreditCard01-4Fwr0tNh.js → CreditCard01-C3f2i_qY.js} +1 -1
- package/dist/client/assets/{DotsVertical-DbrlDgFh.js → DotsVertical-eX97dPc6.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-t45nElJh.js → ErrorBarContext-CCb5UZ88.js} +1 -1
- package/dist/client/assets/{Globe04-BE6c1UDj.js → Globe04-ByvV2bPX.js} +1 -1
- package/dist/client/assets/{Image01-hTzc15CE.js → Image01-QuVxFosz.js} +1 -1
- package/dist/client/assets/{Key01-kTu6t6u_.js → Key01-C-QXsN23.js} +1 -1
- package/dist/client/assets/{Link01-hfA48cFL.js → Link01-CbpFxbNY.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Dioz3u9i.js → LinkBroken01-DDgMbBWJ.js} +1 -1
- package/dist/client/assets/{Minus-DqDPTtRG.js → Minus-DnJ8wbLv.js} +1 -1
- package/dist/client/assets/{Monitor01-Bz6QaUO4.js → Monitor01-DD5_JCl8.js} +1 -1
- package/dist/client/assets/{Play-CByslM3d.js → Play-BgEaB30r.js} +1 -1
- package/dist/client/assets/{Plus-Dewm72je.js → Plus-BnqPSlPj.js} +1 -1
- package/dist/client/assets/{ReferenceLine-DV9hYxt_.js → ReferenceLine-PgVE-Dmr.js} +1 -1
- package/dist/client/assets/{SearchMd-7Jo0ZofC.js → SearchMd-GQAKwnQD.js} +1 -1
- package/dist/client/assets/{Sector-D64VY8hG.js → Sector-DG1U_Qdd.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BStpgW0a.js → ShoppingBag01-DVHnZchK.js} +1 -1
- package/dist/client/assets/{Sun-C37Hpdko.js → Sun-Ct5gftPt.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CrC4ThKg.js → SwitchHorizontal01-_kdH1ete.js} +1 -1
- package/dist/client/assets/{Tool01-2gJDR0Ho.js → Tool01-rTZNmFct.js} +1 -1
- package/dist/client/assets/{Trash01-DjE7Raat.js → Trash01-TPK4gSsp.js} +1 -1
- package/dist/client/assets/{Upload01-CYfTR3aZ.js → Upload01-D6tRQTgc.js} +1 -1
- package/dist/client/assets/{User01-X6IeKYZH.js → User01-1q78INo2.js} +1 -1
- package/dist/client/assets/{UserSquare-pmxb5ZdZ.js → UserSquare-B_yRFcN6.js} +1 -1
- package/dist/client/assets/{Users01-uKJoVSle.js → Users01-D5MhP5r0.js} +1 -1
- package/dist/client/assets/{XClose-BVxVAZ6V.js → XClose-DOXmYMF_.js} +1 -1
- package/dist/client/assets/{ZoomOut-DixQygt2.js → ZoomOut-DLICjI1h.js} +1 -1
- package/dist/client/assets/{access-gate-BpfEc6VH.js → access-gate-p2OBWc28.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BZwLO1Ja.js → add-connection-dialog-BluC5xOJ.js} +1 -1
- package/dist/client/assets/agent-analytics-D7PovqhV.js +1 -0
- package/dist/client/assets/agent-app-DEsjnzHy.js +1 -0
- package/dist/client/assets/{agent-assets-e6Gk5J-Q.js → agent-assets-CsYWD2CR.js} +1 -1
- package/dist/client/assets/{agent-automation-jGwXvC8f.js → agent-automation-J7szToQ3.js} +1 -1
- package/dist/client/assets/{agent-automations-DzW1crP1.js → agent-automations-tGwSufFx.js} +1 -1
- package/dist/client/assets/agent-calendar-Co4HNR_x.js +1 -0
- package/dist/client/assets/{agent-connect-sources-6bCKMOK5.js → agent-connect-sources-Bf7YpJtB.js} +1 -1
- package/dist/client/assets/agent-deck-Bra-oqcr.js +1 -0
- package/dist/client/assets/{agent-e2e-DwASXEee.js → agent-e2e-B01kqUsN.js} +1 -1
- package/dist/client/assets/agent-experiments-W5vP2PHw.js +1 -0
- package/dist/client/assets/agent-file-_hkGq1Y2.js +1 -0
- package/dist/client/assets/{agent-hosting-BVT3wdCc.js → agent-hosting-8jYjdLhJ.js} +1 -1
- package/dist/client/assets/{agent-icon-CiKTiUdq.js → agent-icon-g2PIrjzs.js} +1 -1
- package/dist/client/assets/agent-library-BTKjZMW2.js +1 -0
- package/dist/client/assets/agent-library-file-ClGbfS7a.js +1 -0
- package/dist/client/assets/{agent-monitor-C_MtaF0x.js → agent-monitor-Dtdyok8Z.js} +1 -1
- package/dist/client/assets/{agent-overview-BaJQVLzH.js → agent-overview-uVNzU6d3.js} +1 -1
- package/dist/client/assets/agent-releases-DVFEJ-Ad.js +2 -0
- package/dist/client/assets/agent-settings-DQDpgZ05.js +1 -0
- package/dist/client/assets/{agent-site-editor-DGIssniL.js → agent-site-editor-DI9lfD7X.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-CiWALb3j.js +2 -0
- package/dist/client/assets/agent-site-editor-content-BrDlLQPy.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-Da7g0LlC.js +1 -0
- package/dist/client/assets/{agent-view-guard-Cz_9FSeB.js → agent-view-guard-Bhzmxyux.js} +1 -1
- package/dist/client/assets/agent-view-l1LYqbmp.js +1 -0
- package/dist/client/assets/{agents-list-BehVRlw8.js → agents-list-CbFcTa4A.js} +1 -1
- package/dist/client/assets/{ai-providers-Cfzh0dop.js → ai-providers-Da7yjmwG.js} +1 -1
- package/dist/client/assets/{alert-dialog-BdWXpnme.js → alert-dialog-KKnJELoX.js} +1 -1
- package/dist/client/assets/{alert-DlpN1nbO.js → alert-kpgdNVxk.js} +1 -1
- package/dist/client/assets/{analytics-sections-CBRurMfi.js → analytics-sections-DlComRmC.js} +1 -1
- package/dist/client/assets/{analytics-tab-Bu3yOSFE.js → analytics-tab-B_HbOlqF.js} +1 -1
- package/dist/client/assets/{api-keys-SwcfBYZn.js → api-keys-DNrkQCkt.js} +1 -1
- package/dist/client/assets/api-keys-kxUaur7Y.js +1 -0
- package/dist/client/assets/{app-editor-BzaLO82-.js → app-editor-CKdeak5r.js} +1 -1
- package/dist/client/assets/{asset-utils-CYj7sEud.js → asset-utils-CYyNDrFK.js} +1 -1
- package/dist/client/assets/{auth-DVebpHI3.js → auth-DHZfBLZ5.js} +1 -1
- package/dist/client/assets/{auth-catchall-CM988zgH.js → auth-catchall-BS8FAipd.js} +1 -1
- package/dist/client/assets/{auth-entry-BM6bA3ji.js → auth-entry-34SQAdx9.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BnlVBIeL.js → auth-split-layout-DF-Z-sUB.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-qcbNyaRp.js → authenticate-and-persist-oauth-CbgraxNg.js} +1 -1
- package/dist/client/assets/{automation-list-row-BIlvc0v-.js → automation-list-row-DtCSZcdc.js} +1 -1
- package/dist/client/assets/{automation-runs-jRApvuta.js → automation-runs-Lelpmww0.js} +1 -1
- package/dist/client/assets/{automations-DMHgje9o.js → automations-CV4vMVkc.js} +1 -1
- package/dist/client/assets/{autosend-BTx7-p6a.js → autosend-Cwww7_9j.js} +1 -1
- package/dist/client/assets/{avatar-DjIkOwsx.js → avatar-BRRGslVN.js} +1 -1
- package/dist/client/assets/{badge-BfMggcm8.js → badge-DmeqGssZ.js} +1 -1
- package/dist/client/assets/{block-document-DKju3Lsl.js → block-document-DtA_3M8z.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-AokvrTWO.js → blocks-preview-workspace-context--o78Y3yp.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-5tpSikld.js → blocks-tab-states-Dps89GrH.js} +1 -1
- package/dist/client/assets/{blog-schema-B8hGgOKc.js → blog-schema-CEYO8j-N.js} +1 -1
- package/dist/client/assets/{buckets-DzW1ArnB.js → buckets-CXMlDLcD.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BGKe2ED3.js → build-improve-prompt-doc-C7S9lWPM.js} +1 -1
- package/dist/client/assets/{calendar-kdikRXDO.js → calendar-B6BpOXfC.js} +1 -1
- package/dist/client/assets/{campaigns-view-CXUV2H04.js → campaigns-view-DtQvcOC6.js} +1 -1
- package/dist/client/assets/{capability-load-error-BuC7MxXm.js → capability-load-error-CDC4LjDf.js} +1 -1
- package/dist/client/assets/category-editor-BvoAtPRs.js +1 -0
- package/dist/client/assets/{chart-aHPEwhl0.js → chart-CTinHp-8.js} +1 -1
- package/dist/client/assets/{chat-context-BEyCIAaN.js → chat-context-DLezfYEa.js} +1 -1
- package/dist/client/assets/{chat-draft-Dql_zG1A.js → chat-draft-BlRnwK9v.js} +1 -1
- package/dist/client/assets/{checkbox-R6Pm_B33.js → checkbox-BlB_jfat.js} +1 -1
- package/dist/client/assets/{choose-editor-C1zV1Fp9.js → choose-editor-DHZGPvHu.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Dw0y5N0L.js → cli-auth-success-DFaLHvgO.js} +1 -1
- package/dist/client/assets/{client-icons-C_WiAP0u.js → client-icons-CpqRIiQr.js} +1 -1
- package/dist/client/assets/cms-settings-editor-Dh-qBReE.js +1 -0
- package/dist/client/assets/{collapsible-BcZaehP2.js → collapsible-DZTt-UAc.js} +1 -1
- package/dist/client/assets/{collection-detail-AO17C_8B.js → collection-detail-BjUkXIkv.js} +1 -1
- package/dist/client/assets/{collection-display-button-C0cYhq66.js → collection-display-button-Dmr1DpXh.js} +1 -1
- package/dist/client/assets/{collection-search-7sBPioRN.js → collection-search-DcBOG84t.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BzgZq6u7.js → collection-table-wrapper-CBLUEZ5z.js} +1 -1
- package/dist/client/assets/{collection-tabs-DMsbicTn.js → collection-tabs-D5lfCRgo.js} +1 -1
- package/dist/client/assets/{column-rules-CBkHBJjn.js → column-rules-B3eVnEiY.js} +1 -1
- package/dist/client/assets/{combobox-CEzxugDA.js → combobox-CVTULN6N.js} +1 -1
- package/dist/client/assets/{command-KmLWWmqo.js → command-R1e1yMQ9.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-vJ3FRpYP.js → companion-mcps-section-hGQWfzwk.js} +1 -1
- package/dist/client/assets/{config-0t8v4_10.js → config-BWrcU7H3.js} +1 -1
- package/dist/client/assets/{connect-Ceo_a42v.js → connect-CNN0l2XT.js} +1 -1
- package/dist/client/assets/{connect-layout-DXn91Bwy.js → connect-layout-DiWD8YTg.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-DCA13Vr9.js → connect-source-dialog-xgaD8LgG.js} +1 -1
- package/dist/client/assets/{connection-BXCm7RUN.js → connection-WJRbuDz1.js} +1 -1
- package/dist/client/assets/{connection-card-DudSxk_f.js → connection-card-DnICQFn9.js} +1 -1
- package/dist/client/assets/{connection-detail-Bzj7ZAYC.js → connection-detail-C0OJOuef.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BCgvOrMH.js → connection-form-helpers-CBYCAzPl.js} +1 -1
- package/dist/client/assets/{connections-DZsQ6PqI.js → connections-DjwbhWNZ.js} +1 -1
- package/dist/client/assets/{content-tab-B8CAyeYn.js → content-tab-CAJ559-P.js} +3 -3
- package/dist/client/assets/{context-Dxx9Nppi.js → context-BkZJrbqd.js} +1 -1
- package/dist/client/assets/{context-menu-Bup14w-O.js → context-menu-B7wqDsW2.js} +1 -1
- package/dist/client/assets/{context-shell-YuMc6M7u.js → context-shell-DkaK_BOn.js} +3 -3
- package/dist/client/assets/{core.esm-BmE_KURk.js → core.esm-DHAYYfZu.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-oYjru5bh.js → create-organization-dialog-u0Ud2kaY.js} +1 -1
- package/dist/client/assets/{daily-pulse-Cj6zflmn.js → daily-pulse-DRJB1hcS.js} +1 -1
- package/dist/client/assets/{discover-BsfuhgQD.js → discover-gZu3Sfan.js} +1 -1
- package/dist/client/assets/{domain-settings-BCFlmNLU.js → domain-settings-USbT8NUs.js} +1 -1
- package/dist/client/assets/{drawer-Bi1-udV5.js → drawer-C9bfrQZ2.js} +1 -1
- package/dist/client/assets/{editor-DAekV0he.js → editor-4LyrkCqm.js} +1 -1
- package/dist/client/assets/{editor-classes-BaBC2QPU.js → editor-classes-_dczAbCq.js} +1 -1
- package/dist/client/assets/{empty-state-wXIjf_EN.js → empty-state-4Hlytpdt.js} +1 -1
- package/dist/client/assets/{empty-state-B4dSQMeM.js → empty-state-_a1QMwjl.js} +1 -1
- package/dist/client/assets/{experiments-tab-PntzDOfu.js → experiments-tab-DdHl8yk7.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-CQ5EsK8h.js → experiments-tab-choice-C9wWsYd4.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Bg9K46Rs.js → extract-connection-data-mbA-zNaE.js} +1 -1
- package/dist/client/assets/{feature-gate-4u7sb4lR.js → feature-gate-iJnsMeBr.js} +1 -1
- package/dist/client/assets/{feature-paywall-BsVH1P4Z.js → feature-paywall-DcguOiJA.js} +1 -1
- package/dist/client/assets/{file-explorer-CsBngoR2.js → file-explorer-B_iKC9bp.js} +1 -1
- package/dist/client/assets/{file-preview-CVVpAx14.js → file-preview-Dy07kmgf.js} +1 -1
- package/dist/client/assets/{file-share-button-Dh2OblA7.js → file-share-button-DOM1SplI.js} +1 -1
- package/dist/client/assets/{file-type-icon-DYeFNgMs.js → file-type-icon-CP6Bm0Pm.js} +1 -1
- package/dist/client/assets/{folder-icon-CMfbCZZj.js → folder-icon-D_8O1LWU.js} +1 -1
- package/dist/client/assets/{form-BGI3x6he.js → form-B2fhil9l.js} +1 -1
- package/dist/client/assets/{general-AgdwRV2K.js → general-BE0anzP1.js} +1 -1
- package/dist/client/assets/{home-B3JLIiqG.js → home-Bb5YZQHS.js} +1 -1
- package/dist/client/assets/{icon-button-Du_O8eku.js → icon-button-BQwa115u.js} +1 -1
- package/dist/client/assets/{index-BnbMIYQC.js → index-B4yeJC5N.js} +1 -1
- package/dist/client/assets/{index-BEaGR-Ng.js → index-BWgOKGMR.js} +1 -1
- package/dist/client/assets/{index-CEnumkKh.js → index-CK40JGB6.js} +1 -1
- package/dist/client/assets/{index-CqX2WR0x.js → index-CO7uP6ut.js} +1 -1
- package/dist/client/assets/{index-CdhgpKbn.js → index-CXWqnDP7.js} +1 -1
- package/dist/client/assets/{index-BWEksKOa.js → index-CYHGIatu.js} +1 -1
- package/dist/client/assets/{index-Dw3D39xs.js → index-Ccma-e_l.js} +1 -1
- package/dist/client/assets/{index-DVxNOEMj.js → index-CeLGzS5y.js} +1 -1
- package/dist/client/assets/{index-CqllmV-p.js → index-Cs4qaYPX.js} +1 -1
- package/dist/client/assets/{index-BeWb3VLq.js → index-D2MFYEzD.js} +4 -4
- package/dist/client/assets/{index-BXwVgYyP.js → index-DU8BFhZD.js} +1 -1
- package/dist/client/assets/{index-CkwxAoM4.js → index-DXMlJvYf.js} +1 -1
- package/dist/client/assets/{index-BflgjdLH.js → index-DiVZA6vr.js} +1 -1
- package/dist/client/assets/{index-BliYmmPu.js → index-R_qB4INp.js} +1 -1
- package/dist/client/assets/{index-CcDpskhn.js → index-rKWXOhdZ.js} +1 -1
- package/dist/client/assets/{index-redirect-BpERt5XK.js → index-redirect-D2LQ3n9D.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BOCgDRcQ.js → infiniteQueryObserver-CaSjeDsE.js} +1 -1
- package/dist/client/assets/{infra-billing-443Q4BKf.js → infra-billing-_cCsUnUO.js} +1 -1
- package/dist/client/assets/{input-D9vH1igB.js → input-D43D11gI.js} +1 -1
- package/dist/client/assets/{input-D1nDj3Gx.js → input-D9iDAvwy.js} +3 -3
- package/dist/client/assets/{integration-icon-VoZokpOe.js → integration-icon-CqbOWyvX.js} +1 -1
- package/dist/client/assets/{jira-icon-BOD4UX3O.js → jira-icon-Y_2uACKb.js} +1 -1
- package/dist/client/assets/{label-TKhfC6jr.js → label-3hTmrxoy.js} +1 -1
- package/dist/client/assets/{layout-OvvfNrHJ.js → layout-EYuYXIPk.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Bj2cFPCz.js → legacy-agents-deep-Y0g29rl5.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-Y-IABTgs.js → legacy-main-redirect-Pt1vRyf-.js} +1 -1
- package/dist/client/assets/library-DJ51ehEw.js +1 -0
- package/dist/client/assets/{login-d1G00P7v.js → login-DTF43M9h.js} +1 -1
- package/dist/client/assets/{markdown-D_Bab0vD.js → markdown-BeKN4MPt.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-C5DYTOzS.js → mcp-app-renderer-DcbWj_cd.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Bv0ymH6e.js → mcp-oauth-BVLnM3ir.js} +1 -1
- package/dist/client/assets/{mcp-oauth-gJmjFND6.js → mcp-oauth-DQ__DCEs.js} +1 -1
- package/dist/client/assets/{members-CGCmgk2j.js → members-DdYed_-G.js} +1 -1
- package/dist/client/assets/{memory-DjHNNPOW.js → memory-CbDGJpdj.js} +1 -1
- package/dist/client/assets/{mini-report-page-BSYlfSmZ.js → mini-report-page-I5w2A9ue.js} +1 -1
- package/dist/client/assets/{mock-board-BCQJ9AHq.js → mock-board-D64wFJ9x.js} +3 -3
- package/dist/client/assets/{monaco-editor-CVRVgXSh.js → monaco-editor-DEU78sxw.js} +1 -1
- package/dist/client/assets/{monitoring-mogv5pNr.js → monitoring-Bklr39Mh.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BEpenrU2.js → monitoring-stats-row-BLFmMtG4.js} +1 -1
- package/dist/client/assets/{multi-select-ZwwArowo.js → multi-select-DxNv8sxt.js} +1 -1
- package/dist/client/assets/{mustache-B20fDMb8.js → mustache-Cm6mC1mo.js} +2 -2
- package/dist/client/assets/{named-rule-uses-Bxr3PCeC.js → named-rule-uses-BBN_5zyZ.js} +1 -1
- package/dist/client/assets/{named-rule-view-pF5yBmDb.js → named-rule-view-Dgj56LCZ.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DfI138Mw.js → new-project-dialog-qMTAvOP0.js} +1 -1
- package/dist/client/assets/{oauth-callback-C0l4AVA-.js → oauth-callback-DzKW1jLM.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DlpJWGZf.js → oauth-callback-ai-provider-BhTg9J9_.js} +1 -1
- package/dist/client/assets/{onboarding-DMkG4-4M.js → onboarding-CcHHvf_v.js} +1 -1
- package/dist/client/assets/{openai-conversation-BcQvnIOU.js → openai-conversation-X6iReX5A.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CBzXyVUz.js → optimistic-project-sidebar-views-Wa4vMG32.js} +1 -1
- package/dist/client/assets/{order-monitor-day-raWLiT1v.js → order-monitor-day-d8yh4cv8.js} +1 -1
- package/dist/client/assets/{organization-choice-CSBUJWem.js → organization-choice-DKOeafiU.js} +1 -1
- package/dist/client/assets/{orgs-DYr5Iir2.js → orgs-CReR2HvS.js} +1 -1
- package/dist/client/assets/{page-seo-form-C0_Mzxj0.js → page-seo-form-BTZBPUqn.js} +1 -1
- package/dist/client/assets/{pair-v8_ULhan.js → pair-DSps2zoM.js} +1 -1
- package/dist/client/assets/{parse-sections-CigeyiXV.js → parse-sections-Bc_lvOtq.js} +1 -1
- package/dist/client/assets/{plan-BYiUi2-G.js → plan-CxnMa3En.js} +1 -1
- package/dist/client/assets/{plan-ladder-CtR99jrd.js → plan-ladder-7wUcVwfI.js} +1 -1
- package/dist/client/assets/{popover-s88DXvPL.js → popover-Dm_x8CV9.js} +1 -1
- package/dist/client/assets/{post-calendar-DbUDJn5r.js → post-calendar-BtFE-61n.js} +1 -1
- package/dist/client/assets/{post-editor-CdhtoksR.js → post-editor-QChnOq6Y.js} +2 -2
- package/dist/client/assets/{preview-content-BNZ95rhM.js → preview-content-BUlAqj-X.js} +1 -1
- package/dist/client/assets/{preview-dialog-BZcvH5f1.js → preview-dialog-39V6ZO2Y.js} +1 -1
- package/dist/client/assets/preview-link-C762yHOt.js +1 -0
- package/dist/client/assets/{preview-panel-CjWzxG-O.js → preview-panel-BvoYfTNF.js} +1 -1
- package/dist/client/assets/preview-tab-jmFSMM-R.js +551 -0
- package/dist/client/assets/{product-picker-dialog-CecFCJox.js → product-picker-dialog-iaXbdjia.js} +1 -1
- package/dist/client/assets/{profile-Bo384oXV.js → profile-IgWNvITK.js} +1 -1
- package/dist/client/assets/{project-app-view-C-JC6Lnp.js → project-app-view-Bc-wof7y.js} +1 -1
- package/dist/client/assets/{project-apps-BQ30Q_BX.js → project-apps-DVzn0z1g.js} +1 -1
- package/dist/client/assets/{project-feed--d7Txdh1.js → project-feed-BIwmxSQY.js} +1 -1
- package/dist/client/assets/{project-icon-Ds8VtVRG.js → project-icon-CJmvnLdz.js} +1 -1
- package/dist/client/assets/project-reports-DnaQ9nW_.js +1 -0
- package/dist/client/assets/project-tasks-cwxXGcyN.js +1 -0
- package/dist/client/assets/{projects-BN_UNvg1.js → projects-D8Cbhxnj.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CmS_yrG7.js → projects-empty-state-CmtOjsbv.js} +1 -1
- package/dist/client/assets/{prompts-g_Bby1s0.js → prompts-BFb-SeSC.js} +1 -1
- package/dist/client/assets/record-editor-hWJJMGCG.js +1 -0
- package/dist/client/assets/{redirect-editor-CBEbRvVY.js → redirect-editor-XmMaGVJV.js} +1 -1
- package/dist/client/assets/releases-api-AYZ93qlv.js +1 -0
- package/dist/client/assets/{reports-Bgmc-lqT.js → reports-AyOb4hhI.js} +1 -1
- package/dist/client/assets/reports-BQij5juA.js +1 -0
- package/dist/client/assets/{reports-onboarding-D6-A2sL7.js → reports-onboarding-BDPMVaDo.js} +1 -1
- package/dist/client/assets/{reports-tab-B_Sk2TLl.js → reports-tab-D2iADtiN.js} +2 -2
- package/dist/client/assets/{repositories-C2vwcNjc.js → repositories-BNDNB0vE.js} +1 -1
- package/dist/client/assets/repositories-BiNU-Xfn.js +1 -0
- package/dist/client/assets/{repository-binding-Cf_thK-b.js → repository-binding-4nTgXz1S.js} +1 -1
- package/dist/client/assets/{repository-import-picker-BOku3VrR.js → repository-import-picker-De4sf2Gs.js} +1 -1
- package/dist/client/assets/{repository-picker-CeCsQGv8.js → repository-picker-HOHNvmaE.js} +1 -1
- package/dist/client/assets/{require-capability-DC_q9Xad.js → require-capability-ChTCz2WH.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DhxdstQv.js → required-auth-layout-BZllo6Io.js} +1 -1
- package/dist/client/assets/{reset-password-BCS7WVZ6.js → reset-password-Ui3G6CJw.js} +1 -1
- package/dist/client/assets/{resizable-BySAwPSW.js → resizable-DAXTAODq.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-B7CsMGsC.js → resolve-tab-icon-CAixh6_W.js} +1 -1
- package/dist/client/assets/{review-settings-DtZi6zHg.js → review-settings-BDP4bMe5.js} +1 -1
- package/dist/client/assets/{roles-CGYNn4dv.js → roles-Clx4HYW_.js} +1 -1
- package/dist/client/assets/{route-ChD1cXkH.js → route-B9jYymiu.js} +1 -1
- package/dist/client/assets/route-BjK3qzB4.js +1 -0
- package/dist/client/assets/{route-ChLLCXC9.js → route-CaI6hSyT.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-Bod17qTV.js → runnable-block-editor-LQjhwiX1.js} +6 -6
- package/dist/client/assets/{sandbox-lifecycle-context-CCjKxqdS.js → sandbox-lifecycle-context-CJodiAqU.js} +1 -1
- package/dist/client/assets/{schema-b5uziS6S.js → schema-DrNvzI26.js} +1 -1
- package/dist/client/assets/{schema-ClGCzPdy.js → schema-xPkTs0YZ.js} +1 -1
- package/dist/client/assets/{scroll-area-BVZXqx5M.js → scroll-area-BBBDJLpH.js} +1 -1
- package/dist/client/assets/{search-input-BL6XGlmm.js → search-input-DSx8LWNe.js} +1 -1
- package/dist/client/assets/{search-toggle-IRNGzCzn.js → search-toggle-B9X5GBEJ.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-CKG2rzpX.js → secret-ciphertext-qv17emf3.js} +1 -1
- package/dist/client/assets/{secret-picker-NNIqKwTx.js → secret-picker-DBs-gr5P.js} +1 -1
- package/dist/client/assets/{secrets-BLs8g0Qc.js → secrets-5nLK_pSH.js} +1 -1
- package/dist/client/assets/{sections-Dw8sSpTv.js → sections-ALAbnAYY.js} +1 -1
- package/dist/client/assets/{sections-editor-IbsR8YsO.js → sections-editor-DVqxZTWF.js} +2 -2
- package/dist/client/assets/{select-H4FJk0rp.js → select-C9_0SSgH.js} +1 -1
- package/dist/client/assets/{select-model-VSltfcKe.js → select-model-BaxH4IRV.js} +1 -1
- package/dist/client/assets/{seo-editor-DJxK0wxd.js → seo-editor-Cd-ANp55.js} +1 -1
- package/dist/client/assets/{separator-l8ktDBQ-.js → separator-DXuISWBW.js} +1 -1
- package/dist/client/assets/settings-tab-D_D1vl9t.js +1 -0
- package/dist/client/assets/{sheet-DdrzSnyB.js → sheet-BQCLSAhw.js} +1 -1
- package/dist/client/assets/{shell-layout-Dpds4_um.js → shell-layout-CnXya3zZ.js} +1 -1
- package/dist/client/assets/site-draft-actions-BG_Fzxj9.js +12 -0
- package/dist/client/assets/site-draft-view-BYdCjysm.js +2 -0
- package/dist/client/assets/site-editor-B7kc0tIQ.js +1 -0
- package/dist/client/assets/{site-editor-toast-C48kJZ8y.js → site-editor-toast-BKVRfpA8.js} +1 -1
- package/dist/client/assets/{skills-F7XSMMWV.js → skills-mFhfnuy4.js} +1 -1
- package/dist/client/assets/{slider-tSRa1HDF.js → slider-DTKLr6aL.js} +1 -1
- package/dist/client/assets/{sortable.esm-CE2eXOQU.js → sortable.esm-D2---7Ab.js} +1 -1
- package/dist/client/assets/{sso-B_KsCvoW.js → sso-DrhiuaNt.js} +1 -1
- package/dist/client/assets/{suggestion-Bu3BweEe.js → suggestion-B0A7rwRG.js} +1 -1
- package/dist/client/assets/{switch-BI2l0q9a.js → switch-CESJ2RZK.js} +1 -1
- package/dist/client/assets/{symbol-CW0bfPL3.js → symbol-CYXY7_SE.js} +1 -1
- package/dist/client/assets/{synced-repos-BXQtYjtL.js → synced-repos--pWS_C_z.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-B_hAV_wB.js → tab-icon-glyph-Cjt9sANI.js} +1 -1
- package/dist/client/assets/{table-BI-3H0Nx.js → table-BkZK8rXZ.js} +1 -1
- package/dist/client/assets/{tabs-Cw5epDK7.js → tabs-B6EQUSl_.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-B4jYRjC8.js → task-assignee-avatar-Dodx9W4w.js} +1 -1
- package/dist/client/assets/{task-board-ByNQwZsl.js → task-board-6nf7vbPi.js} +1 -1
- package/dist/client/assets/{task-route-B8oSJFnj.js → task-route-BvbHuTGP.js} +1 -1
- package/dist/client/assets/{task-status-GAY2L2Vz.js → task-status-GUWtXwyC.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-MtxZahkF.js → taskboard-analytics-BXSTC1m2.js} +1 -1
- package/dist/client/assets/tasks-Cd3DKWnU.js +1 -0
- package/dist/client/assets/{tasks-CaRFrr2H.js → tasks-DEvPbHif.js} +1 -1
- package/dist/client/assets/{textarea-7I-DLD6x.js → textarea-DG3FcnmS.js} +1 -1
- package/dist/client/assets/{thread-analytics-BhyMnytl.js → thread-analytics-BUqostwA.js} +1 -1
- package/dist/client/assets/{thread-intent-CoB1rbzj.js → thread-intent-Ds79TVrW.js} +1 -1
- package/dist/client/assets/{thread-route-Bjcqwe4C.js → thread-route-Cf5GTfDW.js} +1 -1
- package/dist/client/assets/{thread-route-BPSSuk8V.js → thread-route-UuA5SD5X.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DyDxpawL.js → thread-sheet-body-p9veuPgz.js} +1 -1
- package/dist/client/assets/{time-range-picker-DJ-TaM2M.js → time-range-picker-Bo0eqMw9.js} +1 -1
- package/dist/client/assets/{toggle-group-BngkTNsG.js → toggle-group-C7NFln-0.js} +1 -1
- package/dist/client/assets/{tool-namespace-DePiqr-m.js → tool-namespace-CMW8ZB5L.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DKjsnGdZ.js → toolbar-icon-button-BiR5ntfC.js} +1 -1
- package/dist/client/assets/{tooltip-4vv5k-uR.js → tooltip-bQVm_Ope.js} +1 -1
- package/dist/client/assets/{tooltipContext-B3bWUtmi.js → tooltipContext-CMDZ9J9X.js} +1 -1
- package/dist/client/assets/{track-C0wfSYRO.js → track-COIlf0dl.js} +1 -1
- package/dist/client/assets/{types-CNU-uWw-.js → types-DLna4BAB.js} +1 -1
- package/dist/client/assets/{url-slug-DU3tFMUC.js → url-slug-BWq-dgp6.js} +1 -1
- package/dist/client/assets/{usage-stats-CKpL0uWf.js → usage-stats-CvT3PVJT.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Ct47MIru.js → use-ai-providers-CzmKfSB9.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-R20A_NaL.js → use-apply-named-rule-BLEqLp1R.js} +1 -1
- package/dist/client/assets/{use-automations-Ho0ayZT_.js → use-automations-DHA5_uZh.js} +1 -1
- package/dist/client/assets/{use-autosave-DzNsVsl3.js → use-autosave-BlShc4A-.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-CWI-mwQI.js → use-chat-layout-state-BV7ldzPe.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DE4s8Okz.js → use-clock-tick-C61VlTs_.js} +1 -1
- package/dist/client/assets/{use-connect-companion-Dmdscsai.js → use-connect-companion-DxCCqNf4.js} +1 -1
- package/dist/client/assets/{use-connection-HenJjVMr.js → use-connection-DTSe3r1K.js} +1 -1
- package/dist/client/assets/{use-content-sync-C0CqYtRD.js → use-content-sync-Dj6rb1LD.js} +1 -1
- package/dist/client/assets/{use-copy-C4LbXPXl.js → use-copy-Bc8JMSws.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-dBeQ8KM_.js → use-create-virtual-mcp-Dpe8iA_9.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DBqQ9Xwt.js → use-date-fns-locale-BGkTB4Mm.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-B_kpX8YN.js → use-debounced-autosave-BhCHbQGN.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Br6JzfN-.js → use-debounced-value-Cm7nwcam.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DhL8Ql0T.js → use-deco-credits-BgLGkCcl.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CuBncVze.js → use-decopilot-events-C_BQo06W.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DuErB0IF.js → use-delete-connection-BEv8pmzy.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BOXhbvir.js → use-deployment-admin-Ck9xx8zz.js} +1 -1
- package/dist/client/assets/use-fast-preview-draft-url-B7ECUHMP.js +1 -0
- package/dist/client/assets/{use-file-configs-B_k4AoEo.js → use-file-configs-C7kUU5_U.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-D96kN3Ph.js → use-inbox-feed-U2BOY_0m.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Ba0Xf9MO.js → use-infinite-scroll-CpvqXWve.js} +1 -1
- package/dist/client/assets/{use-join-requests-DNpCy_xv.js → use-join-requests-ldwvbhU3.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BndsHuRH.js → use-main-panel-tabs-BvDesOKd.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BOQ5PtOH.js → use-mcp-auth-status-D6FLEMEz.js} +1 -1
- package/dist/client/assets/{use-mcp-client-2WkK0AxE.js → use-mcp-client-Cby5XqT6.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BY0itm-N.js → use-mcp-prompts-DpGHOlEI.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Wkfd46Rr.js → use-mcp-tools-7EpnWJvB.js} +1 -1
- package/dist/client/assets/{use-members-Cl1_-fx1.js → use-members-oF45MDF1.js} +1 -1
- package/dist/client/assets/{use-mobile-BAnIvR27.js → use-mobile-h4hHhZkm.js} +1 -1
- package/dist/client/assets/{use-move-blocks-lN8kagdi.js → use-move-blocks-DFQHiQ1n.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C2NQ-36B.js → use-navigate-to-agent-DwJfjSMG.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-Bewtr0D-.js → use-open-billing-url-CjWCFQM1.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-vWdVrvgR.js → use-org-auth-client-BFDehTsp.js} +1 -1
- package/dist/client/assets/{use-org-fs-CxjQMzFd.js → use-org-fs-CyxFz8rw.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-dRJpc7Ti.js → use-org-repo-syncs-BsUWjWH7.js} +1 -1
- package/dist/client/assets/{use-org-sso-BnFa9r-G.js → use-org-sso-D5M4Sxwu.js} +1 -1
- package/dist/client/assets/{use-organization-roles-D9hV-WPT.js → use-organization-roles-t12r77qZ.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CE5BJyh9.js → use-organization-settings-NOur1Lvu.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CXkMPISv.js → use-panel-navigate-DxGjTjIo.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-D4-BL2Rg.js → use-project-native-view-presence-USh7_bNt.js} +1 -1
- package/dist/client/assets/{use-project-scope-BOj2O9A_.js → use-project-scope-CBw0FSEz.js} +1 -1
- package/dist/client/assets/{use-recent-apps-Cj-iBJUa.js → use-recent-apps-B2LVD6z4.js} +1 -1
- package/dist/client/assets/{use-releases-2-Z6BMdW.js → use-releases-x9nrIfuE.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-D--oIp45.js → use-reports-diagnostic-qSw4HttT.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BVhJrX2Z.js → use-sandbox-events-D98uWMd_.js} +1 -1
- package/dist/client/assets/{use-secrets-CQ9dfY46.js → use-secrets-CvBGDTuP.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CrcAXE9z.js → use-section-preview-base-DmjOJ885.js} +1 -1
- package/dist/client/assets/{use-session-runtime-CqJF6neP.js → use-session-runtime-BrkTaSa6.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-NZNztmvG.js → use-sidebar-collapsed-Bijbdhqq.js} +1 -1
- package/dist/client/assets/{use-tags-BG7cxCCb.js → use-tags-BMQZw2TW.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BhvhSxL9.js → use-task-board-analytics-DdtvZ4ju.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CtQgceab.js → use-task-board-events-B5yNhg5i.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-Dp099nXL.js → use-task-board-item-prs-D9gfgNig.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BBoC1uvX.js → use-task-metadata-DuF2rBuH.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-g0_FCkSl.js → use-thread-analytics-B03W7aQi.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-C38yfNsJ.js → use-thread-outputs-D_k8NizM.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Dobhsojg.js +1 -0
- package/dist/client/assets/{useQueries-DSs3oNbf.js → useQueries-BSehCBUp.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CqyfVE9R.js +1 -0
- package/dist/client/assets/{users-BAyRTNUi.js → users-Cej3U7P5.js} +1 -1
- package/dist/client/assets/{utils-t1gjPfET.js → utils-CkwBhBMS.js} +1 -1
- package/dist/client/assets/{variant-calendar-BYITnHO8.js → variant-calendar-kJB8Qi3I.js} +1 -1
- package/dist/client/assets/variant-draft-pointer-BeAKcq_c.js +1 -0
- package/dist/client/assets/variant-matcher-override-XY7K79P5.js +1 -0
- package/dist/client/assets/{virtual-mcp-cTWrWR4Y.js → virtual-mcp-BzmRbmfQ.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-C9NPGTmI.js → watch-sse-pool-CmsmQLFo.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +628 -628
- package/package.json +1 -1
- package/dist/client/assets/agent-analytics-Cb2tda3-.js +0 -1
- package/dist/client/assets/agent-app-HX00w6TV.js +0 -1
- package/dist/client/assets/agent-calendar-DCHNIRTc.js +0 -1
- package/dist/client/assets/agent-deck-BV-5B8og.js +0 -1
- package/dist/client/assets/agent-experiments-DetDutY3.js +0 -1
- package/dist/client/assets/agent-file-BvfhZ3mT.js +0 -1
- package/dist/client/assets/agent-library-DSuyqe6T.js +0 -1
- package/dist/client/assets/agent-library-file-B1l2ZLvA.js +0 -1
- package/dist/client/assets/agent-releases-rSbadgkl.js +0 -2
- package/dist/client/assets/agent-settings-DCjo4ZYC.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BVwfCzHc.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BU-vFmu-.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-Coo-Ni4u.js +0 -1
- package/dist/client/assets/agent-view-CftHb5tC.js +0 -1
- package/dist/client/assets/api-keys-jGYtI-cW.js +0 -1
- package/dist/client/assets/category-editor-jRguVRoH.js +0 -1
- package/dist/client/assets/cms-settings-editor-BAGntXvx.js +0 -1
- package/dist/client/assets/hosted-publish-api-Cg6A3e6a.js +0 -1
- package/dist/client/assets/hosted-publish-feedback-R86hK4rw.js +0 -1
- package/dist/client/assets/library-CEpc5ko6.js +0 -1
- package/dist/client/assets/preview-tab-ztwq5J9Z.js +0 -551
- package/dist/client/assets/project-reports-BRMk8sbv.js +0 -1
- package/dist/client/assets/project-tasks-DPFfk-Co.js +0 -1
- package/dist/client/assets/record-editor-CmI7uwKH.js +0 -1
- package/dist/client/assets/releases-api-DbKlRR9w.js +0 -1
- package/dist/client/assets/reports-BKtNuFy0.js +0 -1
- package/dist/client/assets/repositories-CszhODTX.js +0 -1
- package/dist/client/assets/route-_su_B2um.js +0 -1
- package/dist/client/assets/settings-tab-D08h17sS.js +0 -1
- package/dist/client/assets/site-draft-actions-B1VIigls.js +0 -12
- package/dist/client/assets/site-draft-view-BvQXujRd.js +0 -2
- package/dist/client/assets/site-editor-B8qpeTpl.js +0 -1
- package/dist/client/assets/tasks-Zus8qgLK.js +0 -1
- package/dist/client/assets/use-fast-preview-draft-url-BPrZ2XMf.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CxzyY6DS.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CWvS_hOW.js +0 -1
- package/dist/client/assets/variant-draft-pointer-Cjn_TXkR.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as Y}from"./thread-intent-CoB1rbzj.js";const H={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},fe=["experiments","campaigns"];function cn(e){return H[e]}function un(e){for(const t of fe)if(H[t].matcher===e)return t;return null}function jr(e){for(const t of fe)if(H[t].resolveType===e)return t;return null}function ln(e){for(const t of fe)if(H[t].blockKey===e)return t;return null}const fn="deco";function Mr(e,t){if(!Y(e))return"missing";const n=H[t],r=at(e,n.resolveType),i=at(e,n.matcher);if(!r||!i)return"missing";const s=o=>o.namespace===void 0||o.namespace===fn;return s(r)&&s(i)?"available":"replaced"}function at(e,t){const n=e?.manifest?.blocks??{};for(const r of Object.values(n))if(r&&Object.hasOwn(r,t))return r[t]??{};return null}function ge(e,t){const n=H[t],r=Object.hasOwn(e,n.blockKey)?e[n.blockKey]:void 0;if(r==null)return{kind:"absent",block:{__resolveType:n.resolveType},values:Object.create(null),invalid:[]};const i=q(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const s=r,o=Object.create(null),u=[];for(const[f,l]of Object.entries(s)){if(f==="__resolveType")continue;const d=t==="experiments"?yn(l):dn(l);d===null?u.push(f):o[f]=d}return{kind:"saved",block:s,values:o,invalid:u}}function Lr(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function Vr(e){return e.kind==="conflict"?[]:Object.keys(e.block).filter(t=>t!=="__resolveType")}function pn(e){const t=ge(e,"experiments"),n=ge(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function yn(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function dn(e){if(!q(e))return null;const t={};for(const n of["start","end"]){const r=e[n];if(!(r==null||r==="")){if(typeof r!="string")return null;t[n]=r}}return t}function vn(e){return e<=0?"off":e>=100?"everyone":"running"}function _n(e){return e===void 0||vn(e)!=="running"}function mn(e){if(!q(e))return null;const t=un(e.__resolveType);if(!t)return null;const n=e[H[t].field];return typeof n=="string"?{kind:t,name:n}:null}function gn(e,t){const n=H[e];return{__resolveType:n.matcher,[n.field]:t}}const hn="date";function Br(e){return q(e)&&e.__resolveType===hn&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function $r(e,t,n,r){return{...e,__resolveType:H[t].resolveType,[n]:r}}function Cr(e,t){if(t==="__resolveType")return e;const{[t]:n,...r}=e;return r}function Tn(e,t,n){if(t===n||t==="__resolveType"||n==="__resolveType"||!Object.hasOwn(e,t)||Object.hasOwn(e,n))return e;const r={};for(const[i,s]of Object.entries(e))r[i===t?n:i]=s;return r}function q(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}const Ir="oklch(0.7278 0.151 289)",_t="website/matchers/always.ts",mt="website/matchers/never.ts",ie="website/flags/multivariate.ts",pe="website/flags/multivariate/section.ts",bn=new Set([_t,"$live/matchers/MatchAlways.ts"]);function An(e,t=!1){return typeof e=="string"&&(bn.has(e)||t&&e==="always")}function gt(e,t=!1){return typeof e=="string"&&(e===mt||t&&e==="never")}function ht(e,t){return Y(e)?Object.hasOwn(e?.manifest?.blocks?.matchers??{},t):!1}function Sn(e){return ht(e,"always")?"always":_t}function Rn(e){return ht(e,"never")?"never":mt}function Ie(e){return{__resolveType:Sn(e)}}function z(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?|html?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())||e}const Dr="website/loaders/secret.ts",xr=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],kn=/^(?:[0-9a-f]{2})*$/i;function En(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e.__resolveType;return typeof t=="string"&&(t.endsWith("/secret.ts")||t.includes("loaders/secret"))}function On(e){return typeof e=="string"&&kn.test(e)}class wn extends Error{constructor(t){super(`Secret at "${t}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=t,this.name="PlaintextSecretError"}path}function ct(e,t=""){if(Array.isArray(e))return e.map((r,i)=>ct(r,`${t}/${i}`));if(!e||typeof e!="object")return e;const n=Object.entries(e);if(En(e)){const r=e.encrypted;if(r!==void 0&&!On(r))throw new wn(t||"/");return Object.fromEntries(n.filter(([i])=>i!=="value"))}return Object.fromEntries(n.map(([r,i])=>[r,ct(i,`${t}/${r}`)]))}function ut(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function Pn(e){return e.includes("@")}function lt(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function Nr(e,t){if(e===t)return!0;const n=lt(e);return n?t===n||lt(t)===n:!1}function ye(e,t){const n=e.manifest?.blocks??{};for(const[r,i]of Object.entries(n))if(t in i)return r;return null}function Ur(e,t){return ye(e,t)!==null}function De(e,t){const n=ye(e,t);return n!==null&&n.includes("sections")}function jn(e,t){const n=ye(e,t);return n!==null&&n.includes("apps")}function Mn(e,t){const n=ye(e,t);return n!==null&&n.includes("matchers")}function Z(e,t){return!(!e||t&&ye(t,e)!==null||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function xe(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}const Ln=new Set(["split-traffic","calendar"]);function Vn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const Bn=12,$n=8,we=32,Cn=40,In="__SECTION_REF__";function _e(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function ft(e,t){let n=e.items;if(!n)return!1;if(typeof n.$ref=="string"&&(n=t(n.$ref)),Array.isArray(n.anyOf)||Array.isArray(n.oneOf))return!0;const i=n.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const Dn="VideoWidget";function ne(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function Tt(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function Ne(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Ue(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function bt(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function Ke(e,t){const n=t.manifest?.blocks??{};for(const u of Object.values(n))if(u[e])return u[e];const r=Ne(e)??Ue(e);if(r){for(const u of bt(r.vendor,r.app))for(const f of Object.values(n))if(f[u])return f[u]}const i=Tt(e);for(const u of Object.values(n))if(u[i])return u[i];const s=t.schema??{};return(s.$defs??s.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function At(e,t){if(jn(e,t))return!0;const n=Ne(t)??Ue(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(bt(n.vendor,n.app).some(o=>o in r))return!0;const i=Tt(t),s=e.schema?.$defs??e.schema?.definitions??{};return i in s}function xn(e){return e==="site/apps/site.ts"?!1:Ne(e)!==null||Ue(e)!==null}function St(e,t){return Rt(t,{resolveType:e})}function Kr(e,t){return Rt(t,{ref:e})}function Rt(e,t){const n=e.schema??{},r="resolveType"in t?Ke(t.resolveType,e):{},i=n.$defs??n.definitions??{},s=n.root??{},o=a=>{if(a.startsWith("#/root/")){const c=a.slice(7);return s[c]??{}}const m=a.split("/").pop()??"",g=i[m];return g||(m===In?s.sections??{}:{})};let u;typeof r.$ref=="string"?u=o(r.$ref):Object.keys(r).length>0?u=r:u=n;const f=a=>typeof a.$ref=="string"?o(a.$ref):a,l=a=>{const g=f(a).properties?.type;if(g){if(typeof g.const=="string")return g.const;if(typeof g.default=="string")return g.default;if(Array.isArray(g.enum)&&typeof g.enum[0]=="string")return g.enum[0]}},d=(a,m)=>{const g=f(a);return typeof g.title=="string"&&!g.title.startsWith("#")?g.title:m},h=(a,m=new Set)=>{if(typeof a.$ref!="string"||a.properties||a.anyOf||a.allOf||a.oneOf||a.type)return a;const g=a.$ref.split("/").pop()??"";return!g||m.has(g)?a:h(o(a.$ref),new Set([...m,g]))},M=a=>{const m=a.properties?.__resolveType?.enum;return Array.isArray(m)&&typeof m[0]=="string"?m[0]:void 0},$=a=>M(a)!==void 0,W=(a,m=new Set)=>{if(typeof a.$ref!="string")return[];const g=a.$ref.split("/").pop()??"";if(!g||m.has(g))return[];const c=o(a.$ref),B=c.anyOf??c.oneOf;if(!Array.isArray(B))return[];const j=new Set([...m,g]);return B.flatMap(V=>$(V)?[V]:W(V,j))},S=a=>{const m=a.hide;return m===!0||m==="true"},I=a=>typeof a=="string"&&(a.includes("://")||!/\s/.test(a)&&(a.includes("|")||a.includes("&")||a.includes("@"))),L=(a,m=new Set,g=0)=>{if(g>Bn)return{};if(typeof a.$ref=="string"){const B=a.$ref.split("/").pop()??"";return m.has(B)?{}:L(o(a.$ref),new Set([...m,B]),g+1)}let c={};a.properties&&typeof a.properties=="object"&&(c={...c,...a.properties}),Array.isArray(a.required)&&(c.__required=[...ne(c.__required),...ne(a.required)]);for(const B of["allOf","anyOf","oneOf"]){const j=a[B];if(Array.isArray(j))for(const V of j){const U=ne(c.__required),G=L(V,m,g+1);c={...c,...G};const D=B==="allOf"?[...U,...ne(G.__required)]:U;D.length>0?c.__required=D:delete c.__required}}return c},O=(a,m=0,g=new Set)=>{let c=a,B;if(typeof a.$ref=="string"){c=o(a.$ref);const w=a.$ref.split("/").pop()??"";B=w,w===Dn&&!c.format&&(c={...c,format:"video-uri"})}c=h(c);const j=B!==void 0&&g.has(B),V=B!==void 0?new Set([...g,B]):g,U=(w,_,R,k=!0)=>!j&&(!k||R<=Cn)&&_<$n?O(w,_,V):void 0;let G;{const w=c.anyOf??c.oneOf;if(Array.isArray(w)){const _=w.filter(k=>!(k.type==="null"||k.type===null)),R=k=>{if(typeof k.const=="string"||typeof k.const=="number")return k.const;if(Array.isArray(k.enum)&&k.enum.length===1&&(typeof k.enum[0]=="string"||typeof k.enum[0]=="number"))return k.enum[0]};_.length>0&&_.every(k=>R(k)!==void 0)&&(G=_.map(k=>R(k)))}}let D,ce,et=!1;if(c.type)D=Array.isArray(c.type)?String(c.type.find(w=>w!=="null")??c.type[0]):String(c.type);else if(c.anyOf||c.oneOf){const _=(c.anyOf??c.oneOf).filter(R=>!(R.type==="null"||R.type===null));if(_.length===0)D="null";else if(_.length===1){const R=_[0];ce=R,D=R.type?Array.isArray(R.type)?String(R.type[0]):String(R.type):typeof R.$ref=="string"?"object":"string"}else{if(G){const y=p=>typeof a[p]=="string"?a[p]:typeof c[p]=="string"?c[p]:void 0;return{type:"string",title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,enum:G,format:y("format"),options:y("options")}}const R=_.filter($),k=_.map(y=>h(y)).find(_e),ee=y=>{if(typeof y.$ref!="string")return;const p=h(y),v=p.anyOf??p.oneOf;if(!Array.isArray(v))return;const T=[...v.filter($),...v.filter(A=>!$(A)).flatMap(A=>W(A))],P=v.filter(A=>{if($(A)||A.type==="null")return!1;const C=f(A),K=C.properties;return!K?.__resolveType&&!C.anyOf&&!C.oneOf&&(C.type==="object"||!!K)});return T.length>0&&P.length>0?{data:P,loaders:T}:void 0},te=_.flatMap(y=>{const p=ee(y);return p?[p]:[]}),nn=te.length===0&&_.filter(y=>!_e(h(y))).every(y=>typeof y.$ref=="string"||R.includes(y)),rn=R.some(y=>{const p=y.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===ie||Y(e)&&p[0]==="multivariate")}),ke=(y=[])=>{const p=new Map;for(const E of[...R,..._.filter(b=>!R.includes(b)).flatMap(b=>W(b)),...y]){const b=M(E);b&&!p.has(b)&&p.set(b,E)}const v=[...p].map(([E,b])=>({resolveType:E,title:typeof b.title=="string"?b.title:z(E),description:typeof b.description=="string"?b.description:void 0,schema:U(b,m+1,p.size)})),T=[];for(const E of _){if(R.includes(E)||typeof E.$ref!="string")continue;const b=o(E.$ref);let Q;const X=b.properties?.__resolveType;if(Array.isArray(X?.enum)&&typeof X.enum[0]=="string"&&(Q=X.enum[0]),!Q&&Array.isArray(b.allOf))for(const an of b.allOf){const Oe=an.properties?.__resolveType?.enum;if(Array.isArray(Oe)&&typeof Oe[0]=="string"){Q=Oe[0];break}}Q&&T.push({resolveType:Q,title:typeof b.title=="string"&&!b.title.startsWith("#")?b.title:z(Q),description:typeof b.description=="string"?b.description:void 0,schema:U(b,m+1,_.length)})}const P=new Set(v.map(E=>E.resolveType)),A=[...v,...T.filter(E=>!P.has(E.resolveType))],C=_.filter(E=>!R.includes(E)),K=C.length===1&&!j?O(C[0],m+1,V):void 0;return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:A,plainSchema:K,hidden:S(c)||S(a)?!0:void 0}};if(k){const y=!ft(k,o);if(y&&te.length>0){const p=typeof a.title=="string"?a.title:typeof c.title=="string"&&!I(c.title)?c.title:void 0,v=typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,T=_.find(A=>_e(h(A))),P=te.flatMap(A=>A.data);return{type:"inline-union",title:p,description:v,inlineUnionBranches:[...P.map((A,C)=>({title:d(A,`Option ${C+1}`),schema:O(A,m+1,V)})),{title:d(T,`Option ${P.length+1}`),schema:O(k,m+1,V)}],loaderRef:{...ke(te.flatMap(A=>A.loaders)),title:p,description:v},hidden:S(c)||S(a)?!0:void 0}}if(y&&_.length>1&&nn){const p=O(k,m+1,V),v=typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:p.title,T=typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:p.description;return{...p,type:"array",title:v,description:T,loaderRef:R.length>0?{...ke(),title:v,description:T}:void 0}}if(rn){const p=O(k,m+1,V);return{...p,type:"array",title:typeof c.title=="string"?c.title:p.title,description:typeof c.description=="string"?c.description:p.description}}}if(R.length>0)return ke();const rt=y=>{const p=f(y);if(typeof p.title=="string"&&ut(p.title))return!0;const v=p.properties?.__resolveType?.enum;if(Array.isArray(v)&&typeof v[0]=="string")return!0;if(Array.isArray(p.allOf))for(const T of p.allOf){const P=T.properties?.__resolveType?.enum;if(Array.isArray(P)&&typeof P[0]=="string")return!0}return!1},it=_.map(y=>l(y));if(_.length>1&&it.every(y=>typeof y=="string")&&!_.some(rt)){const y=_.map((p,v)=>{const T=f(p),P=it[v];return{resolveType:P,title:d(p,P),description:typeof T.description=="string"?T.description:void 0,discriminatorValue:P,schema:U(T,m+1,_.length,!1)}});return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,discriminatorKey:"type",anyOfRefs:y,hidden:S(c)||S(a)?!0:void 0}}const Ee=y=>{if(rt(y))return!1;const p=f(y);return p.type==="object"||!!p.properties},sn=y=>{const p=h(y);return _e(p)?!ft(p,o):!1},st=m<we&&_.every(y=>Ee(y)||sn(y))&&_.some(Ee),ot=_.every(y=>typeof y.$ref=="string"),on=Y(e)&&!ot&&_.some(y=>typeof y.$ref=="string"&&Ln.has(Vn(o(y.$ref))))&&_.every(y=>typeof y.$ref=="string"||Ee(y));if((ot||on)&&!st){const y=[];for(const p of _){if(typeof p.$ref!="string")continue;const v=o(p.$ref);let T,P,A=!1;if(typeof v.title=="string"){const E=ut(v.title);E&&(T=E.blockId,P=E.blockId)}if(!T&&Array.isArray(v.allOf))for(const E of v.allOf){const X=((E.properties??{}).__resolveType??{}).enum;if(Array.isArray(X)&&typeof X[0]=="string"){T=X[0],A=!0;break}}if(!T){const b=v.properties?.__resolveType?.enum;Array.isArray(b)&&typeof b[0]=="string"&&(T=b[0],A=!0)}T||(T=p.$ref.split("/").pop()??"");const C=T.includes("/")||A&&!Pn(T),K=C?void 0:l(p);!K&&!C||A&&T==="lazy"||y.push({resolveType:K??T,title:P??(typeof v.title=="string"&&!v.title.startsWith("#")?v.title:z(T)),description:typeof v.description=="string"?v.description:void 0,discriminatorValue:K,schema:U(v,m+1,_.length)})}return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:y,hidden:S(c)||S(a)?!0:void 0}}if(st){const y=v=>{if(typeof v.const=="string"||typeof v.const=="number"||typeof v.const=="boolean")return v.const;if(Array.isArray(v.enum)&&v.enum.length===1&&(typeof v.enum[0]=="string"||typeof v.enum[0]=="number"||typeof v.enum[0]=="boolean"))return v.enum[0]},p=_.map((v,T)=>{const P=f(v).properties??{},A={};for(const[C,K]of Object.entries(P)){const E=y(K);E!==void 0&&(A[C]=E)}return{title:d(v,`Option ${T+1}`),schema:O(v,m+1),discriminators:Object.keys(A).length?A:void 0}});return{type:"inline-union",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,inlineUnionBranches:p,hidden:S(c)||S(a)?!0:void 0}}D="object"}}else c.allOf?(D="object",et=I(c.title)):typeof a.$ref=="string"&&(D="object");let ve,tt,nt=!1;if(m<we&&!j){const w=L(c),_=w.__resolveType?.enum;nt=Array.isArray(_)&&_.length===1&&_[0]==="lazy";const R=ne(w.__required);R.length>0&&(tt=R);const k=Object.entries(w).filter(([ee])=>!ee.startsWith("__")&&ee!=="@type");if(k.length>0){ve={};for(const[ee,te]of k)ve[ee]=O(te,m+1,V)}}let Re;if((D==="array"||c.type==="array")&&m<we&&!j){const w=c.items;if(w){Re=O(w,m+1,V);const _=f(w);typeof _.title=="string"&&_.title.includes("{{")&&(Re.titleBy=_.title)}}const J=w=>{const _=ce?.[w];return typeof _=="string"?_:void 0},tn=()=>{if("default"in a)return a.default;if("default"in c)return c.default;if(ce&&"default"in ce)return ce.default};return{type:D??"string",title:typeof a.title=="string"?a.title:!et&&typeof c.title=="string"?c.title:J("title"),description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:J("description"),default:tn(),enum:Array.isArray(c.enum)?c.enum:G??void 0,format:typeof a.format=="string"?a.format:typeof c.format=="string"?c.format:J("format"),properties:ve,required:tt,items:Re,lazy:nt&&ve?.value?!0:void 0,recursiveRef:j&&typeof a.$ref=="string"&&(D==="object"||D==="array"||c.type==="array")?a.$ref:void 0,hidden:S(c)||S(a)?!0:void 0,titleBy:typeof c.titleBy=="string"?c.titleBy:J("titleBy"),image:typeof c.image=="string"?c.image:J("image"),options:typeof a.options=="string"?a.options:typeof c.options=="string"?c.options:J("options")}};if("ref"in t)return O({$ref:t.ref});const ae=u.properties??{},de=Object.keys(ae).every(a=>a.startsWith("__"));if(Array.isArray(u.allOf)&&u.allOf.length===1&&de){const a=ae.__resolveType,m=Array.isArray(a?.enum)&&typeof a.enum[0]=="string"?a.enum[0]:typeof a?.const=="string"?a.const:typeof a?.default=="string"?a.default:void 0;for(const g of u.allOf){const c=h(g);if(!(Array.isArray(c.anyOf)||Array.isArray(c.oneOf))||c.properties)continue;const j=O(c,0);if(j.type==="inline-union"&&j.inlineUnionBranches){const V=I(j.title);return{...j,title:V?void 0:j.title,inlineUnionBranches:m?j.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:m}})):j.inlineUnionBranches}}}}const Ze=L(u),Se={};for(const[a,m]of Object.entries(Ze))a.startsWith("__")||a==="@type"||(Se[a]=O(m,0));if(Object.keys(Se).length===0)return null;const Je=ne(Ze.__required);return{type:"object",title:typeof u.title=="string"?u.title:void 0,properties:Se,required:Je.length>0?Je:void 0}}function zr(e,t){const n=t.schema??{},r=Ke(e,t),i=n.$defs??n.definitions??{},s=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,o=s.properties??{};if(Object.keys(o).some(l=>!l.startsWith("__")))return!1;if(s.additionalProperties===!0)return!0;const f=o.__resolveType;return!!f&&Array.isArray(f.enum)&&f.enum[0]===e}function Yr(e){const t=r=>{switch(typeof r){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(r===null)return{type:"string"};if(Array.isArray(r))return{type:"array",items:t(r[0])};const i={};for(const[s,o]of Object.entries(r))s.startsWith("__")||(i[s]=t(o));return{type:"object",properties:i}}default:return{type:"string"}}},n={};for(const[r,i]of Object.entries(e))r.startsWith("__")||(n[r]=t(i));return Object.keys(n).length===0?null:{type:"object",properties:n}}function ze(e,t){const n=t.schema??{},r=Ke(e,t),i=n.$defs??n.definitions??{},s=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},o=s.icon,u=s.logo,f=s,l=h=>h===!0||h==="true",d=l(f.hide)||l(f.ignore)||l(f.unlisted);return{title:typeof s.title=="string"?s.title:void 0,description:typeof s.description=="string"?s.description:void 0,icon:typeof o=="string"?o:void 0,logo:typeof u=="string"?u:void 0,hidden:d||void 0}}const kt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],Nn=new Set(kt);function Ye(e){return Nn.has(e)}function Fe(e,t){return Ye(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function Un(e,t){return Fe(e,Y(t)?t:void 0)}function Et(e){return e.replace(/\/+$/,"")||"/"}function Fr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function Kn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function Wr(e){const t=e.trim();return t?Kn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const We=/:([A-Za-z0-9_-]+)|\*/g;function Hr(e){const t=[];for(const n of e.matchAll(We)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function Ot(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function qr(e){e=Ot(e);const t=[];let n=0;for(const r of e.matchAll(We))r.index>n&&t.push({type:"text",text:e.slice(n,r.index)}),t.push({type:"param",name:r[1]??"*"}),n=r.index+r[0].length;return n<e.length&&t.push({type:"text",text:e.slice(n)}),t}function Gr(e,t){return Ot(e).replace(We,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}const zn=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],pt="website/sections/Rendering/Lazy.tsx";function N(e){return zn.some(t=>e.endsWith(t))}const wt="lazy";function He(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===wt&&"value"in e}function Yn(e){return He(e)?e.value:e}function Fn(e){if(e!==void 0)return He(e)?e:{__resolveType:wt,value:e}}function Qr(e){return e.lazy===!0&&!!e.properties?.value}const x="multivariate",Pt=new Set([ie,pe]);function jt(e){if(!Y(e))return!1;const t=e?.manifest?.blocks??{};return Object.values(t).some(n=>Object.hasOwn(n??{},x))}function Mt(e){return jt(e)?x:pe}function Wn(e){return jt(e)?x:ie}function Lt(e){return typeof e=="string"&&(e===x||Pt.has(e))}function Hn(e){return e===x}function F(e){if(!(!e||typeof e!="object"))return Yn(e.value)}function se(e,t,n){return Hn(e)||He(n)?Fn(t):t}function qn(e,t,n){return{...t,value:se(e,n,t.value)}}function yt(e,t){return t?Lt(e):typeof e=="string"&&Pt.has(e)}function re(e,t){if(t)return F(e);if(!(!e||typeof e!="object"))return e.value}const Vt=kt[0],Gn=new Set(["site/sections/Theme/Theme.tsx"]);function Qn(e,t){return Gn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function Ae(e,t){return!!(Qn(e,Y(t))||N(e)||e.toLowerCase().includes("preview"))}function Bt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(Ye(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":Vt}function Xn(e){return Y(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function Xr(e){return e?Xn(e)?"page":Bt(e):Vt}function Me(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return Me(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...Me(n));return t}return[]}function Zn(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const s of Object.keys(i)){if(Ae(s,e))continue;const o=ze(s,e);n.push({resolveType:s,title:o.title??z(s),description:o.description,previewBlock:s,isSavedBlock:!1})}return n}function Zr(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const s of Object.keys(i))Ae(s,e)||n.has(s)||n.set(s,{resolveType:s,title:z(s)});return[...n.values()].sort((r,i)=>r.title.localeCompare(i.title))}function $t(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=Y(e);if(!Ct(n,r))return n;const i=t.variants;if(!Array.isArray(i))return n;for(const s of i){const o=re(s,r);if(!o||typeof o!="object")continue;let u=o.__resolveType;if(typeof u=="string"&&N(u)&&(u=o.section?.__resolveType??u),typeof u=="string"&&De(e,u))return u}return n}function Ct(e,t){return e===pe||t&&e===x}function Jn(e,t){return $t(e,t)!==t.__resolveType}function It(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||xe(r)||!i||typeof i!="object"||Array.isArray(i))continue;const s=i,o=s.__resolveType;typeof o!="string"||Ye(o)||typeof s.path=="string"||Ae(o,e)||!(De(e,o)||Ct(o,Y(e))&&Jn(e,s))||n.push({resolveType:r,title:r,description:typeof s.name=="string"?s.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function er(e,t){const n=Z(t.resolveType,e),r=n?{}:ze(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||z(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function Jr(e,t){const n=Bt(e),r=St(n,e),i=Me(r?.properties?.sections),s=new Map,o=u=>{if(!Ae(u.resolveType,e)){if(Z(u.resolveType,e)){xe(u.resolveType)||s.set(u.resolveType,u);return}De(e,u.resolveType)&&(s.has(u.resolveType)||s.set(u.resolveType,u))}};for(const u of Zn(e))o(u);for(const u of i)o(er(e,u));for(const u of It(e,t))o(u);return[...s.values()].sort((u,f)=>u.title.localeCompare(f.title))}function ei(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const n=t.theme;if(!(!n||typeof n!="object"||Array.isArray(n)))return n}const qe="website/loaders/redirect.ts",ti=new Set([qe,"website/loaders/redirects.ts"]),Ge="redirect",tr=[301,302,307,308],nr={temporary:307,permanent:301};function ni(e){return e.flat?e.status??(e.type==="permanent"?301:302):nr[e.type]}const he=e=>typeof e=="string"?e:"",rr=e=>e==="permanent"?"permanent":"temporary",ir=e=>tr.find(t=>t===e);function sr(e){const t=ir(e.status);return{from:he(e.from),to:he(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function Dt(e){if(e?.__resolveType===Ge)return sr(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:he(t.from),to:he(t.to),type:rr(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function or(e){const t=[];for(const[n,r]of Object.entries(e)){if(!r||typeof r!="object"||Array.isArray(r))continue;const i=r;i.__resolveType!==qe&&i.__resolveType!==Ge||t.push({key:n,...Dt(i)})}return t}function ri(e){return Dt(e)}function ii(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...s}=t??{};return{...s,__resolveType:Ge,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const n={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(n.discardQueryParameters=!0),{redirect:n,__resolveType:qe}}function ar(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const cr=1e3;function si(e,t){const n=ar(t);for(let r=0;r<cr;r++){const i=`redirects-${n}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}function ur(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,"");try{return decodeURIComponent(t)}catch{return t}}function oi(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const s=e.find(u=>u.key===n);if(s)return s;const o=e.find(u=>u.key.endsWith(`-${n}`));if(o)return o}if(r){const s=dt(e,r);if(s)return s}if(i){const s=dt(e,i);if(s)return s}return null}function dt(e,t,n){const r=Et;if(n){const s=e.find(o=>o.key===n);if(s)return s}const i=e.filter(s=>r(s.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((s,o)=>s.key.localeCompare(o.key))[0]??null}const ue="site",xt="site/apps/site.ts";function Le(e,t){return e===ue?!0:t.__resolveType===xt}function ai(e,t){return e?Nt(e,t).length>0||or(e).length>0?!0:t?dr(e,t).length>0||pr(e,t)?!0:yr(e,t).length>0:!1:!1}function lr(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!Fe(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:ur(e),path:r.path}}function Nt(e,t){const n=[];for(const[r,i]of Object.entries(e)){const s=lr(r,i,t);s&&n.push(s)}return n}function Te(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>Te(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>Te(i,t,n+1))}function fr(e,t,n){const r=Nt(e,n),i=new Set(r.map(o=>o.key)),s=new Set([t]);for(let o=!0;o;){o=!1;for(const[u,f]of Object.entries(e))s.has(u)||i.has(u)||Te(f,s)&&(s.add(u),o=!0)}return r.filter(o=>o.key!==t&&Te(e[o.key],s))}function ci(e,t,n){const r=s=>Et(s.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(s.path)?2:1,[i]=fr(e,t,n).sort((s,o)=>r(s)-r(o)||(s.path<o.path?-1:s.path>o.path?1:0));return i??null}function Ut(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function Ve(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?ze(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const s=t.name.trim();if(s)return s}return e.replace(/[-_]/g," ").replace(/\b\w/g,s=>s.toUpperCase())}function pr(e,t){const n=e[ue];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(Le(ue,r)||At(t,i)))return{key:ue,name:Ve(ue,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const s=i;if(!Le(r,s))continue;const o=typeof s.__resolveType=="string"?s.__resolveType:xt;return{key:r,name:Ve(r,s,t),resolveType:o}}return null}function yr(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const s=i,o=s.__resolveType;typeof o=="string"&&(Fe(o,t)||typeof s.path!="string"&&(Le(r,s)||!At(t,o)&&!xn(o)||n.push({key:r,name:Ve(r,s,t),resolveType:o})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function dr(e,t){return It(t,e).map(n=>{const r=e[n.resolveType],i=$t(t,r);return{key:n.resolveType,name:n.description??Ut(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}function vr(e){return e.includes("matchers")||e.includes("Match")}function Kt(e,t){const n=e.__resolveType;return typeof n!="string"||!n||Un(n,t)?!1:t?Mn(t,n):vr(n)}function ui(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||!Z(r,e)||xe(r)||!i||typeof i!="object"||Array.isArray(i))continue;const s=i;Kt(s,e)&&n.push({blockKey:r,matcherResolveType:s.__resolveType??"",name:typeof s.name=="string"?s.name:void 0})}return n.sort((r,i)=>(r.name??r.blockKey).localeCompare(i.name??i.blockKey))}function oe(e,t,n){if(!e)return!1;const r=e.__resolveType;if(typeof r!="string"||!Z(r,n)||!Object.hasOwn(t,r))return!1;const i=t[r];return!i||typeof i!="object"||Array.isArray(i)?!1:Kt(i,n)}function li(e,t,n){return oe(e,t,n)?e?.__resolveType??null:null}function zt(e,t,n){if(!e)return null;const r=e.__resolveType??"";if(!r)return null;if(oe(e,t,n)){const o=t[r]??{},u=o.__resolveType??r,{__resolveType:f,name:l,...d}=o;return{resolveType:u,data:d,blockKey:r}}const{__resolveType:i,...s}=e;return{resolveType:r,data:s}}function _r(e,t,n){const r=zt(e,t,n);return r?{__resolveType:r.resolveType,...r.data}:{__resolveType:""}}function fi(e,t,n){if(e)return oe(e,t,n)?_r(e,t,n):e}function mr(e,t,n,r){if(!e)return"Default";if(oe(e,t,r)){const i=e.__resolveType??"",s=t[i];return Ut(i,s)}return n(e,pn(t))}function pi(e,t,n){return{__resolveType:e,...t,name:n}}function yi(e){return{__resolveType:e}}function di(e,t,n){const r=zt(e,t,n);return r?{resolveType:r.resolveType,formValue:r.data}:{resolveType:"",formValue:{}}}function vi(e,t){const n={__resolveType:e};if(!e||!t)return n;const r=St(e,t),i=r?.type==="inline-union"?r.inlineUnionBranches?.[0]?.discriminators:void 0;return i?{...n,...i}:n}function Yt(e){const t=[];for(let n=e;n?.key!=null;n=n.parent)t.push(n.key);return t.reverse()}function Be(e){return{blockKey:e.blockKey,path:Yt(e)}}function Ft(e,t,n){const r=[];for(const[s,o]of Object.entries(e))s!==t&&r.push({node:o,blockKey:s,parent:null,key:null});const i=new Set;for(;r.length>0;){const s=r.pop(),{node:o}=s;if(!(!o||typeof o!="object")&&!i.has(o)){if(i.add(o),Array.isArray(o)){o.forEach((u,f)=>{r.push({node:u,blockKey:s.blockKey,parent:s,key:f})});continue}n(o,s);for(const[u,f]of Object.entries(o))r.push({node:f,blockKey:s.blockKey,parent:s,key:u})}}}function Wt(e,t,n){if(!t)return[];const r=[];return Ft(e,t,(i,s)=>{if(i.__resolveType!==t||!oe(i,e,n))return;const o=Ht(s);r.push({...Be(s),...o?{variant:o}:{}})}),r}function gr(){return{experiments:{byName:new Map,wholeBlock:[]},campaigns:{byName:new Map,wholeBlock:[]}}}function Ht(e){for(let t=e;t;t=t.parent){const n=t.parent,r=n?.parent,i=r?.parent;if(!n||!r||!i)return;if(t.key==="rule"&&typeof n.key=="number"&&r.key==="variants"&&q(i.node)&&Lt(i.node.__resolveType)){const s=i.node.experiment;return{containerPath:Yt(i),containerType:i.node.__resolveType,index:n.key,...typeof s=="string"?{experiment:s}:{}}}}}function hr(e,t){const n=[],r=gr(),i=new Set(fe.filter(l=>ge(e,l).kind!=="conflict"));Ft(e,null,(l,d)=>{const h=ln(l.__resolveType);if(h&&i.has(h)){r[h].wholeBlock.push({kind:h,...Be(d)});return}const M=mn(l);M&&n.push({...M,location:Be(d),variant:Ht(d)})});const s=l=>{const d=r[l.kind].byName,h=d.get(l.name);h?h.push(l):d.set(l.name,[l])},o=new Map,u=l=>{let d=o.get(l);return d||(d=Wt(e,l,t),o.set(l,d)),d},f=l=>oe({__resolveType:l},e,t);for(const l of n){const{blockKey:d}=l.location,h=f(d);if(s({kind:l.kind,name:l.name,blockKey:d,path:l.location.path,...l.variant?{variant:l.variant}:{},via:[],savedRule:h}),!h)continue;const M=[{blockKey:d,via:[d]}],$=new Set([d]);for(;M.length>0;){const{blockKey:W,via:S}=M.shift();for(const I of u(W)){const L=I.blockKey;if(S.includes(L))continue;const O=f(L);s({kind:l.kind,name:l.name,blockKey:L,path:I.path,...I.variant?{variant:I.variant}:{},via:S,savedRule:O}),O&&!$.has(L)&&($.add(L),M.push({blockKey:L,via:[L,...S]}))}}}return r}function Tr(e){return JSON.stringify([e.blockKey,...e.via])}function vt(e,t,n){const r=new Set(t.map(n)),i=new Set(e.map(n)),s=e.map(u=>({...u,state:r.has(n(u))?"published":"draft-only"})),o=new Set;for(const u of t){const f=n(u);i.has(f)||o.has(f)||(o.add(f),s.push({...u,state:"removed-in-draft"}))}return s}function _i(e,t){const n={};for(const r of fe){const i=new Map,s=new Set([...e[r].byName.keys(),...t[r].byName.keys()]);for(const o of s)i.set(o,vt(e[r].byName.get(o)??[],t[r].byName.get(o)??[],Tr));n[r]={byName:i,wholeBlock:vt(e[r].wholeBlock,t[r].wholeBlock,o=>o.blockKey)}}return n}function mi(e,t,n,r,i){const s=ge(e,t);if(s.kind!=="saved"||!r.trim()||n===r||!Object.hasOwn(s.values,n)||Object.hasOwn(s.block,r)||t==="experiments"&&!_n(s.values[n]))return null;const{blockKey:o}=cn(t),u={[o]:Tn(s.block,n,r)},f=hr(e,i)[t].byName.get(n)??[];for(const l of f){if(l.via.length>0)continue;const d=u[l.blockKey]??e[l.blockKey];q(d)&&(u[l.blockKey]=br(d,l.path,gn(t,r)))}return{writes:u}}function br(e,t,n){const r=(i,s)=>{if(s===t.length)return q(i)?{...i,...n}:i;const o=t[s];if(Array.isArray(i)&&typeof o=="number"){const u=i.slice();return u[o]=r(i[o],s+1),u}return q(i)&&typeof o=="string"?{...i,[o]:r(i[o],s+1)}:i};return r(e,0)}function gi(e,t){const n={...e};for(const[r,i]of Object.entries(t))i.kind!==null&&(i.before!==null?n[r]=i.before:i.baseVersion===null&&delete n[r]);return n}function qt(e){const t=e.__resolveType??"";return N(t)?e.section??e:e}function be(e,t){const s=(N(e.__resolveType??"")?e.section:e)?.variants?.[0],o=s?.rule;return gt(o?.__resolveType,t)?re(s,t)??null:null}function hi(e,t){const n=qt(e),r=Mt(t);return{__resolveType:r,variants:[{value:se(r,n),rule:{__resolveType:Rn(t)}}]}}function Ti(e){const t=e.__resolveType??"";if(!t)return null;if(N(t))return e.section??null;const n=be(e,!1);return n?N(n.__resolveType??"")?n:{__resolveType:pt,section:qt(n)}:{__resolveType:pt,section:e}}function me(e){const t=e.__resolveType??"";if(!t)return null;if(N(t)){const n=e.section,r=n?.__resolveType??"";return!r||!n?null:{resolveType:r,data:n}}return{resolveType:t,data:e}}function bi(e,t=!1){const n=be(e,t);if(n)return me(n);if(N(e.__resolveType??"")){const i=e.section;if(!i)return null;const s=be(i,t);return me(s||i)}return me(e)}function Ai(e,t=!1){return be(e,t)}function Qe(e){if(!e)return!1;const t=e.__resolveType??"";return t===""?Object.keys(e).length===0:An(t)||t.includes("always")}function Xe(e,t){if(!t)return e.length;const n=e[e.length-1];return n&&Qe(n.rule)?e.length-1:e.length}function Gt(e,t,n){return Math.min(t+1,Xe(e,n))}function Ar(e){const t=e.variants??[];if(t.length===0)return-1;const n=t.findIndex(r=>Qe(r.rule));return n!==-1?n:t.length-1}function Si(e,t,n){const r=n.variants??[];if(r.length===0)return null;const i=Ar(n),s=F(r[i]);if(!s)return null;const o=structuredClone(s);return t.isLazy?{...e,section:o}:o}function Qt(e,t){return t.isMultivariate?t.isLazy?e.section??null:e:null}function Ri(e,t){return Array.isArray(e.variants)?e.variants.map((n,r)=>({label:t(n.rule)||`Variant ${r+1}`,value:F(n)??{},rule:n.rule})):[]}function ki(e,t){const n=e.__resolveType??"";if(!n)return null;if(N(n)){const r=e.section??e,i=r.__resolveType??n;if(!i.includes("/")&&i in t){const s=t[i]??{};return{data:{...s},resolveType:s.__resolveType??i}}return{data:{...r},resolveType:i}}if(!n.includes("/")&&n in t){const r=t[n]??{};return{data:{...r},resolveType:r.__resolveType??n}}return{data:{...e},resolveType:n}}function Sr(e,t){const n=e.__resolveType??"";return N(n)?{...e,section:t}:t}function Rr(e,t,n){return t.isLazy?{...e,section:n}:n}function Ei(e,t,n){const r=[...e.variants??[]],i=r[t];if(!i)return e;const s=F(i)??{};return r[t]={...i,value:se(e.__resolveType,Sr(s,n),i.value)},{...e,variants:r}}function Oi(e,t,n){const r=[...e.variants??[]];return r[t]?(r[t]={...r[t],rule:n},{...e,variants:r}):e}function wi(e,t,n=!1){const r=[...e.variants??[]],i=r[t];return i?(r.splice(Gt(r,t,n),0,structuredClone(i)),{...e,variants:r}):e}function Pi(e,t,n){const r=[...e.variants??[]];if(t===n||t<0||n<0||t>=r.length||n>=r.length)return e;const[i]=r.splice(t,1);return i?(r.splice(n,0,i),{...e,variants:r}):e}function ji(e,t){const n=[...e.variants??[]];return n.length<=1?null:(n.splice(t,1),{...e,variants:n})}function $e(e,t,n){return{rule:Ie(t),value:se(n,structuredClone(e))}}function Xt(e,t){return e?e.__resolveType===x?x:pe:Mt(t)}function Zt(e,t,n){return{...n,__resolveType:t,variants:e}}function Mi(e){return e.isHidden!==!0&&e.isSavedBlock!==!0}function kr(e,t){if(t.isHidden)return null;if(t.isMultivariate){const r=Qt(e,t)?.variants??[],i=F(r[r.length-1]);return i?structuredClone(i):null}if(t.isLazy){const n=e.section;return n?structuredClone(n):null}return structuredClone(e)}function Er(e,t,n,r){if(t.isMultivariate||t.isHidden)return null;const i=kr(e,t);if(!i)return null;const s=Xt(void 0,r),o=Zt([$e(i,r,s),$e(i,r,s)],s);return t.isLazy?{...e,section:o}:o}function Li(e,t,n,r,i=!1){if(t.isHidden||t.isSavedBlock)return null;if(t.isMultivariate){const o=Qt(e,t);if(!o)return null;const u=o.variants??[],f=F(u[u.length-1]);if(!f)return null;const l=Xt(o,r),d=Xe(u,i),h=[...u];h.splice(d,0,$e(f,r,l));const M=Zt(h,l,o);return{section:Rr(e,t,M),newVariantIndex:d}}const s=Er(e,t,n,r);return s?{section:s,newVariantIndex:i?0:1}:null}function Or(e){for(const t of e.anyOfRefs??[]){if(t.resolveType!==ie&&t.resolveType!==x)continue;const n=t.schema?.properties?.variants?.items?.properties?.value,r=n?.lazy?n.properties?.value:n;if(r?.type==="array")return r}}function Vi(e){return Or(e)!==void 0}function Bi(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;const n=e;return Array.isArray(n.variants)?n.__resolveType===pe?!0:t&&n.__resolveType===x&&!Jt(n.variants):!1}function Jt(e){return e.some(t=>Array.isArray(F(t)))}function en(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;const n=e;return n.__resolveType===ie?!0:t&&n.__resolveType===x&&Array.isArray(n.variants)&&Jt(n.variants)}function $i(e,t){if(!en(e,t))return null;const n=e.variants;if(!Array.isArray(n))return null;const r=re(n[0],t);return Array.isArray(r)?r:null}function Ci(e,t,n,r){if(!en(e,r))return t;const i=structuredClone(e),s=[...i.variants??[]];return s.length===0?s.push({rule:Ie(n),value:se(i.__resolveType,t)}):s[0]=qn(i.__resolveType,s[0],t),{...i,variants:s}}function Ii(e,t){const r=e[t]?.sections;if(!r||Array.isArray(r))return 1;const i=r;return Array.isArray(i.variants)?i.variants.length:1}function Di(e,t,n){const i=e[t]?.sections;if(Array.isArray(i))return n===0?i:[];if(i&&typeof i=="object"){const s=i.variants;if(Array.isArray(s)){const o=F(s[n]);return Array.isArray(o)?o:[]}}return[]}function xi(e,t,n){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const r=e;if(Array.isArray(r.variants)){const i=r.variants,s=i.map(f=>mr(f.rule,t,n)),o=s.reduce((f,l)=>(f[l]=(f[l]??0)+1,f),{}),u={};return i.map((f,l)=>{const d=s[l]??`Variant ${l+1}`,h=o[d]??1;let M=d;h>1&&(u[d]=(u[d]??0)+1,M=`${d} ${u[d]}`);const $=F(f);return{label:M||`Variant ${l+1}`,sections:Array.isArray($)?$:[],rule:f.rule}})}}return[]}function Pe(e,t,n){return{rule:Ie(t),value:se(n,e)}}function Ce(e,t){return e?e.__resolveType===x?x:ie:Wn(t)}function le(e,t,n){return{...t,__resolveType:Ce(t,n),variants:e}}function Ni(e,t,n,r=!1){const i=structuredClone(t);if(e&&typeof e=="object"&&!Array.isArray(e)){const f=e;if(!Array.isArray(f.variants))return null;const l=[...f.variants],d=Xe(l,r);return l.splice(d,0,Pe(i,n,Ce(f))),{sections:le(l,f),newVariantIndex:d}}const s=Ce(void 0,n),o=Pe(Array.isArray(e)?e:[],n,s),u=Pe(i,n,s);return{sections:le(r?[u,o]:[o,u],void 0,n),newVariantIndex:r?0:1}}function Ui(e,t,n=!1){const r=e[t];if(!r)return null;const i=[...e];return i.splice(Gt(e,t,n),0,structuredClone(r)),i}function Ki(e,t){if(t.length===0)return le([],e);if(t.length===1){const n=t[0],r=n?.rule;if(!Qe(r))return le(t,e);const i=F(n);if(Array.isArray(i))return i}return le(t,e)}function zi(e,t,n){return Wt(e,t,n).length}function je(e,t,n){const r=n[e];return typeof r?.name=="string"&&r.name||e.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${t+1}`}function Yi(e,t,n=!1){return e.map((r,i)=>{const s=r.__resolveType??"",o=N(s);if(!o&&s!==""&&Z(s)&&s in t)return{index:i,resolveType:s,label:je(s,i,t),isLazy:!1,isSavedBlock:!0};const u=o?r.section:void 0,f=o?u?.__resolveType??"":s;if(yt(f,n)){const d=o?u:r,h=Array.isArray(d?.variants)?d.variants:[];if(h.length===1&>(h[0]?.rule?.__resolveType,n)){const W=re(h[0],n)??{};let S=W.__resolveType??"";const I=N(S);let L=W;if(I){const O=W.section;S=O?.__resolveType??S,O&&(L=O)}if(yt(S,n)){const O=Array.isArray(L.variants)?L.variants:[],ae=re(O[0],n)?.__resolveType,de=ae?z(ae):"Section";return{index:i,resolveType:s,label:`Variants of ${de}`,variantOf:de,isHidden:!0,isLazy:I}}return S!==""&&Z(S)&&S in t?{index:i,resolveType:s,label:je(S,i,t),isHidden:!0,isLazy:I,isSavedBlock:!0}:{index:i,resolveType:s,label:z(S)||`Section ${i+1}`,isHidden:!0,isLazy:I}}const M=re(h[0],n)?.__resolveType,$=M?z(M):"Section";return{index:i,resolveType:s,label:`Variants of ${$}`,variantOf:$,isMultivariate:!0,isLazy:o}}const l=o?r.section?.__resolveType??s:s;return o&&l!==""&&Z(l)&&l in t?{index:i,resolveType:s,label:je(l,i,t),isLazy:!0,isSavedBlock:!0}:{index:i,resolveType:s,label:z(l)||`Section ${i+1}`,isLazy:o}})}export{z as $,Ut as A,oi as B,pr as C,or as D,Zr as E,Ii as F,Ir as G,Ni as H,si as I,ii as J,ct as K,Un as L,Xn as M,fe as N,Xr as O,Me as P,Z as Q,nr as R,xt as S,Ye as T,Wn as U,Rn as V,se as W,x as X,Nr as Y,ut as Z,lt as _,gt as a,At as a$,Pn as a0,F as a1,An as a2,Vi as a3,Kr as a4,Ur as a5,ui as a6,_r as a7,yi as a8,qn as a9,Or as aA,ti as aB,xe as aC,zr as aD,Yr as aE,pe as aF,lr as aG,ur as aH,He as aI,Lt as aJ,ln as aK,jr as aL,Vt as aM,ge as aN,Br as aO,cn as aP,gn as aQ,Lr as aR,$r as aS,hr as aT,gi as aU,_i as aV,_n as aW,Cr as aX,Vr as aY,mi as aZ,vn as a_,fi as aa,xi as ab,Jr as ac,Ie as ad,Qe as ae,Xe as af,Gt as ag,mr as ah,li as ai,di as aj,mn as ak,oe as al,pi as am,vi as an,Sn as ao,On as ap,xr as aq,En as ar,Dr as as,Bi as at,Qr as au,Fn as av,Yn as aw,en as ax,$i as ay,Ci as az,N as b,bi as b0,ei as b1,Mi as b2,Qt as b3,Ri as b4,ki as b5,zt as b6,Li as b7,Pi as b8,Rr as b9,Si as ba,ji as bb,wi as bc,Oi as bd,Ti as be,Ai as bf,hi as bg,Ki as bh,zi as bi,Ei as bj,Ar as bk,Ui as bl,ri as bm,tr as bn,Fr as c,Wr as d,Nt as e,Gr as f,dr as g,ai as h,yt as i,dt as j,Di as k,Mr as l,Bt as m,Et as n,ci as o,Yi as p,St as q,pn as r,qr as s,Le as t,xn as u,re as v,Ve as w,ze as x,ni as y,Hr as z};
|
|
1
|
+
import{i as Y}from"./thread-intent-Ds79TVrW.js";const H={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},fe=["experiments","campaigns"];function cn(e){return H[e]}function un(e){for(const t of fe)if(H[t].matcher===e)return t;return null}function jr(e){for(const t of fe)if(H[t].resolveType===e)return t;return null}function ln(e){for(const t of fe)if(H[t].blockKey===e)return t;return null}const fn="deco";function Mr(e,t){if(!Y(e))return"missing";const n=H[t],r=at(e,n.resolveType),i=at(e,n.matcher);if(!r||!i)return"missing";const s=o=>o.namespace===void 0||o.namespace===fn;return s(r)&&s(i)?"available":"replaced"}function at(e,t){const n=e?.manifest?.blocks??{};for(const r of Object.values(n))if(r&&Object.hasOwn(r,t))return r[t]??{};return null}function ge(e,t){const n=H[t],r=Object.hasOwn(e,n.blockKey)?e[n.blockKey]:void 0;if(r==null)return{kind:"absent",block:{__resolveType:n.resolveType},values:Object.create(null),invalid:[]};const i=q(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const s=r,o=Object.create(null),u=[];for(const[f,l]of Object.entries(s)){if(f==="__resolveType")continue;const d=t==="experiments"?yn(l):dn(l);d===null?u.push(f):o[f]=d}return{kind:"saved",block:s,values:o,invalid:u}}function Lr(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function Vr(e){return e.kind==="conflict"?[]:Object.keys(e.block).filter(t=>t!=="__resolveType")}function pn(e){const t=ge(e,"experiments"),n=ge(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function yn(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function dn(e){if(!q(e))return null;const t={};for(const n of["start","end"]){const r=e[n];if(!(r==null||r==="")){if(typeof r!="string")return null;t[n]=r}}return t}function vn(e){return e<=0?"off":e>=100?"everyone":"running"}function _n(e){return e===void 0||vn(e)!=="running"}function mn(e){if(!q(e))return null;const t=un(e.__resolveType);if(!t)return null;const n=e[H[t].field];return typeof n=="string"?{kind:t,name:n}:null}function gn(e,t){const n=H[e];return{__resolveType:n.matcher,[n.field]:t}}const hn="date";function Br(e){return q(e)&&e.__resolveType===hn&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function $r(e,t,n,r){return{...e,__resolveType:H[t].resolveType,[n]:r}}function Cr(e,t){if(t==="__resolveType")return e;const{[t]:n,...r}=e;return r}function Tn(e,t,n){if(t===n||t==="__resolveType"||n==="__resolveType"||!Object.hasOwn(e,t)||Object.hasOwn(e,n))return e;const r={};for(const[i,s]of Object.entries(e))r[i===t?n:i]=s;return r}function q(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}const Ir="oklch(0.7278 0.151 289)",_t="website/matchers/always.ts",mt="website/matchers/never.ts",ie="website/flags/multivariate.ts",pe="website/flags/multivariate/section.ts",bn=new Set([_t,"$live/matchers/MatchAlways.ts"]);function An(e,t=!1){return typeof e=="string"&&(bn.has(e)||t&&e==="always")}function gt(e,t=!1){return typeof e=="string"&&(e===mt||t&&e==="never")}function ht(e,t){return Y(e)?Object.hasOwn(e?.manifest?.blocks?.matchers??{},t):!1}function Sn(e){return ht(e,"always")?"always":_t}function Rn(e){return ht(e,"never")?"never":mt}function Ie(e){return{__resolveType:Sn(e)}}function z(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?|html?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())||e}const Dr="website/loaders/secret.ts",xr=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],kn=/^(?:[0-9a-f]{2})*$/i;function En(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e.__resolveType;return typeof t=="string"&&(t.endsWith("/secret.ts")||t.includes("loaders/secret"))}function On(e){return typeof e=="string"&&kn.test(e)}class wn extends Error{constructor(t){super(`Secret at "${t}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=t,this.name="PlaintextSecretError"}path}function ct(e,t=""){if(Array.isArray(e))return e.map((r,i)=>ct(r,`${t}/${i}`));if(!e||typeof e!="object")return e;const n=Object.entries(e);if(En(e)){const r=e.encrypted;if(r!==void 0&&!On(r))throw new wn(t||"/");return Object.fromEntries(n.filter(([i])=>i!=="value"))}return Object.fromEntries(n.map(([r,i])=>[r,ct(i,`${t}/${r}`)]))}function ut(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function Pn(e){return e.includes("@")}function lt(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function Nr(e,t){if(e===t)return!0;const n=lt(e);return n?t===n||lt(t)===n:!1}function ye(e,t){const n=e.manifest?.blocks??{};for(const[r,i]of Object.entries(n))if(t in i)return r;return null}function Ur(e,t){return ye(e,t)!==null}function De(e,t){const n=ye(e,t);return n!==null&&n.includes("sections")}function jn(e,t){const n=ye(e,t);return n!==null&&n.includes("apps")}function Mn(e,t){const n=ye(e,t);return n!==null&&n.includes("matchers")}function Z(e,t){return!(!e||t&&ye(t,e)!==null||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function xe(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}const Ln=new Set(["split-traffic","calendar"]);function Vn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const Bn=12,$n=8,we=32,Cn=40,In="__SECTION_REF__";function _e(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function ft(e,t){let n=e.items;if(!n)return!1;if(typeof n.$ref=="string"&&(n=t(n.$ref)),Array.isArray(n.anyOf)||Array.isArray(n.oneOf))return!0;const i=n.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const Dn="VideoWidget";function ne(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function Tt(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function Ne(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Ue(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function bt(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function Ke(e,t){const n=t.manifest?.blocks??{};for(const u of Object.values(n))if(u[e])return u[e];const r=Ne(e)??Ue(e);if(r){for(const u of bt(r.vendor,r.app))for(const f of Object.values(n))if(f[u])return f[u]}const i=Tt(e);for(const u of Object.values(n))if(u[i])return u[i];const s=t.schema??{};return(s.$defs??s.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function At(e,t){if(jn(e,t))return!0;const n=Ne(t)??Ue(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(bt(n.vendor,n.app).some(o=>o in r))return!0;const i=Tt(t),s=e.schema?.$defs??e.schema?.definitions??{};return i in s}function xn(e){return e==="site/apps/site.ts"?!1:Ne(e)!==null||Ue(e)!==null}function St(e,t){return Rt(t,{resolveType:e})}function Kr(e,t){return Rt(t,{ref:e})}function Rt(e,t){const n=e.schema??{},r="resolveType"in t?Ke(t.resolveType,e):{},i=n.$defs??n.definitions??{},s=n.root??{},o=a=>{if(a.startsWith("#/root/")){const c=a.slice(7);return s[c]??{}}const m=a.split("/").pop()??"",g=i[m];return g||(m===In?s.sections??{}:{})};let u;typeof r.$ref=="string"?u=o(r.$ref):Object.keys(r).length>0?u=r:u=n;const f=a=>typeof a.$ref=="string"?o(a.$ref):a,l=a=>{const g=f(a).properties?.type;if(g){if(typeof g.const=="string")return g.const;if(typeof g.default=="string")return g.default;if(Array.isArray(g.enum)&&typeof g.enum[0]=="string")return g.enum[0]}},d=(a,m)=>{const g=f(a);return typeof g.title=="string"&&!g.title.startsWith("#")?g.title:m},h=(a,m=new Set)=>{if(typeof a.$ref!="string"||a.properties||a.anyOf||a.allOf||a.oneOf||a.type)return a;const g=a.$ref.split("/").pop()??"";return!g||m.has(g)?a:h(o(a.$ref),new Set([...m,g]))},M=a=>{const m=a.properties?.__resolveType?.enum;return Array.isArray(m)&&typeof m[0]=="string"?m[0]:void 0},$=a=>M(a)!==void 0,W=(a,m=new Set)=>{if(typeof a.$ref!="string")return[];const g=a.$ref.split("/").pop()??"";if(!g||m.has(g))return[];const c=o(a.$ref),B=c.anyOf??c.oneOf;if(!Array.isArray(B))return[];const j=new Set([...m,g]);return B.flatMap(V=>$(V)?[V]:W(V,j))},S=a=>{const m=a.hide;return m===!0||m==="true"},I=a=>typeof a=="string"&&(a.includes("://")||!/\s/.test(a)&&(a.includes("|")||a.includes("&")||a.includes("@"))),L=(a,m=new Set,g=0)=>{if(g>Bn)return{};if(typeof a.$ref=="string"){const B=a.$ref.split("/").pop()??"";return m.has(B)?{}:L(o(a.$ref),new Set([...m,B]),g+1)}let c={};a.properties&&typeof a.properties=="object"&&(c={...c,...a.properties}),Array.isArray(a.required)&&(c.__required=[...ne(c.__required),...ne(a.required)]);for(const B of["allOf","anyOf","oneOf"]){const j=a[B];if(Array.isArray(j))for(const V of j){const U=ne(c.__required),G=L(V,m,g+1);c={...c,...G};const D=B==="allOf"?[...U,...ne(G.__required)]:U;D.length>0?c.__required=D:delete c.__required}}return c},O=(a,m=0,g=new Set)=>{let c=a,B;if(typeof a.$ref=="string"){c=o(a.$ref);const w=a.$ref.split("/").pop()??"";B=w,w===Dn&&!c.format&&(c={...c,format:"video-uri"})}c=h(c);const j=B!==void 0&&g.has(B),V=B!==void 0?new Set([...g,B]):g,U=(w,_,R,k=!0)=>!j&&(!k||R<=Cn)&&_<$n?O(w,_,V):void 0;let G;{const w=c.anyOf??c.oneOf;if(Array.isArray(w)){const _=w.filter(k=>!(k.type==="null"||k.type===null)),R=k=>{if(typeof k.const=="string"||typeof k.const=="number")return k.const;if(Array.isArray(k.enum)&&k.enum.length===1&&(typeof k.enum[0]=="string"||typeof k.enum[0]=="number"))return k.enum[0]};_.length>0&&_.every(k=>R(k)!==void 0)&&(G=_.map(k=>R(k)))}}let D,ce,et=!1;if(c.type)D=Array.isArray(c.type)?String(c.type.find(w=>w!=="null")??c.type[0]):String(c.type);else if(c.anyOf||c.oneOf){const _=(c.anyOf??c.oneOf).filter(R=>!(R.type==="null"||R.type===null));if(_.length===0)D="null";else if(_.length===1){const R=_[0];ce=R,D=R.type?Array.isArray(R.type)?String(R.type[0]):String(R.type):typeof R.$ref=="string"?"object":"string"}else{if(G){const y=p=>typeof a[p]=="string"?a[p]:typeof c[p]=="string"?c[p]:void 0;return{type:"string",title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,enum:G,format:y("format"),options:y("options")}}const R=_.filter($),k=_.map(y=>h(y)).find(_e),ee=y=>{if(typeof y.$ref!="string")return;const p=h(y),v=p.anyOf??p.oneOf;if(!Array.isArray(v))return;const T=[...v.filter($),...v.filter(A=>!$(A)).flatMap(A=>W(A))],P=v.filter(A=>{if($(A)||A.type==="null")return!1;const C=f(A),K=C.properties;return!K?.__resolveType&&!C.anyOf&&!C.oneOf&&(C.type==="object"||!!K)});return T.length>0&&P.length>0?{data:P,loaders:T}:void 0},te=_.flatMap(y=>{const p=ee(y);return p?[p]:[]}),nn=te.length===0&&_.filter(y=>!_e(h(y))).every(y=>typeof y.$ref=="string"||R.includes(y)),rn=R.some(y=>{const p=y.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===ie||Y(e)&&p[0]==="multivariate")}),ke=(y=[])=>{const p=new Map;for(const E of[...R,..._.filter(b=>!R.includes(b)).flatMap(b=>W(b)),...y]){const b=M(E);b&&!p.has(b)&&p.set(b,E)}const v=[...p].map(([E,b])=>({resolveType:E,title:typeof b.title=="string"?b.title:z(E),description:typeof b.description=="string"?b.description:void 0,schema:U(b,m+1,p.size)})),T=[];for(const E of _){if(R.includes(E)||typeof E.$ref!="string")continue;const b=o(E.$ref);let Q;const X=b.properties?.__resolveType;if(Array.isArray(X?.enum)&&typeof X.enum[0]=="string"&&(Q=X.enum[0]),!Q&&Array.isArray(b.allOf))for(const an of b.allOf){const Oe=an.properties?.__resolveType?.enum;if(Array.isArray(Oe)&&typeof Oe[0]=="string"){Q=Oe[0];break}}Q&&T.push({resolveType:Q,title:typeof b.title=="string"&&!b.title.startsWith("#")?b.title:z(Q),description:typeof b.description=="string"?b.description:void 0,schema:U(b,m+1,_.length)})}const P=new Set(v.map(E=>E.resolveType)),A=[...v,...T.filter(E=>!P.has(E.resolveType))],C=_.filter(E=>!R.includes(E)),K=C.length===1&&!j?O(C[0],m+1,V):void 0;return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:A,plainSchema:K,hidden:S(c)||S(a)?!0:void 0}};if(k){const y=!ft(k,o);if(y&&te.length>0){const p=typeof a.title=="string"?a.title:typeof c.title=="string"&&!I(c.title)?c.title:void 0,v=typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,T=_.find(A=>_e(h(A))),P=te.flatMap(A=>A.data);return{type:"inline-union",title:p,description:v,inlineUnionBranches:[...P.map((A,C)=>({title:d(A,`Option ${C+1}`),schema:O(A,m+1,V)})),{title:d(T,`Option ${P.length+1}`),schema:O(k,m+1,V)}],loaderRef:{...ke(te.flatMap(A=>A.loaders)),title:p,description:v},hidden:S(c)||S(a)?!0:void 0}}if(y&&_.length>1&&nn){const p=O(k,m+1,V),v=typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:p.title,T=typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:p.description;return{...p,type:"array",title:v,description:T,loaderRef:R.length>0?{...ke(),title:v,description:T}:void 0}}if(rn){const p=O(k,m+1,V);return{...p,type:"array",title:typeof c.title=="string"?c.title:p.title,description:typeof c.description=="string"?c.description:p.description}}}if(R.length>0)return ke();const rt=y=>{const p=f(y);if(typeof p.title=="string"&&ut(p.title))return!0;const v=p.properties?.__resolveType?.enum;if(Array.isArray(v)&&typeof v[0]=="string")return!0;if(Array.isArray(p.allOf))for(const T of p.allOf){const P=T.properties?.__resolveType?.enum;if(Array.isArray(P)&&typeof P[0]=="string")return!0}return!1},it=_.map(y=>l(y));if(_.length>1&&it.every(y=>typeof y=="string")&&!_.some(rt)){const y=_.map((p,v)=>{const T=f(p),P=it[v];return{resolveType:P,title:d(p,P),description:typeof T.description=="string"?T.description:void 0,discriminatorValue:P,schema:U(T,m+1,_.length,!1)}});return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,discriminatorKey:"type",anyOfRefs:y,hidden:S(c)||S(a)?!0:void 0}}const Ee=y=>{if(rt(y))return!1;const p=f(y);return p.type==="object"||!!p.properties},sn=y=>{const p=h(y);return _e(p)?!ft(p,o):!1},st=m<we&&_.every(y=>Ee(y)||sn(y))&&_.some(Ee),ot=_.every(y=>typeof y.$ref=="string"),on=Y(e)&&!ot&&_.some(y=>typeof y.$ref=="string"&&Ln.has(Vn(o(y.$ref))))&&_.every(y=>typeof y.$ref=="string"||Ee(y));if((ot||on)&&!st){const y=[];for(const p of _){if(typeof p.$ref!="string")continue;const v=o(p.$ref);let T,P,A=!1;if(typeof v.title=="string"){const E=ut(v.title);E&&(T=E.blockId,P=E.blockId)}if(!T&&Array.isArray(v.allOf))for(const E of v.allOf){const X=((E.properties??{}).__resolveType??{}).enum;if(Array.isArray(X)&&typeof X[0]=="string"){T=X[0],A=!0;break}}if(!T){const b=v.properties?.__resolveType?.enum;Array.isArray(b)&&typeof b[0]=="string"&&(T=b[0],A=!0)}T||(T=p.$ref.split("/").pop()??"");const C=T.includes("/")||A&&!Pn(T),K=C?void 0:l(p);!K&&!C||A&&T==="lazy"||y.push({resolveType:K??T,title:P??(typeof v.title=="string"&&!v.title.startsWith("#")?v.title:z(T)),description:typeof v.description=="string"?v.description:void 0,discriminatorValue:K,schema:U(v,m+1,_.length)})}return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:y,hidden:S(c)||S(a)?!0:void 0}}if(st){const y=v=>{if(typeof v.const=="string"||typeof v.const=="number"||typeof v.const=="boolean")return v.const;if(Array.isArray(v.enum)&&v.enum.length===1&&(typeof v.enum[0]=="string"||typeof v.enum[0]=="number"||typeof v.enum[0]=="boolean"))return v.enum[0]},p=_.map((v,T)=>{const P=f(v).properties??{},A={};for(const[C,K]of Object.entries(P)){const E=y(K);E!==void 0&&(A[C]=E)}return{title:d(v,`Option ${T+1}`),schema:O(v,m+1),discriminators:Object.keys(A).length?A:void 0}});return{type:"inline-union",title:typeof a.title=="string"?a.title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,inlineUnionBranches:p,hidden:S(c)||S(a)?!0:void 0}}D="object"}}else c.allOf?(D="object",et=I(c.title)):typeof a.$ref=="string"&&(D="object");let ve,tt,nt=!1;if(m<we&&!j){const w=L(c),_=w.__resolveType?.enum;nt=Array.isArray(_)&&_.length===1&&_[0]==="lazy";const R=ne(w.__required);R.length>0&&(tt=R);const k=Object.entries(w).filter(([ee])=>!ee.startsWith("__")&&ee!=="@type");if(k.length>0){ve={};for(const[ee,te]of k)ve[ee]=O(te,m+1,V)}}let Re;if((D==="array"||c.type==="array")&&m<we&&!j){const w=c.items;if(w){Re=O(w,m+1,V);const _=f(w);typeof _.title=="string"&&_.title.includes("{{")&&(Re.titleBy=_.title)}}const J=w=>{const _=ce?.[w];return typeof _=="string"?_:void 0},tn=()=>{if("default"in a)return a.default;if("default"in c)return c.default;if(ce&&"default"in ce)return ce.default};return{type:D??"string",title:typeof a.title=="string"?a.title:!et&&typeof c.title=="string"?c.title:J("title"),description:typeof a.description=="string"?a.description:typeof c.description=="string"?c.description:J("description"),default:tn(),enum:Array.isArray(c.enum)?c.enum:G??void 0,format:typeof a.format=="string"?a.format:typeof c.format=="string"?c.format:J("format"),properties:ve,required:tt,items:Re,lazy:nt&&ve?.value?!0:void 0,recursiveRef:j&&typeof a.$ref=="string"&&(D==="object"||D==="array"||c.type==="array")?a.$ref:void 0,hidden:S(c)||S(a)?!0:void 0,titleBy:typeof c.titleBy=="string"?c.titleBy:J("titleBy"),image:typeof c.image=="string"?c.image:J("image"),options:typeof a.options=="string"?a.options:typeof c.options=="string"?c.options:J("options")}};if("ref"in t)return O({$ref:t.ref});const ae=u.properties??{},de=Object.keys(ae).every(a=>a.startsWith("__"));if(Array.isArray(u.allOf)&&u.allOf.length===1&&de){const a=ae.__resolveType,m=Array.isArray(a?.enum)&&typeof a.enum[0]=="string"?a.enum[0]:typeof a?.const=="string"?a.const:typeof a?.default=="string"?a.default:void 0;for(const g of u.allOf){const c=h(g);if(!(Array.isArray(c.anyOf)||Array.isArray(c.oneOf))||c.properties)continue;const j=O(c,0);if(j.type==="inline-union"&&j.inlineUnionBranches){const V=I(j.title);return{...j,title:V?void 0:j.title,inlineUnionBranches:m?j.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:m}})):j.inlineUnionBranches}}}}const Ze=L(u),Se={};for(const[a,m]of Object.entries(Ze))a.startsWith("__")||a==="@type"||(Se[a]=O(m,0));if(Object.keys(Se).length===0)return null;const Je=ne(Ze.__required);return{type:"object",title:typeof u.title=="string"?u.title:void 0,properties:Se,required:Je.length>0?Je:void 0}}function zr(e,t){const n=t.schema??{},r=Ke(e,t),i=n.$defs??n.definitions??{},s=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,o=s.properties??{};if(Object.keys(o).some(l=>!l.startsWith("__")))return!1;if(s.additionalProperties===!0)return!0;const f=o.__resolveType;return!!f&&Array.isArray(f.enum)&&f.enum[0]===e}function Yr(e){const t=r=>{switch(typeof r){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(r===null)return{type:"string"};if(Array.isArray(r))return{type:"array",items:t(r[0])};const i={};for(const[s,o]of Object.entries(r))s.startsWith("__")||(i[s]=t(o));return{type:"object",properties:i}}default:return{type:"string"}}},n={};for(const[r,i]of Object.entries(e))r.startsWith("__")||(n[r]=t(i));return Object.keys(n).length===0?null:{type:"object",properties:n}}function ze(e,t){const n=t.schema??{},r=Ke(e,t),i=n.$defs??n.definitions??{},s=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},o=s.icon,u=s.logo,f=s,l=h=>h===!0||h==="true",d=l(f.hide)||l(f.ignore)||l(f.unlisted);return{title:typeof s.title=="string"?s.title:void 0,description:typeof s.description=="string"?s.description:void 0,icon:typeof o=="string"?o:void 0,logo:typeof u=="string"?u:void 0,hidden:d||void 0}}const kt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],Nn=new Set(kt);function Ye(e){return Nn.has(e)}function Fe(e,t){return Ye(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function Un(e,t){return Fe(e,Y(t)?t:void 0)}function Et(e){return e.replace(/\/+$/,"")||"/"}function Fr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function Kn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function Wr(e){const t=e.trim();return t?Kn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const We=/:([A-Za-z0-9_-]+)|\*/g;function Hr(e){const t=[];for(const n of e.matchAll(We)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function Ot(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function qr(e){e=Ot(e);const t=[];let n=0;for(const r of e.matchAll(We))r.index>n&&t.push({type:"text",text:e.slice(n,r.index)}),t.push({type:"param",name:r[1]??"*"}),n=r.index+r[0].length;return n<e.length&&t.push({type:"text",text:e.slice(n)}),t}function Gr(e,t){return Ot(e).replace(We,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}const zn=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],pt="website/sections/Rendering/Lazy.tsx";function N(e){return zn.some(t=>e.endsWith(t))}const wt="lazy";function He(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===wt&&"value"in e}function Yn(e){return He(e)?e.value:e}function Fn(e){if(e!==void 0)return He(e)?e:{__resolveType:wt,value:e}}function Qr(e){return e.lazy===!0&&!!e.properties?.value}const x="multivariate",Pt=new Set([ie,pe]);function jt(e){if(!Y(e))return!1;const t=e?.manifest?.blocks??{};return Object.values(t).some(n=>Object.hasOwn(n??{},x))}function Mt(e){return jt(e)?x:pe}function Wn(e){return jt(e)?x:ie}function Lt(e){return typeof e=="string"&&(e===x||Pt.has(e))}function Hn(e){return e===x}function F(e){if(!(!e||typeof e!="object"))return Yn(e.value)}function se(e,t,n){return Hn(e)||He(n)?Fn(t):t}function qn(e,t,n){return{...t,value:se(e,n,t.value)}}function yt(e,t){return t?Lt(e):typeof e=="string"&&Pt.has(e)}function re(e,t){if(t)return F(e);if(!(!e||typeof e!="object"))return e.value}const Vt=kt[0],Gn=new Set(["site/sections/Theme/Theme.tsx"]);function Qn(e,t){return Gn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function Ae(e,t){return!!(Qn(e,Y(t))||N(e)||e.toLowerCase().includes("preview"))}function Bt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(Ye(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":Vt}function Xn(e){return Y(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function Xr(e){return e?Xn(e)?"page":Bt(e):Vt}function Me(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return Me(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...Me(n));return t}return[]}function Zn(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const s of Object.keys(i)){if(Ae(s,e))continue;const o=ze(s,e);n.push({resolveType:s,title:o.title??z(s),description:o.description,previewBlock:s,isSavedBlock:!1})}return n}function Zr(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const s of Object.keys(i))Ae(s,e)||n.has(s)||n.set(s,{resolveType:s,title:z(s)});return[...n.values()].sort((r,i)=>r.title.localeCompare(i.title))}function $t(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=Y(e);if(!Ct(n,r))return n;const i=t.variants;if(!Array.isArray(i))return n;for(const s of i){const o=re(s,r);if(!o||typeof o!="object")continue;let u=o.__resolveType;if(typeof u=="string"&&N(u)&&(u=o.section?.__resolveType??u),typeof u=="string"&&De(e,u))return u}return n}function Ct(e,t){return e===pe||t&&e===x}function Jn(e,t){return $t(e,t)!==t.__resolveType}function It(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||xe(r)||!i||typeof i!="object"||Array.isArray(i))continue;const s=i,o=s.__resolveType;typeof o!="string"||Ye(o)||typeof s.path=="string"||Ae(o,e)||!(De(e,o)||Ct(o,Y(e))&&Jn(e,s))||n.push({resolveType:r,title:r,description:typeof s.name=="string"?s.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function er(e,t){const n=Z(t.resolveType,e),r=n?{}:ze(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||z(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function Jr(e,t){const n=Bt(e),r=St(n,e),i=Me(r?.properties?.sections),s=new Map,o=u=>{if(!Ae(u.resolveType,e)){if(Z(u.resolveType,e)){xe(u.resolveType)||s.set(u.resolveType,u);return}De(e,u.resolveType)&&(s.has(u.resolveType)||s.set(u.resolveType,u))}};for(const u of Zn(e))o(u);for(const u of i)o(er(e,u));for(const u of It(e,t))o(u);return[...s.values()].sort((u,f)=>u.title.localeCompare(f.title))}function ei(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const n=t.theme;if(!(!n||typeof n!="object"||Array.isArray(n)))return n}const qe="website/loaders/redirect.ts",ti=new Set([qe,"website/loaders/redirects.ts"]),Ge="redirect",tr=[301,302,307,308],nr={temporary:307,permanent:301};function ni(e){return e.flat?e.status??(e.type==="permanent"?301:302):nr[e.type]}const he=e=>typeof e=="string"?e:"",rr=e=>e==="permanent"?"permanent":"temporary",ir=e=>tr.find(t=>t===e);function sr(e){const t=ir(e.status);return{from:he(e.from),to:he(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function Dt(e){if(e?.__resolveType===Ge)return sr(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:he(t.from),to:he(t.to),type:rr(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function or(e){const t=[];for(const[n,r]of Object.entries(e)){if(!r||typeof r!="object"||Array.isArray(r))continue;const i=r;i.__resolveType!==qe&&i.__resolveType!==Ge||t.push({key:n,...Dt(i)})}return t}function ri(e){return Dt(e)}function ii(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...s}=t??{};return{...s,__resolveType:Ge,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const n={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(n.discardQueryParameters=!0),{redirect:n,__resolveType:qe}}function ar(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const cr=1e3;function si(e,t){const n=ar(t);for(let r=0;r<cr;r++){const i=`redirects-${n}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}function ur(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,"");try{return decodeURIComponent(t)}catch{return t}}function oi(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const s=e.find(u=>u.key===n);if(s)return s;const o=e.find(u=>u.key.endsWith(`-${n}`));if(o)return o}if(r){const s=dt(e,r);if(s)return s}if(i){const s=dt(e,i);if(s)return s}return null}function dt(e,t,n){const r=Et;if(n){const s=e.find(o=>o.key===n);if(s)return s}const i=e.filter(s=>r(s.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((s,o)=>s.key.localeCompare(o.key))[0]??null}const ue="site",xt="site/apps/site.ts";function Le(e,t){return e===ue?!0:t.__resolveType===xt}function ai(e,t){return e?Nt(e,t).length>0||or(e).length>0?!0:t?dr(e,t).length>0||pr(e,t)?!0:yr(e,t).length>0:!1:!1}function lr(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!Fe(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:ur(e),path:r.path}}function Nt(e,t){const n=[];for(const[r,i]of Object.entries(e)){const s=lr(r,i,t);s&&n.push(s)}return n}function Te(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>Te(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>Te(i,t,n+1))}function fr(e,t,n){const r=Nt(e,n),i=new Set(r.map(o=>o.key)),s=new Set([t]);for(let o=!0;o;){o=!1;for(const[u,f]of Object.entries(e))s.has(u)||i.has(u)||Te(f,s)&&(s.add(u),o=!0)}return r.filter(o=>o.key!==t&&Te(e[o.key],s))}function ci(e,t,n){const r=s=>Et(s.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(s.path)?2:1,[i]=fr(e,t,n).sort((s,o)=>r(s)-r(o)||(s.path<o.path?-1:s.path>o.path?1:0));return i??null}function Ut(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function Ve(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?ze(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const s=t.name.trim();if(s)return s}return e.replace(/[-_]/g," ").replace(/\b\w/g,s=>s.toUpperCase())}function pr(e,t){const n=e[ue];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(Le(ue,r)||At(t,i)))return{key:ue,name:Ve(ue,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const s=i;if(!Le(r,s))continue;const o=typeof s.__resolveType=="string"?s.__resolveType:xt;return{key:r,name:Ve(r,s,t),resolveType:o}}return null}function yr(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const s=i,o=s.__resolveType;typeof o=="string"&&(Fe(o,t)||typeof s.path!="string"&&(Le(r,s)||!At(t,o)&&!xn(o)||n.push({key:r,name:Ve(r,s,t),resolveType:o})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function dr(e,t){return It(t,e).map(n=>{const r=e[n.resolveType],i=$t(t,r);return{key:n.resolveType,name:n.description??Ut(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}function vr(e){return e.includes("matchers")||e.includes("Match")}function Kt(e,t){const n=e.__resolveType;return typeof n!="string"||!n||Un(n,t)?!1:t?Mn(t,n):vr(n)}function ui(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||!Z(r,e)||xe(r)||!i||typeof i!="object"||Array.isArray(i))continue;const s=i;Kt(s,e)&&n.push({blockKey:r,matcherResolveType:s.__resolveType??"",name:typeof s.name=="string"?s.name:void 0})}return n.sort((r,i)=>(r.name??r.blockKey).localeCompare(i.name??i.blockKey))}function oe(e,t,n){if(!e)return!1;const r=e.__resolveType;if(typeof r!="string"||!Z(r,n)||!Object.hasOwn(t,r))return!1;const i=t[r];return!i||typeof i!="object"||Array.isArray(i)?!1:Kt(i,n)}function li(e,t,n){return oe(e,t,n)?e?.__resolveType??null:null}function zt(e,t,n){if(!e)return null;const r=e.__resolveType??"";if(!r)return null;if(oe(e,t,n)){const o=t[r]??{},u=o.__resolveType??r,{__resolveType:f,name:l,...d}=o;return{resolveType:u,data:d,blockKey:r}}const{__resolveType:i,...s}=e;return{resolveType:r,data:s}}function _r(e,t,n){const r=zt(e,t,n);return r?{__resolveType:r.resolveType,...r.data}:{__resolveType:""}}function fi(e,t,n){if(e)return oe(e,t,n)?_r(e,t,n):e}function mr(e,t,n,r){if(!e)return"Default";if(oe(e,t,r)){const i=e.__resolveType??"",s=t[i];return Ut(i,s)}return n(e,pn(t))}function pi(e,t,n){return{__resolveType:e,...t,name:n}}function yi(e){return{__resolveType:e}}function di(e,t,n){const r=zt(e,t,n);return r?{resolveType:r.resolveType,formValue:r.data}:{resolveType:"",formValue:{}}}function vi(e,t){const n={__resolveType:e};if(!e||!t)return n;const r=St(e,t),i=r?.type==="inline-union"?r.inlineUnionBranches?.[0]?.discriminators:void 0;return i?{...n,...i}:n}function Yt(e){const t=[];for(let n=e;n?.key!=null;n=n.parent)t.push(n.key);return t.reverse()}function Be(e){return{blockKey:e.blockKey,path:Yt(e)}}function Ft(e,t,n){const r=[];for(const[s,o]of Object.entries(e))s!==t&&r.push({node:o,blockKey:s,parent:null,key:null});const i=new Set;for(;r.length>0;){const s=r.pop(),{node:o}=s;if(!(!o||typeof o!="object")&&!i.has(o)){if(i.add(o),Array.isArray(o)){o.forEach((u,f)=>{r.push({node:u,blockKey:s.blockKey,parent:s,key:f})});continue}n(o,s);for(const[u,f]of Object.entries(o))r.push({node:f,blockKey:s.blockKey,parent:s,key:u})}}}function Wt(e,t,n){if(!t)return[];const r=[];return Ft(e,t,(i,s)=>{if(i.__resolveType!==t||!oe(i,e,n))return;const o=Ht(s);r.push({...Be(s),...o?{variant:o}:{}})}),r}function gr(){return{experiments:{byName:new Map,wholeBlock:[]},campaigns:{byName:new Map,wholeBlock:[]}}}function Ht(e){for(let t=e;t;t=t.parent){const n=t.parent,r=n?.parent,i=r?.parent;if(!n||!r||!i)return;if(t.key==="rule"&&typeof n.key=="number"&&r.key==="variants"&&q(i.node)&&Lt(i.node.__resolveType)){const s=i.node.experiment;return{containerPath:Yt(i),containerType:i.node.__resolveType,index:n.key,...typeof s=="string"?{experiment:s}:{}}}}}function hr(e,t){const n=[],r=gr(),i=new Set(fe.filter(l=>ge(e,l).kind!=="conflict"));Ft(e,null,(l,d)=>{const h=ln(l.__resolveType);if(h&&i.has(h)){r[h].wholeBlock.push({kind:h,...Be(d)});return}const M=mn(l);M&&n.push({...M,location:Be(d),variant:Ht(d)})});const s=l=>{const d=r[l.kind].byName,h=d.get(l.name);h?h.push(l):d.set(l.name,[l])},o=new Map,u=l=>{let d=o.get(l);return d||(d=Wt(e,l,t),o.set(l,d)),d},f=l=>oe({__resolveType:l},e,t);for(const l of n){const{blockKey:d}=l.location,h=f(d);if(s({kind:l.kind,name:l.name,blockKey:d,path:l.location.path,...l.variant?{variant:l.variant}:{},via:[],savedRule:h}),!h)continue;const M=[{blockKey:d,via:[d]}],$=new Set([d]);for(;M.length>0;){const{blockKey:W,via:S}=M.shift();for(const I of u(W)){const L=I.blockKey;if(S.includes(L))continue;const O=f(L);s({kind:l.kind,name:l.name,blockKey:L,path:I.path,...I.variant?{variant:I.variant}:{},via:S,savedRule:O}),O&&!$.has(L)&&($.add(L),M.push({blockKey:L,via:[L,...S]}))}}}return r}function Tr(e){return JSON.stringify([e.blockKey,...e.via])}function vt(e,t,n){const r=new Set(t.map(n)),i=new Set(e.map(n)),s=e.map(u=>({...u,state:r.has(n(u))?"published":"draft-only"})),o=new Set;for(const u of t){const f=n(u);i.has(f)||o.has(f)||(o.add(f),s.push({...u,state:"removed-in-draft"}))}return s}function _i(e,t){const n={};for(const r of fe){const i=new Map,s=new Set([...e[r].byName.keys(),...t[r].byName.keys()]);for(const o of s)i.set(o,vt(e[r].byName.get(o)??[],t[r].byName.get(o)??[],Tr));n[r]={byName:i,wholeBlock:vt(e[r].wholeBlock,t[r].wholeBlock,o=>o.blockKey)}}return n}function mi(e,t,n,r,i){const s=ge(e,t);if(s.kind!=="saved"||!r.trim()||n===r||!Object.hasOwn(s.values,n)||Object.hasOwn(s.block,r)||t==="experiments"&&!_n(s.values[n]))return null;const{blockKey:o}=cn(t),u={[o]:Tn(s.block,n,r)},f=hr(e,i)[t].byName.get(n)??[];for(const l of f){if(l.via.length>0)continue;const d=u[l.blockKey]??e[l.blockKey];q(d)&&(u[l.blockKey]=br(d,l.path,gn(t,r)))}return{writes:u}}function br(e,t,n){const r=(i,s)=>{if(s===t.length)return q(i)?{...i,...n}:i;const o=t[s];if(Array.isArray(i)&&typeof o=="number"){const u=i.slice();return u[o]=r(i[o],s+1),u}return q(i)&&typeof o=="string"?{...i,[o]:r(i[o],s+1)}:i};return r(e,0)}function gi(e,t){const n={...e};for(const[r,i]of Object.entries(t))i.kind!==null&&(i.before!==null?n[r]=i.before:i.baseVersion===null&&delete n[r]);return n}function qt(e){const t=e.__resolveType??"";return N(t)?e.section??e:e}function be(e,t){const s=(N(e.__resolveType??"")?e.section:e)?.variants?.[0],o=s?.rule;return gt(o?.__resolveType,t)?re(s,t)??null:null}function hi(e,t){const n=qt(e),r=Mt(t);return{__resolveType:r,variants:[{value:se(r,n),rule:{__resolveType:Rn(t)}}]}}function Ti(e){const t=e.__resolveType??"";if(!t)return null;if(N(t))return e.section??null;const n=be(e,!1);return n?N(n.__resolveType??"")?n:{__resolveType:pt,section:qt(n)}:{__resolveType:pt,section:e}}function me(e){const t=e.__resolveType??"";if(!t)return null;if(N(t)){const n=e.section,r=n?.__resolveType??"";return!r||!n?null:{resolveType:r,data:n}}return{resolveType:t,data:e}}function bi(e,t=!1){const n=be(e,t);if(n)return me(n);if(N(e.__resolveType??"")){const i=e.section;if(!i)return null;const s=be(i,t);return me(s||i)}return me(e)}function Ai(e,t=!1){return be(e,t)}function Qe(e){if(!e)return!1;const t=e.__resolveType??"";return t===""?Object.keys(e).length===0:An(t)||t.includes("always")}function Xe(e,t){if(!t)return e.length;const n=e[e.length-1];return n&&Qe(n.rule)?e.length-1:e.length}function Gt(e,t,n){return Math.min(t+1,Xe(e,n))}function Ar(e){const t=e.variants??[];if(t.length===0)return-1;const n=t.findIndex(r=>Qe(r.rule));return n!==-1?n:t.length-1}function Si(e,t,n){const r=n.variants??[];if(r.length===0)return null;const i=Ar(n),s=F(r[i]);if(!s)return null;const o=structuredClone(s);return t.isLazy?{...e,section:o}:o}function Qt(e,t){return t.isMultivariate?t.isLazy?e.section??null:e:null}function Ri(e,t){return Array.isArray(e.variants)?e.variants.map((n,r)=>({label:t(n.rule)||`Variant ${r+1}`,value:F(n)??{},rule:n.rule})):[]}function ki(e,t){const n=e.__resolveType??"";if(!n)return null;if(N(n)){const r=e.section??e,i=r.__resolveType??n;if(!i.includes("/")&&i in t){const s=t[i]??{};return{data:{...s},resolveType:s.__resolveType??i}}return{data:{...r},resolveType:i}}if(!n.includes("/")&&n in t){const r=t[n]??{};return{data:{...r},resolveType:r.__resolveType??n}}return{data:{...e},resolveType:n}}function Sr(e,t){const n=e.__resolveType??"";return N(n)?{...e,section:t}:t}function Rr(e,t,n){return t.isLazy?{...e,section:n}:n}function Ei(e,t,n){const r=[...e.variants??[]],i=r[t];if(!i)return e;const s=F(i)??{};return r[t]={...i,value:se(e.__resolveType,Sr(s,n),i.value)},{...e,variants:r}}function Oi(e,t,n){const r=[...e.variants??[]];return r[t]?(r[t]={...r[t],rule:n},{...e,variants:r}):e}function wi(e,t,n=!1){const r=[...e.variants??[]],i=r[t];return i?(r.splice(Gt(r,t,n),0,structuredClone(i)),{...e,variants:r}):e}function Pi(e,t,n){const r=[...e.variants??[]];if(t===n||t<0||n<0||t>=r.length||n>=r.length)return e;const[i]=r.splice(t,1);return i?(r.splice(n,0,i),{...e,variants:r}):e}function ji(e,t){const n=[...e.variants??[]];return n.length<=1?null:(n.splice(t,1),{...e,variants:n})}function $e(e,t,n){return{rule:Ie(t),value:se(n,structuredClone(e))}}function Xt(e,t){return e?e.__resolveType===x?x:pe:Mt(t)}function Zt(e,t,n){return{...n,__resolveType:t,variants:e}}function Mi(e){return e.isHidden!==!0&&e.isSavedBlock!==!0}function kr(e,t){if(t.isHidden)return null;if(t.isMultivariate){const r=Qt(e,t)?.variants??[],i=F(r[r.length-1]);return i?structuredClone(i):null}if(t.isLazy){const n=e.section;return n?structuredClone(n):null}return structuredClone(e)}function Er(e,t,n,r){if(t.isMultivariate||t.isHidden)return null;const i=kr(e,t);if(!i)return null;const s=Xt(void 0,r),o=Zt([$e(i,r,s),$e(i,r,s)],s);return t.isLazy?{...e,section:o}:o}function Li(e,t,n,r,i=!1){if(t.isHidden||t.isSavedBlock)return null;if(t.isMultivariate){const o=Qt(e,t);if(!o)return null;const u=o.variants??[],f=F(u[u.length-1]);if(!f)return null;const l=Xt(o,r),d=Xe(u,i),h=[...u];h.splice(d,0,$e(f,r,l));const M=Zt(h,l,o);return{section:Rr(e,t,M),newVariantIndex:d}}const s=Er(e,t,n,r);return s?{section:s,newVariantIndex:i?0:1}:null}function Or(e){for(const t of e.anyOfRefs??[]){if(t.resolveType!==ie&&t.resolveType!==x)continue;const n=t.schema?.properties?.variants?.items?.properties?.value,r=n?.lazy?n.properties?.value:n;if(r?.type==="array")return r}}function Vi(e){return Or(e)!==void 0}function Bi(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;const n=e;return Array.isArray(n.variants)?n.__resolveType===pe?!0:t&&n.__resolveType===x&&!Jt(n.variants):!1}function Jt(e){return e.some(t=>Array.isArray(F(t)))}function en(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;const n=e;return n.__resolveType===ie?!0:t&&n.__resolveType===x&&Array.isArray(n.variants)&&Jt(n.variants)}function $i(e,t){if(!en(e,t))return null;const n=e.variants;if(!Array.isArray(n))return null;const r=re(n[0],t);return Array.isArray(r)?r:null}function Ci(e,t,n,r){if(!en(e,r))return t;const i=structuredClone(e),s=[...i.variants??[]];return s.length===0?s.push({rule:Ie(n),value:se(i.__resolveType,t)}):s[0]=qn(i.__resolveType,s[0],t),{...i,variants:s}}function Ii(e,t){const r=e[t]?.sections;if(!r||Array.isArray(r))return 1;const i=r;return Array.isArray(i.variants)?i.variants.length:1}function Di(e,t,n){const i=e[t]?.sections;if(Array.isArray(i))return n===0?i:[];if(i&&typeof i=="object"){const s=i.variants;if(Array.isArray(s)){const o=F(s[n]);return Array.isArray(o)?o:[]}}return[]}function xi(e,t,n){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const r=e;if(Array.isArray(r.variants)){const i=r.variants,s=i.map(f=>mr(f.rule,t,n)),o=s.reduce((f,l)=>(f[l]=(f[l]??0)+1,f),{}),u={};return i.map((f,l)=>{const d=s[l]??`Variant ${l+1}`,h=o[d]??1;let M=d;h>1&&(u[d]=(u[d]??0)+1,M=`${d} ${u[d]}`);const $=F(f);return{label:M||`Variant ${l+1}`,sections:Array.isArray($)?$:[],rule:f.rule}})}}return[]}function Pe(e,t,n){return{rule:Ie(t),value:se(n,e)}}function Ce(e,t){return e?e.__resolveType===x?x:ie:Wn(t)}function le(e,t,n){return{...t,__resolveType:Ce(t,n),variants:e}}function Ni(e,t,n,r=!1){const i=structuredClone(t);if(e&&typeof e=="object"&&!Array.isArray(e)){const f=e;if(!Array.isArray(f.variants))return null;const l=[...f.variants],d=Xe(l,r);return l.splice(d,0,Pe(i,n,Ce(f))),{sections:le(l,f),newVariantIndex:d}}const s=Ce(void 0,n),o=Pe(Array.isArray(e)?e:[],n,s),u=Pe(i,n,s);return{sections:le(r?[u,o]:[o,u],void 0,n),newVariantIndex:r?0:1}}function Ui(e,t,n=!1){const r=e[t];if(!r)return null;const i=[...e];return i.splice(Gt(e,t,n),0,structuredClone(r)),i}function Ki(e,t){if(t.length===0)return le([],e);if(t.length===1){const n=t[0],r=n?.rule;if(!Qe(r))return le(t,e);const i=F(n);if(Array.isArray(i))return i}return le(t,e)}function zi(e,t,n){return Wt(e,t,n).length}function je(e,t,n){const r=n[e];return typeof r?.name=="string"&&r.name||e.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${t+1}`}function Yi(e,t,n=!1){return e.map((r,i)=>{const s=r.__resolveType??"",o=N(s);if(!o&&s!==""&&Z(s)&&s in t)return{index:i,resolveType:s,label:je(s,i,t),isLazy:!1,isSavedBlock:!0};const u=o?r.section:void 0,f=o?u?.__resolveType??"":s;if(yt(f,n)){const d=o?u:r,h=Array.isArray(d?.variants)?d.variants:[];if(h.length===1&>(h[0]?.rule?.__resolveType,n)){const W=re(h[0],n)??{};let S=W.__resolveType??"";const I=N(S);let L=W;if(I){const O=W.section;S=O?.__resolveType??S,O&&(L=O)}if(yt(S,n)){const O=Array.isArray(L.variants)?L.variants:[],ae=re(O[0],n)?.__resolveType,de=ae?z(ae):"Section";return{index:i,resolveType:s,label:`Variants of ${de}`,variantOf:de,isHidden:!0,isLazy:I}}return S!==""&&Z(S)&&S in t?{index:i,resolveType:s,label:je(S,i,t),isHidden:!0,isLazy:I,isSavedBlock:!0}:{index:i,resolveType:s,label:z(S)||`Section ${i+1}`,isHidden:!0,isLazy:I}}const M=re(h[0],n)?.__resolveType,$=M?z(M):"Section";return{index:i,resolveType:s,label:`Variants of ${$}`,variantOf:$,isMultivariate:!0,isLazy:o}}const l=o?r.section?.__resolveType??s:s;return o&&l!==""&&Z(l)&&l in t?{index:i,resolveType:s,label:je(l,i,t),isLazy:!0,isSavedBlock:!0}:{index:i,resolveType:s,label:z(l)||`Section ${i+1}`,isLazy:o}})}export{z as $,Ut as A,oi as B,pr as C,or as D,Zr as E,Ii as F,Ir as G,Ni as H,si as I,ii as J,ct as K,Un as L,Xn as M,fe as N,Xr as O,Me as P,Z as Q,nr as R,xt as S,Ye as T,Wn as U,Rn as V,se as W,x as X,Nr as Y,ut as Z,lt as _,gt as a,At as a$,Pn as a0,F as a1,An as a2,Vi as a3,Kr as a4,Ur as a5,ui as a6,_r as a7,yi as a8,qn as a9,Or as aA,ti as aB,xe as aC,zr as aD,Yr as aE,pe as aF,lr as aG,ur as aH,He as aI,Lt as aJ,ln as aK,jr as aL,Vt as aM,ge as aN,Br as aO,cn as aP,gn as aQ,Lr as aR,$r as aS,hr as aT,gi as aU,_i as aV,_n as aW,Cr as aX,Vr as aY,mi as aZ,vn as a_,fi as aa,xi as ab,Jr as ac,Ie as ad,Qe as ae,Xe as af,Gt as ag,mr as ah,li as ai,di as aj,mn as ak,oe as al,pi as am,vi as an,Sn as ao,On as ap,xr as aq,En as ar,Dr as as,Bi as at,Qr as au,Fn as av,Yn as aw,en as ax,$i as ay,Ci as az,N as b,bi as b0,ei as b1,Mi as b2,Qt as b3,Ri as b4,ki as b5,zt as b6,Li as b7,Pi as b8,Rr as b9,Si as ba,ji as bb,wi as bc,Oi as bd,Ti as be,Ai as bf,hi as bg,Ki as bh,zi as bi,Ei as bj,Ar as bk,Ui as bl,ri as bm,tr as bn,Fr as c,Wr as d,Nt as e,Gr as f,dr as g,ai as h,yt as i,dt as j,Di as k,Mr as l,Bt as m,Et as n,ci as o,Yi as p,St as q,pn as r,qr as s,Le as t,xn as u,re as v,Ve as w,ze as x,ni as y,Hr as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,b as $,a2 as K,aa as z,j as t,N as I,n as y,l as v}from"./index-
|
|
1
|
+
import{c as N,b as $,a2 as K,aa as z,j as t,N as I,n as y,l as v}from"./index-D2MFYEzD.js";import{C as L}from"./index-Cs4qaYPX.js";import{h as S,w as R,bK as B}from"./agent-icon-g2PIrjzs.js";import{B as E}from"./badge-DmeqGssZ.js";import"./use-mobile-h4hHhZkm.js";import"./use-sidebar-collapsed-Bijbdhqq.js";import"./use-chat-layout-state-BV7ldzPe.js";import"./thread-route-UuA5SD5X.js";import"./use-panel-navigate-DxGjTjIo.js";import"./use-project-scope-CBw0FSEz.js";import"./repository-binding-4nTgXz1S.js";import"./use-mcp-client-Cby5XqT6.js";import"./auth-DHZfBLZ5.js";import"./thread-intent-Ds79TVrW.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CmsmQLFo.js";import"./task-board-6nf7vbPi.js";import"./schema-DrNvzI26.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-bQVm_Ope.js";import"./index-CXWqnDP7.js";import"./toolbar-icon-button-BiR5ntfC.js";import"./shell-layout-CnXya3zZ.js";import"./avatar-BRRGslVN.js";import"./User01-1q78INo2.js";import"./Building02-DU823ZCw.js";import"./UserSquare-B_yRFcN6.js";import"./XClose-DOXmYMF_.js";import"./CheckCircle-C7csYE-y.js";import"./Monitor01-DD5_JCl8.js";import"./ZoomOut-DLICjI1h.js";import"./use-clock-tick-C61VlTs_.js";import"./Plus-BnqPSlPj.js";import"./Tool01-rTZNmFct.js";import"./command-R1e1yMQ9.js";import"./index-R_qB4INp.js";import"./SearchMd-GQAKwnQD.js";import"./integration-icon-CqbOWyvX.js";import"./LinkBroken01-DDgMbBWJ.js";import"./project-icon-CJmvnLdz.js";import"./new-project-dialog-qMTAvOP0.js";import"./ArrowLeft-BJ1448l4.js";import"./label-3hTmrxoy.js";import"./repository-import-picker-De4sf2Gs.js";import"./use-navigate-to-agent-DwJfjSMG.js";import"./repository-picker-HOHNvmaE.js";import"./useInfiniteQuery-Dobhsojg.js";import"./infiniteQueryObserver-CaSjeDsE.js";import"./collection-search-DcBOG84t.js";import"./ShoppingBag01-DVHnZchK.js";import"./use-debounced-value-Cm7nwcam.js";import"./use-organization-settings-NOur1Lvu.js";import"./required-auth-layout-BZllo6Io.js";import"./autosend-Cwww7_9j.js";import"./use-org-sso-D5M4Sxwu.js";import"./sheet-BQCLSAhw.js";import"./resizable-DAXTAODq.js";import"./AlertCircle-DgnxHqxe.js";import"./ArrowUp-723TVuFG.js";import"./ChevronUp-DiTVmUiH.js";import"./ChevronSelectorVertical-B0Z7parR.js";import"./Copy01-DRNuKy-h.js";import"./CreditCard01-C3f2i_qY.js";import"./DotsVertical-eX97dPc6.js";import"./Image01-QuVxFosz.js";import"./Globe04-ByvV2bPX.js";import"./SwitchHorizontal01-_kdH1ete.js";import"./Key01-C-QXsN23.js";import"./Link01-CbpFxbNY.js";import"./Minus-DnJ8wbLv.js";import"./Sun-Ct5gftPt.js";import"./Play-BgEaB30r.js";import"./Trash01-TPK4gSsp.js";import"./Upload01-D6tRQTgc.js";import"./Users01-D5MhP5r0.js";const F={plan:{heading:"home.comingSoon.planHeading",description:"home.comingSoon.planDescription",points:[{Icon:S,labelKey:"home.comingSoon.planGoals",tone:"bg-chart-2/15 text-chart-2"},{Icon:R,labelKey:"home.comingSoon.planTasks",tone:"bg-chart-1/15 text-chart-1"},{Icon:B,labelKey:"home.comingSoon.planProgress",tone:"bg-chart-4/15 text-chart-4"}]}};function G(i){const e=N.c(4),{className:h}=i;let o;e[0]!==h?(o=v("block h-2 rounded-full bg-muted",h),e[0]=h,e[1]=o):o=e[1];let l;return e[2]!==o?(l=t.jsx("span",{className:o}),e[2]=o,e[3]=l):l=e[3],l}const O=[{title:"w-32",fill:"w-[72%]",tone:"bg-chart-2",value:"72%"},{title:"w-24",fill:"w-[45%]",tone:"bg-chart-1",value:"45%"},{title:"w-28",fill:"w-[88%]",tone:"bg-chart-4",value:"88%"}];function T(){const i=N.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex flex-col gap-5",children:O.map(A)}),i[0]=e):e=i[0],e}function A(i){return t.jsxs("div",{className:"flex flex-col gap-2.5",children:[t.jsxs("div",{className:"flex items-center gap-2.5",children:[t.jsx("span",{className:"flex size-6 items-center justify-center rounded-md bg-muted text-muted-foreground",children:t.jsx(S,{size:14})}),t.jsx(G,{className:i.title}),t.jsx("span",{className:"ml-auto text-xs font-medium tabular-nums text-muted-foreground",children:i.value})]}),t.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-muted",children:t.jsx("div",{className:v("h-full rounded-full",i.fill,i.tone)})})]},i.value)}function D(i){const e=N.c(32),{kind:h}=i,o=$(),{org:l}=K(),_=z(),r=F[h];if(!_){let s;return e[0]!==l.slug?(s=t.jsx(I,{to:"/$org/home",params:{org:l.slug},replace:!0}),e[0]=l.slug,e[1]=s):s=e[1],s}let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"absolute inset-x-10 -top-4 h-40 rounded-full bg-chart-2/20 blur-3xl"}),e[2]=g):g=e[2];let j;e[3]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsxs("div",{"aria-hidden":!0,className:"relative w-full max-w-md",children:[g,t.jsx("div",{className:"relative surface p-6 [mask-image:linear-gradient(to_bottom,black_65%,transparent)]",children:t.jsx(T,{})})]}),e[3]=j):j=e[3];let m;e[4]!==o?(m=o("home.comingSoon.badge"),e[4]=o,e[5]=m):m=e[5];let n;e[6]!==m?(n=t.jsx(E,{variant:"muted",children:m}),e[6]=m,e[7]=n):n=e[7];let a;e[8]!==r.heading||e[9]!==o?(a=o(r.heading),e[8]=r.heading,e[9]=o,e[10]=a):a=e[10];let c;e[11]!==a?(c=t.jsx("h1",{className:"text-2xl font-medium text-balance text-foreground",children:a}),e[11]=a,e[12]=c):c=e[12];let p;e[13]!==r.description||e[14]!==o?(p=o(r.description),e[13]=r.description,e[14]=o,e[15]=p):p=e[15];let d;e[16]!==p?(d=t.jsx("p",{className:"max-w-md text-sm text-pretty text-muted-foreground",children:p}),e[16]=p,e[17]=d):d=e[17];let x;e[18]!==n||e[19]!==c||e[20]!==d?(x=t.jsxs("div",{className:"flex flex-col items-center gap-3 text-center",children:[n,c,d]}),e[18]=n,e[19]=c,e[20]=d,e[21]=x):x=e[21];let f;if(e[22]!==r.points||e[23]!==o){let s;e[25]!==o?(s=k=>{const{Icon:P,labelKey:w,tone:C}=k;return t.jsxs("li",{className:"flex items-center gap-3 surface p-4 sm:flex-col sm:items-start",children:[t.jsx("span",{className:v("flex size-9 shrink-0 items-center justify-center rounded-lg",C),children:t.jsx(P,{size:18})}),t.jsx("span",{className:"text-sm text-foreground",children:o(w)})]},w)},e[25]=o,e[26]=s):s=e[26],f=r.points.map(s),e[22]=r.points,e[23]=o,e[24]=f}else f=e[24];let u;e[27]!==f?(u=t.jsx("ul",{className:"grid w-full gap-3 sm:grid-cols-3",children:f}),e[27]=f,e[28]=u):u=e[28];let b;return e[29]!==u||e[30]!==x?(b=t.jsx(y,{children:t.jsx(y.Content,{children:t.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col items-center gap-10 px-4 pt-12 pb-16 md:pt-20",children:[j,x,u]})})}),e[29]=u,e[30]=x,e[31]=b):b=e[31],b}function pt(){const i=N.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(L.Content,{children:t.jsx(D,{kind:"plan"})}),i[0]=e):e=i[0],e}export{pt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,a2 as g,an as P,K as _,m as y,l as h,j as d}from"./index-
|
|
1
|
+
import{c as f,a2 as g,an as P,K as _,m as y,l as h,j as d}from"./index-D2MFYEzD.js";import{u as A}from"./use-decopilot-events-C_BQo06W.js";function I(){const e=f.c(6),t=P(),a=A();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=_.aiPlanPrices(),e[0]=o):o=e[0];let n;e[1]!==t?(n=async()=>{const{prices:r}=await t.call("ORGANIZATION_BILLING_PLAN_PRICES",{});return Object.fromEntries(r.map(p))},e[1]=t,e[2]=n):n=e[2];let s;return e[3]!==a||e[4]!==n?(s={queryKey:o,enabled:a,staleTime:6e5,queryFn:n},e[3]=a,e[4]=n,e[5]=s):s=e[5],y(s)}function p(e){return[e.planId,{amountCents:e.amountCents,currency:e.currency,interval:e.interval}]}function v(e,t){return(e.amountCents/100).toLocaleString(t,{style:"currency",currency:e.currency.toUpperCase(),maximumFractionDigits:0})}const F=["chat","cms","credits","monitoring","kanban","model_choice","diagnostic_enriched"];function R(e,t){if(!e)return null;const a=e.findIndex(n=>n.features[t]===!0),o=a>=0?e[a]:void 0;return o?{plan:o,index:a}:null}const j="custom",N=new Set(["ai_service"]);function O(e){return!!e&&N.has(e)}const w="mailto:sales@deco.cx";function q(){const e=f.c(8),{org:t}=g(),a=P(),o=A();let n;e[0]!==t.id?(n=_.aiPlanCatalog(t.id),e[0]=t.id,e[1]=n):n=e[1];let s;e[2]!==a?(s=async()=>{const{plans:c}=await a.call("AI_PLAN_LIST",{providerId:"deco"});return c.filter(E)},e[2]=a,e[3]=s):s=e[3];let r;return e[4]!==o||e[5]!==n||e[6]!==s?(r={queryKey:n,enabled:o,staleTime:3e5,queryFn:s},e[4]=o,e[5]=n,e[6]=s,e[7]=r):r=e[7],y(r)}function E(e){return e.id!=="free"}const u=[{symbol:"starter",color:"text-chart-4"},{symbol:"growth",color:"text-chart-1"},{symbol:"scale",color:"text-brand-blue"}],L=u[u.length-1];function D(e){return S(e).color}function S(e){return u[Math.min(e,u.length-1)]??L}function K(e){const t=f.c(13),{index:a,className:o}=e;let n,s,r,c;if(t[0]!==o||t[1]!==a){const{symbol:b,color:x}=S(a);n=b,s="0 0 16 16",r="true",c=h("size-8 shrink-0",x,o),t[0]=o,t[1]=a,t[2]=n,t[3]=s,t[4]=r,t[5]=c}else n=t[2],s=t[3],r=t[4],c=t[5];const m=`/plan-icons.svg#${n}-icon`;let l;t[6]!==m?(l=d.jsx("use",{href:m}),t[6]=m,t[7]=l):l=t[7];let i;return t[8]!==s||t[9]!==r||t[10]!==c||t[11]!==l?(i=d.jsx("svg",{viewBox:s,"aria-hidden":r,className:c,children:l}),t[8]=s,t[9]=r,t[10]=c,t[11]=l,t[12]=i):i=t[12],i}export{j as C,F,K as P,w as S,I as a,D as b,v as f,O as i,R as p,q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,bA as O,j as c,bC as _,bD as x,bB as j,bx as z,by as G,bz as H,bG as w,bP as K,dp as E,bK as B,bM as Q,bQ as U,bL as V,bN as W,bO as Z,bR as q,bS as J,bF as X,c as R,l as Y}from"./index-
|
|
1
|
+
import{r as l,bA as O,j as c,bC as _,bD as x,bB as j,bx as z,by as G,bz as H,bG as w,bP as K,dp as E,bK as B,bM as Q,bQ as U,bL as V,bN as W,bO as Z,bR as q,bS as J,bF as X,c as R,l as Y}from"./index-D2MFYEzD.js";var b="Popover",[N]=K(b,[w]),C=w(),[ee,P]=N(b),F=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,i=C(e),u=l.useRef(null),[f,v]=l.useState(!1),[g,p]=z({prop:r,defaultProp:n??!1,onChange:s,caller:b});return c.jsx(G,{...i,children:c.jsx(ee,{scope:e,contentId:H(),triggerRef:u,open:g,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(d=>!d),[p]),hasCustomAnchor:f,onCustomAnchorAdd:l.useCallback(()=>v(!0),[]),onCustomAnchorRemove:l.useCallback(()=>v(!1),[]),modal:a,children:o})})};F.displayName=b;var y="PopoverAnchor",S=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(y,o),s=C(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=n;return l.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(j,{...s,...r,ref:e})});S.displayName=y;var D="PopoverTrigger",M=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(D,o),s=C(o),a=O(e,n.triggerRef),i=c.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":L(n.open),...r,ref:a,onClick:x(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?i:c.jsx(j,{asChild:!0,...s,children:i})});M.displayName=D;var A="PopoverPortal",[oe,te]=N(A,{forceMount:void 0}),T=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=P(A,e);return c.jsx(oe,{scope:e,forceMount:o,children:c.jsx(E,{present:o||s.open,children:c.jsx(X,{asChild:!0,container:n,children:r})})})};T.displayName=A;var h="PopoverContent",k=l.forwardRef((t,e)=>{const o=te(h,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=P(h,t.__scopePopover);return c.jsx(E,{present:r||s.open,children:s.modal?c.jsx(ne,{...n,ref:e}):c.jsx(se,{...n,ref:e})})});k.displayName=h;var re=U("PopoverContent.RemoveScroll"),ne=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(null),n=O(e,r),s=l.useRef(!1);return l.useEffect(()=>{const a=r.current;if(a)return B(a)},[]),c.jsx(Q,{as:re,allowPinchZoom:!0,children:c.jsx(I,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:x(t.onPointerDownOutside,a=>{const i=a.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,f=i.button===2||u;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:x(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),se=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(!1),n=l.useRef(!1);return c.jsx(I,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),I=l.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:v,...g}=t,p=P(h,o),d=C(o);return V(),c.jsx(W,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(Z,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:v,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(q,{"data-state":L(p.open),role:"dialog",id:p.contentId,...d,...g,ref:e,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),$="PopoverClose",ae=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P($,o);return c.jsx(_.button,{type:"button",...r,ref:e,onClick:x(t.onClick,()=>n.onOpenChange(!1))})});ae.displayName=$;var ce="PopoverArrow",ie=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=C(o);return c.jsx(J,{...n,...r,ref:e})});ie.displayName=ce;function L(t){return t?"open":"closed"}var le=F,pe=S,de=M,ue=T,fe=k;function ge(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(le,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function Pe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(de,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function he(t){const e=R.c(19);let o,r,n,s,a,i;e[0]!==t?({className:o,align:s,sideOffset:a,container:r,variant:i,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s,e[5]=a,e[6]=i):(o=e[1],r=e[2],n=e[3],s=e[4],a=e[5],i=e[6]);const u=s===void 0?"center":s,f=a===void 0?4:a,v=i===void 0?"default":i,g=v==="glass"?"glass rounded-[0.875rem] px-3.5 py-3":"bg-popover border p-4 shadow-md";let p;e[7]!==o||e[8]!==g?(p=Y("notranslate text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-[var(--studio-surface-radius,var(--radius-lg))] overflow-hidden outline-hidden",g,o),e[7]=o,e[8]=g,e[9]=p):p=e[9];let d;e[10]!==u||e[11]!==n||e[12]!==f||e[13]!==p||e[14]!==v?(d=c.jsx(fe,{"data-slot":"popover-content",align:u,sideOffset:f,translate:"no","data-variant":v,className:p,...n}),e[10]=u,e[11]=n,e[12]=f,e[13]=p,e[14]=v,e[15]=d):d=e[15];let m;return e[16]!==r||e[17]!==d?(m=c.jsx(ue,{container:r,children:d}),e[16]=r,e[17]=d,e[18]=m):m=e[18],m}function xe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-anchor",...o}),e[2]=o,e[3]=r):r=e[3],r}export{ge as P,Pe as a,he as b,xe as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as it,b as pt,r as lt,F as jt,j as e,l as et,B as tt,av as Ct}from"./index-BeWb3VLq.js";import{a3 as Nt,H as Dt}from"./agent-icon-CiKTiUdq.js";import{s as kt}from"./Plus-Dewm72je.js";import{S as St}from"./scroll-area-BVZXqx5M.js";import{c as wt,s as Tt,b as ct,a as dt}from"./date-utils-CrvIKg-s.js";import{aB as zt,l as Et,aC as Pt}from"./content-tab-B8CAyeYn.js";import"./AlertCircle-Cch634f7.js";import"./Tool01-2gJDR0Ho.js";import"./ArrowUp-DLUdomd9.js";import"./ArrowLeft-CohopnCT.js";import"./LinkBroken01-Dioz3u9i.js";import"./ShoppingBag01-BStpgW0a.js";import"./ZoomOut-DixQygt2.js";import"./Building02-BHJQSDUK.js";import"./CheckCircle-Cs8i9zYt.js";import"./ChevronUp-BT7eMKPK.js";import"./ChevronSelectorVertical-C5d75KyY.js";import"./UserSquare-pmxb5ZdZ.js";import"./Copy01-B341DqLV.js";import"./CreditCard01-4Fwr0tNh.js";import"./DotsVertical-DbrlDgFh.js";import"./Image01-hTzc15CE.js";import"./Globe04-BE6c1UDj.js";import"./SwitchHorizontal01-CrC4ThKg.js";import"./Key01-kTu6t6u_.js";import"./Link01-hfA48cFL.js";import"./Minus-DqDPTtRG.js";import"./Monitor01-Bz6QaUO4.js";import"./Sun-C37Hpdko.js";import"./Play-CByslM3d.js";import"./SearchMd-7Jo0ZofC.js";import"./Trash01-DjE7Raat.js";import"./Upload01-CYfTR3aZ.js";import"./User01-X6IeKYZH.js";import"./Users01-uKJoVSle.js";import"./XClose-BVxVAZ6V.js";import"./index-BdQq_4o_.js";import"./use-organization-settings-CE5BJyh9.js";import"./schema-b5uziS6S.js";import"./task-board-ByNQwZsl.js";import"./chat-context-BEyCIAaN.js";import"./use-panel-navigate-CXkMPISv.js";import"./thread-route-BPSSuk8V.js";import"./use-project-scope-BOj2O9A_.js";import"./repository-binding-Cf_thK-b.js";import"./use-mcp-client-2WkK0AxE.js";import"./auth-DVebpHI3.js";import"./autosend-BTx7-p6a.js";import"./thread-intent-CoB1rbzj.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C9NPGTmI.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-CuBncVze.js";import"./use-ai-providers-Ct47MIru.js";import"./location-V0VwTJTt.js";import"./blocks-tab-states-5tpSikld.js";import"./command-KmLWWmqo.js";import"./index-BliYmmPu.js";import"./label-TKhfC6jr.js";import"./slider-tSRa1HDF.js";import"./index-BEaGR-Ng.js";import"./tooltipContext-B3bWUtmi.js";import"./CategoricalChart-BCAB1JR1.js";import"./index-DVxNOEMj.js";import"./ActiveShapeUtils-BB436TvV.js";import"./Sector-D64VY8hG.js";import"./symbol-CW0bfPL3.js";import"./parse-sections-CigeyiXV.js";import"./site-editor-toast-C48kJZ8y.js";import"./use-session-runtime-CqJF6neP.js";import"./experiments-tab-choice-CQ5EsK8h.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-t1gjPfET.js";import"./use-sandbox-events-BVhJrX2Z.js";import"./sandbox-git-api-CH_-QFpD.js";import"./empty-state-B4dSQMeM.js";import"./runnable-block-editor-Bod17qTV.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-v8_ULhan.js";import"./format-time-Cq80KKvY.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-BcZaehP2.js";import"./use-copy-C4LbXPXl.js";import"./usage-stats-CKpL0uWf.js";import"./tool-namespace-DePiqr-m.js";import"./form-BGI3x6he.js";import"./utils-CVEq3hMx.js";import"./markdown-D_Bab0vD.js";import"./use-mobile-BAnIvR27.js";import"./tooltip-4vv5k-uR.js";import"./index-CdhgpKbn.js";import"./use-clock-tick-DE4s8Okz.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-C5DYTOzS.js";import"./types-CNU-uWw-.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-Dpds4_um.js";import"./avatar-DjIkOwsx.js";import"./integration-icon-VoZokpOe.js";import"./project-icon-Ds8VtVRG.js";import"./new-project-dialog-DfI138Mw.js";import"./repository-import-picker-BOku3VrR.js";import"./use-navigate-to-agent-C2NQ-36B.js";import"./repository-picker-CeCsQGv8.js";import"./useInfiniteQuery-CxzyY6DS.js";import"./infiniteQueryObserver-BOCgDRcQ.js";import"./collection-search-7sBPioRN.js";import"./use-debounced-value-Br6JzfN-.js";import"./required-auth-layout-DhxdstQv.js";import"./use-org-sso-BnFa9r-G.js";import"./sheet-DdrzSnyB.js";import"./use-connection-HenJjVMr.js";import"./use-mcp-prompts-BY0itm-N.js";import"./use-thread-outputs-C38yfNsJ.js";import"./file-type-icon-DYeFNgMs.js";import"./secret-ciphertext-CKG2rzpX.js";import"./alert-DlpN1nbO.js";import"./switch-BI2l0q9a.js";import"./textarea-7I-DLD6x.js";import"./popover-s88DXvPL.js";import"./monaco-editor-CVRVgXSh.js";import"./editor-DAekV0he.js";import"./calendar-kdikRXDO.js";import"./select-H4FJk0rp.js";import"./editor-classes-BaBC2QPU.js";import"./core.esm-BmE_KURk.js";import"./sortable.esm-CE2eXOQU.js";import"./toggle-group-BngkTNsG.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-CEzxugDA.js";import"./alert-dialog-BdWXpnme.js";import"./search-input-BL6XGlmm.js";import"./tabs-Cw5epDK7.js";import"./use-file-configs-B_k4AoEo.js";import"./asset-utils-CYj7sEud.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./mustache-B20fDMb8.js";import"./use-content-sync-C0CqYtRD.js";import"./sandbox-lifecycle-context-CCjKxqdS.js";import"./checkbox-R6Pm_B33.js";import"./use-move-blocks-lN8kagdi.js";import"./badge-BfMggcm8.js";import"./empty-state-wXIjf_EN.js";const ft="border-success/30 bg-success/10 text-success hover:bg-success/20",xt="border-dashed border-border bg-muted text-muted-foreground hover:bg-secondary-hover hover:text-accent-foreground";function bo(h){const t=it.c(83),{decofile:b,selectedKey:d,onSelect:o,onCreate:m,onReschedule:i,isCreating:D}=h,s=D===void 0?!1:D,r=pt(),[j,C]=lt.useState(null),[rt]=jt(),[n,f]=lt.useState(Ht),p=rt.language;let N;t[0]!==n||t[1]!==p?(N=new Intl.DateTimeFormat(p,{month:"long",year:"numeric"}).format(n),t[0]=n,t[1]=p,t[2]=N):N=t[2];const v=N;let x,u,a,c,y,k,S,w,T,z;if(t[3]!==n||t[4]!==b||t[5]!==j||t[6]!==s||t[7]!==p||t[8]!==v||t[9]!==m||t[10]!==i||t[11]!==o||t[12]!==d||t[13]!==r){const ut=new Intl.DateTimeFormat(p,{weekday:"short"}),gt=new Intl.DateTimeFormat(p,{dateStyle:"long"}),{byDay:ht,undated:ot}=zt(Et(b)),st=wt(n),bt=Tt(new Date);u="flex h-full w-full flex-col";let J;t[24]===Symbol.for("react.memo_cache_sentinel")?(J=()=>f(ct(new Date)),t[24]=J):J=t[24];let H;t[25]!==r?(H=r("sandbox.postCalendar.today"),t[25]=r,t[26]=H):H=t[26];let I;t[27]!==H?(I=e.jsx(tt,{variant:"outline",size:"sm",onClick:J,children:H}),t[27]=H,t[28]=I):I=t[28];let Q;t[29]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>f(Mt),t[29]=Q):Q=t[29];let U;t[30]!==r?(U=r("sandbox.postCalendar.previous"),t[30]=r,t[31]=U):U=t[31];let V;t[32]===Symbol.for("react.memo_cache_sentinel")?(V=e.jsx(Dt,{size:16}),t[32]=V):V=t[32];let _;t[33]!==U?(_=e.jsx(tt,{variant:"ghost",size:"icon",onClick:Q,"aria-label":U,children:V}),t[33]=U,t[34]=_):_=t[34];let X;t[35]===Symbol.for("react.memo_cache_sentinel")?(X=()=>f(Lt),t[35]=X):X=t[35];let $;t[36]!==r?($=r("sandbox.postCalendar.next"),t[36]=r,t[37]=$):$=t[37];let Y;t[38]===Symbol.for("react.memo_cache_sentinel")?(Y=e.jsx(Ct,{size:16}),t[38]=Y):Y=t[38];let B;t[39]!==$?(B=e.jsx(tt,{variant:"ghost",size:"icon",onClick:X,"aria-label":$,children:Y}),t[39]=$,t[40]=B):B=t[40];let F;t[41]!==v?(F=e.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:v}),t[41]=v,t[42]=F):F=t[42];let O;t[43]!==r?(O=r("sandbox.postCalendar.legendScheduled"),t[43]=r,t[44]=O):O=t[44];let R;t[45]!==O?(R=e.jsx(mt,{className:ft,label:O}),t[45]=O,t[46]=R):R=t[46];let A;t[47]!==r?(A=r("sandbox.postCalendar.legendUnscheduled"),t[47]=r,t[48]=A):A=t[48];let K;t[49]!==A?(K=e.jsx(mt,{className:xt,label:A}),t[49]=A,t[50]=K):K=t[50];let W;t[51]!==R||t[52]!==K?(W=e.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[R,K]}),t[51]=R,t[52]=K,t[53]=W):W=t[53],t[54]!==I||t[55]!==_||t[56]!==B||t[57]!==F||t[58]!==W?(a=e.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[I,_,B,F,W]}),t[54]=I,t[55]=_,t[56]=B,t[57]=F,t[58]=W,t[59]=a):a=t[59],z="relative flex-1 min-h-0",x=St,T="h-full",S="flex min-w-[880px] gap-4 p-4";let q;t[60]!==r?(q=r("sandbox.postCalendar.unscheduledHint"),t[60]=r,t[61]=q):q=t[61];let Z;t[62]!==q?(Z=e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:q}),t[62]=q,t[63]=Z):Z=t[63],w=e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"grid grid-cols-7 mb-2",children:st[0]?.map(l=>e.jsx("div",{className:"px-2 text-2xs text-muted-foreground",children:ut.format(l)},l.getDay()))}),e.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:st.flat().map(l=>{const vt=l.getMonth()===n.getMonth(),yt=ht.get(Pt(l))??[];return e.jsxs("div",{onDragOver:g=>{j&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const at=g.dataTransfer.getData("text/plain");C(null),at&&i(at,l)},className:et("group/day min-h-28 space-y-1 p-2 transition-colors",vt?"bg-background":"bg-muted/40",j&&"hover:bg-accent"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:et("grid size-6 place-items-center rounded-full text-xs",l.getTime()===bt.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:l.getDate()}),e.jsx(tt,{variant:"ghost",size:"icon-xs",className:"opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:s,onClick:()=>m(l),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:gt.format(l)}),children:e.jsx(kt,{size:14})})]}),yt.map(g=>e.jsx(nt,{entry:g,active:g.post.key===d,draggable:g.scheduled,onSelect:o,onDragStateChange:C},g.post.key))]},l.getTime())})}),Z]}),c="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",y=e.jsx("p",{className:"px-1 text-2xs font-medium text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:ot.length})}),k=ot.length===0?e.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[e.jsx(Nt,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):ot.map(l=>e.jsx(nt,{entry:l,active:l.post.key===d,draggable:!1,onSelect:o,onDragStateChange:C},l.post.key)),t[3]=n,t[4]=b,t[5]=j,t[6]=s,t[7]=p,t[8]=v,t[9]=m,t[10]=i,t[11]=o,t[12]=d,t[13]=r,t[14]=x,t[15]=u,t[16]=a,t[17]=c,t[18]=y,t[19]=k,t[20]=S,t[21]=w,t[22]=T,t[23]=z}else x=t[14],u=t[15],a=t[16],c=t[17],y=t[18],k=t[19],S=t[20],w=t[21],T=t[22],z=t[23];let E;t[64]!==c||t[65]!==y||t[66]!==k?(E=e.jsxs("div",{className:c,children:[y,k]}),t[64]=c,t[65]=y,t[66]=k,t[67]=E):E=t[67];let P;t[68]!==E||t[69]!==S||t[70]!==w?(P=e.jsxs("div",{className:S,children:[w,E]}),t[68]=E,t[69]=S,t[70]=w,t[71]=P):P=t[71];let L;t[72]!==x||t[73]!==P||t[74]!==T?(L=e.jsx(x,{className:T,children:P}),t[72]=x,t[73]=P,t[74]=T,t[75]=L):L=t[75];let M;t[76]!==L||t[77]!==z?(M=e.jsx("div",{className:z,children:L}),t[76]=L,t[77]=z,t[78]=M):M=t[78];let G;return t[79]!==u||t[80]!==a||t[81]!==M?(G=e.jsxs("div",{className:u,children:[a,M]}),t[79]=u,t[80]=a,t[81]=M,t[82]=G):G=t[82],G}function Lt(h){return dt(h,1)}function Mt(h){return dt(h,-1)}function Ht(){return ct(new Date)}function mt(h){const t=it.c(7),{className:b,label:d}=h;let o;t[0]!==b?(o=et("size-3 rounded-sm border",b),t[0]=b,t[1]=o):o=t[1];let m;t[2]!==o?(m=e.jsx("span",{className:o}),t[2]=o,t[3]=m):m=t[3];let i;return t[4]!==d||t[5]!==m?(i=e.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[m,d]}),t[4]=d,t[5]=m,t[6]=i):i=t[6],i}function nt(h){const t=it.c(23),{entry:b,active:d,draggable:o,onSelect:m,onDragStateChange:i}=h,D=pt(),{post:s,scheduled:r}=b,j=r?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let C;t[0]!==D||t[1]!==j?(C=D(j),t[0]=D,t[1]=j,t[2]=C):C=t[2];const rt=C;let n;t[3]!==i||t[4]!==s.key?(n=y=>{y.dataTransfer.setData("text/plain",s.key),y.dataTransfer.effectAllowed="move",i(s.key)},t[3]=i,t[4]=s.key,t[5]=n):n=t[5];let f;t[6]!==i?(f=()=>i(null),t[6]=i,t[7]=f):f=t[7];let p;t[8]!==m||t[9]!==s.key?(p=()=>m(s.key),t[8]=m,t[9]=s.key,t[10]=p):p=t[10];const N=`${s.title} · ${rt}`,v=r?ft:xt,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let a;t[11]!==v||t[12]!==x||t[13]!==u?(a=et("w-full truncate rounded-lg border px-2 py-1 text-left text-xs font-medium transition-colors",v,x,u),t[11]=v,t[12]=x,t[13]=u,t[14]=a):a=t[14];let c;return t[15]!==o||t[16]!==s.title||t[17]!==a||t[18]!==n||t[19]!==f||t[20]!==p||t[21]!==N?(c=e.jsx("button",{type:"button",draggable:o,onDragStart:n,onDragEnd:f,onClick:p,title:N,className:a,children:s.title}),t[15]=o,t[16]=s.title,t[17]=a,t[18]=n,t[19]=f,t[20]=p,t[21]=N,t[22]=c):c=t[22],c}export{bo as PostCalendar};
|
|
1
|
+
import{c as it,b as pt,r as lt,F as jt,j as e,l as et,B as tt,av as Ct}from"./index-D2MFYEzD.js";import{a3 as Nt,H as Dt}from"./agent-icon-g2PIrjzs.js";import{s as kt}from"./Plus-BnqPSlPj.js";import{S as St}from"./scroll-area-BBBDJLpH.js";import{c as wt,s as Tt,b as ct,a as dt}from"./date-utils-CrvIKg-s.js";import{aB as zt,l as Et,aC as Pt}from"./content-tab-CAJ559-P.js";import"./AlertCircle-DgnxHqxe.js";import"./Tool01-rTZNmFct.js";import"./ArrowUp-723TVuFG.js";import"./ArrowLeft-BJ1448l4.js";import"./LinkBroken01-DDgMbBWJ.js";import"./ShoppingBag01-DVHnZchK.js";import"./ZoomOut-DLICjI1h.js";import"./Building02-DU823ZCw.js";import"./CheckCircle-C7csYE-y.js";import"./ChevronUp-DiTVmUiH.js";import"./ChevronSelectorVertical-B0Z7parR.js";import"./UserSquare-B_yRFcN6.js";import"./Copy01-DRNuKy-h.js";import"./CreditCard01-C3f2i_qY.js";import"./DotsVertical-eX97dPc6.js";import"./Image01-QuVxFosz.js";import"./Globe04-ByvV2bPX.js";import"./SwitchHorizontal01-_kdH1ete.js";import"./Key01-C-QXsN23.js";import"./Link01-CbpFxbNY.js";import"./Minus-DnJ8wbLv.js";import"./Monitor01-DD5_JCl8.js";import"./Sun-Ct5gftPt.js";import"./Play-BgEaB30r.js";import"./SearchMd-GQAKwnQD.js";import"./Trash01-TPK4gSsp.js";import"./Upload01-D6tRQTgc.js";import"./User01-1q78INo2.js";import"./Users01-D5MhP5r0.js";import"./XClose-DOXmYMF_.js";import"./index-BdQq_4o_.js";import"./use-organization-settings-NOur1Lvu.js";import"./schema-DrNvzI26.js";import"./task-board-6nf7vbPi.js";import"./chat-context-DLezfYEa.js";import"./use-panel-navigate-DxGjTjIo.js";import"./thread-route-UuA5SD5X.js";import"./use-project-scope-CBw0FSEz.js";import"./repository-binding-4nTgXz1S.js";import"./use-mcp-client-Cby5XqT6.js";import"./auth-DHZfBLZ5.js";import"./autosend-Cwww7_9j.js";import"./thread-intent-Ds79TVrW.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CmsmQLFo.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-C_BQo06W.js";import"./use-ai-providers-CzmKfSB9.js";import"./location-V0VwTJTt.js";import"./blocks-tab-states-Dps89GrH.js";import"./command-R1e1yMQ9.js";import"./index-R_qB4INp.js";import"./label-3hTmrxoy.js";import"./slider-DTKLr6aL.js";import"./index-BWgOKGMR.js";import"./tooltipContext-CMDZ9J9X.js";import"./CategoricalChart-CinaMpxG.js";import"./index-CeLGzS5y.js";import"./ActiveShapeUtils-DC4ySNWR.js";import"./Sector-DG1U_Qdd.js";import"./symbol-CYXY7_SE.js";import"./parse-sections-Bc_lvOtq.js";import"./site-editor-toast-BKVRfpA8.js";import"./use-session-runtime-BrkTaSa6.js";import"./experiments-tab-choice-C9wWsYd4.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-CkwBhBMS.js";import"./use-sandbox-events-D98uWMd_.js";import"./sandbox-git-api-CH_-QFpD.js";import"./empty-state-_a1QMwjl.js";import"./runnable-block-editor-LQjhwiX1.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DSps2zoM.js";import"./format-time-Cq80KKvY.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-DZTt-UAc.js";import"./use-copy-Bc8JMSws.js";import"./usage-stats-CvT3PVJT.js";import"./tool-namespace-CMW8ZB5L.js";import"./form-B2fhil9l.js";import"./utils-CVEq3hMx.js";import"./markdown-BeKN4MPt.js";import"./use-mobile-h4hHhZkm.js";import"./tooltip-bQVm_Ope.js";import"./index-CXWqnDP7.js";import"./use-clock-tick-C61VlTs_.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DcbWj_cd.js";import"./types-DLna4BAB.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-CnXya3zZ.js";import"./avatar-BRRGslVN.js";import"./integration-icon-CqbOWyvX.js";import"./project-icon-CJmvnLdz.js";import"./new-project-dialog-qMTAvOP0.js";import"./repository-import-picker-De4sf2Gs.js";import"./use-navigate-to-agent-DwJfjSMG.js";import"./repository-picker-HOHNvmaE.js";import"./useInfiniteQuery-Dobhsojg.js";import"./infiniteQueryObserver-CaSjeDsE.js";import"./collection-search-DcBOG84t.js";import"./use-debounced-value-Cm7nwcam.js";import"./required-auth-layout-BZllo6Io.js";import"./use-org-sso-D5M4Sxwu.js";import"./sheet-BQCLSAhw.js";import"./use-connection-DTSe3r1K.js";import"./use-mcp-prompts-DpGHOlEI.js";import"./use-thread-outputs-D_k8NizM.js";import"./file-type-icon-CP6Bm0Pm.js";import"./secret-ciphertext-qv17emf3.js";import"./alert-kpgdNVxk.js";import"./switch-CESJ2RZK.js";import"./textarea-DG3FcnmS.js";import"./popover-Dm_x8CV9.js";import"./monaco-editor-DEU78sxw.js";import"./editor-4LyrkCqm.js";import"./calendar-B6BpOXfC.js";import"./select-C9_0SSgH.js";import"./editor-classes-_dczAbCq.js";import"./core.esm-DHAYYfZu.js";import"./sortable.esm-D2---7Ab.js";import"./toggle-group-C7NFln-0.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-CVTULN6N.js";import"./alert-dialog-KKnJELoX.js";import"./search-input-DSx8LWNe.js";import"./tabs-B6EQUSl_.js";import"./use-file-configs-C7kUU5_U.js";import"./asset-utils-CYyNDrFK.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./mustache-Cm6mC1mo.js";import"./use-content-sync-Dj6rb1LD.js";import"./sandbox-lifecycle-context-CJodiAqU.js";import"./checkbox-BlB_jfat.js";import"./use-move-blocks-DFQHiQ1n.js";import"./badge-DmeqGssZ.js";import"./empty-state-4Hlytpdt.js";const ft="border-success/30 bg-success/10 text-success hover:bg-success/20",xt="border-dashed border-border bg-muted text-muted-foreground hover:bg-secondary-hover hover:text-accent-foreground";function bo(h){const t=it.c(83),{decofile:b,selectedKey:d,onSelect:o,onCreate:m,onReschedule:i,isCreating:D}=h,s=D===void 0?!1:D,r=pt(),[j,C]=lt.useState(null),[rt]=jt(),[n,f]=lt.useState(Ht),p=rt.language;let N;t[0]!==n||t[1]!==p?(N=new Intl.DateTimeFormat(p,{month:"long",year:"numeric"}).format(n),t[0]=n,t[1]=p,t[2]=N):N=t[2];const v=N;let x,u,a,c,y,k,S,w,T,z;if(t[3]!==n||t[4]!==b||t[5]!==j||t[6]!==s||t[7]!==p||t[8]!==v||t[9]!==m||t[10]!==i||t[11]!==o||t[12]!==d||t[13]!==r){const ut=new Intl.DateTimeFormat(p,{weekday:"short"}),gt=new Intl.DateTimeFormat(p,{dateStyle:"long"}),{byDay:ht,undated:ot}=zt(Et(b)),st=wt(n),bt=Tt(new Date);u="flex h-full w-full flex-col";let J;t[24]===Symbol.for("react.memo_cache_sentinel")?(J=()=>f(ct(new Date)),t[24]=J):J=t[24];let H;t[25]!==r?(H=r("sandbox.postCalendar.today"),t[25]=r,t[26]=H):H=t[26];let I;t[27]!==H?(I=e.jsx(tt,{variant:"outline",size:"sm",onClick:J,children:H}),t[27]=H,t[28]=I):I=t[28];let Q;t[29]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>f(Mt),t[29]=Q):Q=t[29];let U;t[30]!==r?(U=r("sandbox.postCalendar.previous"),t[30]=r,t[31]=U):U=t[31];let V;t[32]===Symbol.for("react.memo_cache_sentinel")?(V=e.jsx(Dt,{size:16}),t[32]=V):V=t[32];let _;t[33]!==U?(_=e.jsx(tt,{variant:"ghost",size:"icon",onClick:Q,"aria-label":U,children:V}),t[33]=U,t[34]=_):_=t[34];let X;t[35]===Symbol.for("react.memo_cache_sentinel")?(X=()=>f(Lt),t[35]=X):X=t[35];let $;t[36]!==r?($=r("sandbox.postCalendar.next"),t[36]=r,t[37]=$):$=t[37];let Y;t[38]===Symbol.for("react.memo_cache_sentinel")?(Y=e.jsx(Ct,{size:16}),t[38]=Y):Y=t[38];let B;t[39]!==$?(B=e.jsx(tt,{variant:"ghost",size:"icon",onClick:X,"aria-label":$,children:Y}),t[39]=$,t[40]=B):B=t[40];let F;t[41]!==v?(F=e.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:v}),t[41]=v,t[42]=F):F=t[42];let O;t[43]!==r?(O=r("sandbox.postCalendar.legendScheduled"),t[43]=r,t[44]=O):O=t[44];let R;t[45]!==O?(R=e.jsx(mt,{className:ft,label:O}),t[45]=O,t[46]=R):R=t[46];let A;t[47]!==r?(A=r("sandbox.postCalendar.legendUnscheduled"),t[47]=r,t[48]=A):A=t[48];let K;t[49]!==A?(K=e.jsx(mt,{className:xt,label:A}),t[49]=A,t[50]=K):K=t[50];let W;t[51]!==R||t[52]!==K?(W=e.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[R,K]}),t[51]=R,t[52]=K,t[53]=W):W=t[53],t[54]!==I||t[55]!==_||t[56]!==B||t[57]!==F||t[58]!==W?(a=e.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[I,_,B,F,W]}),t[54]=I,t[55]=_,t[56]=B,t[57]=F,t[58]=W,t[59]=a):a=t[59],z="relative flex-1 min-h-0",x=St,T="h-full",S="flex min-w-[880px] gap-4 p-4";let q;t[60]!==r?(q=r("sandbox.postCalendar.unscheduledHint"),t[60]=r,t[61]=q):q=t[61];let Z;t[62]!==q?(Z=e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:q}),t[62]=q,t[63]=Z):Z=t[63],w=e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"grid grid-cols-7 mb-2",children:st[0]?.map(l=>e.jsx("div",{className:"px-2 text-2xs text-muted-foreground",children:ut.format(l)},l.getDay()))}),e.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:st.flat().map(l=>{const vt=l.getMonth()===n.getMonth(),yt=ht.get(Pt(l))??[];return e.jsxs("div",{onDragOver:g=>{j&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const at=g.dataTransfer.getData("text/plain");C(null),at&&i(at,l)},className:et("group/day min-h-28 space-y-1 p-2 transition-colors",vt?"bg-background":"bg-muted/40",j&&"hover:bg-accent"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:et("grid size-6 place-items-center rounded-full text-xs",l.getTime()===bt.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:l.getDate()}),e.jsx(tt,{variant:"ghost",size:"icon-xs",className:"opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:s,onClick:()=>m(l),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:gt.format(l)}),children:e.jsx(kt,{size:14})})]}),yt.map(g=>e.jsx(nt,{entry:g,active:g.post.key===d,draggable:g.scheduled,onSelect:o,onDragStateChange:C},g.post.key))]},l.getTime())})}),Z]}),c="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",y=e.jsx("p",{className:"px-1 text-2xs font-medium text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:ot.length})}),k=ot.length===0?e.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[e.jsx(Nt,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):ot.map(l=>e.jsx(nt,{entry:l,active:l.post.key===d,draggable:!1,onSelect:o,onDragStateChange:C},l.post.key)),t[3]=n,t[4]=b,t[5]=j,t[6]=s,t[7]=p,t[8]=v,t[9]=m,t[10]=i,t[11]=o,t[12]=d,t[13]=r,t[14]=x,t[15]=u,t[16]=a,t[17]=c,t[18]=y,t[19]=k,t[20]=S,t[21]=w,t[22]=T,t[23]=z}else x=t[14],u=t[15],a=t[16],c=t[17],y=t[18],k=t[19],S=t[20],w=t[21],T=t[22],z=t[23];let E;t[64]!==c||t[65]!==y||t[66]!==k?(E=e.jsxs("div",{className:c,children:[y,k]}),t[64]=c,t[65]=y,t[66]=k,t[67]=E):E=t[67];let P;t[68]!==E||t[69]!==S||t[70]!==w?(P=e.jsxs("div",{className:S,children:[w,E]}),t[68]=E,t[69]=S,t[70]=w,t[71]=P):P=t[71];let L;t[72]!==x||t[73]!==P||t[74]!==T?(L=e.jsx(x,{className:T,children:P}),t[72]=x,t[73]=P,t[74]=T,t[75]=L):L=t[75];let M;t[76]!==L||t[77]!==z?(M=e.jsx("div",{className:z,children:L}),t[76]=L,t[77]=z,t[78]=M):M=t[78];let G;return t[79]!==u||t[80]!==a||t[81]!==M?(G=e.jsxs("div",{className:u,children:[a,M]}),t[79]=u,t[80]=a,t[81]=M,t[82]=G):G=t[82],G}function Lt(h){return dt(h,1)}function Mt(h){return dt(h,-1)}function Ht(){return ct(new Date)}function mt(h){const t=it.c(7),{className:b,label:d}=h;let o;t[0]!==b?(o=et("size-3 rounded-sm border",b),t[0]=b,t[1]=o):o=t[1];let m;t[2]!==o?(m=e.jsx("span",{className:o}),t[2]=o,t[3]=m):m=t[3];let i;return t[4]!==d||t[5]!==m?(i=e.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[m,d]}),t[4]=d,t[5]=m,t[6]=i):i=t[6],i}function nt(h){const t=it.c(23),{entry:b,active:d,draggable:o,onSelect:m,onDragStateChange:i}=h,D=pt(),{post:s,scheduled:r}=b,j=r?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let C;t[0]!==D||t[1]!==j?(C=D(j),t[0]=D,t[1]=j,t[2]=C):C=t[2];const rt=C;let n;t[3]!==i||t[4]!==s.key?(n=y=>{y.dataTransfer.setData("text/plain",s.key),y.dataTransfer.effectAllowed="move",i(s.key)},t[3]=i,t[4]=s.key,t[5]=n):n=t[5];let f;t[6]!==i?(f=()=>i(null),t[6]=i,t[7]=f):f=t[7];let p;t[8]!==m||t[9]!==s.key?(p=()=>m(s.key),t[8]=m,t[9]=s.key,t[10]=p):p=t[10];const N=`${s.title} · ${rt}`,v=r?ft:xt,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let a;t[11]!==v||t[12]!==x||t[13]!==u?(a=et("w-full truncate rounded-lg border px-2 py-1 text-left text-xs font-medium transition-colors",v,x,u),t[11]=v,t[12]=x,t[13]=u,t[14]=a):a=t[14];let c;return t[15]!==o||t[16]!==s.title||t[17]!==a||t[18]!==n||t[19]!==f||t[20]!==p||t[21]!==N?(c=e.jsx("button",{type:"button",draggable:o,onDragStart:n,onDragEnd:f,onClick:p,title:N,className:a,children:s.title}),t[15]=o,t[16]=s.title,t[17]=a,t[18]=n,t[19]=f,t[20]=p,t[21]=N,t[22]=c):c=t[22],c}export{bo as PostCalendar};
|