decocms 3.20.1 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BiKiI44L.js → AlertCircle-CBwqugJe.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-a9y7JExT.js → ArrowUpRight--24rRsQC.js} +1 -1
- package/dist/client/assets/{Check-BXjvCNRo.js → Check-BEDsGGM_.js} +1 -1
- package/dist/client/assets/{CheckCircle-79umy6UR.js → CheckCircle-CFdIOhwM.js} +1 -1
- package/dist/client/assets/{ChevronDown-DERZQdMP.js → ChevronDown-Y-7MoOW4.js} +1 -1
- package/dist/client/assets/{ChevronLeft-C6IDOOPU.js → ChevronLeft-BSf4mKrR.js} +1 -1
- package/dist/client/assets/{ChevronRight-CBmg3jrn.js → ChevronRight-B1SVpAS5.js} +1 -1
- package/dist/client/assets/{ChevronUp-28KZDFJ3.js → ChevronUp-DooNP946.js} +1 -1
- package/dist/client/assets/{Container-Bmp8f1Hw.js → Container-BcM96X15.js} +1 -1
- package/dist/client/assets/{DotsVertical-BfY2m12a.js → DotsVertical-kVh0UVRo.js} +1 -1
- package/dist/client/assets/{Eye-DNuwjCPP.js → Eye-Bowp4iez.js} +1 -1
- package/dist/client/assets/{FilterLines-0ZErBJ3i.js → FilterLines-DXSEbwW6.js} +1 -1
- package/dist/client/assets/{Globe01-DUsTmpYW.js → Globe01-CF7IqqKh.js} +1 -1
- package/dist/client/assets/{HardDrive-CTInlaSO.js → HardDrive-CPqmzwVB.js} +1 -1
- package/dist/client/assets/{Key01-DhkJOk-2.js → Key01-NY-IsQgy.js} +1 -1
- package/dist/client/assets/{LayoutLeft-C4WMufMy.js → LayoutLeft-BgC7aOjO.js} +1 -1
- package/dist/client/assets/{LinkExternal01-pT0NrKlt.js → LinkExternal01-Cgr3jZjD.js} +1 -1
- package/dist/client/assets/{Monitor01-BqHMMIjb.js → Monitor01-BLzNpHgz.js} +1 -1
- package/dist/client/assets/{Palette-B1alDozW.js → Palette-6N_c4T4_.js} +1 -1
- package/dist/client/assets/{Play--ZCMNFjg.js → Play-B9p1kZpZ.js} +1 -1
- package/dist/client/assets/{Plus-C1rAdUXl.js → Plus-Bymlyq77.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Bdic4y2D.js → RefreshCcw01-CR5XeXPv.js} +1 -1
- package/dist/client/assets/{SearchMd-BuArn0kO.js → SearchMd-7k7TbMsJ.js} +1 -1
- package/dist/client/assets/{Settings02-CMckE2RK.js → Settings02-DbR-330c.js} +1 -1
- package/dist/client/assets/{Shield01-XGinfl8i.js → Shield01-wwDAi_uJ.js} +1 -1
- package/dist/client/assets/{Star01-lcgisujL.js → Star01-DVebopnN.js} +1 -1
- package/dist/client/assets/{Stars01-CQ0RN6al.js → Stars01-CDcY9WwZ.js} +1 -1
- package/dist/client/assets/{Stars02-bUApAo8o.js → Stars02-YwHPi-7I.js} +1 -1
- package/dist/client/assets/{Sun-BhoXpP-F.js → Sun-DXdRtf6l.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D9V4WNpS.js → SwitchHorizontal01-Dha4DHjZ.js} +1 -1
- package/dist/client/assets/{Tool01-nw4j5J0X.js → Tool01-BTE6nmQ4.js} +1 -1
- package/dist/client/assets/{Trash01-BoFGJN1_.js → Trash01-B-X6RyaC.js} +1 -1
- package/dist/client/assets/{Upload01-Cmfv30sX.js → Upload01-DsBsPR-L.js} +1 -1
- package/dist/client/assets/{User01-of2DRTwj.js → User01-Y_Kyyfi4.js} +1 -1
- package/dist/client/assets/{Users01-DYI7DwUF.js → Users01-e0FZKqF3.js} +1 -1
- package/dist/client/assets/{Users03-DYjDLJbQ.js → Users03-BwOA6RiF.js} +1 -1
- package/dist/client/assets/{X-DWbNv8Bl.js → X-CeSkzEjM.js} +1 -1
- package/dist/client/assets/{XCircle-DDLSDNYP.js → XCircle-qkpSwHM6.js} +1 -1
- package/dist/client/assets/{XClose-B1Jrn5dt.js → XClose-CodFwf_E.js} +1 -1
- package/dist/client/assets/{Zap-BBs40ZSU.js → Zap-Gvzp-SH3.js} +1 -1
- package/dist/client/assets/{ZapSquare-DfDC54JS.js → ZapSquare-M-fH4MJf.js} +1 -1
- package/dist/client/assets/{ZoomOut-xmLm2dBO.js → ZoomOut-CgCAgEfn.js} +1 -1
- package/dist/client/assets/{access-gate-CZrbf5CL.js → access-gate-yH-Av9gZ.js} +1 -1
- package/dist/client/assets/{accordion-BSz8aiEx.js → accordion-Wptwv3ei.js} +1 -1
- package/dist/client/assets/add-section-modal-C596gc6u.js +1 -0
- package/dist/client/assets/{agent-capabilities-B27hg_M4.js → agent-capabilities-pAj3t6Aa.js} +1 -1
- package/dist/client/assets/{agent-icon-DfM7tMDC.js → agent-icon-BDCTH9NT.js} +1 -1
- package/dist/client/assets/{agent-icons-Bd8x3NUl.js → agent-icons-Jj9QCCT9.js} +1 -1
- package/dist/client/assets/{agents-list-jJ3SCTiq.js → agents-list-DvLskc8Q.js} +1 -1
- package/dist/client/assets/{ai-providers-CvW8VLxj.js → ai-providers-BBIu7ZXT.js} +1 -1
- package/dist/client/assets/{alert-pkP6Ribw.js → alert-C6yRIixe.js} +1 -1
- package/dist/client/assets/{alert-dialog-C4ynNGJF.js → alert-dialog-DPYmMCbT.js} +1 -1
- package/dist/client/assets/app-editor-X4geDaql.js +1 -0
- package/dist/client/assets/{auth-catchall-BORQNXyD.js → auth-catchall-MOPzdxWf.js} +1 -1
- package/dist/client/assets/{auth-split-layout-fc9XAQ3S.js → auth-split-layout-CelS9Z9I.js} +1 -1
- package/dist/client/assets/{automation-list-row-DTxZO-vH.js → automation-list-row-Cscfso-k.js} +1 -1
- package/dist/client/assets/{automation-runs-XPUSkViZ.js → automation-runs-B9tKW-5u.js} +1 -1
- package/dist/client/assets/{automations-BxQFQTdM.js → automations-BmKAo4DY.js} +1 -1
- package/dist/client/assets/{avatar-Cmykl5Hl.js → avatar-CB3_y_zI.js} +1 -1
- package/dist/client/assets/{badge-CYgKxTpF.js → badge-CQybGfxn.js} +1 -1
- package/dist/client/assets/{brand-context-Dg59Sj8x.js → brand-context-BmtDTKSi.js} +1 -1
- package/dist/client/assets/{buckets-Czvp0uyU.js → buckets-BdiAvpJ6.js} +1 -1
- package/dist/client/assets/{calendar-BbdXUff-.js → calendar-BZZJ1lU5.js} +1 -1
- package/dist/client/assets/{capability-load-error-ByfTnmda.js → capability-load-error-BgxjXvkK.js} +1 -1
- package/dist/client/assets/{card-CANcGy5k.js → card-D-5GEcNj.js} +1 -1
- package/dist/client/assets/{chat-context-xuPBtQVH.js → chat-context-CQ8Sv7Z0.js} +1 -1
- package/dist/client/assets/{checkbox-Djxv9Ar7.js → checkbox-B6S6Zp2z.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Cn-VYVl9.js → cli-auth-success-DqylkzZK.js} +1 -1
- package/dist/client/assets/{collection-detail-BDTL3JhR.js → collection-detail-2BYHOr3-.js} +1 -1
- package/dist/client/assets/{collection-display-button-BjlL9Woc.js → collection-display-button-D3QV52tk.js} +1 -1
- package/dist/client/assets/{collection-search-DSz3RDou.js → collection-search-CwRnoUd2.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CFky-DXb.js → collection-table-wrapper-DuBP5O7g.js} +1 -1
- package/dist/client/assets/{collection-tabs-BcYP8buy.js → collection-tabs-BaSPyUXn.js} +1 -1
- package/dist/client/assets/{collections-BVLezaR1.js → collections-CpOrr_Gv.js} +1 -1
- package/dist/client/assets/{command-CnCEvYjS.js → command-DprDJr8i.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-Lo4qdhfs.js → connect-desktop-dialog-Uaj5e58Y.js} +1 -1
- package/dist/client/assets/{connection-card-D82-toy5.js → connection-card-C5qc95C-.js} +1 -1
- package/dist/client/assets/{connection-detail-C_fITaGC.js → connection-detail-ClgTkTr2.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-UH9KShfg.js → connection-form-helpers-DWZPGoQ0.js} +1 -1
- package/dist/client/assets/{connections-sH97qYmC.js → connections-CNnVWMCc.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-C-7QzQnf.js → decopilot-sse-pool-oHmW4h5V.js} +1 -1
- package/dist/client/assets/{dialog-CRbRTRjQ.js → dialog-CxQuymkd.js} +1 -1
- package/dist/client/assets/{domain-settings-Cl33lrry.js → domain-settings-C-5nsb1F.js} +1 -1
- package/dist/client/assets/{drawer-BOb8J64a.js → drawer-Cpdg2y8l.js} +1 -1
- package/dist/client/assets/{dropdown-menu-o8504Ahe.js → dropdown-menu-Kn1KFf_7.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-yJWugNv9.js → dynamic-plugin-layout-m2PVEPiw.js} +1 -1
- package/dist/client/assets/{empty-state-BqjWWsLJ.js → empty-state-B1_qnFui.js} +1 -1
- package/dist/client/assets/{empty-state-iHDXNEBU.js → empty-state-CSC6EQIQ.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Dfy3Qlc3.js → extract-connection-data-DLKFWvUj.js} +1 -1
- package/dist/client/assets/{features-DKmzCIZF.js → features-OWKqeKPc.js} +1 -1
- package/dist/client/assets/{file-explorer-DyPSLDIH.js → file-explorer-cLwV2vYd.js} +1 -1
- package/dist/client/assets/{file-type-icon-C5unlJPE.js → file-type-icon-Bosly9dX.js} +1 -1
- package/dist/client/assets/{files-Dk33oDA1.js → files-DhKSL0bf.js} +1 -1
- package/dist/client/assets/{form-CmvFmoxJ.js → form-BEq77uTF.js} +1 -1
- package/dist/client/assets/{general-3ekLpUOj.js → general-BbVuoj3y.js} +1 -1
- package/dist/client/assets/{generate-id-yESv9K1i.js → generate-id-CpIkXSfl.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BNoPWqQE.js → github-repo-picker-DeZ7XjfM.js} +1 -1
- package/dist/client/assets/header-tab-button-B3Zn4qt-.js +5 -0
- package/dist/client/assets/{hover-card-Clt-L-5u.js → hover-card-CiGu2Rc9.js} +1 -1
- package/dist/client/assets/{image-field-fSOsfNOS.js → image-field-KXYbIIcm.js} +1 -1
- package/dist/client/assets/{index-qOg3Rq1i.js → index-0wo9R-KN.js} +1 -1
- package/dist/client/assets/{index-beoEt2Qf.js → index-1x-cRIHB.js} +1 -1
- package/dist/client/assets/{index-B5koQSO_.js → index-4wfPgw7r.js} +1 -1
- package/dist/client/assets/{index-v-4yPWk5.js → index-B7vG9XMB.js} +3 -3
- package/dist/client/assets/{index-CBptA12o.js → index-BxXPz7Bo.js} +1 -1
- package/dist/client/assets/index-C4D2JWLP.css +1 -0
- package/dist/client/assets/{index-Dcy4qvFS.js → index-CByCDOy2.js} +1 -1
- package/dist/client/assets/{index-oVaThiKb.js → index-CLB6WU0x.js} +1 -1
- package/dist/client/assets/{index-dQSPhEbP.js → index-CVKiAO9w.js} +1 -1
- package/dist/client/assets/{index-tnP0ll1b.js → index-CYhCrWAi.js} +28 -28
- package/dist/client/assets/{index-I3812Vft.js → index-CgnnAE8X.js} +1 -1
- package/dist/client/assets/{index-B-dwfQaO.js → index-CtCvHbuC.js} +1 -1
- package/dist/client/assets/{index-DL_YJ_kc.js → index-D54pKkTb.js} +1 -1
- package/dist/client/assets/{index-CgVH5Gsy.js → index-DLL1noOh.js} +1 -1
- package/dist/client/assets/{index-RZpEFxBX.js → index-DbKaISqA.js} +1 -1
- package/dist/client/assets/{index-redirect-BvT5beZX.js → index-redirect-SPQ5XDqE.js} +1 -1
- package/dist/client/assets/{index-C5VM3lmZ.js → index-z3J3f1Ar.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-C1PO3LYQ.js → infiniteQueryObserver-COC30QjI.js} +1 -1
- package/dist/client/assets/{input-DMJCExP6.js → input-BlbFVhmY.js} +1 -1
- package/dist/client/assets/{integration-icon-CCk0_Shy.js → integration-icon-DV694Bxd.js} +1 -1
- package/dist/client/assets/{label-Cydnpuha.js → label-DusmHQMe.js} +1 -1
- package/dist/client/assets/{layout-CYzkZYWN.js → layout-CSvam0IG.js} +1 -1
- package/dist/client/assets/{login-C8gbPZ_q.js → login-BDEm2zEc.js} +1 -1
- package/dist/client/assets/{members-eOFmKnk2.js → members-Bomx0Sn5.js} +1 -1
- package/dist/client/assets/{monaco-editor-B1jmgnr2.js → monaco-editor-DkKdkwZa.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Bhd7otxG.js → monitoring-stats-row-CX_8bt9_.js} +1 -1
- package/dist/client/assets/{oauth-callback-D_OMww7o.js → oauth-callback-CgtlvaLv.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BrH5KwkX.js → oauth-callback-ai-provider-BYMLI4dT.js} +1 -1
- package/dist/client/assets/{onboarding-x5rgQZTE.js → onboarding-BF9j6YV8.js} +1 -1
- package/dist/client/assets/{org-install-DztqscE_.js → org-install-DGQXekU8.js} +1 -1
- package/dist/client/assets/{org-layout-Djy749Lv.js → org-layout-bYdeQW0W.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-CL51Q8mZ.js → org-plugin-layout-CM3JP6B6.js} +1 -1
- package/dist/client/assets/page-seo-form-DFQzldH7.js +1 -0
- package/dist/client/assets/page-seo-sheet-CPW3cnfl.js +1 -0
- package/dist/client/assets/{pair-q0PU9j8x.js → pair-B6RPc276.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-KoGMJ4Fp.js → plugin-empty-state-C4jzTlPx.js} +1 -1
- package/dist/client/assets/{plugin-header-CDllrFVE.js → plugin-header-CVstxVuf.js} +1 -1
- package/dist/client/assets/{plugin-layout-D37luZoZ.js → plugin-layout-CNVxRIAq.js} +1 -1
- package/dist/client/assets/{popover-BGH6hpUr.js → popover-k1SAuM8F.js} +1 -1
- package/dist/client/assets/{post-editor-DqWr1-HF.js → post-editor-CBrNSYLu.js} +1 -1
- package/dist/client/assets/{primitives-ZaZwVc6Z.js → primitives-BSCmh5I1.js} +1 -1
- package/dist/client/assets/{profile-D9QM6SPx.js → profile-BQ5pYJ22.js} +1 -1
- package/dist/client/assets/{project-app-view-DFa2dXeb.js → project-app-view-v4OZRUM9.js} +1 -1
- package/dist/client/assets/record-editor-OCeUQc_J.js +1 -0
- package/dist/client/assets/registry-CnAAEzHT.js +2 -0
- package/dist/client/assets/{registry-layout-B5ue7X7K.js → registry-layout-DBMQThih.js} +1 -1
- package/dist/client/assets/{require-capability-B6a3uwXa.js → require-capability-DSMbLiZI.js} +1 -1
- package/dist/client/assets/{required-auth-layout-eILzytQh.js → required-auth-layout-D9SRhJSc.js} +1 -1
- package/dist/client/assets/{reset-password-CVi0Kz7H.js → reset-password-C9Ln3Zoi.js} +1 -1
- package/dist/client/assets/{resizable-CJjEyhK7.js → resizable-Ba9LvnO6.js} +1 -1
- package/dist/client/assets/{roles-kJnY_8Mm.js → roles-NETfFBX2.js} +1 -1
- package/dist/client/assets/save-referenced-block-gIsmpl0Z.js +1 -0
- package/dist/client/assets/{save-status-kbN5j4dY.js → save-status-DYfqaiw8.js} +1 -1
- package/dist/client/assets/schema-form-DrlyaJpj.js +1 -0
- package/dist/client/assets/{scroll-area-CIVwHWtS.js → scroll-area-DYol0Grn.js} +1 -1
- package/dist/client/assets/{search-input-BC9i8QlA.js → search-input-nVygL8OB.js} +1 -1
- package/dist/client/assets/{secrets-DtXQgObn.js → secrets-B4fzmsTc.js} +1 -1
- package/dist/client/assets/sections-editor-QyxhsS1_.js +2 -0
- package/dist/client/assets/{select-BjY8Jgav.js → select-B4unS8Yd.js} +1 -1
- package/dist/client/assets/{select-model-DOn11Z7b.js → select-model-CKy0zqKb.js} +1 -1
- package/dist/client/assets/{seo-editor-CaNd-azV.js → seo-editor-BdEjBqlb.js} +1 -1
- package/dist/client/assets/{settings-layout-DRTOSi2K.js → settings-layout-DuBEt8Gq.js} +1 -1
- package/dist/client/assets/{settings-section-DyB2NAPA.js → settings-section-B1XnnsKo.js} +1 -1
- package/dist/client/assets/{sheet-DruC4GtE.js → sheet-BBAkMmdU.js} +1 -1
- package/dist/client/assets/{shell-controls-BEBIH-Ax.js → shell-controls-CpJ33jvP.js} +1 -1
- package/dist/client/assets/{shell-layout-eEtSpk5j.js → shell-layout-ZMa83VsB.js} +1 -1
- package/dist/client/assets/{shell-route-loading-BcsrhQn7.js → shell-route-loading-DSUwFCkI.js} +1 -1
- package/dist/client/assets/{sidebar-CYu-6Gzi.js → sidebar-D5sx4cw7.js} +1 -1
- package/dist/client/assets/{skeleton-DK2Fokh_.js → skeleton-DSWxpPIh.js} +1 -1
- package/dist/client/assets/{sortable.esm-1IzLCE3w.js → sortable.esm-DuiWwZfa.js} +1 -1
- package/dist/client/assets/{spinner-BggGXeYI.js → spinner-DmCMgGSO.js} +1 -1
- package/dist/client/assets/{sso-ic1miYKl.js → sso-DUBJz_x2.js} +1 -1
- package/dist/client/assets/{store-C4tNTNi1.js → store-DYDE6pHq.js} +1 -1
- package/dist/client/assets/store-registry-D8gFa-sw.js +2 -0
- package/dist/client/assets/{switch-DRq3hJSo.js → switch-kJsDxWvb.js} +1 -1
- package/dist/client/assets/{tab-id-BJeBBzov.js → tab-id-Bmckb_ZN.js} +1 -1
- package/dist/client/assets/{table-D3XdCvZp.js → table-Cx2A_sz5.js} +1 -1
- package/dist/client/assets/{tabs-aQunvyGd.js → tabs-B-z6K-Df.js} +1 -1
- package/dist/client/assets/{task-status-CbuV-3eP.js → task-status-C-gQCQz-.js} +1 -1
- package/dist/client/assets/{textarea-CEsBzC6t.js → textarea-WpZ6d3aj.js} +1 -1
- package/dist/client/assets/{toggle-group-v0racvq3.js → toggle-group-CS6geM2v.js} +1 -1
- package/dist/client/assets/{toolbar-QrhbD1LQ.js → toolbar-B7mbC32u.js} +1 -1
- package/dist/client/assets/{tools-list-Dw6j-mti.js → tools-list-Cv15T5e5.js} +1 -1
- package/dist/client/assets/{tooltip-DvNlo5ri.js → tooltip-CwxdEfJN.js} +1 -1
- package/dist/client/assets/{types-COwjtZM8.js → types-akMlG6_N.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BKDhxtFe.js → use-ai-providers-DQ_Lg3nK.js} +1 -1
- package/dist/client/assets/{use-automations-DMOY10H-.js → use-automations-DycGy3r5.js} +1 -1
- package/dist/client/assets/{use-capability-DGmhThV5.js → use-capability-BhXqmGDG.js} +1 -1
- package/dist/client/assets/{use-collections-d0NY3CF9.js → use-collections-BsA9K23E.js} +1 -1
- package/dist/client/assets/{use-connection-Dz8syqkL.js → use-connection-CJ6MBogv.js} +1 -1
- package/dist/client/assets/{use-copy-Qm5PoymQ.js → use-copy-BcPxqPQz.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CakwJE5T.js → use-create-virtual-mcp-pvfszp3d.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C_jxuSEe.js → use-debounced-autosave-DhKjGFFk.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Bb_kkkS5.js → use-delete-connection-CtnxdJxw.js} +1 -1
- package/dist/client/assets/{use-file-configs-BVh0-t8s.js → use-file-configs-2gqpEUPc.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DbJV2aWp.js → use-infinite-scroll-Dq4LQvGA.js} +1 -1
- package/dist/client/assets/{use-list-state-BRMBUjOm.js → use-list-state-Jee6I2EQ.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DR6PB45n.js → use-mcp-client-G3uFjg07.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BKDHmEg_.js → use-mcp-prompts-oto_asve.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BrZjJ9zc.js → use-mcp-tools-CHLE0GCH.js} +1 -1
- package/dist/client/assets/{use-members-BQ26-EKO.js → use-members-DX3EwEQX.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-COvK7v8V.js → use-navigate-to-agent-CzNZ7f2D.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-6-YfaYzt.js → use-org-auth-client-HBznaAU-.js} +1 -1
- package/dist/client/assets/{use-org-sso-Bc6Fs-WH.js → use-org-sso-bBdDyUxO.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Kv2MIjXn.js → use-organization-roles-DfBql3U5.js} +1 -1
- package/dist/client/assets/{use-organization-settings-C_PFgE7g.js → use-organization-settings-nE3QaAmY.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Fz6Tqm1j.js → use-registry-connections-Bf4QfKOn.js} +1 -1
- package/dist/client/assets/{use-secrets-CmzHGX24.js → use-secrets-CMSnZcAo.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DadivPgy.js → use-status-sounds-DpH3cDkD.js} +1 -1
- package/dist/client/assets/{use-view-mode-BTRVa00m.js → use-view-mode-YX6kaXqJ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Cxb5tpje.js → use-virtual-mcp-DLclk59A.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BYCGnaMl.js +1 -0
- package/dist/client/assets/{useRouterState-BMTgOPTS.js → useRouterState-VGJ_ztuJ.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CttlyQrq.js +1 -0
- package/dist/client/assets/{user-DxLdHnQg.js → user-CvuJ8gsu.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-D7zEkHxC.js → view-mode-toggle-Bd-KjzIY.js} +1 -1
- package/dist/client/assets/{workflow-CqwIhtK4.js → workflow-BiwkeemM.js} +1 -1
- package/dist/client/assets/workflow-detail-BES81Spk.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/add-section-modal-VNTyTVJJ.js +0 -1
- package/dist/client/assets/app-editor-tM5L8LeY.js +0 -1
- package/dist/client/assets/header-tab-button-Dcs0BcqM.js +0 -5
- package/dist/client/assets/index-BgFgIfs8.css +0 -1
- package/dist/client/assets/page-seo-form-CbAafkHJ.js +0 -1
- package/dist/client/assets/page-seo-sheet-pHFDJAAc.js +0 -1
- package/dist/client/assets/record-editor-B-SAraV7.js +0 -1
- package/dist/client/assets/registry-C5dC17io.js +0 -2
- package/dist/client/assets/schema-form-DSVAzke8.js +0 -1
- package/dist/client/assets/sections-editor-B053UCeS.js +0 -2
- package/dist/client/assets/store-registry-B_3NSYXE.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Bj28n6ln.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DT54Ek4w.js +0 -1
- package/dist/client/assets/workflow-detail-ktTAfCXV.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as L,G as te,K as U,j as a,r as G,c as ne}from"./index-v-4yPWk5.js";import{i as oe,j as M,X as se,Y as re,Z as ie,d as le}from"./index-tnP0ll1b.js";import{L as Y}from"./label-Cydnpuha.js";import{S as $}from"./switch-DRq3hJSo.js";import{a as ce,S as ae}from"./schema-form-DSVAzke8.js";import{c as ue,S as fe,a as pe,b as de,d as ye}from"./select-BjY8Jgav.js";const he="website/sections/Rendering/Lazy.tsx";function K(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function N(t){if(!K(t))return!1;const e=t.__resolveType;return typeof e=="string"&&oe(e)}function k(t){return t!=null}function w(t){if(t==null)return t;if(N(t)){const e=t.section;return e==null?null:K(e)?e:{}}return K(t)?t:void 0}function z(t,e){return t===null?null:N(e)?{...e,section:t}:t}function me(t){return{__resolveType:t}}function Se(t,e){if(!k(e))return null;if(t){const n=w(e)??{};return{__resolveType:he,section:n}}return N(e)?w(e)??null:K(e)?e:null}const ge="General";function O(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function Q(t,e){return t===C?ge:e}function Z(t){const e=re(t),n=new Set,o=[];for(const s of e)O(s.resolveType)&&(ie(s.resolveType)||n.has(s.resolveType)||(n.add(s.resolveType),o.push({resolveType:s.resolveType,title:Q(s.resolveType,s.title),description:s.description})));return o}function V(t){const e=se(t),n=M(e,t),o=Z(n?.properties?.seo);return o.length>0?o:ve(t)}function ve(t){const e=t.manifest?.blocks??{},n=[];for(const[o,s]of Object.entries(e))if(o.includes("sections"))for(const r of Object.keys(s)){if(!O(r))continue;const i=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;n.push({resolveType:r,title:Q(r,i)})}return n}function W(t){const e=V(t),n=e.find(o=>o.resolveType===C);return n?n.resolveType:e[0]?.resolveType??C}function q(t,e){const n=e.__resolveType;if(typeof n=="string"){const o=M(n,t),s=Z(o?.properties?.seo);if(s.length>0)return s}return V(t)}function be(t,e){const n=q(t,e),o=n.find(s=>s.resolveType===C);return o?o.resolveType:n[0]?.resolveType??W(t)}function Te(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:W(t)}function xe(t,e,n){const o=n.__resolveType;return typeof o=="string"&&O(o)?o:be(t,e)}const _e=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),C="website/sections/Seo/SeoV2.tsx",Re=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function F(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function je(t){return typeof t.__resolveType=="string"&&O(t.__resolveType)?!0:Re.some(e=>e in t)}function Ee(t,e){for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o,r=s.__resolveType;if(typeof r=="string"&&_e.has(r))continue;const i=s.seo;if(F(i)){const c=i;if(je(c))return{blockKey:n,kind:"nested",seoData:c,blockData:s,seoResolveType:e?xe(e,s,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:C}}}for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o;if(typeof s.__resolveType=="string"&&O(s.__resolveType))return{blockKey:n,kind:"block",seoData:s,blockData:s,seoResolveType:s.__resolveType}}return null}function De(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function qe(t,e,n){if(e.kind==="site"){const l=Ee(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?q(n,l.blockData):void 0,build:d=>De(l,d)}:null}const o=t[e.pageKey];if(!F(o))return null;const s=o,r=s.seo,i=w(r),c=i&&F(i)?i:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:n?Te(n,c):typeof c?.__resolveType=="string"?c.__resolveType:C,seoTypeOptions:n?V(n):void 0,build:l=>({...s,seo:l===null?null:z(l,r)})}}function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ce(t,e,n,o){if(t.kind==="page"){if(!I(n))return null;const s=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:o===null?null:z(o,s)}}return I(n)?e.siteKind==="block"?o:{...n,seo:o}:null}function He(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function Je(t){const e=L.c(23),{orgSlug:n,virtualMcpId:o,branch:s,target:r,resolved:i,onSaved:c}=t,l=te(),d=`${n}/${o}/${s}`;let y;e[0]!==s||e[1]!==n||e[2]!==o?(y={orgSlug:n,virtualMcpId:o,branch:s},e[0]=s,e[1]=n,e[2]=o,e[3]=y):y=e[3];let p;e[4]!==c?(p={onSaved:c},e[4]=c,e[5]=p):p=e[5];const{save:f,flush:S,isPending:h}=le(y,p);let m;e[6]!==d||e[7]!==l||e[8]!==i||e[9]!==f||e[10]!==r?(m=j=>{i&&f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return Ce(r,i,b,j)})},e[6]=d,e[7]=l,e[8]=i,e[9]=f,e[10]=r,e[11]=m):m=e[11];const g=m;let v;e[12]!==d||e[13]!==l||e[14]!==i||e[15]!==f||e[16]!==r?(v=j=>{!i||r.kind!=="page"||f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return I(b)?{...b,seo:j}:null})},e[12]=d,e[13]=l,e[14]=i,e[15]=f,e[16]=r,e[17]=v):v=e[17];const R=v;let x;return e[18]!==S||e[19]!==h||e[20]!==R||e[21]!==g?(x={persistSeo:g,persistRawSeo:R,flush:S,isPending:h},e[18]=S,e[19]=h,e[20]=R,e[21]=g,e[22]=x):x=e[22],x}const Pe="https://deco.cx/docs/en/performance/edge-async-render";function Oe(t){const e=L.c(16),{rawSeo:n,onEnableChange:o,onAsyncRenderChange:s,children:r}=t;let i;e[0]!==n?(i=k(n),e[0]=n,e[1]=i):i=e[1];const c=i;let l;e[2]!==n?(l=N(n),e[2]=n,e[3]=l):l=e[3];const d=l;let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Y,{htmlFor:"seo-enable",className:"text-sm font-medium",children:"Enable SEO"}),e[4]=y):y=e[4];let p;e[5]!==c||e[6]!==o?(p=a.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,a.jsx($,{id:"seo-enable",checked:c,onCheckedChange:o})]}),e[5]=c,e[6]=o,e[7]=p):p=e[7];let f;e[8]!==d||e[9]!==r||e[10]!==c||e[11]!==s?(f=c&&a.jsxs(a.Fragment,{children:[r,a.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[a.jsxs("div",{className:"min-w-0 space-y-1",children:[a.jsx("p",{className:"text-sm font-medium",children:"Async render"}),a.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",a.jsx("a",{href:Pe,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:"documentation"}),"."]})]}),a.jsx($,{id:"seo-async-render",checked:d,onCheckedChange:s,className:"shrink-0"})]})]}),e[8]=d,e[9]=r,e[10]=c,e[11]=s,e[12]=f):f=e[12];let S;return e[13]!==p||e[14]!==f?(S=a.jsxs("div",{className:"space-y-4",children:[p,f]}),e[13]=p,e[14]=f,e[15]=S):S=e[15],S}const B=["type","title","description","canonical","favicon","image","themeColor"],Le=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],Fe=["jsonLD","title","description","noIndexing","configJsonLD"];function H(t){return t===C||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":"full"}function Ke(t){switch(t){case"general":return B;case"pdp":return Le;case"plp":return Fe;default:return null}}function J(t,e){const n=Ke(H(e));if(!n||!t.properties)return t;const o={};for(const s of n){const r=t.properties[s];r&&(o[s]=r)}return{...t,properties:o}}function ke(){return B.filter(t=>t!=="type")}function Ne(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Ae(t,e){return t[e]===void 0}function $e(t){const e=L.c(13),{schema:n,value:o,onChange:s,siteDefaultSeo:r,formResetKey:i}=t,l=J(n,C).properties??{},d=ke();let y;e[0]!==r?(y=!!r&&Object.keys(r).length>0,e[0]=r,e[1]=y):y=e[1];const p=y,[f,S]=G.useState(i);let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={},e[2]=h):h=e[2];const[m,g]=G.useState(h);f!==i&&(S(i),g({}));let v;e[3]!==m||e[4]!==o?(v=u=>m[u]!==void 0?m[u]:Ae(o,u),e[3]=m,e[4]=o,e[5]=v):v=e[5];const R=v;let x;e[6]!==s||e[7]!==r||e[8]!==o?(x=(u,T)=>{g(D=>({...D,[u]:T}));const E={...o};if(T)delete E[u];else{const D=r?.[u];E[u]=D??(u==="type"?"website":"")}s(E)},e[6]=s,e[7]=r,e[8]=o,e[9]=x):x=e[9];const j=x,P="min-w-0 space-y-6",b=B.map(u=>{const T=l[u];if(!T)return null;const E=p&&d.includes(u),D=E&&R(u),X=D?r?.[u]??o[u]:o[u],ee=T.title??Ne(u);return a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:ne(D&&"pointer-events-none opacity-60"),children:ce({schema:T,value:X,onChange:A=>{D||s({...o,[u]:A})},path:u,label:ee,breadcrumbPath:[],onBreadcrumbChange:we})}),E&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx($,{id:`seo-use-default-${u}`,checked:D,onCheckedChange:A=>j(u,A)}),a.jsx(Y,{htmlFor:`seo-use-default-${u}`,className:"text-xs font-normal text-muted-foreground",children:"Use default"})]})]},u)});let _;return e[10]!==i||e[11]!==b?(_=a.jsx("div",{className:P,children:b},i),e[10]=i,e[11]=b,e[12]=_):_=e[12],_}function we(){}function Ie(t){const e=L.c(18),{schema:n,resolveType:o,value:s,formResetKey:r,onChange:i,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(H(o)==="general"){let m;e[0]!==i?(m=v=>i(v),e[0]=i,e[1]=m):m=e[1];let g;return e[2]!==r||e[3]!==n||e[4]!==l||e[5]!==m||e[6]!==s?(g=a.jsx($e,{schema:n,value:s,onChange:m,siteDefaultSeo:l,formResetKey:r}),e[2]=r,e[3]=n,e[4]=l,e[5]=m,e[6]=s,e[7]=g):g=e[7],g}let y;e[8]!==o||e[9]!==n?(y=J(n,o),e[8]=o,e[9]=n,e[10]=y):y=e[10];const p=y;let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[11]=f):f=e[11];const S=c??Ye;let h;return e[12]!==p||e[13]!==r||e[14]!==i||e[15]!==S||e[16]!==s?(h=a.jsx(ae,{schema:p,value:s,onChange:i,basePath:"",breadcrumbPath:f,onBreadcrumbChange:S},r),e[12]=p,e[13]=r,e[14]=i,e[15]=S,e[16]=s,e[17]=h):h=e[17],h}function Ye(){}function Ve(t){const e=L.c(10),{options:n,value:o,onChange:s}=t;if(n.length<=1)return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Y,{className:"text-xs text-muted-foreground",children:"SEO type"}),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(fe,{className:"w-full",children:a.jsx(pe,{placeholder:"Select SEO type"})}),e[1]=i):i=e[1];let c;e[2]!==n?(c=n.filter(Ue).map(Be),e[2]=n,e[3]=c):c=e[3];let l;e[4]!==c?(l=a.jsx(de,{children:c}),e[4]=c,e[5]=l):l=e[5];let d;return e[6]!==s||e[7]!==l||e[8]!==o?(d=a.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[r,a.jsxs(ye,{value:o,onValueChange:s,children:[i,l]})]}),e[6]=s,e[7]=l,e[8]=o,e[9]=d):d=e[9],d}function Be(t){return a.jsx(ue,{value:t.resolveType,children:t.title},t.resolveType)}function Ue(t){return t.resolveType.length>0}function Xe(t){const e=L.c(33),{rawSeo:n,innerSeo:o,defaultResolveType:s,seoSchema:r,activeResolveType:i,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:d,onBreadcrumbChange:y,onPersistRaw:p,onInnerChange:f,onClearForm:S,onBumpFormKey:h,beforeFields:m}=t;let g;e[0]!==s||e[1]!==h||e[2]!==S||e[3]!==p?(g=T=>{if(T){const E=me(s);p(E),S(),h();return}p(null),S(),h()},e[0]=s,e[1]=h,e[2]=S,e[3]=p,e[4]=g):g=e[4];const v=g;let R;e[5]!==p||e[6]!==n?(R=T=>{const E=Se(T,n);p(E)},e[5]=p,e[6]=n,e[7]=R):R=e[7];const x=R;let j;e[8]!==h||e[9]!==f?(j=T=>{f({__resolveType:T}),h()},e[8]=h,e[9]=f,e[10]=j):j=e[10];const P=j;let b;e[11]!==i||e[12]!==P||e[13]!==n||e[14]!==r||e[15]!==c?(b=k(n)&&r&&i&&c&&c.length>0&&a.jsx(Ve,{options:c,value:i,onChange:P}),e[11]=i,e[12]=P,e[13]=n,e[14]=r,e[15]=c,e[16]=b):b=e[16];let _;e[17]!==i||e[18]!==l||e[19]!==o||e[20]!==y||e[21]!==f||e[22]!==n||e[23]!==r||e[24]!==d?(_=k(n)&&r&&i&&a.jsx(Ie,{schema:r,resolveType:i,value:o,formResetKey:l,onChange:T=>f(T),onBreadcrumbChange:y,siteDefaultSeo:d}),e[17]=i,e[18]=l,e[19]=o,e[20]=y,e[21]=f,e[22]=n,e[23]=r,e[24]=d,e[25]=_):_=e[25];let u;return e[26]!==m||e[27]!==x||e[28]!==v||e[29]!==n||e[30]!==b||e[31]!==_?(u=a.jsxs(Oe,{rawSeo:n,onEnableChange:v,onAsyncRenderChange:x,children:[m,b,_]}),e[26]=m,e[27]=x,e[28]=v,e[29]=n,e[30]=b,e[31]=_,e[32]=u):u=e[32],u}export{Xe as P,Ie as S,He as a,Ce as b,Je as c,W as d,Ee as f,k as i,qe as r,w as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as it,r as E,j as e,l as rt}from"./index-v-4yPWk5.js";import{S as mt,d as pt,a as st,b as at}from"./sheet-DruC4GtE.js";import{S as nt}from"./scroll-area-CIVwHWtS.js";import{r as lt,c as ct,u as dt,a as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-CbAafkHJ.js";import{j as xt}from"./index-tnP0ll1b.js";import"./X-DWbNv8Bl.js";import"./select-BjY8Jgav.js";import"./tooltip-DvNlo5ri.js";import"./Check-BXjvCNRo.js";import"./ChevronDown-DERZQdMP.js";import"./ChevronUp-28KZDFJ3.js";import"./label-Cydnpuha.js";import"./switch-DRq3hJSo.js";import"./schema-form-DSVAzke8.js";import"./agent-icon-DfM7tMDC.js";import"./AlertCircle-BiKiI44L.js";import"./Tool01-nw4j5J0X.js";import"./SwitchHorizontal01-D9V4WNpS.js";import"./RefreshCcw01-Bdic4y2D.js";import"./XCircle-DDLSDNYP.js";import"./ArrowUpRight-a9y7JExT.js";import"./ZapSquare-DfDC54JS.js";import"./Users03-DYjDLJbQ.js";import"./CheckCircle-79umy6UR.js";import"./ChevronLeft-C6IDOOPU.js";import"./ChevronRight-CBmg3jrn.js";import"./DotsVertical-BfY2m12a.js";import"./Container-Bmp8f1Hw.js";import"./Eye-DNuwjCPP.js";import"./ZoomOut-xmLm2dBO.js";import"./Globe01-DUsTmpYW.js";import"./FilterLines-0ZErBJ3i.js";import"./Star01-lcgisujL.js";import"./Palette-B1alDozW.js";import"./HardDrive-CTInlaSO.js";import"./Stars02-bUApAo8o.js";import"./Key01-DhkJOk-2.js";import"./LayoutLeft-C4WMufMy.js";import"./LinkExternal01-pT0NrKlt.js";import"./Monitor01-BqHMMIjb.js";import"./Sun-BhoXpP-F.js";import"./Play--ZCMNFjg.js";import"./Plus-C1rAdUXl.js";import"./SearchMd-BuArn0kO.js";import"./Settings02-CMckE2RK.js";import"./Shield01-XGinfl8i.js";import"./Stars01-CQ0RN6al.js";import"./Trash01-BoFGJN1_.js";import"./Upload01-Cmfv30sX.js";import"./User01-of2DRTwj.js";import"./Users01-DYI7DwUF.js";import"./XClose-B1Jrn5dt.js";import"./Zap-BBs40ZSU.js";import"./calendar-BbdXUff-.js";import"./input-DMJCExP6.js";import"./popover-BGH6hpUr.js";import"./textarea-CEsBzC6t.js";import"./dropdown-menu-o8504Ahe.js";import"./image-field-fSOsfNOS.js";import"./dialog-CRbRTRjQ.js";import"./skeleton-DK2Fokh_.js";import"./tabs-aQunvyGd.js";import"./use-file-configs-BVh0-t8s.js";import"./use-mcp-client-DR6PB45n.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./useInfiniteQuery-Bj28n6ln.js";import"./infiniteQueryObserver-C1PO3LYQ.js";import"./agent-capabilities-B27hg_M4.js";import"./chat-context-xuPBtQVH.js";import"./tab-id-BJeBBzov.js";import"./decopilot-sse-pool-C-7QzQnf.js";import"./create-sse-subscription-BS5983N4.js";import"./use-virtual-mcp-Cxb5tpje.js";import"./use-collections-d0NY3CF9.js";import"./use-ai-providers-BKDhxtFe.js";import"./use-organization-settings-C_PFgE7g.js";import"./pair-q0PU9j8x.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Qm5PoymQ.js";import"./file-type-icon-C5unlJPE.js";import"./content-blocks-o63cs2vh.js";import"./types-COwjtZM8.js";import"./shell-layout-eEtSpk5j.js";import"./avatar-Cmykl5Hl.js";import"./required-auth-layout-eILzytQh.js";import"./useRouterState-BMTgOPTS.js";import"./use-org-sso-Bc6Fs-WH.js";import"./integration-icon-CCk0_Shy.js";import"./use-navigate-to-agent-COvK7v8V.js";import"./use-connection-Dz8syqkL.js";import"./use-mcp-prompts-BKDHmEg_.js";import"./form-CmvFmoxJ.js";import"./spinner-BggGXeYI.js";import"./drawer-BOb8J64a.js";import"./collection-search-DSz3RDou.js";import"./toggle-group-v0racvq3.js";import"./connect-desktop-dialog-Lo4qdhfs.js";import"./agent-icons-Bd8x3NUl.js";import"./checkbox-Djxv9Ar7.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DyB2NAPA.js";import"./card-CANcGy5k.js";import"./command-CnCEvYjS.js";import"./index-C5VM3lmZ.js";import"./sortable.esm-1IzLCE3w.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-D82-toy5.js";import"./use-registry-connections-Fz6Tqm1j.js";import"./extract-connection-data-Dfy3Qlc3.js";import"./generate-id-yESv9K1i.js";import"./collections-BVLezaR1.js";import"./collection-tabs-BcYP8buy.js";import"./badge-CYgKxTpF.js";import"./connection-form-helpers-UH9KShfg.js";import"./use-infinite-scroll-DbJV2aWp.js";import"./useSuspenseInfiniteQuery-DT54Ek4w.js";import"./index-DL_YJ_kc.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-BcsrhQn7.js";import"./sidebar-CYu-6Gzi.js";import"./toolbar-QrhbD1LQ.js";import"./use-create-virtual-mcp-CakwJE5T.js";import"./github-repo-picker-BNoPWqQE.js";import"./use-mcp-tools-BrZjJ9zc.js";import"./alert-dialog-C4ynNGJF.js";import"./index-dQSPhEbP.js";import"./use-org-auth-client-6-YfaYzt.js";import"./hover-card-Clt-L-5u.js";import"./task-status-CbuV-3eP.js";import"./use-status-sounds-DadivPgy.js";import"./empty-state-iHDXNEBU.js";import"./resizable-CJjEyhK7.js";import"./use-capability-DGmhThV5.js";import"./header-tab-button-Dcs0BcqM.js";import"./index-CgVH5Gsy.js";import"./user-DxLdHnQg.js";import"./tools-list-Dw6j-mti.js";import"./use-debounced-autosave-C_jxuSEe.js";import"./index-B5koQSO_.js";import"./search-input-BC9i8QlA.js";import"./use-secrets-CmzHGX24.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./accordion-BSz8aiEx.js";import"./view-mode-toggle-D7zEkHxC.js";import"./select-model-DOn11Z7b.js";import"./use-automations-DMOY10H-.js";import"./monaco-editor-B1jmgnr2.js";import"./automation-runs-XPUSkViZ.js";import"./table-D3XdCvZp.js";import"./use-members-BQ26-EKO.js";import"./automation-list-row-DTxZO-vH.js";function Si(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(jt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),j=m.kind==="page",ot=j?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=j?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!j||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let w;t[0]!==s?(w=vt(s),t[0]=s,t[1]=w):w=t[1];const M=w;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const V=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const z=F,A=m.kind==="site"?"Site SEO":"Page SEO",T=j&&o,B=m.kind==="site"&&o&&n,H=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const $=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const q=O;let l;t[13]!==A?(l=e.jsx(mt,{className:"text-sm font-semibold",children:A}),t[13]=A,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==q||t[22]!==$||t[23]!==M||t[24]!==v||t[25]!==h||t[26]!==H||t[27]!==x||t[28]!==V||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==B||t[37]!==_?(S=!o||!T&&!B?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:H}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:M,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:$,onBumpFormKey:q}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:V})})})}),t[20]=p,t[21]=q,t[22]=$,t[23]=M,t[24]=v,t[25]=h,t[26]=H,t[27]=x,t[28]=V,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=B,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==z||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:z,children:f}),t[42]=z,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function jt(u){return u+1}export{Si as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as C,j as r}from"./index-v-4yPWk5.js";import{I as F}from"./input-DMJCExP6.js";import{L as T}from"./label-Cydnpuha.js";import{T as L}from"./textarea-CEsBzC6t.js";import{I as A}from"./image-field-fSOsfNOS.js";import{a7 as R,a8 as D,aa as J}from"./index-tnP0ll1b.js";import{u as K,s as S}from"./primitives-ZaZwVc6Z.js";import{S as M}from"./save-status-kbN5j4dY.js";import"./Tool01-nw4j5J0X.js";import"./Trash01-BoFGJN1_.js";import"./Upload01-Cmfv30sX.js";import"./AlertCircle-BiKiI44L.js";import"./Check-BXjvCNRo.js";import"./Eye-DNuwjCPP.js";import"./DotsVertical-BfY2m12a.js";import"./agent-icon-DfM7tMDC.js";import"./SwitchHorizontal01-D9V4WNpS.js";import"./RefreshCcw01-Bdic4y2D.js";import"./XCircle-DDLSDNYP.js";import"./ArrowUpRight-a9y7JExT.js";import"./ZapSquare-DfDC54JS.js";import"./Users03-DYjDLJbQ.js";import"./CheckCircle-79umy6UR.js";import"./ChevronDown-DERZQdMP.js";import"./ChevronLeft-C6IDOOPU.js";import"./ChevronRight-CBmg3jrn.js";import"./ChevronUp-28KZDFJ3.js";import"./Container-Bmp8f1Hw.js";import"./ZoomOut-xmLm2dBO.js";import"./Globe01-DUsTmpYW.js";import"./FilterLines-0ZErBJ3i.js";import"./Star01-lcgisujL.js";import"./Palette-B1alDozW.js";import"./HardDrive-CTInlaSO.js";import"./Stars02-bUApAo8o.js";import"./Key01-DhkJOk-2.js";import"./LayoutLeft-C4WMufMy.js";import"./LinkExternal01-pT0NrKlt.js";import"./Monitor01-BqHMMIjb.js";import"./Sun-BhoXpP-F.js";import"./Play--ZCMNFjg.js";import"./Plus-C1rAdUXl.js";import"./SearchMd-BuArn0kO.js";import"./Settings02-CMckE2RK.js";import"./Shield01-XGinfl8i.js";import"./Stars01-CQ0RN6al.js";import"./User01-of2DRTwj.js";import"./Users01-DYI7DwUF.js";import"./XClose-B1Jrn5dt.js";import"./X-DWbNv8Bl.js";import"./Zap-BBs40ZSU.js";import"./dialog-CRbRTRjQ.js";import"./dropdown-menu-o8504Ahe.js";import"./skeleton-DK2Fokh_.js";import"./tabs-aQunvyGd.js";import"./use-file-configs-BVh0-t8s.js";import"./use-mcp-client-DR6PB45n.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./useInfiniteQuery-Bj28n6ln.js";import"./infiniteQueryObserver-C1PO3LYQ.js";import"./agent-capabilities-B27hg_M4.js";import"./chat-context-xuPBtQVH.js";import"./tab-id-BJeBBzov.js";import"./decopilot-sse-pool-C-7QzQnf.js";import"./create-sse-subscription-BS5983N4.js";import"./use-virtual-mcp-Cxb5tpje.js";import"./use-collections-d0NY3CF9.js";import"./use-ai-providers-BKDhxtFe.js";import"./use-organization-settings-C_PFgE7g.js";import"./pair-q0PU9j8x.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./scroll-area-CIVwHWtS.js";import"./select-BjY8Jgav.js";import"./tooltip-DvNlo5ri.js";import"./use-copy-Qm5PoymQ.js";import"./file-type-icon-C5unlJPE.js";import"./content-blocks-o63cs2vh.js";import"./types-COwjtZM8.js";import"./shell-layout-eEtSpk5j.js";import"./avatar-Cmykl5Hl.js";import"./required-auth-layout-eILzytQh.js";import"./useRouterState-BMTgOPTS.js";import"./use-org-sso-Bc6Fs-WH.js";import"./integration-icon-CCk0_Shy.js";import"./use-navigate-to-agent-COvK7v8V.js";import"./use-connection-Dz8syqkL.js";import"./use-mcp-prompts-BKDHmEg_.js";import"./form-CmvFmoxJ.js";import"./spinner-BggGXeYI.js";import"./drawer-BOb8J64a.js";import"./collection-search-DSz3RDou.js";import"./toggle-group-v0racvq3.js";import"./connect-desktop-dialog-Lo4qdhfs.js";import"./agent-icons-Bd8x3NUl.js";import"./checkbox-Djxv9Ar7.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DyB2NAPA.js";import"./card-CANcGy5k.js";import"./popover-BGH6hpUr.js";import"./command-CnCEvYjS.js";import"./index-C5VM3lmZ.js";import"./sortable.esm-1IzLCE3w.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-D82-toy5.js";import"./use-registry-connections-Fz6Tqm1j.js";import"./extract-connection-data-Dfy3Qlc3.js";import"./generate-id-yESv9K1i.js";import"./collections-BVLezaR1.js";import"./collection-tabs-BcYP8buy.js";import"./badge-CYgKxTpF.js";import"./connection-form-helpers-UH9KShfg.js";import"./use-infinite-scroll-DbJV2aWp.js";import"./useSuspenseInfiniteQuery-DT54Ek4w.js";import"./index-DL_YJ_kc.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-BcsrhQn7.js";import"./sidebar-CYu-6Gzi.js";import"./sheet-DruC4GtE.js";import"./toolbar-QrhbD1LQ.js";import"./use-create-virtual-mcp-CakwJE5T.js";import"./github-repo-picker-BNoPWqQE.js";import"./use-mcp-tools-BrZjJ9zc.js";import"./alert-dialog-C4ynNGJF.js";import"./index-dQSPhEbP.js";import"./use-org-auth-client-6-YfaYzt.js";import"./hover-card-Clt-L-5u.js";import"./task-status-CbuV-3eP.js";import"./use-status-sounds-DadivPgy.js";import"./empty-state-iHDXNEBU.js";import"./resizable-CJjEyhK7.js";import"./use-capability-DGmhThV5.js";import"./header-tab-button-Dcs0BcqM.js";import"./index-CgVH5Gsy.js";import"./user-DxLdHnQg.js";import"./tools-list-Dw6j-mti.js";import"./switch-DRq3hJSo.js";import"./use-debounced-autosave-C_jxuSEe.js";import"./index-B5koQSO_.js";import"./search-input-BC9i8QlA.js";import"./use-secrets-CmzHGX24.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./accordion-BSz8aiEx.js";import"./view-mode-toggle-D7zEkHxC.js";import"./select-model-DOn11Z7b.js";import"./use-automations-DMOY10H-.js";import"./monaco-editor-B1jmgnr2.js";import"./automation-runs-XPUSkViZ.js";import"./table-D3XdCvZp.js";import"./use-members-BQ26-EKO.js";import"./automation-list-row-DTxZO-vH.js";const $={authors:[{key:"name",label:"Name",widget:"text"},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}],categories:[{key:"name",label:"Name",widget:"text"},{key:"slug",label:"Slug",widget:"text",placeholder:"my-category"}]},q={authors:"Author",categories:"Category"};function Tr(P){const t=C.c(34),{orgSlug:v,virtualMcpId:j,branch:w,kind:p,blockKey:y,block:f}=P;let u;t[0]!==w||t[1]!==v||t[2]!==j?(u={orgSlug:v,virtualMcpId:j,branch:w},t[0]=w,t[1]=v,t[2]=j,t[3]=u):u=t[3];const m=R(u);let d;t[4]!==f||t[5]!==p?(d=D(f,p),t[4]=f,t[5]=p,t[6]=d):d=t[6];const B=d;let h;t[7]!==y||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:y,data:J(y,p,e)})},t[7]=y,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=K(B,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=q[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(M,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=$[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(A,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:x=>a(o.key,x),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(T,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:S(i[o.key]),onChange:x=>a(o.key,x.target.value),rows:3}):r.jsx(F,{id:o.key,value:S(i[o.key]),placeholder:o.placeholder,onChange:x=>a(o.key,x.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let g;t[29]!==c?(g=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:c})}),t[29]=c,t[30]=g):g=t[30];let b;return t[31]!==g||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,g]}),t[31]=g,t[32]=n,t[33]=b):b=t[33],b}export{Tr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-B5ue7X7K.js","assets/index-v-4yPWk5.js","assets/index-BgFgIfs8.css","assets/XCircle-DDLSDNYP.js","assets/CheckCircle-79umy6UR.js","assets/Container-Bmp8f1Hw.js","assets/Settings02-CMckE2RK.js","assets/use-mcp-client-DR6PB45n.js","assets/useInfiniteQuery-Bj28n6ln.js","assets/infiniteQueryObserver-C1PO3LYQ.js","assets/badge-CYgKxTpF.js","assets/input-DMJCExP6.js","assets/dropdown-menu-o8504Ahe.js","assets/Check-BXjvCNRo.js","assets/ChevronRight-CBmg3jrn.js","assets/DotsVertical-BfY2m12a.js","assets/table-D3XdCvZp.js","assets/toggle-group-v0racvq3.js","assets/use-view-mode-BTRVa00m.js","assets/tooltip-DvNlo5ri.js","assets/FilterLines-0ZErBJ3i.js","assets/Globe01-DUsTmpYW.js","assets/SearchMd-BuArn0kO.js","assets/dialog-CRbRTRjQ.js","assets/X-DWbNv8Bl.js","assets/AlertCircle-BiKiI44L.js","assets/Upload01-Cmfv30sX.js","assets/alert-dialog-C4ynNGJF.js","assets/card-CANcGy5k.js","assets/Trash01-BoFGJN1_.js","assets/label-Cydnpuha.js","assets/select-BjY8Jgav.js","assets/ChevronDown-DERZQdMP.js","assets/ChevronUp-28KZDFJ3.js","assets/switch-DRq3hJSo.js","assets/textarea-CEsBzC6t.js","assets/RefreshCcw01-Bdic4y2D.js","assets/checkbox-Djxv9Ar7.js","assets/Eye-DNuwjCPP.js","assets/LinkExternal01-pT0NrKlt.js","assets/use-copy-Qm5PoymQ.js","assets/Key01-DhkJOk-2.js","assets/Plus-C1rAdUXl.js","assets/Play--ZCMNFjg.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as i,j as e,r as s,l as a,_ as o}from"./index-v-4yPWk5.js";import{R as l}from"./require-capability-B6a3uwXa.js";import"./use-capability-DGmhThV5.js";import"./access-gate-CZrbf5CL.js";import"./capability-load-error-ByfTnmda.js";const m=s.lazy(()=>o(()=>import("./registry-layout-B5ue7X7K.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43])));function f(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(l,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(m,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as R,j as r,r as K,B as ie,c as je,o as oe}from"./index-v-4yPWk5.js";import{a9 as Pe,u as De,ap as pe,G as he}from"./agent-icon-DfM7tMDC.js";import{C as Re}from"./calendar-BbdXUff-.js";import{I as ee}from"./input-DMJCExP6.js";import{L as G}from"./label-Cydnpuha.js";import{a as ze,b as Be,P as Ee}from"./popover-BGH6hpUr.js";import{T as Ve}from"./textarea-CEsBzC6t.js";import{S as Me}from"./switch-DRq3hJSo.js";import{c as ve,S as Ne,a as we,b as Te,d as Ce}from"./select-BjY8Jgav.js";import{d as Ue}from"./ZoomOut-xmLm2dBO.js";import{s as Le}from"./Plus-C1rAdUXl.js";import{s as ke}from"./Trash01-BoFGJN1_.js";import{D as We,a as He,b as Ye,c as Ke}from"./dropdown-menu-o8504Ahe.js";import{e as Se,u as Ge,L as Qe,F as Xe,I as xe}from"./image-field-fSOsfNOS.js";import{U as ae,V as Ze,W as qe}from"./index-tnP0ll1b.js";import{t as Ae}from"./ChevronDown-DERZQdMP.js";import{i as $e}from"./ChevronRight-CBmg3jrn.js";import{i as Je}from"./Upload01-Cmfv30sX.js";import{c as et}from"./use-file-configs-BVh0-t8s.js";function tt(t){if(t?.trim())try{const e=new URL(t);return e.protocol!=="https:"?void 0:e.href}catch{return}}function rt(t){if(Array.isArray(t.variants)){const e=t.variants,n=e.find(l=>l.rule?.__resolveType?.includes("always"));if(typeof n?.value=="string")return n.value;const s=e.find(l=>typeof l.value=="string");if(s)return s.value}if(typeof t.src=="string")return t.src;if(typeof t.url=="string")return t.url;if(typeof t.value=="string")return t.value}function Ie(t){if(typeof t=="string"||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(Ie);const e=t;return e.__resolveType?rt(e)??t:_e(e)}function _e(t){const e={};for(const[n,s]of Object.entries(t))e[n]=Ie(s);return e}function nt(t,e){return e.split(".").reduce((n,s)=>{if(!(n==null||typeof n!="object"))return n[s]},t)}function Oe(t){return t==null?"":Array.isArray(t)?t.map(Oe).filter(Boolean).join(","):typeof t=="object"?"":String(t)}function ce(t,e){if(!t.includes("{"))return;const n=_e(e);return t.replace(/\{\{\{([^}]+)\}\}\}|\{\{([^}]+)\}\}/g,(l,i,o)=>{const d=(i??o??"").trim();return Oe(nt(n,d))}).trim()||void 0}function st(t,e){if(e.includes("{"))return ce(e,t);const n=t[e];if(typeof n=="string"&&n)return n;if(Array.isArray(n)){const s=n.map(l=>l==null?"":String(l)).filter(Boolean).join(",");if(s)return s}}function it(t,e,n){if(typeof t=="string")return t||`Item ${e+1}`;if(typeof t=="number"||typeof t=="boolean")return String(t);if(t&&typeof t=="object"&&!Array.isArray(t)){const s=t;if(n?.titleBy){const i=st(s,n.titleBy);if(i)return i}if(n?.title){const i=ce(n.title,s);if(i)return i;if(!n.title.includes("{"))return n.title}for(const i of["name","label","title","alt","text","href","id"]){const o=s[i];if(typeof o=="string"&&o)return o;if(Array.isArray(o)){const d=o.map(a=>a==null?"":String(a)).filter(Boolean).join(",");if(d)return d}}const l=s.__resolveType;if(typeof l=="string"&&l){const i=l.split("/").at(-1);if(i)return i.replace(/\.tsx?$/,"")}}return`Item ${e+1}`}function lt(t){if(!t)return;if(typeof t.image=="string"&&t.image.includes("{"))return t.image;const e=t.properties?.image;if(!e)return;if(e.format==="image-uri")return"{{{image}}}";const n=e.properties;return n?.mobile?"{{{image.mobile}}}":n?.desktop?"{{{image.desktop}}}":"{{{image}}}"}function ot(t,e){if(!t||typeof t!="object"||Array.isArray(t))return;const n=lt(e);if(!n)return;const s=ce(n,t);if(!s)return;const l=Se(s)||s;return tt(l)}const q=t=>String(t).padStart(2,"0"),at="1900-01-01",ct="2099-12-31",dt="1900-01-01T00:00",ut="2099-12-31T23:59";function ft(t){if(!t)return"";const e=t.slice(0,10);if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e;const n=new Date(t);return Number.isNaN(n.getTime())?"":`${n.getUTCFullYear()}-${q(n.getUTCMonth()+1)}-${q(n.getUTCDate())}`}function mt(t){return!t||!/^\d{4}-\d{2}-\d{2}$/.test(t)?"":`${t}T00:00:00.000Z`}function pt(t){if(!t)return"";const e=new Date(t);return Number.isNaN(e.getTime())?"":`${e.getFullYear()}-${q(e.getMonth()+1)}-${q(e.getDate())}T${q(e.getHours())}:${q(e.getMinutes())}`}function ht(t){if(!t)return"";const e=new Date(t);return Number.isNaN(e.getTime())?"":e.toISOString()}function xt(t){const e=R.c(29),{id:n,withTime:s,value:l,onChange:i}=t,[o,d]=K.useState(!1);let a;e[0]!==l||e[1]!==s?(a=s?pt(l):ft(l),e[0]=l,e[1]=s,e[2]=a):a=e[2];const c=a;let f;e[3]!==i||e[4]!==s?(f=k=>{i(s?ht(k.target.value):mt(k.target.value))},e[3]=i,e[4]=s,e[5]=f):f=e[5];const u=f;let m;if(e[6]!==l){const k=l?new Date(l):null;m=k&&!Number.isNaN(k.getTime())?k:null,e[6]=l,e[7]=m}else m=e[7];const h=m;let y;e[8]!==i||e[9]!==h||e[10]!==s?(y=k=>{k&&(s&&h?k.setHours(h.getHours(),h.getMinutes(),0,0):k.setHours(0,0,0,0),i(k.toISOString()),d(!1))},e[8]=i,e[9]=h,e[10]=s,e[11]=y):y=e[11];const p=y,g=s?"datetime-local":"date",x=s?dt:at,b=s?ut:ct;let j;e[12]!==u||e[13]!==n||e[14]!==c||e[15]!==g||e[16]!==x||e[17]!==b?(j=r.jsx(ee,{id:n,type:g,min:x,max:b,value:c,onChange:u,className:"h-10 flex-1 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:opacity-0"}),e[12]=u,e[13]=n,e[14]=c,e[15]=g,e[16]=x,e[17]=b,e[18]=j):j=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx(ze,{asChild:!0,children:r.jsx(ie,{type:"button",variant:"outline",size:"icon",className:"h-10 w-10 shrink-0","aria-label":"Open calendar",children:r.jsx(Pe,{className:"h-4 w-4"})})}),e[19]=v):v=e[19];const w=h??void 0;let N;e[20]!==p||e[21]!==w?(N=r.jsx(Be,{className:"w-auto p-0",align:"end",children:r.jsx(Re,{mode:"single",selected:w,onSelect:p,initialFocus:!0})}),e[20]=p,e[21]=w,e[22]=N):N=e[22];let C;e[23]!==o||e[24]!==N?(C=r.jsxs(Ee,{open:o,onOpenChange:d,children:[v,N]}),e[23]=o,e[24]=N,e[25]=C):C=e[25];let $;return e[26]!==C||e[27]!==j?($=r.jsxs("div",{className:"flex gap-1",children:[j,C]}),e[26]=C,e[27]=j,e[28]=$):$=e[28],$}function ne(t){const e=R.c(8),{htmlFor:n,label:s,description:l}=t;let i;e[0]!==n||e[1]!==s?(i=r.jsx(G,{htmlFor:n,children:s}),e[0]=n,e[1]=s,e[2]=i):i=e[2];let o;e[3]!==l?(o=l&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:l}),e[3]=l,e[4]=o):o=e[4];let d;return e[5]!==i||e[6]!==o?(d=r.jsxs("div",{className:"space-y-0.5",children:[i,o]}),e[5]=i,e[6]=o,e[7]=d):d=e[7],d}function se(t){const e=R.c(61),{schema:n,value:s,onChange:l,path:i,label:o}=t,d=typeof s=="string"?s:"",a=n.format;if(a==="textarea"||a==="rich-text"||a==="rich-text-inline"||a==="markdown"){let p;e[0]!==o||e[1]!==i||e[2]!==n.description?(p=r.jsx(ne,{htmlFor:i,label:o,description:n.description}),e[0]=o,e[1]=i,e[2]=n.description,e[3]=p):p=e[3];let g;e[4]!==l?(g=j=>l(j.target.value),e[4]=l,e[5]=g):g=e[5];let x;e[6]!==i||e[7]!==d||e[8]!==g?(x=r.jsx(Ve,{id:i,value:d,onChange:g,rows:4}),e[6]=i,e[7]=d,e[8]=g,e[9]=x):x=e[9];let b;return e[10]!==p||e[11]!==x?(b=r.jsxs("div",{className:"space-y-2",children:[p,x]}),e[10]=p,e[11]=x,e[12]=b):b=e[12],b}if(a==="date"||a==="date-time"){let p;e[13]!==o||e[14]!==i||e[15]!==n.description?(p=r.jsx(ne,{htmlFor:i,label:o,description:n.description}),e[13]=o,e[14]=i,e[15]=n.description,e[16]=p):p=e[16];const g=a==="date-time";let x;e[17]!==l||e[18]!==i||e[19]!==d||e[20]!==g?(x=r.jsx(xt,{id:i,withTime:g,value:d,onChange:l}),e[17]=l,e[18]=i,e[19]=d,e[20]=g,e[21]=x):x=e[21];let b;return e[22]!==p||e[23]!==x?(b=r.jsxs("div",{className:"space-y-2",children:[p,x]}),e[22]=p,e[23]=x,e[24]=b):b=e[24],b}if(a==="color-input"){let p;e[25]!==o||e[26]!==i||e[27]!==n.description?(p=r.jsx(ne,{htmlFor:i,label:o,description:n.description}),e[25]=o,e[26]=i,e[27]=n.description,e[28]=p):p=e[28];const g=d||"#000000";let x;e[29]!==l?(x=C=>l(C.target.value),e[29]=l,e[30]=x):x=e[30];let b;e[31]!==g||e[32]!==x?(b=r.jsx("input",{type:"color",value:g,onChange:x,className:"h-10 w-10 cursor-pointer rounded-lg border border-border bg-background p-1"}),e[31]=g,e[32]=x,e[33]=b):b=e[33];let j;e[34]!==l?(j=C=>l(C.target.value),e[34]=l,e[35]=j):j=e[35];let v;e[36]!==i||e[37]!==d||e[38]!==j?(v=r.jsx(ee,{id:i,value:d,onChange:j,placeholder:"#000000",className:"h-10 flex-1"}),e[36]=i,e[37]=d,e[38]=j,e[39]=v):v=e[39];let w;e[40]!==b||e[41]!==v?(w=r.jsxs("div",{className:"flex items-center gap-2",children:[b,v]}),e[40]=b,e[41]=v,e[42]=w):w=e[42];let N;return e[43]!==p||e[44]!==w?(N=r.jsxs("div",{className:"space-y-2",children:[p,w]}),e[43]=p,e[44]=w,e[45]=N):N=e[45],N}let c;e[46]!==o||e[47]!==i||e[48]!==n.description?(c=r.jsx(ne,{htmlFor:i,label:o,description:n.description}),e[46]=o,e[47]=i,e[48]=n.description,e[49]=c):c=e[49];const f=a==="url"?"url":"text";let u;e[50]!==l?(u=p=>l(p.target.value),e[50]=l,e[51]=u):u=e[51];const m=n.default!=null?String(n.default):void 0;let h;e[52]!==i||e[53]!==d||e[54]!==f||e[55]!==u||e[56]!==m?(h=r.jsx(ee,{id:i,type:f,value:d,onChange:u,placeholder:m,className:"h-10"}),e[52]=i,e[53]=d,e[54]=f,e[55]=u,e[56]=m,e[57]=h):h=e[57];let y;return e[58]!==c||e[59]!==h?(y=r.jsxs("div",{className:"space-y-2",children:[c,h]}),e[58]=c,e[59]=h,e[60]=y):y=e[60],y}function gt(t){const e=R.c(17),{schema:n,value:s,onChange:l,path:i,label:o}=t,d=typeof s=="number"?s:"";let a;e[0]!==o||e[1]!==i?(a=r.jsx(G,{htmlFor:i,children:o}),e[0]=o,e[1]=i,e[2]=a):a=e[2];let c;e[3]!==n.description?(c=n.description&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:n.description}),e[3]=n.description,e[4]=c):c=e[4];let f;e[5]!==a||e[6]!==c?(f=r.jsxs("div",{className:"space-y-0.5",children:[a,c]}),e[5]=a,e[6]=c,e[7]=f):f=e[7];let u;e[8]!==l?(u=y=>{const p=y.target.value;l(p===""?void 0:Number(p))},e[8]=l,e[9]=u):u=e[9];let m;e[10]!==d||e[11]!==i||e[12]!==u?(m=r.jsx(ee,{id:i,type:"number",value:d,onChange:u,className:"h-10"}),e[10]=d,e[11]=i,e[12]=u,e[13]=m):m=e[13];let h;return e[14]!==f||e[15]!==m?(h=r.jsxs("div",{className:"space-y-2",children:[f,m]}),e[14]=f,e[15]=m,e[16]=h):h=e[16],h}function yt(t){const e=R.c(17),{value:n,onChange:s,path:l,label:i,schema:o}=t,d=typeof n=="boolean"?n:!1;let a;e[0]!==i||e[1]!==l?(a=r.jsx(G,{htmlFor:l,children:i}),e[0]=i,e[1]=l,e[2]=a):a=e[2];let c;e[3]!==o.description?(c=o.description&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:o.description}),e[3]=o.description,e[4]=c):c=e[4];let f;e[5]!==a||e[6]!==c?(f=r.jsxs("div",{className:"space-y-0.5",children:[a,c]}),e[5]=a,e[6]=c,e[7]=f):f=e[7];let u;e[8]!==s?(u=y=>s(y),e[8]=s,e[9]=u):u=e[9];let m;e[10]!==d||e[11]!==l||e[12]!==u?(m=r.jsx(Me,{id:l,checked:d,onCheckedChange:u}),e[10]=d,e[11]=l,e[12]=u,e[13]=m):m=e[13];let h;return e[14]!==f||e[15]!==m?(h=r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[f,m]}),e[14]=f,e[15]=m,e[16]=h):h=e[16],h}const de="__enum_empty__";function ue(t){return t===""?de:String(t)}function bt(t,e){if(t===de)return"";const n=e.find(s=>ue(s)===t);return n!==void 0?n:t}function jt(t,e){return t==null?e.some(n=>n==="")?de:void 0:ue(t)}function vt(t){return t===""?"":String(t)}function Nt(t){const e=R.c(28),{schema:n,value:s,onChange:l,path:i,label:o}=t;let d;e[0]!==n.enum?(d=n.enum??[],e[0]=n.enum,e[1]=d):d=e[1];const a=d;let c;e[2]!==a||e[3]!==s?(c=jt(s,a),e[2]=a,e[3]=s,e[4]=c):c=e[4];const f=c;let u;e[5]!==o||e[6]!==i?(u=r.jsx(G,{htmlFor:i,children:o}),e[5]=o,e[6]=i,e[7]=u):u=e[7];let m;e[8]!==n.description?(m=n.description&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:n.description}),e[8]=n.description,e[9]=m):m=e[9];let h;e[10]!==u||e[11]!==m?(h=r.jsxs("div",{className:"space-y-0.5",children:[u,m]}),e[10]=u,e[11]=m,e[12]=h):h=e[12];let y;e[13]!==l||e[14]!==a?(y=v=>l(bt(v,a)),e[13]=l,e[14]=a,e[15]=y):y=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(Ne,{className:"h-10",children:r.jsx(we,{placeholder:"Select..."})}),e[16]=p):p=e[16];let g;e[17]!==a?(g=a.map(wt),e[17]=a,e[18]=g):g=e[18];let x;e[19]!==g?(x=r.jsx(Te,{children:g}),e[19]=g,e[20]=x):x=e[20];let b;e[21]!==f||e[22]!==y||e[23]!==x?(b=r.jsxs(Ce,{value:f,onValueChange:y,children:[p,x]}),e[21]=f,e[22]=y,e[23]=x,e[24]=b):b=e[24];let j;return e[25]!==b||e[26]!==h?(j=r.jsxs("div",{className:"space-y-2",children:[h,b]}),e[25]=b,e[26]=h,e[27]=j):j=e[27],j}function wt(t){const e=ue(t);return r.jsx(ve,{value:e,children:vt(t)},e)}function Tt(t){const e=R.c(32),{schema:n,value:s,onChange:l,path:i,label:o,breadcrumbPath:d,onBreadcrumbChange:a}=t,c=d===void 0?[]:d,f=Array.isArray(s)?s:[],u=n.items,[m,h]=K.useState(null);let y;e[0]!==u?(y=(T,S)=>it(T,S,u),e[0]=u,e[1]=y):y=e[1];const p=y,g=()=>{const T=u?.type,S=u?.default!==void 0?u.default:T==="object"?{}:T==="block-ref"?(()=>{const _=u?.anyOfRefs?.[0]?.resolveType;return typeof _!="string"||ae(_)?{}:{__resolveType:_}})():T==="number"||T==="integer"?0:T==="boolean"?!1:T==="array"?[]:"",A=[...f,S];l(A);const I=A.length-1;h(I),a?.([...c,p(S,I)])},x=T=>{l(f.filter((S,A)=>A!==T)),m===T&&(h(null),a?.(c))},b=(T,S)=>{const A=[...f];A[T]=S,l(A),m===T&&a?.([...c,p(S,T)])};if(m!==null&&m<f.length){const T=f[m],S=[...c,p(T,m)],A=u?.type==="object"&&u.properties?r.jsx(fe,{schema:u,value:T,onChange:_=>b(m,_),basePath:`${i}.${m}`,breadcrumbPath:S,onBreadcrumbChange:a}):u?Fe({schema:u,value:T,onChange:_=>b(m,_),path:`${i}.${m}`,label:u.title??`Item ${m+1}`,breadcrumbPath:S,onBreadcrumbChange:a}):null;let I;return e[2]!==A?(I=r.jsx("div",{className:"min-w-0 space-y-4",children:A}),e[2]=A,e[3]=I):I=e[3],I}let j;e[4]!==o?(j=r.jsx("span",{className:"min-w-0 truncate text-sm font-medium",children:o}),e[4]=o,e[5]=j):j=e[5];let v;e[6]!==f.length?(v=f.length>0&&r.jsx("span",{className:"rounded-md bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground",children:f.length}),e[6]=f.length,e[7]=v):v=e[7];let w;e[8]!==j||e[9]!==v?(w=r.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[j,v]}),e[8]=j,e[9]=v,e[10]=w):w=e[10];let N;e[11]!==n.description?(N=n.description&&r.jsx("p",{className:"break-words text-xs leading-normal text-muted-foreground",children:n.description}),e[11]=n.description,e[12]=N):N=e[12];let C;e[13]!==w||e[14]!==N?(C=r.jsxs("div",{className:"min-w-0 space-y-0.5",children:[w,N]}),e[13]=w,e[14]=N,e[15]=C):C=e[15];let $;e[16]!==c||e[17]!==p||e[18]!==u||e[19]!==f||e[20]!==a||e[21]!==i||e[22]!==x||e[23]!==h?($=f.length>0&&r.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border/50 p-1.5",children:f.map((T,S)=>{const A=p(T,S),I=ot(T,u);return r.jsxs("div",{className:"group flex min-w-0 items-center gap-2.5 rounded-lg px-2 py-2.5 hover:bg-accent hover:text-accent-foreground",children:[r.jsx(Ue,{className:"size-3.5 shrink-0 cursor-grab text-muted-foreground/40"}),r.jsxs("button",{type:"button",onClick:()=>{h(S),a?.([...c,A])},className:"flex min-w-0 flex-1 items-center gap-2.5 text-left text-sm",title:A,children:[I&&r.jsx("img",{src:I,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),r.jsx("span",{className:"min-w-0 truncate",children:A})]}),r.jsxs(We,{children:[r.jsx(He,{asChild:!0,children:r.jsx(ie,{type:"button",variant:"ghost",size:"icon","aria-label":`Open actions for ${A}`,className:"size-6 opacity-0 transition-opacity group-hover:opacity-100",onClick:Ct,children:r.jsx(De,{size:14})})}),r.jsx(Ye,{align:"end",children:r.jsxs(Ke,{className:"text-destructive focus:text-destructive",onClick:()=>x(S),children:[r.jsx(ke,{size:14}),"Delete"]})})]})]},`${i}.${S}`)})}),e[16]=c,e[17]=p,e[18]=u,e[19]=f,e[20]=a,e[21]=i,e[22]=x,e[23]=h,e[24]=$):$=e[24];let k;e[25]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(Le,{size:14}),e[25]=k):k=e[25];let P;e[26]!==g?(P=r.jsxs("button",{type:"button",onClick:g,className:"flex w-full items-center justify-center gap-1.5 rounded-xl border border-dashed border-border/60 py-2.5 text-sm text-muted-foreground transition-colors hover:border-border hover:bg-muted/30",children:[k,"Add item"]}),e[26]=g,e[27]=P):P=e[27];let D;return e[28]!==P||e[29]!==C||e[30]!==$?(D=r.jsxs("div",{className:"space-y-2",children:[C,$,P]}),e[28]=P,e[29]=C,e[30]=$,e[31]=D):D=e[31],D}function Ct(t){return t.stopPropagation()}function kt(t){const e=R.c(37),{schema:n,value:s,onChange:l,path:i,label:o,breadcrumbPath:d,onBreadcrumbChange:a}=t,[c,f]=K.useState(!1);let u;e[0]!==s?(u=s!=null&&typeof s=="object"&&!Array.isArray(s)?s:{},e[0]=s,e[1]=u):u=e[1];const m=u;if(!n.properties)return null;const h=`${i}-fields`;let y;e[2]!==d?(y=d??[],e[2]=d,e[3]=y):y=e[3];let p;e[4]!==o||e[5]!==y?(p=[...y,o],e[4]=o,e[5]=y,e[6]=p):p=e[6];const g=p;let x;e[7]!==d||e[8]!==g||e[9]!==a||e[10]!==c?(x=()=>{const k=!c;f(k),a?.(k?g:d??[])},e[7]=d,e[8]=g,e[9]=a,e[10]=c,e[11]=x):x=e[11];const b=x;let j;e[12]!==c?(j=r.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors group-hover:text-accent-foreground",children:c?r.jsx(Ae,{size:16}):r.jsx($e,{size:16})}),e[12]=c,e[13]=j):j=e[13];let v;e[14]!==o?(v=r.jsx("span",{className:"min-w-0 truncate text-sm font-medium",children:o}),e[14]=o,e[15]=v):v=e[15];let w;e[16]!==h||e[17]!==b||e[18]!==c||e[19]!==j||e[20]!==v?(w=r.jsxs("button",{type:"button","aria-expanded":c,"aria-controls":h,onClick:b,className:"group flex w-full min-w-0 items-center gap-2 rounded-md py-1.5 pr-2 text-left transition-colors hover:bg-accent hover:text-accent-foreground",children:[j,v]}),e[16]=h,e[17]=b,e[18]=c,e[19]=j,e[20]=v,e[21]=w):w=e[21];let N;e[22]!==n.description?(N=n.description&&r.jsx("p",{className:"break-words pl-9 text-xs leading-normal text-muted-foreground",children:n.description}),e[22]=n.description,e[23]=N):N=e[23];let C;e[24]!==h||e[25]!==g||e[26]!==m||e[27]!==a||e[28]!==l||e[29]!==c||e[30]!==i||e[31]!==n?(C=c&&r.jsx("div",{id:h,className:"ml-3 min-w-0 max-w-full overflow-hidden border-l border-border/80 pl-5",children:r.jsx(fe,{schema:n,value:m,onChange:l,basePath:i,breadcrumbPath:g,onBreadcrumbChange:a})}),e[24]=h,e[25]=g,e[26]=m,e[27]=a,e[28]=l,e[29]=c,e[30]=i,e[31]=n,e[32]=C):C=e[32];let $;return e[33]!==w||e[34]!==N||e[35]!==C?($=r.jsxs("div",{className:"min-w-0 space-y-2",children:[w,N,C]}),e[33]=w,e[34]=N,e[35]=C,e[36]=$):$=e[36],$}function St(t){if(!t?.properties)return{};const e={};for(const[n,s]of Object.entries(t.properties))n.startsWith("__")||n==="@type"||(s.default!==void 0?e[n]=s.default:s.type==="boolean"?e[n]=!1:s.type==="string"?e[n]="":s.type==="number"||s.type==="integer"?e[n]=0:s.type==="object"&&(e[n]={}));return e}function At(t,e){const n=e[0]?.resolveType??"";if(!t||typeof t!="object"||Array.isArray(t))return n;const s=t;if(typeof s.__resolveType=="string"){const o=e.find(d=>Ze(d.resolveType,s.__resolveType));if(o)return o.resolveType}let l=n,i=-1;for(const o of e){if(!o.schema?.properties)continue;const a=Object.keys(o.schema.properties).filter(c=>!c.startsWith("__")&&c!=="@type"&&c!=="action"&&c!=="alt").filter(c=>s[c]!==void 0).length;a>0&&a>i&&(i=a,l=o.resolveType)}if(i>0)return l;for(const o of e){if(!o.schema?.properties)continue;const d=Object.keys(o.schema.properties).filter(a=>s[a]!==void 0).length;d>0&&d>i&&(i=d,l=o.resolveType)}return l}function $t(t){const e=R.c(23),{path:n,open:s,onOpenChange:l,title:i,nested:o,nestedBlockRef:d}=t,a=`${n}-loader-config`,c=d&&"ml-1";let f;e[0]!==c?(f=je("rounded-lg border border-border/80 bg-muted/30",c),e[0]=c,e[1]=f):f=e[1];let u;e[2]!==l||e[3]!==s?(u=()=>l(!s),e[2]=l,e[3]=s,e[4]=u):u=e[4];let m;e[5]!==s?(m=r.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-muted-foreground transition-colors group-hover:text-foreground",children:s?r.jsx(Ae,{size:16}):r.jsx($e,{size:16})}),e[5]=s,e[6]=m):m=e[6];let h;e[7]!==i?(h=r.jsx("span",{className:"min-w-0 truncate text-xs font-medium tracking-wide text-muted-foreground uppercase",children:i}),e[7]=i,e[8]=h):h=e[8];let y;e[9]!==a||e[10]!==s||e[11]!==u||e[12]!==m||e[13]!==h?(y=r.jsxs("button",{type:"button","aria-expanded":s,"aria-controls":a,onClick:u,className:"group flex w-full min-w-0 items-center gap-2 rounded-lg px-3 py-2.5 text-left transition-colors hover:bg-accent/50",children:[m,h]}),e[9]=a,e[10]=s,e[11]=u,e[12]=m,e[13]=h,e[14]=y):y=e[14];let p;e[15]!==a||e[16]!==o||e[17]!==s?(p=s&&r.jsx("div",{id:a,className:"border-t border-border/60 px-4 pb-4 pt-3",children:r.jsx("div",{className:"border-l border-border/80 pl-4",children:o})}),e[15]=a,e[16]=o,e[17]=s,e[18]=p):p=e[18];let g;return e[19]!==f||e[20]!==y||e[21]!==p?(g=r.jsxs("div",{className:f,children:[y,p]}),e[19]=f,e[20]=y,e[21]=p,e[22]=g):g=e[22],g}function ge(t){const e=R.c(35),{schema:n,value:s,onChange:l,path:i,label:o,breadcrumbPath:d,onBreadcrumbChange:a}=t,c=(n.anyOfRefs??[]).filter(_t),f=c.length>0?At(s,c):c[0]?.resolveType??"",[u,m]=K.useState(f),[h,y]=K.useState(!1);if(c.length>0){const N=u||f;let C;e[0]!==N?(C=O=>O.resolveType===N,e[0]=N,e[1]=C):C=e[1];const $=c.find(C),k=O=>{m(O);const V=c.find(U=>U.resolveType===O),M=new Set(Object.keys(V?.schema?.properties??{})),Q=s!==null&&typeof s=="object"&&!Array.isArray(s)?s:{},J=Object.fromEntries(Object.entries(Q).filter(U=>{const[H]=U;return M.has(H)})),W={...St(V?.schema),...J};if(ae(O)){l(W);return}l({...W,__resolveType:O})};let P;e[2]!==N||e[3]!==l?(P=O=>{if(!ae(N)||O===null||typeof O!="object"||Array.isArray(O)){l(O);return}const{__resolveType:V,...M}=O;l(M)},e[2]=N,e[3]=l,e[4]=P):P=e[4];const D=P,T=$?.schema?.properties?r.jsx(fe,{schema:$.schema,value:s,onChange:D,basePath:i,breadcrumbPath:d,onBreadcrumbChange:a}):null,S=n.type==="block-ref";let A;e[5]!==i?(A=i.includes("."),e[5]=i,e[6]=A):A=e[6];const I=A;let _;e[7]!==o||e[8]!==i?(_=r.jsx(G,{htmlFor:i,children:o}),e[7]=o,e[8]=i,e[9]=_):_=e[9];let z;e[10]===Symbol.for("react.memo_cache_sentinel")?(z=r.jsx(Ne,{children:r.jsx(we,{placeholder:"Select..."})}),e[10]=z):z=e[10];let B;e[11]!==n.description?(B=n.description&&r.jsx("p",{className:"text-xs text-muted-foreground",children:n.description}),e[11]=n.description,e[12]=B):B=e[12];let E;return e[13]!==S||e[14]!==I||e[15]!==h||e[16]!==T||e[17]!==i?(E=T&&(S?r.jsx($t,{path:i,open:h,onOpenChange:y,title:I?"Configuration":"Loader configuration",nested:T,nestedBlockRef:I}):T),e[13]=S,e[14]=I,e[15]=h,e[16]=T,e[17]=i,e[18]=E):E=e[18],r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"space-y-1.5",children:[_,r.jsxs(Ce,{value:N,onValueChange:k,children:[z,r.jsx(Te,{children:c.map(It)})]}),B]}),E]})}if(n.anyOfRefs&&n.anyOfRefs.length>0)return null;let p;e[19]!==o||e[20]!==i?(p=r.jsx(G,{htmlFor:i,children:o}),e[19]=o,e[20]=i,e[21]=p):p=e[21];const g=s!=null?String(s):"";let x;e[22]!==l?(x=N=>l(N.target.value),e[22]=l,e[23]=x):x=e[23];const b=n.description??"";let j;e[24]!==i||e[25]!==g||e[26]!==x||e[27]!==b?(j=r.jsx("input",{id:i,type:"text",value:g,onChange:x,className:"w-full rounded-md border bg-background px-3 py-1.5 text-sm",placeholder:b}),e[24]=i,e[25]=g,e[26]=x,e[27]=b,e[28]=j):j=e[28];let v;e[29]!==n.description?(v=n.description&&r.jsx("p",{className:"text-xs text-muted-foreground",children:n.description}),e[29]=n.description,e[30]=v):v=e[30];let w;return e[31]!==p||e[32]!==j||e[33]!==v?(w=r.jsxs("div",{className:"space-y-1.5",children:[p,j,v]}),e[31]=p,e[32]=j,e[33]=v,e[34]=w):w=e[34],w}function It(t){return r.jsx(ve,{value:t.resolveType,children:t.title??qe(t.resolveType)??t.resolveType},t.resolveType)}function _t(t){return t.resolveType!==""}function ye(t){const e=R.c(2),{ext:n}=t;if(!n)return null;let s;return e[0]!==n?(s=r.jsx("span",{className:"shrink-0 rounded bg-muted px-1.5 py-0.5 text-[10px] font-medium uppercase text-muted-foreground",children:n}),e[0]=n,e[1]=s):s=e[1],s}function Ot(t){try{const e=new URL(t).pathname;return decodeURIComponent(e.split("/").pop()??t)}catch{return t.split("/").pop()??t}}function Ft(t){const e=t.lastIndexOf(".");return e<0||e===t.length-1?"":t.slice(e+1).toLowerCase()}function be(t){const e=R.c(72),{schema:n,value:s,onChange:l,path:i,label:o}=t,d=n.format==="video-uri",a=Se(s),[c,f]=K.useState(!1),[u,m]=K.useState(!1),h=a?Ot(a):"",y=h?Ft(h):"",p=et(),g=Ge();let x;e[0]!==p.data?.configs?(x=function(){const F=p.data?.configs??[];if(F.length===1)return F[0].id;if(F.length===0)return null;const L=typeof window<"u"?window.localStorage.getItem(Qe):null;return F.some(re=>re.id===L)?L:null},e[0]=p.data?.configs,e[1]=x):x=e[1];const b=x;let j;e[2]!==d||e[3]!==l||e[4]!==b||e[5]!==f||e[6]!==g?(j=async function(F){if(!F)return;let L=Array.from(F);if(L.length===0)return;if(d&&(L=L.filter(Pt),L.length===0)){oe.error("Please drop a video file (mp4, webm, …).");return}const re=b();if(!re){f(!0);return}try{const le=await g.mutateAsync({configId:re,file:L[0]});l(le.publicUrl),L.length>1&&oe.info(`Uploaded ${L[0].name}; extra files were ignored (single-select field).`)}catch(le){const me=le;oe.error(me instanceof Error?me.message:"Upload failed")}},e[2]=d,e[3]=l,e[4]=b,e[5]=f,e[6]=g,e[7]=j):j=e[7];const v=j;let w;e[8]!==m?(w=function(F){F.preventDefault(),F.dataTransfer.types.includes("Files")&&m(!0)},e[8]=m,e[9]=w):w=e[9];const N=w;let C;e[10]!==m?(C=function(F){F.currentTarget===F.target&&m(!1)},e[10]=m,e[11]=C):C=e[11];const $=C;let k;e[12]!==v||e[13]!==m?(k=function(F){F.preventDefault(),m(!1),v(F.dataTransfer.files)},e[12]=v,e[13]=m,e[14]=k):k=e[14];const P=k;let D;e[15]!==o||e[16]!==i?(D=r.jsx(G,{htmlFor:i,className:"text-muted-foreground",children:o}),e[15]=o,e[16]=i,e[17]=D):D=e[17];let T;e[18]!==n.description?(T=n.description&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:n.description}),e[18]=n.description,e[19]=T):T=e[19];let S;e[20]!==D||e[21]!==T?(S=r.jsxs("div",{className:"min-w-0 space-y-0.5",children:[D,T]}),e[20]=D,e[21]=T,e[22]=S):S=e[22];const A=u&&"border-primary ring-2 ring-primary/30",I=g.isPending&&"pointer-events-none opacity-60";let _;e[23]!==I||e[24]!==A?(_=je("group relative w-full overflow-hidden rounded-xl border border-border/60 bg-muted/30 transition",A,I),e[23]=I,e[24]=A,e[25]=_):_=e[25];let z;e[26]!==y||e[27]!==h||e[28]!==d||e[29]!==f||e[30]!==a||e[31]!==g.isPending?(z=a?d?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"relative h-40 w-full overflow-hidden bg-black",children:r.jsx("video",{src:a,preload:"metadata",className:"h-full w-full object-contain"},a)}),r.jsxs("div",{className:"flex items-center gap-2 border-t border-border/60 bg-background/50 px-3 py-2",children:[r.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground"}),r.jsx("p",{className:"min-w-0 flex-1 truncate text-xs text-muted-foreground",children:h}),r.jsx(ye,{ext:y})]})]}):r.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5",children:[r.jsx("div",{className:"flex size-10 shrink-0 items-center justify-center rounded-md bg-background",children:r.jsx(he,{size:18,className:"text-muted-foreground"})}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("p",{className:"truncate text-sm font-medium",children:h}),r.jsx("p",{className:"truncate text-xs text-muted-foreground",children:a})]}),r.jsx(ye,{ext:y})]}):r.jsxs("button",{type:"button",onClick:()=>f(!0),className:"flex w-full flex-col items-center justify-center gap-2 py-8 text-sm text-muted-foreground hover:bg-muted/60 hover:text-foreground",children:[d?r.jsx(pe,{size:20}):r.jsx(he,{size:20}),r.jsx("span",{className:"text-sm font-medium",children:g.isPending?"Uploading…":d?"Drop a video here or click to browse":"Drop a file or click to browse"}),r.jsx("span",{className:"text-xs text-muted-foreground",children:"Up to 100 MB"})]}),e[26]=y,e[27]=h,e[28]=d,e[29]=f,e[30]=a,e[31]=g.isPending,e[32]=z):z=e[32];let B;e[33]!==u?(B=u&&r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-primary/10 backdrop-blur-[1px]",children:r.jsx("span",{className:"rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow",children:"Drop to upload"})}),e[33]=u,e[34]=B):B=e[34];let E;e[35]!==$||e[36]!==N||e[37]!==P||e[38]!==_||e[39]!==z||e[40]!==B?(E=r.jsxs("div",{onDragOver:N,onDragLeave:$,onDrop:P,className:_,children:[z,B]}),e[35]=$,e[36]=N,e[37]=P,e[38]=_,e[39]=z,e[40]=B,e[41]=E):E=e[41];let O;e[42]!==l?(O=Y=>l(Y.target.value),e[42]=l,e[43]=O):O=e[43];let V;e[44]!==i||e[45]!==a||e[46]!==O?(V=r.jsx(ee,{id:i,type:"url",value:a,onChange:O,placeholder:"https://...",className:"h-9 min-w-0 flex-1"}),e[44]=i,e[45]=a,e[46]=O,e[47]=V):V=e[47];let M;e[48]!==f?(M=()=>f(!0),e[48]=f,e[49]=M):M=e[49];let Q;e[50]===Symbol.for("react.memo_cache_sentinel")?(Q=r.jsx(Je,{size:14}),e[50]=Q):Q=e[50];const J=a?"Replace":"Browse";let W;e[51]!==M||e[52]!==J?(W=r.jsxs(ie,{type:"button",variant:"outline",size:"sm",onClick:M,className:"h-9 shrink-0",children:[Q,J]}),e[51]=M,e[52]=J,e[53]=W):W=e[53];let U;e[54]!==l||e[55]!==a?(U=a&&r.jsx(ie,{type:"button",variant:"ghost",size:"sm",onClick:()=>l(""),className:"h-9 shrink-0","aria-label":"Remove file",children:r.jsx(ke,{size:14})}),e[54]=l,e[55]=a,e[56]=U):U=e[56];let H;e[57]!==V||e[58]!==W||e[59]!==U?(H=r.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2",children:[V,W,U]}),e[57]=V,e[58]=W,e[59]=U,e[60]=H):H=e[60];let X;e[61]!==l?(X=Y=>l(Y),e[61]=l,e[62]=X):X=e[62];let Z;e[63]!==c||e[64]!==f||e[65]!==X?(Z=r.jsx(Xe,{open:c,onOpenChange:f,mode:"any",onSelect:X}),e[63]=c,e[64]=f,e[65]=X,e[66]=Z):Z=e[66];let te;return e[67]!==E||e[68]!==H||e[69]!==Z||e[70]!==S?(te=r.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:[S,E,H,Z]}),e[67]=E,e[68]=H,e[69]=Z,e[70]=S,e[71]=te):te=e[71],te}function Pt(t){return t.type.startsWith("video/")}const Dt=new Set(["__resolveType","@type"]);function Rt(t){if(t.type!=="block-ref"||!t.anyOfRefs?.length||t.anyOfRefs.length!==1)return null;const e=t.anyOfRefs[0].resolveType;return e.endsWith("/multivariate/image.ts")?"image":e.endsWith("/multivariate/video.ts")||e.endsWith("/multivariate/file.ts")?"file":null}function zt(t){return t.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]/g," ").replace(/^\w/,e=>e.toUpperCase())}function Bt(t,e){if(e!==void 0)return e;switch(t){case"string":return"";case"number":case"integer":return 0;case"boolean":return!1;case"array":return[];case"object":return{};default:return null}}function Fe(t){const{schema:e,value:n}=t;if(e.type==="block-ref"||n!==null&&typeof n=="object"&&!Array.isArray(n)&&typeof n.__resolveType=="string"&&e.anyOfRefs){const o=Rt(e);return o==="image"?r.jsx(xe,{...t},t.path):o==="file"?r.jsx(be,{...t},t.path):e.anyOfRefs?r.jsx(ge,{...t},t.path):null}if(e.format==="image-uri")return r.jsx(xe,{...t},t.path);if(e.format==="file-uri"||e.format==="video-uri")return r.jsx(be,{...t},t.path);if(e.enum&&e.enum.length>0)return r.jsx(Nt,{...t},t.path);if(e.type==="anyOf")return r.jsx(ge,{...t},t.path);const s=n??Bt(e.type,e.default);if(s==null)return null;const l={...t,value:s},i=n==null?e.type??typeof s:Array.isArray(s)?"array":typeof s;if(i==="array"||Array.isArray(s))return r.jsx(Tt,{...l},t.path);switch(i){case"boolean":return r.jsx(yt,{...l},t.path);case"number":case"integer":return r.jsx(gt,{...l},t.path);case"string":{const o=e.format;return o==="color-input"?r.jsx(se,{...l},t.path):o==="textarea"||o==="rich-text"||o==="html"?r.jsx(se,{...l},t.path):r.jsx(se,{...l},t.path)}case"object":return s!==null&&typeof s=="object"&&!Array.isArray(s)?r.jsx(kt,{...l},t.path):null;default:return r.jsx(se,{...l},t.path)}}function fe(t){const e=R.c(13),{schema:n,value:s,onChange:l,basePath:i,breadcrumbPath:o,onBreadcrumbChange:d}=t;let a;e[0]!==o?(a=o===void 0?[]:o,e[0]=o,e[1]=a):a=e[1];const c=a,f=n.properties;if(!f)return null;let u;e[2]!==s?(u=s!=null&&typeof s=="object"&&!Array.isArray(s)?s:{},e[2]=s,e[3]=u):u=e[3];const m=u;let h,y;if(e[4]!==i||e[5]!==c||e[6]!==m||e[7]!==d||e[8]!==l||e[9]!==f){y=Symbol.for("react.early_return_sentinel");e:{const p=Object.keys(f).filter(Et);if(p.length===0){let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"No editable fields on this section."}),e[12]=x):x=e[12],y=x;break e}const g=(x,b)=>{l({...m,[x]:b})};h=r.jsx("div",{className:"min-w-0 space-y-6",children:p.map(x=>{const b=f[x];if(!b)return null;const j=i?`${i}.${x}`:x,v=b.title??zt(x);return Fe({schema:b,value:m[x],onChange:w=>g(x,w),path:j,label:v,breadcrumbPath:c,onBreadcrumbChange:d})})})}e[4]=i,e[5]=c,e[6]=m,e[7]=d,e[8]=l,e[9]=f,e[10]=h,e[11]=y}else h=e[10],y=e[11];return y!==Symbol.for("react.early_return_sentinel")?y:h}function Et(t){return!Dt.has(t)}export{fe as S,Fe as a,se as b,ce as r,tt as s};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e as $e,r as N,j as t,B as Ve,l as Yt,c as de,G as ea,o as xe,K as ta}from"./index-v-4yPWk5.js";import{t as $n}from"./ChevronDown-DERZQdMP.js";import{i as na}from"./ChevronRight-CBmg3jrn.js";import{n as sa}from"./ChevronUp-28KZDFJ3.js";import{D as qt,u as Wt,g as bt,E as aa,F as ra,J as oa}from"./agent-icon-DfM7tMDC.js";import{i as ia}from"./Globe01-DUsTmpYW.js";import{S as ft}from"./scroll-area-CIVwHWtS.js";import{T as rt,a as ot,b as it}from"./tooltip-DvNlo5ri.js";import{c as On,b as Ln,e as zn,d as In,a as Fn,D as Bn}from"./dialog-CRbRTRjQ.js";import{I as Kn}from"./input-DMJCExP6.js";import{r as la,i as Xe,P as Hn,S as Un,N as ca,l as Ke,G as ua,a as da,b as gt,u as ma,c as fa,d as pa,e as ha,f as ga,g as va,h as xa,j as pt,k as $t,m as Ze,p as jn,n as kn,o as ya,q as Ot,s as ba,t as Sa,v as _a,w as ja,x as ka,y as Na,z as wa,A as Ta,B as ht,C as Ca,D as Ra,E as Da,F as Aa,H as Pa,I as Ma,J as Lt,K as Ea,L as Va,M as $a,O as zt,Q as Oa,R as La,T as Nn}from"./index-tnP0ll1b.js";import{s as za,a as Yn}from"./Eye-DNuwjCPP.js";import{d as Ia}from"./ZoomOut-xmLm2dBO.js";import{a as Fa}from"./RefreshCcw01-Bdic4y2D.js";import{s as Ht}from"./Plus-C1rAdUXl.js";import{s as St}from"./Trash01-BoFGJN1_.js";import{i as Ba}from"./Zap-BBs40ZSU.js";import{a as Gt,c as Qe,D as Jt,b as Zt,d as Ka}from"./dropdown-menu-o8504Ahe.js";import{u as qn,a as vt,K as Wn,P as Gn,b as Jn,C as Zn,s as Qn,d as xt,D as Xn,c as es,S as ts,v as Ha,e as ns,h as Ua}from"./sortable.esm-1IzLCE3w.js";import{r as Ya,s as qa,S as Ut}from"./schema-form-DSVAzke8.js";import{r as wn,u as Wa,d as Ga,a as Ja,i as Za,f as Qa,P as Xa,b as er,S as tr}from"./page-seo-form-CbAafkHJ.js";import{c as nr,C as sr,e as Tn,d as ar,a as rr,g as or}from"./command-CnCEvYjS.js";import{i as ir}from"./FilterLines-0ZErBJ3i.js";import{i as lr}from"./Tool01-nw4j5J0X.js";import{AddSectionModal as cr}from"./add-section-modal-VNTyTVJJ.js";import"./AlertCircle-BiKiI44L.js";import"./SwitchHorizontal01-D9V4WNpS.js";import"./XCircle-DDLSDNYP.js";import"./ArrowUpRight-a9y7JExT.js";import"./ZapSquare-DfDC54JS.js";import"./Users03-DYjDLJbQ.js";import"./CheckCircle-79umy6UR.js";import"./Check-BXjvCNRo.js";import"./ChevronLeft-C6IDOOPU.js";import"./DotsVertical-BfY2m12a.js";import"./Container-Bmp8f1Hw.js";import"./Star01-lcgisujL.js";import"./Palette-B1alDozW.js";import"./HardDrive-CTInlaSO.js";import"./Stars02-bUApAo8o.js";import"./Key01-DhkJOk-2.js";import"./LayoutLeft-C4WMufMy.js";import"./LinkExternal01-pT0NrKlt.js";import"./Monitor01-BqHMMIjb.js";import"./Sun-BhoXpP-F.js";import"./Play--ZCMNFjg.js";import"./SearchMd-BuArn0kO.js";import"./Settings02-CMckE2RK.js";import"./Shield01-XGinfl8i.js";import"./Stars01-CQ0RN6al.js";import"./Upload01-Cmfv30sX.js";import"./User01-of2DRTwj.js";import"./Users01-DYI7DwUF.js";import"./XClose-B1Jrn5dt.js";import"./X-DWbNv8Bl.js";import"./select-BjY8Jgav.js";import"./agent-capabilities-B27hg_M4.js";import"./chat-context-xuPBtQVH.js";import"./tab-id-BJeBBzov.js";import"./use-mcp-client-DR6PB45n.js";import"./decopilot-sse-pool-C-7QzQnf.js";import"./create-sse-subscription-BS5983N4.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./use-virtual-mcp-Cxb5tpje.js";import"./use-collections-d0NY3CF9.js";import"./use-ai-providers-BKDhxtFe.js";import"./use-organization-settings-C_PFgE7g.js";import"./pair-q0PU9j8x.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Qm5PoymQ.js";import"./file-type-icon-C5unlJPE.js";import"./content-blocks-o63cs2vh.js";import"./types-COwjtZM8.js";import"./shell-layout-eEtSpk5j.js";import"./avatar-Cmykl5Hl.js";import"./required-auth-layout-eILzytQh.js";import"./useRouterState-BMTgOPTS.js";import"./use-org-sso-Bc6Fs-WH.js";import"./integration-icon-CCk0_Shy.js";import"./use-navigate-to-agent-COvK7v8V.js";import"./use-connection-Dz8syqkL.js";import"./use-mcp-prompts-BKDHmEg_.js";import"./form-CmvFmoxJ.js";import"./label-Cydnpuha.js";import"./spinner-BggGXeYI.js";import"./drawer-BOb8J64a.js";import"./collection-search-DSz3RDou.js";import"./tabs-aQunvyGd.js";import"./toggle-group-v0racvq3.js";import"./connect-desktop-dialog-Lo4qdhfs.js";import"./agent-icons-Bd8x3NUl.js";import"./checkbox-Djxv9Ar7.js";import"./skeleton-DK2Fokh_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DyB2NAPA.js";import"./card-CANcGy5k.js";import"./popover-BGH6hpUr.js";import"./useInfiniteQuery-Bj28n6ln.js";import"./infiniteQueryObserver-C1PO3LYQ.js";import"./index-DL_YJ_kc.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-BcsrhQn7.js";import"./sidebar-CYu-6Gzi.js";import"./sheet-DruC4GtE.js";import"./toolbar-QrhbD1LQ.js";import"./use-create-virtual-mcp-CakwJE5T.js";import"./github-repo-picker-BNoPWqQE.js";import"./use-mcp-tools-BrZjJ9zc.js";import"./extract-connection-data-Dfy3Qlc3.js";import"./generate-id-yESv9K1i.js";import"./collections-BVLezaR1.js";import"./alert-dialog-C4ynNGJF.js";import"./index-dQSPhEbP.js";import"./use-org-auth-client-6-YfaYzt.js";import"./hover-card-Clt-L-5u.js";import"./task-status-CbuV-3eP.js";import"./use-status-sounds-DadivPgy.js";import"./empty-state-iHDXNEBU.js";import"./resizable-CJjEyhK7.js";import"./use-capability-DGmhThV5.js";import"./header-tab-button-Dcs0BcqM.js";import"./index-CgVH5Gsy.js";import"./textarea-CEsBzC6t.js";import"./user-DxLdHnQg.js";import"./tools-list-Dw6j-mti.js";import"./badge-CYgKxTpF.js";import"./connection-slug-eyAPH6o3.js";import"./switch-DRq3hJSo.js";import"./use-debounced-autosave-C_jxuSEe.js";import"./index-B5koQSO_.js";import"./search-input-BC9i8QlA.js";import"./collection-tabs-BcYP8buy.js";import"./use-secrets-CmzHGX24.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./accordion-BSz8aiEx.js";import"./view-mode-toggle-D7zEkHxC.js";import"./select-model-DOn11Z7b.js";import"./use-automations-DMOY10H-.js";import"./monaco-editor-B1jmgnr2.js";import"./automation-runs-XPUSkViZ.js";import"./table-D3XdCvZp.js";import"./use-infinite-scroll-DbJV2aWp.js";import"./use-members-BQ26-EKO.js";import"./useSuspenseInfiniteQuery-DT54Ek4w.js";import"./automation-list-row-DTxZO-vH.js";import"./connection-card-D82-toy5.js";import"./use-registry-connections-Fz6Tqm1j.js";import"./connection-form-helpers-UH9KShfg.js";import"./calendar-BbdXUff-.js";import"./image-field-fSOsfNOS.js";import"./use-file-configs-BVh0-t8s.js";import"./index-C5VM3lmZ.js";function ur(a){const e=$e.c(38),{open:n,initialName:r,autoLabel:o,isPending:u,onSubmit:h,onOpenChange:d}=a,i=u===void 0?!1:u,[g,v]=N.useState(r),[x,b]=N.useState(n);n!==x&&(b(n),n&&v(r));let S;e[0]!==i||e[1]!==d?(S=T=>{!T&&!i&&d(!1)},e[0]=i,e[1]=d,e[2]=S):S=e[2];const l=S;let _;e[3]!==i||e[4]!==g||e[5]!==h?(_=async T=>{T.preventDefault(),!i&&await h(g.trim())},e[3]=i,e[4]=g,e[5]=h,e[6]=_):_=e[6];const p=_;let R;e[7]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(On,{children:"Rename variant"}),e[7]=R):R=e[7];const f=o||"the rule";let w;e[8]!==f?(w=t.jsxs(Ln,{children:[R,t.jsxs(zn,{children:["Save this matcher as a global block with a custom label. Leave empty to inline the matcher again and fall back to"," ",t.jsx("span",{className:"font-medium",children:f}),"."]})]}),e[8]=f,e[9]=w):w=e[9];let D;e[10]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[10]=D):D=e[10];let j;e[11]===Symbol.for("react.memo_cache_sentinel")?(j=T=>v(T.target.value),e[11]=j):j=e[11];let V;e[12]!==o||e[13]!==i||e[14]!==g?(V=t.jsxs("div",{className:"space-y-1.5 py-4",children:[D,t.jsx(Kn,{id:"variant-rename-name",value:g,onChange:j,placeholder:o,autoFocus:!0,disabled:i})]}),e[12]=o,e[13]=i,e[14]=g,e[15]=V):V=e[15];let k;e[16]!==d?(k=()=>d(!1),e[16]=d,e[17]=k):k=e[17];let $;e[18]!==i||e[19]!==k?($=t.jsx(Ve,{type:"button",variant:"outline",onClick:k,disabled:i,children:"Cancel"}),e[18]=i,e[19]=k,e[20]=$):$=e[20];let C;e[21]!==i?(C=i?t.jsxs(t.Fragment,{children:[t.jsx(Yt,{size:14,className:"animate-spin"}),"Saving…"]}):"Save",e[21]=i,e[22]=C):C=e[22];let A;e[23]!==i||e[24]!==C?(A=t.jsx(Ve,{type:"submit",disabled:i,children:C}),e[23]=i,e[24]=C,e[25]=A):A=e[25];let z;e[26]!==$||e[27]!==A?(z=t.jsxs(In,{children:[$,A]}),e[26]=$,e[27]=A,e[28]=z):z=e[28];let O;e[29]!==p||e[30]!==z||e[31]!==w||e[32]!==V?(O=t.jsx(Fn,{className:"sm:max-w-md",children:t.jsxs("form",{onSubmit:p,children:[w,V,z]})}),e[29]=p,e[30]=z,e[31]=w,e[32]=V,e[33]=O):O=e[33];let E;return e[34]!==l||e[35]!==n||e[36]!==O?(E=t.jsx(Bn,{open:n,onOpenChange:l,children:O}),e[34]=l,e[35]=n,e[36]=O,e[37]=E):E=e[37],E}function It(a,e,n,r,o){const u={...a[e]};if(o.length>1){const h=u.sections,d=[...h?.variants??[]];d[r]&&(d[r]={...d[r],value:n}),u.sections={...h,variants:d}}else u.sections=n;return u}function dr(a){return structuredClone(a)}function mr(a){return!a.isSavedBlock&&!a.isMultivariate}function Cn(a){const e=a.replace(/[^A-Za-z0-9_-]/g,"");return/^[A-Za-z]/.test(e)?e:e?`Block${e}`:""}function Rn(a,e){const n=a.trim();return n?n.includes("/")?"Block name cannot contain slashes.":Object.hasOwn(e,n)?"A block with this name already exists.":/^[A-Za-z][A-Za-z0-9_-]*$/.test(n)?null:"Use letters, numbers, hyphens, or underscores. Must start with a letter.":"Block name is required."}function fr(a){return a.schema?.definitions??a.schema?.$defs??{}}function pr(a,e){const n=fr(e),r=n[btoa(a)];if(!r)return;let o=typeof r.image=="string"?r.image:void 0;if(!o&&Array.isArray(r.allOf)){const u=r.allOf.find(h=>typeof h.$ref=="string")?.$ref;if(typeof u=="string"){const h=u.replace("#/definitions/",""),d=n[h];o=typeof d?.image=="string"?d.image:void 0}}if(o?.includes("{{{"))return o}function hr(a,e){if(!e)return;const n=la(a);if(!n)return;const r=pr(n.resolveType,e);if(!r)return;const o=Ya(r,n.data);if(o)return qa(o)}function Ft(a,e){return a.map((n,r)=>{const o=n.__resolveType??"",u=Xe(o);if(!u&&o!==""&&!o.includes("/")&&o in e){const g=e[o],v=typeof g?.name=="string"&&g.name||o.replace(/[-_]/g," ").replace(/\b\w/g,x=>x.toUpperCase())||`Section ${r+1}`;return{index:r,resolveType:o,label:v,isLazy:!1,isSavedBlock:!0}}const h=u?n.section:void 0,d=u?h?.__resolveType??"":o;if(d===Hn||d===Un){const g=u?h:n,v=Array.isArray(g?.variants)?g.variants:[];if(v.length===1&&(v[0]?.rule?.__resolveType??"")===ca){const S=v[0]?.value??{};let l=S.__resolveType??"";const _=Xe(l);return _&&(l=S.section?.__resolveType??l),{index:r,resolveType:o,label:Ke(l)||`Section ${r+1}`,isHidden:!0,isLazy:_}}const x=v[0]?.value?.__resolveType,b=x?Ke(x):"Section";return{index:r,resolveType:o,label:`Variants of ${b}`,isMultivariate:!0,isLazy:u}}const i=u?n.section?.__resolveType??o:o;if(u&&i!==""&&!i.includes("/")&&i in e){const g=e[i],v=typeof g?.name=="string"&&g.name||i.replace(/[-_]/g," ").replace(/\b\w/g,x=>x.toUpperCase())||`Section ${r+1}`;return{index:r,resolveType:o,label:v,isLazy:!0,isSavedBlock:!0}}return{index:r,resolveType:o,label:Ke(i)||`Section ${r+1}`,isLazy:u}})}const gr="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",vr="text-global-section-fg focus:bg-global-section/12 focus:text-global-section-fg dark:text-global-section-fg-dark dark:focus:bg-global-section/15 dark:focus:text-global-section-fg-dark [&_svg]:!text-global-section";function Dn(a){return Array.from({length:a},(e,n)=>({id:crypto.randomUUID(),index:n}))}function ss(a){return a.map((e,n)=>({...e,index:n}))}function xr(a,e){if(e===a.length)return a;if(e<a.length)return ss(a.slice(0,e));const n=Array.from({length:e-a.length},(r,o)=>({id:crypto.randomUUID(),index:a.length+o}));return[...a,...n]}function as(a){const e=$e.c(20),{section:n,raw:r,meta:o}=a,u=n.isSavedBlock===!0,h=n.isMultivariate===!0;let d;e[0]!==o||e[1]!==r?(d=r&&o?hr(r,o):void 0,e[0]=o,e[1]=r,e[2]=d):d=e[2];const i=d;let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(Ia,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[3]=g):g=e[3];let v;e[4]!==i?(v=i&&t.jsx("img",{src:i,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[4]=i,e[5]=v):v=e[5];let x;e[6]!==h||e[7]!==u?(x=u?{color:ua}:h?{color:"oklch(0.65 0.15 160)"}:void 0,e[6]=h,e[7]=u,e[8]=x):x=e[8];let b;e[9]!==x?(b=t.jsx(qt,{className:"h-4 w-4 shrink-0",style:x}),e[9]=x,e[10]=b):b=e[10];const S=n.isHidden&&"line-through opacity-50";let l;e[11]!==S?(l=de("min-w-0 flex-1 truncate text-sm font-medium",S),e[11]=S,e[12]=l):l=e[12];let _;e[13]!==n.label||e[14]!==l?(_=t.jsx("span",{className:l,children:n.label}),e[13]=n.label,e[14]=l,e[15]=_):_=e[15];let p;return e[16]!==v||e[17]!==b||e[18]!==_?(p=t.jsxs(t.Fragment,{children:[g,v,b,_]}),e[16]=v,e[17]=b,e[18]=_,e[19]=p):p=e[19],p}function rs(a,e){const n=a.isSavedBlock===!0,r=a.isMultivariate===!0;return de("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":n?gr:r?"text-[oklch(0.45_0.15_160)] hover:bg-[oklch(0.65_0.15_160/0.12)] dark:text-[oklch(0.78_0.15_160)] dark:hover:bg-[oklch(0.65_0.15_160/0.15)]":"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function yr(a){const e=$e.c(53),{section:n,raw:r,meta:o,sortableId:u,selected:h,onSelect:d,onDelete:i,onDuplicate:g,onMakeReusable:v,onToggleHidden:x,onToggleLazy:b}=a,S=r?Xe(r.__resolveType??""):!1;let l;e[0]!==u?(l={id:u,animateLayoutChanges:kr},e[0]=u,e[1]=l):l=e[1];const{attributes:_,listeners:p,setNodeRef:R,transform:f,isDragging:w}=Jn(l);let D;e[2]!==f?(D=Zn.Transform.toString(f?{...f,x:0}:null),e[2]=f,e[3]=D):D=e[3];const j=w?0:void 0;let V;e[4]!==D||e[5]!==j?(V={transform:D,opacity:j},e[4]=D,e[5]=j,e[6]=V):V=e[6];const k=V;let $;e[7]!==n?($=mr(n),e[7]=n,e[8]=$):$=e[8];const C=$,A="button",z=0;let O;e[9]!==d?(O=H=>{(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),d())},e[9]=d,e[10]=O):O=e[10];const E=w?"cursor-grabbing":"cursor-pointer";let T;e[11]!==n||e[12]!==h||e[13]!==E?(T=de("touch-none transition-colors",E,rs(n,h)),e[11]=n,e[12]=h,e[13]=E,e[14]=T):T=e[14];let Y;e[15]!==o||e[16]!==r||e[17]!==n?(Y=t.jsx(as,{section:n,raw:r,meta:o}),e[15]=o,e[16]=r,e[17]=n,e[18]=Y):Y=e[18];const oe=!n.isMultivariate&&t.jsx(Ve,{type:"button",variant:"ghost",size:"icon","aria-label":S?"Disable async render":"Enable async render",className:de("h-7 w-7 shrink-0",S?"":"opacity-0 group-hover:opacity-100"),onClick:H=>{H.stopPropagation(),b()},onPointerDown:jr,children:t.jsx(Ba,{className:de("h-3.5 w-3.5",S&&"text-yellow-500")})});let I;e[19]!==x||e[20]!==n.isHidden||e[21]!==n.isMultivariate?(I=!n.isMultivariate&&t.jsx(Ve,{type:"button",variant:"ghost",size:"icon","aria-label":n.isHidden?"Show section":"Hide section",className:de("h-7 w-7 shrink-0",n.isHidden?"opacity-100":"opacity-0 group-hover:opacity-100"),onClick:H=>{H.stopPropagation(),x()},onPointerDown:_r,children:n.isHidden?t.jsx(Fa,{className:"h-3.5 w-3.5"}):t.jsx(za,{className:"h-3.5 w-3.5"})}),e[19]=x,e[20]=n.isHidden,e[21]=n.isMultivariate,e[22]=I):I=e[22];let ie;e[23]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Gt,{asChild:!0,children:t.jsx(Ve,{type:"button",variant:"ghost",size:"icon","aria-label":"Section actions",className:"h-7 w-7 shrink-0 opacity-0 group-hover:opacity-100",onClick:Sr,onPointerDown:br,children:t.jsx(Wt,{className:"h-3.5 w-3.5"})})}),e[23]=ie):ie=e[23];let K;e[24]!==g?(K=H=>{H.stopPropagation(),g()},e[24]=g,e[25]=K):K=e[25];let X;e[26]===Symbol.for("react.memo_cache_sentinel")?(X=t.jsx(Yn,{className:"h-4 w-4"}),e[26]=X):X=e[26];let ae;e[27]!==K?(ae=t.jsxs(Qe,{onClick:K,children:[X,"Duplicate"]}),e[27]=K,e[28]=ae):ae=e[28];let te;e[29]!==C||e[30]!==v?(te=C&&t.jsxs(Qe,{className:vr,onClick:H=>{H.stopPropagation(),v()},children:[t.jsx(qt,{className:"h-4 w-4"}),"Make reusable"]}),e[29]=C,e[30]=v,e[31]=te):te=e[31];let W;e[32]!==i?(W=H=>{H.stopPropagation(),i()},e[32]=i,e[33]=W):W=e[33];let G;e[34]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx(St,{className:"h-4 w-4"}),e[34]=G):G=e[34];let q;e[35]!==W?(q=t.jsxs(Qe,{className:"text-destructive focus:text-destructive",onClick:W,children:[G,"Delete"]}),e[35]=W,e[36]=q):q=e[36];let J;e[37]!==ae||e[38]!==te||e[39]!==q?(J=t.jsxs(Jt,{children:[ie,t.jsxs(Zt,{align:"end",className:"w-44",children:[ae,te,q]})]}),e[37]=ae,e[38]=te,e[39]=q,e[40]=J):J=e[40];let Z;return e[41]!==_||e[42]!==p||e[43]!==d||e[44]!==R||e[45]!==k||e[46]!==T||e[47]!==Y||e[48]!==oe||e[49]!==I||e[50]!==J||e[51]!==O?(Z=t.jsxs("div",{ref:R,style:k,..._,...p,role:A,tabIndex:z,onClick:d,onKeyDown:O,className:T,children:[Y,oe,I,J]}),e[41]=_,e[42]=p,e[43]=d,e[44]=R,e[45]=k,e[46]=T,e[47]=Y,e[48]=oe,e[49]=I,e[50]=J,e[51]=O,e[52]=Z):Z=e[52],Z}function br(a){return a.stopPropagation()}function Sr(a){return a.stopPropagation()}function _r(a){return a.stopPropagation()}function jr(a){return a.stopPropagation()}function kr(){return!1}function Nr(a){const e=$e.c(88),{listKey:n,rawSections:r,sections:o,meta:u,selectedIndex:h,onSelect:d,onReorder:i,onDelete:g,onDuplicate:v,onMakeReusable:x,onToggleHidden:b,onToggleLazy:S,onAddSection:l,canAddSection:_}=a,p=_===void 0?!0:_;let R;e[0]!==o.length?(R=()=>Dn(o.length),e[0]=o.length,e[1]=R):R=e[1];const[f,w]=N.useState(R),[D,j]=N.useState(null),[V,k]=N.useState(n),[$,C]=N.useState(o.length),A=N.useRef(!1);V!==n?(k(n),C(o.length),w(Dn(o.length))):$!==o.length&&(C(o.length),w(le=>xr(le,o.length)));let z;e[2]===Symbol.for("react.memo_cache_sentinel")?(z={activationConstraint:{distance:8}},e[2]=z):z=e[2];let O;e[3]===Symbol.for("react.memo_cache_sentinel")?(O={coordinateGetter:Qn},e[3]=O):O=e[3];const E=qn(vt(Gn,z),vt(Wn,O));let T;e[4]!==f?(T=f.map(wr),e[4]=f,e[5]=T):T=e[5];const Y=T;let oe;e[6]===Symbol.for("react.memo_cache_sentinel")?(oe=le=>{j(String(le.active.id))},e[6]=oe):oe=e[6];const I=oe;let ie;e[7]!==Y||e[8]!==i?(ie=le=>{j(null);const{active:P,over:U}=le;if(!U||P.id===U.id)return;const Me=Y.indexOf(String(P.id)),Oe=Y.indexOf(String(U.id));Me===-1||Oe===-1||(w(He=>ss(xt([...He],Me,Oe))),A.current=!0,requestAnimationFrame(()=>{A.current=!1}),i?.(Me,Oe))},e[7]=Y,e[8]=i,e[9]=ie):ie=e[9];const K=ie;let X;e[10]===Symbol.for("react.memo_cache_sentinel")?(X=()=>{j(null)},e[10]=X):X=e[10];const ae=X;let te,W,G,q,J,Z,H,we,ee,ye,be,Te,_e,Se,Ce;if(e[11]!==D||e[12]!==p||e[13]!==f||e[14]!==Y||e[15]!==K||e[16]!==u||e[17]!==l||e[18]!==g||e[19]!==v||e[20]!==x||e[21]!==d||e[22]!==b||e[23]!==S||e[24]!==r||e[25]!==o||e[26]!==h||e[27]!==E){Se=Symbol.for("react.early_return_sentinel");e:{const le=P=>{A.current||d(P)};if(e[43]!==D||e[44]!==p||e[45]!==f||e[46]!==l||e[47]!==r||e[48]!==o){const P=D?f.find(U=>U.id===D):null;if(q=P!=null?o[P.index]:null,G=P!=null?r[P.index]:void 0,f.length===0){let U;e[52]===Symbol.for("react.memo_cache_sentinel")?(U=t.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:"No sections in this page."}),e[52]=U):U=e[52];const Me=!p;let Oe;e[53]===Symbol.for("react.memo_cache_sentinel")?(Oe=t.jsx(Ht,{size:14}),e[53]=Oe):Oe=e[53];let He;e[54]!==l||e[55]!==Me?(He=t.jsxs("div",{className:"space-y-2",children:[U,t.jsxs(Ve,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Me,onClick:l,children:[Oe,"Add section"]})]}),e[54]=l,e[55]=Me,e[56]=He):He=e[56],Se=He;break e}_e=de(P&&"cursor-grabbing"),e[43]=D,e[44]=p,e[45]=f,e[46]=l,e[47]=r,e[48]=o,e[49]=G,e[50]=q,e[51]=_e}else G=e[49],q=e[50],_e=e[51];W=Xn,we=E,ee=es,ye=I,be=K,Te=ae,te=ts,Z=Y,H=Ha,Ce="space-y-1",J=f.map(P=>{const U=o[P.index];return U?t.jsx(yr,{sortableId:P.id,section:U,raw:r[P.index],meta:u,selected:h===P.index,onSelect:()=>le(P.index),onDelete:()=>g(P.index),onDuplicate:()=>v(P.index),onMakeReusable:()=>x(P.index),onToggleHidden:()=>b(P.index),onToggleLazy:()=>S(P.index)},P.id):null})}e[11]=D,e[12]=p,e[13]=f,e[14]=Y,e[15]=K,e[16]=u,e[17]=l,e[18]=g,e[19]=v,e[20]=x,e[21]=d,e[22]=b,e[23]=S,e[24]=r,e[25]=o,e[26]=h,e[27]=E,e[28]=te,e[29]=W,e[30]=G,e[31]=q,e[32]=J,e[33]=Z,e[34]=H,e[35]=we,e[36]=ee,e[37]=ye,e[38]=be,e[39]=Te,e[40]=_e,e[41]=Se,e[42]=Ce}else te=e[28],W=e[29],G=e[30],q=e[31],J=e[32],Z=e[33],H=e[34],we=e[35],ee=e[36],ye=e[37],be=e[38],Te=e[39],_e=e[40],Se=e[41],Ce=e[42];if(Se!==Symbol.for("react.early_return_sentinel"))return Se;let je;e[57]!==J||e[58]!==Ce?(je=t.jsx("div",{className:Ce,children:J}),e[57]=J,e[58]=Ce,e[59]=je):je=e[59];let Re;e[60]!==te||e[61]!==Z||e[62]!==H||e[63]!==je?(Re=t.jsx(te,{items:Z,strategy:H,children:je}),e[60]=te,e[61]=Z,e[62]=H,e[63]=je,e[64]=Re):Re=e[64];let me;e[65]!==G||e[66]!==q||e[67]!==u?(me=q?t.jsx("div",{className:de("cursor-grabbing shadow-lg ring-1 ring-border/60",rs(q,!1)),children:t.jsx(as,{section:q,raw:G,meta:u})}):null,e[65]=G,e[66]=q,e[67]=u,e[68]=me):me=e[68];let ze;e[69]!==me?(ze=t.jsx(ns,{dropAnimation:null,children:me}),e[69]=me,e[70]=ze):ze=e[70];let ke;e[71]!==W||e[72]!==we||e[73]!==ee||e[74]!==ye||e[75]!==be||e[76]!==Te||e[77]!==Re||e[78]!==ze?(ke=t.jsxs(W,{sensors:we,collisionDetection:ee,onDragStart:ye,onDragEnd:be,onDragCancel:Te,children:[Re,ze]}),e[71]=W,e[72]=we,e[73]=ee,e[74]=ye,e[75]=be,e[76]=Te,e[77]=Re,e[78]=ze,e[79]=ke):ke=e[79];const Ne=!p;let fe;e[80]===Symbol.for("react.memo_cache_sentinel")?(fe=t.jsx(Ht,{size:14}),e[80]=fe):fe=e[80];let De;e[81]!==l||e[82]!==Ne?(De=t.jsxs(Ve,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:Ne,onClick:l,children:[fe,"Add section"]}),e[81]=l,e[82]=Ne,e[83]=De):De=e[83];let re;return e[84]!==_e||e[85]!==ke||e[86]!==De?(re=t.jsxs("div",{className:_e,children:[ke,De]}),e[84]=_e,e[85]=ke,e[86]=De,e[87]=re):re=e[87],re}function wr(a){return a.id}function os(a){return a===Un||a===Hn}function Qt(a,e){if(!(a in e))return null;const n=e[a]??{},r=n.__resolveType??a;return{data:{...n},resolveType:r}}function yt(a,e){const n=a.__resolveType??"";if(!n)return null;if(Xe(n)){const r=a.section??{};return is(r,e)}if(os(n)){const r=a.variants?.[0]?.value;return r?yt(r,e):null}return!n.includes("/")&&n in e?Qt(n,e):{data:{...a},resolveType:n}}function is(a,e){const n=a.__resolveType??"";if(!n)return null;if(os(n)){const r=a.variants?.[0]?.value;return r?yt(r,e):null}return!n.includes("/")&&n in e?Qt(n,e):{data:{...a},resolveType:n}}function at(a,e,n){if(e.isMultivariate)return null;if(e.isSavedBlock){const r=e.isLazy?a.section?.__resolveType??a.__resolveType:a.__resolveType;return Qt(r,n)}if(e.isHidden){const u=(Xe(a.__resolveType)?a.section:a)?.variants?.[0]?.value??a;return yt(u,n)}if(e.isLazy||Xe(a.__resolveType)){const r=a.section??{};return is(r,n)}return yt(a,n)}const Tr=[[/always|matchalways/i,"Users03"],[/device|matchdevice/i,"Phone02"],[/date|matchdate/i,"Calendar"],[/random|matchrandom/i,"Shuffle01"],[/host|matchhost/i,"Globe02"],[/location|matchlocation/i,"MarkerPin01"],[/pathname/i,"Link03"],[/cron|matchcron/i,"Clock"],[/multi|matchmulti/i,"FilterLines"],[/never|matchnever/i,"EyeOff"],[/environment|matchenvironment/i,"Cloud01"],[/eq\.ts|\/eq$/i,"Brackets"],[/user|requser|isdecouser/i,"User01"],[/site|template/i,"LayoutAlt01"]],Cr={"device-mobile":"Phone02","device-desktop":"Monitor01","device-tablet":"Tablet01","calendar-event":"Calendar","calendar-month":"Calendar",clock:"Clock","current-location":"MarkerPin01","map-2":"MarkerPin01","world-search":"Globe02",shuffle:"Shuffle01",filter:"FilterLines","eye-off":"EyeOff",flask:"Beaker02",link:"Link03","git-merge":"GitBranch01",users:"Users03",flag:"Flag01","cloud-storm":"Cloud01",campaign:"Announcement01",experiment:"Beaker02",language:"Globe02","hand-click":"CursorClick01"};function Bt(a){return bt(a)!==void 0}function Xt(a,e){if(e){if(Bt(e))return e;const n=Cr[e];if(n&&Bt(n))return n}for(const[n,r]of Tr)if(n.test(a)&&Bt(r))return r;return"FilterLines"}function Rr(a){return bt(a)??ir}function An(a){const e=$e.c(11),{iconName:n,size:r,className:o}=a,u=r===void 0?"md":r;let h;e[0]!==n?(h=Rr(n),e[0]=n,e[1]=h):h=e[1];const d=h,i=u==="sm"?"size-7":"size-9",g=u==="sm"?16:18;let v;e[2]!==i||e[3]!==o?(v=de("flex shrink-0 items-center justify-center rounded-full bg-muted",i,o),e[2]=i,e[3]=o,e[4]=v):v=e[4];let x;e[5]!==d||e[6]!==g?(x=t.jsx(d,{size:g,className:"text-muted-foreground"}),e[5]=d,e[6]=g,e[7]=x):x=e[7];let b;return e[8]!==v||e[9]!==x?(b=t.jsx("div",{className:v,children:x}),e[8]=v,e[9]=x,e[10]=b):b=e[10],b}const ls="Users03";function Dr(a){const e=a.manifest?.blocks??{},n=[];for(const[r,o]of Object.entries(e))if(r.includes("matchers"))for(const u of Object.keys(o)){if(u.includes("always"))continue;const h=da(u,a);n.push({resolveType:u,title:h.title??Ke(u),description:h.description,iconName:Xt(u,h.icon)})}return n}function Ar(a,e){if(!a)return ls;const n=e.find(r=>r.resolveType===a);return n?n.iconName:Xt(a)}function Pn(a){const e=$e.c(41),{currentRt:n,currentLabel:r,matchers:o,onSelect:u}=a,[h,d]=N.useState(!1);let i;if(e[0]!==n||e[1]!==o){const E=Ar(n,o);i=bt(E),e[0]=n,e[1]=o,e[2]=i}else i=e[2];const g=i;let v;e[3]!==u?(v=E=>{u(E),d(!1)},e[3]=u,e[4]=v):v=e[4];const x=v;let b;e[5]===Symbol.for("react.memo_cache_sentinel")?(b=()=>d(!0),e[5]=b):b=e[5];let S;e[6]!==g?(S=g&&t.jsx(g,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),e[6]=g,e[7]=S):S=e[7];let l;e[8]!==r?(l=t.jsx("span",{className:"flex-1 truncate",children:r}),e[8]=r,e[9]=l):l=e[9];let _;e[10]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx($n,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),e[10]=_):_=e[10];let p;e[11]!==S||e[12]!==l?(p=t.jsxs("button",{type:"button",onClick:b,className:"flex h-10 w-full items-center gap-2 rounded-md border border-input bg-transparent px-3 text-left text-sm shadow-xs transition-colors hover:bg-accent/40 cursor-pointer",children:[S,l,_]}),e[11]=S,e[12]=l,e[13]=p):p=e[13];let R;e[14]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(nr,{placeholder:"Search rules..."}),e[14]=R):R=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(sr,{children:"No rules found."}),e[15]=f):f=e[15];let w;e[16]!==x?(w=()=>x(""),e[16]=x,e[17]=w):w=e[17];const D=!n&&"bg-accent/60";let j;e[18]!==D?(j=de("gap-2.5",D),e[18]=D,e[19]=j):j=e[19];let V;e[20]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(An,{iconName:ls,size:"sm"}),e[20]=V):V=e[20];let k;e[21]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[t.jsx("span",{className:"text-sm",children:"Always"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Target all users"})]}),e[21]=k):k=e[21];let $;e[22]!==w||e[23]!==j?($=t.jsxs(Tn,{value:"always Target all users",onSelect:w,className:j,children:[V,k]}),e[22]=w,e[23]=j,e[24]=$):$=e[24];let C;if(e[25]!==n||e[26]!==x||e[27]!==o){let E;e[29]!==n||e[30]!==x?(E=T=>t.jsxs(Tn,{value:`${T.title} ${T.resolveType} ${T.description??""}`,onSelect:()=>x(T.resolveType),className:de("gap-2.5",n===T.resolveType&&"bg-accent/60"),children:[t.jsx(An,{iconName:T.iconName,size:"sm"}),t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[t.jsx("span",{className:"text-sm",children:T.title}),T.description&&t.jsx("span",{className:"truncate text-xs text-muted-foreground",children:T.description})]})]},T.resolveType),e[29]=n,e[30]=x,e[31]=E):E=e[31],C=o.map(E),e[25]=n,e[26]=x,e[27]=o,e[28]=C}else C=e[28];let A;e[32]!==$||e[33]!==C?(A=t.jsxs(ar,{children:[f,t.jsxs(rr,{children:[$,C]})]}),e[32]=$,e[33]=C,e[34]=A):A=e[34];let z;e[35]!==h||e[36]!==A?(z=t.jsxs(or,{open:h,onOpenChange:d,title:"Choose a rule",description:"Pick how to target users for this variant",className:"sm:max-w-lg",children:[R,A]}),e[35]=h,e[36]=A,e[37]=z):z=e[37];let O;return e[38]!==z||e[39]!==p?(O=t.jsxs(t.Fragment,{children:[p,z]}),e[38]=z,e[39]=p,e[40]=O):O=e[40],O}const Pr="oklch(0.65 0.15 160)",cs="text-[oklch(0.45_0.15_160)] bg-[oklch(0.65_0.15_160/0.18)] dark:text-[oklch(0.78_0.15_160)] dark:bg-[oklch(0.65_0.15_160/0.22)]";function en(a){const e=$e.c(5),{rule:n,matchers:r}=a,o=n?.__resolveType??"";let u;if(e[0]!==r||e[1]!==o){const g=r.find(v=>v.resolveType===o)?.iconName??Xt(o);u=bt(g),e[0]=r,e[1]=o,e[2]=u}else u=e[2];const h=u;if(!h)return null;let d;return e[3]!==h?(d=t.jsx(h,{size:14,className:"shrink-0"}),e[3]=h,e[4]=d):d=e[4],d}function Mn(a){return a.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
|
|
2
|
-
`)}function Kt(a){return a.map((e,n)=>({id:crypto.randomUUID(),index:n,variant:e}))}function Mr(a){return a.map((e,n)=>({...e,index:n}))}function Er(a){const e=$e.c(51),{entry:n,sortableId:r,isActive:o,canDelete:u,decofile:h,meta:d,matchers:i,onSelect:g,onRename:v,onDelete:x}=a;let b;e[0]!==r?(b={id:r,animateLayoutChanges:Or},e[0]=r,e[1]=b):b=e[1];const{attributes:S,listeners:l,setNodeRef:_,transform:p,isDragging:R}=Jn(b);let f;e[2]!==p?(f=Zn.Transform.toString(p?{...p,y:0}:null),e[2]=p,e[3]=f):f=e[3];const w=R?0:void 0;let D;e[4]!==f||e[5]!==w?(D={transform:f,opacity:w},e[4]=f,e[5]=w,e[6]=D):D=e[6];const j=D,V=d??void 0;let k;e[7]!==h||e[8]!==n.variant.rule||e[9]!==V?(k=gt(n.variant.rule,h,V),e[7]=h,e[8]=n.variant.rule,e[9]=V,e[10]=k):k=e[10];const $=k,C=o?cs:"text-muted-foreground hover:bg-muted hover:text-foreground",A=R?"cursor-grabbing":"cursor-grab";let z;e[11]!==C||e[12]!==A?(z=de("group shrink-0 inline-flex items-center rounded-md transition-colors touch-none",C,A),e[11]=C,e[12]=A,e[13]=z):z=e[13];let O;e[14]!==$||e[15]!==i?(O=t.jsx(en,{rule:$,matchers:i}),e[14]=$,e[15]=i,e[16]=O):O=e[16];let E;e[17]!==n.variant.label?(E=t.jsx("span",{className:"truncate",children:n.variant.label}),e[17]=n.variant.label,e[18]=E):E=e[18];let T;e[19]!==S||e[20]!==l||e[21]!==g||e[22]!==O||e[23]!==E?(T=t.jsxs("button",{type:"button",...S,...l,onClick:g,className:"inline-flex items-center gap-1.5 h-8 pl-3 pr-1.5 text-sm font-medium cursor-[inherit]",children:[O,E]}),e[19]=S,e[20]=l,e[21]=g,e[22]=O,e[23]=E,e[24]=T):T=e[24];const Y=`Actions for ${n.variant.label}`,oe=o&&"opacity-100";let I;e[25]!==oe?(I=de("inline-flex h-8 w-6 items-center justify-center pr-1 cursor-pointer transition-opacity","opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100",oe),e[25]=oe,e[26]=I):I=e[26];let ie;e[27]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Wt,{size:12}),e[27]=ie):ie=e[27];let K;e[28]!==Y||e[29]!==I?(K=t.jsx(Gt,{asChild:!0,children:t.jsx("button",{type:"button","aria-label":Y,onClick:$r,onPointerDown:Vr,className:I,children:ie})}),e[28]=Y,e[29]=I,e[30]=K):K=e[30];let X;e[31]===Symbol.for("react.memo_cache_sentinel")?(X=t.jsx(lr,{size:14}),e[31]=X):X=e[31];let ae;e[32]!==v?(ae=t.jsxs(Qe,{onClick:v,children:[X,"Rename"]}),e[32]=v,e[33]=ae):ae=e[33];let te;e[34]===Symbol.for("react.memo_cache_sentinel")?(te=t.jsx(Ka,{}),e[34]=te):te=e[34];const W=!u;let G;e[35]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx(St,{size:14}),e[35]=G):G=e[35];let q;e[36]!==x||e[37]!==W?(q=t.jsxs(Qe,{variant:"destructive",disabled:W,onClick:x,children:[G,"Delete"]}),e[36]=x,e[37]=W,e[38]=q):q=e[38];let J;e[39]!==ae||e[40]!==q?(J=t.jsxs(Zt,{align:"start",className:"w-36",children:[ae,te,q]}),e[39]=ae,e[40]=q,e[41]=J):J=e[41];let Z;e[42]!==K||e[43]!==J?(Z=t.jsxs(Jt,{children:[K,J]}),e[42]=K,e[43]=J,e[44]=Z):Z=e[44];let H;return e[45]!==_||e[46]!==j||e[47]!==T||e[48]!==Z||e[49]!==z?(H=t.jsxs("div",{ref:_,style:j,className:z,children:[T,Z]}),e[45]=_,e[46]=j,e[47]=T,e[48]=Z,e[49]=z,e[50]=H):H=e[50],H}function Vr(a){return a.stopPropagation()}function $r(a){return a.stopPropagation()}function Or(){return!1}function Lr(a){const e=$e.c(13),{variant:n,decofile:r,meta:o,matchers:u}=a,h=o??void 0;let d;e[0]!==r||e[1]!==h||e[2]!==n.rule?(d=gt(n.rule,r,h),e[0]=r,e[1]=h,e[2]=n.rule,e[3]=d):d=e[3];const i=d;let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=de("inline-flex items-center gap-1.5 h-8 pl-3 pr-3 text-sm font-medium rounded-md shadow-lg ring-1 ring-border/60 cursor-grabbing",cs),e[4]=g):g=e[4];let v;e[5]!==i||e[6]!==u?(v=t.jsx(en,{rule:i,matchers:u}),e[5]=i,e[6]=u,e[7]=v):v=e[7];let x;e[8]!==n.label?(x=t.jsx("span",{className:"truncate",children:n.label}),e[8]=n.label,e[9]=x):x=e[9];let b;return e[10]!==v||e[11]!==x?(b=t.jsxs("div",{className:g,children:[v,x]}),e[10]=v,e[11]=x,e[12]=b):b=e[12],b}function zr(a){const e=$e.c(77),{listKey:n,variants:r,activeIndex:o,decofile:u,meta:h,matchers:d,onSelect:i,onReorder:g,onRename:v,onDelete:x,onAdd:b}=a;let S;e[0]!==r?(S=()=>Kt(r),e[0]=r,e[1]=S):S=e[1];const[l,_]=N.useState(S),[p,R]=N.useState(null),[f,w]=N.useState(n),[D,j]=N.useState(r.length);let V;e[2]!==r?(V=()=>Mn(r),e[2]=r,e[3]=V):V=e[3];const[k,$]=N.useState(V),C=N.useRef(!1),A=Mn(r);f!==n?(w(n),j(r.length),$(A),_(Kt(r))):D!==r.length?(j(r.length),$(A),_(Kt(r))):k!==A&&($(A),_(le=>r.map((P,U)=>({id:le[U]?.id??crypto.randomUUID(),index:U,variant:P}))));let z;e[4]===Symbol.for("react.memo_cache_sentinel")?(z={activationConstraint:{distance:8}},e[4]=z):z=e[4];let O;e[5]===Symbol.for("react.memo_cache_sentinel")?(O={coordinateGetter:Qn},e[5]=O):O=e[5];const E=qn(vt(Gn,z),vt(Wn,O));let T;e[6]!==l?(T=l.map(Ir),e[6]=l,e[7]=T):T=e[7];const Y=T,oe=r.length>1;let I;e[8]!==l?(I=le=>{const P=String(le.active.id);R(l.find(U=>U.id===P)??null)},e[8]=l,e[9]=I):I=e[9];const ie=I;let K;e[10]!==Y||e[11]!==g?(K=le=>{R(null);const{active:P,over:U}=le;if(!U||P.id===U.id)return;const Me=Y.indexOf(String(P.id)),Oe=Y.indexOf(String(U.id));Me===-1||Oe===-1||(_(He=>Mr(xt([...He],Me,Oe))),C.current=!0,requestAnimationFrame(()=>{C.current=!1}),g(Me,Oe))},e[10]=Y,e[11]=g,e[12]=K):K=e[12];const X=K;let ae;e[13]===Symbol.for("react.memo_cache_sentinel")?(ae=()=>{R(null)},e[13]=ae):ae=e[13];const te=ae;let W,G,q,J,Z,H,we,ee,ye,be,Te,_e;if(e[14]!==p||e[15]!==o||e[16]!==oe||e[17]!==u||e[18]!==l||e[19]!==Y||e[20]!==X||e[21]!==ie||e[22]!==d||e[23]!==h||e[24]!==x||e[25]!==v||e[26]!==i||e[27]!==E){const le=U=>{C.current||i(U)};Te="flex items-center border-b shrink-0";const P=p&&"cursor-grabbing";e[40]!==P?(be=de("flex flex-1 min-w-0 items-center gap-1.5 pl-3 pr-2 py-2 overflow-x-auto",P),e[40]=P,e[41]=be):be=e[41],G=Xn,Z=E,H=es,we=ie,ee=X,ye=te,W=ts,_e=Y,q=Ua,J=l.map(U=>t.jsx(Er,{sortableId:U.id,entry:U,isActive:U.index===o,canDelete:oe,decofile:u,meta:h,matchers:d,onSelect:()=>le(U.index),onRename:()=>v(U.index),onDelete:()=>x(U.index)},U.id)),e[14]=p,e[15]=o,e[16]=oe,e[17]=u,e[18]=l,e[19]=Y,e[20]=X,e[21]=ie,e[22]=d,e[23]=h,e[24]=x,e[25]=v,e[26]=i,e[27]=E,e[28]=W,e[29]=G,e[30]=q,e[31]=J,e[32]=Z,e[33]=H,e[34]=we,e[35]=ee,e[36]=ye,e[37]=be,e[38]=Te,e[39]=_e}else W=e[28],G=e[29],q=e[30],J=e[31],Z=e[32],H=e[33],we=e[34],ee=e[35],ye=e[36],be=e[37],Te=e[38],_e=e[39];let Se;e[42]!==W||e[43]!==q||e[44]!==J||e[45]!==_e?(Se=t.jsx(W,{items:_e,strategy:q,children:J}),e[42]=W,e[43]=q,e[44]=J,e[45]=_e,e[46]=Se):Se=e[46];let Ce;e[47]!==p||e[48]!==u||e[49]!==d||e[50]!==h?(Ce=p?t.jsx(Lr,{variant:p.variant,decofile:u,meta:h,matchers:d}):null,e[47]=p,e[48]=u,e[49]=d,e[50]=h,e[51]=Ce):Ce=e[51];let je;e[52]!==Ce?(je=t.jsx(ns,{dropAnimation:null,children:Ce}),e[52]=Ce,e[53]=je):je=e[53];let Re;e[54]!==G||e[55]!==Z||e[56]!==H||e[57]!==we||e[58]!==ee||e[59]!==ye||e[60]!==Se||e[61]!==je?(Re=t.jsxs(G,{sensors:Z,collisionDetection:H,onDragStart:we,onDragEnd:ee,onDragCancel:ye,children:[Se,je]}),e[54]=G,e[55]=Z,e[56]=H,e[57]=we,e[58]=ee,e[59]=ye,e[60]=Se,e[61]=je,e[62]=Re):Re=e[62];let me;e[63]!==be||e[64]!==Re?(me=t.jsx("div",{className:be,children:Re}),e[63]=be,e[64]=Re,e[65]=me):me=e[65];let ze;e[66]===Symbol.for("react.memo_cache_sentinel")?(ze={color:Pr},e[66]=ze):ze=e[66];let ke;e[67]===Symbol.for("react.memo_cache_sentinel")?(ke=t.jsx(Ht,{size:14}),e[67]=ke):ke=e[67];let Ne;e[68]!==b?(Ne=t.jsx(rt,{asChild:!0,children:t.jsx(Ve,{type:"button",variant:"ghost",size:"icon","aria-label":"Add variant",className:"size-8 shrink-0 cursor-pointer",style:ze,onClick:b,children:ke})}),e[68]=b,e[69]=Ne):Ne=e[69];let fe;e[70]===Symbol.for("react.memo_cache_sentinel")?(fe=t.jsx(ot,{side:"bottom",children:"Add variant"}),e[70]=fe):fe=e[70];let De;e[71]!==Ne?(De=t.jsx("div",{className:"shrink-0 pr-3 pl-1 py-2",children:t.jsxs(it,{children:[Ne,fe]})}),e[71]=Ne,e[72]=De):De=e[72];let re;return e[73]!==Te||e[74]!==me||e[75]!==De?(re=t.jsxs("div",{className:Te,children:[me,De]}),e[73]=Te,e[74]=me,e[75]=De,e[76]=re):re=e[76],re}function Ir(a){return a.id}function Fr(a){const e=$e.c(37),{open:n,onOpenChange:r,defaultBlockId:o,isPending:u,onSubmit:h}=a,d=o===void 0?"":o,i=u===void 0?!1:u,[g,v]=N.useState(d),[x,b]=N.useState(n);n!==x&&(b(n),n&&v(d));let S;e[0]!==i||e[1]!==r?(S=E=>{!E&&!i&&r(!1)},e[0]=i,e[1]=r,e[2]=S):S=e[2];const l=S;let _;e[3]!==g||e[4]!==i||e[5]!==h?(_=async E=>{E.preventDefault();const T=g.trim();!T||i||await h(T)},e[3]=g,e[4]=i,e[5]=h,e[6]=_):_=e[6];const p=_;let R;e[7]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsxs(Ln,{children:[t.jsx(On,{children:"Save as global"}),t.jsx(zn,{children:"Save this section as a global block so it can be reused on other pages."})]}),e[7]=R):R=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("label",{htmlFor:"block-id",className:"text-sm font-medium",children:"Block name"}),e[8]=f):f=e[8];let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=E=>v(E.target.value),e[9]=w):w=e[9];let D;e[10]!==g||e[11]!==i?(D=t.jsxs("div",{className:"py-4 space-y-2",children:[f,t.jsx(Kn,{id:"block-id",value:g,onChange:w,placeholder:"MyNewBlock",autoFocus:!0,disabled:i})]}),e[10]=g,e[11]=i,e[12]=D):D=e[12];let j;e[13]!==r?(j=()=>r(!1),e[13]=r,e[14]=j):j=e[14];let V;e[15]!==i||e[16]!==j?(V=t.jsx(Ve,{type:"button",variant:"outline",onClick:j,disabled:i,children:"Cancel"}),e[15]=i,e[16]=j,e[17]=V):V=e[17];let k;e[18]!==g||e[19]!==i?(k=!g.trim()||i,e[18]=g,e[19]=i,e[20]=k):k=e[20];let $;e[21]!==i?($=i?t.jsxs(t.Fragment,{children:[t.jsx(Yt,{size:14,className:"animate-spin"}),"Saving…"]}):"Save",e[21]=i,e[22]=$):$=e[22];let C;e[23]!==k||e[24]!==$?(C=t.jsx(Ve,{type:"submit",disabled:k,children:$}),e[23]=k,e[24]=$,e[25]=C):C=e[25];let A;e[26]!==V||e[27]!==C?(A=t.jsxs(In,{children:[V,C]}),e[26]=V,e[27]=C,e[28]=A):A=e[28];let z;e[29]!==p||e[30]!==A||e[31]!==D?(z=t.jsx(Fn,{className:"sm:max-w-md",children:t.jsxs("form",{onSubmit:p,children:[R,D,A]})}),e[29]=p,e[30]=A,e[31]=D,e[32]=z):z=e[32];let O;return e[33]!==l||e[34]!==n||e[35]!==z?(O=t.jsx(Bn,{open:n,onOpenChange:l,children:z}),e[33]=l,e[34]=n,e[35]=z,e[36]=O):O=e[36],O}const Br="oklch(0.65 0.15 160)",Kr="text-[oklch(0.45_0.15_160)] hover:bg-[oklch(0.65_0.15_160/0.12)] dark:text-[oklch(0.78_0.15_160)] dark:hover:bg-[oklch(0.65_0.15_160/0.15)]",Hr="text-[oklch(0.45_0.15_160)] bg-[oklch(0.65_0.15_160/0.18)] dark:text-[oklch(0.78_0.15_160)] dark:bg-[oklch(0.65_0.15_160/0.2)]";function Ur(a){const e=$e.c(33),{variant:n,selected:r,canDelete:o,onSelect:u,onDuplicate:h,onDelete:d}=a;let i;e[0]!==u?(i=A=>{A.target===A.currentTarget&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),u())},e[0]=u,e[1]=i):i=e[1];const g=r?Hr:Kr;let v;e[2]!==g?(v=de("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors cursor-pointer",g),e[2]=g,e[3]=v):v=e[3];let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(qt,{className:"h-4 w-4 shrink-0",style:{color:Br}}),e[4]=x):x=e[4];let b;e[5]!==n.label?(b=t.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:n.label}),e[5]=n.label,e[6]=b):b=e[6];const S=`Open actions for ${n.label}`;let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Wt,{size:14}),e[7]=l):l=e[7];let _;e[8]!==S?(_=t.jsx(Gt,{asChild:!0,children:t.jsx(Ve,{type:"button",variant:"ghost",size:"icon","aria-label":S,className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100",onClick:qr,onPointerDown:Yr,children:l})}),e[8]=S,e[9]=_):_=e[9];let p;e[10]!==h?(p=A=>{A.stopPropagation(),h()},e[10]=h,e[11]=p):p=e[11];let R;e[12]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(Yn,{size:14}),e[12]=R):R=e[12];let f;e[13]!==p?(f=t.jsxs(Qe,{onClick:p,children:[R,"Duplicate"]}),e[13]=p,e[14]=f):f=e[14];const w=!o;let D;e[15]!==d?(D=A=>{A.stopPropagation(),d()},e[15]=d,e[16]=D):D=e[16];let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(St,{size:14}),e[17]=j):j=e[17];let V;e[18]!==w||e[19]!==D?(V=t.jsxs(Qe,{variant:"destructive",disabled:w,onClick:D,children:[j,"Delete"]}),e[18]=w,e[19]=D,e[20]=V):V=e[20];let k;e[21]!==f||e[22]!==V?(k=t.jsxs(Zt,{align:"end",children:[f,V]}),e[21]=f,e[22]=V,e[23]=k):k=e[23];let $;e[24]!==k||e[25]!==_?($=t.jsxs(Jt,{children:[_,k]}),e[24]=k,e[25]=_,e[26]=$):$=e[26];let C;return e[27]!==u||e[28]!==i||e[29]!==$||e[30]!==v||e[31]!==b?(C=t.jsxs("div",{role:"button",tabIndex:0,onClick:u,onKeyDown:i,className:v,children:[x,b,$]}),e[27]=u,e[28]=i,e[29]=$,e[30]=v,e[31]=b,e[32]=C):C=e[32],C}function Yr(a){return a.stopPropagation()}function qr(a){return a.stopPropagation()}function Wr(a){const e=$e.c(25),{variants:n,selectedIndex:r,onSelect:o,onDuplicate:u,onDelete:h,onRemoveAll:d}=a,i=n.length>1;let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variants"}),e[0]=g):g=e[0];let v;e[1]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(St,{size:14}),e[1]=v):v=e[1];let x;e[2]!==d?(x=t.jsx(rt,{asChild:!0,children:t.jsx(Ve,{type:"button",variant:"ghost",size:"icon","aria-label":"Remove all variants",className:"size-6 text-muted-foreground hover:text-destructive",onClick:d,children:v})}),e[2]=d,e[3]=x):x=e[3];let b;e[4]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(ot,{children:"Remove all variants"}),e[4]=b):b=e[4];let S;e[5]!==x?(S=t.jsxs("div",{className:"flex items-center justify-between",children:[g,t.jsxs(it,{children:[x,b]})]}),e[5]=x,e[6]=S):S=e[6];let l;if(e[7]!==i||e[8]!==h||e[9]!==u||e[10]!==o||e[11]!==r||e[12]!==n){let R;e[14]!==i||e[15]!==h||e[16]!==u||e[17]!==o||e[18]!==r?(R=f=>t.jsx(Ur,{variant:f,selected:f.index===r,canDelete:i,onSelect:()=>o(f.index),onDuplicate:()=>u(f.index),onDelete:()=>h(f.index)},`${f.label}-${f.index}`),e[14]=i,e[15]=h,e[16]=u,e[17]=o,e[18]=r,e[19]=R):R=e[19],l=n.map(R),e[7]=i,e[8]=h,e[9]=u,e[10]=o,e[11]=r,e[12]=n,e[13]=l}else l=e[13];let _;e[20]!==l?(_=t.jsx("div",{className:"space-y-0.5",children:l}),e[20]=l,e[21]=_):_=e[21];let p;return e[22]!==S||e[23]!==_?(p=t.jsxs("div",{className:"space-y-1 border-b p-2",children:[S,_]}),e[22]=S,e[23]=_,e[24]=p):p=e[24],p}function En(a){const e=$e.c(14),{activeSchema:n,formValue:r,formResetKey:o,onFormChange:u,onBreadcrumbChange:h,emptyMessage:d,beforeForm:i,seoResolveType:g,siteDefaultSeo:v}=a;let x;e[0]!==n||e[1]!==o||e[2]!==r||e[3]!==h||e[4]!==u||e[5]!==g||e[6]!==v?(x=n&&r?g?t.jsx(tr,{schema:n,resolveType:g,value:r,formResetKey:o,onChange:u,onBreadcrumbChange:h,siteDefaultSeo:v}):t.jsx(Ut,{schema:n,value:r,onChange:u,basePath:"",breadcrumbPath:[],onBreadcrumbChange:h},o):null,e[0]=n,e[1]=o,e[2]=r,e[3]=h,e[4]=u,e[5]=g,e[6]=v,e[7]=x):x=e[7];const b=x;let S;e[8]!==d||e[9]!==b?(S=b??t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:d}),e[8]=d,e[9]=b,e[10]=S):S=e[10];let l;return e[11]!==i||e[12]!==S?(l=t.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:t.jsxs("div",{className:"mx-auto max-w-2xl",children:[i,S]})}),e[11]=i,e[12]=S,e[13]=l):l=e[13],l}const Gr="text-[oklch(0.45_0.15_160)] bg-[oklch(0.65_0.15_160/0.18)] dark:text-[oklch(0.78_0.15_160)] dark:bg-[oklch(0.65_0.15_160/0.22)]",Jr=a=>a.charAt(0).toUpperCase()+a.slice(1).toLowerCase();function Vn(a){const{start:e,end:n}=a,r=typeof e=="string"?e:"",o=typeof n=="string"?n:"";if(!r&&!o)return null;const u=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"}),h=g=>{if(!g)return null;const v=new Date(g);return Number.isNaN(v.getTime())?null:u.format(v)},d=h(r),i=h(o);return d&&i?`${d} → ${i}`:d?`From ${d}`:i?`Until ${i}`:null}function We(a){if(!a)return"Default";const e=a.__resolveType??"";if(["website/matchers/always.ts","$live/matchers/MatchAlways.ts"].includes(e)||e==="")return"Default";switch(e){case"website/matchers/never.ts":return"Hidden";case"website/matchers/device.ts":case"$live/matchers/MatchDevice.ts":{const{mobile:r,tablet:o,desktop:u,devices:h=[]}=a,d=[...h];return r&&d.push("Mobile"),o&&d.push("Tablet"),u&&d.push("Desktop"),d.length>0?d.map(Jr).join(" & "):Ke(e)}case"website/matchers/date.ts":case"$live/matchers/MatchDate.ts":return Vn(a)??Ke(e);case"website/matchers/random.ts":case"$live/matchers/MatchRandom.ts":{const{traffic:r}=a;return typeof r=="number"?`${Math.ceil(r*100)}% of sessions`:Ke(e)}case"website/matchers/host.ts":case"$live/matchers/MatchHost.ts":{const{includes:r,match:o}=a,u=[];return r&&u.push(r),o&&u.push(o),u.length>0?u.join(" - "):Ke(e)}case"website/matchers/pathname.ts":{const r=a.case,{type:o,pathname:u}=r??{};return o&&u?`Pathname ${o} ${u}`:Ke(e)}case"website/matchers/location.ts":case"$live/matchers/MatchLocation.ts":{const{includeLocations:r,excludeLocations:o}=a,u=i=>[i.city,i.regionCode,i.country].filter(Boolean).join(" - "),h=r?.[0];if(h){const i=(r?.length??0)-1;return`${u(h)}${i>0?` +${i}`:""}`}const d=o?.[0];if(d){const i=(o?.length??0)-1;return`Except ${u(d)}${i>0?` +${i}`:""}`}return"Any location"}case"website/matchers/multi.ts":case"$live/matchers/MatchMulti.ts":{const{matchers:r,op:o="AND"}=a;return r&&r.length>0?r.map(We).join(` ${o} `):Ke(e)}default:{const r=Vn(a);return r||Ke(e)||"Default"}}}function Zr(a,e){return Sa(a,e,We)}function Qr(a){const e=$e.c(13),{pageKey:n,initialName:r,initialPath:o,onFieldChange:u}=a,[h,d]=N.useState(r),[i,g]=N.useState(o),[v,x]=N.useState(n);v!==n&&(x(n),d(r),g(o));let b;e[0]!==u?(b=R=>{d(R.target.value),u("name",R.target.value)},e[0]=u,e[1]=b):b=e[1];let S;e[2]!==h||e[3]!==b?(S=t.jsx("input",{type:"text",value:h,onChange:b,className:"w-full bg-transparent text-sm font-semibold truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:"Page name"}),e[2]=h,e[3]=b,e[4]=S):S=e[4];let l;e[5]!==u?(l=R=>{g(R.target.value),u("path",R.target.value)},e[5]=u,e[6]=l):l=e[6];let _;e[7]!==i||e[8]!==l?(_=t.jsx("input",{type:"text",value:i,onChange:l,className:"w-full bg-transparent text-xs text-muted-foreground truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:"/path"}),e[7]=i,e[8]=l,e[9]=_):_=e[9];let p;return e[10]!==S||e[11]!==_?(p=t.jsxs("div",{className:"space-y-1",children:[S,_]}),e[10]=S,e[11]=_,e[12]=p):p=e[12],p}function Yl({orgSlug:a,virtualMcpId:e,branch:n,previewReady:r=!0,previewUrl:o,currentPath:u,activePageBlockKey:h=null,activeGlobalBlockKey:d=null,externalSelectedIndex:i,onSaved:g,initialEditSeo:v=!1,onExitSeo:x,onViewJsonFile:b}){const S=r?{orgSlug:a,virtualMcpId:e,branch:n}:null,{data:l,isLoading:_}=ma(S),{data:p,isLoading:R}=fa(S),[f,w]=N.useState(null),[D,j]=N.useState(null),[V,k]=N.useState(null),[$,C]=N.useState(0),[A,z]=N.useState(void 0),[O,E]=N.useState(null),[T,Y]=N.useState(null),[oe,I]=N.useState([]),[ie,K]=N.useState(0),[X,ae]=N.useState(null),[te,W]=N.useState(null),[G,q]=N.useState(!0),[J,Z]=N.useState(!1),[H,we]=N.useState(!1),[ee,ye]=N.useState(v),[be,Te]=N.useState(v);v&&!be&&(Te(!0),ye(!0),w(null),j(null),k(null),I([])),!v&&be&&Te(!1);const[_e,Se]=N.useState(null),[Ce,je]=N.useState(void 0),[Re,me]=N.useState([]),[ze,ke]=N.useState(0),[Ne,fe]=N.useState(0),[De,re]=N.useState(null),[le,P]=N.useState(null),[U,Me]=N.useState(null),Oe=ea(),He=`${a}/${e}/${n}`,_t=pa({orgSlug:a,virtualMcpId:e,branch:n}),[us,ds]=N.useState(u),[ms,fs]=N.useState(h),[ps,hs]=N.useState(d);(us!==u||ms!==h||ps!==d)&&(queueMicrotask(()=>_t.flush()),ds(u),fs(h),hs(d),w(null),j(null),k(null),C(0),E(null),Y(null),fe(0),re(null),P(null),I([]),K(s=>s+1),ye(!1),Se(null),je(void 0),me([]),ke(s=>s+1));const Ee=ha({orgSlug:a,virtualMcpId:e,branch:n}),tn=ga({orgSlug:a,virtualMcpId:e,branch:n}),[jt,nn]=N.useState(!1),kt=N.useRef(null),et=N.useRef(null),tt=N.useRef(null),Nt=N.useRef({}),Ye=N.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!r||_||R)return t.jsx("div",{className:"h-full w-full flex items-center justify-center",children:t.jsx(Yt,{size:20,className:"animate-spin text-muted-foreground"})});if(!l||!p)return t.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:"Could not load site data."});const sn=va(l),an=ba,pe=!!d,Ie=pe?null:h?sn.find(s=>s.key===h)??null:sn.find(s=>an(s.path)===an(u))??null,L=pe?d:Ie?.key??null,wt=pe&&d?l[d]:void 0,rn=pe&&d&&wt?xa(d,wt):pe&&d?d:"",Tt=!pe&&L&&l[L]?l[L]:null,Ct=ee&&l&&p&&L&&Ie?wn(l,{kind:"page",pageKey:L,pageName:String(Ie.name??""),path:String(Ie.path??"")},p):null,gs=ee?Tt?.seo:void 0,Rt=Ce!==void 0?Ce:gs,vs=ee?Wa(Rt):void 0,xs=Ct?.seoTypeOptions??[],ys=ee&&p?Ga(p):"",on=_e??vs??{},Dt=ee&&Ct?Ja(on,Ct):null,bs=ee&&Dt&&Za(Rt)?pt(Dt,p):null,Ss=ee?Qa(l,p)?.seoData:void 0,Fe=pe?[{label:"Default",sections:[{__resolveType:d}]}]:Zr(Tt?.sections,l??{}),ut=Fe.length>1,Ae=Math.min($,Fe.length-1),Ge=Fe[Ae],ne=Ge?.sections??[],Le=Ft(ne,l);if(pe&&d&&U!==d){Me(d);const s=ne[0],c=Le[0];if(s&&c){w(0),fe(0),I([]);const m=at(s,c,l);m&&(j(m.data),k(m.resolveType),P(null),re(null))}}!pe&&U!==null&&Me(null),Ye.current={rawSections:ne,parsedSections:Le,decofile:l??{},activePageKey:L,pageVariants:Fe,variantIndex:Ae,sectionVariantIndex:Ne,selectedSectionIndex:f};const nt=(s,c,m)=>{const y=Ze(s,c);if(!y){j(null),k(null),P(null),re(null);return}const B=jn(y,We)[m];if(!B){j(null),k(null),P(null),re(null);return}const F=_a(B.value,l);j(F?.data??null),k(F?.resolveType??null);const{resolveType:se,formValue:ce}=$t(B.rule,l,p??void 0);P(se),re(ce)};if(i!==void 0&&i!==A&&(z(i??null),typeof i=="number")){const s=ne[i],c=Le[i];if(s&&c)if(w(i),fe(0),I([]),K(m=>m+1),c.isMultivariate)nt(s,c,0);else{const m=at(s,c,l);m?(j(m.data),k(m.resolveType)):(j(null),k(null)),P(null),re(null)}}const At=V&&p?pt(V,p):null,Ue=(s,c)=>{if(!L)return;const m=It(l,L,s,Ae,Fe);Ee.mutate({blockKey:L,data:m},{onSuccess:()=>c?.onSuccess?.()??g?.(),onError:y=>xe.error(`Save failed: ${y.message}`)})},lt=()=>{w(null),j(null),k(null),fe(0),re(null),P(null),I([]),K(s=>s+1)},_s=(s,c)=>{kt.current&&clearTimeout(kt.current);const m=Ye.current.sectionVariantIndex;kt.current=setTimeout(()=>{const{rawSections:y,parsedSections:M,decofile:B,activePageKey:F,pageVariants:se,variantIndex:ce}=Ye.current,Q=y[c];if(!Q)return;const ue=M[c];if(!ue)return;if(ue.isSavedBlock){const ge=ue.isLazy?Q.section?.__resolveType??Q.__resolveType:Q.__resolveType;Ee.mutate({blockKey:ge,data:s},{onSuccess:()=>g?.(),onError:ve=>xe.error(`Save failed: ${ve.message}`)});return}if(!F)return;const he={...B[F]},Pe=[...y];if(ue.isMultivariate){const ge=Ze(Q,ue);if(!ge||!F)return;const ve=Oa(ge,m,s);Pe[c]=ht(Q,ue,ve)}else if(ue.isHidden){const ge=Xe(Q.__resolveType),ve=ge?{...Q.section}:{...Q},Be=Array.isArray(ve.variants)?[...ve.variants]:[];Be[0]&&(Be[0]={...Be[0],value:s}),ve.variants=Be,ge?Pe[c]={...Q,section:ve}:Pe[c]=ve}else ue.isLazy?Pe[c]={...Q,section:s}:Pe[c]=s;if(se.length>1){const ge=he.sections,ve=[...ge?.variants??[]];ve[ce]&&(ve[ce]={...ve[ce],value:Pe}),he.sections={...ge,variants:ve}}else he.sections=Pe;Ee.mutate({blockKey:F,data:he},{onSuccess:()=>g?.(),onError:ge=>xe.error(`Save failed: ${ge.message}`)})},zt)},js=s=>{w(s),fe(0),I([]),K(M=>M+1);const c=ne[s],m=Le[s];if(!c||!m)return;if(m.isMultivariate){nt(c,m,0);return}const y=at(c,m,l);if(!y){j(null),k(null),P(null),re(null);return}j(y.data),k(y.resolveType),P(null),re(null)},ln=s=>{const c=s;j(c),f!==null&&_s(c,f)},Pt=s=>{if(!L||!l||!p||!Ie)return;const c={kind:"page",pageKey:L,pageName:String(Ie.name??""),path:String(Ie.path??"")},m=wn(l,c,p);m&&_t.save(L,()=>{const y=Oe.getQueryData(ta.decofile(He))?.[L];if(!y||typeof y!="object"||y===null||Array.isArray(y))return null;const M={...y,...Nt.current};return Nt.current={},s?.raw!==void 0?{...M,seo:s.raw}:s?.inner!==void 0?er(c,m,M,s.inner):M})},ks=(s,c)=>{L&&(Nt.current[s]=c,Pt())},Ns=(s,c)=>{if(!L)return;const m=xt([...ne],s,c);f!==null&&(f===s?w(c):s<f&&c>=f?w(f-1):s>f&&c<=f&&w(f+1)),Ue(m)},ws=s=>{if(!L)return;const c=ne.filter((m,y)=>y!==s);f===s?lt():f!==null&&f>s&&w(f-1),Ue(c)},Ts=s=>{if(!L)return;const c=ne[s];if(!c)return;const m=[...ne];m.splice(s+1,0,dr(c)),f!==null&&f>s&&w(f+1),Ue(m)},Cs=s=>{if(!L)return;const c=ne[s],m=Le[s];if(!c||!m||m.isMultivariate)return;const y=m.isHidden?Da(c):Aa(c);if(!y)return;const M=[...ne];M[s]=y,f===s&<(),Ue(M)},Rs=s=>{if(!L)return;const c=ne[s],m=Le[s];if(!c||!m||m.isMultivariate)return;const y=Ra(c);if(!y)return;const M=[...ne];M[s]=y,f===s&<(),Ue(M)},Ds=s=>{if(!L)return;const c=[...ne,{__resolveType:s.resolveType}],m=c.length-1;Ue(c,{onSuccess:()=>{Z(!1),w(m),fe(0),I([]),K(F=>F+1);const y=c[m],M=Ft(c,l)[m];if(!y||!M)return;if(M.isMultivariate){nt(y,M,0);return}const B=at(y,M,l);if(!B){j(null),k(null),P(null),re(null);return}j(B.data),k(B.resolveType),P(null),re(null)}})},As=s=>{if(f===null)return;const c=ne[f],m=Le[f];!c||!m?.isMultivariate||(fe(s),I([]),K(y=>y+1),nt(c,m,s))},Ps=s=>{if(f===null||!L)return;const c=ne[f],m=Le[f];if(!c||!m?.isMultivariate)return;const y=Ze(c,m);if(!y)return;const M=Ta(y,s);if(!M){xe.error("Cannot delete the only variant.");return}const B=[...ne];B[f]=ht(c,m,M);const F=M.variants;let se=Ne;s===Ne?se=Math.min(s,F.length-1):s<Ne&&(se=Ne-1),fe(se),I([]),K(ce=>ce+1),nt(B[f],m,se),Ue(B)},Ms=s=>{if(f===null||!L)return;const c=ne[f],m=Le[f];if(!c||!m?.isMultivariate)return;const y=Ze(c,m);if(!y)return;const M=Ca(y,s),B=[...ne];B[f]=ht(c,m,M);const F=s+1;fe(F),I([]),K(se=>se+1),nt(B[f],m,F),Ue(B)},Es=()=>{if(f===null||!L)return;const s=ne[f],c=Le[f];if(!s||!c?.isMultivariate)return;const m=Ze(s,c);if(!m)return;const y=wa(s,c,m);if(!y){xe.error("Could not remove variants.");return}const M=[...ne];M[f]=y;const B=Ft(M,l)[f];if(!B)return;fe(0),P(null),re(null),I([]),K(se=>se+1);const F=at(y,B,l);F?(j(F.data),k(F.resolveType)):(j(null),k(null)),Ue(M)},Vs=async s=>{if(X===null||!L)return;const c=Rn(s,l);if(c){xe.error(c);return}const m=ne[X],y=Le[X];if(!m||!y)return;const M=at(m,y,l);if(!M){xe.error("This section cannot be saved as global.");return}const B={...M.data,name:s};try{await Ee.mutateAsync({blockKey:s,data:B});const F=[...ne];F[X]={__resolveType:s},await Ee.mutateAsync({blockKey:L,data:It(l,L,F,Ae,Fe)}),f===X&<(),ae(null),xe.success(`Saved global block "${s}"`),g?.()}catch(F){xe.error(F instanceof Error?F.message:"Failed to save global block")}},cn=Ge?.rule;if(ut&&f===null&&T===null&&cn){const{resolveType:s,formValue:c}=$t(cn,l??{},p??void 0);Y(s),E(c)}const dt=p?Dr(p):[],$s=!pe&&!!(o&&p&&l),un=T&&p?pt(T,p):null,Os=()=>{et.current&&(clearTimeout(et.current),et.current=null),tt.current&&(clearTimeout(tt.current),tt.current=null)},dn=async(s,c)=>{if(!(La(c,s,p)>0))try{await tn.mutateAsync({blockKey:s})}catch(m){xe.error(m instanceof Error?m.message:"Could not delete matcher block")}},mn=s=>{et.current&&clearTimeout(et.current),et.current=setTimeout(()=>{const{activePageKey:c,decofile:m,variantIndex:y}=Ye.current;if(!c)return;const M={...m[c]},B={...M.sections},F=[...B.variants??[]],se=F[y],ce=se?.rule;if(Ot(ce,m,p)){const Q=ce?.__resolveType??"",ue=m[Q],he=typeof ue?.name=="string"?ue.name:Q,{__resolveType:Pe,...ge}=s;Ee.mutate({blockKey:Q,data:Lt(Pe??"",ge,he)},{onSuccess:()=>g?.(),onError:ve=>xe.error(`Save failed: ${ve.message}`)});return}se&&(F[y]={...se,rule:s}),M.sections={...B,variants:F},Ee.mutate({blockKey:c,data:M},{onSuccess:()=>g?.(),onError:Q=>xe.error(`Save failed: ${Q.message}`)})},zt)},Ls=s=>{Y(s);const c=s?{__resolveType:s}:{__resolveType:Nn};E({}),mn(c)},zs=s=>{const c=s;E(c);const m=T?{__resolveType:T,...c}:{...c};mn(m)},fn=s=>{tt.current&&clearTimeout(tt.current);const{selectedSectionIndex:c,sectionVariantIndex:m}=Ye.current;c!==null&&(tt.current=setTimeout(()=>{const{rawSections:y,parsedSections:M,decofile:B,activePageKey:F,pageVariants:se,variantIndex:ce}=Ye.current;if(!F)return;const Q=y[c],ue=M[c];if(!Q||!ue?.isMultivariate)return;const he=Ze(Q,ue);if(!he)return;const Pe=$a(he,m,s),ge=[...y];ge[c]=ht(Q,ue,Pe);const ve=It(B,F,ge,ce,se);Ee.mutate({blockKey:F,data:ve},{onSuccess:()=>g?.(),onError:Be=>xe.error(`Save failed: ${Be.message}`)})},zt))},Is=s=>{P(s),re({}),fn(s?{__resolveType:s}:{__resolveType:Nn})},Fs=s=>{const c=s;re(c);const m=le?{__resolveType:le,...c}:{...c};fn(m)};if(!pe&&!Ie)return t.jsxs("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:["No page found for ",u]});if(pe&&!wt)return t.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:"Global block not found"});const Je=f!==null?Le[f]??null:null,pn=f!==null?ne[f]:null,hn=pn&&Je?.isMultivariate?Ze(pn,Je):null,mt=hn?jn(hn,We):[],gn=Math.min(Ne,Math.max(mt.length-1,0)),Mt=mt[gn]??null,st=Je?.isMultivariate===!0,ct=f!==null&&Je!==null&&(st||!!(At&&D)),Bs=ct&&!pe&&Je?.isSavedBlock===!0,qe=pe||Bs,Ks=pe?rn:Je?.label??"",vn=le&&p?pt(le,p):null,Et=ct&&(!pe||oe.length>0)?pe?[rn,...oe]:[Ie.name,Je.label,...st&&Mt?[Mt.label]:[],...oe]:[],Hs=ee&&Ie?[Ie.name,"SEO",...Re]:[],xn=ee?Hs:qe?Et.length>0?Et:[Ks]:Et,yn=()=>{if(!L)return;const s=l[L],c=ja(s.sections,ne);if(!c)return;const m=ka(c);Ee.mutate({blockKey:L,data:{...s,sections:c}},{onSuccess:()=>{C(m),w(null),j(null),k(null),I([]),E(null),Y(null)},onError:y=>xe.error(`Save failed: ${y.message}`)})},bn=(s,c,m)=>{if(!L)return;const y=l[L],M=y.sections;if(!M||typeof M!="object"||Array.isArray(M))return;const B=M;if(!Array.isArray(B.variants))return;const F=s([...B.variants]);if(!F)return;const se=Va(B,F),ce={...l,[L]:{...y,sections:se}};Ee.mutate({blockKey:L,data:ce[L]},{onSuccess:()=>{c?.(),m&&dn(m,ce)},onError:Q=>xe.error(`Save failed: ${Q.message}`)})},Us=s=>{W(null),C(s),w(null),j(null),k(null),I([]);const c=Fe[s]?.rule,{resolveType:m,formValue:y}=$t(c,l??{},p??void 0);Y(m),E(y)},Ys=(s,c)=>{s!==c&&(Ae===s?C(c):s<Ae&&c>=Ae?C(Ae-1):s>Ae&&c<=Ae&&C(Ae+1),bn(m=>xt(m,s,c)))},qs=s=>{const c=Fe[s]?.rule,m=Na(c,l??{},p??void 0);bn(y=>y.length<=1?null:(y.splice(s,1),y),()=>{Fe.length-1===1?C(0):s<Ae?C(Ae-1):s===Ae&&C(Math.max(0,s-1)),w(null),j(null),k(null),I([]),E(null),Y(null)},m)},Ws=async(s,c)=>{Os();const m=Ye.current.activePageKey,y=Ye.current.decofile;if(!m)return;const M=y[m],B=M.sections;if(!B||typeof B!="object"||Array.isArray(B))return;const F=B;if(!Array.isArray(F.variants))return;const se=[...F.variants],ce=se[s];if(!ce?.rule||typeof ce.rule!="object"){xe.error("This variant has no matcher rule to rename.");return}const Q=ce.rule,ue=c.trim();nn(!0);try{if(!ue){if(!Ot(Q,y,p)){W(null);return}const Vt=Q.__resolveType??"";se[s]={...ce,rule:Pa(Q,y,p)};const _n={...y,[m]:{...M,sections:{...F,variants:se}}};await Ee.mutateAsync({blockKey:m,data:_n[m]}),await dn(Vt,_n),W(null),g?.();return}const he=Ma(Q,y,p);if(!he){xe.error("Could not read this variant's matcher rule.");return}if(he.blockKey){await Ee.mutateAsync({blockKey:he.blockKey,data:Lt(he.resolveType,he.data,ue)}),W(null),g?.();return}const Pe=Cn(ue),ge=Rn(Pe,y);if(ge){xe.error(ge);return}const ve=Lt(he.resolveType,he.data,ue);let Be=null;try{await Ee.mutateAsync({blockKey:Pe,data:ve}),Be=Pe,se[s]={...ce,rule:Ea(Pe)},await Ee.mutateAsync({blockKey:m,data:{...M,sections:{...F,variants:se}}}),Be=null}catch(Vt){throw Be&&await tn.mutateAsync({blockKey:Be}).catch(()=>{}),Vt}W(null),xe.success(`Saved matcher as global block "${ue}"`),g?.()}catch(he){xe.error(he instanceof Error?he.message:"Failed to rename variant")}finally{nn(!1)}},Sn=()=>{lt()},Gs=s=>{Se(s),Pt({inner:s})},Js=s=>{je(s),Pt({raw:s})},Zs=()=>{Se(null),me([])},Qs=()=>ke(s=>s+1),Xs=s=>{if(ee){if(s===0){_t.flush(),ye(!1),Se(null),je(void 0),me([]),ke(m=>m+1),x?.();return}if(s===1){me([]),ke(m=>m+1);return}me(Re.slice(0,s-1)),ke(m=>m+1);return}if(pe){I(oe.slice(0,s)),K(m=>m+1);return}if(s===0){Sn();return}if(s===1){I([]),K(m=>m+1);return}if(st&&s===2){I([]),K(m=>m+1);return}const c=st?2:1;I(oe.slice(0,s-c))};return t.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[t.jsx("div",{className:"shrink-0",children:qe||ct||ee?t.jsxs("div",{className:de("border-b px-3 py-2.5",qe&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[!pe&&ut&&Ge&&t.jsxs("button",{type:"button",onClick:Sn,title:`Editing in variant: ${Ge.label}`,className:de("shrink-0 inline-flex items-center gap-1 rounded-md h-6 px-1.5 text-xs font-medium cursor-pointer transition-opacity hover:opacity-80",Gr),children:[t.jsx(en,{rule:gt(Ge.rule,l??{},p??void 0),matchers:dt}),t.jsx("span",{className:"max-w-[160px] truncate",children:Ge.label})]}),t.jsx("nav",{"aria-label":"Editing breadcrumb",className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:xn.map((s,c)=>{const m=c===xn.length-1;return t.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[c>0&&t.jsx(na,{className:"size-3 shrink-0 text-muted-foreground/60"}),t.jsx("button",{type:"button",onClick:()=>Xs(c),title:s,className:de("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",m?qe?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":qe?"text-foreground/80":"text-muted-foreground",qe?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:s})]},`${s}-${c}`)})}),qe&&t.jsxs(it,{children:[t.jsx(rt,{asChild:!0,children:t.jsx("span",{className:"shrink-0 cursor-help",children:t.jsx(ia,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),t.jsx(ot,{side:"bottom",className:"max-w-[260px]",children:"A global section is a reusable block shared across your site. Editing it here updates it everywhere it's used."})]})]}),qe&&t.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:"This is a global section. Changes apply everywhere this section is used across your site."})]}):t.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[t.jsx("div",{className:"flex-1 min-w-0",children:t.jsx(Qr,{pageKey:L,initialName:Ie.name,initialPath:Ie.path,onFieldChange:ks})}),t.jsxs(it,{children:[t.jsx(rt,{asChild:!0,children:t.jsx(Ve,{type:"button",variant:"ghost",size:"icon","aria-label":"Edit SEO",className:"size-7 shrink-0",onClick:()=>ye(!0),children:t.jsx(aa,{size:14})})}),t.jsx(ot,{side:"bottom",children:"Edit SEO"})]}),t.jsxs(it,{children:[t.jsx(rt,{asChild:!0,children:t.jsx(Ve,{type:"button",variant:"ghost",size:"icon","aria-label":"View JSON",className:"size-7 shrink-0",onClick:()=>b&&L?b(L):we(!0),children:t.jsx(ra,{size:14})})}),t.jsx(ot,{side:"bottom",children:"View JSON"})]}),t.jsxs(it,{children:[t.jsx(rt,{asChild:!0,children:t.jsx(Ve,{type:"button",variant:"ghost",size:"icon","aria-label":"Add variant",className:"size-7 shrink-0",style:{color:"oklch(0.65 0.15 160)"},onClick:yn,children:t.jsx(oa,{size:14})})}),t.jsx(ot,{side:"bottom",children:"Add variant"})]})]})}),ut&&!ct&&!ee&&L&&t.jsx(zr,{listKey:L,variants:Fe,activeIndex:Ae,decofile:l??{},meta:p,matchers:dt,onSelect:Us,onReorder:Ys,onRename:W,onDelete:qs,onAdd:yn}),ee?t.jsx(ft,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:t.jsx("div",{className:"mx-auto max-w-2xl",children:Tt&&L?t.jsx(Xa,{rawSeo:Rt,innerSeo:on,defaultResolveType:ys,seoSchema:bs,activeResolveType:Dt,seoTypeOptions:xs,formResetKey:ze,siteDefaultSeo:Ss,onBreadcrumbChange:me,onPersistRaw:Js,onInnerChange:Gs,onClearForm:Zs,onBumpFormKey:Qs}):t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"SEO schema not found for this site."})})})}):ct?t.jsxs(ft,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[st&&mt.length>0&&t.jsxs(t.Fragment,{children:[t.jsx(Wr,{variants:mt.map((s,c)=>({index:c,label:s.label})),selectedIndex:gn,onSelect:As,onDuplicate:Ms,onDelete:Ps,onRemoveAll:Es}),st&&t.jsxs("div",{className:"px-3 py-3 border-b space-y-2",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variant rule"}),t.jsx(Pn,{currentRt:le??"",currentLabel:We(Mt?.rule),matchers:dt,onSelect:Is}),vn&&De&&t.jsx("div",{className:"pt-1",children:t.jsx(Ut,{schema:vn,value:De,onChange:Fs,basePath:""})})]})]}),t.jsx(En,{activeSchema:At,formValue:D,formResetKey:ie,onFormChange:ln,onBreadcrumbChange:I,emptyMessage:"No editable fields for this variant."})]}):pe?t.jsx(ft,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx(En,{activeSchema:At,formValue:D,formResetKey:ie,onFormChange:ln,onBreadcrumbChange:I,emptyMessage:"No editable fields for this global block."})}):t.jsxs(ft,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[ut&&T!==null&&t.jsxs("div",{className:de("px-3 border-b",G?"pt-3 pb-5 space-y-3":"py-2"),children:[t.jsxs("button",{type:"button",onClick:()=>q(s=>!s),className:"flex w-full items-center justify-between gap-2 text-left cursor-pointer rounded-sm py-0.5 hover:bg-muted/40","aria-expanded":G,children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variant rule"}),G?t.jsx(sa,{className:"size-3.5 shrink-0 text-muted-foreground"}):t.jsx($n,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),G&&t.jsxs("div",{className:de("space-y-3",jt&&"pointer-events-none opacity-50"),children:[t.jsx(Pn,{currentRt:T,currentLabel:kn(Ge?.rule,l??{},We,p??void 0),matchers:dt,onSelect:Ls}),un&&O&&t.jsx("div",{className:"space-y-3",children:t.jsx(Ut,{schema:un,value:O,onChange:zs,basePath:""})})]})]}),t.jsx("div",{className:"p-2 pt-3",children:t.jsx(Nr,{listKey:`${L??""}-${Ae}`,rawSections:ne,sections:Le,meta:p,selectedIndex:f,onSelect:js,onReorder:Ns,onDelete:ws,onDuplicate:Ts,onMakeReusable:ae,onToggleHidden:Cs,onToggleLazy:Rs,onAddSection:()=>Z(!0),canAddSection:$s})})]}),t.jsx(Fr,{open:X!==null,onOpenChange:s=>{s||ae(null)},defaultBlockId:X!==null?Cn(Le[X]?.label??""):"",isPending:Ee.isPending,onSubmit:Vs}),o&&t.jsx(cr,{open:J,onOpenChange:Z,meta:p,decofile:l,previewBaseUrl:o,onSelect:Ds}),H&&L&&l&&t.jsx(ya,{open:H,onOpenChange:we,pageKey:L,decofile:l}),te!==null&&t.jsx(ur,{open:!0,initialName:Ot(Fe[te]?.rule,l??{},p??void 0)?kn(Fe[te]?.rule,l??{},We,p??void 0):"",autoLabel:We(gt(Fe[te]?.rule,l??{},p??void 0)),isPending:jt,onSubmit:async s=>{await Ws(te,s)},onOpenChange:s=>{!s&&!jt&&W(null)}})]})}export{Yl as SectionsEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-B5ue7X7K.js","assets/index-v-4yPWk5.js","assets/index-BgFgIfs8.css","assets/XCircle-DDLSDNYP.js","assets/CheckCircle-79umy6UR.js","assets/Container-Bmp8f1Hw.js","assets/Settings02-CMckE2RK.js","assets/use-mcp-client-DR6PB45n.js","assets/useInfiniteQuery-Bj28n6ln.js","assets/infiniteQueryObserver-C1PO3LYQ.js","assets/badge-CYgKxTpF.js","assets/input-DMJCExP6.js","assets/dropdown-menu-o8504Ahe.js","assets/Check-BXjvCNRo.js","assets/ChevronRight-CBmg3jrn.js","assets/DotsVertical-BfY2m12a.js","assets/table-D3XdCvZp.js","assets/toggle-group-v0racvq3.js","assets/use-view-mode-BTRVa00m.js","assets/tooltip-DvNlo5ri.js","assets/FilterLines-0ZErBJ3i.js","assets/Globe01-DUsTmpYW.js","assets/SearchMd-BuArn0kO.js","assets/dialog-CRbRTRjQ.js","assets/X-DWbNv8Bl.js","assets/AlertCircle-BiKiI44L.js","assets/Upload01-Cmfv30sX.js","assets/alert-dialog-C4ynNGJF.js","assets/card-CANcGy5k.js","assets/Trash01-BoFGJN1_.js","assets/label-Cydnpuha.js","assets/select-BjY8Jgav.js","assets/ChevronDown-DERZQdMP.js","assets/ChevronUp-28KZDFJ3.js","assets/switch-DRq3hJSo.js","assets/textarea-CEsBzC6t.js","assets/RefreshCcw01-Bdic4y2D.js","assets/checkbox-Djxv9Ar7.js","assets/Eye-DNuwjCPP.js","assets/LinkExternal01-pT0NrKlt.js","assets/use-copy-Qm5PoymQ.js","assets/Key01-DhkJOk-2.js","assets/Plus-C1rAdUXl.js","assets/Play--ZCMNFjg.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as m,f as n,g as c,j as t,l as f,r as l,_ as p}from"./index-v-4yPWk5.js";import{R as u}from"./require-capability-B6a3uwXa.js";import"./use-capability-DGmhThV5.js";import"./access-gate-CZrbf5CL.js";import"./capability-load-error-ByfTnmda.js";const g=l.lazy(()=>p(()=>import("./registry-layout-B5ue7X7K.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-C1PO3LYQ.js";import{cE as i}from"./index-v-4yPWk5.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-C1PO3LYQ.js";import{cE as u,aF as n}from"./index-v-4yPWk5.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as s,g as l,j as o,l as a,E as n,r as c}from"./index-v-4yPWk5.js";import{a as f}from"./index-qOg3Rq1i.js";import"./index-oVaThiKb.js";import"./use-mcp-client-DR6PB45n.js";import"./collections-BVLezaR1.js";import"./index-RZpEFxBX.js";import"./use-virtual-mcp-Cxb5tpje.js";import"./use-collections-d0NY3CF9.js";import"./monaco-editor-B1jmgnr2.js";import"./index-CgVH5Gsy.js";import"./spinner-BggGXeYI.js";import"./resizable-CJjEyhK7.js";import"./ZoomOut-xmLm2dBO.js";import"./badge-CYgKxTpF.js";import"./select-BjY8Jgav.js";import"./tooltip-DvNlo5ri.js";import"./Check-BXjvCNRo.js";import"./ChevronDown-DERZQdMP.js";import"./ChevronUp-28KZDFJ3.js";import"./view-mode-toggle-D7zEkHxC.js";import"./agent-icon-DfM7tMDC.js";import"./AlertCircle-BiKiI44L.js";import"./Tool01-nw4j5J0X.js";import"./SwitchHorizontal01-D9V4WNpS.js";import"./RefreshCcw01-Bdic4y2D.js";import"./XCircle-DDLSDNYP.js";import"./ArrowUpRight-a9y7JExT.js";import"./ZapSquare-DfDC54JS.js";import"./Users03-DYjDLJbQ.js";import"./CheckCircle-79umy6UR.js";import"./ChevronLeft-C6IDOOPU.js";import"./ChevronRight-CBmg3jrn.js";import"./DotsVertical-BfY2m12a.js";import"./Container-Bmp8f1Hw.js";import"./Eye-DNuwjCPP.js";import"./Globe01-DUsTmpYW.js";import"./FilterLines-0ZErBJ3i.js";import"./Star01-lcgisujL.js";import"./Palette-B1alDozW.js";import"./HardDrive-CTInlaSO.js";import"./Stars02-bUApAo8o.js";import"./Key01-DhkJOk-2.js";import"./LayoutLeft-C4WMufMy.js";import"./LinkExternal01-pT0NrKlt.js";import"./Monitor01-BqHMMIjb.js";import"./Sun-BhoXpP-F.js";import"./Play--ZCMNFjg.js";import"./Plus-C1rAdUXl.js";import"./SearchMd-BuArn0kO.js";import"./Settings02-CMckE2RK.js";import"./Shield01-XGinfl8i.js";import"./Stars01-CQ0RN6al.js";import"./Trash01-BoFGJN1_.js";import"./Upload01-Cmfv30sX.js";import"./User01-of2DRTwj.js";import"./Users01-DYI7DwUF.js";import"./XClose-B1Jrn5dt.js";import"./X-DWbNv8Bl.js";import"./Zap-BBs40ZSU.js";import"./layout-CYzkZYWN.js";import"./index-B5koQSO_.js";import"./sidebar-CYu-6Gzi.js";import"./sheet-DruC4GtE.js";import"./use-connection-Dz8syqkL.js";import"./use-mcp-tools-BrZjJ9zc.js";import"./dialog-CRbRTRjQ.js";import"./scroll-area-CIVwHWtS.js";import"./index-DL_YJ_kc.js";import"./hover-card-Clt-L-5u.js";import"./dropdown-menu-o8504Ahe.js";import"./integration-icon-CCk0_Shy.js";import"./accordion-BSz8aiEx.js";import"./index-dQSPhEbP.js";import"./empty-state-BqjWWsLJ.js";import"./create-sse-subscription-BS5983N4.js";import"./input-DMJCExP6.js";function Bt(){const t=s.c(4);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/workflows/$itemId"},t[0]=r):r=t[0];const{itemId:e}=l(r);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(a,{size:32,className:"animate-spin text-muted-foreground"})}),t[1]=i):i=t[1];const p=decodeURIComponent(e);let m;return t[2]!==p?(m=o.jsx(n,{children:o.jsx(c.Suspense,{fallback:i,children:o.jsx(f,{itemId:p})})}),t[2]=p,t[3]=m):m=t[3],m}export{Bt as default};
|