decocms 4.121.0 → 4.122.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-OzZiRcN4.js → AlertCircle-XnshFjYW.js} +1 -1
- package/dist/client/assets/{AreaChart-CjpEkyIS.js → AreaChart-CJi4tHw0.js} +1 -1
- package/dist/client/assets/{ArrowRight-BTqt321d.js → ArrowRight-CX6eNZSi.js} +1 -1
- package/dist/client/assets/{ArrowUp-DKOgR0xL.js → ArrowUp-VZsF9axi.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CvwJB6OK.js → ArrowUpRight-Df_nmFmy.js} +1 -1
- package/dist/client/assets/{Check-C9Hy68pG.js → Check-CC9gPb_A.js} +1 -1
- package/dist/client/assets/{CheckCircle-6cj-Xwhi.js → CheckCircle-CxnbmKEy.js} +1 -1
- package/dist/client/assets/{ChevronDown-CZIAcwGV.js → ChevronDown-BgfnpwV0.js} +1 -1
- package/dist/client/assets/{ChevronRight--wVf7uGf.js → ChevronRight-21KH5QUR.js} +1 -1
- package/dist/client/assets/{ChevronUp-CsSKaqS5.js → ChevronUp-C5_Sfc3S.js} +1 -1
- package/dist/client/assets/{Copy01-2Oyl2xhw.js → Copy01-Diq48EWM.js} +1 -1
- package/dist/client/assets/{DotsVertical-c-_wCTgn.js → DotsVertical-CnVoFOdL.js} +1 -1
- package/dist/client/assets/{Eye-D81BWda-.js → Eye-CPji9XgK.js} +1 -1
- package/dist/client/assets/{FilterLines-D73LV27Z.js → FilterLines-CrGTcOfX.js} +1 -1
- package/dist/client/assets/{Globe01-CDWygr27.js → Globe01-DVNadxp3.js} +1 -1
- package/dist/client/assets/{Globe04-D4m747kU.js → Globe04-BDFigbbA.js} +1 -1
- package/dist/client/assets/{HardDrive-zpDb2j2L.js → HardDrive-CJF16wvx.js} +1 -1
- package/dist/client/assets/{Image01--bBQuOXb.js → Image01-COoMGEPb.js} +1 -1
- package/dist/client/assets/{Key01-COjK9kAq.js → Key01-CtX8cIgY.js} +1 -1
- package/dist/client/assets/{LayoutLeft-YhbkIV5-.js → LayoutLeft-B98Y7j9l.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D_Zvma4v.js → LinkExternal01-Calr_A6c.js} +1 -1
- package/dist/client/assets/{LogOut01-DWjWz0Vk.js → LogOut01-qYuBvoFH.js} +1 -1
- package/dist/client/assets/{Monitor01-RMk_Hy33.js → Monitor01-BiNi2Su2.js} +1 -1
- package/dist/client/assets/{Package-KX2QCXEp.js → Package-BgoRXE8D.js} +1 -1
- package/dist/client/assets/{Palette-BUK1fohV.js → Palette-BwpXM3TT.js} +1 -1
- package/dist/client/assets/{Play-BQfux-g7.js → Play-BgnxS2-x.js} +1 -1
- package/dist/client/assets/{Plus-0lhw9kgX.js → Plus-D-8cpNUO.js} +1 -1
- package/dist/client/assets/{SearchLg-D5zWzyl-.js → SearchLg-B8C5Qm8O.js} +1 -1
- package/dist/client/assets/{SearchMd-DU09j0yH.js → SearchMd-BZf1S_oW.js} +1 -1
- package/dist/client/assets/{Settings02-DQ4GSu-t.js → Settings02-Yvc0vxEw.js} +1 -1
- package/dist/client/assets/{Shield01-CfcJULbp.js → Shield01-BICJ_pln.js} +1 -1
- package/dist/client/assets/{Star01-KC9BvNup.js → Star01-1QXq7d0Q.js} +1 -1
- package/dist/client/assets/{Stars01-BS-Qws6o.js → Stars01-CB8X2GZM.js} +1 -1
- package/dist/client/assets/{Stars02-DfuXiu3-.js → Stars02-D8l4enBD.js} +1 -1
- package/dist/client/assets/{Sun-C8Rt6Ua0.js → Sun-AMWwxXLJ.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-vm3X2ReA.js → SwitchHorizontal01-CdbWhzYI.js} +1 -1
- package/dist/client/assets/{Tool01-B1EOI3tm.js → Tool01-m1EmcVyA.js} +1 -1
- package/dist/client/assets/{Tool02-DNB1gZ9p.js → Tool02-r9aj6Qyy.js} +1 -1
- package/dist/client/assets/{Trash01-DWauVxmg.js → Trash01-CVr9u3xi.js} +1 -1
- package/dist/client/assets/{TrendUp01-CKe9YInp.js → TrendUp01-h4x0FenV.js} +1 -1
- package/dist/client/assets/{Upload01-Jx7sveIV.js → Upload01-D2PYYKGU.js} +1 -1
- package/dist/client/assets/{User01-DOzH65Yj.js → User01-DqUeIcrF.js} +1 -1
- package/dist/client/assets/{Users01-Bl3Cipzb.js → Users01-Ca4DQ08l.js} +1 -1
- package/dist/client/assets/{Users03-B_epF-ec.js → Users03-BLeBKZva.js} +1 -1
- package/dist/client/assets/{X-CkADyhqE.js → X-pxLklxt-.js} +1 -1
- package/dist/client/assets/{XCircle-C1PO7Xjh.js → XCircle-Jor3fl3p.js} +1 -1
- package/dist/client/assets/{XClose-C6Z74Mtu.js → XClose-DoQ8FIVP.js} +1 -1
- package/dist/client/assets/{Zap-crfeCyH5.js → Zap-BYKdCfkZ.js} +1 -1
- package/dist/client/assets/{ZapSquare-ixKz1MO4.js → ZapSquare-DiexjyhK.js} +1 -1
- package/dist/client/assets/{ZoomOut-C1FPWq-p.js → ZoomOut-CeX9nBzw.js} +1 -1
- package/dist/client/assets/{access-gate-CcngdG7g.js → access-gate-D2NTAiXe.js} +1 -1
- package/dist/client/assets/{add-section-modal-DHx-fMXc.js → add-section-modal-BchN4rJK.js} +1 -1
- package/dist/client/assets/{agent-icon-BZhgfhdU.js → agent-icon-DklLFaSa.js} +1 -1
- package/dist/client/assets/{agents-list-BGb151p2.js → agents-list-yGdtBETf.js} +1 -1
- package/dist/client/assets/{ai-providers-BxclPNUd.js → ai-providers-D-pBdRNb.js} +1 -1
- package/dist/client/assets/{alert-DooiWR2A.js → alert-CCaFcfw-.js} +1 -1
- package/dist/client/assets/{alert-dialog-eVH4lDuw.js → alert-dialog-DSeYsJav.js} +1 -1
- package/dist/client/assets/{app-editor-BKf1KIok.js → app-editor-DgafYaZq.js} +1 -1
- package/dist/client/assets/{auth-BgXJQGvH.js → auth-BTPRevv4.js} +1 -1
- package/dist/client/assets/{auth-catchall-DCT6HGy2.js → auth-catchall-C-vZ1kE7.js} +1 -1
- package/dist/client/assets/{auth-entry-Dc3L3Akt.js → auth-entry-Df_hdiFv.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CG3_FykH.js → auth-split-layout-CUBOf-5N.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-EDYGCrss.js → authenticate-and-persist-oauth-DFwi7YAk.js} +1 -1
- package/dist/client/assets/{automation-list-row-COyQ04hP.js → automation-list-row-dutMC3QV.js} +1 -1
- package/dist/client/assets/{automation-runs-3Nf8PuON.js → automation-runs-6THMzkHu.js} +1 -1
- package/dist/client/assets/automations-gJHR9nJP.js +1 -0
- package/dist/client/assets/{autosend-DMw4eplP.js → autosend-WnRL52gX.js} +1 -1
- package/dist/client/assets/{avatar-DOKisfmu.js → avatar-CNc6KWqj.js} +1 -1
- package/dist/client/assets/{badge-BP3RfcAV.js → badge-BUAKnV1x.js} +1 -1
- package/dist/client/assets/{block-document-DoFgnzXM.js → block-document-C9dlt-Wu.js} +1 -1
- package/dist/client/assets/{brand-context-vAm7cU55.js → brand-context-B_RsO18l.js} +1 -1
- package/dist/client/assets/{buckets-Don5jA6A.js → buckets-BdraU0oC.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-bPJqoX9I.js → bulk-category-panel-DIdL5aVk.js} +1 -1
- package/dist/client/assets/{calendar-DXzTKJPo.js → calendar-DFq-LIxY.js} +1 -1
- package/dist/client/assets/{capability-load-error-CCKA37Gn.js → capability-load-error-Cua73DjP.js} +1 -1
- package/dist/client/assets/{card-BkL1g2ae.js → card-Bt7sN6sd.js} +1 -1
- package/dist/client/assets/{category-editor-3xHYN9wy.js → category-editor-B_4G1qfQ.js} +1 -1
- package/dist/client/assets/{chat-context-BjgR1MKj.js → chat-context-BUCy41wb.js} +5 -5
- package/dist/client/assets/{checkbox-Dvf0sR7c.js → checkbox-BXjzUPh_.js} +1 -1
- package/dist/client/assets/{cli-auth-success-X1wp_kVa.js → cli-auth-success-8L6jmEDx.js} +1 -1
- package/dist/client/assets/{collection-detail-DMCqElTG.js → collection-detail-CT5tUPp_.js} +1 -1
- package/dist/client/assets/{collection-display-button-CWcabOLq.js → collection-display-button-BihXKLw-.js} +1 -1
- package/dist/client/assets/{collection-search-BUwXi5On.js → collection-search-B20qLeZq.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CUL6yX5d.js → collection-table-wrapper-pcUXsBYu.js} +1 -1
- package/dist/client/assets/{collection-tabs-Bg8diJEX.js → collection-tabs-DNI8PqVZ.js} +1 -1
- package/dist/client/assets/{command-DolM9tQW.js → command-NGsH11Ja.js} +1 -1
- package/dist/client/assets/commerce-onboarding-ff2KN1v5.js +1 -0
- package/dist/client/assets/companions-core-C8hdG_qv.js +1 -0
- package/dist/client/assets/{connect-BvsNiyZD.js → connect-BHc2KMsa.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-2ytDMSQS.js → connect-desktop-dialog-D2pvlftk.js} +1 -1
- package/dist/client/assets/{connection-card-tEoMF1sK.js → connection-card-B_6si4eG.js} +1 -1
- package/dist/client/assets/{connection-detail-BNOBuBwO.js → connection-detail-CMWEPIQH.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-y0k0toUD.js → connection-form-helpers-BV8uHczM.js} +1 -1
- package/dist/client/assets/{connections-BSYKvu_o.js → connections-P-vwwiwU.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-B7H8BAsy.js → decopilot-sse-pool-B_K0sO1S.js} +1 -1
- package/dist/client/assets/{dialog-B-PFEu8t.js → dialog-7TP2Rj2D.js} +1 -1
- package/dist/client/assets/{domain-settings-B0iRfT0V.js → domain-settings-B7eZyho2.js} +1 -1
- package/dist/client/assets/{drawer-ioB-jayl.js → drawer-CO8Igk5a.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Bv8U-u2N.js → dropdown-menu-CZyflK5H.js} +1 -1
- package/dist/client/assets/{empty-state-f3NNQ1ui.js → empty-state-VEwKl4O7.js} +1 -1
- package/dist/client/assets/{extract-connection-data-ekCc1hnU.js → extract-connection-data-BEJV81wi.js} +1 -1
- package/dist/client/assets/{file-explorer-D8JT7oxH.js → file-explorer-C_O3bBMQ.js} +1 -1
- package/dist/client/assets/{file-type-icon-Czs5uFNK.js → file-type-icon-C50voPyF.js} +1 -1
- package/dist/client/assets/{files-COonOV2h.js → files-Hd_gZAjO.js} +1 -1
- package/dist/client/assets/{form-DvszbWzu.js → form-C8YEeakk.js} +1 -1
- package/dist/client/assets/{general-BN7VABAU.js → general-Be1-PGE8.js} +1 -1
- package/dist/client/assets/{github-repo-picker-LzKpKLTc.js → github-repo-picker-1AJl1NXF.js} +1 -1
- package/dist/client/assets/{hooks-DZ2G0HBV.js → hooks-OLVSgKAi.js} +1 -1
- package/dist/client/assets/{index-DLFjA-pm.js → index-7lMfFoqm.js} +7 -7
- package/dist/client/assets/index-B4lL0hIV.js +1 -0
- package/dist/client/assets/{index-DwaHcKY7.js → index-BAgEiubw.js} +1 -1
- package/dist/client/assets/{index-BD2JkIiG.js → index-BJQ6k3ml.js} +1 -1
- package/dist/client/assets/{index-Cq9MTcyy.js → index-BTlTRvWO.js} +1 -1
- package/dist/client/assets/{index-B__oKxRn.js → index-BXCOoie9.js} +1 -1
- package/dist/client/assets/{index-qFEnr-Eg.js → index-BYC4n0jP.js} +1 -1
- package/dist/client/assets/{index-BoUF-4pL.js → index-BhfXxR4M.js} +1 -1
- package/dist/client/assets/index-BkzI2YJo.css +1 -0
- package/dist/client/assets/{index-DDvdm6MO.js → index-C6_YevgU.js} +6 -6
- package/dist/client/assets/{index-DinR3XP8.js → index-CQZUcwEe.js} +1 -1
- package/dist/client/assets/{index-CiqBVt-V.js → index-DZVUOwCL.js} +3 -3
- package/dist/client/assets/{index-zRP9V9Rq.js → index-J6blKtEw.js} +1 -1
- package/dist/client/assets/{index-x2umO0Ia.js → index-LUsO6ZZ_.js} +1 -1
- package/dist/client/assets/{index-redirect-DfRcvhOs.js → index-redirect-DDOFkqxt.js} +1 -1
- package/dist/client/assets/{input-CYZckS5J.js → input-AF9b5wfZ.js} +1 -1
- package/dist/client/assets/{integration-icon-EcNPoJWr.js → integration-icon-C0xV3gWf.js} +1 -1
- package/dist/client/assets/invite-member-dialog-DItYBiCO.js +1 -0
- package/dist/client/assets/{label-EdLaI-5R.js → label-nodTVgZf.js} +1 -1
- package/dist/client/assets/{layout-DyY6lyuX.js → layout-BGjUr9lp.js} +1 -1
- package/dist/client/assets/{login-Bp3tqVdE.js → login-D1YDbLq2.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DhsKmk5n.js → mcp-oauth-BjijQ5bq.js} +1 -1
- package/dist/client/assets/{members-Bdzm1rec.js → members-v3D2yTyU.js} +1 -1
- package/dist/client/assets/{monaco-editor-Cj3yPb4I.js → monaco-editor-Czt4oHBX.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Bl8HG5pb.js → monitoring-stats-row-D1GDqK5f.js} +1 -1
- package/dist/client/assets/{multi-select-BRDHWm9A.js → multi-select-9uXcESFr.js} +1 -1
- package/dist/client/assets/{oauth-callback-D1AVcBaG.js → oauth-callback-Cav7uxU-.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CW1aQFsP.js → oauth-callback-ai-provider-CJoJluLi.js} +1 -1
- package/dist/client/assets/{onboarding-DrkJmm1F.js → onboarding-IcNCmj2O.js} +1 -1
- package/dist/client/assets/{org-install-BSVaCgjf.js → org-install-CWAsf9QZ.js} +1 -1
- package/dist/client/assets/{org-layout-BfaW1rXR.js → org-layout-Dkc6Qlkh.js} +1 -1
- package/dist/client/assets/{organization-choice-DYVNPPeL.js → organization-choice-BaPiXTPG.js} +1 -1
- package/dist/client/assets/{orgs-DAYIrPhP.js → orgs-CwNHaIHg.js} +1 -1
- package/dist/client/assets/{page-seo-form-DHYMF0Fj.js → page-seo-form-BOYoN6bZ.js} +1 -1
- package/dist/client/assets/page-seo-sheet-DXiuTEP8.js +1 -0
- package/dist/client/assets/{popover-CJG9G1eo.js → popover-BkL7Aezg.js} +1 -1
- package/dist/client/assets/{post-editor-9ma5K1Pq.js → post-editor-Ct47SA6n.js} +1 -1
- package/dist/client/assets/{primitives-BLW0qP6x.js → primitives-imUpb_yp.js} +1 -1
- package/dist/client/assets/{profile-Bc9GqDSr.js → profile-BBHY4rF4.js} +1 -1
- package/dist/client/assets/project-app-view-BpUbnUrn.js +1 -0
- package/dist/client/assets/record-editor-BXVKRGlE.js +1 -0
- package/dist/client/assets/redirect-editor-Hi2Ju6Qo.js +1 -0
- package/dist/client/assets/registry-BUELmiFb.js +2 -0
- package/dist/client/assets/{registry-layout-BDZm3T04.js → registry-layout-Bv1SR3XU.js} +1 -1
- package/dist/client/assets/{reports-BDMo0lnJ.js → reports-D4PlxJN8.js} +1 -1
- package/dist/client/assets/{require-capability-iOnNompG.js → require-capability-CYOL6S-e.js} +1 -1
- package/dist/client/assets/{required-auth-layout-IpGhD1Lv.js → required-auth-layout-BadNf0FP.js} +1 -1
- package/dist/client/assets/{reset-password-BcW-LEPq.js → reset-password-Dz_BpeEr.js} +1 -1
- package/dist/client/assets/{roles-00HK2v8s.js → roles-DsHBeIpX.js} +1 -1
- package/dist/client/assets/{search-input-DkP3MvKd.js → search-input-eRtomdpQ.js} +1 -1
- package/dist/client/assets/{secrets-Cq-nEDPL.js → secrets-xaPO_Ul_.js} +1 -1
- package/dist/client/assets/{sections-editor-DSt5QDYQ.js → sections-editor-BjUPIuiJ.js} +1 -1
- package/dist/client/assets/{select-C4Yh3I_I.js → select-CefiTUgj.js} +1 -1
- package/dist/client/assets/{select-model-JORQ2Gh2.js → select-model-hpWFXkSi.js} +1 -1
- package/dist/client/assets/self-tool-result-CHvmSsIX.js +1 -0
- package/dist/client/assets/{seo-editor-vabzwoBd.js → seo-editor-D_EWnP3f.js} +1 -1
- package/dist/client/assets/{settings-layout-Dwc65CCS.js → settings-layout-D50iDa_2.js} +1 -1
- package/dist/client/assets/{settings-section-Dyof3VvN.js → settings-section-C960zryl.js} +1 -1
- package/dist/client/assets/{shell-controls-Dr_GzrSU.js → shell-controls-DJ1Rert2.js} +1 -1
- package/dist/client/assets/{shell-layout-Bwrf-bDx.js → shell-layout-NJLfF0_e.js} +1 -1
- package/dist/client/assets/{sidebar-BXTMhX7B.js → sidebar-CMNFHIra.js} +1 -1
- package/dist/client/assets/{skeleton-mpFjzoUE.js → skeleton-Bo-YgqMO.js} +1 -1
- package/dist/client/assets/{sso-CiwMJA3A.js → sso-DhMmI1Te.js} +1 -1
- package/dist/client/assets/{store-CF2IPdeY.js → store-Bsofkibg.js} +1 -1
- package/dist/client/assets/store-registry-B9ezBnJK.js +2 -0
- package/dist/client/assets/{studio-tools-z2MoKuxB.js → studio-tools-BBHXaaAJ.js} +1 -1
- package/dist/client/assets/{switch-DhX1LgoM.js → switch-DI_ObHYK.js} +1 -1
- package/dist/client/assets/{table-V7ZlHmgG.js → table-v2gjL7EU.js} +1 -1
- package/dist/client/assets/{tabs-BEzq_HDC.js → tabs-DKQG6gs3.js} +1 -1
- package/dist/client/assets/{textarea-Dr__cCCA.js → textarea-DEJkcZ7j.js} +1 -1
- package/dist/client/assets/{toggle-group-DOz_2Aus.js → toggle-group-BLkkLS1l.js} +1 -1
- package/dist/client/assets/{toolbar-CKNfiQcT.js → toolbar-Dh7M70Tq.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-28RF0SOr.js → toolbar-icon-button-BZllJ9er.js} +1 -1
- package/dist/client/assets/{tooltip-DMRr_d0y.js → tooltip-BOHK0On4.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BIphh0fq.js → use-ai-providers-Bsac7hB5.js} +1 -1
- package/dist/client/assets/{use-api-keys-B7Hoa5XH.js → use-api-keys-DnTpcPgs.js} +1 -1
- package/dist/client/assets/{use-automations-DXFeY9Yi.js → use-automations-DafBUEuO.js} +1 -1
- package/dist/client/assets/{use-autosave-COG8LwFd.js → use-autosave-BOabYPsY.js} +1 -1
- package/dist/client/assets/{use-capability-ClE5Y8Td.js → use-capability-CdM4FECT.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DO60_p2y.js → use-clock-tick-BkPc4RjU.js} +1 -1
- package/dist/client/assets/{use-connection-iKR4DAK5.js → use-connection-ClgMFrpZ.js} +1 -1
- package/dist/client/assets/{use-copy-BwNmwZN4.js → use-copy-Dlj9Yo44.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CGf9WQKr.js → use-create-virtual-mcp-CygnaVQO.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BL9BhLLo.js → use-debounced-autosave-BmDbwXYT.js} +1 -1
- package/dist/client/assets/{use-debounced-value-vm2YywVs.js → use-debounced-value-B2oza6eL.js} +1 -1
- package/dist/client/assets/{use-deco-credits-cqQ5Grgp.js → use-deco-credits-DmhRJlBv.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-C1fzpsy-.js → use-decopilot-events-D7VrwkLK.js} +1 -1
- package/dist/client/assets/{use-delete-connection-B6CGcXIN.js → use-delete-connection-CsINVPMB.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-82P0H-e_.js → use-deployment-admin-HefNEWxn.js} +1 -1
- package/dist/client/assets/{use-file-configs-DbZyRh6z.js → use-file-configs-CtM14T7F.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D6AmDQig.js → use-infinite-scroll-BRCCFOe_.js} +1 -1
- package/dist/client/assets/{use-join-requests-umSBD2aw.js → use-join-requests-CZNyDpek.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DjzGZ1ej.js → use-mcp-auth-status-tjupSmgi.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Cu-eLUiE.js → use-mcp-client-BBS2wBc8.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DS3ivkR4.js → use-mcp-tools-RPaTGUO_.js} +1 -1
- package/dist/client/assets/{use-members-DiTBYVZi.js → use-members-BXFbi5lw.js} +1 -1
- package/dist/client/assets/{use-mobile-F9kT_Idr.js → use-mobile-JVtF6XY7.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BW0Lbp2M.js → use-navigate-to-agent-DqfXAZ-6.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BoIjqJkP.js → use-org-auth-client-BpFhLPx3.js} +1 -1
- package/dist/client/assets/{use-org-sso-Dt3zVq13.js → use-org-sso-f_QvizBC.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BdxExLEu.js → use-organization-roles-D2s60vTB.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DzM8_ele.js → use-organization-settings-DfEYzIUp.js} +1 -1
- package/dist/client/assets/{use-registry-app-BZbyzB0r.js → use-registry-app-BwHReYDm.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DZLuPfih.js → use-registry-connections-Di8iJvGo.js} +1 -1
- package/dist/client/assets/{use-secrets-0AO756Ta.js → use-secrets-QRS4UIur.js} +1 -1
- package/dist/client/assets/{use-status-sounds-xCrGZ6sG.js → use-status-sounds-DOnHpSDd.js} +1 -1
- package/dist/client/assets/{use-view-mode-Cfy2LoWQ.js → use-view-mode-Dv530cbk.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DiaCfMBV.js → use-virtual-mcp-QKzdLITZ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CQw734Ep.js +1 -0
- package/dist/client/assets/{useQueries-LX6i8RGj.js → useQueries-_vDV4wPR.js} +1 -1
- package/dist/client/assets/{useRouterState-BfMjSCt3.js → useRouterState-Dl-TgL1P.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-kVqRtLqF.js +1 -0
- package/dist/client/assets/{users-B7SH1VvM.js → users-darNPvos.js} +1 -1
- package/dist/client/assets/{variant-calendar-RPLmjD1q.js → variant-calendar-aSuL9KCY.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BPTnCybV.js → view-mode-toggle-7H-3wpDq.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +219 -219
- package/dist/server/server.js +151 -151
- package/package.json +1 -1
- package/dist/client/assets/automations-wnjz-FC-.js +0 -1
- package/dist/client/assets/commerce-onboarding-Bog614JY.js +0 -1
- package/dist/client/assets/companions-core-E1684c44.js +0 -1
- package/dist/client/assets/index-Dz31_xLh.css +0 -1
- package/dist/client/assets/index-W5v34j4g.js +0 -1
- package/dist/client/assets/invite-member-dialog-BEMH_SBX.js +0 -1
- package/dist/client/assets/page-seo-sheet-Brecxjya.js +0 -1
- package/dist/client/assets/project-app-view-DFAUYzW3.js +0 -1
- package/dist/client/assets/record-editor-C36tDSMI.js +0 -1
- package/dist/client/assets/redirect-editor-CS1RBoS8.js +0 -1
- package/dist/client/assets/registry-w9h-TBe5.js +0 -2
- package/dist/client/assets/self-tool-result-DdH0OoA4.js +0 -1
- package/dist/client/assets/store-registry-D6SNagM5.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CpL2Fv2W.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-8mEOR8yL.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as F,o as ne,K as U,b as z,j as f,r as M,m as se}from"./index-DLFjA-pm.js";import{i as oe,b as re,r as G,c as ie,d as le,e as ce,g as ae,S as ue}from"./index-DDvdm6MO.js";import{L as Y}from"./label-EdLaI-5R.js";import{S as A}from"./switch-DhX1LgoM.js";import{d as fe,a as pe,b as de,c as ye,S as he}from"./select-C4Yh3I_I.js";const me="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 Q(t,e){return t===null?null:N(e)?{...e,section:t}:t}function Se(t){return{__resolveType:t}}function ge(t,e){if(!k(e))return null;if(t){const n=w(e)??{};return{__resolveType:me,section:n}}return N(e)?w(e)??null:K(e)?e:null}const ve="General";function L(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function W(t,e){return t===D?ve:e}function Z(t){const e=ie(t),n=new Set,s=[];for(const o of e)L(o.resolveType)&&(le(o.resolveType)||n.has(o.resolveType)||(n.add(o.resolveType),s.push({resolveType:o.resolveType,title:W(o.resolveType,o.title),description:o.description})));return s}function V(t){const e=re(t),n=G(e,t),s=Z(n?.properties?.seo);return s.length>0?s:be(t)}function be(t){const e=t.manifest?.blocks??{},n=[];for(const[s,o]of Object.entries(e))if(s.includes("sections"))for(const i of Object.keys(o)){if(!L(i))continue;const r=i.split("/").pop()?.replace(/\.tsx?$/,"")??i;n.push({resolveType:i,title:W(i,r)})}return n}function q(t){const e=V(t),n=e.find(s=>s.resolveType===D);return n?n.resolveType:e[0]?.resolveType??D}function H(t,e){const n=e.__resolveType;if(typeof n=="string"){const s=G(n,t),o=Z(s?.properties?.seo);if(o.length>0)return o}return V(t)}function Te(t,e){const n=H(t,e),s=n.find(o=>o.resolveType===D);return s?s.resolveType:n[0]?.resolveType??q(t)}function xe(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:q(t)}function _e(t,e,n){const s=n.__resolveType;return typeof s=="string"&&L(s)?s:Te(t,e)}const Re=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),D="website/sections/Seo/SeoV2.tsx",Ee=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function O(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function je(t){return typeof t.__resolveType=="string"&&L(t.__resolveType)?!0:Ee.some(e=>e in t)}function Ce(t,e){for(const[n,s]of Object.entries(t)){if(!O(s))continue;const o=s,i=o.__resolveType;if(typeof i=="string"&&Re.has(i))continue;const r=o.seo;if(O(r)){const c=r;if(je(c))return{blockKey:n,kind:"nested",seoData:c,blockData:o,seoResolveType:e?_e(e,o,c):typeof c.__resolveType=="string"&&L(c.__resolveType)?c.__resolveType:D}}}for(const[n,s]of Object.entries(t)){if(!O(s))continue;const o=s;if(typeof o.__resolveType=="string"&&L(o.__resolveType))return{blockKey:n,kind:"block",seoData:o,blockData:o,seoResolveType:o.__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=Ce(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?H(n,l.blockData):void 0,build:h=>De(l,h)}:null}const s=t[e.pageKey];if(!O(s))return null;const o=s,i=o.seo,r=w(i),c=r&&O(r)?r:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:i,seoResolveType:n?xe(n,c):typeof c?.__resolveType=="string"?c.__resolveType:D,seoTypeOptions:n?V(n):void 0,build:l=>({...o,seo:l===null?null:Q(l,i)})}}function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Pe(t,e,n,s){if(t.kind==="page"){if(!I(n))return null;const o=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:s===null?null:Q(s,o)}}return I(n)?e.siteKind==="block"?s:{...n,seo:s}:null}function He(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function Je(t){const e=F.c(23),{orgSlug:n,virtualMcpId:s,branch:o,target:i,resolved:r,onSaved:c}=t,l=ne(),h=`${n}/${s}/${o}`;let p;e[0]!==o||e[1]!==n||e[2]!==s?(p={orgSlug:n,virtualMcpId:s,branch:o},e[0]=o,e[1]=n,e[2]=s,e[3]=p):p=e[3];let u;e[4]!==c?(u={onSaved:c},e[4]=c,e[5]=u):u=e[5];const{save:a,flush:S,isPending:d}=ce(p,u);let m;e[6]!==h||e[7]!==l||e[8]!==r||e[9]!==a||e[10]!==i?(m=E=>{r&&a(r.blockKey,()=>{const b=l.getQueryData(U.decofile(h))?.[r.blockKey];return Pe(i,r,b,E)})},e[6]=h,e[7]=l,e[8]=r,e[9]=a,e[10]=i,e[11]=m):m=e[11];const g=m;let v;e[12]!==h||e[13]!==l||e[14]!==r||e[15]!==a||e[16]!==i?(v=E=>{!r||i.kind!=="page"||a(r.blockKey,()=>{const b=l.getQueryData(U.decofile(h))?.[r.blockKey];return I(b)?{...b,seo:E}:null})},e[12]=h,e[13]=l,e[14]=r,e[15]=a,e[16]=i,e[17]=v):v=e[17];const R=v;let x;return e[18]!==S||e[19]!==d||e[20]!==R||e[21]!==g?(x={persistSeo:g,persistRawSeo:R,flush:S,isPending:d},e[18]=S,e[19]=d,e[20]=R,e[21]=g,e[22]=x):x=e[22],x}const Le="https://deco.cx/docs/en/performance/edge-async-render";function Fe(t){const e=F.c(23),{rawSeo:n,onEnableChange:s,onAsyncRenderChange:o,children:i}=t,r=z();let c;e[0]!==n?(c=k(n),e[0]=n,e[1]=c):c=e[1];const l=c;let h;e[2]!==n?(h=N(n),e[2]=n,e[3]=h):h=e[3];const p=h;let u;e[4]!==r?(u=r("sectionsEditor.seoFormChrome.enableLabel"),e[4]=r,e[5]=u):u=e[5];let a;e[6]!==u?(a=f.jsx(Y,{htmlFor:"seo-enable",className:"text-sm font-medium",children:u}),e[6]=u,e[7]=a):a=e[7];let S;e[8]!==l||e[9]!==s?(S=f.jsx(A,{id:"seo-enable",checked:l,onCheckedChange:s}),e[8]=l,e[9]=s,e[10]=S):S=e[10];let d;e[11]!==a||e[12]!==S?(d=f.jsxs("div",{className:"flex items-center justify-between gap-3",children:[a,S]}),e[11]=a,e[12]=S,e[13]=d):d=e[13];let m;e[14]!==p||e[15]!==i||e[16]!==l||e[17]!==o||e[18]!==r?(m=l&&f.jsxs(f.Fragment,{children:[i,f.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[f.jsxs("div",{className:"min-w-0 space-y-1",children:[f.jsx("p",{className:"text-sm font-medium",children:r("sectionsEditor.seoFormChrome.asyncRenderLabel")}),f.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",f.jsx("a",{href:Le,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:r("sectionsEditor.seoFormChrome.documentationLinkText")}),"."]})]}),f.jsx(A,{id:"seo-async-render",checked:p,onCheckedChange:o,className:"shrink-0"})]})]}),e[14]=p,e[15]=i,e[16]=l,e[17]=o,e[18]=r,e[19]=m):m=e[19];let g;return e[20]!==d||e[21]!==m?(g=f.jsxs("div",{className:"space-y-4",children:[d,m]}),e[20]=d,e[21]=m,e[22]=g):g=e[22],g}const B=["type","title","description","canonical","favicon","image","themeColor"],Oe=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],Ke=["jsonLD","title","description","noIndexing","configJsonLD"];function J(t){return t===D||/\/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 Oe;case"plp":return Ke;default:return null}}function X(t,e){const n=ke(J(e));if(!n||!t.properties)return t;const s={};for(const o of n){const i=t.properties[o];i&&(s[o]=i)}return{...t,properties:s}}function Ne(){return B.filter(t=>t!=="type")}function $e(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Ae(t,e){return t[e]===void 0}function we(t){const e=F.c(13),{schema:n,value:s,onChange:o,siteDefaultSeo:i,formResetKey:r}=t,l=X(n,D).properties??{},h=Ne();let p;e[0]!==i?(p=!!i&&Object.keys(i).length>0,e[0]=i,e[1]=p):p=e[1];const u=p,[a,S]=M.useState(r);let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d={},e[2]=d):d=e[2];const[m,g]=M.useState(d);a!==r&&(S(r),g({}));let v;e[3]!==m||e[4]!==s?(v=y=>m[y]!==void 0?m[y]:Ae(s,y),e[3]=m,e[4]=s,e[5]=v):v=e[5];const R=v;let x;e[6]!==o||e[7]!==i||e[8]!==s?(x=(y,T)=>{g(C=>({...C,[y]:T}));const j={...s};if(T)delete j[y];else{const C=i?.[y];j[y]=C??(y==="type"?"website":"")}o(j)},e[6]=o,e[7]=i,e[8]=s,e[9]=x):x=e[9];const E=x,P="min-w-0 space-y-6",b=B.map(y=>{const T=l[y];if(!T)return null;const j=u&&h.includes(y),C=j&&R(y),ee=C?i?.[y]??s[y]:s[y],te=T.title??$e(y);return f.jsxs("div",{className:"space-y-2",children:[f.jsx("div",{className:se(C&&"pointer-events-none opacity-60"),children:ae({schema:T,value:ee,onChange:$=>{C||o({...s,[y]:$})},path:y,label:te,breadcrumbPath:[],onBreadcrumbChange:Ie})}),j&&f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(A,{id:`seo-use-default-${y}`,checked:C,onCheckedChange:$=>E(y,$)}),f.jsx(Y,{htmlFor:`seo-use-default-${y}`,className:"text-xs font-normal text-muted-foreground",children:"Use default"})]})]},y)});let _;return e[10]!==r||e[11]!==b?(_=f.jsx("div",{className:P,children:b},r),e[10]=r,e[11]=b,e[12]=_):_=e[12],_}function Ie(){}function Ye(t){const e=F.c(18),{schema:n,resolveType:s,value:o,formResetKey:i,onChange:r,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(J(s)==="general"){let m;e[0]!==r?(m=v=>r(v),e[0]=r,e[1]=m):m=e[1];let g;return e[2]!==i||e[3]!==n||e[4]!==l||e[5]!==m||e[6]!==o?(g=f.jsx(we,{schema:n,value:o,onChange:m,siteDefaultSeo:l,formResetKey:i}),e[2]=i,e[3]=n,e[4]=l,e[5]=m,e[6]=o,e[7]=g):g=e[7],g}let p;e[8]!==s||e[9]!==n?(p=X(n,s),e[8]=s,e[9]=n,e[10]=p):p=e[10];const u=p;let a;e[11]===Symbol.for("react.memo_cache_sentinel")?(a=[],e[11]=a):a=e[11];const S=c??Ve;let d;return e[12]!==u||e[13]!==i||e[14]!==r||e[15]!==S||e[16]!==o?(d=f.jsx(ue,{schema:u,value:o,onChange:r,basePath:"",breadcrumbPath:a,onBreadcrumbChange:S},i),e[12]=u,e[13]=i,e[14]=r,e[15]=S,e[16]=o,e[17]=d):d=e[17],d}function Ve(){}function Be(t){const e=F.c(20),{options:n,value:s,onChange:o}=t,i=z();if(n.length<=1)return null;let r;e[0]!==i?(r=i("sectionsEditor.seoTypeSelect.label"),e[0]=i,e[1]=r):r=e[1];let c;e[2]!==r?(c=f.jsx(Y,{className:"text-xs text-muted-foreground",children:r}),e[2]=r,e[3]=c):c=e[3];let l;e[4]!==i?(l=i("sectionsEditor.seoTypeSelect.placeholder"),e[4]=i,e[5]=l):l=e[5];let h;e[6]!==l?(h=f.jsx(pe,{className:"w-full",children:f.jsx(de,{placeholder:l})}),e[6]=l,e[7]=h):h=e[7];let p;e[8]!==n?(p=n.filter(Me).map(Ue),e[8]=n,e[9]=p):p=e[9];let u;e[10]!==p?(u=f.jsx(ye,{children:p}),e[10]=p,e[11]=u):u=e[11];let a;e[12]!==o||e[13]!==h||e[14]!==u||e[15]!==s?(a=f.jsxs(he,{value:s,onValueChange:o,children:[h,u]}),e[12]=o,e[13]=h,e[14]=u,e[15]=s,e[16]=a):a=e[16];let S;return e[17]!==c||e[18]!==a?(S=f.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[c,a]}),e[17]=c,e[18]=a,e[19]=S):S=e[19],S}function Ue(t){return f.jsx(fe,{value:t.resolveType,children:t.title},t.resolveType)}function Me(t){return t.resolveType.length>0}function Xe(t){const e=F.c(33),{rawSeo:n,innerSeo:s,defaultResolveType:o,seoSchema:i,activeResolveType:r,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:h,onBreadcrumbChange:p,onPersistRaw:u,onInnerChange:a,onClearForm:S,onBumpFormKey:d,beforeFields:m}=t;let g;e[0]!==o||e[1]!==d||e[2]!==S||e[3]!==u?(g=T=>{if(T){const j=Se(o);u(j),S(),d();return}u(null),S(),d()},e[0]=o,e[1]=d,e[2]=S,e[3]=u,e[4]=g):g=e[4];const v=g;let R;e[5]!==u||e[6]!==n?(R=T=>{const j=ge(T,n);u(j)},e[5]=u,e[6]=n,e[7]=R):R=e[7];const x=R;let E;e[8]!==d||e[9]!==a?(E=T=>{a({__resolveType:T}),d()},e[8]=d,e[9]=a,e[10]=E):E=e[10];const P=E;let b;e[11]!==r||e[12]!==P||e[13]!==n||e[14]!==i||e[15]!==c?(b=k(n)&&i&&r&&c&&c.length>0&&f.jsx(Be,{options:c,value:r,onChange:P}),e[11]=r,e[12]=P,e[13]=n,e[14]=i,e[15]=c,e[16]=b):b=e[16];let _;e[17]!==r||e[18]!==l||e[19]!==s||e[20]!==p||e[21]!==a||e[22]!==n||e[23]!==i||e[24]!==h?(_=k(n)&&i&&r&&f.jsx(Ye,{schema:i,resolveType:r,value:s,formResetKey:l,onChange:T=>a(T),onBreadcrumbChange:p,siteDefaultSeo:h}),e[17]=r,e[18]=l,e[19]=s,e[20]=p,e[21]=a,e[22]=n,e[23]=i,e[24]=h,e[25]=_):_=e[25];let y;return e[26]!==m||e[27]!==x||e[28]!==v||e[29]!==n||e[30]!==b||e[31]!==_?(y=f.jsxs(Fe,{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]=y):y=e[32],y}export{Xe as P,Ye as S,w as a,He as b,Pe as c,q as d,Ce as f,k as i,qe as r,Je as u};
|
|
1
|
+
import{c as F,o as ne,K as U,b as z,j as f,r as M,m as se}from"./index-7lMfFoqm.js";import{i as oe,b as re,r as G,c as ie,d as le,e as ce,g as ae,S as ue}from"./index-C6_YevgU.js";import{L as Y}from"./label-nodTVgZf.js";import{S as A}from"./switch-DI_ObHYK.js";import{d as fe,a as pe,b as de,c as ye,S as he}from"./select-CefiTUgj.js";const me="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 Q(t,e){return t===null?null:N(e)?{...e,section:t}:t}function Se(t){return{__resolveType:t}}function ge(t,e){if(!k(e))return null;if(t){const n=w(e)??{};return{__resolveType:me,section:n}}return N(e)?w(e)??null:K(e)?e:null}const ve="General";function L(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function W(t,e){return t===D?ve:e}function Z(t){const e=ie(t),n=new Set,s=[];for(const o of e)L(o.resolveType)&&(le(o.resolveType)||n.has(o.resolveType)||(n.add(o.resolveType),s.push({resolveType:o.resolveType,title:W(o.resolveType,o.title),description:o.description})));return s}function V(t){const e=re(t),n=G(e,t),s=Z(n?.properties?.seo);return s.length>0?s:be(t)}function be(t){const e=t.manifest?.blocks??{},n=[];for(const[s,o]of Object.entries(e))if(s.includes("sections"))for(const i of Object.keys(o)){if(!L(i))continue;const r=i.split("/").pop()?.replace(/\.tsx?$/,"")??i;n.push({resolveType:i,title:W(i,r)})}return n}function q(t){const e=V(t),n=e.find(s=>s.resolveType===D);return n?n.resolveType:e[0]?.resolveType??D}function H(t,e){const n=e.__resolveType;if(typeof n=="string"){const s=G(n,t),o=Z(s?.properties?.seo);if(o.length>0)return o}return V(t)}function Te(t,e){const n=H(t,e),s=n.find(o=>o.resolveType===D);return s?s.resolveType:n[0]?.resolveType??q(t)}function xe(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:q(t)}function _e(t,e,n){const s=n.__resolveType;return typeof s=="string"&&L(s)?s:Te(t,e)}const Re=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),D="website/sections/Seo/SeoV2.tsx",Ee=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function O(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function je(t){return typeof t.__resolveType=="string"&&L(t.__resolveType)?!0:Ee.some(e=>e in t)}function Ce(t,e){for(const[n,s]of Object.entries(t)){if(!O(s))continue;const o=s,i=o.__resolveType;if(typeof i=="string"&&Re.has(i))continue;const r=o.seo;if(O(r)){const c=r;if(je(c))return{blockKey:n,kind:"nested",seoData:c,blockData:o,seoResolveType:e?_e(e,o,c):typeof c.__resolveType=="string"&&L(c.__resolveType)?c.__resolveType:D}}}for(const[n,s]of Object.entries(t)){if(!O(s))continue;const o=s;if(typeof o.__resolveType=="string"&&L(o.__resolveType))return{blockKey:n,kind:"block",seoData:o,blockData:o,seoResolveType:o.__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=Ce(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?H(n,l.blockData):void 0,build:h=>De(l,h)}:null}const s=t[e.pageKey];if(!O(s))return null;const o=s,i=o.seo,r=w(i),c=r&&O(r)?r:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:i,seoResolveType:n?xe(n,c):typeof c?.__resolveType=="string"?c.__resolveType:D,seoTypeOptions:n?V(n):void 0,build:l=>({...o,seo:l===null?null:Q(l,i)})}}function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Pe(t,e,n,s){if(t.kind==="page"){if(!I(n))return null;const o=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:s===null?null:Q(s,o)}}return I(n)?e.siteKind==="block"?s:{...n,seo:s}:null}function He(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function Je(t){const e=F.c(23),{orgSlug:n,virtualMcpId:s,branch:o,target:i,resolved:r,onSaved:c}=t,l=ne(),h=`${n}/${s}/${o}`;let p;e[0]!==o||e[1]!==n||e[2]!==s?(p={orgSlug:n,virtualMcpId:s,branch:o},e[0]=o,e[1]=n,e[2]=s,e[3]=p):p=e[3];let u;e[4]!==c?(u={onSaved:c},e[4]=c,e[5]=u):u=e[5];const{save:a,flush:S,isPending:d}=ce(p,u);let m;e[6]!==h||e[7]!==l||e[8]!==r||e[9]!==a||e[10]!==i?(m=E=>{r&&a(r.blockKey,()=>{const b=l.getQueryData(U.decofile(h))?.[r.blockKey];return Pe(i,r,b,E)})},e[6]=h,e[7]=l,e[8]=r,e[9]=a,e[10]=i,e[11]=m):m=e[11];const g=m;let v;e[12]!==h||e[13]!==l||e[14]!==r||e[15]!==a||e[16]!==i?(v=E=>{!r||i.kind!=="page"||a(r.blockKey,()=>{const b=l.getQueryData(U.decofile(h))?.[r.blockKey];return I(b)?{...b,seo:E}:null})},e[12]=h,e[13]=l,e[14]=r,e[15]=a,e[16]=i,e[17]=v):v=e[17];const R=v;let x;return e[18]!==S||e[19]!==d||e[20]!==R||e[21]!==g?(x={persistSeo:g,persistRawSeo:R,flush:S,isPending:d},e[18]=S,e[19]=d,e[20]=R,e[21]=g,e[22]=x):x=e[22],x}const Le="https://deco.cx/docs/en/performance/edge-async-render";function Fe(t){const e=F.c(23),{rawSeo:n,onEnableChange:s,onAsyncRenderChange:o,children:i}=t,r=z();let c;e[0]!==n?(c=k(n),e[0]=n,e[1]=c):c=e[1];const l=c;let h;e[2]!==n?(h=N(n),e[2]=n,e[3]=h):h=e[3];const p=h;let u;e[4]!==r?(u=r("sectionsEditor.seoFormChrome.enableLabel"),e[4]=r,e[5]=u):u=e[5];let a;e[6]!==u?(a=f.jsx(Y,{htmlFor:"seo-enable",className:"text-sm font-medium",children:u}),e[6]=u,e[7]=a):a=e[7];let S;e[8]!==l||e[9]!==s?(S=f.jsx(A,{id:"seo-enable",checked:l,onCheckedChange:s}),e[8]=l,e[9]=s,e[10]=S):S=e[10];let d;e[11]!==a||e[12]!==S?(d=f.jsxs("div",{className:"flex items-center justify-between gap-3",children:[a,S]}),e[11]=a,e[12]=S,e[13]=d):d=e[13];let m;e[14]!==p||e[15]!==i||e[16]!==l||e[17]!==o||e[18]!==r?(m=l&&f.jsxs(f.Fragment,{children:[i,f.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[f.jsxs("div",{className:"min-w-0 space-y-1",children:[f.jsx("p",{className:"text-sm font-medium",children:r("sectionsEditor.seoFormChrome.asyncRenderLabel")}),f.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",f.jsx("a",{href:Le,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:r("sectionsEditor.seoFormChrome.documentationLinkText")}),"."]})]}),f.jsx(A,{id:"seo-async-render",checked:p,onCheckedChange:o,className:"shrink-0"})]})]}),e[14]=p,e[15]=i,e[16]=l,e[17]=o,e[18]=r,e[19]=m):m=e[19];let g;return e[20]!==d||e[21]!==m?(g=f.jsxs("div",{className:"space-y-4",children:[d,m]}),e[20]=d,e[21]=m,e[22]=g):g=e[22],g}const B=["type","title","description","canonical","favicon","image","themeColor"],Oe=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],Ke=["jsonLD","title","description","noIndexing","configJsonLD"];function J(t){return t===D||/\/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 Oe;case"plp":return Ke;default:return null}}function X(t,e){const n=ke(J(e));if(!n||!t.properties)return t;const s={};for(const o of n){const i=t.properties[o];i&&(s[o]=i)}return{...t,properties:s}}function Ne(){return B.filter(t=>t!=="type")}function $e(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Ae(t,e){return t[e]===void 0}function we(t){const e=F.c(13),{schema:n,value:s,onChange:o,siteDefaultSeo:i,formResetKey:r}=t,l=X(n,D).properties??{},h=Ne();let p;e[0]!==i?(p=!!i&&Object.keys(i).length>0,e[0]=i,e[1]=p):p=e[1];const u=p,[a,S]=M.useState(r);let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d={},e[2]=d):d=e[2];const[m,g]=M.useState(d);a!==r&&(S(r),g({}));let v;e[3]!==m||e[4]!==s?(v=y=>m[y]!==void 0?m[y]:Ae(s,y),e[3]=m,e[4]=s,e[5]=v):v=e[5];const R=v;let x;e[6]!==o||e[7]!==i||e[8]!==s?(x=(y,T)=>{g(C=>({...C,[y]:T}));const j={...s};if(T)delete j[y];else{const C=i?.[y];j[y]=C??(y==="type"?"website":"")}o(j)},e[6]=o,e[7]=i,e[8]=s,e[9]=x):x=e[9];const E=x,P="min-w-0 space-y-6",b=B.map(y=>{const T=l[y];if(!T)return null;const j=u&&h.includes(y),C=j&&R(y),ee=C?i?.[y]??s[y]:s[y],te=T.title??$e(y);return f.jsxs("div",{className:"space-y-2",children:[f.jsx("div",{className:se(C&&"pointer-events-none opacity-60"),children:ae({schema:T,value:ee,onChange:$=>{C||o({...s,[y]:$})},path:y,label:te,breadcrumbPath:[],onBreadcrumbChange:Ie})}),j&&f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(A,{id:`seo-use-default-${y}`,checked:C,onCheckedChange:$=>E(y,$)}),f.jsx(Y,{htmlFor:`seo-use-default-${y}`,className:"text-xs font-normal text-muted-foreground",children:"Use default"})]})]},y)});let _;return e[10]!==r||e[11]!==b?(_=f.jsx("div",{className:P,children:b},r),e[10]=r,e[11]=b,e[12]=_):_=e[12],_}function Ie(){}function Ye(t){const e=F.c(18),{schema:n,resolveType:s,value:o,formResetKey:i,onChange:r,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(J(s)==="general"){let m;e[0]!==r?(m=v=>r(v),e[0]=r,e[1]=m):m=e[1];let g;return e[2]!==i||e[3]!==n||e[4]!==l||e[5]!==m||e[6]!==o?(g=f.jsx(we,{schema:n,value:o,onChange:m,siteDefaultSeo:l,formResetKey:i}),e[2]=i,e[3]=n,e[4]=l,e[5]=m,e[6]=o,e[7]=g):g=e[7],g}let p;e[8]!==s||e[9]!==n?(p=X(n,s),e[8]=s,e[9]=n,e[10]=p):p=e[10];const u=p;let a;e[11]===Symbol.for("react.memo_cache_sentinel")?(a=[],e[11]=a):a=e[11];const S=c??Ve;let d;return e[12]!==u||e[13]!==i||e[14]!==r||e[15]!==S||e[16]!==o?(d=f.jsx(ue,{schema:u,value:o,onChange:r,basePath:"",breadcrumbPath:a,onBreadcrumbChange:S},i),e[12]=u,e[13]=i,e[14]=r,e[15]=S,e[16]=o,e[17]=d):d=e[17],d}function Ve(){}function Be(t){const e=F.c(20),{options:n,value:s,onChange:o}=t,i=z();if(n.length<=1)return null;let r;e[0]!==i?(r=i("sectionsEditor.seoTypeSelect.label"),e[0]=i,e[1]=r):r=e[1];let c;e[2]!==r?(c=f.jsx(Y,{className:"text-xs text-muted-foreground",children:r}),e[2]=r,e[3]=c):c=e[3];let l;e[4]!==i?(l=i("sectionsEditor.seoTypeSelect.placeholder"),e[4]=i,e[5]=l):l=e[5];let h;e[6]!==l?(h=f.jsx(pe,{className:"w-full",children:f.jsx(de,{placeholder:l})}),e[6]=l,e[7]=h):h=e[7];let p;e[8]!==n?(p=n.filter(Me).map(Ue),e[8]=n,e[9]=p):p=e[9];let u;e[10]!==p?(u=f.jsx(ye,{children:p}),e[10]=p,e[11]=u):u=e[11];let a;e[12]!==o||e[13]!==h||e[14]!==u||e[15]!==s?(a=f.jsxs(he,{value:s,onValueChange:o,children:[h,u]}),e[12]=o,e[13]=h,e[14]=u,e[15]=s,e[16]=a):a=e[16];let S;return e[17]!==c||e[18]!==a?(S=f.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[c,a]}),e[17]=c,e[18]=a,e[19]=S):S=e[19],S}function Ue(t){return f.jsx(fe,{value:t.resolveType,children:t.title},t.resolveType)}function Me(t){return t.resolveType.length>0}function Xe(t){const e=F.c(33),{rawSeo:n,innerSeo:s,defaultResolveType:o,seoSchema:i,activeResolveType:r,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:h,onBreadcrumbChange:p,onPersistRaw:u,onInnerChange:a,onClearForm:S,onBumpFormKey:d,beforeFields:m}=t;let g;e[0]!==o||e[1]!==d||e[2]!==S||e[3]!==u?(g=T=>{if(T){const j=Se(o);u(j),S(),d();return}u(null),S(),d()},e[0]=o,e[1]=d,e[2]=S,e[3]=u,e[4]=g):g=e[4];const v=g;let R;e[5]!==u||e[6]!==n?(R=T=>{const j=ge(T,n);u(j)},e[5]=u,e[6]=n,e[7]=R):R=e[7];const x=R;let E;e[8]!==d||e[9]!==a?(E=T=>{a({__resolveType:T}),d()},e[8]=d,e[9]=a,e[10]=E):E=e[10];const P=E;let b;e[11]!==r||e[12]!==P||e[13]!==n||e[14]!==i||e[15]!==c?(b=k(n)&&i&&r&&c&&c.length>0&&f.jsx(Be,{options:c,value:r,onChange:P}),e[11]=r,e[12]=P,e[13]=n,e[14]=i,e[15]=c,e[16]=b):b=e[16];let _;e[17]!==r||e[18]!==l||e[19]!==s||e[20]!==p||e[21]!==a||e[22]!==n||e[23]!==i||e[24]!==h?(_=k(n)&&i&&r&&f.jsx(Ye,{schema:i,resolveType:r,value:s,formResetKey:l,onChange:T=>a(T),onBreadcrumbChange:p,siteDefaultSeo:h}),e[17]=r,e[18]=l,e[19]=s,e[20]=p,e[21]=a,e[22]=n,e[23]=i,e[24]=h,e[25]=_):_=e[25];let y;return e[26]!==m||e[27]!==x||e[28]!==v||e[29]!==n||e[30]!==b||e[31]!==_?(y=f.jsxs(Fe,{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]=y):y=e[32],y}export{Xe as P,Ye as S,w as a,He as b,Pe as c,q as d,Ce as f,k as i,qe as r,Je as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as it,r as E,j as e,k as rt}from"./index-7lMfFoqm.js";import{m as mt,o as pt,p as st,q as at}from"./sidebar-CMNFHIra.js";import{m as nt}from"./automation-runs-6THMzkHu.js";import{r as lt,u as ct,a as dt,b as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-BOYoN6bZ.js";import{r as xt}from"./index-C6_YevgU.js";import"./LayoutLeft-B98Y7j9l.js";import"./use-mobile-JVtF6XY7.js";import"./X-pxLklxt-.js";import"./tooltip-BOHK0On4.js";import"./select-CefiTUgj.js";import"./Check-CC9gPb_A.js";import"./ChevronDown-BgfnpwV0.js";import"./ChevronUp-C5_Sfc3S.js";import"./useInfiniteQuery-CQw734Ep.js";import"./use-infinite-scroll-BRCCFOe_.js";import"./use-connection-ClgMFrpZ.js";import"./use-mcp-client-BBS2wBc8.js";import"./auth-BTPRevv4.js";import"./use-virtual-mcp-QKzdLITZ.js";import"./card-Bt7sN6sd.js";import"./table-v2gjL7EU.js";import"./empty-state-VEwKl4O7.js";import"./use-members-BXFbi5lw.js";import"./use-org-auth-client-BpFhLPx3.js";import"./use-clock-tick-BkPc4RjU.js";import"./AlertCircle-XnshFjYW.js";import"./CheckCircle-CxnbmKEy.js";import"./DotsVertical-CnVoFOdL.js";import"./agent-icon-DklLFaSa.js";import"./Tool01-m1EmcVyA.js";import"./ArrowUp-VZsF9axi.js";import"./Settings02-Yvc0vxEw.js";import"./Tool02-r9aj6Qyy.js";import"./ArrowRight-CX6eNZSi.js";import"./ArrowUpRight-Df_nmFmy.js";import"./TrendUp01-h4x0FenV.js";import"./ZapSquare-DiexjyhK.js";import"./ZoomOut-CeX9nBzw.js";import"./Users03-BLeBKZva.js";import"./ChevronRight-21KH5QUR.js";import"./Stars02-D8l4enBD.js";import"./Copy01-Diq48EWM.js";import"./Globe01-DVNadxp3.js";import"./Eye-CPji9XgK.js";import"./FilterLines-CrGTcOfX.js";import"./Star01-1QXq7d0Q.js";import"./Globe04-BDFigbbA.js";import"./SwitchHorizontal01-CdbWhzYI.js";import"./HardDrive-CJF16wvx.js";import"./Image01-COoMGEPb.js";import"./Key01-CtX8cIgY.js";import"./XCircle-Jor3fl3p.js";import"./LinkExternal01-Calr_A6c.js";import"./LogOut01-qYuBvoFH.js";import"./Monitor01-BiNi2Su2.js";import"./Sun-AMWwxXLJ.js";import"./Package-BgoRXE8D.js";import"./Palette-BwpXM3TT.js";import"./Play-BgnxS2-x.js";import"./Plus-D-8cpNUO.js";import"./SearchLg-B8C5Qm8O.js";import"./SearchMd-BZf1S_oW.js";import"./Shield01-BICJ_pln.js";import"./Stars01-CB8X2GZM.js";import"./Trash01-CVr9u3xi.js";import"./Upload01-D2PYYKGU.js";import"./User01-DqUeIcrF.js";import"./Users01-Ca4DQ08l.js";import"./XClose-DoQ8FIVP.js";import"./Zap-BYKdCfkZ.js";import"./use-automations-DafBUEuO.js";import"./studio-tools-BBHXaaAJ.js";import"./useSuspenseInfiniteQuery-kVqRtLqF.js";import"./avatar-CNc6KWqj.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dlj9Yo44.js";import"./file-type-icon-C50voPyF.js";import"./dialog-7TP2Rj2D.js";import"./tab-id-BijBBRwE.js";import"./hooks-OLVSgKAi.js";import"./decopilot-sse-pool-B_K0sO1S.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-BUCy41wb.js";import"./autosend-WnRL52gX.js";import"./use-ai-providers-Bsac7hB5.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-D7VrwkLK.js";import"./use-organization-settings-DfEYzIUp.js";import"./monaco-editor-Czt4oHBX.js";import"./index-BhfXxR4M.js";import"./index-BAgEiubw.js";import"./calendar-DFq-LIxY.js";import"./shell-layout-NJLfF0_e.js";import"./required-auth-layout-BadNf0FP.js";import"./use-org-sso-f_QvizBC.js";import"./integration-icon-C0xV3gWf.js";import"./use-navigate-to-agent-DqfXAZ-6.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CJi4tHw0.js";import"./form-C8YEeakk.js";import"./label-nodTVgZf.js";import"./input-AF9b5wfZ.js";import"./switch-DI_ObHYK.js";import"./drawer-CO8Igk5a.js";import"./collection-search-B20qLeZq.js";import"./index-DZVUOwCL.js";import"./get-initials-D-f_fDFw.js";import"./popover-BkL7Aezg.js";import"./use-registry-app-BwHReYDm.js";import"./use-mcp-tools-RPaTGUO_.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-DFwi7YAk.js";import"./mcp-oauth-BjijQ5bq.js";import"./extract-connection-data-BEJV81wi.js";import"./dropdown-menu-CZyflK5H.js";import"./command-NGsH11Ja.js";import"./index-BYC4n0jP.js";import"./companions-core-C8hdG_qv.js";import"./tabs-DKQG6gs3.js";import"./toggle-group-BLkkLS1l.js";import"./use-deco-credits-DmhRJlBv.js";import"./alert-dialog-DSeYsJav.js";import"./toolbar-icon-button-BZllJ9er.js";import"./skeleton-Bo-YgqMO.js";import"./github-repo-picker-1AJl1NXF.js";import"./use-debounced-value-B2oza6eL.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./connection-card-B_6si4eG.js";import"./use-registry-connections-Di8iJvGo.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-DEJkcZ7j.js";import"./connection-form-helpers-BV8uHczM.js";import"./collection-tabs-DNI8PqVZ.js";import"./badge-BUAKnV1x.js";import"./connect-desktop-dialog-D2pvlftk.js";import"./select-model-hpWFXkSi.js";import"./checkbox-BXjzUPh_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-C960zryl.js";import"./index-LUsO6ZZ_.js";import"./toolbar-Dh7M70Tq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DOnHpSDd.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-CdM4FECT.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-tjupSmgi.js";import"./use-debounced-autosave-BmDbwXYT.js";import"./index-BXCOoie9.js";import"./search-input-eRtomdpQ.js";import"./use-secrets-QRS4UIur.js";import"./useQueries-_vDV4wPR.js";import"./use-file-configs-CtM14T7F.js";import"./automation-list-row-dutMC3QV.js";function gi(u){const t=it.c(46),{open:k,onOpenChange:N,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),P=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(P),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==P&&(Z(P),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const M=j;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]!==N?(F=r=>{r||K(),N(r)},t[6]=K,t[7]=N,t[8]=F):F=t[8];const q=F,z=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,A=m.kind==="site"&&o&&n,B=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 H=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const $=O;let l;t[13]!==z?(l=e.jsx(mt,{className:"text-sm font-semibold",children:z}),t[13]=z,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]!==$||t[22]!==H||t[23]!==M||t[24]!==v||t[25]!==h||t[26]!==B||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]!==A||t[37]!==_?(S=!o||!T&&!A?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:B}):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:H,onBumpFormKey:$}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:V})})})}),t[20]=p,t[21]=$,t[22]=H,t[23]=M,t[24]=v,t[25]=h,t[26]=B,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]=A,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]!==q||t[43]!==k||t[44]!==f?(b=e.jsx(at,{open:k,onOpenChange:q,children:f}),t[42]=q,t[43]=k,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{gi as SeoSheet};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,aF as $,j as c,cV as L,aJ as G,aG as A,aC as _,aI as g,cW as E,bL as j,cX as z,cY as w,d2 as H,d4 as K,aE as V,d6 as W,d3 as Z,d5 as J,cZ as U,c_ as X,d0 as Y,c as R,m as q}from"./index-
|
|
1
|
+
import{r as i,aF as $,j as c,cV as L,aJ as G,aG as A,aC as _,aI as g,cW as E,bL as j,cX as z,cY as w,d2 as H,d4 as K,aE as V,d6 as W,d3 as Z,d5 as J,cZ as U,c_ as X,d0 as Y,c as R,m as q}from"./index-7lMfFoqm.js";var C="Popover",[b]=V(C,[w]),P=w(),[B,u]=b(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=P(e),l=i.useRef(null),[d,h]=i.useState(!1),[x,f]=$({prop:r,defaultProp:n??!1,onChange:s,caller:C});return c.jsx(L,{...p,children:c.jsx(B,{scope:e,contentId:G(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:d,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",Q=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(F,o),s=P(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(E,{...s,...r,ref:e})});Q.displayName=F;var S="PopoverTrigger",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(S,o),s=P(o),a=A(e,n.triggerRef),p=c.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":k(n.open),...r,ref:a,onClick:g(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(E,{asChild:!0,...s,children:p})});y.displayName=S;var O="PopoverPortal",[ee,oe]=b(O,{forceMount:void 0}),D=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=u(O,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(j,{present:o||s.open,children:c.jsx(z,{asChild:!0,container:n,children:r})})})};D.displayName=O;var v="PopoverContent",M=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=u(v,t.__scopePopover);return c.jsx(j,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});M.displayName=v;var te=W("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(null),n=A(e,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return H(a)},[]),c.jsx(K,{as:te,allowPinchZoom:!0,children:c.jsx(I,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g(t.onPointerDownOutside,a=>{const p=a.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,d=p.button===2||l;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:g(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(I,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),I=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:h,...x}=t,f=u(v,o),m=P(o);return Z(),c.jsx(J,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(U,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(X,{"data-state":k(f.open),role:"dialog",id:f.contentId,...m,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),T="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(T,o);return c.jsx(_.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=T;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(Y,{...n,...r,ref:e})});ce.displayName=ae;function k(t){return t?"open":"closed"}var ie=N,pe=y,le=D,de=M;function fe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ve(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=R.c(12);let o,r,n,s;e[0]!==t?({className:o,align:n,sideOffset:s,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s):(o=e[1],r=e[2],n=e[3],s=e[4]);const a=n===void 0?"center":n,p=s===void 0?4:s;let l;e[5]!==o?(l=q("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let d;return e[7]!==a||e[8]!==r||e[9]!==p||e[10]!==l?(d=c.jsx(le,{children:c.jsx(de,{"data-slot":"popover-content",align:a,sideOffset:p,className:l,...r})}),e[7]=a,e[8]=r,e[9]=p,e[10]=l,e[11]=d):d=e[11],d}export{fe as P,ve as a,ge as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as me,b as ne,j as t,B as ge}from"./index-DLFjA-pm.js";import{i as he}from"./AlertCircle-OzZiRcN4.js";import{n as be}from"./LinkExternal01-D_Zvma4v.js";import{aP as ve,k as je}from"./agent-icon-BZhgfhdU.js";import{I as de}from"./input-CYZckS5J.js";import{L as pe}from"./label-EdLaI-5R.js";import{M as Ee}from"./multi-select-BRDHWm9A.js";import{b as ce,c as Pe,T as fe,a as ye}from"./tabs-BEzq_HDC.js";import{T as Ce}from"./textarea-Dr__cCCA.js";import{v as ke,w as Ne,x as Te,y as we,o as Be,z as Le,A as Se,B as Fe,C as Re,D as Ae,I as Ie}from"./index-DDvdm6MO.js";import{c as _e,T as Me,a as $e}from"./tooltip-DMRr_d0y.js";import{b as Ve,a as ze,B as Ue}from"./block-document-DoFgnzXM.js";import{u as Ye}from"./use-autosave-COG8LwFd.js";import{s as Y,E as De,R as qe,A as Ke}from"./primitives-BLW0qP6x.js";import"./Tool01-B1EOI3tm.js";import"./ArrowUp-DKOgR0xL.js";import"./Settings02-DQ4GSu-t.js";import"./Tool02-DNB1gZ9p.js";import"./ArrowRight-BTqt321d.js";import"./ArrowUpRight-CvwJB6OK.js";import"./TrendUp01-CKe9YInp.js";import"./ZapSquare-ixKz1MO4.js";import"./ZoomOut-C1FPWq-p.js";import"./Users03-B_epF-ec.js";import"./CheckCircle-6cj-Xwhi.js";import"./Check-C9Hy68pG.js";import"./ChevronDown-CZIAcwGV.js";import"./ChevronRight--wVf7uGf.js";import"./ChevronUp-CsSKaqS5.js";import"./DotsVertical-c-_wCTgn.js";import"./Stars02-DfuXiu3-.js";import"./Copy01-2Oyl2xhw.js";import"./Globe01-CDWygr27.js";import"./Eye-D81BWda-.js";import"./FilterLines-D73LV27Z.js";import"./Star01-KC9BvNup.js";import"./Globe04-D4m747kU.js";import"./SwitchHorizontal01-vm3X2ReA.js";import"./HardDrive-zpDb2j2L.js";import"./Image01--bBQuOXb.js";import"./Key01-COjK9kAq.js";import"./LayoutLeft-YhbkIV5-.js";import"./XCircle-C1PO7Xjh.js";import"./LogOut01-DWjWz0Vk.js";import"./Monitor01-RMk_Hy33.js";import"./Sun-C8Rt6Ua0.js";import"./Package-KX2QCXEp.js";import"./Palette-BUK1fohV.js";import"./Play-BQfux-g7.js";import"./Plus-0lhw9kgX.js";import"./SearchLg-D5zWzyl-.js";import"./SearchMd-DU09j0yH.js";import"./Shield01-CfcJULbp.js";import"./Stars01-BS-Qws6o.js";import"./Trash01-DWauVxmg.js";import"./Upload01-Jx7sveIV.js";import"./User01-DOzH65Yj.js";import"./Users01-Bl3Cipzb.js";import"./XClose-C6Z74Mtu.js";import"./X-CkADyhqE.js";import"./Zap-crfeCyH5.js";import"./badge-BP3RfcAV.js";import"./checkbox-Dvf0sR7c.js";import"./command-DolM9tQW.js";import"./index-qFEnr-Eg.js";import"./dialog-B-PFEu8t.js";import"./popover-CJG9G1eo.js";import"./chat-context-BjgR1MKj.js";import"./autosend-DMw4eplP.js";import"./hooks-DZ2G0HBV.js";import"./use-mcp-client-Cu-eLUiE.js";import"./auth-BgXJQGvH.js";import"./decopilot-sse-pool-B7H8BAsy.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-z2MoKuxB.js";import"./use-virtual-mcp-DiaCfMBV.js";import"./use-ai-providers-BIphh0fq.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-C1fzpsy-.js";import"./use-organization-settings-DzM8_ele.js";import"./automation-runs-3Nf8PuON.js";import"./select-C4Yh3I_I.js";import"./useInfiniteQuery-CpL2Fv2W.js";import"./use-infinite-scroll-D6AmDQig.js";import"./use-connection-iKR4DAK5.js";import"./card-BkL1g2ae.js";import"./sidebar-BXTMhX7B.js";import"./use-mobile-F9kT_Idr.js";import"./table-V7ZlHmgG.js";import"./empty-state-f3NNQ1ui.js";import"./use-members-DiTBYVZi.js";import"./use-org-auth-client-BoIjqJkP.js";import"./use-clock-tick-DO60_p2y.js";import"./use-automations-DXFeY9Yi.js";import"./useSuspenseInfiniteQuery-8mEOR8yL.js";import"./avatar-DOKisfmu.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BwNmwZN4.js";import"./file-type-icon-Czs5uFNK.js";import"./monaco-editor-Cj3yPb4I.js";import"./index-BoUF-4pL.js";import"./index-DwaHcKY7.js";import"./calendar-DXzTKJPo.js";import"./shell-layout-Bwrf-bDx.js";import"./required-auth-layout-IpGhD1Lv.js";import"./use-org-sso-Dt3zVq13.js";import"./integration-icon-EcNPoJWr.js";import"./use-navigate-to-agent-BW0Lbp2M.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CjpEkyIS.js";import"./form-DvszbWzu.js";import"./drawer-ioB-jayl.js";import"./collection-search-BUwXi5On.js";import"./index-CiqBVt-V.js";import"./get-initials-D-f_fDFw.js";import"./use-registry-app-BZbyzB0r.js";import"./use-mcp-tools-DS3ivkR4.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-EDYGCrss.js";import"./mcp-oauth-DhsKmk5n.js";import"./extract-connection-data-ekCc1hnU.js";import"./dropdown-menu-Bv8U-u2N.js";import"./companions-core-E1684c44.js";import"./toggle-group-DOz_2Aus.js";import"./use-deco-credits-cqQ5Grgp.js";import"./alert-dialog-eVH4lDuw.js";import"./toolbar-icon-button-28RF0SOr.js";import"./skeleton-mpFjzoUE.js";import"./github-repo-picker-LzKpKLTc.js";import"./use-debounced-value-vm2YywVs.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./connection-card-tEoMF1sK.js";import"./use-registry-connections-DZLuPfih.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-y0k0toUD.js";import"./collection-tabs-Bg8diJEX.js";import"./connect-desktop-dialog-2ytDMSQS.js";import"./select-model-JORQ2Gh2.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Dyof3VvN.js";import"./index-x2umO0Ia.js";import"./toolbar-CKNfiQcT.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-xCrGZ6sG.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-ClE5Y8Td.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-DjzGZ1ej.js";import"./use-debounced-autosave-BL9BhLLo.js";import"./index-B__oKxRn.js";import"./search-input-DkP3MvKd.js";import"./switch-DhX1LgoM.js";import"./use-secrets-0AO756Ta.js";import"./useQueries-LX6i8RGj.js";import"./use-file-configs-DbZyRh6z.js";import"./automation-list-row-COyQ04hP.js";function Ge(C){return Array.isArray(C)?C.map(e=>({key:Y(e?.key),value:Y(e?.value)})):[]}function Qo(C){const e=me.c(111),{orgSlug:r,virtualMcpId:a,branch:s,blockKey:i,block:x,decofile:p,meta:u,previewBaseUrl:m}=C,o=ne(),f=ke(a);let b;e[0]!==s||e[1]!==r||e[2]!==f||e[3]!==a?(b={orgSlug:r,virtualMcpId:a,branch:s,packagePath:f},e[0]=s,e[1]=r,e[2]=f,e[3]=a,e[4]=b):b=e[4];const n=Ne(b);let d;e[5]!==x?(d=Te(x,"posts"),e[5]=x,e[6]=d):d=e[6];const y=d;let c;e[7]!==i||e[8]!==n?(c=q=>{n.mutate({blockKey:i,data:Le(i,"posts",Se(q))})},e[7]=i,e[8]=n,e[9]=c):c=e[9];const[l,g]=Ye(y,c);let E;e[10]!==l||e[11]!==g?(E=(q,ue)=>g({...l,[q]:ue}),e[10]=l,e[11]=g,e[12]=E):E=e[12];const h=E;let N;e[13]!==p||e[14]!==l||e[15]!==m?(N=Ve({decofile:p,post:l,previewBaseUrl:m}),e[13]=p,e[14]=l,e[15]=m,e[16]=N):N=e[16];const k=N;let v,P,$;e[17]!==l||e[18]!==o?(P=we(l),v=P.length>0,$=P.length===1?o("sandbox.postEditor.missingFieldSingular",{fields:P.join(", ")}):o("sandbox.postEditor.missingFieldPlural",{fields:P.join(", ")}),e[17]=l,e[18]=o,e[19]=v,e[20]=P,e[21]=$):(v=e[19],P=e[20],$=e[21]);const T=$;let w;e[22]!==l.title||e[23]!==o?(w=Y(l.title)||o("sandbox.postEditor.untitledPost"),e[22]=l.title,e[23]=o,e[24]=w):w=e[24];let D;e[25]!==w?(D=t.jsx("span",{className:"truncate text-sm font-medium",children:w}),e[25]=w,e[26]=D):D=e[26];let B;e[27]!==v||e[28]!==P||e[29]!==T||e[30]!==o?(B=v&&t.jsxs(_e,{children:[t.jsx(Me,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(he,{size:14}),P.length," ",P.length===1?o("sandbox.postEditor.issueSingular"):o("sandbox.postEditor.issuePlural")]})}),t.jsx($e,{side:"bottom",children:T})]}),e[27]=v,e[28]=P,e[29]=T,e[30]=o,e[31]=B):B=e[31];let L;e[32]!==n.isError||e[33]!==n.isPending?(L=t.jsx(Be,{isPending:n.isPending,isError:n.isError}),e[32]=n.isError,e[33]=n.isPending,e[34]=L):L=e[34];const U=!k||v;let S;e[35]!==v||e[36]!==T||e[37]!==k||e[38]!==o?(S=v?T:o(k?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),e[35]=v,e[36]=T,e[37]=k,e[38]=o,e[39]=S):S=e[39];let F;e[40]!==v||e[41]!==k?(F=()=>{k&&!v&&window.open(k,"_blank","noopener,noreferrer")},e[40]=v,e[41]=k,e[42]=F):F=e[42];let V;e[43]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(be,{size:14}),e[43]=V):V=e[43];let R;e[44]!==o?(R=o("sandbox.postEditor.seePreview"),e[44]=o,e[45]=R):R=e[45];let A;e[46]!==U||e[47]!==S||e[48]!==F||e[49]!==R?(A=t.jsxs(ge,{type:"button",variant:"outline",size:"sm",disabled:U,title:S,onClick:F,children:[V,R]}),e[46]=U,e[47]=S,e[48]=F,e[49]=R,e[50]=A):A=e[50];let I;e[51]!==B||e[52]!==L||e[53]!==A?(I=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[B,L,A]}),e[51]=B,e[52]=L,e[53]=A,e[54]=I):I=e[54];let _;e[55]!==I||e[56]!==D?(_=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[D,I]}),e[55]=I,e[56]=D,e[57]=_):_=e[57];let M;e[58]!==l.title?(M=Y(l.title),e[58]=l.title,e[59]=M):M=e[59];let z;e[60]!==h?(z=q=>h("title",q),e[60]=h,e[61]=z):z=e[61];let j;e[62]!==o?(j=o("sandbox.postEditor.postTitlePlaceholder"),e[62]=o,e[63]=j):j=e[63];let K;e[64]!==M||e[65]!==z||e[66]!==j?(K=t.jsx(De,{value:M,onChange:z,placeholder:j,className:"py-1 text-4xl font-bold text-foreground"}),e[64]=M,e[65]=z,e[66]=j,e[67]=K):K=e[67];let le;e[68]===Symbol.for("react.memo_cache_sentinel")?(le=t.jsx(ve,{}),e[68]=le):le=e[68];let G;e[69]!==o?(G=o("sandbox.postEditor.contentTab"),e[69]=o,e[70]=G):G=e[70];let H;e[71]!==G?(H=t.jsxs(ce,{value:"content",children:[le,G]}),e[71]=G,e[72]=H):H=e[72];let re;e[73]===Symbol.for("react.memo_cache_sentinel")?(re=t.jsx(je,{}),e[73]=re):re=e[73];let J;e[74]!==o?(J=o("sandbox.postEditor.settingsTab"),e[74]=o,e[75]=J):J=e[75];let O;e[76]!==J?(O=t.jsxs(ce,{value:"settings",children:[re,J]}),e[76]=J,e[77]=O):O=e[77];let Q;e[78]!==H||e[79]!==O?(Q=t.jsxs(Pe,{children:[H,O]}),e[78]=H,e[79]=O,e[80]=Q):Q=e[80];let W;e[81]!==l.sections?(W=ze(l.sections),e[81]=l.sections,e[82]=W):W=e[82];let X;e[83]!==h?(X=q=>h("sections",q),e[83]=h,e[84]=X):X=e[84];let Z;e[85]!==s||e[86]!==r||e[87]!==a?(Z={orgSlug:r,virtualMcpId:a,branch:s},e[85]=s,e[86]=r,e[87]=a,e[88]=Z):Z=e[88];let ee;e[89]!==o?(ee=o("sandbox.postEditor.noContentYet"),e[89]=o,e[90]=ee):ee=e[90];let te;e[91]!==u||e[92]!==W||e[93]!==X||e[94]!==Z||e[95]!==ee?(te=t.jsx(fe,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(Ue,{value:W,onChange:X,meta:u,sandboxRef:Z,emptyMessage:ee})})}),e[91]=u,e[92]=W,e[93]=X,e[94]=Z,e[95]=ee,e[96]=te):te=e[96];let se;e[97]!==p||e[98]!==l||e[99]!==h?(se=t.jsx(fe,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(He,{post:l,decofile:p,onChange:h})})}),e[97]=p,e[98]=l,e[99]=h,e[100]=se):se=e[100];let oe;e[101]!==Q||e[102]!==te||e[103]!==se?(oe=t.jsxs(ye,{defaultValue:"content",className:"mt-6 gap-4",children:[Q,te,se]}),e[101]=Q,e[102]=te,e[103]=se,e[104]=oe):oe=e[104];let ie;e[105]!==K||e[106]!==oe?(ie=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[K,oe]})}),e[105]=K,e[106]=oe,e[107]=ie):ie=e[107];let ae;return e[108]!==_||e[109]!==ie?(ae=t.jsxs("div",{className:"flex h-full flex-col",children:[_,ie]}),e[108]=_,e[109]=ie,e[110]=ae):ae=e[110],ae}function He(C){const e=me.c(92),{post:r,decofile:a,onChange:s}=C,i=ne();let x;e[0]!==i?(x=i("sandbox.postEditor.excerptLabel"),e[0]=i,e[1]=x):x=e[1];let p;e[2]!==x?(p=t.jsx(pe,{htmlFor:"post-excerpt",children:x}),e[2]=x,e[3]=p):p=e[3];let u;e[4]!==r.excerpt?(u=Y(r.excerpt),e[4]=r.excerpt,e[5]=u):u=e[5];let m;e[6]!==s?(m=j=>s("excerpt",j.target.value),e[6]=s,e[7]=m):m=e[7];let o;e[8]!==u||e[9]!==m?(o=t.jsx(Ce,{id:"post-excerpt",value:u,onChange:m,rows:2}),e[8]=u,e[9]=m,e[10]=o):o=e[10];let f;e[11]!==p||e[12]!==o?(f=t.jsxs("div",{className:"space-y-2",children:[p,o]}),e[11]=p,e[12]=o,e[13]=f):f=e[13];let b;e[14]!==i?(b=i("sandbox.postEditor.slugLabel"),e[14]=i,e[15]=b):b=e[15];let n;e[16]!==b?(n=t.jsx(pe,{htmlFor:"post-slug",children:b}),e[16]=b,e[17]=n):n=e[17];let d;e[18]!==r.slug?(d=Y(r.slug),e[18]=r.slug,e[19]=d):d=e[19];let y;e[20]!==s?(y=j=>s("slug",j.target.value),e[20]=s,e[21]=y):y=e[21];let c;e[22]!==i?(c=i("sandbox.postEditor.slugPlaceholder"),e[22]=i,e[23]=c):c=e[23];let l;e[24]!==y||e[25]!==c||e[26]!==d?(l=t.jsx(de,{id:"post-slug",value:d,onChange:y,placeholder:c,className:"h-10"}),e[24]=y,e[25]=c,e[26]=d,e[27]=l):l=e[27];let g;e[28]!==l||e[29]!==n?(g=t.jsxs("div",{className:"space-y-2",children:[n,l]}),e[28]=l,e[29]=n,e[30]=g):g=e[30];let E;e[31]!==i?(E=i("sandbox.postEditor.dateLabel"),e[31]=i,e[32]=E):E=e[32];let h;e[33]!==E?(h={type:"string",format:"date",title:E},e[33]=E,e[34]=h):h=e[34];let N;e[35]!==r.date?(N=Y(r.date),e[35]=r.date,e[36]=N):N=e[36];let k;e[37]!==s?(k=j=>s("date",j),e[37]=s,e[38]=k):k=e[38];let v;e[39]!==i?(v=i("sandbox.postEditor.dateLabel"),e[39]=i,e[40]=v):v=e[40];let P;e[41]!==h||e[42]!==N||e[43]!==k||e[44]!==v?(P=t.jsx(Ae,{schema:h,value:N,onChange:k,path:"post-date",label:v}),e[41]=h,e[42]=N,e[43]=k,e[44]=v,e[45]=P):P=e[45];let $;e[46]!==g||e[47]!==P?($=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g,P]}),e[46]=g,e[47]=P,e[48]=$):$=e[48];let T;e[49]!==i?(T=i("sandbox.postEditor.coverImageLabel"),e[49]=i,e[50]=T):T=e[50];let w;e[51]!==T?(w={type:"string",format:"image-uri",title:T},e[51]=T,e[52]=w):w=e[52];const D=r.image;let B;e[53]!==s?(B=j=>s("image",j),e[53]=s,e[54]=B):B=e[54];let L;e[55]!==i?(L=i("sandbox.postEditor.coverImageLabel"),e[55]=i,e[56]=L):L=e[56];let U;e[57]!==r.image||e[58]!==w||e[59]!==B||e[60]!==L?(U=t.jsx(Ie,{schema:w,value:D,onChange:B,path:"post-image",label:L}),e[57]=r.image,e[58]=w,e[59]=B,e[60]=L,e[61]=U):U=e[61];let S;e[62]!==i?(S=i("sandbox.postEditor.authorsLabel"),e[62]=i,e[63]=S):S=e[63];let F;e[64]!==s?(F=j=>s("authors",j),e[64]=s,e[65]=F):F=e[65];let V;e[66]!==a||e[67]!==r.authors||e[68]!==S||e[69]!==F?(V=t.jsx(xe,{label:S,decofile:a,kind:"authors",valueField:"email",toRef:Oe,selected:r.authors,onChange:F}),e[66]=a,e[67]=r.authors,e[68]=S,e[69]=F,e[70]=V):V=e[70];let R;e[71]!==i?(R=i("sandbox.postEditor.categoriesLabel"),e[71]=i,e[72]=R):R=e[72];let A;e[73]!==s?(A=j=>s("categories",j),e[73]=s,e[74]=A):A=e[74];let I;e[75]!==a||e[76]!==r.categories||e[77]!==R||e[78]!==A?(I=t.jsx(xe,{label:R,decofile:a,kind:"categories",valueField:"slug",toRef:Je,selected:r.categories,onChange:A}),e[75]=a,e[76]=r.categories,e[77]=R,e[78]=A,e[79]=I):I=e[79];let _;e[80]!==s?(_=j=>s("extraProps",j),e[80]=s,e[81]=_):_=e[81];let M;e[82]!==r.extraProps||e[83]!==_?(M=t.jsx(Qe,{value:r.extraProps,onChange:_}),e[82]=r.extraProps,e[83]=_,e[84]=M):M=e[84];let z;return e[85]!==$||e[86]!==U||e[87]!==V||e[88]!==I||e[89]!==M||e[90]!==f?(z=t.jsxs("div",{className:"space-y-5",children:[f,$,U,V,I,M]}),e[85]=$,e[86]=U,e[87]=V,e[88]=I,e[89]=M,e[90]=f,e[91]=z):z=e[91],z}function Je(C){return{name:Y(C.name),slug:Y(C.slug)}}function Oe(C){return{...C}}function Qe(C){const e=me.c(24),{value:r,onChange:a}=C,s=ne();let i,x,p,u;if(e[0]!==a||e[1]!==s||e[2]!==r){i=Ge(r);const n=(y,c)=>a(i.map((l,g)=>g===y?{...l,...c}:l));x="space-y-2";let d;e[7]!==s?(d=s("sandbox.postEditor.extraPropsLabel"),e[7]=s,e[8]=d):d=e[8],e[9]!==d?(p=t.jsx(pe,{children:d}),e[9]=d,e[10]=p):p=e[10],u=i.length>0&&t.jsx("ul",{className:"space-y-2",children:i.map((y,c)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(de,{value:y.key,onChange:l=>n(c,{key:l.target.value}),placeholder:s("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(de,{value:y.value,onChange:l=>n(c,{value:l.target.value}),placeholder:s("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(qe,{label:s("sandbox.postEditor.removePropLabel"),onClick:()=>a(i.filter((l,g)=>g!==c))})]},c))}),e[0]=a,e[1]=s,e[2]=r,e[3]=i,e[4]=x,e[5]=p,e[6]=u}else i=e[3],x=e[4],p=e[5],u=e[6];let m;e[11]!==s?(m=s("sandbox.postEditor.addPropLabel"),e[11]=s,e[12]=m):m=e[12];let o;e[13]!==i||e[14]!==a?(o=()=>a([...i,{key:"",value:""}]),e[13]=i,e[14]=a,e[15]=o):o=e[15];let f;e[16]!==m||e[17]!==o?(f=t.jsx(Ke,{label:m,onClick:o}),e[16]=m,e[17]=o,e[18]=f):f=e[18];let b;return e[19]!==x||e[20]!==p||e[21]!==u||e[22]!==f?(b=t.jsxs("div",{className:x,children:[p,u,f]}),e[19]=x,e[20]=p,e[21]=u,e[22]=f,e[23]=b):b=e[23],b}function xe(C){const e=me.c(24),{label:r,decofile:a,kind:s,valueField:i,toRef:x,selected:p,onChange:u}=C,m=ne();let o;e[0]!==a||e[1]!==s||e[2]!==p||e[3]!==x||e[4]!==i?(o=Fe({records:Re(a,s),selected:p,valueField:i,toRef:x}),e[0]=a,e[1]=s,e[2]=p,e[3]=x,e[4]=i,e[5]=o):o=e[5];const{options:f,selectedValues:b,refsForValues:n}=o;let d;e[6]!==s||e[7]!==m?(d=m(s==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=s,e[7]=m,e[8]=d):d=e[8];const y=d;let c;e[9]!==s||e[10]!==m?(c=m(s==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=s,e[10]=m,e[11]=c):c=e[11];const l=c;let g;e[12]!==r?(g=t.jsx(pe,{children:r}),e[12]=r,e[13]=g):g=e[13];let E;e[14]!==y||e[15]!==u||e[16]!==f||e[17]!==n||e[18]!==l||e[19]!==b?(E=f.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:y}):t.jsx(Ee,{options:f,defaultValue:b,onValueChange:N=>u(n(N)),placeholder:l,maxCount:4}),e[14]=y,e[15]=u,e[16]=f,e[17]=n,e[18]=l,e[19]=b,e[20]=E):E=e[20];let h;return e[21]!==g||e[22]!==E?(h=t.jsxs("div",{className:"space-y-2",children:[g,E]}),e[21]=g,e[22]=E,e[23]=h):h=e[23],h}export{Qo as PostEditor};
|
|
1
|
+
import{c as me,b as ne,j as t,B as ge}from"./index-7lMfFoqm.js";import{i as he}from"./AlertCircle-XnshFjYW.js";import{n as be}from"./LinkExternal01-Calr_A6c.js";import{aP as je,j as ve}from"./agent-icon-DklLFaSa.js";import{I as de}from"./input-AF9b5wfZ.js";import{L as pe}from"./label-nodTVgZf.js";import{M as Ee}from"./multi-select-9uXcESFr.js";import{b as ce,c as Pe,T as fe,a as ye}from"./tabs-DKQG6gs3.js";import{T as Ce}from"./textarea-DEJkcZ7j.js";import{v as ke,w as Ne,x as Te,y as we,o as Be,z as Le,A as Se,B as Fe,C as Re,D as Ae,I as Ie}from"./index-C6_YevgU.js";import{c as _e,T as Me,a as $e}from"./tooltip-BOHK0On4.js";import{b as Ve,a as ze,B as Ue}from"./block-document-C9dlt-Wu.js";import{u as Ye}from"./use-autosave-BOabYPsY.js";import{s as Y,E as De,R as qe,A as Ke}from"./primitives-imUpb_yp.js";import"./Tool01-m1EmcVyA.js";import"./ArrowUp-VZsF9axi.js";import"./Settings02-Yvc0vxEw.js";import"./Tool02-r9aj6Qyy.js";import"./ArrowRight-CX6eNZSi.js";import"./ArrowUpRight-Df_nmFmy.js";import"./TrendUp01-h4x0FenV.js";import"./ZapSquare-DiexjyhK.js";import"./ZoomOut-CeX9nBzw.js";import"./Users03-BLeBKZva.js";import"./CheckCircle-CxnbmKEy.js";import"./Check-CC9gPb_A.js";import"./ChevronDown-BgfnpwV0.js";import"./ChevronRight-21KH5QUR.js";import"./ChevronUp-C5_Sfc3S.js";import"./DotsVertical-CnVoFOdL.js";import"./Stars02-D8l4enBD.js";import"./Copy01-Diq48EWM.js";import"./Globe01-DVNadxp3.js";import"./Eye-CPji9XgK.js";import"./FilterLines-CrGTcOfX.js";import"./Star01-1QXq7d0Q.js";import"./Globe04-BDFigbbA.js";import"./SwitchHorizontal01-CdbWhzYI.js";import"./HardDrive-CJF16wvx.js";import"./Image01-COoMGEPb.js";import"./Key01-CtX8cIgY.js";import"./LayoutLeft-B98Y7j9l.js";import"./XCircle-Jor3fl3p.js";import"./LogOut01-qYuBvoFH.js";import"./Monitor01-BiNi2Su2.js";import"./Sun-AMWwxXLJ.js";import"./Package-BgoRXE8D.js";import"./Palette-BwpXM3TT.js";import"./Play-BgnxS2-x.js";import"./Plus-D-8cpNUO.js";import"./SearchLg-B8C5Qm8O.js";import"./SearchMd-BZf1S_oW.js";import"./Shield01-BICJ_pln.js";import"./Stars01-CB8X2GZM.js";import"./Trash01-CVr9u3xi.js";import"./Upload01-D2PYYKGU.js";import"./User01-DqUeIcrF.js";import"./Users01-Ca4DQ08l.js";import"./XClose-DoQ8FIVP.js";import"./X-pxLklxt-.js";import"./Zap-BYKdCfkZ.js";import"./badge-BUAKnV1x.js";import"./checkbox-BXjzUPh_.js";import"./command-NGsH11Ja.js";import"./index-BYC4n0jP.js";import"./dialog-7TP2Rj2D.js";import"./popover-BkL7Aezg.js";import"./chat-context-BUCy41wb.js";import"./autosend-WnRL52gX.js";import"./hooks-OLVSgKAi.js";import"./use-mcp-client-BBS2wBc8.js";import"./auth-BTPRevv4.js";import"./decopilot-sse-pool-B_K0sO1S.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-BBHXaaAJ.js";import"./use-virtual-mcp-QKzdLITZ.js";import"./use-ai-providers-Bsac7hB5.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-D7VrwkLK.js";import"./use-organization-settings-DfEYzIUp.js";import"./automation-runs-6THMzkHu.js";import"./select-CefiTUgj.js";import"./useInfiniteQuery-CQw734Ep.js";import"./use-infinite-scroll-BRCCFOe_.js";import"./use-connection-ClgMFrpZ.js";import"./card-Bt7sN6sd.js";import"./sidebar-CMNFHIra.js";import"./use-mobile-JVtF6XY7.js";import"./table-v2gjL7EU.js";import"./empty-state-VEwKl4O7.js";import"./use-members-BXFbi5lw.js";import"./use-org-auth-client-BpFhLPx3.js";import"./use-clock-tick-BkPc4RjU.js";import"./use-automations-DafBUEuO.js";import"./useSuspenseInfiniteQuery-kVqRtLqF.js";import"./avatar-CNc6KWqj.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dlj9Yo44.js";import"./file-type-icon-C50voPyF.js";import"./monaco-editor-Czt4oHBX.js";import"./index-BhfXxR4M.js";import"./index-BAgEiubw.js";import"./calendar-DFq-LIxY.js";import"./shell-layout-NJLfF0_e.js";import"./required-auth-layout-BadNf0FP.js";import"./use-org-sso-f_QvizBC.js";import"./integration-icon-C0xV3gWf.js";import"./use-navigate-to-agent-DqfXAZ-6.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CJi4tHw0.js";import"./form-C8YEeakk.js";import"./drawer-CO8Igk5a.js";import"./collection-search-B20qLeZq.js";import"./index-DZVUOwCL.js";import"./get-initials-D-f_fDFw.js";import"./use-registry-app-BwHReYDm.js";import"./use-mcp-tools-RPaTGUO_.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-DFwi7YAk.js";import"./mcp-oauth-BjijQ5bq.js";import"./extract-connection-data-BEJV81wi.js";import"./dropdown-menu-CZyflK5H.js";import"./companions-core-C8hdG_qv.js";import"./toggle-group-BLkkLS1l.js";import"./use-deco-credits-DmhRJlBv.js";import"./alert-dialog-DSeYsJav.js";import"./toolbar-icon-button-BZllJ9er.js";import"./skeleton-Bo-YgqMO.js";import"./github-repo-picker-1AJl1NXF.js";import"./use-debounced-value-B2oza6eL.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./connection-card-B_6si4eG.js";import"./use-registry-connections-Di8iJvGo.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-BV8uHczM.js";import"./collection-tabs-DNI8PqVZ.js";import"./connect-desktop-dialog-D2pvlftk.js";import"./select-model-hpWFXkSi.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-C960zryl.js";import"./index-LUsO6ZZ_.js";import"./toolbar-Dh7M70Tq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DOnHpSDd.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-CdM4FECT.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-tjupSmgi.js";import"./use-debounced-autosave-BmDbwXYT.js";import"./index-BXCOoie9.js";import"./search-input-eRtomdpQ.js";import"./switch-DI_ObHYK.js";import"./use-secrets-QRS4UIur.js";import"./useQueries-_vDV4wPR.js";import"./use-file-configs-CtM14T7F.js";import"./automation-list-row-dutMC3QV.js";function Ge(C){return Array.isArray(C)?C.map(e=>({key:Y(e?.key),value:Y(e?.value)})):[]}function Qo(C){const e=me.c(111),{orgSlug:r,virtualMcpId:a,branch:s,blockKey:i,block:x,decofile:p,meta:u,previewBaseUrl:m}=C,o=ne(),f=ke(a);let b;e[0]!==s||e[1]!==r||e[2]!==f||e[3]!==a?(b={orgSlug:r,virtualMcpId:a,branch:s,packagePath:f},e[0]=s,e[1]=r,e[2]=f,e[3]=a,e[4]=b):b=e[4];const n=Ne(b);let d;e[5]!==x?(d=Te(x,"posts"),e[5]=x,e[6]=d):d=e[6];const y=d;let c;e[7]!==i||e[8]!==n?(c=q=>{n.mutate({blockKey:i,data:Le(i,"posts",Se(q))})},e[7]=i,e[8]=n,e[9]=c):c=e[9];const[l,g]=Ye(y,c);let E;e[10]!==l||e[11]!==g?(E=(q,ue)=>g({...l,[q]:ue}),e[10]=l,e[11]=g,e[12]=E):E=e[12];const h=E;let N;e[13]!==p||e[14]!==l||e[15]!==m?(N=Ve({decofile:p,post:l,previewBaseUrl:m}),e[13]=p,e[14]=l,e[15]=m,e[16]=N):N=e[16];const k=N;let j,P,$;e[17]!==l||e[18]!==o?(P=we(l),j=P.length>0,$=P.length===1?o("sandbox.postEditor.missingFieldSingular",{fields:P.join(", ")}):o("sandbox.postEditor.missingFieldPlural",{fields:P.join(", ")}),e[17]=l,e[18]=o,e[19]=j,e[20]=P,e[21]=$):(j=e[19],P=e[20],$=e[21]);const T=$;let w;e[22]!==l.title||e[23]!==o?(w=Y(l.title)||o("sandbox.postEditor.untitledPost"),e[22]=l.title,e[23]=o,e[24]=w):w=e[24];let D;e[25]!==w?(D=t.jsx("span",{className:"truncate text-sm font-medium",children:w}),e[25]=w,e[26]=D):D=e[26];let B;e[27]!==j||e[28]!==P||e[29]!==T||e[30]!==o?(B=j&&t.jsxs(_e,{children:[t.jsx(Me,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(he,{size:14}),P.length," ",P.length===1?o("sandbox.postEditor.issueSingular"):o("sandbox.postEditor.issuePlural")]})}),t.jsx($e,{side:"bottom",children:T})]}),e[27]=j,e[28]=P,e[29]=T,e[30]=o,e[31]=B):B=e[31];let L;e[32]!==n.isError||e[33]!==n.isPending?(L=t.jsx(Be,{isPending:n.isPending,isError:n.isError}),e[32]=n.isError,e[33]=n.isPending,e[34]=L):L=e[34];const U=!k||j;let S;e[35]!==j||e[36]!==T||e[37]!==k||e[38]!==o?(S=j?T:o(k?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),e[35]=j,e[36]=T,e[37]=k,e[38]=o,e[39]=S):S=e[39];let F;e[40]!==j||e[41]!==k?(F=()=>{k&&!j&&window.open(k,"_blank","noopener,noreferrer")},e[40]=j,e[41]=k,e[42]=F):F=e[42];let V;e[43]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(be,{size:14}),e[43]=V):V=e[43];let R;e[44]!==o?(R=o("sandbox.postEditor.seePreview"),e[44]=o,e[45]=R):R=e[45];let A;e[46]!==U||e[47]!==S||e[48]!==F||e[49]!==R?(A=t.jsxs(ge,{type:"button",variant:"outline",size:"sm",disabled:U,title:S,onClick:F,children:[V,R]}),e[46]=U,e[47]=S,e[48]=F,e[49]=R,e[50]=A):A=e[50];let I;e[51]!==B||e[52]!==L||e[53]!==A?(I=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[B,L,A]}),e[51]=B,e[52]=L,e[53]=A,e[54]=I):I=e[54];let _;e[55]!==I||e[56]!==D?(_=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[D,I]}),e[55]=I,e[56]=D,e[57]=_):_=e[57];let M;e[58]!==l.title?(M=Y(l.title),e[58]=l.title,e[59]=M):M=e[59];let z;e[60]!==h?(z=q=>h("title",q),e[60]=h,e[61]=z):z=e[61];let v;e[62]!==o?(v=o("sandbox.postEditor.postTitlePlaceholder"),e[62]=o,e[63]=v):v=e[63];let K;e[64]!==M||e[65]!==z||e[66]!==v?(K=t.jsx(De,{value:M,onChange:z,placeholder:v,className:"py-1 text-4xl font-bold text-foreground"}),e[64]=M,e[65]=z,e[66]=v,e[67]=K):K=e[67];let le;e[68]===Symbol.for("react.memo_cache_sentinel")?(le=t.jsx(je,{}),e[68]=le):le=e[68];let G;e[69]!==o?(G=o("sandbox.postEditor.contentTab"),e[69]=o,e[70]=G):G=e[70];let H;e[71]!==G?(H=t.jsxs(ce,{value:"content",children:[le,G]}),e[71]=G,e[72]=H):H=e[72];let re;e[73]===Symbol.for("react.memo_cache_sentinel")?(re=t.jsx(ve,{}),e[73]=re):re=e[73];let J;e[74]!==o?(J=o("sandbox.postEditor.settingsTab"),e[74]=o,e[75]=J):J=e[75];let O;e[76]!==J?(O=t.jsxs(ce,{value:"settings",children:[re,J]}),e[76]=J,e[77]=O):O=e[77];let Q;e[78]!==H||e[79]!==O?(Q=t.jsxs(Pe,{children:[H,O]}),e[78]=H,e[79]=O,e[80]=Q):Q=e[80];let W;e[81]!==l.sections?(W=ze(l.sections),e[81]=l.sections,e[82]=W):W=e[82];let X;e[83]!==h?(X=q=>h("sections",q),e[83]=h,e[84]=X):X=e[84];let Z;e[85]!==s||e[86]!==r||e[87]!==a?(Z={orgSlug:r,virtualMcpId:a,branch:s},e[85]=s,e[86]=r,e[87]=a,e[88]=Z):Z=e[88];let ee;e[89]!==o?(ee=o("sandbox.postEditor.noContentYet"),e[89]=o,e[90]=ee):ee=e[90];let te;e[91]!==u||e[92]!==W||e[93]!==X||e[94]!==Z||e[95]!==ee?(te=t.jsx(fe,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(Ue,{value:W,onChange:X,meta:u,sandboxRef:Z,emptyMessage:ee})})}),e[91]=u,e[92]=W,e[93]=X,e[94]=Z,e[95]=ee,e[96]=te):te=e[96];let se;e[97]!==p||e[98]!==l||e[99]!==h?(se=t.jsx(fe,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(He,{post:l,decofile:p,onChange:h})})}),e[97]=p,e[98]=l,e[99]=h,e[100]=se):se=e[100];let oe;e[101]!==Q||e[102]!==te||e[103]!==se?(oe=t.jsxs(ye,{defaultValue:"content",className:"mt-6 gap-4",children:[Q,te,se]}),e[101]=Q,e[102]=te,e[103]=se,e[104]=oe):oe=e[104];let ie;e[105]!==K||e[106]!==oe?(ie=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[K,oe]})}),e[105]=K,e[106]=oe,e[107]=ie):ie=e[107];let ae;return e[108]!==_||e[109]!==ie?(ae=t.jsxs("div",{className:"flex h-full flex-col",children:[_,ie]}),e[108]=_,e[109]=ie,e[110]=ae):ae=e[110],ae}function He(C){const e=me.c(92),{post:r,decofile:a,onChange:s}=C,i=ne();let x;e[0]!==i?(x=i("sandbox.postEditor.excerptLabel"),e[0]=i,e[1]=x):x=e[1];let p;e[2]!==x?(p=t.jsx(pe,{htmlFor:"post-excerpt",children:x}),e[2]=x,e[3]=p):p=e[3];let u;e[4]!==r.excerpt?(u=Y(r.excerpt),e[4]=r.excerpt,e[5]=u):u=e[5];let m;e[6]!==s?(m=v=>s("excerpt",v.target.value),e[6]=s,e[7]=m):m=e[7];let o;e[8]!==u||e[9]!==m?(o=t.jsx(Ce,{id:"post-excerpt",value:u,onChange:m,rows:2}),e[8]=u,e[9]=m,e[10]=o):o=e[10];let f;e[11]!==p||e[12]!==o?(f=t.jsxs("div",{className:"space-y-2",children:[p,o]}),e[11]=p,e[12]=o,e[13]=f):f=e[13];let b;e[14]!==i?(b=i("sandbox.postEditor.slugLabel"),e[14]=i,e[15]=b):b=e[15];let n;e[16]!==b?(n=t.jsx(pe,{htmlFor:"post-slug",children:b}),e[16]=b,e[17]=n):n=e[17];let d;e[18]!==r.slug?(d=Y(r.slug),e[18]=r.slug,e[19]=d):d=e[19];let y;e[20]!==s?(y=v=>s("slug",v.target.value),e[20]=s,e[21]=y):y=e[21];let c;e[22]!==i?(c=i("sandbox.postEditor.slugPlaceholder"),e[22]=i,e[23]=c):c=e[23];let l;e[24]!==y||e[25]!==c||e[26]!==d?(l=t.jsx(de,{id:"post-slug",value:d,onChange:y,placeholder:c,className:"h-10"}),e[24]=y,e[25]=c,e[26]=d,e[27]=l):l=e[27];let g;e[28]!==l||e[29]!==n?(g=t.jsxs("div",{className:"space-y-2",children:[n,l]}),e[28]=l,e[29]=n,e[30]=g):g=e[30];let E;e[31]!==i?(E=i("sandbox.postEditor.dateLabel"),e[31]=i,e[32]=E):E=e[32];let h;e[33]!==E?(h={type:"string",format:"date",title:E},e[33]=E,e[34]=h):h=e[34];let N;e[35]!==r.date?(N=Y(r.date),e[35]=r.date,e[36]=N):N=e[36];let k;e[37]!==s?(k=v=>s("date",v),e[37]=s,e[38]=k):k=e[38];let j;e[39]!==i?(j=i("sandbox.postEditor.dateLabel"),e[39]=i,e[40]=j):j=e[40];let P;e[41]!==h||e[42]!==N||e[43]!==k||e[44]!==j?(P=t.jsx(Ae,{schema:h,value:N,onChange:k,path:"post-date",label:j}),e[41]=h,e[42]=N,e[43]=k,e[44]=j,e[45]=P):P=e[45];let $;e[46]!==g||e[47]!==P?($=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g,P]}),e[46]=g,e[47]=P,e[48]=$):$=e[48];let T;e[49]!==i?(T=i("sandbox.postEditor.coverImageLabel"),e[49]=i,e[50]=T):T=e[50];let w;e[51]!==T?(w={type:"string",format:"image-uri",title:T},e[51]=T,e[52]=w):w=e[52];const D=r.image;let B;e[53]!==s?(B=v=>s("image",v),e[53]=s,e[54]=B):B=e[54];let L;e[55]!==i?(L=i("sandbox.postEditor.coverImageLabel"),e[55]=i,e[56]=L):L=e[56];let U;e[57]!==r.image||e[58]!==w||e[59]!==B||e[60]!==L?(U=t.jsx(Ie,{schema:w,value:D,onChange:B,path:"post-image",label:L}),e[57]=r.image,e[58]=w,e[59]=B,e[60]=L,e[61]=U):U=e[61];let S;e[62]!==i?(S=i("sandbox.postEditor.authorsLabel"),e[62]=i,e[63]=S):S=e[63];let F;e[64]!==s?(F=v=>s("authors",v),e[64]=s,e[65]=F):F=e[65];let V;e[66]!==a||e[67]!==r.authors||e[68]!==S||e[69]!==F?(V=t.jsx(xe,{label:S,decofile:a,kind:"authors",valueField:"email",toRef:Oe,selected:r.authors,onChange:F}),e[66]=a,e[67]=r.authors,e[68]=S,e[69]=F,e[70]=V):V=e[70];let R;e[71]!==i?(R=i("sandbox.postEditor.categoriesLabel"),e[71]=i,e[72]=R):R=e[72];let A;e[73]!==s?(A=v=>s("categories",v),e[73]=s,e[74]=A):A=e[74];let I;e[75]!==a||e[76]!==r.categories||e[77]!==R||e[78]!==A?(I=t.jsx(xe,{label:R,decofile:a,kind:"categories",valueField:"slug",toRef:Je,selected:r.categories,onChange:A}),e[75]=a,e[76]=r.categories,e[77]=R,e[78]=A,e[79]=I):I=e[79];let _;e[80]!==s?(_=v=>s("extraProps",v),e[80]=s,e[81]=_):_=e[81];let M;e[82]!==r.extraProps||e[83]!==_?(M=t.jsx(Qe,{value:r.extraProps,onChange:_}),e[82]=r.extraProps,e[83]=_,e[84]=M):M=e[84];let z;return e[85]!==$||e[86]!==U||e[87]!==V||e[88]!==I||e[89]!==M||e[90]!==f?(z=t.jsxs("div",{className:"space-y-5",children:[f,$,U,V,I,M]}),e[85]=$,e[86]=U,e[87]=V,e[88]=I,e[89]=M,e[90]=f,e[91]=z):z=e[91],z}function Je(C){return{name:Y(C.name),slug:Y(C.slug)}}function Oe(C){return{...C}}function Qe(C){const e=me.c(24),{value:r,onChange:a}=C,s=ne();let i,x,p,u;if(e[0]!==a||e[1]!==s||e[2]!==r){i=Ge(r);const n=(y,c)=>a(i.map((l,g)=>g===y?{...l,...c}:l));x="space-y-2";let d;e[7]!==s?(d=s("sandbox.postEditor.extraPropsLabel"),e[7]=s,e[8]=d):d=e[8],e[9]!==d?(p=t.jsx(pe,{children:d}),e[9]=d,e[10]=p):p=e[10],u=i.length>0&&t.jsx("ul",{className:"space-y-2",children:i.map((y,c)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(de,{value:y.key,onChange:l=>n(c,{key:l.target.value}),placeholder:s("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(de,{value:y.value,onChange:l=>n(c,{value:l.target.value}),placeholder:s("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(qe,{label:s("sandbox.postEditor.removePropLabel"),onClick:()=>a(i.filter((l,g)=>g!==c))})]},c))}),e[0]=a,e[1]=s,e[2]=r,e[3]=i,e[4]=x,e[5]=p,e[6]=u}else i=e[3],x=e[4],p=e[5],u=e[6];let m;e[11]!==s?(m=s("sandbox.postEditor.addPropLabel"),e[11]=s,e[12]=m):m=e[12];let o;e[13]!==i||e[14]!==a?(o=()=>a([...i,{key:"",value:""}]),e[13]=i,e[14]=a,e[15]=o):o=e[15];let f;e[16]!==m||e[17]!==o?(f=t.jsx(Ke,{label:m,onClick:o}),e[16]=m,e[17]=o,e[18]=f):f=e[18];let b;return e[19]!==x||e[20]!==p||e[21]!==u||e[22]!==f?(b=t.jsxs("div",{className:x,children:[p,u,f]}),e[19]=x,e[20]=p,e[21]=u,e[22]=f,e[23]=b):b=e[23],b}function xe(C){const e=me.c(24),{label:r,decofile:a,kind:s,valueField:i,toRef:x,selected:p,onChange:u}=C,m=ne();let o;e[0]!==a||e[1]!==s||e[2]!==p||e[3]!==x||e[4]!==i?(o=Fe({records:Re(a,s),selected:p,valueField:i,toRef:x}),e[0]=a,e[1]=s,e[2]=p,e[3]=x,e[4]=i,e[5]=o):o=e[5];const{options:f,selectedValues:b,refsForValues:n}=o;let d;e[6]!==s||e[7]!==m?(d=m(s==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=s,e[7]=m,e[8]=d):d=e[8];const y=d;let c;e[9]!==s||e[10]!==m?(c=m(s==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=s,e[10]=m,e[11]=c):c=e[11];const l=c;let g;e[12]!==r?(g=t.jsx(pe,{children:r}),e[12]=r,e[13]=g):g=e[13];let E;e[14]!==y||e[15]!==u||e[16]!==f||e[17]!==n||e[18]!==l||e[19]!==b?(E=f.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:y}):t.jsx(Ee,{options:f,defaultValue:b,onValueChange:N=>u(n(N)),placeholder:l,maxCount:4}),e[14]=y,e[15]=u,e[16]=f,e[17]=n,e[18]=l,e[19]=b,e[20]=E):E=e[20];let h;return e[21]!==g||e[22]!==E?(h=t.jsxs("div",{className:"space-y-2",children:[g,E]}),e[21]=g,e[22]=E,e[23]=h):h=e[23],h}export{Qo as PostEditor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,m as h,j as a}from"./index-
|
|
1
|
+
import{c as f,m as h,j as a}from"./index-7lMfFoqm.js";import{m as y}from"./agent-icon-DklLFaSa.js";import{s as v}from"./Plus-D-8cpNUO.js";import{s as j}from"./Trash01-CVr9u3xi.js";function N(o){const e=f.c(14),{value:t,onChange:r,placeholder:s,className:n,onFocus:i,onBlur:l,onKeyDown:c,spellCheck:b,inputRef:p}=o,x=b===void 0?!0:b;let u;e[0]!==r?(u=g=>r(g.target.value),e[0]=r,e[1]=u):u=e[1];let d;e[2]!==n?(d=h("w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-muted-foreground/50 focus:ring-0",n),e[2]=n,e[3]=d):d=e[3];let m;return e[4]!==p||e[5]!==l||e[6]!==i||e[7]!==c||e[8]!==s||e[9]!==x||e[10]!==u||e[11]!==d||e[12]!==t?(m=a.jsx("textarea",{ref:p,value:t,onChange:u,onInput:w,onFocus:i,onBlur:l,onKeyDown:c,placeholder:s,spellCheck:x,rows:1,className:d}),e[4]=p,e[5]=l,e[6]=i,e[7]=c,e[8]=s,e[9]=x,e[10]=u,e[11]=d,e[12]=t,e[13]=m):m=e[13],m}function w(o){const e=o.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function z(o){return typeof o=="string"?o:""}function T(o){const e=f.c(11);let t,r;e[0]!==o?({className:t,...r}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=h(t,"pr-9"),e[3]=t,e[4]=s):s=e[4];let n;e[5]!==r||e[6]!==s?(n=a.jsx(N,{...r,className:s}),e[5]=r,e[6]=s,e[7]=n):n=e[7];let i;e[8]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(y,{size:18,"aria-hidden":!0,className:"pointer-events-none absolute right-2 top-3 text-muted-foreground/40 transition-opacity group-hover/editable:text-muted-foreground group-focus-within/editable:text-muted-foreground"}),e[8]=i):i=e[8];let l;return e[9]!==n?(l=a.jsxs("div",{className:"group/editable relative -mx-2 rounded-md px-2 transition-colors hover:bg-muted/50 focus-within:bg-muted/50",children:[n,i]}),e[9]=n,e[10]=l):l=e[10],l}function R(o){const e=f.c(5),{label:t,onClick:r,disabled:s}=o;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(v,{size:13}),e[0]=n):n=e[0];let i;return e[1]!==s||e[2]!==t||e[3]!==r?(i=a.jsxs("button",{type:"button",onClick:r,disabled:s,className:"flex items-center gap-1.5 rounded-md border border-dashed px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-foreground/30 hover:text-foreground disabled:opacity-40 disabled:hover:border-dashed disabled:hover:text-muted-foreground cursor-pointer",children:[n,t]}),e[1]=s,e[2]=t,e[3]=r,e[4]=i):i=e[4],i}function B(o){const e=f.c(4),{label:t,onClick:r}=o;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(j,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==t||e[2]!==r?(n=a.jsx("button",{type:"button","aria-label":t,onClick:r,className:"flex h-6 w-6 shrink-0 items-center justify-center rounded text-muted-foreground/60 opacity-0 transition-opacity hover:text-destructive group-hover/item:opacity-100 cursor-pointer",children:s}),e[1]=t,e[2]=r,e[3]=n):n=e[3],n}function E(o){const e=f.c(2),{children:t}=o;let r;return e[0]!==t?(r=a.jsx("div",{className:"absolute -top-9 left-0 z-10 flex items-center gap-0.5 rounded-md border bg-popover p-0.5 shadow-md",children:t}),e[0]=t,e[1]=r):r=e[1],r}function S(o){const e=f.c(8),{active:t,label:r,onClick:s,children:n}=o,i=t?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let l;e[0]!==i?(l=h("flex h-7 min-w-7 items-center justify-center rounded px-1.5 text-sm transition-colors cursor-pointer",i),e[0]=i,e[1]=l):l=e[1];let c;return e[2]!==t||e[3]!==n||e[4]!==r||e[5]!==s||e[6]!==l?(c=a.jsx("button",{type:"button","aria-label":r,"aria-pressed":t,onMouseDown:_,onClick:s,className:l,children:n}),e[2]=t,e[3]=n,e[4]=r,e[5]=s,e[6]=l,e[7]=c):c=e[7],c}function _(o){return o.preventDefault()}function D(o){if(Array.isArray(o))return o;if(typeof o!="string"||o.trim()==="")return[];try{const e=JSON.parse(o);return Array.isArray(e)?e:[]}catch{return[]}}export{R as A,T as E,E as F,N as I,B as R,S as T,D as p,z as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Se,b as Ne,j as s,a as Ce,Z as Te,a5 as Ee,v as $e,q as V,t as Ae}from"./index-DLFjA-pm.js";import{P as be}from"./index-B__oKxRn.js";import{A as Be}from"./avatar-DOKisfmu.js";import{S as ke}from"./switch-DhX1LgoM.js";import{c as Pe,S as De,d as ye,a as Ve}from"./select-C4Yh3I_I.js";import{T as _e,a as qe}from"./toggle-group-DOz_2Aus.js";import{I as Ge}from"./input-CYZckS5J.js";import{i as Re}from"./Monitor01-RMk_Hy33.js";import{n as Ue,a as Fe}from"./Sun-C8Rt6Ua0.js";import{i as Oe}from"./Play-BQfux-g7.js";import{u as Ke}from"./use-debounced-autosave-BL9BhLLo.js";import{p as Ze,q as He}from"./question-004-sINsf4GQ.js";import"./index-BD2JkIiG.js";import{c as Je,b as w,S as Le,a as ze}from"./settings-section-Dyof3VvN.js";import"./sidebar-BXTMhX7B.js";import"./LayoutLeft-YhbkIV5-.js";import"./use-mobile-F9kT_Idr.js";import"./X-CkADyhqE.js";import"./tooltip-DMRr_d0y.js";import"./User01-DOzH65Yj.js";import"./Check-C9Hy68pG.js";import"./ChevronDown-CZIAcwGV.js";import"./ChevronUp-CsSKaqS5.js";import"./card-BkL1g2ae.js";import"./ArrowUpRight-CvwJB6OK.js";const we=[{value:"en",label:"English"},{value:"pt-BR",label:"Português (Brasil)"}];function Me(){const e=Se.c(36),t=Ne(),{data:l,isPending:i}=Ce.useSession(),c=l?.user,r=c?.image,a=c?.name??"";let v;e[0]!==a?(v={values:{name:a}},e[0]=a,e[1]=v):v=e[1];const o=Te(v);let L;e[2]!==o||e[3]!==t?(L={save:async()=>{const k=o.control._formState.dirtyFields;if(Object.keys(k).length===0)return;const x=o.getValues(),P=o.control._defaultValues;o.reset(x,{keepValues:!0});try{await Ce.updateUser({name:x.name}),V("profile_updated",{fields:["name"]}),Ae.success(t("settings.profile.updateSuccess"))}catch{o.reset(P,{keepValues:!0}),Ae.error(t("settings.profile.updateError"))}}},e[2]=o,e[3]=t,e[4]=L):L=e[4];const{schedule:y,flush:j}=Ke(L);if(i)return null;let b;e[5]!==t?(b=t("settings.profile.avatar"),e[5]=t,e[6]=b):b=e[6];const N=c?.name??"U";let f;e[7]!==N||e[8]!==r?(f=s.jsx(Be,{url:r,fallback:N,shape:"circle",size:"base"}),e[7]=N,e[8]=r,e[9]=f):f=e[9];let S;e[10]!==b||e[11]!==f?(S=s.jsx(w,{title:b,action:f}),e[10]=b,e[11]=f,e[12]=S):S=e[12];let p;e[13]!==t?(p=t("settings.profile.displayName"),e[13]=t,e[14]=p):p=e[14];let u;e[15]!==j||e[16]!==y||e[17]!==t?(u=k=>{const{field:x}=k;return s.jsx(Ge,{id:"display-name",...x,onChange:P=>{x.onChange(P),y()},onBlur:()=>{x.onBlur(),j()},onKeyDown:P=>{P.key==="Enter"&&j()},placeholder:t("settings.profile.displayNamePlaceholder"),className:"w-[280px]"})},e[15]=j,e[16]=y,e[17]=t,e[18]=u):u=e[18];let _;e[19]!==o.control||e[20]!==u?(_=s.jsx(Ee,{control:o.control,name:"name",render:u}),e[19]=o.control,e[20]=u,e[21]=_):_=e[21];let d;e[22]!==p||e[23]!==_?(d=s.jsx(w,{title:p,action:_}),e[22]=p,e[23]=_,e[24]=d):d=e[24];let m;e[25]!==t?(m=t("settings.profile.email"),e[25]=t,e[26]=m):m=e[26];const C=c?.email;let g;e[27]!==C?(g=s.jsx("span",{className:"text-sm text-muted-foreground",children:C}),e[27]=C,e[28]=g):g=e[28];let h;e[29]!==m||e[30]!==g?(h=s.jsx(w,{title:m,action:g}),e[29]=m,e[30]=g,e[31]=h):h=e[31];let A;return e[32]!==d||e[33]!==h||e[34]!==S?(A=s.jsx(Le,{children:s.jsxs(ze,{children:[S,d,h]})}),e[32]=d,e[33]=h,e[34]=S,e[35]=A):A=e[35],A}function Qe(){const e=Se.c(159),t=Ne(),[l,i]=$e();let c;e[0]!==i||e[1]!==t?(c=async n=>{if(n&&await Notification.requestPermission()!=="granted"){V("preferences_notifications_permission_denied"),Ae.error(t("settings.preferences.notificationsDenied")),i(tt);return}V("preferences_notifications_toggled",{enabled:n}),i(D=>({...D,enableNotifications:n}))},e[0]=i,e[1]=t,e[2]=c):c=e[2];const r=c;let a;e[3]!==t?(a=t("settings.preferences.title"),e[3]=t,e[4]=a):a=e[4];let v;e[5]!==t?(v=t("settings.preferences.theme"),e[5]=t,e[6]=v):v=e[6];let o;e[7]!==t?(o=t("settings.preferences.themeDescription"),e[7]=t,e[8]=o):o=e[8];const L=l.theme;let y;e[9]!==i?(y=n=>{n&&(V("preferences_theme_changed",{to_value:n}),i(D=>({...D,theme:n})))},e[9]=i,e[10]=y):y=e[10];let j;e[11]!==t?(j=t("settings.preferences.themeLight"),e[11]=t,e[12]=j):j=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Ue,{size:14}),e[13]=b):b=e[13];let N;e[14]!==j?(N=s.jsx(_e,{value:"light","aria-label":j,children:b}),e[14]=j,e[15]=N):N=e[15];let f;e[16]!==t?(f=t("settings.preferences.themeDark"),e[16]=t,e[17]=f):f=e[17];let S;e[18]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Fe,{size:14}),e[18]=S):S=e[18];let p;e[19]!==f?(p=s.jsx(_e,{value:"dark","aria-label":f,children:S}),e[19]=f,e[20]=p):p=e[20];let u;e[21]!==t?(u=t("settings.preferences.themeSystem"),e[21]=t,e[22]=u):u=e[22];let _;e[23]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Re,{size:14}),e[23]=_):_=e[23];let d;e[24]!==u?(d=s.jsx(_e,{value:"system","aria-label":u,children:_}),e[24]=u,e[25]=d):d=e[25];let m;e[26]!==l.theme||e[27]!==p||e[28]!==d||e[29]!==y||e[30]!==N?(m=s.jsxs(qe,{type:"single",size:"sm",variant:"outline",value:L,onValueChange:y,children:[N,p,d]}),e[26]=l.theme,e[27]=p,e[28]=d,e[29]=y,e[30]=N,e[31]=m):m=e[31];let C;e[32]!==m||e[33]!==v||e[34]!==o?(C=s.jsx(w,{title:v,description:o,action:m}),e[32]=m,e[33]=v,e[34]=o,e[35]=C):C=e[35];let g;e[36]!==t?(g=t("settings.preferences.language"),e[36]=t,e[37]=g):g=e[37];let h;e[38]!==t?(h=t("settings.preferences.languageDescription"),e[38]=t,e[39]=h):h=e[39];let A;e[40]!==i?(A=n=>{V("preferences_language_changed",{to_value:n}),i(D=>({...D,language:n}))},e[40]=i,e[41]=A):A=e[41];let k;e[42]!==l.language?(k=we.find(n=>n.value===l.language)?.label,e[42]=l.language,e[43]=k):k=e[43];let x;e[44]!==k?(x=s.jsx(Ve,{className:"w-44 h-7 text-xs",children:s.jsx("span",{children:k})}),e[44]=k,e[45]=x):x=e[45];let P;e[46]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(Pe,{children:we.map(et)}),e[46]=P):P=e[46];let z;e[47]!==l.language||e[48]!==A||e[49]!==x?(z=s.jsxs(De,{value:l.language,onValueChange:A,children:[x,P]}),e[47]=l.language,e[48]=A,e[49]=x,e[50]=z):z=e[50];let I;e[51]!==g||e[52]!==h||e[53]!==z?(I=s.jsx(w,{title:g,description:h,action:z}),e[51]=g,e[52]=h,e[53]=z,e[54]=I):I=e[54];let T;e[55]!==t?(T=t("settings.preferences.notifications"),e[55]=t,e[56]=T):T=e[56];let E;e[57]!==t?(E=t("settings.preferences.notificationsDescription"),e[57]=t,e[58]=E):E=e[58];let $;e[59]!==r||e[60]!==l.enableNotifications?($=typeof Notification<"u"?()=>r(!l.enableNotifications):void 0,e[59]=r,e[60]=l.enableNotifications,e[61]=$):$=e[61];let B;e[62]!==r||e[63]!==l.enableNotifications?(B=s.jsx(ke,{disabled:typeof Notification>"u",checked:l.enableNotifications,onCheckedChange:r}),e[62]=r,e[63]=l.enableNotifications,e[64]=B):B=e[64];let q;e[65]!==T||e[66]!==E||e[67]!==$||e[68]!==B?(q=s.jsx(w,{title:T,description:E,onClick:$,action:B}),e[65]=T,e[66]=E,e[67]=$,e[68]=B,e[69]=q):q=e[69];let G;e[70]!==t?(G=t("settings.preferences.sounds"),e[70]=t,e[71]=G):G=e[71];let R;e[72]!==t?(R=t("settings.preferences.soundsDescription"),e[72]=t,e[73]=R):R=e[73];let U;e[74]!==l.enableSounds||e[75]!==i?(U=()=>{V("preferences_sounds_toggled",{enabled:!l.enableSounds}),i(Ye)},e[74]=l.enableSounds,e[75]=i,e[76]=U):U=e[76];let F;e[77]!==t?(F=t("settings.preferences.soundsPreview"),e[77]=t,e[78]=F):F=e[78];let ve;e[79]===Symbol.for("react.memo_cache_sentinel")?(ve=s.jsx(Oe,{size:11}),e[79]=ve):ve=e[79];let O;e[80]!==F?(O=s.jsx("button",{type:"button","aria-label":F,onClick:We,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:ve}),e[80]=F,e[81]=O):O=e[81];let K;e[82]!==i?(K=n=>{V("preferences_sounds_toggled",{enabled:n}),i(D=>({...D,enableSounds:n}))},e[82]=i,e[83]=K):K=e[83];let Z;e[84]!==l.enableSounds||e[85]!==K?(Z=s.jsx(ke,{checked:l.enableSounds,onCheckedChange:K}),e[84]=l.enableSounds,e[85]=K,e[86]=Z):Z=e[86];let H;e[87]!==O||e[88]!==Z?(H=s.jsxs("div",{className:"flex items-center gap-2",children:[O,Z]}),e[87]=O,e[88]=Z,e[89]=H):H=e[89];let J;e[90]!==G||e[91]!==R||e[92]!==U||e[93]!==H?(J=s.jsx(w,{title:G,description:R,onClick:U,action:H}),e[90]=G,e[91]=R,e[92]=U,e[93]=H,e[94]=J):J=e[94];let M;e[95]!==t?(M=t("settings.preferences.toolApproval"),e[95]=t,e[96]=M):M=e[96];let Q;e[97]!==t?(Q=t("settings.preferences.toolApprovalDescription"),e[97]=t,e[98]=Q):Q=e[98];const Ie=l.toolApprovalLevel;let W;e[99]!==i?(W=n=>{V("preferences_tool_approval_changed",{to_value:n}),i(D=>({...D,toolApprovalLevel:n}))},e[99]=i,e[100]=W):W=e[100];let X;e[101]!==l.toolApprovalLevel||e[102]!==t?(X={readonly:t("settings.preferences.toolApprovalAsk"),auto:t("settings.preferences.toolApprovalAuto")}[l.toolApprovalLevel]??t("settings.preferences.toolApprovalAsk"),e[101]=l.toolApprovalLevel,e[102]=t,e[103]=X):X=e[103];let Y;e[104]!==X?(Y=s.jsx(Ve,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:X})}),e[104]=X,e[105]=Y):Y=e[105];let ee;e[106]!==t?(ee=t("settings.preferences.toolApprovalAsk"),e[106]=t,e[107]=ee):ee=e[107];let te;e[108]!==t?(te=t("settings.preferences.toolApprovalAsk"),e[108]=t,e[109]=te):te=e[109];let se;e[110]!==te?(se=s.jsx("span",{className:"font-medium",children:te}),e[110]=te,e[111]=se):se=e[111];let le;e[112]!==t?(le=t("settings.preferences.toolApprovalAskDescription"),e[112]=t,e[113]=le):le=e[113];let ie;e[114]!==le?(ie=s.jsx("span",{className:"text-xs text-muted-foreground",children:le}),e[114]=le,e[115]=ie):ie=e[115];let ne;e[116]!==se||e[117]!==ie?(ne=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[se,ie]}),e[116]=se,e[117]=ie,e[118]=ne):ne=e[118];let oe;e[119]!==ee||e[120]!==ne?(oe=s.jsx(ye,{value:"readonly",textValue:ee,children:ne}),e[119]=ee,e[120]=ne,e[121]=oe):oe=e[121];let re;e[122]!==t?(re=t("settings.preferences.toolApprovalAuto"),e[122]=t,e[123]=re):re=e[123];let ae;e[124]!==t?(ae=t("settings.preferences.toolApprovalAuto"),e[124]=t,e[125]=ae):ae=e[125];let ce;e[126]!==ae?(ce=s.jsx("span",{className:"font-medium",children:ae}),e[126]=ae,e[127]=ce):ce=e[127];let fe;e[128]!==t?(fe=t("settings.preferences.toolApprovalAutoDescription"),e[128]=t,e[129]=fe):fe=e[129];let pe;e[130]!==fe?(pe=s.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[130]=fe,e[131]=pe):pe=e[131];let ue;e[132]!==ce||e[133]!==pe?(ue=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[ce,pe]}),e[132]=ce,e[133]=pe,e[134]=ue):ue=e[134];let de;e[135]!==re||e[136]!==ue?(de=s.jsx(ye,{value:"auto",textValue:re,children:ue}),e[135]=re,e[136]=ue,e[137]=de):de=e[137];let me;e[138]!==oe||e[139]!==de?(me=s.jsxs(Pe,{children:[oe,de]}),e[138]=oe,e[139]=de,e[140]=me):me=e[140];let ge;e[141]!==l.toolApprovalLevel||e[142]!==W||e[143]!==Y||e[144]!==me?(ge=s.jsxs(De,{value:Ie,onValueChange:W,children:[Y,me]}),e[141]=l.toolApprovalLevel,e[142]=W,e[143]=Y,e[144]=me,e[145]=ge):ge=e[145];let he;e[146]!==M||e[147]!==Q||e[148]!==ge?(he=s.jsx(w,{title:M,description:Q,action:ge}),e[146]=M,e[147]=Q,e[148]=ge,e[149]=he):he=e[149];let xe;e[150]!==C||e[151]!==I||e[152]!==q||e[153]!==J||e[154]!==he?(xe=s.jsxs(ze,{children:[C,I,q,J,he]}),e[150]=C,e[151]=I,e[152]=q,e[153]=J,e[154]=he,e[155]=xe):xe=e[155];let je;return e[156]!==a||e[157]!==xe?(je=s.jsx(Le,{title:a,children:xe}),e[156]=a,e[157]=xe,e[158]=je):je=e[158],je}function We(){V("preferences_sounds_previewed"),Ze(He.dataUri).catch(Xe)}function Xe(){}function Ye(e){return{...e,enableSounds:!e.enableSounds}}function et(e){return s.jsx(ye,{value:e.value,textValue:e.label,children:e.label},e.value)}function tt(e){return{...e,enableNotifications:!1}}function st(){const e=Se.c(8),t=Ne();let l;e[0]!==t?(l=t("settings.title"),e[0]=t,e[1]=l):l=e[1];let i;e[2]!==l?(i=s.jsx(be.Title,{children:l}),e[2]=l,e[3]=i):i=e[3];let c,r;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Me,{}),r=s.jsx(Qe,{}),e[4]=c,e[5]=r):(c=e[4],r=e[5]);let a;return e[6]!==i?(a=s.jsx(be,{children:s.jsx(be.Content,{children:s.jsx(be.Body,{children:s.jsxs(Je,{children:[i,c,r]})})})}),e[6]=i,e[7]=a):a=e[7],a}function Pt(){const e=Se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(st,{}),e[0]=t):t=e[0],t}export{Pt as default};
|
|
1
|
+
import{c as Se,b as Ne,j as s,a as Ce,Z as Te,a5 as Ee,v as $e,p as V,t as Ae}from"./index-7lMfFoqm.js";import{P as be}from"./index-BXCOoie9.js";import{A as Be}from"./avatar-CNc6KWqj.js";import{S as ke}from"./switch-DI_ObHYK.js";import{c as Pe,S as De,d as ye,a as Ve}from"./select-CefiTUgj.js";import{T as _e,a as Ge}from"./toggle-group-BLkkLS1l.js";import{I as Re}from"./input-AF9b5wfZ.js";import{i as Ue}from"./Monitor01-BiNi2Su2.js";import{n as qe,a as Fe}from"./Sun-AMWwxXLJ.js";import{i as Oe}from"./Play-BgnxS2-x.js";import{u as Ke}from"./use-debounced-autosave-BmDbwXYT.js";import{p as Ze,q as He}from"./question-004-sINsf4GQ.js";import"./index-BJQ6k3ml.js";import{c as Je,b as w,S as Le,a as ze}from"./settings-section-C960zryl.js";import"./sidebar-CMNFHIra.js";import"./LayoutLeft-B98Y7j9l.js";import"./use-mobile-JVtF6XY7.js";import"./X-pxLklxt-.js";import"./tooltip-BOHK0On4.js";import"./User01-DqUeIcrF.js";import"./Check-CC9gPb_A.js";import"./ChevronDown-BgfnpwV0.js";import"./ChevronUp-C5_Sfc3S.js";import"./card-Bt7sN6sd.js";import"./ArrowUpRight-Df_nmFmy.js";const we=[{value:"en",label:"English"},{value:"pt-BR",label:"Português (Brasil)"}];function Me(){const e=Se.c(36),t=Ne(),{data:l,isPending:i}=Ce.useSession(),c=l?.user,r=c?.image,a=c?.name??"";let v;e[0]!==a?(v={values:{name:a}},e[0]=a,e[1]=v):v=e[1];const o=Te(v);let L;e[2]!==o||e[3]!==t?(L={save:async()=>{const k=o.control._formState.dirtyFields;if(Object.keys(k).length===0)return;const x=o.getValues(),P=o.control._defaultValues;o.reset(x,{keepValues:!0});try{await Ce.updateUser({name:x.name}),V("profile_updated",{fields:["name"]}),Ae.success(t("settings.profile.updateSuccess"))}catch{o.reset(P,{keepValues:!0}),Ae.error(t("settings.profile.updateError"))}}},e[2]=o,e[3]=t,e[4]=L):L=e[4];const{schedule:y,flush:j}=Ke(L);if(i)return null;let b;e[5]!==t?(b=t("settings.profile.avatar"),e[5]=t,e[6]=b):b=e[6];const N=c?.name??"U";let f;e[7]!==N||e[8]!==r?(f=s.jsx(Be,{url:r,fallback:N,shape:"circle",size:"base"}),e[7]=N,e[8]=r,e[9]=f):f=e[9];let S;e[10]!==b||e[11]!==f?(S=s.jsx(w,{title:b,action:f}),e[10]=b,e[11]=f,e[12]=S):S=e[12];let p;e[13]!==t?(p=t("settings.profile.displayName"),e[13]=t,e[14]=p):p=e[14];let u;e[15]!==j||e[16]!==y||e[17]!==t?(u=k=>{const{field:x}=k;return s.jsx(Re,{id:"display-name",...x,onChange:P=>{x.onChange(P),y()},onBlur:()=>{x.onBlur(),j()},onKeyDown:P=>{P.key==="Enter"&&j()},placeholder:t("settings.profile.displayNamePlaceholder"),className:"w-[280px]"})},e[15]=j,e[16]=y,e[17]=t,e[18]=u):u=e[18];let _;e[19]!==o.control||e[20]!==u?(_=s.jsx(Ee,{control:o.control,name:"name",render:u}),e[19]=o.control,e[20]=u,e[21]=_):_=e[21];let d;e[22]!==p||e[23]!==_?(d=s.jsx(w,{title:p,action:_}),e[22]=p,e[23]=_,e[24]=d):d=e[24];let m;e[25]!==t?(m=t("settings.profile.email"),e[25]=t,e[26]=m):m=e[26];const C=c?.email;let g;e[27]!==C?(g=s.jsx("span",{className:"text-sm text-muted-foreground",children:C}),e[27]=C,e[28]=g):g=e[28];let h;e[29]!==m||e[30]!==g?(h=s.jsx(w,{title:m,action:g}),e[29]=m,e[30]=g,e[31]=h):h=e[31];let A;return e[32]!==d||e[33]!==h||e[34]!==S?(A=s.jsx(Le,{children:s.jsxs(ze,{children:[S,d,h]})}),e[32]=d,e[33]=h,e[34]=S,e[35]=A):A=e[35],A}function Qe(){const e=Se.c(159),t=Ne(),[l,i]=$e();let c;e[0]!==i||e[1]!==t?(c=async n=>{if(n&&await Notification.requestPermission()!=="granted"){V("preferences_notifications_permission_denied"),Ae.error(t("settings.preferences.notificationsDenied")),i(tt);return}V("preferences_notifications_toggled",{enabled:n}),i(D=>({...D,enableNotifications:n}))},e[0]=i,e[1]=t,e[2]=c):c=e[2];const r=c;let a;e[3]!==t?(a=t("settings.preferences.title"),e[3]=t,e[4]=a):a=e[4];let v;e[5]!==t?(v=t("settings.preferences.theme"),e[5]=t,e[6]=v):v=e[6];let o;e[7]!==t?(o=t("settings.preferences.themeDescription"),e[7]=t,e[8]=o):o=e[8];const L=l.theme;let y;e[9]!==i?(y=n=>{n&&(V("preferences_theme_changed",{to_value:n}),i(D=>({...D,theme:n})))},e[9]=i,e[10]=y):y=e[10];let j;e[11]!==t?(j=t("settings.preferences.themeLight"),e[11]=t,e[12]=j):j=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(qe,{size:14}),e[13]=b):b=e[13];let N;e[14]!==j?(N=s.jsx(_e,{value:"light","aria-label":j,children:b}),e[14]=j,e[15]=N):N=e[15];let f;e[16]!==t?(f=t("settings.preferences.themeDark"),e[16]=t,e[17]=f):f=e[17];let S;e[18]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Fe,{size:14}),e[18]=S):S=e[18];let p;e[19]!==f?(p=s.jsx(_e,{value:"dark","aria-label":f,children:S}),e[19]=f,e[20]=p):p=e[20];let u;e[21]!==t?(u=t("settings.preferences.themeSystem"),e[21]=t,e[22]=u):u=e[22];let _;e[23]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Ue,{size:14}),e[23]=_):_=e[23];let d;e[24]!==u?(d=s.jsx(_e,{value:"system","aria-label":u,children:_}),e[24]=u,e[25]=d):d=e[25];let m;e[26]!==l.theme||e[27]!==p||e[28]!==d||e[29]!==y||e[30]!==N?(m=s.jsxs(Ge,{type:"single",size:"sm",variant:"outline",value:L,onValueChange:y,children:[N,p,d]}),e[26]=l.theme,e[27]=p,e[28]=d,e[29]=y,e[30]=N,e[31]=m):m=e[31];let C;e[32]!==m||e[33]!==v||e[34]!==o?(C=s.jsx(w,{title:v,description:o,action:m}),e[32]=m,e[33]=v,e[34]=o,e[35]=C):C=e[35];let g;e[36]!==t?(g=t("settings.preferences.language"),e[36]=t,e[37]=g):g=e[37];let h;e[38]!==t?(h=t("settings.preferences.languageDescription"),e[38]=t,e[39]=h):h=e[39];let A;e[40]!==i?(A=n=>{V("preferences_language_changed",{to_value:n}),i(D=>({...D,language:n}))},e[40]=i,e[41]=A):A=e[41];let k;e[42]!==l.language?(k=we.find(n=>n.value===l.language)?.label,e[42]=l.language,e[43]=k):k=e[43];let x;e[44]!==k?(x=s.jsx(Ve,{className:"w-44 h-7 text-xs",children:s.jsx("span",{children:k})}),e[44]=k,e[45]=x):x=e[45];let P;e[46]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(Pe,{children:we.map(et)}),e[46]=P):P=e[46];let z;e[47]!==l.language||e[48]!==A||e[49]!==x?(z=s.jsxs(De,{value:l.language,onValueChange:A,children:[x,P]}),e[47]=l.language,e[48]=A,e[49]=x,e[50]=z):z=e[50];let I;e[51]!==g||e[52]!==h||e[53]!==z?(I=s.jsx(w,{title:g,description:h,action:z}),e[51]=g,e[52]=h,e[53]=z,e[54]=I):I=e[54];let T;e[55]!==t?(T=t("settings.preferences.notifications"),e[55]=t,e[56]=T):T=e[56];let E;e[57]!==t?(E=t("settings.preferences.notificationsDescription"),e[57]=t,e[58]=E):E=e[58];let $;e[59]!==r||e[60]!==l.enableNotifications?($=typeof Notification<"u"?()=>r(!l.enableNotifications):void 0,e[59]=r,e[60]=l.enableNotifications,e[61]=$):$=e[61];let B;e[62]!==r||e[63]!==l.enableNotifications?(B=s.jsx(ke,{disabled:typeof Notification>"u",checked:l.enableNotifications,onCheckedChange:r}),e[62]=r,e[63]=l.enableNotifications,e[64]=B):B=e[64];let G;e[65]!==T||e[66]!==E||e[67]!==$||e[68]!==B?(G=s.jsx(w,{title:T,description:E,onClick:$,action:B}),e[65]=T,e[66]=E,e[67]=$,e[68]=B,e[69]=G):G=e[69];let R;e[70]!==t?(R=t("settings.preferences.sounds"),e[70]=t,e[71]=R):R=e[71];let U;e[72]!==t?(U=t("settings.preferences.soundsDescription"),e[72]=t,e[73]=U):U=e[73];let q;e[74]!==l.enableSounds||e[75]!==i?(q=()=>{V("preferences_sounds_toggled",{enabled:!l.enableSounds}),i(Ye)},e[74]=l.enableSounds,e[75]=i,e[76]=q):q=e[76];let F;e[77]!==t?(F=t("settings.preferences.soundsPreview"),e[77]=t,e[78]=F):F=e[78];let ve;e[79]===Symbol.for("react.memo_cache_sentinel")?(ve=s.jsx(Oe,{size:11}),e[79]=ve):ve=e[79];let O;e[80]!==F?(O=s.jsx("button",{type:"button","aria-label":F,onClick:We,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:ve}),e[80]=F,e[81]=O):O=e[81];let K;e[82]!==i?(K=n=>{V("preferences_sounds_toggled",{enabled:n}),i(D=>({...D,enableSounds:n}))},e[82]=i,e[83]=K):K=e[83];let Z;e[84]!==l.enableSounds||e[85]!==K?(Z=s.jsx(ke,{checked:l.enableSounds,onCheckedChange:K}),e[84]=l.enableSounds,e[85]=K,e[86]=Z):Z=e[86];let H;e[87]!==O||e[88]!==Z?(H=s.jsxs("div",{className:"flex items-center gap-2",children:[O,Z]}),e[87]=O,e[88]=Z,e[89]=H):H=e[89];let J;e[90]!==R||e[91]!==U||e[92]!==q||e[93]!==H?(J=s.jsx(w,{title:R,description:U,onClick:q,action:H}),e[90]=R,e[91]=U,e[92]=q,e[93]=H,e[94]=J):J=e[94];let M;e[95]!==t?(M=t("settings.preferences.toolApproval"),e[95]=t,e[96]=M):M=e[96];let Q;e[97]!==t?(Q=t("settings.preferences.toolApprovalDescription"),e[97]=t,e[98]=Q):Q=e[98];const Ie=l.toolApprovalLevel;let W;e[99]!==i?(W=n=>{V("preferences_tool_approval_changed",{to_value:n}),i(D=>({...D,toolApprovalLevel:n}))},e[99]=i,e[100]=W):W=e[100];let X;e[101]!==l.toolApprovalLevel||e[102]!==t?(X={readonly:t("settings.preferences.toolApprovalAsk"),auto:t("settings.preferences.toolApprovalAuto")}[l.toolApprovalLevel]??t("settings.preferences.toolApprovalAsk"),e[101]=l.toolApprovalLevel,e[102]=t,e[103]=X):X=e[103];let Y;e[104]!==X?(Y=s.jsx(Ve,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:X})}),e[104]=X,e[105]=Y):Y=e[105];let ee;e[106]!==t?(ee=t("settings.preferences.toolApprovalAsk"),e[106]=t,e[107]=ee):ee=e[107];let te;e[108]!==t?(te=t("settings.preferences.toolApprovalAsk"),e[108]=t,e[109]=te):te=e[109];let se;e[110]!==te?(se=s.jsx("span",{className:"font-medium",children:te}),e[110]=te,e[111]=se):se=e[111];let le;e[112]!==t?(le=t("settings.preferences.toolApprovalAskDescription"),e[112]=t,e[113]=le):le=e[113];let ie;e[114]!==le?(ie=s.jsx("span",{className:"text-xs text-muted-foreground",children:le}),e[114]=le,e[115]=ie):ie=e[115];let ne;e[116]!==se||e[117]!==ie?(ne=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[se,ie]}),e[116]=se,e[117]=ie,e[118]=ne):ne=e[118];let oe;e[119]!==ee||e[120]!==ne?(oe=s.jsx(ye,{value:"readonly",textValue:ee,children:ne}),e[119]=ee,e[120]=ne,e[121]=oe):oe=e[121];let re;e[122]!==t?(re=t("settings.preferences.toolApprovalAuto"),e[122]=t,e[123]=re):re=e[123];let ae;e[124]!==t?(ae=t("settings.preferences.toolApprovalAuto"),e[124]=t,e[125]=ae):ae=e[125];let ce;e[126]!==ae?(ce=s.jsx("span",{className:"font-medium",children:ae}),e[126]=ae,e[127]=ce):ce=e[127];let fe;e[128]!==t?(fe=t("settings.preferences.toolApprovalAutoDescription"),e[128]=t,e[129]=fe):fe=e[129];let pe;e[130]!==fe?(pe=s.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[130]=fe,e[131]=pe):pe=e[131];let ue;e[132]!==ce||e[133]!==pe?(ue=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[ce,pe]}),e[132]=ce,e[133]=pe,e[134]=ue):ue=e[134];let de;e[135]!==re||e[136]!==ue?(de=s.jsx(ye,{value:"auto",textValue:re,children:ue}),e[135]=re,e[136]=ue,e[137]=de):de=e[137];let me;e[138]!==oe||e[139]!==de?(me=s.jsxs(Pe,{children:[oe,de]}),e[138]=oe,e[139]=de,e[140]=me):me=e[140];let ge;e[141]!==l.toolApprovalLevel||e[142]!==W||e[143]!==Y||e[144]!==me?(ge=s.jsxs(De,{value:Ie,onValueChange:W,children:[Y,me]}),e[141]=l.toolApprovalLevel,e[142]=W,e[143]=Y,e[144]=me,e[145]=ge):ge=e[145];let he;e[146]!==M||e[147]!==Q||e[148]!==ge?(he=s.jsx(w,{title:M,description:Q,action:ge}),e[146]=M,e[147]=Q,e[148]=ge,e[149]=he):he=e[149];let xe;e[150]!==C||e[151]!==I||e[152]!==G||e[153]!==J||e[154]!==he?(xe=s.jsxs(ze,{children:[C,I,G,J,he]}),e[150]=C,e[151]=I,e[152]=G,e[153]=J,e[154]=he,e[155]=xe):xe=e[155];let je;return e[156]!==a||e[157]!==xe?(je=s.jsx(Le,{title:a,children:xe}),e[156]=a,e[157]=xe,e[158]=je):je=e[158],je}function We(){V("preferences_sounds_previewed"),Ze(He.dataUri).catch(Xe)}function Xe(){}function Ye(e){return{...e,enableSounds:!e.enableSounds}}function et(e){return s.jsx(ye,{value:e.value,textValue:e.label,children:e.label},e.value)}function tt(e){return{...e,enableNotifications:!1}}function st(){const e=Se.c(8),t=Ne();let l;e[0]!==t?(l=t("settings.title"),e[0]=t,e[1]=l):l=e[1];let i;e[2]!==l?(i=s.jsx(be.Title,{children:l}),e[2]=l,e[3]=i):i=e[3];let c,r;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Me,{}),r=s.jsx(Qe,{}),e[4]=c,e[5]=r):(c=e[4],r=e[5]);let a;return e[6]!==i?(a=s.jsx(be,{children:s.jsx(be.Content,{children:s.jsx(be.Body,{children:s.jsxs(Je,{children:[i,c,r]})})})}),e[6]=i,e[7]=a):a=e[7],a}function Pt(){const e=Se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(st,{}),e[0]=t):t=e[0],t}export{Pt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as L,F as H,j as U}from"./index-7lMfFoqm.js";import{a as O,g as $,s as E}from"./automation-runs-6THMzkHu.js";import{r as k,u as B}from"./use-mcp-client-BBS2wBc8.js";import{b as V,c as Y}from"./use-mcp-tools-RPaTGUO_.js";import{u as q}from"./index-C6_YevgU.js";import{c as G}from"./monaco-editor-Czt4oHBX.js";import{g as F,M as K,a as D}from"./index-BAgEiubw.js";import{b as W,a as z}from"./chat-context-BUCy41wb.js";import{u as J}from"./shell-layout-NJLfF0_e.js";import{O as Q}from"./tab-id-BijBBRwE.js";import"./select-CefiTUgj.js";import"./tooltip-BOHK0On4.js";import"./Check-CC9gPb_A.js";import"./ChevronDown-BgfnpwV0.js";import"./ChevronUp-C5_Sfc3S.js";import"./useInfiniteQuery-CQw734Ep.js";import"./use-infinite-scroll-BRCCFOe_.js";import"./use-connection-ClgMFrpZ.js";import"./use-virtual-mcp-QKzdLITZ.js";import"./card-Bt7sN6sd.js";import"./sidebar-CMNFHIra.js";import"./LayoutLeft-B98Y7j9l.js";import"./use-mobile-JVtF6XY7.js";import"./X-pxLklxt-.js";import"./table-v2gjL7EU.js";import"./empty-state-VEwKl4O7.js";import"./use-members-BXFbi5lw.js";import"./use-org-auth-client-BpFhLPx3.js";import"./use-clock-tick-BkPc4RjU.js";import"./AlertCircle-XnshFjYW.js";import"./CheckCircle-CxnbmKEy.js";import"./DotsVertical-CnVoFOdL.js";import"./agent-icon-DklLFaSa.js";import"./Tool01-m1EmcVyA.js";import"./ArrowUp-VZsF9axi.js";import"./Settings02-Yvc0vxEw.js";import"./Tool02-r9aj6Qyy.js";import"./ArrowRight-CX6eNZSi.js";import"./ArrowUpRight-Df_nmFmy.js";import"./TrendUp01-h4x0FenV.js";import"./ZapSquare-DiexjyhK.js";import"./ZoomOut-CeX9nBzw.js";import"./Users03-BLeBKZva.js";import"./ChevronRight-21KH5QUR.js";import"./Stars02-D8l4enBD.js";import"./Copy01-Diq48EWM.js";import"./Globe01-DVNadxp3.js";import"./Eye-CPji9XgK.js";import"./FilterLines-CrGTcOfX.js";import"./Star01-1QXq7d0Q.js";import"./Globe04-BDFigbbA.js";import"./SwitchHorizontal01-CdbWhzYI.js";import"./HardDrive-CJF16wvx.js";import"./Image01-COoMGEPb.js";import"./Key01-CtX8cIgY.js";import"./XCircle-Jor3fl3p.js";import"./LinkExternal01-Calr_A6c.js";import"./LogOut01-qYuBvoFH.js";import"./Monitor01-BiNi2Su2.js";import"./Sun-AMWwxXLJ.js";import"./Package-BgoRXE8D.js";import"./Palette-BwpXM3TT.js";import"./Play-BgnxS2-x.js";import"./Plus-D-8cpNUO.js";import"./SearchLg-B8C5Qm8O.js";import"./SearchMd-BZf1S_oW.js";import"./Shield01-BICJ_pln.js";import"./Stars01-CB8X2GZM.js";import"./Trash01-CVr9u3xi.js";import"./Upload01-D2PYYKGU.js";import"./User01-DqUeIcrF.js";import"./Users01-Ca4DQ08l.js";import"./XClose-DoQ8FIVP.js";import"./Zap-BYKdCfkZ.js";import"./use-automations-DafBUEuO.js";import"./studio-tools-BBHXaaAJ.js";import"./useSuspenseInfiniteQuery-kVqRtLqF.js";import"./avatar-CNc6KWqj.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dlj9Yo44.js";import"./file-type-icon-C50voPyF.js";import"./dialog-7TP2Rj2D.js";import"./hooks-OLVSgKAi.js";import"./decopilot-sse-pool-B_K0sO1S.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./calendar-DFq-LIxY.js";import"./integration-icon-C0xV3gWf.js";import"./use-navigate-to-agent-DqfXAZ-6.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CJi4tHw0.js";import"./form-C8YEeakk.js";import"./label-nodTVgZf.js";import"./input-AF9b5wfZ.js";import"./auth-BTPRevv4.js";import"./drawer-CO8Igk5a.js";import"./collection-search-B20qLeZq.js";import"./autosend-WnRL52gX.js";import"./index-DZVUOwCL.js";import"./get-initials-D-f_fDFw.js";import"./popover-BkL7Aezg.js";import"./use-registry-app-BwHReYDm.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-DFwi7YAk.js";import"./mcp-oauth-BjijQ5bq.js";import"./extract-connection-data-BEJV81wi.js";import"./use-decopilot-events-D7VrwkLK.js";import"./dropdown-menu-CZyflK5H.js";import"./command-NGsH11Ja.js";import"./index-BYC4n0jP.js";import"./use-organization-settings-DfEYzIUp.js";import"./companions-core-C8hdG_qv.js";import"./tabs-DKQG6gs3.js";import"./toggle-group-BLkkLS1l.js";import"./use-deco-credits-DmhRJlBv.js";import"./alert-dialog-DSeYsJav.js";import"./toolbar-icon-button-BZllJ9er.js";import"./skeleton-Bo-YgqMO.js";import"./github-repo-picker-1AJl1NXF.js";import"./use-debounced-value-B2oza6eL.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./connection-card-B_6si4eG.js";import"./use-registry-connections-Di8iJvGo.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-DEJkcZ7j.js";import"./connection-form-helpers-BV8uHczM.js";import"./collection-tabs-DNI8PqVZ.js";import"./badge-BUAKnV1x.js";import"./use-ai-providers-Bsac7hB5.js";import"./connect-desktop-dialog-D2pvlftk.js";import"./select-model-hpWFXkSi.js";import"./checkbox-BXjzUPh_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-C960zryl.js";import"./index-LUsO6ZZ_.js";import"./toolbar-Dh7M70Tq.js";import"./location-BpLtHjTZ.js";import"./index-BhfXxR4M.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DOnHpSDd.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-CdM4FECT.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-tjupSmgi.js";import"./use-debounced-autosave-BmDbwXYT.js";import"./index-BXCOoie9.js";import"./search-input-eRtomdpQ.js";import"./switch-DI_ObHYK.js";import"./use-secrets-QRS4UIur.js";import"./useQueries-_vDV4wPR.js";import"./use-file-configs-CtM14T7F.js";import"./automation-list-row-dutMC3QV.js";import"./required-auth-layout-BadNf0FP.js";import"./use-org-sso-f_QvizBC.js";const X="studio://navigate";function Z(M){const[t]=M;if(M.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return{isNavigate:!1};let o=null;try{o=new URL(t.uri).searchParams.get("main")}catch{}return{isNavigate:!0,tab:o&&Q.has(o)?o:null}}const tt={};function ot(M){const t=L.c(38),{client:o,resourceURI:I,tool:i,connectionId:p,orgId:a,args:v}=M,{sendMessage:C}=W(),{setAppContext:f,clearAppContext:l}=z(),{openSidePanel:g,openTab:s}=J(),r=`${p}:${i.name}`;let c;t[0]!==s?(c=x=>x==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=c):c=t[1];const m=c,n=v??tt;let u;t[2]!==o||t[3]!==i.name||t[4]!==n?(u={client:o,toolName:i.name,toolArguments:n},t[2]=o,t[3]=i.name,t[4]=n,t[5]=u):u=t[5];const{data:e}=Y(u);let h;if(t[6]!==i._meta||t[7]!==i.name){const x=$(i._meta);h=E(i.name,x),t[6]=i._meta,t[7]=i.name,t[8]=h}else h=t[8];const A=h;let d;t[9]!==i.inputSchema?(d=i.inputSchema??{type:"object"},t[9]=i.inputSchema,t[10]=d):d=t[10];let R;t[11]!==A||t[12]!==d||t[13]!==i?(R={...i,name:A,inputSchema:d},t[11]=A,t[12]=d,t[13]=i,t[14]=R):R=t[14];const b=R;let _;t[15]!==g||t[16]!==s||t[17]!==C?(_=x=>{const j=Z(x.content);if(j.isNavigate){j.tab&&s(j.tab);return}const w=G(x.content);w.content.length>0&&(g("chat"),C({tiptapDoc:w}))},t[15]=g,t[16]=s,t[17]=C,t[18]=_):_=t[18];const y=_;let P;t[19]!==b?(P={tool:b},t[19]=b,t[20]=P):P=t[20];let N;t[21]!==f||t[22]!==r?(N=x=>f(r,x),t[21]=f,t[22]=r,t[23]=N):N=t[23];let T;t[24]!==l||t[25]!==r?(T=()=>l(r),t[24]=l,t[25]=r,t[26]=T):T=t[26];let S;return t[27]!==o||t[28]!==y||t[29]!==m||t[30]!==a||t[31]!==I||t[32]!==P||t[33]!==N||t[34]!==T||t[35]!==n||t[36]!==e?(S=U.jsx(K,{resourceURI:I,orgId:a,toolInfo:P,toolInput:n,toolResult:e,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:o,onMessage:y,onUpdateModelContext:N,onTeardown:T,onRequestDisplayMode:m,className:"h-full"}),t[27]=o,t[28]=y,t[29]=m,t[30]=a,t[31]=I,t[32]=P,t[33]=N,t[34]=T,t[35]=n,t[36]=e,t[37]=S):S=t[37],S}function Qi(M){const t=L.c(24),{connectionId:o,toolName:I,args:i}=M,{org:p}=H(),a=q();let v;t[0]!==o||t[1]!==a?(v=k(o)&&a.vmEntry?.sandboxProviderKind==="user-desktop"&&a.previewUrl?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=o,t[1]=a,t[2]=v):v=t[2];const C=v;let f;t[3]!==o||t[4]!==C||t[5]!==p.id||t[6]!==p.slug?(f={connectionId:o,orgId:p.id,orgSlug:p.slug,mcpUrl:C},t[3]=o,t[4]=C,t[5]=p.id,t[6]=p.slug,t[7]=f):f=t[7];const l=B(f);let g;t[8]!==l?(g={client:l},t[8]=l,t[9]=g):g=t[9];const{data:s}=V(g);let r,c,m;t[10]!==I||t[11]!==s.tools?(r=O(decodeURIComponent(I)),m=s.tools.find(e=>e.name===r)??s.tools.find(e=>{const h=$(e._meta);if(!h)return!1;if(E(e.name,h)===r)return!0;const d=E(r,h);return d!==r&&e.name===d}),c=m?._meta?F(m._meta):void 0,t[10]=I,t[11]=s.tools,t[12]=r,t[13]=c,t[14]=m):(r=t[12],c=t[13],m=t[14]);const n=c;if(!m||!n){let e;return t[15]!==r?(e=U.jsx("div",{className:"flex items-center justify-center h-full w-full",children:U.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[15]=r,t[16]=e):e=t[16],e}let u;return t[17]!==i||t[18]!==l||t[19]!==o||t[20]!==p.id||t[21]!==n||t[22]!==m?(u=U.jsx(ot,{client:l,resourceURI:n,tool:m,connectionId:o,orgId:p.id,args:i}),t[17]=i,t[18]=l,t[19]=o,t[20]=p.id,t[21]=n,t[22]=m,t[23]=u):u=t[23],u}export{Qi as AppViewContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as L,b as z,j as r}from"./index-7lMfFoqm.js";import{I as A}from"./input-AF9b5wfZ.js";import{L as F}from"./label-nodTVgZf.js";import{S as R,a as O,b as V,c as D,d as J}from"./select-CefiTUgj.js";import{T as M}from"./textarea-DEJkcZ7j.js";import{v as $,w as q,x as G,o as H,z as Q,I as U}from"./index-C6_YevgU.js";import{s as I}from"./primitives-imUpb_yp.js";import{u as W}from"./use-autosave-BOabYPsY.js";import"./tooltip-BOHK0On4.js";import"./Check-CC9gPb_A.js";import"./ChevronDown-BgfnpwV0.js";import"./ChevronUp-C5_Sfc3S.js";import"./ArrowUp-VZsF9axi.js";import"./chat-context-BUCy41wb.js";import"./autosend-WnRL52gX.js";import"./hooks-OLVSgKAi.js";import"./use-mcp-client-BBS2wBc8.js";import"./auth-BTPRevv4.js";import"./decopilot-sse-pool-B_K0sO1S.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-BBHXaaAJ.js";import"./use-virtual-mcp-QKzdLITZ.js";import"./use-ai-providers-Bsac7hB5.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-D7VrwkLK.js";import"./use-organization-settings-DfEYzIUp.js";import"./automation-runs-6THMzkHu.js";import"./useInfiniteQuery-CQw734Ep.js";import"./use-infinite-scroll-BRCCFOe_.js";import"./use-connection-ClgMFrpZ.js";import"./card-Bt7sN6sd.js";import"./sidebar-CMNFHIra.js";import"./LayoutLeft-B98Y7j9l.js";import"./use-mobile-JVtF6XY7.js";import"./X-pxLklxt-.js";import"./table-v2gjL7EU.js";import"./empty-state-VEwKl4O7.js";import"./use-members-BXFbi5lw.js";import"./use-org-auth-client-BpFhLPx3.js";import"./use-clock-tick-BkPc4RjU.js";import"./AlertCircle-XnshFjYW.js";import"./CheckCircle-CxnbmKEy.js";import"./DotsVertical-CnVoFOdL.js";import"./agent-icon-DklLFaSa.js";import"./Tool01-m1EmcVyA.js";import"./Settings02-Yvc0vxEw.js";import"./Tool02-r9aj6Qyy.js";import"./ArrowRight-CX6eNZSi.js";import"./ArrowUpRight-Df_nmFmy.js";import"./TrendUp01-h4x0FenV.js";import"./ZapSquare-DiexjyhK.js";import"./ZoomOut-CeX9nBzw.js";import"./Users03-BLeBKZva.js";import"./ChevronRight-21KH5QUR.js";import"./Stars02-D8l4enBD.js";import"./Copy01-Diq48EWM.js";import"./Globe01-DVNadxp3.js";import"./Eye-CPji9XgK.js";import"./FilterLines-CrGTcOfX.js";import"./Star01-1QXq7d0Q.js";import"./Globe04-BDFigbbA.js";import"./SwitchHorizontal01-CdbWhzYI.js";import"./HardDrive-CJF16wvx.js";import"./Image01-COoMGEPb.js";import"./Key01-CtX8cIgY.js";import"./XCircle-Jor3fl3p.js";import"./LinkExternal01-Calr_A6c.js";import"./LogOut01-qYuBvoFH.js";import"./Monitor01-BiNi2Su2.js";import"./Sun-AMWwxXLJ.js";import"./Package-BgoRXE8D.js";import"./Palette-BwpXM3TT.js";import"./Play-BgnxS2-x.js";import"./Plus-D-8cpNUO.js";import"./SearchLg-B8C5Qm8O.js";import"./SearchMd-BZf1S_oW.js";import"./Shield01-BICJ_pln.js";import"./Stars01-CB8X2GZM.js";import"./Trash01-CVr9u3xi.js";import"./Upload01-D2PYYKGU.js";import"./User01-DqUeIcrF.js";import"./Users01-Ca4DQ08l.js";import"./XClose-DoQ8FIVP.js";import"./Zap-BYKdCfkZ.js";import"./use-automations-DafBUEuO.js";import"./useSuspenseInfiniteQuery-kVqRtLqF.js";import"./avatar-CNc6KWqj.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dlj9Yo44.js";import"./file-type-icon-C50voPyF.js";import"./dialog-7TP2Rj2D.js";import"./monaco-editor-Czt4oHBX.js";import"./index-BhfXxR4M.js";import"./index-BAgEiubw.js";import"./calendar-DFq-LIxY.js";import"./shell-layout-NJLfF0_e.js";import"./required-auth-layout-BadNf0FP.js";import"./use-org-sso-f_QvizBC.js";import"./integration-icon-C0xV3gWf.js";import"./use-navigate-to-agent-DqfXAZ-6.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CJi4tHw0.js";import"./form-C8YEeakk.js";import"./drawer-CO8Igk5a.js";import"./collection-search-B20qLeZq.js";import"./index-DZVUOwCL.js";import"./get-initials-D-f_fDFw.js";import"./popover-BkL7Aezg.js";import"./use-registry-app-BwHReYDm.js";import"./use-mcp-tools-RPaTGUO_.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-DFwi7YAk.js";import"./mcp-oauth-BjijQ5bq.js";import"./extract-connection-data-BEJV81wi.js";import"./dropdown-menu-CZyflK5H.js";import"./command-NGsH11Ja.js";import"./index-BYC4n0jP.js";import"./companions-core-C8hdG_qv.js";import"./tabs-DKQG6gs3.js";import"./toggle-group-BLkkLS1l.js";import"./use-deco-credits-DmhRJlBv.js";import"./alert-dialog-DSeYsJav.js";import"./toolbar-icon-button-BZllJ9er.js";import"./skeleton-Bo-YgqMO.js";import"./github-repo-picker-1AJl1NXF.js";import"./use-debounced-value-B2oza6eL.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./connection-card-B_6si4eG.js";import"./use-registry-connections-Di8iJvGo.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-BV8uHczM.js";import"./collection-tabs-DNI8PqVZ.js";import"./badge-BUAKnV1x.js";import"./connect-desktop-dialog-D2pvlftk.js";import"./select-model-hpWFXkSi.js";import"./checkbox-BXjzUPh_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-C960zryl.js";import"./index-LUsO6ZZ_.js";import"./toolbar-Dh7M70Tq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DOnHpSDd.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-CdM4FECT.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-tjupSmgi.js";import"./use-debounced-autosave-BmDbwXYT.js";import"./index-BXCOoie9.js";import"./search-input-eRtomdpQ.js";import"./switch-DI_ObHYK.js";import"./use-secrets-QRS4UIur.js";import"./useQueries-_vDV4wPR.js";import"./use-file-configs-CtM14T7F.js";import"./automation-list-row-dutMC3QV.js";const X={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},Y={authors:"sandbox.recordEditor.titleAuthor"};function Wr(C){const t=L.c(40),{orgSlug:K,virtualMcpId:h,branch:w,kind:a,blockKey:g,block:f}=C,i=z(),P=$(h);let b;t[0]!==w||t[1]!==K||t[2]!==P||t[3]!==h?(b={orgSlug:K,virtualMcpId:h,branch:w,packagePath:P},t[0]=w,t[1]=K,t[2]=P,t[3]=h,t[4]=b):b=t[4];const p=q(b);let k;t[5]!==f||t[6]!==a?(k=G(f,a),t[5]=f,t[6]=a,t[7]=k):k=t[7];const B=k;let v;t[8]!==g||t[9]!==a||t[10]!==p?(v=l=>{p.mutate({blockKey:g,data:Q(g,a,l)})},t[8]=g,t[9]=a,t[10]=p,t[11]=v):v=t[11];const[e,S]=W(B,v);let j;t[12]!==e||t[13]!==S?(j=(l,o)=>S({...e,[l]:o}),t[12]=e,t[13]=S,t[14]=j):j=t[14];const s=j,N=Y[a];let n;t[15]!==i||t[16]!==N?(n=i(N),t[15]=i,t[16]=N,t[17]=n):n=t[17];let c;t[18]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[18]=n,t[19]=c):c=t[19];let d;t[20]!==p.isError||t[21]!==p.isPending?(d=r.jsx(H,{isPending:p.isPending,isError:p.isError}),t[20]=p.isError,t[21]=p.isPending,t[22]=d):d=t[22];let y;t[23]!==c||t[24]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[23]=c,t[24]=d,t[25]=y):y=t[25];const T=X[a];let x;if(t[26]!==e||t[27]!==s||t[28]!==i||t[29]!==T){let l;t[31]!==e||t[32]!==s||t[33]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(U,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:e[o.key],onChange:m=>s(o.key,m),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(R,{value:I(e[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(O,{id:o.key,className:"h-10 w-full",children:r.jsx(V,{placeholder:i(o.labelKey)})}),r.jsx(D,{children:(o.options??[]).map(m=>r.jsx(J,{value:m.value,children:i(m.labelKey)},m.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(M,{id:o.key,value:I(e[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(A,{id:o.key,value:I(e[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:m=>s(o.key,m.target.value),className:"h-10"})]})},o.key),t[31]=e,t[32]=s,t[33]=i,t[34]=l):l=t[34],x=T.map(l),t[26]=e,t[27]=s,t[28]=i,t[29]=T,t[30]=x}else x=t[30];let u;t[35]!==x?(u=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:x})}),t[35]=x,t[36]=u):u=t[36];let E;return t[37]!==y||t[38]!==u?(E=r.jsxs("div",{className:"flex h-full flex-col",children:[y,u]}),t[37]=y,t[38]=u,t[39]=E):E=t[39],E}export{Wr as RecordEditor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as pt,b as at,j as r}from"./index-7lMfFoqm.js";import{C as ct}from"./checkbox-BXjzUPh_.js";import{I as rt}from"./input-AF9b5wfZ.js";import{L as et}from"./label-nodTVgZf.js";import{d as dt,a as nt,b as ft,c as xt,S as ht}from"./select-CefiTUgj.js";import{k as ut,b1 as bt,o as yt,b2 as jt,b3 as vt}from"./index-C6_YevgU.js";import{u as gt}from"./use-autosave-BOabYPsY.js";import"./Check-CC9gPb_A.js";import"./tooltip-BOHK0On4.js";import"./ChevronDown-BgfnpwV0.js";import"./ChevronUp-C5_Sfc3S.js";import"./ArrowUp-VZsF9axi.js";import"./chat-context-BUCy41wb.js";import"./autosend-WnRL52gX.js";import"./hooks-OLVSgKAi.js";import"./use-mcp-client-BBS2wBc8.js";import"./auth-BTPRevv4.js";import"./decopilot-sse-pool-B_K0sO1S.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-BBHXaaAJ.js";import"./use-virtual-mcp-QKzdLITZ.js";import"./use-ai-providers-Bsac7hB5.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-D7VrwkLK.js";import"./use-organization-settings-DfEYzIUp.js";import"./automation-runs-6THMzkHu.js";import"./useInfiniteQuery-CQw734Ep.js";import"./use-infinite-scroll-BRCCFOe_.js";import"./use-connection-ClgMFrpZ.js";import"./card-Bt7sN6sd.js";import"./sidebar-CMNFHIra.js";import"./LayoutLeft-B98Y7j9l.js";import"./use-mobile-JVtF6XY7.js";import"./X-pxLklxt-.js";import"./table-v2gjL7EU.js";import"./empty-state-VEwKl4O7.js";import"./use-members-BXFbi5lw.js";import"./use-org-auth-client-BpFhLPx3.js";import"./use-clock-tick-BkPc4RjU.js";import"./AlertCircle-XnshFjYW.js";import"./CheckCircle-CxnbmKEy.js";import"./DotsVertical-CnVoFOdL.js";import"./agent-icon-DklLFaSa.js";import"./Tool01-m1EmcVyA.js";import"./Settings02-Yvc0vxEw.js";import"./Tool02-r9aj6Qyy.js";import"./ArrowRight-CX6eNZSi.js";import"./ArrowUpRight-Df_nmFmy.js";import"./TrendUp01-h4x0FenV.js";import"./ZapSquare-DiexjyhK.js";import"./ZoomOut-CeX9nBzw.js";import"./Users03-BLeBKZva.js";import"./ChevronRight-21KH5QUR.js";import"./Stars02-D8l4enBD.js";import"./Copy01-Diq48EWM.js";import"./Globe01-DVNadxp3.js";import"./Eye-CPji9XgK.js";import"./FilterLines-CrGTcOfX.js";import"./Star01-1QXq7d0Q.js";import"./Globe04-BDFigbbA.js";import"./SwitchHorizontal01-CdbWhzYI.js";import"./HardDrive-CJF16wvx.js";import"./Image01-COoMGEPb.js";import"./Key01-CtX8cIgY.js";import"./XCircle-Jor3fl3p.js";import"./LinkExternal01-Calr_A6c.js";import"./LogOut01-qYuBvoFH.js";import"./Monitor01-BiNi2Su2.js";import"./Sun-AMWwxXLJ.js";import"./Package-BgoRXE8D.js";import"./Palette-BwpXM3TT.js";import"./Play-BgnxS2-x.js";import"./Plus-D-8cpNUO.js";import"./SearchLg-B8C5Qm8O.js";import"./SearchMd-BZf1S_oW.js";import"./Shield01-BICJ_pln.js";import"./Stars01-CB8X2GZM.js";import"./Trash01-CVr9u3xi.js";import"./Upload01-D2PYYKGU.js";import"./User01-DqUeIcrF.js";import"./Users01-Ca4DQ08l.js";import"./XClose-DoQ8FIVP.js";import"./Zap-BYKdCfkZ.js";import"./use-automations-DafBUEuO.js";import"./useSuspenseInfiniteQuery-kVqRtLqF.js";import"./avatar-CNc6KWqj.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dlj9Yo44.js";import"./file-type-icon-C50voPyF.js";import"./dialog-7TP2Rj2D.js";import"./monaco-editor-Czt4oHBX.js";import"./index-BhfXxR4M.js";import"./index-BAgEiubw.js";import"./calendar-DFq-LIxY.js";import"./shell-layout-NJLfF0_e.js";import"./required-auth-layout-BadNf0FP.js";import"./use-org-sso-f_QvizBC.js";import"./integration-icon-C0xV3gWf.js";import"./use-navigate-to-agent-DqfXAZ-6.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CJi4tHw0.js";import"./form-C8YEeakk.js";import"./drawer-CO8Igk5a.js";import"./collection-search-B20qLeZq.js";import"./index-DZVUOwCL.js";import"./get-initials-D-f_fDFw.js";import"./popover-BkL7Aezg.js";import"./use-registry-app-BwHReYDm.js";import"./use-mcp-tools-RPaTGUO_.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-DFwi7YAk.js";import"./mcp-oauth-BjijQ5bq.js";import"./extract-connection-data-BEJV81wi.js";import"./dropdown-menu-CZyflK5H.js";import"./command-NGsH11Ja.js";import"./index-BYC4n0jP.js";import"./companions-core-C8hdG_qv.js";import"./tabs-DKQG6gs3.js";import"./toggle-group-BLkkLS1l.js";import"./use-deco-credits-DmhRJlBv.js";import"./alert-dialog-DSeYsJav.js";import"./toolbar-icon-button-BZllJ9er.js";import"./skeleton-Bo-YgqMO.js";import"./github-repo-picker-1AJl1NXF.js";import"./use-debounced-value-B2oza6eL.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./connection-card-B_6si4eG.js";import"./use-registry-connections-Di8iJvGo.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-DEJkcZ7j.js";import"./connection-form-helpers-BV8uHczM.js";import"./collection-tabs-DNI8PqVZ.js";import"./badge-BUAKnV1x.js";import"./connect-desktop-dialog-D2pvlftk.js";import"./select-model-hpWFXkSi.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-C960zryl.js";import"./index-LUsO6ZZ_.js";import"./toolbar-Dh7M70Tq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DOnHpSDd.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-CdM4FECT.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-tjupSmgi.js";import"./use-debounced-autosave-BmDbwXYT.js";import"./index-BXCOoie9.js";import"./search-input-eRtomdpQ.js";import"./switch-DI_ObHYK.js";import"./use-secrets-QRS4UIur.js";import"./useQueries-_vDV4wPR.js";import"./use-file-configs-CtM14T7F.js";import"./automation-list-row-dutMC3QV.js";const Et=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function yi(it){const t=pt.c(106),{orgSlug:H,virtualMcpId:J,branch:W,blockKey:X,block:Z}=it,e=at();let V;t[0]!==W||t[1]!==H||t[2]!==J?(V={orgSlug:H,virtualMcpId:J,branch:W},t[0]=W,t[1]=H,t[2]=J,t[3]=V):V=t[3];const s=ut(V);let M;t[4]!==Z?(M=bt(Z),t[4]=Z,t[5]=M):M=t[5];const ot=M;let Y;t[6]!==X||t[7]!==s?(Y=i=>{s.mutate({blockKey:X,data:vt(i)})},t[6]=X,t[7]=s,t[8]=Y):Y=t[8];const[o,tt]=gt(ot,Y);let $;t[9]!==o||t[10]!==tt?($=i=>tt({...o,...i}),t[9]=o,t[10]=tt,t[11]=$):$=t[11];const m=$;let l;t[12]!==e?(l=e("sandbox.redirectEditor.title"),t[12]=e,t[13]=l):l=t[13];let p;t[14]!==l?(p=r.jsx("span",{className:"text-sm font-medium",children:l}),t[14]=l,t[15]=p):p=t[15];let a;t[16]!==s.isError||t[17]!==s.isPending?(a=r.jsx(yt,{isPending:s.isPending,isError:s.isError}),t[16]=s.isError,t[17]=s.isPending,t[18]=a):a=t[18];let c;t[19]!==p||t[20]!==a?(c=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[p,a]}),t[19]=p,t[20]=a,t[21]=c):c=t[21];let d;t[22]!==e?(d=e("sandbox.redirectEditor.fromLabel"),t[22]=e,t[23]=d):d=t[23];let n;t[24]!==d?(n=r.jsx(et,{htmlFor:"redirect-from",children:d}),t[24]=d,t[25]=n):n=t[25];const mt=o.from;let f;t[26]!==e?(f=e("sandbox.redirectEditor.fromPlaceholder"),t[26]=e,t[27]=f):f=t[27];let x;t[28]!==m?(x=i=>m({from:i.target.value}),t[28]=m,t[29]=x):x=t[29];let h;t[30]!==o.from||t[31]!==f||t[32]!==x?(h=r.jsx(rt,{id:"redirect-from",value:mt,placeholder:f,onChange:x,className:"h-10"}),t[30]=o.from,t[31]=f,t[32]=x,t[33]=h):h=t[33];let u;t[34]!==e?(u=e("sandbox.redirectEditor.fromDescription"),t[34]=e,t[35]=u):u=t[35];let b;t[36]!==u?(b=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[36]=u,t[37]=b):b=t[37];let y;t[38]!==n||t[39]!==h||t[40]!==b?(y=r.jsxs("div",{className:"space-y-2",children:[n,h,b]}),t[38]=n,t[39]=h,t[40]=b,t[41]=y):y=t[41];let j;t[42]!==e?(j=e("sandbox.redirectEditor.toLabel"),t[42]=e,t[43]=j):j=t[43];let v;t[44]!==j?(v=r.jsx(et,{htmlFor:"redirect-to",children:j}),t[44]=j,t[45]=v):v=t[45];const st=o.to;let g;t[46]!==e?(g=e("sandbox.redirectEditor.toPlaceholder"),t[46]=e,t[47]=g):g=t[47];let E;t[48]!==m?(E=i=>m({to:i.target.value}),t[48]=m,t[49]=E):E=t[49];let P;t[50]!==o.to||t[51]!==g||t[52]!==E?(P=r.jsx(rt,{id:"redirect-to",value:st,placeholder:g,onChange:E,className:"h-10"}),t[50]=o.to,t[51]=g,t[52]=E,t[53]=P):P=t[53];let N;t[54]!==e?(N=e("sandbox.redirectEditor.toDescription"),t[54]=e,t[55]=N):N=t[55];let S;t[56]!==N?(S=r.jsx("p",{className:"text-xs text-muted-foreground",children:N}),t[56]=N,t[57]=S):S=t[57];let k;t[58]!==v||t[59]!==P||t[60]!==S?(k=r.jsxs("div",{className:"space-y-2",children:[v,P,S]}),t[58]=v,t[59]=P,t[60]=S,t[61]=k):k=t[61];let C;t[62]!==e?(C=e("sandbox.redirectEditor.typeLabel"),t[62]=e,t[63]=C):C=t[63];let T;t[64]!==C?(T=r.jsx(et,{htmlFor:"redirect-type",children:C}),t[64]=C,t[65]=T):T=t[65];const lt=o.type;let w;t[66]!==m?(w=i=>m({type:i}),t[66]=m,t[67]=w):w=t[67];let R;t[68]!==e?(R=e("sandbox.redirectEditor.typePlaceholder"),t[68]=e,t[69]=R):R=t[69];let I;t[70]!==R?(I=r.jsx(nt,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(ft,{placeholder:R})}),t[70]=R,t[71]=I):I=t[71];let _;t[72]!==e?(_=Et.map(i=>r.jsx(dt,{value:i.value,children:e(i.labelKey,{status:jt[i.value]})},i.value)),t[72]=e,t[73]=_):_=t[73];let L;t[74]!==_?(L=r.jsx(xt,{children:_}),t[74]=_,t[75]=L):L=t[75];let Q;t[76]!==o.type||t[77]!==w||t[78]!==I||t[79]!==L?(Q=r.jsxs(ht,{value:lt,onValueChange:w,children:[I,L]}),t[76]=o.type,t[77]=w,t[78]=I,t[79]=L,t[80]=Q):Q=t[80];let q;t[81]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsx("strong",{children:"Temporary"}),t[81]=q):q=t[81];let z;t[82]===Symbol.for("react.memo_cache_sentinel")?(z=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",q," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[82]=z):z=t[82];let F;t[83]!==T||t[84]!==Q?(F=r.jsxs("div",{className:"space-y-2",children:[T,Q,z]}),t[83]=T,t[84]=Q,t[85]=F):F=t[85];let K;t[86]!==m?(K=i=>m({discardQueryParameters:i===!0}),t[86]=m,t[87]=K):K=t[87];let D;t[88]!==o.discardQueryParameters||t[89]!==K?(D=r.jsx(ct,{checked:o.discardQueryParameters,onCheckedChange:K}),t[88]=o.discardQueryParameters,t[89]=K,t[90]=D):D=t[90];let A;t[91]!==e?(A=e("sandbox.redirectEditor.discardQueryParameters"),t[91]=e,t[92]=A):A=t[92];let B;t[93]!==A?(B=r.jsx("span",{className:"text-sm",children:A}),t[93]=A,t[94]=B):B=t[94];let O;t[95]!==D||t[96]!==B?(O=r.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[D,B]}),t[95]=D,t[96]=B,t[97]=O):O=t[97];let U;t[98]!==y||t[99]!==k||t[100]!==F||t[101]!==O?(U=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[y,k,F,O]})}),t[98]=y,t[99]=k,t[100]=F,t[101]=O,t[102]=U):U=t[102];let G;return t[103]!==U||t[104]!==c?(G=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[103]=U,t[104]=c,t[105]=G):G=t[105],G}export{yi as RedirectEditor};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-Bv1SR3XU.js","assets/index-7lMfFoqm.js","assets/index-BkzI2YJo.css","assets/Tool02-r9aj6Qyy.js","assets/CheckCircle-CxnbmKEy.js","assets/Settings02-Yvc0vxEw.js","assets/use-mcp-client-BBS2wBc8.js","assets/auth-BTPRevv4.js","assets/useInfiniteQuery-CQw734Ep.js","assets/use-infinite-scroll-BRCCFOe_.js","assets/studio-tools-BBHXaaAJ.js","assets/badge-BUAKnV1x.js","assets/input-AF9b5wfZ.js","assets/dropdown-menu-CZyflK5H.js","assets/Check-CC9gPb_A.js","assets/ChevronRight-21KH5QUR.js","assets/DotsVertical-CnVoFOdL.js","assets/table-v2gjL7EU.js","assets/toggle-group-BLkkLS1l.js","assets/use-view-mode-Dv530cbk.js","assets/use-mobile-JVtF6XY7.js","assets/FilterLines-CrGTcOfX.js","assets/Globe01-DVNadxp3.js","assets/SearchMd-BZf1S_oW.js","assets/dialog-7TP2Rj2D.js","assets/X-pxLklxt-.js","assets/AlertCircle-XnshFjYW.js","assets/Upload01-D2PYYKGU.js","assets/alert-dialog-DSeYsJav.js","assets/card-Bt7sN6sd.js","assets/Trash01-CVr9u3xi.js","assets/label-nodTVgZf.js","assets/select-CefiTUgj.js","assets/tooltip-BOHK0On4.js","assets/ChevronDown-BgfnpwV0.js","assets/ChevronUp-C5_Sfc3S.js","assets/switch-DI_ObHYK.js","assets/textarea-DEJkcZ7j.js","assets/ArrowRight-CX6eNZSi.js","assets/XCircle-Jor3fl3p.js","assets/checkbox-BXjzUPh_.js","assets/Eye-CPji9XgK.js","assets/LinkExternal01-Calr_A6c.js","assets/use-copy-Dlj9Yo44.js","assets/Copy01-Diq48EWM.js","assets/Key01-CtX8cIgY.js","assets/Plus-D-8cpNUO.js","assets/mcp-oauth-BjijQ5bq.js","assets/Play-BgnxS2-x.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as i,j as e,r as s,k as a,aK as o}from"./index-7lMfFoqm.js";import{R as m}from"./require-capability-CYOL6S-e.js";import"./use-capability-CdM4FECT.js";import"./access-gate-D2NTAiXe.js";import"./capability-load-error-Cua73DjP.js";const n=s.lazy(()=>o(()=>import("./registry-layout-Bv1SR3XU.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,44,45,46,47,48])));function f(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{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(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Z,F as be,n as Ae,o as Ue,e as _e,t as G,b as ce,r as M,j as t,B as Y,k as Ye,m as te,b9 as Ks,ba as Hs}from"./index-
|
|
1
|
+
import{c as Z,F as be,n as Ae,o as Ue,e as _e,t as G,b as ce,r as M,j as t,B as Y,k as Ye,m as te,b9 as Ks,ba as Hs}from"./index-7lMfFoqm.js";import{i as Xt,a as ms,t as Vs,c as Gs,n as Qs,b as Ys}from"./Tool02-r9aj6Qyy.js";import{i as We}from"./CheckCircle-CxnbmKEy.js";import{s as Lt,c as Ws,b as Js,i as Zs,a as Xs}from"./Settings02-Yvc0vxEw.js";import{S as ze,u as Fe,W as er}from"./use-mcp-client-BBS2wBc8.js";import{u as gs}from"./useInfiniteQuery-CQw734Ep.js";import{u as Te}from"./studio-tools-BBHXaaAJ.js";import{B as V}from"./badge-BUAKnV1x.js";import{I as ye}from"./input-AF9b5wfZ.js";import{D as pt,a as Re,b as ht,c as ft,j as es,k as ts,i as tr}from"./dropdown-menu-CZyflK5H.js";import{c as At,e as Ut,a as Je,d as pe,b as Ft,T as he}from"./table-v2gjL7EU.js";import{a as sr,T as ss}from"./toggle-group-BLkkLS1l.js";import{u as rr}from"./use-view-mode-Dv530cbk.js";import{a as $t}from"./DotsVertical-CnVoFOdL.js";import{i as ir}from"./FilterLines-CrGTcOfX.js";import{n as nr,i as xs}from"./Globe01-DVNadxp3.js";import{i as ar}from"./SearchMd-BZf1S_oW.js";import{e as yt,d as jt,b as vt,h as bt,a as Nt,c as Ct}from"./dialog-7TP2Rj2D.js";import{i as tt}from"./AlertCircle-XnshFjYW.js";import{i as rs}from"./Upload01-D2PYYKGU.js";import{c as st,d as rt,b as it,f as nt,g as at,e as ot,a as lt,A as ct}from"./alert-dialog-DSeYsJav.js";import{C as me}from"./card-Bt7sN6sd.js";import{s as dt}from"./Trash01-CVr9u3xi.js";import{L as ae}from"./label-nodTVgZf.js";import{S as or,a as lr,b as cr,c as dr,d as Dt}from"./select-CefiTUgj.js";import{S as Ge}from"./switch-DI_ObHYK.js";import{T as wt}from"./textarea-DEJkcZ7j.js";import{i as ur}from"./ArrowRight-CX6eNZSi.js";import{i as mr}from"./X-pxLklxt-.js";import{a as gr,i as xr}from"./XCircle-Jor3fl3p.js";import{t as pr}from"./ChevronDown-BgfnpwV0.js";import{n as hr}from"./ChevronUp-C5_Sfc3S.js";import{C as is}from"./checkbox-BXjzUPh_.js";import{s as ps}from"./Eye-CPji9XgK.js";import{n as fr}from"./LinkExternal01-Calr_A6c.js";import{u as yr}from"./use-infinite-scroll-BRCCFOe_.js";import{u as Tt}from"./use-copy-Dlj9Yo44.js";import{i as Mt}from"./Check-CC9gPb_A.js";import{a as qt}from"./Copy01-Diq48EWM.js";import{i as jr}from"./Key01-CtX8cIgY.js";import{s as vr}from"./Plus-D-8cpNUO.js";import{T as br,a as Nr,c as Cr}from"./tooltip-BOHK0On4.js";import{i as wr,a as _r}from"./mcp-oauth-BjijQ5bq.js";import{i as Pr}from"./Play-BgnxS2-x.js";import"./auth-BTPRevv4.js";import"./ChevronRight-21KH5QUR.js";import"./use-mobile-JVtF6XY7.js";const Ve="private-registry",Rr=`
|
|
2
2
|
You are an MCP tool tester running automated integration checks.
|
|
3
3
|
|
|
4
4
|
Goal:
|