decocms 4.518.0 → 4.518.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-DC4ySNWR.js → ActiveShapeUtils-Bis8M8cE.js} +1 -1
- package/dist/client/assets/{AlertCircle-DgnxHqxe.js → AlertCircle-CF7oV00-.js} +1 -1
- package/dist/client/assets/{AreaChart-Ccsbdjec.js → AreaChart-rRgwbDdY.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BJ1448l4.js → ArrowLeft-BYRX2oWU.js} +1 -1
- package/dist/client/assets/{ArrowUp-723TVuFG.js → ArrowUp-C-Wi5Wp-.js} +1 -1
- package/dist/client/assets/{BarChart-BdOKvWnK.js → BarChart-B-Yzzi8V.js} +1 -1
- package/dist/client/assets/{Building02-DU823ZCw.js → Building02-BTo5ALb8.js} +1 -1
- package/dist/client/assets/{CartesianChart-3-g5kX2i.js → CartesianChart-D4q-R38l.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CinaMpxG.js → CategoricalChart-DTvqZVLo.js} +1 -1
- package/dist/client/assets/{CheckCircle-C7csYE-y.js → CheckCircle-B7DLXg5D.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-B0Z7parR.js → ChevronSelectorVertical-ByVW2vd8.js} +1 -1
- package/dist/client/assets/{ChevronUp-DiTVmUiH.js → ChevronUp-i4o2LTaN.js} +1 -1
- package/dist/client/assets/{Copy01-DRNuKy-h.js → Copy01-Ck9G4OUr.js} +1 -1
- package/dist/client/assets/{CreditCard01-C3f2i_qY.js → CreditCard01-DBL8NXSk.js} +1 -1
- package/dist/client/assets/{DotsVertical-eX97dPc6.js → DotsVertical-DGS_x5nz.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CCb5UZ88.js → ErrorBarContext-ClwVJba6.js} +1 -1
- package/dist/client/assets/{Globe04-ByvV2bPX.js → Globe04-lKXBAfc3.js} +1 -1
- package/dist/client/assets/{Image01-QuVxFosz.js → Image01-Cwrowq3c.js} +1 -1
- package/dist/client/assets/{Key01-C-QXsN23.js → Key01-CEbPGYnm.js} +1 -1
- package/dist/client/assets/{Link01-CbpFxbNY.js → Link01-DXqb71Uu.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DDgMbBWJ.js → LinkBroken01-DhWTb9MO.js} +1 -1
- package/dist/client/assets/{Minus-DnJ8wbLv.js → Minus-C9yYSfDR.js} +1 -1
- package/dist/client/assets/{Monitor01-DD5_JCl8.js → Monitor01-BL3DAm_1.js} +1 -1
- package/dist/client/assets/{Play-BgEaB30r.js → Play-CZ7QKkqf.js} +1 -1
- package/dist/client/assets/{Plus-BnqPSlPj.js → Plus-BRxUqR_F.js} +1 -1
- package/dist/client/assets/{ReferenceLine-PgVE-Dmr.js → ReferenceLine-D1hjyX4I.js} +1 -1
- package/dist/client/assets/{SearchMd-GQAKwnQD.js → SearchMd-DiO3q0AT.js} +1 -1
- package/dist/client/assets/{Sector-DG1U_Qdd.js → Sector-XuiRQ9ct.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DVHnZchK.js → ShoppingBag01-B4aQ0-ny.js} +1 -1
- package/dist/client/assets/{Sun-Ct5gftPt.js → Sun-DqiY7Z2B.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-_kdH1ete.js → SwitchHorizontal01-BbdJtypW.js} +1 -1
- package/dist/client/assets/{Tool01-rTZNmFct.js → Tool01-C0vFHYhV.js} +1 -1
- package/dist/client/assets/{Trash01-TPK4gSsp.js → Trash01-bhcUMroB.js} +1 -1
- package/dist/client/assets/{Upload01-D6tRQTgc.js → Upload01-BwEuXdMa.js} +1 -1
- package/dist/client/assets/{User01-1q78INo2.js → User01-DSs11bSF.js} +1 -1
- package/dist/client/assets/{UserSquare-B_yRFcN6.js → UserSquare-DXYtKMfd.js} +1 -1
- package/dist/client/assets/{Users01-D5MhP5r0.js → Users01-CTqd0ZAH.js} +1 -1
- package/dist/client/assets/{XClose-DOXmYMF_.js → XClose-CxYwKo3k.js} +1 -1
- package/dist/client/assets/{ZoomOut-DLICjI1h.js → ZoomOut-D-Ww048N.js} +1 -1
- package/dist/client/assets/{access-gate-p2OBWc28.js → access-gate-Bq22oyfg.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BluC5xOJ.js → add-connection-dialog-CQYwaYCv.js} +1 -1
- package/dist/client/assets/agent-analytics-B-zaohtV.js +1 -0
- package/dist/client/assets/agent-app-BbV2xIu_.js +1 -0
- package/dist/client/assets/{agent-assets-CsYWD2CR.js → agent-assets-4YMODB__.js} +1 -1
- package/dist/client/assets/{agent-automation-J7szToQ3.js → agent-automation-CmK6_mc6.js} +1 -1
- package/dist/client/assets/{agent-automations-tGwSufFx.js → agent-automations-BCX_o1aB.js} +1 -1
- package/dist/client/assets/agent-calendar-Ddf3r2JM.js +1 -0
- package/dist/client/assets/{agent-connect-sources-Bf7YpJtB.js → agent-connect-sources-Bxy4Jo7k.js} +1 -1
- package/dist/client/assets/agent-deck-UP8oQtvT.js +1 -0
- package/dist/client/assets/{agent-e2e-B01kqUsN.js → agent-e2e-BdqM7Rx1.js} +1 -1
- package/dist/client/assets/agent-experiments-CrVBOIKR.js +1 -0
- package/dist/client/assets/{agent-file-_hkGq1Y2.js → agent-file-Cb4leotK.js} +1 -1
- package/dist/client/assets/{agent-hosting-8jYjdLhJ.js → agent-hosting-yUCKeG5I.js} +1 -1
- package/dist/client/assets/{agent-icon-g2PIrjzs.js → agent-icon-CCDPFoN-.js} +1 -1
- package/dist/client/assets/agent-library-DMqKWgMi.js +1 -0
- package/dist/client/assets/agent-library-file-DOe-l166.js +1 -0
- package/dist/client/assets/{agent-monitor-Dtdyok8Z.js → agent-monitor-DpSfxETg.js} +1 -1
- package/dist/client/assets/{agent-overview-uVNzU6d3.js → agent-overview-D27q04-k.js} +1 -1
- package/dist/client/assets/{agent-releases-DVFEJ-Ad.js → agent-releases-DhOHbzAx.js} +1 -1
- package/dist/client/assets/agent-settings-D_kjSJft.js +1 -0
- package/dist/client/assets/{agent-site-editor-DI9lfD7X.js → agent-site-editor-CoubOLH6.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CdfJCg4-.js +2 -0
- package/dist/client/assets/agent-site-editor-content-C-o-blM5.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-D1F79zUW.js +1 -0
- package/dist/client/assets/agent-view-PuW3-X6q.js +1 -0
- package/dist/client/assets/{agent-view-guard-Bhzmxyux.js → agent-view-guard-BIS7z4mW.js} +1 -1
- package/dist/client/assets/{agents-list-CbFcTa4A.js → agents-list-CpVGk57l.js} +1 -1
- package/dist/client/assets/{ai-providers-Da7yjmwG.js → ai-providers-C8dIcjWL.js} +1 -1
- package/dist/client/assets/{alert-kpgdNVxk.js → alert-CmByshZi.js} +1 -1
- package/dist/client/assets/{alert-dialog-KKnJELoX.js → alert-dialog-BcRtAren.js} +1 -1
- package/dist/client/assets/{analytics-sections-DlComRmC.js → analytics-sections-CTEkK2Tf.js} +1 -1
- package/dist/client/assets/{analytics-tab-B_HbOlqF.js → analytics-tab-DPVT4KOA.js} +1 -1
- package/dist/client/assets/api-keys-CNy2dZat.js +1 -0
- package/dist/client/assets/{api-keys-DNrkQCkt.js → api-keys-DYTxKYWP.js} +1 -1
- package/dist/client/assets/{app-editor-CKdeak5r.js → app-editor-C1ZA1u8T.js} +1 -1
- package/dist/client/assets/{asset-utils-CYyNDrFK.js → asset-utils-DIN0M3zp.js} +1 -1
- package/dist/client/assets/{auth-catchall-BS8FAipd.js → auth-catchall-vhsgYqnn.js} +1 -1
- package/dist/client/assets/{auth-entry-34SQAdx9.js → auth-entry-C6zNerIy.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DF-Z-sUB.js → auth-split-layout-DKwsje6s.js} +1 -1
- package/dist/client/assets/{auth-DHZfBLZ5.js → auth-vu0NBiVX.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CbgraxNg.js → authenticate-and-persist-oauth-Dj1wDkpb.js} +1 -1
- package/dist/client/assets/{automation-list-row-DtCSZcdc.js → automation-list-row-DucKF7kG.js} +1 -1
- package/dist/client/assets/{automation-runs-Lelpmww0.js → automation-runs-Ui7o3JfN.js} +1 -1
- package/dist/client/assets/{automations-CV4vMVkc.js → automations-CmK0evd4.js} +1 -1
- package/dist/client/assets/{autosend-Cwww7_9j.js → autosend-ClHP6mj3.js} +1 -1
- package/dist/client/assets/{avatar-BRRGslVN.js → avatar-BfW8_V1B.js} +1 -1
- package/dist/client/assets/{badge-DmeqGssZ.js → badge-CqxA0I5-.js} +1 -1
- package/dist/client/assets/{block-document-DtA_3M8z.js → block-document-l9rZniOP.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context--o78Y3yp.js → blocks-preview-workspace-context-DIzgwExA.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Dps89GrH.js → blocks-tab-states-D014yZyw.js} +1 -1
- package/dist/client/assets/{blog-schema-CEYO8j-N.js → blog-schema-p025Q_3k.js} +1 -1
- package/dist/client/assets/{buckets-CXMlDLcD.js → buckets-C4799eWK.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-C7S9lWPM.js → build-improve-prompt-doc-C9nuC795.js} +1 -1
- package/dist/client/assets/{calendar-B6BpOXfC.js → calendar-C7UsyFmW.js} +1 -1
- package/dist/client/assets/{campaigns-view-DtQvcOC6.js → campaigns-view-Cz4ACJMm.js} +1 -1
- package/dist/client/assets/{capability-load-error-CDC4LjDf.js → capability-load-error-rgxsCr8U.js} +1 -1
- package/dist/client/assets/{category-editor-BvoAtPRs.js → category-editor-CldKargp.js} +1 -1
- package/dist/client/assets/{chart-CTinHp-8.js → chart-7lusH4mk.js} +1 -1
- package/dist/client/assets/{chat-context-DLezfYEa.js → chat-context-DaG-xhpe.js} +1 -1
- package/dist/client/assets/{chat-draft-BlRnwK9v.js → chat-draft-B4qXFQ20.js} +1 -1
- package/dist/client/assets/{checkbox-BlB_jfat.js → checkbox-k3S7hbYo.js} +1 -1
- package/dist/client/assets/{choose-editor-DHZGPvHu.js → choose-editor-DhoxAjmj.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DFaLHvgO.js → cli-auth-success-9cwHK6DP.js} +1 -1
- package/dist/client/assets/{client-icons-CpqRIiQr.js → client-icons-XJM50Gvn.js} +1 -1
- package/dist/client/assets/cms-settings-editor-VytgeION.js +1 -0
- package/dist/client/assets/{collapsible-DZTt-UAc.js → collapsible-CCUbGddy.js} +1 -1
- package/dist/client/assets/{collection-detail-BjUkXIkv.js → collection-detail-BQphYH0i.js} +1 -1
- package/dist/client/assets/{collection-display-button-Dmr1DpXh.js → collection-display-button-DtypHbWr.js} +1 -1
- package/dist/client/assets/{collection-search-DcBOG84t.js → collection-search-DFZiZHgj.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CBLUEZ5z.js → collection-table-wrapper-D5vvhE9_.js} +1 -1
- package/dist/client/assets/{collection-tabs-D5lfCRgo.js → collection-tabs-5oBppmJp.js} +1 -1
- package/dist/client/assets/{column-rules-B3eVnEiY.js → column-rules-DikbPDpl.js} +1 -1
- package/dist/client/assets/{combobox-CVTULN6N.js → combobox--wUI1bJn.js} +1 -1
- package/dist/client/assets/{command-R1e1yMQ9.js → command-A6J0_nSj.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-hGQWfzwk.js → companion-mcps-section-DHW4_WEu.js} +1 -1
- package/dist/client/assets/{config-BWrcU7H3.js → config-0cyLL49J.js} +1 -1
- package/dist/client/assets/{connect-CNN0l2XT.js → connect-Bi8fTNRc.js} +1 -1
- package/dist/client/assets/{connect-layout-DiWD8YTg.js → connect-layout-BXupI1uo.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-xgaD8LgG.js → connect-source-dialog-DUESoily.js} +1 -1
- package/dist/client/assets/{connection-WJRbuDz1.js → connection-DP0Tkqpu.js} +1 -1
- package/dist/client/assets/{connection-card-DnICQFn9.js → connection-card-SGeLl-3V.js} +1 -1
- package/dist/client/assets/{connection-detail-C0OJOuef.js → connection-detail-8iT2pzkA.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CBYCAzPl.js → connection-form-helpers-5dAreg1i.js} +1 -1
- package/dist/client/assets/{connections-DjwbhWNZ.js → connections-Ba0FzDee.js} +1 -1
- package/dist/client/assets/{content-tab-CAJ559-P.js → content-tab-Co7UZ0ue.js} +3 -3
- package/dist/client/assets/{context-BkZJrbqd.js → context-DSH71GyO.js} +1 -1
- package/dist/client/assets/{context-menu-B7wqDsW2.js → context-menu-m7JMy9Ts.js} +1 -1
- package/dist/client/assets/{context-shell-DkaK_BOn.js → context-shell-CHo3-a1U.js} +3 -3
- package/dist/client/assets/{core.esm-DHAYYfZu.js → core.esm-BT3eS5hh.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-u0Ud2kaY.js → create-organization-dialog-t8CuAC-D.js} +1 -1
- package/dist/client/assets/{daily-pulse-DRJB1hcS.js → daily-pulse-EoXIBNAG.js} +1 -1
- package/dist/client/assets/{discover-gZu3Sfan.js → discover-r5fXEWQj.js} +1 -1
- package/dist/client/assets/{domain-settings-USbT8NUs.js → domain-settings-Zd079_oe.js} +1 -1
- package/dist/client/assets/{drawer-C9bfrQZ2.js → drawer-BfInv3z-.js} +1 -1
- package/dist/client/assets/{editor-4LyrkCqm.js → editor-CpWj2GSL.js} +1 -1
- package/dist/client/assets/{editor-classes-_dczAbCq.js → editor-classes-5vsxGGPA.js} +1 -1
- package/dist/client/assets/{empty-state-4Hlytpdt.js → empty-state-BThdzdI0.js} +1 -1
- package/dist/client/assets/{empty-state-_a1QMwjl.js → empty-state-C97rGNTx.js} +1 -1
- package/dist/client/assets/{experiments-tab-DdHl8yk7.js → experiments-tab-BQyQ_6Nt.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-C9wWsYd4.js → experiments-tab-choice-CJxPrnzq.js} +1 -1
- package/dist/client/assets/{extract-connection-data-mbA-zNaE.js → extract-connection-data-BJcueAXf.js} +1 -1
- package/dist/client/assets/{feature-gate-iJnsMeBr.js → feature-gate-DOUh8nVg.js} +1 -1
- package/dist/client/assets/{feature-paywall-DcguOiJA.js → feature-paywall-skggPdmN.js} +1 -1
- package/dist/client/assets/{file-explorer-B_iKC9bp.js → file-explorer-BB5wuYW2.js} +1 -1
- package/dist/client/assets/{file-preview-Dy07kmgf.js → file-preview-DYLPzEi6.js} +1 -1
- package/dist/client/assets/{file-share-button-DOM1SplI.js → file-share-button-B1svbxuR.js} +1 -1
- package/dist/client/assets/{file-type-icon-CP6Bm0Pm.js → file-type-icon-Dh-YpP4t.js} +1 -1
- package/dist/client/assets/{folder-icon-D_8O1LWU.js → folder-icon-CPXfYDTX.js} +1 -1
- package/dist/client/assets/{form-B2fhil9l.js → form-Diz2j79C.js} +1 -1
- package/dist/client/assets/{general-BE0anzP1.js → general-5pQPx87d.js} +1 -1
- package/dist/client/assets/{home-Bb5YZQHS.js → home-Dnlsm-wz.js} +1 -1
- package/dist/client/assets/{icon-button-BQwa115u.js → icon-button-DuuXKRCk.js} +1 -1
- package/dist/client/assets/{index-Ccma-e_l.js → index-5O453B2L.js} +1 -1
- package/dist/client/assets/index-BMri_gPt.js +1 -0
- package/dist/client/assets/{index-B4yeJC5N.js → index-Bpjyo8cb.js} +1 -1
- package/dist/client/assets/{index-DXMlJvYf.js → index-BvwkkTca.js} +8 -8
- package/dist/client/assets/{index-Cs4qaYPX.js → index-Bw7ZdG0V.js} +1 -1
- package/dist/client/assets/{index-R_qB4INp.js → index-CH_rHFJ7.js} +1 -1
- package/dist/client/assets/{index-CeLGzS5y.js → index-CjCEGRSu.js} +1 -1
- package/dist/client/assets/{index-rKWXOhdZ.js → index-CtJ5bSic.js} +1 -1
- package/dist/client/assets/{index-CYHGIatu.js → index-D2_QRuAQ.js} +1 -1
- package/dist/client/assets/{index-CXWqnDP7.js → index-DPyR1fyZ.js} +1 -1
- package/dist/client/assets/{index-D2MFYEzD.js → index-DY9jv8u5.js} +37 -37
- package/dist/client/assets/{index-DiVZA6vr.js → index-fElQwNzQ.js} +1 -1
- package/dist/client/assets/{index-BWgOKGMR.js → index-hWaEVFzi.js} +1 -1
- package/dist/client/assets/{index-redirect-D2LQ3n9D.js → index-redirect-BF2Ze6CX.js} +1 -1
- package/dist/client/assets/{index-DU8BFhZD.js → index-u06bTyUt.js} +1 -1
- package/dist/client/assets/{index-CK40JGB6.js → index-vOiCoekF.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CaSjeDsE.js → infiniteQueryObserver-Glyohd4p.js} +1 -1
- package/dist/client/assets/{infra-billing-_cCsUnUO.js → infra-billing-Bd2bFoZ5.js} +1 -1
- package/dist/client/assets/{input-D43D11gI.js → input-Ca18CK1P.js} +1 -1
- package/dist/client/assets/{input-D9iDAvwy.js → input-F0XP3M77.js} +3 -3
- package/dist/client/assets/{integration-icon-CqbOWyvX.js → integration-icon-BZ0SYBCb.js} +1 -1
- package/dist/client/assets/{jira-icon-Y_2uACKb.js → jira-icon-66RPgyoE.js} +1 -1
- package/dist/client/assets/{label-3hTmrxoy.js → label-CUbZuKc3.js} +1 -1
- package/dist/client/assets/{layout-EYuYXIPk.js → layout-Cedqx0JP.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Y0g29rl5.js → legacy-agents-deep-D41zNkt6.js} +1 -1
- package/dist/client/assets/legacy-main-redirect-B7bd3WDG.js +1 -0
- package/dist/client/assets/library-D71H_oBI.js +1 -0
- package/dist/client/assets/{login-DTF43M9h.js → login-BEUSAD5h.js} +1 -1
- package/dist/client/assets/{markdown-BeKN4MPt.js → markdown-CQTrkEJG.js} +3 -3
- package/dist/client/assets/{mcp-app-renderer-DcbWj_cd.js → mcp-app-renderer-CfeFa2D0.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BVLnM3ir.js → mcp-oauth-DqI-dLnK.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DQ__DCEs.js → mcp-oauth-dZFQnVjg.js} +1 -1
- package/dist/client/assets/{members-DdYed_-G.js → members-D8letp2p.js} +1 -1
- package/dist/client/assets/{memory-CbDGJpdj.js → memory-C9mu7Zkb.js} +1 -1
- package/dist/client/assets/{mini-report-page-I5w2A9ue.js → mini-report-page-JqpGP2GL.js} +1 -1
- package/dist/client/assets/{mock-board-D64wFJ9x.js → mock-board-BGHy2qG4.js} +3 -3
- package/dist/client/assets/{monaco-editor-DEU78sxw.js → monaco-editor-nJc5wgpu.js} +1 -1
- package/dist/client/assets/{monitoring-Bklr39Mh.js → monitoring-BtZh6NEX.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BLFmMtG4.js → monitoring-stats-row-BAFX8tUf.js} +1 -1
- package/dist/client/assets/{multi-select-DxNv8sxt.js → multi-select-DpaHzZAz.js} +1 -1
- package/dist/client/assets/{mustache-Cm6mC1mo.js → mustache-CewpKCP1.js} +1 -1
- package/dist/client/assets/{named-rule-uses-BBN_5zyZ.js → named-rule-uses-939Puzgt.js} +1 -1
- package/dist/client/assets/{named-rule-view-Dgj56LCZ.js → named-rule-view-CML2JnRp.js} +1 -1
- package/dist/client/assets/{new-project-dialog-qMTAvOP0.js → new-project-dialog-BDUYA1Q9.js} +1 -1
- package/dist/client/assets/{oauth-callback-DzKW1jLM.js → oauth-callback-ClogQ-NW.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BhTg9J9_.js → oauth-callback-ai-provider-aAWOChDT.js} +1 -1
- package/dist/client/assets/{onboarding-CcHHvf_v.js → onboarding-DkM2lBLt.js} +1 -1
- package/dist/client/assets/{openai-conversation-X6iReX5A.js → openai-conversation-CnNyoZHy.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Wa4vMG32.js → optimistic-project-sidebar-views-Dd9HCPLE.js} +1 -1
- package/dist/client/assets/{order-monitor-day-d8yh4cv8.js → order-monitor-day-D7yGjq7b.js} +1 -1
- package/dist/client/assets/{organization-choice-DKOeafiU.js → organization-choice-CVq2K-mi.js} +1 -1
- package/dist/client/assets/{orgs-CReR2HvS.js → orgs-riRdPSVS.js} +1 -1
- package/dist/client/assets/{page-seo-form-BTZBPUqn.js → page-seo-form-DHiOVvvv.js} +1 -1
- package/dist/client/assets/{pair-DSps2zoM.js → pair-BiwOJOFx.js} +1 -1
- package/dist/client/assets/{parse-sections-Bc_lvOtq.js → parse-sections-Ce8e3CyM.js} +1 -1
- package/dist/client/assets/{plan-CxnMa3En.js → plan-Cpl6bs6l.js} +1 -1
- package/dist/client/assets/{plan-ladder-7wUcVwfI.js → plan-ladder-DJwAssQD.js} +1 -1
- package/dist/client/assets/{popover-Dm_x8CV9.js → popover-B1ABR0kS.js} +1 -1
- package/dist/client/assets/{post-calendar-BtFE-61n.js → post-calendar-CtSEncUE.js} +1 -1
- package/dist/client/assets/{post-editor-QChnOq6Y.js → post-editor-Cxxxfb0r.js} +1 -1
- package/dist/client/assets/{preview-content-BUlAqj-X.js → preview-content-ULOD_UZt.js} +1 -1
- package/dist/client/assets/{preview-dialog-39V6ZO2Y.js → preview-dialog-CZYisvNu.js} +1 -1
- package/dist/client/assets/{preview-panel-BvoYfTNF.js → preview-panel-ItJi6Jc0.js} +1 -1
- package/dist/client/assets/{preview-tab-jmFSMM-R.js → preview-tab-B6Q-8P-_.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-iaXbdjia.js → product-picker-dialog-BHrHoQQK.js} +1 -1
- package/dist/client/assets/{profile-IgWNvITK.js → profile-B6Cd5Dxw.js} +1 -1
- package/dist/client/assets/{project-app-view-Bc-wof7y.js → project-app-view-B1-HxYgX.js} +1 -1
- package/dist/client/assets/{project-apps-DVzn0z1g.js → project-apps-Dler5z99.js} +1 -1
- package/dist/client/assets/{project-feed-BIwmxSQY.js → project-feed-BwWFdPBj.js} +1 -1
- package/dist/client/assets/{project-icon-CJmvnLdz.js → project-icon-BtGD--7Z.js} +1 -1
- package/dist/client/assets/project-reports-DigBj5UN.js +1 -0
- package/dist/client/assets/project-tasks-ckZ9YIhp.js +1 -0
- package/dist/client/assets/{projects-D8Cbhxnj.js → projects-BbyUgZdk.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CmtOjsbv.js → projects-empty-state-cl5VGT1T.js} +1 -1
- package/dist/client/assets/{prompts-BFb-SeSC.js → prompts-C7IgVGhQ.js} +1 -1
- package/dist/client/assets/record-editor-DulCdbwX.js +1 -0
- package/dist/client/assets/{redirect-editor-XmMaGVJV.js → redirect-editor-DGmg8IhI.js} +1 -1
- package/dist/client/assets/{releases-api-AYZ93qlv.js → releases-api-CS8wgmr5.js} +1 -1
- package/dist/client/assets/reports-ChrL-50F.js +1 -0
- package/dist/client/assets/{reports-AyOb4hhI.js → reports-J6WeamZr.js} +1 -1
- package/dist/client/assets/{reports-onboarding-BDPMVaDo.js → reports-onboarding-BskSIDus.js} +1 -1
- package/dist/client/assets/{reports-tab-D2iADtiN.js → reports-tab-a3KJftGt.js} +2 -2
- package/dist/client/assets/repositories-BS-pBlSH.js +1 -0
- package/dist/client/assets/{repositories-BNDNB0vE.js → repositories-BZocQhoR.js} +1 -1
- package/dist/client/assets/{repository-binding-4nTgXz1S.js → repository-binding-DEE5HjOP.js} +1 -1
- package/dist/client/assets/{repository-import-picker-De4sf2Gs.js → repository-import-picker-WAot3Ghn.js} +1 -1
- package/dist/client/assets/{repository-picker-HOHNvmaE.js → repository-picker-DKd6y_Vd.js} +1 -1
- package/dist/client/assets/{require-capability-ChTCz2WH.js → require-capability-BdR5kRbu.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BZllo6Io.js → required-auth-layout-CXS5DXAp.js} +1 -1
- package/dist/client/assets/{reset-password-Ui3G6CJw.js → reset-password-Br9V0wHS.js} +1 -1
- package/dist/client/assets/{resizable-DAXTAODq.js → resizable-CkWJ6g0G.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CAixh6_W.js → resolve-tab-icon-BXRYZg2i.js} +1 -1
- package/dist/client/assets/{review-settings-BDP4bMe5.js → review-settings-CfpCP4zo.js} +1 -1
- package/dist/client/assets/{roles-Clx4HYW_.js → roles-D-ySNiDm.js} +1 -1
- package/dist/client/assets/{route-CaI6hSyT.js → route-Bor9ph6H.js} +1 -1
- package/dist/client/assets/{route-B9jYymiu.js → route-DIJ9is23.js} +1 -1
- package/dist/client/assets/route-DTfdE-p1.js +1 -0
- package/dist/client/assets/{runnable-block-editor-LQjhwiX1.js → runnable-block-editor-D1duQp0J.js} +3 -3
- package/dist/client/assets/{sandbox-lifecycle-context-CJodiAqU.js → sandbox-lifecycle-context-DJrMSxNE.js} +1 -1
- package/dist/client/assets/{schema-DrNvzI26.js → schema-BXxpoJF8.js} +1 -1
- package/dist/client/assets/{schema-xPkTs0YZ.js → schema-BiVd-UM7.js} +1 -1
- package/dist/client/assets/{scroll-area-BBBDJLpH.js → scroll-area-DdvxCYsk.js} +1 -1
- package/dist/client/assets/{search-input-DSx8LWNe.js → search-input-UGzUEySU.js} +1 -1
- package/dist/client/assets/{search-toggle-B9X5GBEJ.js → search-toggle-09QkRcdu.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-qv17emf3.js → secret-ciphertext-D7Z8GkTt.js} +1 -1
- package/dist/client/assets/{secret-picker-DBs-gr5P.js → secret-picker-jW2RoOXq.js} +1 -1
- package/dist/client/assets/{secrets-5nLK_pSH.js → secrets--oDOIL-g.js} +1 -1
- package/dist/client/assets/{sections-ALAbnAYY.js → sections-Cktygxsr.js} +1 -1
- package/dist/client/assets/{sections-editor-DVqxZTWF.js → sections-editor-Ykrd9ksj.js} +1 -1
- package/dist/client/assets/{select-C9_0SSgH.js → select-C48ly-p-.js} +1 -1
- package/dist/client/assets/{select-model-BaxH4IRV.js → select-model-qC-ddNWu.js} +1 -1
- package/dist/client/assets/{seo-editor-Cd-ANp55.js → seo-editor-vkCR941s.js} +1 -1
- package/dist/client/assets/{separator-DXuISWBW.js → separator-CfwhkXab.js} +1 -1
- package/dist/client/assets/settings-tab-BR68FSDQ.js +1 -0
- package/dist/client/assets/{sheet-BQCLSAhw.js → sheet-C78dW_OW.js} +1 -1
- package/dist/client/assets/{shell-layout-CnXya3zZ.js → shell-layout-7jtYUd9L.js} +1 -1
- package/dist/client/assets/{site-draft-actions-BG_Fzxj9.js → site-draft-actions-DyZ1f4ik.js} +1 -1
- package/dist/client/assets/site-draft-view-BRWWuiN5.js +2 -0
- package/dist/client/assets/site-editor-JG7QILYD.js +1 -0
- package/dist/client/assets/{site-editor-toast-BKVRfpA8.js → site-editor-toast-C_UZBEd9.js} +1 -1
- package/dist/client/assets/{skills-mFhfnuy4.js → skills-CHltBKqG.js} +1 -1
- package/dist/client/assets/{slider-DTKLr6aL.js → slider-DueO9EFe.js} +1 -1
- package/dist/client/assets/{sortable.esm-D2---7Ab.js → sortable.esm-D411R8sQ.js} +1 -1
- package/dist/client/assets/{sso-DrhiuaNt.js → sso-C7rH2Jsc.js} +1 -1
- package/dist/client/assets/{suggestion-B0A7rwRG.js → suggestion-_sJX1Xs_.js} +1 -1
- package/dist/client/assets/{switch-CESJ2RZK.js → switch-Wb17Bg4i.js} +1 -1
- package/dist/client/assets/{symbol-CYXY7_SE.js → symbol-CN-EQDYU.js} +1 -1
- package/dist/client/assets/{synced-repos--pWS_C_z.js → synced-repos-BRIUeky9.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Cjt9sANI.js → tab-icon-glyph-BeHT1AU_.js} +1 -1
- package/dist/client/assets/{table-BkZK8rXZ.js → table-ChqbkXkJ.js} +1 -1
- package/dist/client/assets/{tabs-B6EQUSl_.js → tabs-D-bShRzz.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-Dodx9W4w.js → task-assignee-avatar-Db7T5j33.js} +1 -1
- package/dist/client/assets/{task-board-6nf7vbPi.js → task-board-NNGstnYy.js} +1 -1
- package/dist/client/assets/{task-route-BvbHuTGP.js → task-route-BYz8Txhc.js} +1 -1
- package/dist/client/assets/{task-status-GUWtXwyC.js → task-status-BtnjgBne.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BXSTC1m2.js → taskboard-analytics-BiCEJijC.js} +1 -1
- package/dist/client/assets/tasks-CtzEjcDR.js +1 -0
- package/dist/client/assets/{tasks-DEvPbHif.js → tasks-DscpmhWw.js} +1 -1
- package/dist/client/assets/{textarea-DG3FcnmS.js → textarea-DXNX9E30.js} +1 -1
- package/dist/client/assets/{thread-analytics-BUqostwA.js → thread-analytics-BxM1u9ID.js} +1 -1
- package/dist/client/assets/{thread-intent-Ds79TVrW.js → thread-intent-BYXYhdV9.js} +1 -1
- package/dist/client/assets/{thread-route-UuA5SD5X.js → thread-route--lOZYDN5.js} +1 -1
- package/dist/client/assets/{thread-route-Cf5GTfDW.js → thread-route-EPwO0Tp5.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-p9veuPgz.js → thread-sheet-body-Doh4mgo7.js} +1 -1
- package/dist/client/assets/{time-range-picker-Bo0eqMw9.js → time-range-picker-bYUcsgps.js} +1 -1
- package/dist/client/assets/{toggle-group-C7NFln-0.js → toggle-group-C__89QW8.js} +1 -1
- package/dist/client/assets/{tool-namespace-CMW8ZB5L.js → tool-namespace-CjWGrg1d.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BiR5ntfC.js → toolbar-icon-button-Bn0QMDhj.js} +1 -1
- package/dist/client/assets/{tooltip-bQVm_Ope.js → tooltip-CjIqGzku.js} +1 -1
- package/dist/client/assets/{tooltipContext-CMDZ9J9X.js → tooltipContext-BlJpYj2n.js} +1 -1
- package/dist/client/assets/{track-COIlf0dl.js → track-DiwbUXrF.js} +1 -1
- package/dist/client/assets/{types-DLna4BAB.js → types-2FdJQAcI.js} +1 -1
- package/dist/client/assets/{url-slug-BWq-dgp6.js → url-slug-SgUmhnUm.js} +1 -1
- package/dist/client/assets/{usage-stats-CvT3PVJT.js → usage-stats-mjbSmunu.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CzmKfSB9.js → use-ai-providers-Ui8zDguo.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-BLEqLp1R.js → use-apply-named-rule-DqZvErCE.js} +1 -1
- package/dist/client/assets/{use-automations-DHA5_uZh.js → use-automations-C1_nM6XA.js} +1 -1
- package/dist/client/assets/{use-autosave-BlShc4A-.js → use-autosave-DUE5eTHe.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-BV7ldzPe.js → use-chat-layout-state-Civkwlwx.js} +1 -1
- package/dist/client/assets/{use-clock-tick-C61VlTs_.js → use-clock-tick-BglfF91b.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DxCCqNf4.js → use-connect-companion-DXE20Cit.js} +1 -1
- package/dist/client/assets/{use-connection-DTSe3r1K.js → use-connection-DjG9Ar0-.js} +1 -1
- package/dist/client/assets/{use-content-sync-Dj6rb1LD.js → use-content-sync-UBduiNPN.js} +1 -1
- package/dist/client/assets/{use-copy-Bc8JMSws.js → use-copy-D-ZUZJVe.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Dpe8iA_9.js → use-create-virtual-mcp-zb51VTao.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BGkTB4Mm.js → use-date-fns-locale-DDB69sAw.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BhCHbQGN.js → use-debounced-autosave-sMVb1_hn.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Cm7nwcam.js → use-debounced-value-0e-te_rl.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BgLGkCcl.js → use-deco-credits-zw0Jw-tt.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-C_BQo06W.js → use-decopilot-events-BQLXDAAl.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BEv8pmzy.js → use-delete-connection-CcIoRjhU.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Ck9xx8zz.js → use-deployment-admin-s7tGTRS4.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-B7ECUHMP.js → use-fast-preview-draft-url-B9Iu3h_6.js} +1 -1
- package/dist/client/assets/{use-file-configs-C7kUU5_U.js → use-file-configs-CDeU2xvZ.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-U2BOY_0m.js → use-inbox-feed-CFSuERBJ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CpvqXWve.js → use-infinite-scroll-BopUCEp4.js} +1 -1
- package/dist/client/assets/{use-join-requests-ldwvbhU3.js → use-join-requests-D2jJesnC.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BvDesOKd.js → use-main-panel-tabs--2YvNIZr.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-D6FLEMEz.js → use-mcp-auth-status-DEXNa6Oz.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Cby5XqT6.js → use-mcp-client-owuI-9F9.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DpGHOlEI.js → use-mcp-prompts-8FxF45h0.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-7EpnWJvB.js → use-mcp-tools-qNpUlzik.js} +1 -1
- package/dist/client/assets/{use-members-oF45MDF1.js → use-members-VmpszULL.js} +1 -1
- package/dist/client/assets/{use-mobile-h4hHhZkm.js → use-mobile-CqyBz8Dx.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DFQHiQ1n.js → use-move-blocks-Cnva5RwQ.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DwJfjSMG.js → use-navigate-to-agent-DdSspEm5.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-CjWCFQM1.js → use-open-billing-url-CO2ZloNb.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BFDehTsp.js → use-org-auth-client-BQ7kloKy.js} +1 -1
- package/dist/client/assets/{use-org-fs-CyxFz8rw.js → use-org-fs-CvYQh_B2.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BsUWjWH7.js → use-org-repo-syncs-BtFmt_qd.js} +1 -1
- package/dist/client/assets/{use-org-sso-D5M4Sxwu.js → use-org-sso-B9p-4KH7.js} +1 -1
- package/dist/client/assets/{use-organization-roles-t12r77qZ.js → use-organization-roles-Cu4J92yA.js} +1 -1
- package/dist/client/assets/{use-organization-settings-NOur1Lvu.js → use-organization-settings-BcSo4teS.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-DxGjTjIo.js → use-panel-navigate-Co0XZmSD.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-USh7_bNt.js → use-project-native-view-presence-BRsKjCEJ.js} +1 -1
- package/dist/client/assets/{use-project-scope-CBw0FSEz.js → use-project-scope-BL3NRFI4.js} +1 -1
- package/dist/client/assets/{use-recent-apps-B2LVD6z4.js → use-recent-apps-RjVee3Pq.js} +1 -1
- package/dist/client/assets/{use-releases-x9nrIfuE.js → use-releases-vjl0fUb-.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-qSw4HttT.js → use-reports-diagnostic-B0L8y4wc.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-D98uWMd_.js → use-sandbox-events-Bjcn7PU6.js} +1 -1
- package/dist/client/assets/{use-secrets-CvBGDTuP.js → use-secrets-D9Bq6nE_.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DmjOJ885.js → use-section-preview-base-Vjigvtig.js} +1 -1
- package/dist/client/assets/{use-session-runtime-BrkTaSa6.js → use-session-runtime-C-ErRuug.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Bijbdhqq.js → use-sidebar-collapsed-oSws9nsi.js} +1 -1
- package/dist/client/assets/{use-tags-BMQZw2TW.js → use-tags-pfCDbF9Z.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DdtvZ4ju.js → use-task-board-analytics-CopE-4zr.js} +1 -1
- package/dist/client/assets/{use-task-board-events-B5yNhg5i.js → use-task-board-events-C280-Zim.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-D9gfgNig.js → use-task-board-item-prs-x7ZAMu8t.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DuF2rBuH.js → use-task-metadata-CDV-25sQ.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-B03W7aQi.js → use-thread-analytics-RcDxA37Q.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-D_k8NizM.js → use-thread-outputs-orGxjs9L.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C3FB4QSd.js +1 -0
- package/dist/client/assets/{useQueries-BSehCBUp.js → useQueries-M-H4-oNf.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-zAujesU3.js +1 -0
- package/dist/client/assets/{users-Cej3U7P5.js → users-Yugcw0oy.js} +1 -1
- package/dist/client/assets/{utils-CkwBhBMS.js → utils-Cwt2fdOd.js} +1 -1
- package/dist/client/assets/{variant-calendar-kJB8Qi3I.js → variant-calendar-r5D0JiAM.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-XY7K79P5.js → variant-matcher-override-Dcw_0UNB.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BzmRbmfQ.js → virtual-mcp-D9lu2UG3.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CmsmQLFo.js → watch-sse-pool-BEBGvoea.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +417 -417
- package/package.json +1 -1
- package/dist/client/assets/agent-analytics-D7PovqhV.js +0 -1
- package/dist/client/assets/agent-app-DEsjnzHy.js +0 -1
- package/dist/client/assets/agent-calendar-Co4HNR_x.js +0 -1
- package/dist/client/assets/agent-deck-Bra-oqcr.js +0 -1
- package/dist/client/assets/agent-experiments-W5vP2PHw.js +0 -1
- package/dist/client/assets/agent-library-BTKjZMW2.js +0 -1
- package/dist/client/assets/agent-library-file-ClGbfS7a.js +0 -1
- package/dist/client/assets/agent-settings-DQDpgZ05.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CiWALb3j.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BrDlLQPy.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-Da7g0LlC.js +0 -1
- package/dist/client/assets/agent-view-l1LYqbmp.js +0 -1
- package/dist/client/assets/api-keys-kxUaur7Y.js +0 -1
- package/dist/client/assets/cms-settings-editor-Dh-qBReE.js +0 -1
- package/dist/client/assets/index-CO7uP6ut.js +0 -1
- package/dist/client/assets/legacy-main-redirect-Pt1vRyf-.js +0 -1
- package/dist/client/assets/library-DJ51ehEw.js +0 -1
- package/dist/client/assets/project-reports-DnaQ9nW_.js +0 -1
- package/dist/client/assets/project-tasks-cwxXGcyN.js +0 -1
- package/dist/client/assets/record-editor-hWJJMGCG.js +0 -1
- package/dist/client/assets/reports-BQij5juA.js +0 -1
- package/dist/client/assets/repositories-BiNU-Xfn.js +0 -1
- package/dist/client/assets/route-BjK3qzB4.js +0 -1
- package/dist/client/assets/settings-tab-D_D1vl9t.js +0 -1
- package/dist/client/assets/site-draft-view-BYdCjysm.js +0 -2
- package/dist/client/assets/site-editor-B7kc0tIQ.js +0 -1
- package/dist/client/assets/tasks-Cd3DKWnU.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Dobhsojg.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CqyfVE9R.js +0 -1
|
@@ -1 +1 @@
|
|
|
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
|
+
import{i as Y}from"./thread-intent-BYXYhdV9.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-DY9jv8u5.js";import{C as L}from"./index-Bw7ZdG0V.js";import{h as S,w as R,bK as B}from"./agent-icon-CCDPFoN-.js";import{B as E}from"./badge-CqxA0I5-.js";import"./use-mobile-CqyBz8Dx.js";import"./use-sidebar-collapsed-oSws9nsi.js";import"./use-chat-layout-state-Civkwlwx.js";import"./thread-route--lOZYDN5.js";import"./use-panel-navigate-Co0XZmSD.js";import"./use-project-scope-BL3NRFI4.js";import"./repository-binding-DEE5HjOP.js";import"./use-mcp-client-owuI-9F9.js";import"./auth-vu0NBiVX.js";import"./thread-intent-BYXYhdV9.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BEBGvoea.js";import"./task-board-NNGstnYy.js";import"./schema-BXxpoJF8.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-CjIqGzku.js";import"./index-DPyR1fyZ.js";import"./toolbar-icon-button-Bn0QMDhj.js";import"./shell-layout-7jtYUd9L.js";import"./avatar-BfW8_V1B.js";import"./User01-DSs11bSF.js";import"./Building02-BTo5ALb8.js";import"./UserSquare-DXYtKMfd.js";import"./XClose-CxYwKo3k.js";import"./CheckCircle-B7DLXg5D.js";import"./Monitor01-BL3DAm_1.js";import"./ZoomOut-D-Ww048N.js";import"./use-clock-tick-BglfF91b.js";import"./Plus-BRxUqR_F.js";import"./Tool01-C0vFHYhV.js";import"./command-A6J0_nSj.js";import"./index-CH_rHFJ7.js";import"./SearchMd-DiO3q0AT.js";import"./integration-icon-BZ0SYBCb.js";import"./LinkBroken01-DhWTb9MO.js";import"./project-icon-BtGD--7Z.js";import"./new-project-dialog-BDUYA1Q9.js";import"./ArrowLeft-BYRX2oWU.js";import"./label-CUbZuKc3.js";import"./repository-import-picker-WAot3Ghn.js";import"./use-navigate-to-agent-DdSspEm5.js";import"./repository-picker-DKd6y_Vd.js";import"./useInfiniteQuery-C3FB4QSd.js";import"./infiniteQueryObserver-Glyohd4p.js";import"./collection-search-DFZiZHgj.js";import"./ShoppingBag01-B4aQ0-ny.js";import"./use-debounced-value-0e-te_rl.js";import"./use-organization-settings-BcSo4teS.js";import"./required-auth-layout-CXS5DXAp.js";import"./autosend-ClHP6mj3.js";import"./use-org-sso-B9p-4KH7.js";import"./sheet-C78dW_OW.js";import"./resizable-CkWJ6g0G.js";import"./AlertCircle-CF7oV00-.js";import"./ArrowUp-C-Wi5Wp-.js";import"./ChevronUp-i4o2LTaN.js";import"./ChevronSelectorVertical-ByVW2vd8.js";import"./Copy01-Ck9G4OUr.js";import"./CreditCard01-DBL8NXSk.js";import"./DotsVertical-DGS_x5nz.js";import"./Image01-Cwrowq3c.js";import"./Globe04-lKXBAfc3.js";import"./SwitchHorizontal01-BbdJtypW.js";import"./Key01-CEbPGYnm.js";import"./Link01-DXqb71Uu.js";import"./Minus-C9yYSfDR.js";import"./Sun-DqiY7Z2B.js";import"./Play-CZ7QKkqf.js";import"./Trash01-bhcUMroB.js";import"./Upload01-BwEuXdMa.js";import"./Users01-CTqd0ZAH.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-DY9jv8u5.js";import{u as A}from"./use-decopilot-events-BQLXDAAl.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-DY9jv8u5.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-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};
|
|
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-DY9jv8u5.js";import{a3 as Nt,H as Dt}from"./agent-icon-CCDPFoN-.js";import{s as kt}from"./Plus-BRxUqR_F.js";import{S as St}from"./scroll-area-DdvxCYsk.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-Co7UZ0ue.js";import"./AlertCircle-CF7oV00-.js";import"./Tool01-C0vFHYhV.js";import"./ArrowUp-C-Wi5Wp-.js";import"./ArrowLeft-BYRX2oWU.js";import"./LinkBroken01-DhWTb9MO.js";import"./ShoppingBag01-B4aQ0-ny.js";import"./ZoomOut-D-Ww048N.js";import"./Building02-BTo5ALb8.js";import"./CheckCircle-B7DLXg5D.js";import"./ChevronUp-i4o2LTaN.js";import"./ChevronSelectorVertical-ByVW2vd8.js";import"./UserSquare-DXYtKMfd.js";import"./Copy01-Ck9G4OUr.js";import"./CreditCard01-DBL8NXSk.js";import"./DotsVertical-DGS_x5nz.js";import"./Image01-Cwrowq3c.js";import"./Globe04-lKXBAfc3.js";import"./SwitchHorizontal01-BbdJtypW.js";import"./Key01-CEbPGYnm.js";import"./Link01-DXqb71Uu.js";import"./Minus-C9yYSfDR.js";import"./Monitor01-BL3DAm_1.js";import"./Sun-DqiY7Z2B.js";import"./Play-CZ7QKkqf.js";import"./SearchMd-DiO3q0AT.js";import"./Trash01-bhcUMroB.js";import"./Upload01-BwEuXdMa.js";import"./User01-DSs11bSF.js";import"./Users01-CTqd0ZAH.js";import"./XClose-CxYwKo3k.js";import"./index-BdQq_4o_.js";import"./use-organization-settings-BcSo4teS.js";import"./schema-BXxpoJF8.js";import"./task-board-NNGstnYy.js";import"./chat-context-DaG-xhpe.js";import"./use-panel-navigate-Co0XZmSD.js";import"./thread-route--lOZYDN5.js";import"./use-project-scope-BL3NRFI4.js";import"./repository-binding-DEE5HjOP.js";import"./use-mcp-client-owuI-9F9.js";import"./auth-vu0NBiVX.js";import"./autosend-ClHP6mj3.js";import"./thread-intent-BYXYhdV9.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BEBGvoea.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-BQLXDAAl.js";import"./use-ai-providers-Ui8zDguo.js";import"./location-V0VwTJTt.js";import"./blocks-tab-states-D014yZyw.js";import"./command-A6J0_nSj.js";import"./index-CH_rHFJ7.js";import"./label-CUbZuKc3.js";import"./slider-DueO9EFe.js";import"./index-hWaEVFzi.js";import"./tooltipContext-BlJpYj2n.js";import"./CategoricalChart-DTvqZVLo.js";import"./index-CjCEGRSu.js";import"./ActiveShapeUtils-Bis8M8cE.js";import"./Sector-XuiRQ9ct.js";import"./symbol-CN-EQDYU.js";import"./parse-sections-Ce8e3CyM.js";import"./site-editor-toast-C_UZBEd9.js";import"./use-session-runtime-C-ErRuug.js";import"./experiments-tab-choice-CJxPrnzq.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-Cwt2fdOd.js";import"./use-sandbox-events-Bjcn7PU6.js";import"./sandbox-git-api-CH_-QFpD.js";import"./empty-state-C97rGNTx.js";import"./runnable-block-editor-D1duQp0J.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-BiwOJOFx.js";import"./format-time-Cq80KKvY.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-CCUbGddy.js";import"./use-copy-D-ZUZJVe.js";import"./usage-stats-mjbSmunu.js";import"./tool-namespace-CjWGrg1d.js";import"./form-Diz2j79C.js";import"./utils-CVEq3hMx.js";import"./markdown-CQTrkEJG.js";import"./use-mobile-CqyBz8Dx.js";import"./tooltip-CjIqGzku.js";import"./index-DPyR1fyZ.js";import"./use-clock-tick-BglfF91b.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CfeFa2D0.js";import"./types-2FdJQAcI.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-7jtYUd9L.js";import"./avatar-BfW8_V1B.js";import"./integration-icon-BZ0SYBCb.js";import"./project-icon-BtGD--7Z.js";import"./new-project-dialog-BDUYA1Q9.js";import"./repository-import-picker-WAot3Ghn.js";import"./use-navigate-to-agent-DdSspEm5.js";import"./repository-picker-DKd6y_Vd.js";import"./useInfiniteQuery-C3FB4QSd.js";import"./infiniteQueryObserver-Glyohd4p.js";import"./collection-search-DFZiZHgj.js";import"./use-debounced-value-0e-te_rl.js";import"./required-auth-layout-CXS5DXAp.js";import"./use-org-sso-B9p-4KH7.js";import"./sheet-C78dW_OW.js";import"./use-connection-DjG9Ar0-.js";import"./use-mcp-prompts-8FxF45h0.js";import"./use-thread-outputs-orGxjs9L.js";import"./file-type-icon-Dh-YpP4t.js";import"./secret-ciphertext-D7Z8GkTt.js";import"./alert-CmByshZi.js";import"./switch-Wb17Bg4i.js";import"./textarea-DXNX9E30.js";import"./popover-B1ABR0kS.js";import"./monaco-editor-nJc5wgpu.js";import"./editor-CpWj2GSL.js";import"./calendar-C7UsyFmW.js";import"./select-C48ly-p-.js";import"./editor-classes-5vsxGGPA.js";import"./core.esm-BT3eS5hh.js";import"./sortable.esm-D411R8sQ.js";import"./toggle-group-C__89QW8.js";import"./active-indicator-CCMhAsc_.js";import"./combobox--wUI1bJn.js";import"./alert-dialog-BcRtAren.js";import"./search-input-UGzUEySU.js";import"./tabs-D-bShRzz.js";import"./use-file-configs-CDeU2xvZ.js";import"./asset-utils-DIN0M3zp.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./mustache-CewpKCP1.js";import"./use-content-sync-UBduiNPN.js";import"./sandbox-lifecycle-context-DJrMSxNE.js";import"./checkbox-k3S7hbYo.js";import"./use-move-blocks-Cnva5RwQ.js";import"./badge-CqxA0I5-.js";import"./empty-state-BThdzdI0.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,2 +1,2 @@
|
|
|
1
|
-
import{b as Z,an as st,r as J,j as t,B as Te,D as ot,q as it,s as lt,v as at,aM as nt,af as rt,l as _e,w as ct,t as De,a5 as dt,h as pt,a$ as mt,c as Be,I as we}from"./index-
|
|
1
|
+
import{b as Z,an as st,r as J,j as t,B as Te,D as ot,q as it,s as lt,v as at,aM as nt,af as rt,l as _e,w as ct,t as De,a5 as dt,h as pt,a$ as mt,c as Be,I as we}from"./index-DY9jv8u5.js";import{u as ut}from"./chat-context-DaG-xhpe.js";import{i as $e}from"./AlertCircle-CF7oV00-.js";import{a9 as xt,av as ft,as as gt,F as ht}from"./agent-icon-CCDPFoN-.js";import{d as bt}from"./UserSquare-DXYtKMfd.js";import{s as jt}from"./Trash01-bhcUMroB.js";import{s as vt}from"./XClose-CxYwKo3k.js";import{f as yt,e as St,b as Et,A as kt,a as Nt,d as Pt,c as Ct,g as Tt}from"./alert-dialog-BcRtAren.js";import{L as Q}from"./label-CUbZuKc3.js";import{M as Dt}from"./multi-select-DpaHzZAz.js";import{c as Lt,a as wt,T as Me,b as Ge}from"./tabs-D-bShRzz.js";import{S as Bt}from"./switch-Wb17Bg4i.js";import{T as Ke}from"./textarea-DXNX9E30.js";import{u as At,E as Ft,a as zt,I as Ie,J as It,K as $t}from"./runnable-block-editor-D1duQp0J.js";import{f as Rt,a as Ot,b as qt,c as Ue,B as _t,R as Vt}from"./block-document-l9rZniOP.js";import{b as Ht,C as Mt,K as Gt}from"./blog-schema-p025Q_3k.js";import{c as Ut,l as Wt,u as Yt,g as Kt,d as Jt,s as Qt,h as Xt,e as $,f as Zt,m as es,i as We,j as ts,p as Je,k as ss,o as Qe,R as os,q as is,t as ls,v as as,A as ns,P as rs,w as cs}from"./content-tab-Co7UZ0ue.js";import{c as Re,T as Oe,a as qe}from"./tooltip-CjIqGzku.js";import{i as ds}from"./Link01-DXqb71Uu.js";import{u as ps}from"./use-ai-providers-Ui8zDguo.js";import{u as ms}from"./mustache-CewpKCP1.js";import{f as us}from"./use-fast-preview-draft-url-B9Iu3h_6.js";import{u as xs}from"./use-autosave-DUE5eTHe.js";import"./use-panel-navigate-Co0XZmSD.js";import"./thread-route--lOZYDN5.js";import"./use-project-scope-BL3NRFI4.js";import"./repository-binding-DEE5HjOP.js";import"./use-mcp-client-owuI-9F9.js";import"./auth-vu0NBiVX.js";import"./autosend-ClHP6mj3.js";import"./thread-intent-BYXYhdV9.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BEBGvoea.js";import"./task-board-NNGstnYy.js";import"./schema-BXxpoJF8.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-BQLXDAAl.js";import"./location-V0VwTJTt.js";import"./use-organization-settings-BcSo4teS.js";import"./Tool01-C0vFHYhV.js";import"./ArrowUp-C-Wi5Wp-.js";import"./ArrowLeft-BYRX2oWU.js";import"./LinkBroken01-DhWTb9MO.js";import"./ShoppingBag01-B4aQ0-ny.js";import"./ZoomOut-D-Ww048N.js";import"./Building02-BTo5ALb8.js";import"./CheckCircle-B7DLXg5D.js";import"./ChevronUp-i4o2LTaN.js";import"./ChevronSelectorVertical-ByVW2vd8.js";import"./Copy01-Ck9G4OUr.js";import"./CreditCard01-DBL8NXSk.js";import"./DotsVertical-DGS_x5nz.js";import"./Image01-Cwrowq3c.js";import"./Globe04-lKXBAfc3.js";import"./SwitchHorizontal01-BbdJtypW.js";import"./Key01-CEbPGYnm.js";import"./Minus-C9yYSfDR.js";import"./Monitor01-BL3DAm_1.js";import"./Sun-DqiY7Z2B.js";import"./Play-CZ7QKkqf.js";import"./Plus-BRxUqR_F.js";import"./SearchMd-DiO3q0AT.js";import"./Upload01-BwEuXdMa.js";import"./User01-DSs11bSF.js";import"./Users01-CTqd0ZAH.js";import"./badge-CqxA0I5-.js";import"./checkbox-k3S7hbYo.js";import"./command-A6J0_nSj.js";import"./index-CH_rHFJ7.js";import"./popover-B1ABR0kS.js";import"./active-indicator-CCMhAsc_.js";import"./utils-Cwt2fdOd.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-BiwOJOFx.js";import"./format-time-Cq80KKvY.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-CCUbGddy.js";import"./use-copy-D-ZUZJVe.js";import"./usage-stats-mjbSmunu.js";import"./tool-namespace-CjWGrg1d.js";import"./form-Diz2j79C.js";import"./utils-CVEq3hMx.js";import"./markdown-CQTrkEJG.js";import"./use-mobile-CqyBz8Dx.js";import"./use-clock-tick-BglfF91b.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CfeFa2D0.js";import"./types-2FdJQAcI.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-7jtYUd9L.js";import"./avatar-BfW8_V1B.js";import"./integration-icon-BZ0SYBCb.js";import"./project-icon-BtGD--7Z.js";import"./new-project-dialog-BDUYA1Q9.js";import"./repository-import-picker-WAot3Ghn.js";import"./use-navigate-to-agent-DdSspEm5.js";import"./repository-picker-DKd6y_Vd.js";import"./useInfiniteQuery-C3FB4QSd.js";import"./infiniteQueryObserver-Glyohd4p.js";import"./collection-search-DFZiZHgj.js";import"./use-debounced-value-0e-te_rl.js";import"./required-auth-layout-CXS5DXAp.js";import"./use-org-sso-B9p-4KH7.js";import"./sheet-C78dW_OW.js";import"./use-connection-DjG9Ar0-.js";import"./use-mcp-prompts-8FxF45h0.js";import"./use-thread-outputs-orGxjs9L.js";import"./file-type-icon-Dh-YpP4t.js";import"./secret-ciphertext-D7Z8GkTt.js";import"./alert-CmByshZi.js";import"./parse-sections-Ce8e3CyM.js";import"./site-editor-toast-C_UZBEd9.js";import"./use-session-runtime-C-ErRuug.js";import"./experiments-tab-choice-CJxPrnzq.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-Bjcn7PU6.js";import"./sandbox-git-api-CH_-QFpD.js";import"./blocks-tab-states-D014yZyw.js";import"./slider-DueO9EFe.js";import"./index-hWaEVFzi.js";import"./index-BdQq_4o_.js";import"./tooltipContext-BlJpYj2n.js";import"./CategoricalChart-DTvqZVLo.js";import"./index-CjCEGRSu.js";import"./ActiveShapeUtils-Bis8M8cE.js";import"./Sector-XuiRQ9ct.js";import"./symbol-CN-EQDYU.js";import"./empty-state-C97rGNTx.js";import"./scroll-area-DdvxCYsk.js";import"./monaco-editor-nJc5wgpu.js";import"./editor-CpWj2GSL.js";import"./calendar-C7UsyFmW.js";import"./select-C48ly-p-.js";import"./index-DPyR1fyZ.js";import"./editor-classes-5vsxGGPA.js";import"./core.esm-BT3eS5hh.js";import"./sortable.esm-D411R8sQ.js";import"./toggle-group-C__89QW8.js";import"./combobox--wUI1bJn.js";import"./search-input-UGzUEySU.js";import"./use-file-configs-CDeU2xvZ.js";import"./asset-utils-DIN0M3zp.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./suggestion-_sJX1Xs_.js";import"./section-preview-url-7zfngvgW.js";import"./product-picker-dialog-BHrHoQQK.js";import"./index-5O453B2L.js";import"./use-content-sync-UBduiNPN.js";import"./sandbox-lifecycle-context-DJrMSxNE.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-Cnva5RwQ.js";import"./empty-state-BThdzdI0.js";import"./preview-link-C762yHOt.js";import"./variant-draft-pointer-BeAKcq_c.js";const Le=n=>typeof n=="string"?n:"",fs={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","'":"'"};function Xe(n){const e=[];let o=0,a=!1;for(;o<n.length;){if(n[o]==="<"){const r=n.indexOf(">",o);o=r<0?n.length:r+1;continue}let s=n[o]??"",c=o+1;if(n[o]==="&"){const r=n.indexOf(";",o);if(r>=0&&r-o<=10){const i=fs[n.slice(o,r+1).toLowerCase()];i!==void 0&&(s=i,c=r+1)}}const d=o;if(o=c,/\s/.test(s)){if(a){const r=e[e.length-1];r&&(r.end=c);continue}e.push({ch:" ",start:d,end:c}),a=!0}else e.push({ch:s,start:d,end:c}),a=!1}return{text:e.map(s=>s.ch).join(""),chars:e}}function gs(n){return Xe(n).text.trim()}function hs(n){const e=[];for(const o of n)switch(Ut(Le(o.__resolveType))){case"Paragraph":e.push(gs(Le(o.html)));break;case"Heading":e.push(Le(o.text));break;case"Quote":e.push(Le(o.quote));break;case"List":e.push(Le(o.items));break}return e.filter(Boolean).join(`
|
|
2
2
|
`)}function bs(n){return n.replace(/&/g,"&").replace(/"/g,""")}function js(n,e){const o=n.slice(0,e);return o.lastIndexOf("<a")>o.lastIndexOf("</a")}function vs(n,e,o){const a=e.trim();if(!a||!o)return{blocks:n,applied:!1};for(let s=0;s<n.length;s++){const c=n[s];if(!c||typeof c.html!="string")continue;const d=c.html,{text:r,chars:i}=Xe(d);let p=r.indexOf(a);for(;p>=0;){const g=i[p],u=i[p+a.length-1];if(g&&u){const l=g.start,b=u.end,m=d.slice(l,b);if(!m.includes("<")&&!js(d,l)){const x=d.slice(0,l)+`<a href="${bs(o)}">${m}</a>`+d.slice(b),h=n.slice();return h[s]={...c,html:x},{blocks:h,applied:!0}}}p=r.indexOf(a,p+1)}}return{blocks:n,applied:!1}}function ys(n,e){let o=n,a=0;for(const s of e){const c=vs(o,s.quote,s.href);c.applied&&(o=c.blocks,a++)}return{blocks:o,applied:a}}function Ss({virtualMcpId:n,decofile:e,sections:o,currentKey:a,meta:s,hasAi:c,onApply:d}){const r=Z(),i=st(),[p,g]=J.useState(!1),[u,l]=J.useState(!1),[b,m]=J.useState([]),[x,h]=J.useState(new Set),E=Rt(e,s),N=Wt(e).filter(f=>f.key!==a&&f.slug),T=async()=>{l(!0);try{const f=hs(o),P=await i.call("BLOG_SITE_GROUND",{virtualMcpId:n,purpose:"link"}).catch(S=>{console.warn("[linkSuggest] grounding failed",S)}),k=await i.call("BLOG_LINK_SUGGEST",{virtualMcpId:n,body:f,posts:N.map(S=>({title:S.title,slug:S.slug})),grounding:P?{report:P.report,outcome:P.outcome}:void 0}),C=[],D=new Set;for(const S of k.suggestions){const A=N.find(O=>O.slug===S.slug);if(!A||!E)continue;const w=Ot(E,{category:A.categorySlugs[0]??"",slug:A.slug});if(!w||!f.includes(S.quote))continue;const F=`${S.quote}→${A.slug}`;D.has(F)||(D.add(F),C.push({quote:S.quote,href:w,title:A.title}))}m(C),h(new Set(C.map((S,A)=>A))),g(!0),C.length===0&&De.info(r("sandbox.linkSuggest.none"))}catch(f){De.error(f instanceof Error?f.message:r("sandbox.linkSuggest.failed"))}finally{l(!1)}},j=f=>h(P=>{const k=new Set(P);return k.has(f)?k.delete(f):k.add(f),k}),R=()=>{const f=b.filter((C,D)=>x.has(D)).map(C=>({quote:C.quote,href:C.href})),{blocks:P,applied:k}=ys(o,f);d(P),g(!1),De.success(r("sandbox.linkSuggest.applied",{count:String(k)}))};return t.jsxs(t.Fragment,{children:[t.jsxs(Te,{type:"button",variant:"outline",size:"sm",disabled:u||!c||N.length===0,title:c?N.length===0?r("sandbox.linkSuggest.noCandidates"):r("sandbox.linkSuggest.hint"):r("sandbox.autonomous.noAiProvider"),onClick:()=>{T()},children:[u?t.jsx(xt,{size:14,className:"animate-spin"}):t.jsx(ds,{size:14}),r("sandbox.linkSuggest.button")]}),t.jsx(ot,{open:p,onOpenChange:g,children:t.jsxs(it,{className:"max-h-[85vh] sm:max-w-lg",children:[t.jsxs(lt,{children:[t.jsx(at,{children:r("sandbox.linkSuggest.title")}),t.jsx(nt,{children:r("sandbox.linkSuggest.description")})]}),b.length===0?t.jsx("p",{className:"py-6 text-center text-sm text-muted-foreground",children:r("sandbox.linkSuggest.none")}):t.jsx("ul",{className:"max-h-[50vh] space-y-1 overflow-y-auto",children:b.map((f,P)=>{const k=x.has(P);return t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>j(P),"aria-pressed":k,className:"flex w-full items-start gap-2.5 rounded-lg border p-2.5 text-left transition-colors hover:bg-accent",children:[t.jsx("span",{className:_e("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border",k?"border-primary bg-primary text-primary-foreground":"border-input"),children:k&&t.jsx(rt,{size:11})}),t.jsxs("span",{className:"min-w-0 flex-1 text-sm",children:[t.jsxs("span",{className:"font-medium",children:["“",f.quote,"”"]}),t.jsxs("span",{className:"text-muted-foreground",children:[" → ",f.title]})]})]})},`${f.quote}-${f.href}`)})}),t.jsx(ct,{children:t.jsx(Te,{type:"button",disabled:x.size===0,onClick:R,children:r("sandbox.linkSuggest.apply",{count:String(x.size)})})})]})})]})}function Es(n){return Array.isArray(n)?n.map(e=>({key:$(e?.key),value:$(e?.value)})):[]}function Nl({orgSlug:n,virtualMcpId:e,branch:o,blockKey:a,block:s,decofile:c,meta:d,previewBaseUrl:r,move:i,onClose:p,expanded:g,onToggleExpand:u}){const l=Z(),b=ut()?.taskId??null,m=At({orgSlug:n,virtualMcpId:e,branch:o}),x=ms({orgSlug:n,virtualMcpId:e,branch:o}),h=ps().length>0,E=Yt(),N=us({orgSlug:n,virtualMcpId:e,branch:o}),T=Kt(s,"posts"),[j,R,f,P]=xs(T,v=>{m.mutate({blockKey:a,data:Jt(a,Qt(v))})},{isSaving:m.isPending}),[k,C]=J.useState(a);k!==a&&(C(a),f(T));const D=v=>{f(j),i.apply(a,v,j)},S=(v,B)=>R({...j,[v]:B}),A=Ht("posts",d,Gt),w=zt((v,B)=>m.mutate({blockKey:v,data:B})),[F,O]=J.useState(0),z=qt({decofile:c,post:j,previewBaseUrl:r,draftPointer:N,meta:d}),q=Xt(c,"posts",a,$(j.title)),_=Zt(j),[V,H]=J.useState(!1),M=async()=>{f(j);try{await x.mutateAsync({blockKey:a}),De.success(l("sandbox.postEditor.deletePostSuccess",{title:$(j.title)})),H(!1),p?.()}catch(v){De.error(v instanceof Error?v.message:l("sandbox.postEditor.deletePostFailed"))}},L=es(j),G=L.length>0,U=L.length===1?l("sandbox.postEditor.missingFieldSingular",{fields:We(L,l)}):l("sandbox.postEditor.missingFieldPlural",{fields:We(L,l)});return t.jsxs("div",{className:"relative flex h-full flex-col",children:[t.jsx("div",{className:"absolute inset-x-0 top-0 z-10 bg-background/80 backdrop-blur-sm",children:t.jsxs("div",{className:"mx-auto flex max-w-4xl items-center justify-between gap-2 px-8 py-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(Ft,{isPending:m.isPending||P,isError:m.isError}),G&&t.jsxs(Re,{children:[t.jsx(Oe,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx($e,{size:14}),L.length," ",L.length===1?l("sandbox.postEditor.issueSingular"):l("sandbox.postEditor.issuePlural")]})}),t.jsx(qe,{side:"bottom",children:U})]})]}),(u||p)&&t.jsxs("div",{className:"-mr-2 flex items-center gap-0.5",children:[u&&t.jsx(Te,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:u,title:l(g?"sandbox.postBoard.collapse":"sandbox.postBoard.expand"),children:g?t.jsx(ft,{size:16}):t.jsx(gt,{size:16})}),p&&t.jsx(Te,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:p,title:l("sandbox.postBoard.close"),children:t.jsx(vt,{size:16})})]})]})}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 pb-6 pt-14",children:[t.jsx(ts,{value:$(j.title),onChange:v=>S("title",v),placeholder:l("sandbox.postEditor.postTitlePlaceholder"),className:"py-1 text-4xl font-bold text-foreground"}),q&&t.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[t.jsx($e,{size:14,className:"mt-px shrink-0"}),l("sandbox.postEditor.duplicateTitleWarning")]}),t.jsxs(Lt,{defaultValue:"content",className:"mt-6 gap-4",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs(wt,{children:[t.jsxs(Me,{value:"content",children:[t.jsx(bt,{}),l("sandbox.postEditor.contentTab")]}),t.jsxs(Me,{value:"settings",children:[t.jsx(ht,{}),l("sandbox.postEditor.settingsTab")]})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[_&&t.jsxs(Re,{children:[t.jsx(Oe,{asChild:!0,children:t.jsx(Te,{type:"button",variant:"ghost-destructive",size:"sm",className:"px-2","aria-label":l("sandbox.postEditor.deletePost"),onClick:()=>H(!0),children:t.jsx(jt,{size:14})})}),t.jsx(qe,{side:"bottom",children:l("sandbox.postEditor.deletePost")})]}),E&&t.jsx(Ss,{decofile:c,virtualMcpId:e,sections:Ue(j.sections),currentKey:a,meta:d,hasAi:h,onApply:v=>{S("sections",v),O(B=>B+1)}}),t.jsxs(Te,{type:"button",variant:"outline",size:"sm",disabled:!z,title:l(z?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),onClick:()=>{z&&window.open(z,"_blank","noopener,noreferrer")},children:[t.jsx(dt,{size:14}),l("sandbox.postEditor.seePreview")]})]})]}),t.jsx(Ge,{value:"content",children:t.jsx("div",{className:"surface p-8",children:t.jsx(_t,{value:Ue(j.sections),onChange:v=>S("sections",v),meta:d,decofile:c,sandboxRef:{orgSlug:n,virtualMcpId:e,branch:o,threadId:b},previewBaseUrl:r,onSaveReferencedBlock:w,emptyMessage:l("sandbox.postEditor.noContentYet")},F)})}),t.jsx(Ge,{value:"settings",children:t.jsxs("div",{className:"surface p-6",children:[t.jsx(Ns,{post:j,decofile:c,onChange:S,blockKey:a,move:i,onMoveStatus:D}),t.jsx(Mt,{schema:A,value:j,onChange:R,basePath:"post",meta:d,decofile:c,sandbox:{orgSlug:n,virtualMcpId:e,branch:o,threadId:b},onSaveReferencedBlock:w})]})})]})]})}),t.jsx(yt,{open:V,onOpenChange:v=>{!v&&!x.isPending&&H(!1)},children:t.jsxs(St,{children:[t.jsxs(Et,{children:[t.jsx(kt,{children:l("sandbox.postEditor.deletePostConfirmTitle")}),t.jsx(Nt,{children:l("sandbox.postEditor.deletePostConfirmBody",{title:$(j.title)||l("sandbox.postBoard.untitled")})})]}),t.jsxs(Pt,{children:[t.jsx(Ct,{disabled:x.isPending,children:l("sandbox.postEditor.deletePostCancel")}),t.jsx(Tt,{onClick:v=>{v.preventDefault(),M()},disabled:x.isPending,className:_e(mt({variant:"destructive"})),children:x.isPending?t.jsxs(t.Fragment,{children:[t.jsx(pt,{className:"size-3.5"}),l("sandbox.postEditor.deletingPost")]}):l("sandbox.postEditor.deletePost")})]})]})})]})}function ks(n){const e=Be.c(15),{blockKey:o,post:a,move:s,onMoveStatus:c}=n,d=Z();let r;e[0]!==a?(r=Je(a),e[0]=a,e[1]=r):r=e[1];const i=r;let p,g;if(e[2]!==o||e[3]!==i||e[4]!==s||e[5]!==c||e[6]!==a||e[7]!==d){let l;e[10]!==i?(l=m=>m!=="generating"||i==="generating",e[10]=i,e[11]=l):l=e[11];const b=rs.filter(l);p="flex flex-wrap gap-1.5",g=b.map(m=>{const x=m===i,h=x?null:s.refuse(o,m,a);return t.jsxs(Re,{children:[t.jsx(Oe,{asChild:!0,children:t.jsx("span",{children:t.jsx("button",{type:"button",disabled:!!h,"aria-pressed":x,onClick:()=>c(m),className:_e("rounded-md border px-2.5 py-1 text-xs font-medium transition-colors",x?"border-primary bg-primary text-primary-foreground":"cursor-pointer bg-card hover:bg-accent",h&&"cursor-not-allowed opacity-50"),children:d(cs[m])})})}),h&&t.jsx(qe,{side:"bottom",children:s.reasonText(h)})]},m)}),e[2]=o,e[3]=i,e[4]=s,e[5]=c,e[6]=a,e[7]=d,e[8]=p,e[9]=g}else p=e[8],g=e[9];let u;return e[12]!==p||e[13]!==g?(u=t.jsx("div",{className:p,children:g}),e[12]=p,e[13]=g,e[14]=u):u=e[14],u}function Ns(n){const e=Be.c(166),{post:o,decofile:a,onChange:s,blockKey:c,move:d,onMoveStatus:r}=n,i=Z();let p;e[0]!==o?(p=Je(o),e[0]=o,e[1]=p):p=e[1];const u=p==="scheduled";let l;e[2]!==o.slug?(l=$(o.slug),e[2]=o.slug,e[3]=l):l=e[3];const b=l,[m,x]=J.useState(b),[h,E]=J.useState(null),[N,T]=J.useState(b);N!==b&&(T(b),x(b));let j;e[4]!==c||e[5]!==b||e[6]!==a||e[7]!==s||e[8]!==m||e[9]!==i?(j=()=>{const y=is(m);if(x(y),y===b)return;if(!y){E(null),s("slug","");return}const Ve=Qe(a,"posts").filter(tt=>tt.key!==c).map(Ts).filter(Boolean);if(!Ve.includes(y)){E(null),s("slug",y);return}const ze=ls(y,Ve),He=i("sandbox.postEditor.slugDeduped",{slug:ze});x(ze),E(He),De.info(He),s("slug",ze)},e[4]=c,e[5]=b,e[6]=a,e[7]=s,e[8]=m,e[9]=i,e[10]=j):j=e[10];const R=j;let f;e[11]!==i?(f=i("sandbox.postEditor.statusLabel"),e[11]=i,e[12]=f):f=e[12];let P;e[13]!==f?(P=t.jsx(Q,{children:f}),e[13]=f,e[14]=P):P=e[14];let k;e[15]!==c||e[16]!==d||e[17]!==r||e[18]!==o?(k=t.jsx(ks,{blockKey:c,post:o,move:d,onMoveStatus:r}),e[15]=c,e[16]=d,e[17]=r,e[18]=o,e[19]=k):k=e[19];let C;e[20]!==P||e[21]!==k?(C=t.jsxs("div",{className:"space-y-2",children:[P,k]}),e[20]=P,e[21]=k,e[22]=C):C=e[22];let D;e[23]!==u||e[24]!==s||e[25]!==o.scheduledDatetime||e[26]!==i?(D=u&&t.jsx(Ie,{schema:{type:"string",format:"date-time",title:i("sandbox.postEditor.scheduledDatetimeLabel"),description:i("sandbox.postEditor.scheduledDatetimeDescription")},value:$(o.scheduledDatetime),onChange:y=>s("scheduledDatetime",y),path:"post-scheduled-datetime",label:i("sandbox.postEditor.scheduledDatetimeLabel")}),e[23]=u,e[24]=s,e[25]=o.scheduledDatetime,e[26]=i,e[27]=D):D=e[27];let S;e[28]!==C||e[29]!==D?(S=t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[C,D]}),e[28]=C,e[29]=D,e[30]=S):S=e[30];let A;e[31]!==i?(A=i("sandbox.postEditor.excerptLabel"),e[31]=i,e[32]=A):A=e[32];let w;e[33]!==A?(w=t.jsx(Q,{htmlFor:"post-excerpt",children:A}),e[33]=A,e[34]=w):w=e[34];let F;e[35]!==o.excerpt?(F=$(o.excerpt),e[35]=o.excerpt,e[36]=F):F=e[36];let O;e[37]!==s?(O=y=>s("excerpt",y.target.value),e[37]=s,e[38]=O):O=e[38];let z;e[39]!==F||e[40]!==O?(z=t.jsx(Ke,{id:"post-excerpt",value:F,onChange:O,rows:2}),e[39]=F,e[40]=O,e[41]=z):z=e[41];let q;e[42]!==w||e[43]!==z?(q=t.jsxs("div",{className:"space-y-2",children:[w,z]}),e[42]=w,e[43]=z,e[44]=q):q=e[44];let _;e[45]!==i?(_=i("sandbox.postEditor.slugLabel"),e[45]=i,e[46]=_):_=e[46];let V;e[47]!==_?(V=t.jsx(Q,{htmlFor:"post-slug",children:_}),e[47]=_,e[48]=V):V=e[48];let H;e[49]===Symbol.for("react.memo_cache_sentinel")?(H=y=>{E(null),x(as(y.target.value))},e[49]=H):H=e[49];let M;e[50]!==i?(M=i("sandbox.postEditor.slugPlaceholder"),e[50]=i,e[51]=M):M=e[51];let L;e[52]!==R||e[53]!==m||e[54]!==M?(L=t.jsx(we,{id:"post-slug",value:m,onChange:H,onBlur:R,placeholder:M,maxLength:80,className:"h-10"}),e[52]=R,e[53]=m,e[54]=M,e[55]=L):L=e[55];let G;e[56]!==h?(G=h&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx($e,{size:14,className:"mt-px shrink-0"}),h]}),e[56]=h,e[57]=G):G=e[57];let U;e[58]!==V||e[59]!==L||e[60]!==G?(U=t.jsxs("div",{className:"space-y-2",children:[V,L,G]}),e[58]=V,e[59]=L,e[60]=G,e[61]=U):U=e[61];let v;e[62]!==i?(v=i("sandbox.postEditor.dateLabel"),e[62]=i,e[63]=v):v=e[63];let B;e[64]!==v?(B={type:"string",format:"date",title:v},e[64]=v,e[65]=B):B=e[65];let W;e[66]!==o.date?(W=$(o.date),e[66]=o.date,e[67]=W):W=e[67];let Y;e[68]!==s?(Y=y=>s("date",y),e[68]=s,e[69]=Y):Y=e[69];let K;e[70]!==i?(K=i("sandbox.postEditor.dateLabel"),e[70]=i,e[71]=K):K=e[71];let I;e[72]!==B||e[73]!==W||e[74]!==Y||e[75]!==K?(I=t.jsx(Ie,{schema:B,value:W,onChange:Y,path:"post-date",label:K}),e[72]=B,e[73]=W,e[74]=Y,e[75]=K,e[76]=I):I=e[76];let X;e[77]!==i?(X=i("sandbox.postEditor.readTimeLabel"),e[77]=i,e[78]=X):X=e[78];let ee;e[79]!==X?(ee={type:"integer",title:X},e[79]=X,e[80]=ee):ee=e[80];const Fe=typeof o.readTime=="number"?o.readTime:void 0;let te;e[81]!==s?(te=y=>s("readTime",y),e[81]=s,e[82]=te):te=e[82];let se;e[83]!==i?(se=i("sandbox.postEditor.readTimeLabel"),e[83]=i,e[84]=se):se=e[84];let oe;e[85]!==ee||e[86]!==Fe||e[87]!==te||e[88]!==se?(oe=t.jsx(It,{schema:ee,value:Fe,onChange:te,path:"post-read-time",label:se}),e[85]=ee,e[86]=Fe,e[87]=te,e[88]=se,e[89]=oe):oe=e[89];let ie;e[90]!==U||e[91]!==I||e[92]!==oe?(ie=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[U,I,oe]}),e[90]=U,e[91]=I,e[92]=oe,e[93]=ie):ie=e[93];const Ze=o.image,et=o.mobileImage;let le,ae;e[94]!==s?(le=y=>s("image",y),ae=y=>s("mobileImage",y),e[94]=s,e[95]=le,e[96]=ae):(le=e[95],ae=e[96]);let ne;e[97]!==o.alt?(ne=$(o.alt),e[97]=o.alt,e[98]=ne):ne=e[98];let re;e[99]!==i?(re=i("sandbox.postEditor.coverImageLabel"),e[99]=i,e[100]=re):re=e[100];let ce;e[101]!==o.image||e[102]!==o.mobileImage||e[103]!==le||e[104]!==ae||e[105]!==ne||e[106]!==re?(ce=t.jsx(Vt,{value:Ze,mobileValue:et,onChange:le,onMobileChange:ae,alt:ne,label:re}),e[101]=o.image,e[102]=o.mobileImage,e[103]=le,e[104]=ae,e[105]=ne,e[106]=re,e[107]=ce):ce=e[107];let de;e[108]!==i?(de=i("sandbox.postEditor.coverAltLabel"),e[108]=i,e[109]=de):de=e[109];let pe;e[110]!==i?(pe=i("sandbox.postEditor.coverAltDescription"),e[110]=i,e[111]=pe):pe=e[111];let me;e[112]!==de||e[113]!==pe?(me={type:"string",title:de,description:pe},e[112]=de,e[113]=pe,e[114]=me):me=e[114];let ue;e[115]!==o.alt?(ue=$(o.alt),e[115]=o.alt,e[116]=ue):ue=e[116];let xe;e[117]!==s?(xe=y=>s("alt",y),e[117]=s,e[118]=xe):xe=e[118];let fe;e[119]!==i?(fe=i("sandbox.postEditor.coverAltLabel"),e[119]=i,e[120]=fe):fe=e[120];let ge;e[121]!==me||e[122]!==ue||e[123]!==xe||e[124]!==fe?(ge=t.jsx(Ie,{schema:me,value:ue,onChange:xe,path:"post-alt",label:fe}),e[121]=me,e[122]=ue,e[123]=xe,e[124]=fe,e[125]=ge):ge=e[125];let he;e[126]!==ce||e[127]!==ge?(he=t.jsxs("div",{className:"space-y-2",children:[ce,ge]}),e[126]=ce,e[127]=ge,e[128]=he):he=e[128];let be;e[129]!==i?(be=i("sandbox.postEditor.authorsLabel"),e[129]=i,e[130]=be):be=e[130];let je;e[131]!==s?(je=y=>s("authors",y),e[131]=s,e[132]=je):je=e[132];let ve;e[133]!==a||e[134]!==o.authors||e[135]!==be||e[136]!==je?(ve=t.jsx(Ye,{label:be,decofile:a,kind:"authors",valueField:"email",toRef:Cs,selected:o.authors,onChange:je}),e[133]=a,e[134]=o.authors,e[135]=be,e[136]=je,e[137]=ve):ve=e[137];let ye;e[138]!==i?(ye=i("sandbox.postEditor.categoriesLabel"),e[138]=i,e[139]=ye):ye=e[139];let Se;e[140]!==s?(Se=y=>s("categories",y),e[140]=s,e[141]=Se):Se=e[141];let Ee;e[142]!==a||e[143]!==o.categories||e[144]!==ye||e[145]!==Se?(Ee=t.jsx(Ye,{label:ye,decofile:a,kind:"categories",valueField:"slug",toRef:Ps,selected:o.categories,onChange:Se}),e[142]=a,e[143]=o.categories,e[144]=ye,e[145]=Se,e[146]=Ee):Ee=e[146];let ke;e[147]!==s?(ke=y=>s("extraProps",y),e[147]=s,e[148]=ke):ke=e[148];let Ne;e[149]!==o.extraProps||e[150]!==ke?(Ne=t.jsx(Ls,{value:o.extraProps,onChange:ke}),e[149]=o.extraProps,e[150]=ke,e[151]=Ne):Ne=e[151];let Pe;e[152]!==s?(Pe=y=>s("seo",y),e[152]=s,e[153]=Pe):Pe=e[153];let Ce;e[154]!==o.seo||e[155]!==Pe?(Ce=t.jsx(Ds,{value:o.seo,onChange:Pe}),e[154]=o.seo,e[155]=Pe,e[156]=Ce):Ce=e[156];let Ae;return e[157]!==q||e[158]!==ie||e[159]!==he||e[160]!==ve||e[161]!==Ee||e[162]!==Ne||e[163]!==Ce||e[164]!==S?(Ae=t.jsxs("div",{className:"space-y-5",children:[S,q,ie,he,ve,Ee,Ne,Ce]}),e[157]=q,e[158]=ie,e[159]=he,e[160]=ve,e[161]=Ee,e[162]=Ne,e[163]=Ce,e[164]=S,e[165]=Ae):Ae=e[165],Ae}function Ps(n){return{name:$(n.name),slug:$(n.slug)}}function Cs(n){return{...n}}function Ts(n){return $(n.payload.slug)}function Ds(n){const e=Be.c(93),{value:o,onChange:a}=n,s=Z();let c;e[0]!==o?(c=o&&typeof o=="object"&&!Array.isArray(o)?o:{},e[0]=o,e[1]=c):c=e[1];const d=c;let r;e[2]!==a||e[3]!==d?(r=(I,X)=>a({...d,[I]:X}),e[2]=a,e[3]=d,e[4]=r):r=e[4];const i=r;let p;e[5]!==s?(p=s("sandbox.postEditor.seoSectionLabel"),e[5]=s,e[6]=p):p=e[6];let g;e[7]!==p?(g=t.jsx("p",{className:"text-sm font-medium",children:p}),e[7]=p,e[8]=g):g=e[8];let u;e[9]!==s?(u=s("sandbox.postEditor.seoSectionHint"),e[9]=s,e[10]=u):u=e[10];let l;e[11]!==u?(l=t.jsx("p",{className:"text-xs text-muted-foreground",children:u}),e[11]=u,e[12]=l):l=e[12];let b;e[13]!==g||e[14]!==l?(b=t.jsxs("div",{className:"space-y-1",children:[g,l]}),e[13]=g,e[14]=l,e[15]=b):b=e[15];let m;e[16]!==s?(m=s("sandbox.postEditor.seoTitleLabel"),e[16]=s,e[17]=m):m=e[17];let x;e[18]!==m?(x=t.jsx(Q,{htmlFor:"post-seo-title",children:m}),e[18]=m,e[19]=x):x=e[19];let h;e[20]!==d.title?(h=$(d.title),e[20]=d.title,e[21]=h):h=e[21];let E;e[22]!==i?(E=I=>i("title",I.target.value),e[22]=i,e[23]=E):E=e[23];let N;e[24]!==h||e[25]!==E?(N=t.jsx(we,{id:"post-seo-title",value:h,onChange:E,className:"h-10"}),e[24]=h,e[25]=E,e[26]=N):N=e[26];let T;e[27]!==N||e[28]!==x?(T=t.jsxs("div",{className:"space-y-2",children:[x,N]}),e[27]=N,e[28]=x,e[29]=T):T=e[29];let j;e[30]!==s?(j=s("sandbox.postEditor.seoDescriptionLabel"),e[30]=s,e[31]=j):j=e[31];let R;e[32]!==j?(R=t.jsx(Q,{htmlFor:"post-seo-description",children:j}),e[32]=j,e[33]=R):R=e[33];let f;e[34]!==d.description?(f=$(d.description),e[34]=d.description,e[35]=f):f=e[35];let P;e[36]!==i?(P=I=>i("description",I.target.value),e[36]=i,e[37]=P):P=e[37];let k;e[38]!==f||e[39]!==P?(k=t.jsx(Ke,{id:"post-seo-description",value:f,onChange:P,rows:2}),e[38]=f,e[39]=P,e[40]=k):k=e[40];let C;e[41]!==R||e[42]!==k?(C=t.jsxs("div",{className:"space-y-2",children:[R,k]}),e[41]=R,e[42]=k,e[43]=C):C=e[43];let D;e[44]!==s?(D=s("sandbox.postEditor.seoImageLabel"),e[44]=s,e[45]=D):D=e[45];let S;e[46]!==D?(S={type:"string",format:"image-uri",title:D},e[46]=D,e[47]=S):S=e[47];const A=d.image;let w;e[48]!==i?(w=I=>i("image",I),e[48]=i,e[49]=w):w=e[49];let F;e[50]!==s?(F=s("sandbox.postEditor.seoImageLabel"),e[50]=s,e[51]=F):F=e[51];let O;e[52]!==d.image||e[53]!==S||e[54]!==w||e[55]!==F?(O=t.jsx($t,{schema:S,value:A,onChange:w,path:"post-seo-image",label:F}),e[52]=d.image,e[53]=S,e[54]=w,e[55]=F,e[56]=O):O=e[56];let z;e[57]!==s?(z=s("sandbox.postEditor.seoCanonicalLabel"),e[57]=s,e[58]=z):z=e[58];let q;e[59]!==z?(q=t.jsx(Q,{htmlFor:"post-seo-canonical",children:z}),e[59]=z,e[60]=q):q=e[60];let _;e[61]!==d.canonical?(_=$(d.canonical),e[61]=d.canonical,e[62]=_):_=e[62];let V;e[63]!==i?(V=I=>i("canonical",I.target.value),e[63]=i,e[64]=V):V=e[64];let H;e[65]!==s?(H=s("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=s,e[66]=H):H=e[66];let M;e[67]!==_||e[68]!==V||e[69]!==H?(M=t.jsx(we,{id:"post-seo-canonical",value:_,onChange:V,placeholder:H,className:"h-10"}),e[67]=_,e[68]=V,e[69]=H,e[70]=M):M=e[70];let L;e[71]!==q||e[72]!==M?(L=t.jsxs("div",{className:"space-y-2",children:[q,M]}),e[71]=q,e[72]=M,e[73]=L):L=e[73];let G;e[74]!==s?(G=s("sandbox.postEditor.seoNoIndexingLabel"),e[74]=s,e[75]=G):G=e[75];let U;e[76]!==G?(U=t.jsx(Q,{htmlFor:"post-seo-no-indexing",children:G}),e[76]=G,e[77]=U):U=e[77];const v=d.noIndexing===!0;let B;e[78]!==i?(B=I=>i("noIndexing",I),e[78]=i,e[79]=B):B=e[79];let W;e[80]!==v||e[81]!==B?(W=t.jsx(Bt,{id:"post-seo-no-indexing",checked:v,onCheckedChange:B}),e[80]=v,e[81]=B,e[82]=W):W=e[82];let Y;e[83]!==U||e[84]!==W?(Y=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[U,W]}),e[83]=U,e[84]=W,e[85]=Y):Y=e[85];let K;return e[86]!==T||e[87]!==C||e[88]!==O||e[89]!==L||e[90]!==Y||e[91]!==b?(K=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[b,T,C,O,L,Y]}),e[86]=T,e[87]=C,e[88]=O,e[89]=L,e[90]=Y,e[91]=b,e[92]=K):K=e[92],K}function Ls(n){const e=Be.c(24),{value:o,onChange:a}=n,s=Z();let c,d,r,i;if(e[0]!==a||e[1]!==s||e[2]!==o){c=Es(o);const b=(x,h)=>a(c.map((E,N)=>N===x?{...E,...h}:E));d="space-y-2";let m;e[7]!==s?(m=s("sandbox.postEditor.extraPropsLabel"),e[7]=s,e[8]=m):m=e[8],e[9]!==m?(r=t.jsx(Q,{children:m}),e[9]=m,e[10]=r):r=e[10],i=c.length>0&&t.jsx("ul",{className:"space-y-2",children:c.map((x,h)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(we,{value:x.key,onChange:E=>b(h,{key:E.target.value}),placeholder:s("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(we,{value:x.value,onChange:E=>b(h,{value:E.target.value}),placeholder:s("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(os,{label:s("sandbox.postEditor.removePropLabel"),onClick:()=>a(c.filter((E,N)=>N!==h))})]},h))}),e[0]=a,e[1]=s,e[2]=o,e[3]=c,e[4]=d,e[5]=r,e[6]=i}else c=e[3],d=e[4],r=e[5],i=e[6];let p;e[11]!==s?(p=s("sandbox.postEditor.addPropLabel"),e[11]=s,e[12]=p):p=e[12];let g;e[13]!==c||e[14]!==a?(g=()=>a([...c,{key:"",value:""}]),e[13]=c,e[14]=a,e[15]=g):g=e[15];let u;e[16]!==p||e[17]!==g?(u=t.jsx(ns,{label:p,onClick:g}),e[16]=p,e[17]=g,e[18]=u):u=e[18];let l;return e[19]!==d||e[20]!==r||e[21]!==i||e[22]!==u?(l=t.jsxs("div",{className:d,children:[r,i,u]}),e[19]=d,e[20]=r,e[21]=i,e[22]=u,e[23]=l):l=e[23],l}function Ye(n){const e=Be.c(24),{label:o,decofile:a,kind:s,valueField:c,toRef:d,selected:r,onChange:i}=n,p=Z();let g;e[0]!==a||e[1]!==s||e[2]!==r||e[3]!==d||e[4]!==c?(g=ss({records:Qe(a,s),selected:r,valueField:c,toRef:d}),e[0]=a,e[1]=s,e[2]=r,e[3]=d,e[4]=c,e[5]=g):g=e[5];const{options:u,selectedValues:l,refsForValues:b}=g;let m;e[6]!==s||e[7]!==p?(m=p(s==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=s,e[7]=p,e[8]=m):m=e[8];const x=m;let h;e[9]!==s||e[10]!==p?(h=p(s==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=s,e[10]=p,e[11]=h):h=e[11];const E=h;let N;e[12]!==o?(N=t.jsx(Q,{children:o}),e[12]=o,e[13]=N):N=e[13];let T;e[14]!==x||e[15]!==i||e[16]!==u||e[17]!==b||e[18]!==E||e[19]!==l?(T=u.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:x}):t.jsx(Dt,{options:u,defaultValue:l,onValueChange:R=>i(b(R)),placeholder:E,maxCount:4}),e[14]=x,e[15]=i,e[16]=u,e[17]=b,e[18]=E,e[19]=l,e[20]=T):T=e[20];let j;return e[21]!==N||e[22]!==T?(j=t.jsxs("div",{className:"space-y-2",children:[N,T]}),e[21]=N,e[22]=T,e[23]=j):j=e[23],j}export{Nl as PostEditor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as D,b as O,d as ne,f as re,ac as oe,j as t,B as Q,a5 as ce,n as de,v as W,l as X}from"./index-
|
|
1
|
+
import{c as D,b as O,d as ne,f as re,ac as oe,j as t,B as Q,a5 as ce,n as de,v as W,l as X}from"./index-DY9jv8u5.js";import{I as ae}from"./icon-button-DuuXKRCk.js";import{c as Y,T as Z,a as ee}from"./tooltip-CjIqGzku.js";import{n as fe}from"./ZoomOut-D-Ww048N.js";import{k as me,av as xe,aw as he}from"./agent-icon-CCDPFoN-.js";import{s as pe}from"./XClose-CxYwKo3k.js";import{F as te,t as V,H as ue}from"./file-share-button-B1svbxuR.js";import{f as be,F as je,a as ve}from"./file-preview-DYLPzEi6.js";import{F as se}from"./file-type-icon-Dh-YpP4t.js";import{u as ge,b as we,e as ye}from"./use-org-fs-CvYQh_B2.js";import{p as Pe,b as Ce}from"./location-V0VwTJTt.js";function Ne(b){const e=D.c(13),{previewPath:l}=b,m=O(),r=ne(),p=re({strict:!1}).org??"";let s;e[0]!==l?(s=l.split("/").slice(0,-1).join("/"),e[0]=l,e[1]=s):s=e[1];const o=s;let a;e[2]!==r||e[3]!==p||e[4]!==o||e[5]!==l?(a=()=>{r({to:oe.library,params:{org:p},search:{path:o||void 0,preview:l}})},e[2]=r,e[3]=p,e[4]=o,e[5]=l,e[6]=a):a=e[6];const c=a;let j;e[7]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(me,{size:14}),e[7]=j):j=e[7];let u;e[8]!==m?(u=m("library.seeInLibrary.label"),e[8]=m,e[9]=u):u=e[9];let x;return e[10]!==c||e[11]!==u?(x=t.jsxs(Q,{variant:"ghost",size:"sm",onClick:c,className:"shrink-0 gap-1.5 text-xs text-muted-foreground",children:[j,u]}),e[10]=c,e[11]=u,e[12]=x):x=e[12],x}const ke=b=>/\.html?$/i.test(b);function le(b){switch(b){case"dialog":return"h-11 py-1 pr-12 pl-2";case"panel":return"h-9 px-2";case"aside":return"h-12 gap-2 px-1.5";default:return b}}function Fe(b){const e=D.c(12),{expanded:l,onToggle:m,placement:r}=b,p=O();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];const o=l?"library.previewContent.collapse":"library.previewContent.expand";let a;e[2]!==p||e[3]!==o?(a=p(o),e[2]=p,e[3]=o,e[4]=a):a=e[4];let c;e[5]!==l?(c=l?t.jsx(xe,{size:14}):t.jsx(he,{size:14}),e[5]=l,e[6]=c):c=e[6];let j;return e[7]!==m||e[8]!==s||e[9]!==a||e[10]!==c?(j=t.jsx(ae,{...s,label:a,tooltipSide:"bottom",onClick:m,children:c}),e[7]=m,e[8]=s,e[9]=a,e[10]=c,e[11]=j):j=e[11],j}function ie(b){const e=D.c(9),{onClose:l,placement:m}=b,r=m===void 0?"bar":m,p=O();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];let o;e[2]!==p?(o=p("library.previewContent.close"),e[2]=p,e[3]=o):o=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(pe,{size:14}),e[4]=a):a=e[4];let c;return e[5]!==l||e[6]!==s||e[7]!==o?(c=t.jsx(ae,{...s,label:o,tooltipSide:"bottom",onClick:l,children:a}),e[5]=l,e[6]=s,e[7]=o,e[8]=c):c=e[8],c}function De(b){const e=D.c(92),{previewPath:l,onClose:m,expand:r,showSeeInLibrary:p,variant:s}=b,o=p===void 0?!1:p,a=O();let c;e[0]!==l?(c=Pe(l),e[0]=l,e[1]=c):c=e[1];const j=c,{volume:u,dirPath:x}=j,{data:f,isPending:A}=ge(u,x),H=we(u??"");let w,y,n,d,h,i,P,B;if(e[2]!==H||e[3]!==f||e[4]!==r||e[5]!==x||e[6]!==l||e[7]!==o||e[8]!==s){d=Ce(x),h=s==="dialog",i=r?.expanded?"topbar":s==="aside"?"aside":"bar";let v;e[17]!==i?(v=V(i),e[17]=i,e[18]=v):v=e[18],w=v;let T;e[19]!==r||e[20]!==i?(T=r?.onToggle&&t.jsx(Fe,{expanded:r.expanded,onToggle:r.onToggle,placement:i}),e[19]=r,e[20]=i,e[21]=T):T=e[21],y=T;let g;e[22]!==l||e[23]!==o?(g=o?t.jsx(Ne,{previewPath:l}):null,e[22]=l,e[23]=o,e[24]=g):g=e[24],P=g,n=f&&f.kind==="file"?{key:l,filename:d,size:f.size,downloadUrl:H(f.path)}:null,B=n&&f&&ke(d),e[2]=H,e[3]=f,e[4]=r,e[5]=x,e[6]=l,e[7]=o,e[8]=s,e[9]=w,e[10]=y,e[11]=n,e[12]=d,e[13]=h,e[14]=i,e[15]=P,e[16]=B}else w=e[9],y=e[10],n=e[11],d=e[12],h=e[13],i=e[14],P=e[15],B=e[16];if(B){let v;e[25]!==d||e[26]!==h?(v=h&&t.jsx(W,{className:"sr-only",children:d}),e[25]=d,e[26]=h,e[27]=v):v=e[27];const T=n.downloadUrl;let g;e[28]!==f?(g=ye(f),e[28]=f,e[29]=g):g=e[29];let z;e[30]!==s?(z=s==="aside"?le(s):void 0,e[30]=s,e[31]=z):z=e[31];const R=u==="home"?x:void 0,q=u??"",G=f.shareMode??"private",J=f.effectivePublic??!1,K=window.location.origin+n.downloadUrl;let S;e[32]!==x||e[33]!==i||e[34]!==G||e[35]!==J||e[36]!==K||e[37]!==q?(S=t.jsx(te,{volume:q,path:x,shareMode:G,effectivePublic:J,url:K,placement:i}),e[32]=x,e[33]=i,e[34]=G,e[35]=J,e[36]=K,e[37]=q,e[38]=S):S=e[38];let U;e[39]!==y||e[40]!==h||e[41]!==m||e[42]!==i?(U=h?t.jsx("div",{className:"w-8 shrink-0"}):t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[39]=y,e[40]=h,e[41]=m,e[42]=i,e[43]=U):U=e[43];let I;e[44]!==P||e[45]!==S||e[46]!==U?(I=t.jsxs(t.Fragment,{children:[S,P,U]}),e[44]=P,e[45]=S,e[46]=U,e[47]=I):I=e[47];let L;e[48]!==n.downloadUrl||e[49]!==d||e[50]!==i||e[51]!==l||e[52]!==I||e[53]!==g||e[54]!==z||e[55]!==R?(L=t.jsx(ue,{readUrl:T,marker:g,toolbarClassName:z,title:d,placement:i,savePath:R,trailing:I},l),e[48]=n.downloadUrl,e[49]=d,e[50]=i,e[51]=l,e[52]=I,e[53]=g,e[54]=z,e[55]=R,e[56]=L):L=e[56];let E;return e[57]!==L||e[58]!==v?(E=t.jsxs(t.Fragment,{children:[v,L]}),e[57]=L,e[58]=v,e[59]=E):E=e[59],E}let C;e[60]!==w||e[61]!==f?.effectivePublic||e[62]!==f?.shareMode||e[63]!==n||e[64]!==x||e[65]!==i||e[66]!==a||e[67]!==u?(C=n&&t.jsxs(t.Fragment,{children:[t.jsx(te,{volume:u??"",path:x,shareMode:f?.shareMode??"private",effectivePublic:f?.effectivePublic??!1,url:window.location.origin+n.downloadUrl,placement:i}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,asChild:!0,children:t.jsx("a",{href:n.downloadUrl,download:n.filename,children:t.jsx(fe,{size:14})})})}),t.jsx(ee,{side:"bottom",children:a("library.previewContent.download")})]}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,onClick:()=>window.open(n.downloadUrl,"_blank","noopener"),children:t.jsx(ce,{size:14})})}),t.jsx(ee,{side:"bottom",children:a("library.previewContent.openInNewTab")})]})]}),e[60]=w,e[61]=f?.effectivePublic,e[62]=f?.shareMode,e[63]=n,e[64]=x,e[65]=i,e[66]=a,e[67]=u,e[68]=C):C=e[68];let N;e[69]!==y||e[70]!==h||e[71]!==m||e[72]!==i?(N=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[69]=y,e[70]=h,e[71]=m,e[72]=i,e[73]=N):N=e[73];let $;e[74]!==C||e[75]!==N?($=t.jsxs(t.Fragment,{children:[C,N]}),e[74]=C,e[75]=N,e[76]=$):$=e[76];const M=$;let k;e[77]!==M||e[78]!==n||e[79]!==d||e[80]!==h||e[81]!==i||e[82]!==s?(k=i==="topbar"?t.jsx(de.Actions,{children:M}):t.jsxs("div",{className:X("flex shrink-0 items-center gap-1 border-b border-border/60",le(s)),children:[t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 px-2",children:[t.jsx(se,{filename:d,className:"h-4.5 w-3.5 shrink-0"}),h?t.jsx(W,{className:"truncate text-xs font-medium text-foreground",children:d}):t.jsx("span",{className:X("truncate font-medium text-foreground",i==="aside"?"text-sm":"text-xs"),children:d}),n&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:be(n.size)})]}),M]}),e[77]=M,e[78]=n,e[79]=d,e[80]=h,e[81]=i,e[82]=s,e[83]=k):k=e[83];let F;e[84]!==n||e[85]!==d||e[86]!==A||e[87]!==a?(F=t.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:n?t.jsx(je,{file:n}):A?t.jsx(ve,{}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[t.jsx(se,{filename:d,className:"h-7.5 w-6"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:a("library.previewContent.fileNotAvailable")})]})}),e[84]=n,e[85]=d,e[86]=A,e[87]=a,e[88]=F):F=e[88];let _;return e[89]!==k||e[90]!==F?(_=t.jsxs(t.Fragment,{children:[k,F]}),e[89]=k,e[90]=F,e[91]=_):_=e[91],_}export{De as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,j as n,q as m,D as p}from"./index-
|
|
1
|
+
import{c as f,j as n,q as m,D as p}from"./index-DY9jv8u5.js";import{L as w}from"./preview-content-ULOD_UZt.js";function d(x){const e=f.c(9),{previewPath:a,onClose:o,showSeeInLibrary:l}=x,t=l===void 0?!1:l;let i;e[0]!==o?(i=c=>{c||o()},e[0]=o,e[1]=i):i=e[1];let r;e[2]!==o||e[3]!==a||e[4]!==t?(r=n.jsx(m,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",children:n.jsx(w,{previewPath:a,onClose:o,showSeeInLibrary:t,variant:"dialog"})}),e[2]=o,e[3]=a,e[4]=t,e[5]=r):r=e[5];let s;return e[6]!==i||e[7]!==r?(s=n.jsx(p,{open:!0,onOpenChange:i,children:r}),e[6]=i,e[7]=r,e[8]=s):s=e[8],s}export{d as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,j as c}from"./index-
|
|
1
|
+
import{c as p,j as c}from"./index-DY9jv8u5.js";import{L as x}from"./preview-content-ULOD_UZt.js";function u(f){const e=p.c(6),{previewPath:i,onClose:o,showSeeInLibrary:n,expand:a,variant:l}=f,s=n===void 0?!1:n,t=l===void 0?"panel":l;let r;return e[0]!==a||e[1]!==o||e[2]!==i||e[3]!==s||e[4]!==t?(r=c.jsx("div",{className:"flex h-full w-full flex-col bg-background",children:c.jsx(x,{previewPath:i,onClose:o,showSeeInLibrary:s,expand:a,variant:t})}),e[0]=a,e[1]=o,e[2]=i,e[3]=s,e[4]=t,e[5]=r):r=e[5],r}export{u as L};
|