decocms 4.269.2 → 4.269.4
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-B_MGANKn.js → AlertCircle-C36brJaR.js} +1 -1
- package/dist/client/assets/{AreaChart-BIE92ZB5.js → AreaChart-ebW_YLvP.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DcwGa0Jf.js → ArrowLeft-wwVrsbMW.js} +1 -1
- package/dist/client/assets/{ArrowUp-v5vRAaKF.js → ArrowUp-COJJrX7L.js} +1 -1
- package/dist/client/assets/{Check-ClFUKcbJ.js → Check-DSXkRb-J.js} +1 -1
- package/dist/client/assets/{CheckCircle-Dz-gTt1j.js → CheckCircle-CdvUa3of.js} +1 -1
- package/dist/client/assets/{ChevronDown-B_mzV1FG.js → ChevronDown-BX6glIQa.js} +1 -1
- package/dist/client/assets/{ChevronRight-Dub9Vgi6.js → ChevronRight-LCcuzXWw.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CrrNO-r3.js → ChevronSelectorVertical-7Dug0Yf7.js} +1 -1
- package/dist/client/assets/{ChevronUp-BWdt5HFD.js → ChevronUp-nrG459IH.js} +1 -1
- package/dist/client/assets/{Copy01-B3D8PVwv.js → Copy01-DjuOAVvI.js} +1 -1
- package/dist/client/assets/{CreditCard01-DxXtEpJn.js → CreditCard01-BTsbQBXw.js} +1 -1
- package/dist/client/assets/{DotsVertical-D4Pzyb4r.js → DotsVertical-6tWb-wyG.js} +1 -1
- package/dist/client/assets/{Download01-ilA7cP4f.js → Download01-Cn_kqE9Y.js} +1 -1
- package/dist/client/assets/{Eye-XFnZ2CXh.js → Eye-pAMeUrM1.js} +1 -1
- package/dist/client/assets/{FilterLines-CwwshenK.js → FilterLines-BX3YcOyY.js} +1 -1
- package/dist/client/assets/{Globe01-BuPkaBKs.js → Globe01-dQ7ZoEE0.js} +1 -1
- package/dist/client/assets/{Globe04-CdtnUYpC.js → Globe04-BqRl04n1.js} +1 -1
- package/dist/client/assets/{HardDrive-CNoZO34E.js → HardDrive-fpE53R1T.js} +1 -1
- package/dist/client/assets/{Key01-CrbmL0TU.js → Key01-BPxPWTLz.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BD4ZzbN-.js → LinkExternal01-3eEv4tnH.js} +1 -1
- package/dist/client/assets/{LockUnlocked01-B2xjXV-0.js → LockUnlocked01-Clq_81PP.js} +1 -1
- package/dist/client/assets/{LogOut01-D4i4Vp-V.js → LogOut01-B4rXGfB9.js} +1 -1
- package/dist/client/assets/{Monitor01-SjJFS0oc.js → Monitor01-CSYulPKA.js} +1 -1
- package/dist/client/assets/{Palette-CeXRqZzf.js → Palette-DDrlgZAr.js} +1 -1
- package/dist/client/assets/{Play-Cs9bKOQj.js → Play-GU4NI0HY.js} +1 -1
- package/dist/client/assets/{Plus-CpF6H29a.js → Plus-Gk1CScCj.js} +1 -1
- package/dist/client/assets/{SearchLg-DzeVpxiS.js → SearchLg-CN3H2mAb.js} +1 -1
- package/dist/client/assets/{SearchMd-C1UxMmtp.js → SearchMd-r-Tv7wRH.js} +1 -1
- package/dist/client/assets/{Settings02-Cis0onGS.js → Settings02-DtWW3OuT.js} +1 -1
- package/dist/client/assets/{Share07-C2aUwUMP.js → Share07-d3EhtNR0.js} +1 -1
- package/dist/client/assets/{Shield01-iGm-BwOf.js → Shield01-C8aRU48i.js} +1 -1
- package/dist/client/assets/{Stars01-CAFV4V0C.js → Stars01-Bu8pvraw.js} +1 -1
- package/dist/client/assets/{Stars02-Cmeu17A1.js → Stars02-C7cV-Piq.js} +1 -1
- package/dist/client/assets/{Sun-BrMehd0S.js → Sun-_JugMyUC.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BBbtmcG5.js → SwitchHorizontal01-DpdGRJB3.js} +1 -1
- package/dist/client/assets/{Tool01-BTOYbTgX.js → Tool01-Cfl3COaF.js} +1 -1
- package/dist/client/assets/{Tool02-CFECF_DG.js → Tool02-BPvFk4HB.js} +1 -1
- package/dist/client/assets/{Trash01-C791hFlg.js → Trash01-Cuhq2ZFZ.js} +1 -1
- package/dist/client/assets/{TrendUp01-BeYewvJo.js → TrendUp01-CEu4GTfk.js} +1 -1
- package/dist/client/assets/{Upload01-7XTjVROx.js → Upload01-DVAZevxC.js} +1 -1
- package/dist/client/assets/{User01-2CbqYEEJ.js → User01-D6aTAVm9.js} +1 -1
- package/dist/client/assets/{UserSquare-B1uAjco3.js → UserSquare-BCoi0aB3.js} +1 -1
- package/dist/client/assets/{Users01-C7ZXEJya.js → Users01-BAepYBIW.js} +1 -1
- package/dist/client/assets/{Users03-CL5iyeOb.js → Users03-0YugwDZL.js} +1 -1
- package/dist/client/assets/{XCircle-gR7wbODj.js → XCircle-D8-IVKQd.js} +1 -1
- package/dist/client/assets/{XClose-DZWGF6Pn.js → XClose-DJmAL1aH.js} +1 -1
- package/dist/client/assets/{YAxis-C-aPcZMm.js → YAxis-KRgt5BkG.js} +1 -1
- package/dist/client/assets/{Zap-B41nS8nd.js → Zap-BfeJ5Std.js} +1 -1
- package/dist/client/assets/{ZapSquare-CjpmGLR8.js → ZapSquare-C1MVaAoJ.js} +1 -1
- package/dist/client/assets/{access-gate-4pU4V6Ez.js → access-gate-Cd-bRLR3.js} +1 -1
- package/dist/client/assets/{agent-icon-BgDuIGKP.js → agent-icon-CQX6ATic.js} +1 -1
- package/dist/client/assets/{agents-list-NFB8FpwY.js → agents-list-DtjcaA_H.js} +1 -1
- package/dist/client/assets/{ai-providers-DtpNcRzC.js → ai-providers-BjTA7EtF.js} +1 -1
- package/dist/client/assets/{alert-D6_l9BGC.js → alert-BIvHpQmk.js} +1 -1
- package/dist/client/assets/{alert-dialog-DD6XIS1V.js → alert-dialog-Dw0slG3X.js} +1 -1
- package/dist/client/assets/{api-keys-DGnotV1H.js → api-keys-DQHTLvbL.js} +1 -1
- package/dist/client/assets/{app-editor-DSCb7OGE.js → app-editor-BFhbNicR.js} +1 -1
- package/dist/client/assets/{auth-BtXDjKRH.js → auth-DYsjRMBU.js} +1 -1
- package/dist/client/assets/{auth-catchall-pKg6h6eI.js → auth-catchall-4EBlK8qY.js} +1 -1
- package/dist/client/assets/{auth-entry-DMXSXo3b.js → auth-entry-DjaqRC_O.js} +1 -1
- package/dist/client/assets/{auth-split-layout-7rq01phU.js → auth-split-layout-DtAQwYVC.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DYaz8cjS.js → authenticate-and-persist-oauth-CpljZrI4.js} +1 -1
- package/dist/client/assets/{automation-list-row--mpKmU3v.js → automation-list-row-D_PVlNwY.js} +1 -1
- package/dist/client/assets/{automation-runs-C_ZrMq7x.js → automation-runs-CdPhMdUc.js} +1 -1
- package/dist/client/assets/{automations-B8b-a0yS.js → automations-CdD4uUXA.js} +1 -1
- package/dist/client/assets/{avatar-DO6HMxte.js → avatar-DeRnsiWT.js} +1 -1
- package/dist/client/assets/{badge-CmWuiLbd.js → badge-Csa5d5TA.js} +1 -1
- package/dist/client/assets/{block-document-BIjGoYPt.js → block-document-BM3U4eUu.js} +1 -1
- package/dist/client/assets/{buckets-8MfuI_G8.js → buckets-DQZAWNmz.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BgRI5jZh.js → bulk-category-panel-BqlbYZS4.js} +1 -1
- package/dist/client/assets/{capability-load-error-CHV4nVQB.js → capability-load-error-BsvCbg7T.js} +1 -1
- package/dist/client/assets/{cards-DFxrC3IG.js → cards-DsNGiSlk.js} +1 -1
- package/dist/client/assets/{category-editor-CeC2odrj.js → category-editor-fk69gzGb.js} +1 -1
- package/dist/client/assets/{chart-CXvQ6zBw.js → chart-DLL_Y85t.js} +1 -1
- package/dist/client/assets/{chat-context-CIMo666p.js → chat-context-yeI-v7KV.js} +1 -1
- package/dist/client/assets/{checkbox-BnzMP4sT.js → checkbox-DVHOhi2h.js} +1 -1
- package/dist/client/assets/{choose-editor-Bh4W4k4U.js → choose-editor-C095dV-l.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DXPeuXmB.js → cli-auth-success-CdQJxtSm.js} +1 -1
- package/dist/client/assets/{collection-detail-gEOAHqRU.js → collection-detail-I5MpT3rv.js} +1 -1
- package/dist/client/assets/{collection-display-button-D3l4hr_n.js → collection-display-button-Bb6P0ETa.js} +1 -1
- package/dist/client/assets/{collection-search-tNk-MBZ7.js → collection-search-DNilu4Dh.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-ClF-Zvwt.js → collection-table-wrapper-BarwQ-gj.js} +1 -1
- package/dist/client/assets/{collection-tabs-Xkrn4Kxx.js → collection-tabs-BHsdWEBz.js} +1 -1
- package/dist/client/assets/{command-Zmu6RKmZ.js → command-cIiGvHkA.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CbUlGjhS.js → commerce-onboarding-D_ZmdaWn.js} +1 -1
- package/dist/client/assets/{connect-CWpIcFIJ.js → connect-CyfOwSUf.js} +1 -1
- package/dist/client/assets/{connection-card-Cekp1Uio.js → connection-card-BhwuBGgv.js} +1 -1
- package/dist/client/assets/{connection-detail-C0jKYKIc.js → connection-detail-BzhNV1oU.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CkVNdjEA.js → connection-form-helpers-EHqzE-m_.js} +1 -1
- package/dist/client/assets/{connection-CcTYrad2.js → connection-g3jlHMCM.js} +1 -1
- package/dist/client/assets/{connections-Cd24Ri5h.js → connections-HTcCLFV5.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-7Kw0TgHd.js → decopilot-sse-pool-CBxQ-x96.js} +1 -1
- package/dist/client/assets/{dialog-CjH1Iu8Q.js → dialog-CG0v_Dj_.js} +1 -1
- package/dist/client/assets/{domain-settings-CoUsDv3l.js → domain-settings-EYPW33A7.js} +1 -1
- package/dist/client/assets/{drawer-i03KFkUQ.js → drawer-CC_kwEoi.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CPXUeuH8.js → dropdown-menu-DId3h_0t.js} +1 -1
- package/dist/client/assets/{empty-state-BkJfb2oG.js → empty-state-DF4o6Kzp.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D8IGtoKo.js → extract-connection-data-DDmPP98y.js} +1 -1
- package/dist/client/assets/{file-explorer-B_pdfpUh.js → file-explorer-D1CUStCD.js} +1 -1
- package/dist/client/assets/{file-type-icon-D--9UgoQ.js → file-type-icon-CdCpVvc-.js} +1 -1
- package/dist/client/assets/{form-CvKOyXRc.js → form-CaGeaZ8N.js} +1 -1
- package/dist/client/assets/{general-CQaLVEDK.js → general-NlbXxR9_.js} +1 -1
- package/dist/client/assets/{github-repo-picker-D2ybnxWv.js → github-repo-picker-bZQ5N_-K.js} +1 -1
- package/dist/client/assets/{hooks-B1fKNaBu.js → hooks-CXgDi8h8.js} +1 -1
- package/dist/client/assets/{index-CMz3pE97.js → index-B2jxzf3k.js} +1 -1
- package/dist/client/assets/{index-DoxOcQBR.js → index-BAHq9GAd.js} +1 -1
- package/dist/client/assets/{index-BvD4gkoz.js → index-BXYpKH2e.js} +1 -1
- package/dist/client/assets/{index-y-blz8vw.js → index-CMec6XM_.js} +1 -1
- package/dist/client/assets/{index-CQQZxdJp.js → index-D5mIbiyQ.js} +1 -1
- package/dist/client/assets/{index-Db07zrZ8.js → index-DKJfVpPq.js} +3 -3
- package/dist/client/assets/{index-CoPHUpgI.js → index-DNq46O85.js} +1 -1
- package/dist/client/assets/{index-De8tINWV.js → index-DrW1zjXX.js} +5 -5
- package/dist/client/assets/{index-1-pSwcms.js → index-Dxc3VcBu.js} +1 -1
- package/dist/client/assets/{index-DmClTIno.js → index-P0AspUbT.js} +1 -1
- package/dist/client/assets/{index-redirect-kPSoyN9P.js → index-redirect-CCNPmwlu.js} +1 -1
- package/dist/client/assets/{infra-billing-Biszz_O1.js → infra-billing-DzIuOBIr.js} +1 -1
- package/dist/client/assets/{input-If4F9A5L.js → input-Dh9y5amp.js} +1 -1
- package/dist/client/assets/{integration-icon-MYMXKqz4.js → integration-icon-DTK5rHiT.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-C4AKRRzt.js → invite-member-dialog-BtAuFufW.js} +1 -1
- package/dist/client/assets/{label-CTeLtpPj.js → label-BdC0RLFX.js} +1 -1
- package/dist/client/assets/{layout-BLVmHgWx.js → layout-mXgORUtx.js} +1 -1
- package/dist/client/assets/{login-C3TuO24n.js → login-CEfnnUv1.js} +1 -1
- package/dist/client/assets/{mcp-oauth-ulTTdNug.js → mcp-oauth-CUolBK8e.js} +1 -1
- package/dist/client/assets/{members-BOUydnbb.js → members-CIq5pxjy.js} +1 -1
- package/dist/client/assets/{monaco-editor-B_ZG2XgX.js → monaco-editor-Bo1FpOSD.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-5wzSe8FT.js → monitoring-stats-row-CAhSx1au.js} +1 -1
- package/dist/client/assets/{multi-select-kZMPNVIw.js → multi-select-B3iZbiwZ.js} +1 -1
- package/dist/client/assets/{oauth-callback-BNQyjOq7.js → oauth-callback-DjgmLpIk.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BGwhZ_wN.js → oauth-callback-ai-provider-Dj7OlUGf.js} +1 -1
- package/dist/client/assets/{onboarding-CxqwKALP.js → onboarding-CH8Dyw34.js} +1 -1
- package/dist/client/assets/{org-layout-Cb2EF4JT.js → org-layout-DQyzwhUe.js} +1 -1
- package/dist/client/assets/{organization-choice-C1MrrDmg.js → organization-choice-DHqh5uY5.js} +1 -1
- package/dist/client/assets/{orgs-Cmt6-Iwo.js → orgs-92yID4zT.js} +1 -1
- package/dist/client/assets/{page-seo-form-AD0n5BI5.js → page-seo-form-COs2dG4D.js} +1 -1
- package/dist/client/assets/{popover-DIDrjmQt.js → popover-BJW11m9w.js} +1 -1
- package/dist/client/assets/{post-calendar-eoaDbvAO.js → post-calendar-Bu-_Ljkc.js} +1 -1
- package/dist/client/assets/{post-editor-D1Xf1EDH.js → post-editor-DP9qyfow.js} +1 -1
- package/dist/client/assets/{primitives-khEflgZg.js → primitives-DChH4_To.js} +1 -1
- package/dist/client/assets/{profile-D_Dehi54.js → profile-BAgq_yRU.js} +1 -1
- package/dist/client/assets/{project-app-view-Cb59hMbH.js → project-app-view-BzjTjPwh.js} +1 -1
- package/dist/client/assets/record-editor-D1S_UkzI.js +1 -0
- package/dist/client/assets/{redirect-editor-C56Ohkzc.js → redirect-editor-CqDF3URH.js} +1 -1
- package/dist/client/assets/registry-54K-DU3j.js +2 -0
- package/dist/client/assets/{registry-layout-DzrtiGe7.js → registry-layout-D5ZJ1ywR.js} +1 -1
- package/dist/client/assets/{reports-DG7_oSKH.js → reports-BXVlpMX7.js} +1 -1
- package/dist/client/assets/{require-capability-CH1K2HOj.js → require-capability-nVe6XspV.js} +1 -1
- package/dist/client/assets/{required-auth-layout-LxDBuNfG.js → required-auth-layout-QXq5KHk9.js} +1 -1
- package/dist/client/assets/{reset-password-DxfAMBM0.js → reset-password-BuGLZnKJ.js} +1 -1
- package/dist/client/assets/{roles-DSyJg4mO.js → roles-BgwYJGDh.js} +1 -1
- package/dist/client/assets/{search-input-CvXcVc_q.js → search-input-Dv7Qbmb3.js} +1 -1
- package/dist/client/assets/{secrets-D_pUPAG0.js → secrets-Csp584GA.js} +1 -1
- package/dist/client/assets/{sections-editor-B89Yd9mr.js → sections-editor-DJNiKGfM.js} +1 -1
- package/dist/client/assets/{select-model-1RRw_Z45.js → select-model-DSVyk_Ny.js} +1 -1
- package/dist/client/assets/{select-vfh7qXou.js → select-uEKFD6sX.js} +1 -1
- package/dist/client/assets/{self-tool-result-hSt7TNK0.js → self-tool-result--WgdQZec.js} +1 -1
- package/dist/client/assets/{seo-editor-L8LWlqt0.js → seo-editor-B2z9Vkkv.js} +1 -1
- package/dist/client/assets/{settings-layout-Bdd8dTv9.js → settings-layout-DWiB-r0s.js} +1 -1
- package/dist/client/assets/{shell-controls-DykkKSd5.js → shell-controls-vMGfb44M.js} +1 -1
- package/dist/client/assets/{shell-layout-X-4UXttm.js → shell-layout-UCvVv_pI.js} +1 -1
- package/dist/client/assets/{spinner-DbGrtl8M.js → spinner-CkFs9a6f.js} +1 -1
- package/dist/client/assets/{sprints-DQLQNrmK.js → sprints-Bcz_MiQn.js} +1 -1
- package/dist/client/assets/{sso-CnkUUwoZ.js → sso-Cnz1-ufY.js} +1 -1
- package/dist/client/assets/store-registry-BtlLS2Mm.js +2 -0
- package/dist/client/assets/{store-BM5z3tKV.js → store-udrZtiDD.js} +1 -1
- package/dist/client/assets/{switch-DEg_Wie-.js → switch-bc2Ofgul.js} +1 -1
- package/dist/client/assets/{synced-repos-DEuZpNz4.js → synced-repos-D9Ak6EAu.js} +1 -1
- package/dist/client/assets/{tab-id-DcJXhcUP.js → tab-id-Co9ADgzZ.js} +1 -1
- package/dist/client/assets/{table-DE4pDdSr.js → table-DT7H2MWr.js} +1 -1
- package/dist/client/assets/{tabs-Ptlrb1uK.js → tabs-CK5j3qVZ.js} +1 -1
- package/dist/client/assets/{tasks-DkMtSTUT.js → tasks-B5jbc36i.js} +1 -1
- package/dist/client/assets/{textarea-BCyvvzD_.js → textarea-aDNky26j.js} +1 -1
- package/dist/client/assets/{toggle-group-C2LyWWdH.js → toggle-group-B6dqB33G.js} +1 -1
- package/dist/client/assets/{toolbar-CD7Vw6Qd.js → toolbar-EGXJJZNP.js} +1 -1
- package/dist/client/assets/{track-B3J1Xm3T.js → track-DzOHLu23.js} +1 -1
- package/dist/client/assets/{types-BzTUSs7-.js → types-cPExEwjj.js} +1 -1
- package/dist/client/assets/{use-ai-providers-C0U6QKSW.js → use-ai-providers-BKjhknmw.js} +1 -1
- package/dist/client/assets/{use-api-keys-D0bX4urZ.js → use-api-keys-4UssbXuq.js} +1 -1
- package/dist/client/assets/{use-automations-D9dVViPf.js → use-automations-Be927Cdw.js} +1 -1
- package/dist/client/assets/{use-autosave-vevfkgzA.js → use-autosave-Y6m0YrCK.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DjTwIlXj.js → use-clock-tick-DhhDnvIc.js} +1 -1
- package/dist/client/assets/{use-commerce-diagnostic-CBCLdaqX.js → use-commerce-diagnostic-BVosEeoE.js} +1 -1
- package/dist/client/assets/{use-connection-041rWBWg.js → use-connection-DnvQODWK.js} +1 -1
- package/dist/client/assets/{use-copy-DY08vgeu.js → use-copy-CmmFXbHE.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DOHZrSdo.js → use-create-virtual-mcp-NiD5hM8V.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-D_r_55rr.js → use-debounced-autosave-BXMrJoof.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BUAp_QeG.js → use-debounced-value-CiK5D05Q.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CKuyLkDb.js → use-decopilot-events-CXO6Iuqv.js} +1 -1
- package/dist/client/assets/{use-delete-connection-YHXo199D.js → use-delete-connection-CxS6JTnU.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BrKmwYl_.js → use-deployment-admin-GkfAZtId.js} +1 -1
- package/dist/client/assets/{use-file-configs-CBqnVr3r.js → use-file-configs-CkvRoKNn.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Bhh9Iw6C.js → use-infinite-scroll-CqMrWcOe.js} +1 -1
- package/dist/client/assets/{use-join-requests-zmfL9i83.js → use-join-requests-Bw_LwLdK.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DJsoXyx-.js → use-mcp-client-Cy-AIgXV.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CFPgyeF_.js → use-mcp-tools-Dw5BO3gM.js} +1 -1
- package/dist/client/assets/{use-members-w23IDC0q.js → use-members-DLvlC-ek.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-fev9H89Q.js → use-navigate-to-agent-SrjmfK2L.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CvWEe5k0.js → use-org-auth-client-n2Tx1h6l.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-C8dK15gG.js → use-org-repo-syncs-BKoiq-Av.js} +1 -1
- package/dist/client/assets/{use-org-sso-B5dg4Ub5.js → use-org-sso-8-xVHw1w.js} +1 -1
- package/dist/client/assets/{use-organization-roles-803uhD7r.js → use-organization-roles-DyB1lX5d.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Bi4nkC1u.js → use-organization-settings-Ct9Eyfrn.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BHMVR_be.js → use-registry-connections-D0Cs8VqU.js} +1 -1
- package/dist/client/assets/{use-secrets-D03kV4QO.js → use-secrets-D4YftHqR.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-C8O9HEYG.js → use-section-preview-base-B1kjaeBa.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CriwNE0R.js → use-status-sounds-DG4rgeoJ.js} +1 -1
- package/dist/client/assets/{use-tags-BX4CSIKi.js → use-tags-BVvdI4pe.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DKQ2MtMh.js → use-task-board-items-BpxgNXan.js} +1 -1
- package/dist/client/assets/{use-view-mode-CVYGqgA9.js → use-view-mode-fxGDVDZJ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DW6EkkI7.js → use-virtual-mcp-BQzmnQ_Z.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D3NBsKx6.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-D4cpLyu8.js +1 -0
- package/dist/client/assets/{users-B0vGTd3Z.js → users-Cs1t3Buj.js} +1 -1
- package/dist/client/assets/{variant-calendar-DfvbAQ9c.js → variant-calendar-Bqxh2QCa.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CKMN6Ulw.js → view-mode-toggle-Dns6-I9B.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +465 -465
- package/dist/server/server.js +351 -351
- package/package.json +1 -1
- package/dist/client/assets/record-editor-BGXQOZjQ.js +0 -1
- package/dist/client/assets/registry-DcZcTgB6.js +0 -2
- package/dist/client/assets/store-registry-D7U_Lagj.js +0 -2
- package/dist/client/assets/useInfiniteQuery-ByOHg0jE.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BDG9PMEz.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as he,b as be,j as t,ab as ye,a8 as ke,a9 as Ne,B as Fe}from"./index-Db07zrZ8.js";import{b as Be}from"./chat-context-CIMo666p.js";import{i as Ie}from"./AlertCircle-B_MGANKn.js";import{n as Ae}from"./LinkExternal01-BD4ZzbN-.js";import{ba as Re,m as De}from"./agent-icon-BgDuIGKP.js";import{I as ue}from"./input-If4F9A5L.js";import{L as xe}from"./label-CTeLtpPj.js";import{M as $e}from"./multi-select-kZMPNVIw.js";import{b as je,c as _e,T as ve,a as Me}from"./tabs-Ptlrb1uK.js";import{S as Se}from"./switch-DEg_Wie-.js";import{T as Le}from"./textarea-BCyvvzD_.js";import{G as Ve,T as Ue,U as Ye,V as ze,W as Te,K as Ke,X as qe,Y as Ge,Z as He,_ as Oe,$ as We,a0 as Ee,a1 as ge,a2 as Xe,a3 as Ze,a4 as Je,a5 as we}from"./index-De8tINWV.js";import{b as Qe,a as et,B as tt}from"./block-document-BIjGoYPt.js";import{u as st}from"./use-autosave-vevfkgzA.js";import{s as X,E as lt,R as it,A as ot}from"./primitives-khEflgZg.js";import"./tab-id-DcJXhcUP.js";import"./dialog-CjH1Iu8Q.js";import"./Check-ClFUKcbJ.js";import"./Copy01-B3D8PVwv.js";import"./Download01-ilA7cP4f.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-B1fKNaBu.js";import"./use-mcp-client-DJsoXyx-.js";import"./constants-z9Iog-sb.js";import"./auth-BtXDjKRH.js";import"./decopilot-sse-pool-7Kw0TgHd.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DW6EkkI7.js";import"./use-ai-providers-C0U6QKSW.js";import"./use-decopilot-events-CKuyLkDb.js";import"./use-organization-settings-Bi4nkC1u.js";import"./Tool01-BTOYbTgX.js";import"./ArrowUp-v5vRAaKF.js";import"./ArrowLeft-DcwGa0Jf.js";import"./Tool02-CFECF_DG.js";import"./XCircle-gR7wbODj.js";import"./TrendUp01-BeYewvJo.js";import"./ZapSquare-CjpmGLR8.js";import"./Users03-CL5iyeOb.js";import"./UserSquare-B1uAjco3.js";import"./CheckCircle-Dz-gTt1j.js";import"./ChevronDown-B_mzV1FG.js";import"./ChevronRight-Dub9Vgi6.js";import"./ChevronSelectorVertical-CrrNO-r3.js";import"./ChevronUp-BWdt5HFD.js";import"./DotsVertical-D4Pzyb4r.js";import"./Stars02-Cmeu17A1.js";import"./CreditCard01-DxXtEpJn.js";import"./Settings02-Cis0onGS.js";import"./Eye-XFnZ2CXh.js";import"./FilterLines-CwwshenK.js";import"./Share07-C2aUwUMP.js";import"./Globe01-BuPkaBKs.js";import"./Globe04-CdtnUYpC.js";import"./SwitchHorizontal01-BBbtmcG5.js";import"./HardDrive-CNoZO34E.js";import"./Key01-CrbmL0TU.js";import"./LockUnlocked01-B2xjXV-0.js";import"./LogOut01-D4i4Vp-V.js";import"./Monitor01-SjJFS0oc.js";import"./Sun-BrMehd0S.js";import"./Palette-CeXRqZzf.js";import"./Play-Cs9bKOQj.js";import"./Plus-CpF6H29a.js";import"./SearchLg-DzeVpxiS.js";import"./SearchMd-C1UxMmtp.js";import"./Shield01-iGm-BwOf.js";import"./Stars01-CAFV4V0C.js";import"./Trash01-C791hFlg.js";import"./Upload01-7XTjVROx.js";import"./User01-2CbqYEEJ.js";import"./Users01-C7ZXEJya.js";import"./XClose-DZWGF6Pn.js";import"./Zap-B41nS8nd.js";import"./badge-CmWuiLbd.js";import"./checkbox-BnzMP4sT.js";import"./command-Zmu6RKmZ.js";import"./index-CMz3pE97.js";import"./popover-DIDrjmQt.js";import"./automation-runs-C_ZrMq7x.js";import"./useInfiniteQuery-ByOHg0jE.js";import"./use-infinite-scroll-Bhh9Iw6C.js";import"./use-connection-041rWBWg.js";import"./table-DE4pDdSr.js";import"./empty-state-BkJfb2oG.js";import"./use-members-w23IDC0q.js";import"./use-org-auth-client-CvWEe5k0.js";import"./use-clock-tick-DjTwIlXj.js";import"./select-vfh7qXou.js";import"./use-automations-D9dVViPf.js";import"./useSuspenseInfiniteQuery-BDG9PMEz.js";import"./avatar-DO6HMxte.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DY08vgeu.js";import"./monaco-editor-B_ZG2XgX.js";import"./spinner-DbGrtl8M.js";import"./types-BzTUSs7-.js";import"./shell-layout-X-4UXttm.js";import"./required-auth-layout-LxDBuNfG.js";import"./use-org-sso-B5dg4Ub5.js";import"./integration-icon-MYMXKqz4.js";import"./use-navigate-to-agent-fev9H89Q.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-CXvQ6zBw.js";import"./index-1-pSwcms.js";import"./form-CvKOyXRc.js";import"./file-type-icon-D--9UgoQ.js";import"./drawer-i03KFkUQ.js";import"./collection-search-tNk-MBZ7.js";import"./toggle-group-C2LyWWdH.js";import"./use-commerce-diagnostic-CBCLdaqX.js";import"./self-tool-result-hSt7TNK0.js";import"./alert-dialog-DD6XIS1V.js";import"./extract-connection-data-D8IGtoKo.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-BUAp_QeG.js";import"./authenticate-and-persist-oauth-DYaz8cjS.js";import"./mcp-oauth-ulTTdNug.js";import"./track-B3J1Xm3T.js";import"./toolbar-CD7Vw6Qd.js";import"./github-repo-picker-D2ybnxWv.js";import"./use-mcp-tools-CFPgyeF_.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-Cekp1Uio.js";import"./use-registry-connections-BHMVR_be.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-CkVNdjEA.js";import"./collection-tabs-Xkrn4Kxx.js";import"./select-model-1RRw_Z45.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DFxrC3IG.js";import"./dropdown-menu-CPXUeuH8.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CriwNE0R.js";import"./use-file-configs-CBqnVr3r.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-D_r_55rr.js";import"./search-input-CvXcVc_q.js";import"./index-BvD4gkoz.js";import"./use-secrets-D03kV4QO.js";import"./AreaChart-BIE92ZB5.js";import"./use-task-board-items-DKQ2MtMh.js";import"./sprints-DQLQNrmK.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BX4CSIKi.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row--mpKmU3v.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-C8dK15gG.js";function at(V){return Array.isArray(V)?V.map(e=>({key:X(e?.key),value:X(e?.value)})):[]}function ii(V){const e=he.c(126),{orgSlug:s,virtualMcpId:d,branch:i,blockKey:o,block:p,decofile:l,meta:r,previewBaseUrl:c}=V,a=be(),m=Be()?.taskId??null;let x;e[0]!==i||e[1]!==s||e[2]!==d?(x={orgSlug:s,virtualMcpId:d,branch:i},e[0]=i,e[1]=s,e[2]=d,e[3]=x):x=e[3];const f=Ve(x);let u;e[4]!==i||e[5]!==r||e[6]!==s||e[7]!==d?(u={orgSlug:s,virtualMcpId:d,branch:i,meta:r},e[4]=i,e[5]=r,e[6]=s,e[7]=d,e[8]=u):u=e[8];const C=Ue(u);let b;e[9]!==i||e[10]!==s||e[11]!==d?(b={orgSlug:s,virtualMcpId:d,branch:i},e[9]=i,e[10]=s,e[11]=d,e[12]=b):b=e[12];const g=Ye(b);let j;e[13]!==p?(j=ze(p,"posts"),e[13]=p,e[14]=j):j=e[14];const k=j;let P;e[15]!==o||e[16]!==f?(P=W=>{f.mutate({blockKey:o,data:qe(o,"posts",Ge(W))})},e[15]=o,e[16]=f,e[17]=P):P=e[17];const[n,S]=st(k,P);let U;e[18]!==n||e[19]!==S?(U=(W,h)=>S({...n,[W]:h}),e[18]=n,e[19]=S,e[20]=U):U=e[20];const y=U;let Y;e[21]!==l||e[22]!==g||e[23]!==n||e[24]!==c?(Y=Qe({decofile:l,post:n,previewBaseUrl:c,draftPointer:g}),e[21]=l,e[22]=g,e[23]=n,e[24]=c,e[25]=Y):Y=e[25];const N=Y;let v,L,z;e[26]!==n||e[27]!==a?(L=Te(n),v=L.length>0,z=L.length===1?a("sandbox.postEditor.missingFieldSingular",{fields:L.join(", ")}):a("sandbox.postEditor.missingFieldPlural",{fields:L.join(", ")}),e[26]=n,e[27]=a,e[28]=v,e[29]=L,e[30]=z):(v=e[28],L=e[29],z=e[30]);const T=z;let w;e[31]!==n.title||e[32]!==a?(w=X(n.title)||a("sandbox.postEditor.untitledPost"),e[31]=n.title,e[32]=a,e[33]=w):w=e[33];let F;e[34]!==w?(F=t.jsx("span",{className:"truncate text-sm font-medium",children:w}),e[34]=w,e[35]=F):F=e[35];let B;e[36]!==v||e[37]!==L||e[38]!==T||e[39]!==a?(B=v&&t.jsxs(ye,{children:[t.jsx(ke,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(Ie,{size:14}),L.length," ",L.length===1?a("sandbox.postEditor.issueSingular"):a("sandbox.postEditor.issuePlural")]})}),t.jsx(Ne,{side:"bottom",children:T})]}),e[36]=v,e[37]=L,e[38]=T,e[39]=a,e[40]=B):B=e[40];let I;e[41]!==f.isError||e[42]!==f.isPending?(I=t.jsx(Ke,{isPending:f.isPending,isError:f.isError}),e[41]=f.isError,e[42]=f.isPending,e[43]=I):I=e[43];const G=!N||v;let A;e[44]!==v||e[45]!==T||e[46]!==N||e[47]!==a?(A=v?T:a(N?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),e[44]=v,e[45]=T,e[46]=N,e[47]=a,e[48]=A):A=e[48];let R;e[49]!==v||e[50]!==N?(R=()=>{N&&!v&&window.open(N,"_blank","noopener,noreferrer")},e[49]=v,e[50]=N,e[51]=R):R=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(Ae,{size:14}),e[52]=K):K=e[52];let D;e[53]!==a?(D=a("sandbox.postEditor.seePreview"),e[53]=a,e[54]=D):D=e[54];let $;e[55]!==G||e[56]!==A||e[57]!==R||e[58]!==D?($=t.jsxs(Fe,{type:"button",variant:"outline",size:"sm",disabled:G,title:A,onClick:R,children:[K,D]}),e[55]=G,e[56]=A,e[57]=R,e[58]=D,e[59]=$):$=e[59];let H;e[60]!==B||e[61]!==I||e[62]!==$?(H=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[B,I,$]}),e[60]=B,e[61]=I,e[62]=$,e[63]=H):H=e[63];let O;e[64]!==F||e[65]!==H?(O=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[F,H]}),e[64]=F,e[65]=H,e[66]=O):O=e[66];let _;e[67]!==n.title?(_=X(n.title),e[67]=n.title,e[68]=_):_=e[68];let M;e[69]!==y?(M=W=>y("title",W),e[69]=y,e[70]=M):M=e[70];let q;e[71]!==a?(q=a("sandbox.postEditor.postTitlePlaceholder"),e[71]=a,e[72]=q):q=e[72];let E;e[73]!==_||e[74]!==M||e[75]!==q?(E=t.jsx(lt,{value:_,onChange:M,placeholder:q,className:"py-1 text-4xl font-bold text-foreground"}),e[73]=_,e[74]=M,e[75]=q,e[76]=E):E=e[76];let Z;e[77]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(Re,{}),e[77]=Z):Z=e[77];let J;e[78]!==a?(J=a("sandbox.postEditor.contentTab"),e[78]=a,e[79]=J):J=e[79];let Q;e[80]!==J?(Q=t.jsxs(je,{value:"content",children:[Z,J]}),e[80]=J,e[81]=Q):Q=e[81];let me;e[82]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(De,{}),e[82]=me):me=e[82];let ee;e[83]!==a?(ee=a("sandbox.postEditor.settingsTab"),e[83]=a,e[84]=ee):ee=e[84];let te;e[85]!==ee?(te=t.jsxs(je,{value:"settings",children:[me,ee]}),e[85]=ee,e[86]=te):te=e[86];let se;e[87]!==Q||e[88]!==te?(se=t.jsxs(_e,{children:[Q,te]}),e[87]=Q,e[88]=te,e[89]=se):se=e[89];let le;e[90]!==n.sections?(le=et(n.sections),e[90]=n.sections,e[91]=le):le=e[91];let ie;e[92]!==y?(ie=W=>y("sections",W),e[92]=y,e[93]=ie):ie=e[93];let oe;e[94]!==i||e[95]!==s||e[96]!==m||e[97]!==d?(oe={orgSlug:s,virtualMcpId:d,branch:i,threadId:m},e[94]=i,e[95]=s,e[96]=m,e[97]=d,e[98]=oe):oe=e[98];let ae;e[99]!==a?(ae=a("sandbox.postEditor.noContentYet"),e[99]=a,e[100]=ae):ae=e[100];let re;e[101]!==r||e[102]!==le||e[103]!==ie||e[104]!==oe||e[105]!==ae?(re=t.jsx(ve,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(tt,{value:le,onChange:ie,meta:r,sandboxRef:oe,emptyMessage:ae})})}),e[101]=r,e[102]=le,e[103]=ie,e[104]=oe,e[105]=ae,e[106]=re):re=e[106];let ne;e[107]!==n||e[108]!==S?(ne=W=>S({...n,...W}),e[107]=n,e[108]=S,e[109]=ne):ne=e[109];let de;e[110]!==l||e[111]!==n||e[112]!==y||e[113]!==C||e[114]!==ne?(de=t.jsx(ve,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(rt,{post:n,decofile:l,support:C,onChange:y,onPatch:ne})})}),e[110]=l,e[111]=n,e[112]=y,e[113]=C,e[114]=ne,e[115]=de):de=e[115];let pe;e[116]!==se||e[117]!==re||e[118]!==de?(pe=t.jsxs(Me,{defaultValue:"content",className:"mt-6 gap-4",children:[se,re,de]}),e[116]=se,e[117]=re,e[118]=de,e[119]=pe):pe=e[119];let ce;e[120]!==E||e[121]!==pe?(ce=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:[E,pe]})}),e[120]=E,e[121]=pe,e[122]=ce):ce=e[122];let fe;return e[123]!==O||e[124]!==ce?(fe=t.jsxs("div",{className:"flex h-full flex-col",children:[O,ce]}),e[123]=O,e[124]=ce,e[125]=fe):fe=e[125],fe}function Ce(V){const e=he.c(18),{id:s,label:d,checked:i,blocked:o,blockedReason:p,className:l,onCheckedChange:r}=V;let c;e[0]!==s||e[1]!==d?(c=t.jsx(xe,{htmlFor:s,children:d}),e[0]=s,e[1]=d,e[2]=c):c=e[2];let a;e[3]!==o||e[4]!==i||e[5]!==l||e[6]!==s||e[7]!==r?(a=t.jsx(ke,{asChild:!0,children:t.jsx("span",{children:t.jsx(Se,{id:s,className:l,checked:i,disabled:o,onCheckedChange:r})})}),e[3]=o,e[4]=i,e[5]=l,e[6]=s,e[7]=r,e[8]=a):a=e[8];let m;e[9]!==o||e[10]!==p?(m=o&&t.jsx(Ne,{side:"bottom",children:p}),e[9]=o,e[10]=p,e[11]=m):m=e[11];let x;e[12]!==a||e[13]!==m?(x=t.jsxs(ye,{children:[a,m]}),e[12]=a,e[13]=m,e[14]=x):x=e[14];let f;return e[15]!==c||e[16]!==x?(f=t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c,x]}),e[15]=c,e[16]=x,e[17]=f):f=e[17],f}function rt(V){const e=he.c(142),{post:s,decofile:d,support:i,onChange:o,onPatch:p}=V,l=be();let r;e[0]!==i?(r=He(i),e[0]=i,e[1]=r):r=e[1];const c=r;let a;e[2]!==i?(a=Oe(i),e[2]=i,e[3]=a):a=e[3];const m=a;let x;e[4]!==s?(x=We(s),e[4]=s,e[5]=x):x=e[5];const f=x,u=m&&f==="scheduled";let C;if(e[6]!==s||e[7]!==l){const h=Te(s);C=h.length===1?l("sandbox.postEditor.missingFieldSingular",{fields:h.join(", ")}):l("sandbox.postEditor.missingFieldPlural",{fields:h.join(", ")}),e[6]=s,e[7]=l,e[8]=C}else C=e[8];const b=C;let g;e[9]!==p||e[10]!==s?(g=h=>p(Je(s,h,new Date)),e[9]=p,e[10]=s,e[11]=g):g=e[11];const j=g;let k;e[12]!==c||e[13]!==m||e[14]!==u||e[15]!==b||e[16]!==o||e[17]!==s||e[18]!==j||e[19]!==f||e[20]!==l?(k=c&&t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[m&&t.jsx(Ce,{id:"post-scheduled",label:l("sandbox.postEditor.schedulingLabel"),checked:u,blocked:Ee(s,"scheduled"),blockedReason:b,onCheckedChange:h=>j(h?"scheduled":"draft")}),u?t.jsx(ge,{schema:{type:"string",format:"date-time",title:l("sandbox.postEditor.scheduledDatetimeLabel"),description:l("sandbox.postEditor.scheduledDatetimeDescription")},value:X(s.scheduledDatetime),onChange:h=>o("scheduledDatetime",h),path:"post-scheduled-datetime",label:l("sandbox.postEditor.scheduledDatetimeLabel")}):t.jsx(Ce,{id:"post-published",label:l("sandbox.postEditor.publishedLabel"),className:"data-[state=checked]:bg-success",checked:f==="published",blocked:Ee(s,"published"),blockedReason:b,onCheckedChange:h=>j(h?"published":"draft")})]}),e[12]=c,e[13]=m,e[14]=u,e[15]=b,e[16]=o,e[17]=s,e[18]=j,e[19]=f,e[20]=l,e[21]=k):k=e[21];let P;e[22]!==l?(P=l("sandbox.postEditor.excerptLabel"),e[22]=l,e[23]=P):P=e[23];let n;e[24]!==P?(n=t.jsx(xe,{htmlFor:"post-excerpt",children:P}),e[24]=P,e[25]=n):n=e[25];let S;e[26]!==s.excerpt?(S=X(s.excerpt),e[26]=s.excerpt,e[27]=S):S=e[27];let U;e[28]!==o?(U=h=>o("excerpt",h.target.value),e[28]=o,e[29]=U):U=e[29];let y;e[30]!==U||e[31]!==S?(y=t.jsx(Le,{id:"post-excerpt",value:S,onChange:U,rows:2}),e[30]=U,e[31]=S,e[32]=y):y=e[32];let Y;e[33]!==y||e[34]!==n?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[33]=y,e[34]=n,e[35]=Y):Y=e[35];let N;e[36]!==l?(N=l("sandbox.postEditor.slugLabel"),e[36]=l,e[37]=N):N=e[37];let v;e[38]!==N?(v=t.jsx(xe,{htmlFor:"post-slug",children:N}),e[38]=N,e[39]=v):v=e[39];let L;e[40]!==s.slug?(L=X(s.slug),e[40]=s.slug,e[41]=L):L=e[41];let z;e[42]!==o?(z=h=>o("slug",h.target.value),e[42]=o,e[43]=z):z=e[43];let T;e[44]!==l?(T=l("sandbox.postEditor.slugPlaceholder"),e[44]=l,e[45]=T):T=e[45];let w;e[46]!==L||e[47]!==z||e[48]!==T?(w=t.jsx(ue,{id:"post-slug",value:L,onChange:z,placeholder:T,className:"h-10"}),e[46]=L,e[47]=z,e[48]=T,e[49]=w):w=e[49];let F;e[50]!==v||e[51]!==w?(F=t.jsxs("div",{className:"space-y-2",children:[v,w]}),e[50]=v,e[51]=w,e[52]=F):F=e[52];let B;e[53]!==l?(B=l("sandbox.postEditor.dateLabel"),e[53]=l,e[54]=B):B=e[54];let I;e[55]!==B?(I={type:"string",format:"date",title:B},e[55]=B,e[56]=I):I=e[56];let G;e[57]!==s.date?(G=X(s.date),e[57]=s.date,e[58]=G):G=e[58];let A;e[59]!==o?(A=h=>o("date",h),e[59]=o,e[60]=A):A=e[60];let R;e[61]!==l?(R=l("sandbox.postEditor.dateLabel"),e[61]=l,e[62]=R):R=e[62];let K;e[63]!==I||e[64]!==G||e[65]!==A||e[66]!==R?(K=t.jsx(ge,{schema:I,value:G,onChange:A,path:"post-date",label:R}),e[63]=I,e[64]=G,e[65]=A,e[66]=R,e[67]=K):K=e[67];let D;e[68]!==F||e[69]!==K?(D=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[F,K]}),e[68]=F,e[69]=K,e[70]=D):D=e[70];let $;e[71]!==l?($=l("sandbox.postEditor.coverImageLabel"),e[71]=l,e[72]=$):$=e[72];let H;e[73]!==$?(H={type:"string",format:"image-uri",title:$},e[73]=$,e[74]=H):H=e[74];const O=s.image;let _;e[75]!==o?(_=h=>o("image",h),e[75]=o,e[76]=_):_=e[76];let M;e[77]!==l?(M=l("sandbox.postEditor.coverImageLabel"),e[77]=l,e[78]=M):M=e[78];let q;e[79]!==s.image||e[80]!==H||e[81]!==_||e[82]!==M?(q=t.jsx(we,{schema:H,value:O,onChange:_,path:"post-image",label:M}),e[79]=s.image,e[80]=H,e[81]=_,e[82]=M,e[83]=q):q=e[83];let E;e[84]!==l?(E=l("sandbox.postEditor.coverAltLabel"),e[84]=l,e[85]=E):E=e[85];let Z;e[86]!==l?(Z=l("sandbox.postEditor.coverAltDescription"),e[86]=l,e[87]=Z):Z=e[87];let J;e[88]!==E||e[89]!==Z?(J={type:"string",title:E,description:Z},e[88]=E,e[89]=Z,e[90]=J):J=e[90];let Q;e[91]!==s.alt?(Q=X(s.alt),e[91]=s.alt,e[92]=Q):Q=e[92];let me;e[93]!==o?(me=h=>o("alt",h),e[93]=o,e[94]=me):me=e[94];let ee;e[95]!==l?(ee=l("sandbox.postEditor.coverAltLabel"),e[95]=l,e[96]=ee):ee=e[96];let te;e[97]!==J||e[98]!==Q||e[99]!==me||e[100]!==ee?(te=t.jsx(ge,{schema:J,value:Q,onChange:me,path:"post-alt",label:ee}),e[97]=J,e[98]=Q,e[99]=me,e[100]=ee,e[101]=te):te=e[101];let se;e[102]!==q||e[103]!==te?(se=t.jsxs("div",{className:"space-y-2",children:[q,te]}),e[102]=q,e[103]=te,e[104]=se):se=e[104];let le;e[105]!==l?(le=l("sandbox.postEditor.authorsLabel"),e[105]=l,e[106]=le):le=e[106];let ie;e[107]!==o?(ie=h=>o("authors",h),e[107]=o,e[108]=ie):ie=e[108];let oe;e[109]!==d||e[110]!==s.authors||e[111]!==le||e[112]!==ie?(oe=t.jsx(Pe,{label:le,decofile:d,kind:"authors",valueField:"email",toRef:dt,selected:s.authors,onChange:ie}),e[109]=d,e[110]=s.authors,e[111]=le,e[112]=ie,e[113]=oe):oe=e[113];let ae;e[114]!==l?(ae=l("sandbox.postEditor.categoriesLabel"),e[114]=l,e[115]=ae):ae=e[115];let re;e[116]!==o?(re=h=>o("categories",h),e[116]=o,e[117]=re):re=e[117];let ne;e[118]!==d||e[119]!==s.categories||e[120]!==ae||e[121]!==re?(ne=t.jsx(Pe,{label:ae,decofile:d,kind:"categories",valueField:"slug",toRef:nt,selected:s.categories,onChange:re}),e[118]=d,e[119]=s.categories,e[120]=ae,e[121]=re,e[122]=ne):ne=e[122];let de;e[123]!==o?(de=h=>o("extraProps",h),e[123]=o,e[124]=de):de=e[124];let pe;e[125]!==s.extraProps||e[126]!==de?(pe=t.jsx(ct,{value:s.extraProps,onChange:de}),e[125]=s.extraProps,e[126]=de,e[127]=pe):pe=e[127];let ce;e[128]!==o?(ce=h=>o("seo",h),e[128]=o,e[129]=ce):ce=e[129];let fe;e[130]!==s.seo||e[131]!==ce?(fe=t.jsx(pt,{value:s.seo,onChange:ce}),e[130]=s.seo,e[131]=ce,e[132]=fe):fe=e[132];let W;return e[133]!==Y||e[134]!==D||e[135]!==se||e[136]!==oe||e[137]!==ne||e[138]!==pe||e[139]!==fe||e[140]!==k?(W=t.jsxs("div",{className:"space-y-5",children:[k,Y,D,se,oe,ne,pe,fe]}),e[133]=Y,e[134]=D,e[135]=se,e[136]=oe,e[137]=ne,e[138]=pe,e[139]=fe,e[140]=k,e[141]=W):W=e[141],W}function nt(V){return{name:X(V.name),slug:X(V.slug)}}function dt(V){return{...V}}function pt(V){const e=he.c(93),{value:s,onChange:d}=V,i=be();let o;e[0]!==s?(o=s&&typeof s=="object"&&!Array.isArray(s)?s:{},e[0]=s,e[1]=o):o=e[1];const p=o;let l;e[2]!==d||e[3]!==p?(l=(E,Z)=>d({...p,[E]:Z}),e[2]=d,e[3]=p,e[4]=l):l=e[4];const r=l;let c;e[5]!==i?(c=i("sandbox.postEditor.seoSectionLabel"),e[5]=i,e[6]=c):c=e[6];let a;e[7]!==c?(a=t.jsx("p",{className:"text-sm font-medium",children:c}),e[7]=c,e[8]=a):a=e[8];let m;e[9]!==i?(m=i("sandbox.postEditor.seoSectionHint"),e[9]=i,e[10]=m):m=e[10];let x;e[11]!==m?(x=t.jsx("p",{className:"text-xs text-muted-foreground",children:m}),e[11]=m,e[12]=x):x=e[12];let f;e[13]!==a||e[14]!==x?(f=t.jsxs("div",{className:"space-y-1",children:[a,x]}),e[13]=a,e[14]=x,e[15]=f):f=e[15];let u;e[16]!==i?(u=i("sandbox.postEditor.seoTitleLabel"),e[16]=i,e[17]=u):u=e[17];let C;e[18]!==u?(C=t.jsx(xe,{htmlFor:"post-seo-title",children:u}),e[18]=u,e[19]=C):C=e[19];let b;e[20]!==p.title?(b=X(p.title),e[20]=p.title,e[21]=b):b=e[21];let g;e[22]!==r?(g=E=>r("title",E.target.value),e[22]=r,e[23]=g):g=e[23];let j;e[24]!==b||e[25]!==g?(j=t.jsx(ue,{id:"post-seo-title",value:b,onChange:g,className:"h-10"}),e[24]=b,e[25]=g,e[26]=j):j=e[26];let k;e[27]!==j||e[28]!==C?(k=t.jsxs("div",{className:"space-y-2",children:[C,j]}),e[27]=j,e[28]=C,e[29]=k):k=e[29];let P;e[30]!==i?(P=i("sandbox.postEditor.seoDescriptionLabel"),e[30]=i,e[31]=P):P=e[31];let n;e[32]!==P?(n=t.jsx(xe,{htmlFor:"post-seo-description",children:P}),e[32]=P,e[33]=n):n=e[33];let S;e[34]!==p.description?(S=X(p.description),e[34]=p.description,e[35]=S):S=e[35];let U;e[36]!==r?(U=E=>r("description",E.target.value),e[36]=r,e[37]=U):U=e[37];let y;e[38]!==S||e[39]!==U?(y=t.jsx(Le,{id:"post-seo-description",value:S,onChange:U,rows:2}),e[38]=S,e[39]=U,e[40]=y):y=e[40];let Y;e[41]!==n||e[42]!==y?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[41]=n,e[42]=y,e[43]=Y):Y=e[43];let N;e[44]!==i?(N=i("sandbox.postEditor.seoImageLabel"),e[44]=i,e[45]=N):N=e[45];let v;e[46]!==N?(v={type:"string",format:"image-uri",title:N},e[46]=N,e[47]=v):v=e[47];const L=p.image;let z;e[48]!==r?(z=E=>r("image",E),e[48]=r,e[49]=z):z=e[49];let T;e[50]!==i?(T=i("sandbox.postEditor.seoImageLabel"),e[50]=i,e[51]=T):T=e[51];let w;e[52]!==p.image||e[53]!==v||e[54]!==z||e[55]!==T?(w=t.jsx(we,{schema:v,value:L,onChange:z,path:"post-seo-image",label:T}),e[52]=p.image,e[53]=v,e[54]=z,e[55]=T,e[56]=w):w=e[56];let F;e[57]!==i?(F=i("sandbox.postEditor.seoCanonicalLabel"),e[57]=i,e[58]=F):F=e[58];let B;e[59]!==F?(B=t.jsx(xe,{htmlFor:"post-seo-canonical",children:F}),e[59]=F,e[60]=B):B=e[60];let I;e[61]!==p.canonical?(I=X(p.canonical),e[61]=p.canonical,e[62]=I):I=e[62];let G;e[63]!==r?(G=E=>r("canonical",E.target.value),e[63]=r,e[64]=G):G=e[64];let A;e[65]!==i?(A=i("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=i,e[66]=A):A=e[66];let R;e[67]!==I||e[68]!==G||e[69]!==A?(R=t.jsx(ue,{id:"post-seo-canonical",value:I,onChange:G,placeholder:A,className:"h-10"}),e[67]=I,e[68]=G,e[69]=A,e[70]=R):R=e[70];let K;e[71]!==B||e[72]!==R?(K=t.jsxs("div",{className:"space-y-2",children:[B,R]}),e[71]=B,e[72]=R,e[73]=K):K=e[73];let D;e[74]!==i?(D=i("sandbox.postEditor.seoNoIndexingLabel"),e[74]=i,e[75]=D):D=e[75];let $;e[76]!==D?($=t.jsx(xe,{htmlFor:"post-seo-no-indexing",children:D}),e[76]=D,e[77]=$):$=e[77];const H=p.noIndexing===!0;let O;e[78]!==r?(O=E=>r("noIndexing",E),e[78]=r,e[79]=O):O=e[79];let _;e[80]!==H||e[81]!==O?(_=t.jsx(Se,{id:"post-seo-no-indexing",checked:H,onCheckedChange:O}),e[80]=H,e[81]=O,e[82]=_):_=e[82];let M;e[83]!==$||e[84]!==_?(M=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[$,_]}),e[83]=$,e[84]=_,e[85]=M):M=e[85];let q;return e[86]!==k||e[87]!==Y||e[88]!==w||e[89]!==K||e[90]!==M||e[91]!==f?(q=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[f,k,Y,w,K,M]}),e[86]=k,e[87]=Y,e[88]=w,e[89]=K,e[90]=M,e[91]=f,e[92]=q):q=e[92],q}function ct(V){const e=he.c(24),{value:s,onChange:d}=V,i=be();let o,p,l,r;if(e[0]!==d||e[1]!==i||e[2]!==s){o=at(s);const f=(C,b)=>d(o.map((g,j)=>j===C?{...g,...b}:g));p="space-y-2";let u;e[7]!==i?(u=i("sandbox.postEditor.extraPropsLabel"),e[7]=i,e[8]=u):u=e[8],e[9]!==u?(l=t.jsx(xe,{children:u}),e[9]=u,e[10]=l):l=e[10],r=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((C,b)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(ue,{value:C.key,onChange:g=>f(b,{key:g.target.value}),placeholder:i("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(ue,{value:C.value,onChange:g=>f(b,{value:g.target.value}),placeholder:i("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(it,{label:i("sandbox.postEditor.removePropLabel"),onClick:()=>d(o.filter((g,j)=>j!==b))})]},b))}),e[0]=d,e[1]=i,e[2]=s,e[3]=o,e[4]=p,e[5]=l,e[6]=r}else o=e[3],p=e[4],l=e[5],r=e[6];let c;e[11]!==i?(c=i("sandbox.postEditor.addPropLabel"),e[11]=i,e[12]=c):c=e[12];let a;e[13]!==o||e[14]!==d?(a=()=>d([...o,{key:"",value:""}]),e[13]=o,e[14]=d,e[15]=a):a=e[15];let m;e[16]!==c||e[17]!==a?(m=t.jsx(ot,{label:c,onClick:a}),e[16]=c,e[17]=a,e[18]=m):m=e[18];let x;return e[19]!==p||e[20]!==l||e[21]!==r||e[22]!==m?(x=t.jsxs("div",{className:p,children:[l,r,m]}),e[19]=p,e[20]=l,e[21]=r,e[22]=m,e[23]=x):x=e[23],x}function Pe(V){const e=he.c(24),{label:s,decofile:d,kind:i,valueField:o,toRef:p,selected:l,onChange:r}=V,c=be();let a;e[0]!==d||e[1]!==i||e[2]!==l||e[3]!==p||e[4]!==o?(a=Xe({records:Ze(d,i),selected:l,valueField:o,toRef:p}),e[0]=d,e[1]=i,e[2]=l,e[3]=p,e[4]=o,e[5]=a):a=e[5];const{options:m,selectedValues:x,refsForValues:f}=a;let u;e[6]!==i||e[7]!==c?(u=c(i==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=i,e[7]=c,e[8]=u):u=e[8];const C=u;let b;e[9]!==i||e[10]!==c?(b=c(i==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=i,e[10]=c,e[11]=b):b=e[11];const g=b;let j;e[12]!==s?(j=t.jsx(xe,{children:s}),e[12]=s,e[13]=j):j=e[13];let k;e[14]!==C||e[15]!==r||e[16]!==m||e[17]!==f||e[18]!==g||e[19]!==x?(k=m.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:C}):t.jsx($e,{options:m,defaultValue:x,onValueChange:n=>r(f(n)),placeholder:g,maxCount:4}),e[14]=C,e[15]=r,e[16]=m,e[17]=f,e[18]=g,e[19]=x,e[20]=k):k=e[20];let P;return e[21]!==j||e[22]!==k?(P=t.jsxs("div",{className:"space-y-2",children:[j,k]}),e[21]=j,e[22]=k,e[23]=P):P=e[23],P}export{ii as PostEditor};
|
|
1
|
+
import{c as he,b as be,j as t,ab as ye,a8 as ke,a9 as Ne,B as Fe}from"./index-DKJfVpPq.js";import{b as Be}from"./chat-context-yeI-v7KV.js";import{i as Ie}from"./AlertCircle-C36brJaR.js";import{n as Ae}from"./LinkExternal01-3eEv4tnH.js";import{ba as Re,m as De}from"./agent-icon-CQX6ATic.js";import{I as ue}from"./input-Dh9y5amp.js";import{L as xe}from"./label-BdC0RLFX.js";import{M as $e}from"./multi-select-B3iZbiwZ.js";import{b as je,c as _e,T as ve,a as Me}from"./tabs-CK5j3qVZ.js";import{S as Se}from"./switch-bc2Ofgul.js";import{T as Le}from"./textarea-aDNky26j.js";import{G as Ve,T as Ue,U as Ye,V as ze,W as Te,K as Ke,X as qe,Y as Ge,Z as He,_ as Oe,$ as We,a0 as Ee,a1 as ge,a2 as Xe,a3 as Ze,a4 as Je,a5 as we}from"./index-DrW1zjXX.js";import{b as Qe,a as et,B as tt}from"./block-document-BM3U4eUu.js";import{u as st}from"./use-autosave-Y6m0YrCK.js";import{s as X,E as lt,R as it,A as ot}from"./primitives-DChH4_To.js";import"./tab-id-Co9ADgzZ.js";import"./dialog-CG0v_Dj_.js";import"./Check-DSXkRb-J.js";import"./Copy01-DjuOAVvI.js";import"./Download01-Cn_kqE9Y.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-CXgDi8h8.js";import"./use-mcp-client-Cy-AIgXV.js";import"./constants-z9Iog-sb.js";import"./auth-DYsjRMBU.js";import"./decopilot-sse-pool-CBxQ-x96.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-BQzmnQ_Z.js";import"./use-ai-providers-BKjhknmw.js";import"./use-decopilot-events-CXO6Iuqv.js";import"./use-organization-settings-Ct9Eyfrn.js";import"./Tool01-Cfl3COaF.js";import"./ArrowUp-COJJrX7L.js";import"./ArrowLeft-wwVrsbMW.js";import"./Tool02-BPvFk4HB.js";import"./XCircle-D8-IVKQd.js";import"./TrendUp01-CEu4GTfk.js";import"./ZapSquare-C1MVaAoJ.js";import"./Users03-0YugwDZL.js";import"./UserSquare-BCoi0aB3.js";import"./CheckCircle-CdvUa3of.js";import"./ChevronDown-BX6glIQa.js";import"./ChevronRight-LCcuzXWw.js";import"./ChevronSelectorVertical-7Dug0Yf7.js";import"./ChevronUp-nrG459IH.js";import"./DotsVertical-6tWb-wyG.js";import"./Stars02-C7cV-Piq.js";import"./CreditCard01-BTsbQBXw.js";import"./Settings02-DtWW3OuT.js";import"./Eye-pAMeUrM1.js";import"./FilterLines-BX3YcOyY.js";import"./Share07-d3EhtNR0.js";import"./Globe01-dQ7ZoEE0.js";import"./Globe04-BqRl04n1.js";import"./SwitchHorizontal01-DpdGRJB3.js";import"./HardDrive-fpE53R1T.js";import"./Key01-BPxPWTLz.js";import"./LockUnlocked01-Clq_81PP.js";import"./LogOut01-B4rXGfB9.js";import"./Monitor01-CSYulPKA.js";import"./Sun-_JugMyUC.js";import"./Palette-DDrlgZAr.js";import"./Play-GU4NI0HY.js";import"./Plus-Gk1CScCj.js";import"./SearchLg-CN3H2mAb.js";import"./SearchMd-r-Tv7wRH.js";import"./Shield01-C8aRU48i.js";import"./Stars01-Bu8pvraw.js";import"./Trash01-Cuhq2ZFZ.js";import"./Upload01-DVAZevxC.js";import"./User01-D6aTAVm9.js";import"./Users01-BAepYBIW.js";import"./XClose-DJmAL1aH.js";import"./Zap-BfeJ5Std.js";import"./badge-Csa5d5TA.js";import"./checkbox-DVHOhi2h.js";import"./command-cIiGvHkA.js";import"./index-B2jxzf3k.js";import"./popover-BJW11m9w.js";import"./automation-runs-CdPhMdUc.js";import"./useInfiniteQuery-D3NBsKx6.js";import"./use-infinite-scroll-CqMrWcOe.js";import"./use-connection-DnvQODWK.js";import"./table-DT7H2MWr.js";import"./empty-state-DF4o6Kzp.js";import"./use-members-DLvlC-ek.js";import"./use-org-auth-client-n2Tx1h6l.js";import"./use-clock-tick-DhhDnvIc.js";import"./select-uEKFD6sX.js";import"./use-automations-Be927Cdw.js";import"./useSuspenseInfiniteQuery-D4cpLyu8.js";import"./avatar-DeRnsiWT.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CmmFXbHE.js";import"./monaco-editor-Bo1FpOSD.js";import"./spinner-CkFs9a6f.js";import"./types-cPExEwjj.js";import"./shell-layout-UCvVv_pI.js";import"./required-auth-layout-QXq5KHk9.js";import"./use-org-sso-8-xVHw1w.js";import"./integration-icon-DTK5rHiT.js";import"./use-navigate-to-agent-SrjmfK2L.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-DLL_Y85t.js";import"./index-Dxc3VcBu.js";import"./form-CaGeaZ8N.js";import"./file-type-icon-CdCpVvc-.js";import"./drawer-CC_kwEoi.js";import"./collection-search-DNilu4Dh.js";import"./toggle-group-B6dqB33G.js";import"./use-commerce-diagnostic-BVosEeoE.js";import"./self-tool-result--WgdQZec.js";import"./alert-dialog-Dw0slG3X.js";import"./extract-connection-data-DDmPP98y.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-CiK5D05Q.js";import"./authenticate-and-persist-oauth-CpljZrI4.js";import"./mcp-oauth-CUolBK8e.js";import"./track-DzOHLu23.js";import"./toolbar-EGXJJZNP.js";import"./github-repo-picker-bZQ5N_-K.js";import"./use-mcp-tools-Dw5BO3gM.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-BhwuBGgv.js";import"./use-registry-connections-D0Cs8VqU.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-EHqzE-m_.js";import"./collection-tabs-BHsdWEBz.js";import"./select-model-DSVyk_Ny.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DsNGiSlk.js";import"./dropdown-menu-DId3h_0t.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DG4rgeoJ.js";import"./use-file-configs-CkvRoKNn.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-BXMrJoof.js";import"./search-input-Dv7Qbmb3.js";import"./index-BXYpKH2e.js";import"./use-secrets-D4YftHqR.js";import"./AreaChart-ebW_YLvP.js";import"./use-task-board-items-BpxgNXan.js";import"./sprints-Bcz_MiQn.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BVvdI4pe.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row-D_PVlNwY.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-BKoiq-Av.js";function at(V){return Array.isArray(V)?V.map(e=>({key:X(e?.key),value:X(e?.value)})):[]}function ii(V){const e=he.c(126),{orgSlug:s,virtualMcpId:d,branch:i,blockKey:o,block:p,decofile:l,meta:r,previewBaseUrl:c}=V,a=be(),m=Be()?.taskId??null;let x;e[0]!==i||e[1]!==s||e[2]!==d?(x={orgSlug:s,virtualMcpId:d,branch:i},e[0]=i,e[1]=s,e[2]=d,e[3]=x):x=e[3];const f=Ve(x);let u;e[4]!==i||e[5]!==r||e[6]!==s||e[7]!==d?(u={orgSlug:s,virtualMcpId:d,branch:i,meta:r},e[4]=i,e[5]=r,e[6]=s,e[7]=d,e[8]=u):u=e[8];const C=Ue(u);let b;e[9]!==i||e[10]!==s||e[11]!==d?(b={orgSlug:s,virtualMcpId:d,branch:i},e[9]=i,e[10]=s,e[11]=d,e[12]=b):b=e[12];const g=Ye(b);let j;e[13]!==p?(j=ze(p,"posts"),e[13]=p,e[14]=j):j=e[14];const k=j;let P;e[15]!==o||e[16]!==f?(P=W=>{f.mutate({blockKey:o,data:qe(o,"posts",Ge(W))})},e[15]=o,e[16]=f,e[17]=P):P=e[17];const[n,S]=st(k,P);let U;e[18]!==n||e[19]!==S?(U=(W,h)=>S({...n,[W]:h}),e[18]=n,e[19]=S,e[20]=U):U=e[20];const y=U;let Y;e[21]!==l||e[22]!==g||e[23]!==n||e[24]!==c?(Y=Qe({decofile:l,post:n,previewBaseUrl:c,draftPointer:g}),e[21]=l,e[22]=g,e[23]=n,e[24]=c,e[25]=Y):Y=e[25];const N=Y;let v,L,z;e[26]!==n||e[27]!==a?(L=Te(n),v=L.length>0,z=L.length===1?a("sandbox.postEditor.missingFieldSingular",{fields:L.join(", ")}):a("sandbox.postEditor.missingFieldPlural",{fields:L.join(", ")}),e[26]=n,e[27]=a,e[28]=v,e[29]=L,e[30]=z):(v=e[28],L=e[29],z=e[30]);const T=z;let w;e[31]!==n.title||e[32]!==a?(w=X(n.title)||a("sandbox.postEditor.untitledPost"),e[31]=n.title,e[32]=a,e[33]=w):w=e[33];let F;e[34]!==w?(F=t.jsx("span",{className:"truncate text-sm font-medium",children:w}),e[34]=w,e[35]=F):F=e[35];let B;e[36]!==v||e[37]!==L||e[38]!==T||e[39]!==a?(B=v&&t.jsxs(ye,{children:[t.jsx(ke,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(Ie,{size:14}),L.length," ",L.length===1?a("sandbox.postEditor.issueSingular"):a("sandbox.postEditor.issuePlural")]})}),t.jsx(Ne,{side:"bottom",children:T})]}),e[36]=v,e[37]=L,e[38]=T,e[39]=a,e[40]=B):B=e[40];let I;e[41]!==f.isError||e[42]!==f.isPending?(I=t.jsx(Ke,{isPending:f.isPending,isError:f.isError}),e[41]=f.isError,e[42]=f.isPending,e[43]=I):I=e[43];const G=!N||v;let A;e[44]!==v||e[45]!==T||e[46]!==N||e[47]!==a?(A=v?T:a(N?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),e[44]=v,e[45]=T,e[46]=N,e[47]=a,e[48]=A):A=e[48];let R;e[49]!==v||e[50]!==N?(R=()=>{N&&!v&&window.open(N,"_blank","noopener,noreferrer")},e[49]=v,e[50]=N,e[51]=R):R=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(Ae,{size:14}),e[52]=K):K=e[52];let D;e[53]!==a?(D=a("sandbox.postEditor.seePreview"),e[53]=a,e[54]=D):D=e[54];let $;e[55]!==G||e[56]!==A||e[57]!==R||e[58]!==D?($=t.jsxs(Fe,{type:"button",variant:"outline",size:"sm",disabled:G,title:A,onClick:R,children:[K,D]}),e[55]=G,e[56]=A,e[57]=R,e[58]=D,e[59]=$):$=e[59];let H;e[60]!==B||e[61]!==I||e[62]!==$?(H=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[B,I,$]}),e[60]=B,e[61]=I,e[62]=$,e[63]=H):H=e[63];let O;e[64]!==F||e[65]!==H?(O=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[F,H]}),e[64]=F,e[65]=H,e[66]=O):O=e[66];let _;e[67]!==n.title?(_=X(n.title),e[67]=n.title,e[68]=_):_=e[68];let M;e[69]!==y?(M=W=>y("title",W),e[69]=y,e[70]=M):M=e[70];let q;e[71]!==a?(q=a("sandbox.postEditor.postTitlePlaceholder"),e[71]=a,e[72]=q):q=e[72];let E;e[73]!==_||e[74]!==M||e[75]!==q?(E=t.jsx(lt,{value:_,onChange:M,placeholder:q,className:"py-1 text-4xl font-bold text-foreground"}),e[73]=_,e[74]=M,e[75]=q,e[76]=E):E=e[76];let Z;e[77]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(Re,{}),e[77]=Z):Z=e[77];let J;e[78]!==a?(J=a("sandbox.postEditor.contentTab"),e[78]=a,e[79]=J):J=e[79];let Q;e[80]!==J?(Q=t.jsxs(je,{value:"content",children:[Z,J]}),e[80]=J,e[81]=Q):Q=e[81];let me;e[82]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(De,{}),e[82]=me):me=e[82];let ee;e[83]!==a?(ee=a("sandbox.postEditor.settingsTab"),e[83]=a,e[84]=ee):ee=e[84];let te;e[85]!==ee?(te=t.jsxs(je,{value:"settings",children:[me,ee]}),e[85]=ee,e[86]=te):te=e[86];let se;e[87]!==Q||e[88]!==te?(se=t.jsxs(_e,{children:[Q,te]}),e[87]=Q,e[88]=te,e[89]=se):se=e[89];let le;e[90]!==n.sections?(le=et(n.sections),e[90]=n.sections,e[91]=le):le=e[91];let ie;e[92]!==y?(ie=W=>y("sections",W),e[92]=y,e[93]=ie):ie=e[93];let oe;e[94]!==i||e[95]!==s||e[96]!==m||e[97]!==d?(oe={orgSlug:s,virtualMcpId:d,branch:i,threadId:m},e[94]=i,e[95]=s,e[96]=m,e[97]=d,e[98]=oe):oe=e[98];let ae;e[99]!==a?(ae=a("sandbox.postEditor.noContentYet"),e[99]=a,e[100]=ae):ae=e[100];let re;e[101]!==r||e[102]!==le||e[103]!==ie||e[104]!==oe||e[105]!==ae?(re=t.jsx(ve,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(tt,{value:le,onChange:ie,meta:r,sandboxRef:oe,emptyMessage:ae})})}),e[101]=r,e[102]=le,e[103]=ie,e[104]=oe,e[105]=ae,e[106]=re):re=e[106];let ne;e[107]!==n||e[108]!==S?(ne=W=>S({...n,...W}),e[107]=n,e[108]=S,e[109]=ne):ne=e[109];let de;e[110]!==l||e[111]!==n||e[112]!==y||e[113]!==C||e[114]!==ne?(de=t.jsx(ve,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(rt,{post:n,decofile:l,support:C,onChange:y,onPatch:ne})})}),e[110]=l,e[111]=n,e[112]=y,e[113]=C,e[114]=ne,e[115]=de):de=e[115];let pe;e[116]!==se||e[117]!==re||e[118]!==de?(pe=t.jsxs(Me,{defaultValue:"content",className:"mt-6 gap-4",children:[se,re,de]}),e[116]=se,e[117]=re,e[118]=de,e[119]=pe):pe=e[119];let ce;e[120]!==E||e[121]!==pe?(ce=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:[E,pe]})}),e[120]=E,e[121]=pe,e[122]=ce):ce=e[122];let fe;return e[123]!==O||e[124]!==ce?(fe=t.jsxs("div",{className:"flex h-full flex-col",children:[O,ce]}),e[123]=O,e[124]=ce,e[125]=fe):fe=e[125],fe}function Ce(V){const e=he.c(18),{id:s,label:d,checked:i,blocked:o,blockedReason:p,className:l,onCheckedChange:r}=V;let c;e[0]!==s||e[1]!==d?(c=t.jsx(xe,{htmlFor:s,children:d}),e[0]=s,e[1]=d,e[2]=c):c=e[2];let a;e[3]!==o||e[4]!==i||e[5]!==l||e[6]!==s||e[7]!==r?(a=t.jsx(ke,{asChild:!0,children:t.jsx("span",{children:t.jsx(Se,{id:s,className:l,checked:i,disabled:o,onCheckedChange:r})})}),e[3]=o,e[4]=i,e[5]=l,e[6]=s,e[7]=r,e[8]=a):a=e[8];let m;e[9]!==o||e[10]!==p?(m=o&&t.jsx(Ne,{side:"bottom",children:p}),e[9]=o,e[10]=p,e[11]=m):m=e[11];let x;e[12]!==a||e[13]!==m?(x=t.jsxs(ye,{children:[a,m]}),e[12]=a,e[13]=m,e[14]=x):x=e[14];let f;return e[15]!==c||e[16]!==x?(f=t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c,x]}),e[15]=c,e[16]=x,e[17]=f):f=e[17],f}function rt(V){const e=he.c(142),{post:s,decofile:d,support:i,onChange:o,onPatch:p}=V,l=be();let r;e[0]!==i?(r=He(i),e[0]=i,e[1]=r):r=e[1];const c=r;let a;e[2]!==i?(a=Oe(i),e[2]=i,e[3]=a):a=e[3];const m=a;let x;e[4]!==s?(x=We(s),e[4]=s,e[5]=x):x=e[5];const f=x,u=m&&f==="scheduled";let C;if(e[6]!==s||e[7]!==l){const h=Te(s);C=h.length===1?l("sandbox.postEditor.missingFieldSingular",{fields:h.join(", ")}):l("sandbox.postEditor.missingFieldPlural",{fields:h.join(", ")}),e[6]=s,e[7]=l,e[8]=C}else C=e[8];const b=C;let g;e[9]!==p||e[10]!==s?(g=h=>p(Je(s,h,new Date)),e[9]=p,e[10]=s,e[11]=g):g=e[11];const j=g;let k;e[12]!==c||e[13]!==m||e[14]!==u||e[15]!==b||e[16]!==o||e[17]!==s||e[18]!==j||e[19]!==f||e[20]!==l?(k=c&&t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[m&&t.jsx(Ce,{id:"post-scheduled",label:l("sandbox.postEditor.schedulingLabel"),checked:u,blocked:Ee(s,"scheduled"),blockedReason:b,onCheckedChange:h=>j(h?"scheduled":"draft")}),u?t.jsx(ge,{schema:{type:"string",format:"date-time",title:l("sandbox.postEditor.scheduledDatetimeLabel"),description:l("sandbox.postEditor.scheduledDatetimeDescription")},value:X(s.scheduledDatetime),onChange:h=>o("scheduledDatetime",h),path:"post-scheduled-datetime",label:l("sandbox.postEditor.scheduledDatetimeLabel")}):t.jsx(Ce,{id:"post-published",label:l("sandbox.postEditor.publishedLabel"),className:"data-[state=checked]:bg-success",checked:f==="published",blocked:Ee(s,"published"),blockedReason:b,onCheckedChange:h=>j(h?"published":"draft")})]}),e[12]=c,e[13]=m,e[14]=u,e[15]=b,e[16]=o,e[17]=s,e[18]=j,e[19]=f,e[20]=l,e[21]=k):k=e[21];let P;e[22]!==l?(P=l("sandbox.postEditor.excerptLabel"),e[22]=l,e[23]=P):P=e[23];let n;e[24]!==P?(n=t.jsx(xe,{htmlFor:"post-excerpt",children:P}),e[24]=P,e[25]=n):n=e[25];let S;e[26]!==s.excerpt?(S=X(s.excerpt),e[26]=s.excerpt,e[27]=S):S=e[27];let U;e[28]!==o?(U=h=>o("excerpt",h.target.value),e[28]=o,e[29]=U):U=e[29];let y;e[30]!==U||e[31]!==S?(y=t.jsx(Le,{id:"post-excerpt",value:S,onChange:U,rows:2}),e[30]=U,e[31]=S,e[32]=y):y=e[32];let Y;e[33]!==y||e[34]!==n?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[33]=y,e[34]=n,e[35]=Y):Y=e[35];let N;e[36]!==l?(N=l("sandbox.postEditor.slugLabel"),e[36]=l,e[37]=N):N=e[37];let v;e[38]!==N?(v=t.jsx(xe,{htmlFor:"post-slug",children:N}),e[38]=N,e[39]=v):v=e[39];let L;e[40]!==s.slug?(L=X(s.slug),e[40]=s.slug,e[41]=L):L=e[41];let z;e[42]!==o?(z=h=>o("slug",h.target.value),e[42]=o,e[43]=z):z=e[43];let T;e[44]!==l?(T=l("sandbox.postEditor.slugPlaceholder"),e[44]=l,e[45]=T):T=e[45];let w;e[46]!==L||e[47]!==z||e[48]!==T?(w=t.jsx(ue,{id:"post-slug",value:L,onChange:z,placeholder:T,className:"h-10"}),e[46]=L,e[47]=z,e[48]=T,e[49]=w):w=e[49];let F;e[50]!==v||e[51]!==w?(F=t.jsxs("div",{className:"space-y-2",children:[v,w]}),e[50]=v,e[51]=w,e[52]=F):F=e[52];let B;e[53]!==l?(B=l("sandbox.postEditor.dateLabel"),e[53]=l,e[54]=B):B=e[54];let I;e[55]!==B?(I={type:"string",format:"date",title:B},e[55]=B,e[56]=I):I=e[56];let G;e[57]!==s.date?(G=X(s.date),e[57]=s.date,e[58]=G):G=e[58];let A;e[59]!==o?(A=h=>o("date",h),e[59]=o,e[60]=A):A=e[60];let R;e[61]!==l?(R=l("sandbox.postEditor.dateLabel"),e[61]=l,e[62]=R):R=e[62];let K;e[63]!==I||e[64]!==G||e[65]!==A||e[66]!==R?(K=t.jsx(ge,{schema:I,value:G,onChange:A,path:"post-date",label:R}),e[63]=I,e[64]=G,e[65]=A,e[66]=R,e[67]=K):K=e[67];let D;e[68]!==F||e[69]!==K?(D=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[F,K]}),e[68]=F,e[69]=K,e[70]=D):D=e[70];let $;e[71]!==l?($=l("sandbox.postEditor.coverImageLabel"),e[71]=l,e[72]=$):$=e[72];let H;e[73]!==$?(H={type:"string",format:"image-uri",title:$},e[73]=$,e[74]=H):H=e[74];const O=s.image;let _;e[75]!==o?(_=h=>o("image",h),e[75]=o,e[76]=_):_=e[76];let M;e[77]!==l?(M=l("sandbox.postEditor.coverImageLabel"),e[77]=l,e[78]=M):M=e[78];let q;e[79]!==s.image||e[80]!==H||e[81]!==_||e[82]!==M?(q=t.jsx(we,{schema:H,value:O,onChange:_,path:"post-image",label:M}),e[79]=s.image,e[80]=H,e[81]=_,e[82]=M,e[83]=q):q=e[83];let E;e[84]!==l?(E=l("sandbox.postEditor.coverAltLabel"),e[84]=l,e[85]=E):E=e[85];let Z;e[86]!==l?(Z=l("sandbox.postEditor.coverAltDescription"),e[86]=l,e[87]=Z):Z=e[87];let J;e[88]!==E||e[89]!==Z?(J={type:"string",title:E,description:Z},e[88]=E,e[89]=Z,e[90]=J):J=e[90];let Q;e[91]!==s.alt?(Q=X(s.alt),e[91]=s.alt,e[92]=Q):Q=e[92];let me;e[93]!==o?(me=h=>o("alt",h),e[93]=o,e[94]=me):me=e[94];let ee;e[95]!==l?(ee=l("sandbox.postEditor.coverAltLabel"),e[95]=l,e[96]=ee):ee=e[96];let te;e[97]!==J||e[98]!==Q||e[99]!==me||e[100]!==ee?(te=t.jsx(ge,{schema:J,value:Q,onChange:me,path:"post-alt",label:ee}),e[97]=J,e[98]=Q,e[99]=me,e[100]=ee,e[101]=te):te=e[101];let se;e[102]!==q||e[103]!==te?(se=t.jsxs("div",{className:"space-y-2",children:[q,te]}),e[102]=q,e[103]=te,e[104]=se):se=e[104];let le;e[105]!==l?(le=l("sandbox.postEditor.authorsLabel"),e[105]=l,e[106]=le):le=e[106];let ie;e[107]!==o?(ie=h=>o("authors",h),e[107]=o,e[108]=ie):ie=e[108];let oe;e[109]!==d||e[110]!==s.authors||e[111]!==le||e[112]!==ie?(oe=t.jsx(Pe,{label:le,decofile:d,kind:"authors",valueField:"email",toRef:dt,selected:s.authors,onChange:ie}),e[109]=d,e[110]=s.authors,e[111]=le,e[112]=ie,e[113]=oe):oe=e[113];let ae;e[114]!==l?(ae=l("sandbox.postEditor.categoriesLabel"),e[114]=l,e[115]=ae):ae=e[115];let re;e[116]!==o?(re=h=>o("categories",h),e[116]=o,e[117]=re):re=e[117];let ne;e[118]!==d||e[119]!==s.categories||e[120]!==ae||e[121]!==re?(ne=t.jsx(Pe,{label:ae,decofile:d,kind:"categories",valueField:"slug",toRef:nt,selected:s.categories,onChange:re}),e[118]=d,e[119]=s.categories,e[120]=ae,e[121]=re,e[122]=ne):ne=e[122];let de;e[123]!==o?(de=h=>o("extraProps",h),e[123]=o,e[124]=de):de=e[124];let pe;e[125]!==s.extraProps||e[126]!==de?(pe=t.jsx(ct,{value:s.extraProps,onChange:de}),e[125]=s.extraProps,e[126]=de,e[127]=pe):pe=e[127];let ce;e[128]!==o?(ce=h=>o("seo",h),e[128]=o,e[129]=ce):ce=e[129];let fe;e[130]!==s.seo||e[131]!==ce?(fe=t.jsx(pt,{value:s.seo,onChange:ce}),e[130]=s.seo,e[131]=ce,e[132]=fe):fe=e[132];let W;return e[133]!==Y||e[134]!==D||e[135]!==se||e[136]!==oe||e[137]!==ne||e[138]!==pe||e[139]!==fe||e[140]!==k?(W=t.jsxs("div",{className:"space-y-5",children:[k,Y,D,se,oe,ne,pe,fe]}),e[133]=Y,e[134]=D,e[135]=se,e[136]=oe,e[137]=ne,e[138]=pe,e[139]=fe,e[140]=k,e[141]=W):W=e[141],W}function nt(V){return{name:X(V.name),slug:X(V.slug)}}function dt(V){return{...V}}function pt(V){const e=he.c(93),{value:s,onChange:d}=V,i=be();let o;e[0]!==s?(o=s&&typeof s=="object"&&!Array.isArray(s)?s:{},e[0]=s,e[1]=o):o=e[1];const p=o;let l;e[2]!==d||e[3]!==p?(l=(E,Z)=>d({...p,[E]:Z}),e[2]=d,e[3]=p,e[4]=l):l=e[4];const r=l;let c;e[5]!==i?(c=i("sandbox.postEditor.seoSectionLabel"),e[5]=i,e[6]=c):c=e[6];let a;e[7]!==c?(a=t.jsx("p",{className:"text-sm font-medium",children:c}),e[7]=c,e[8]=a):a=e[8];let m;e[9]!==i?(m=i("sandbox.postEditor.seoSectionHint"),e[9]=i,e[10]=m):m=e[10];let x;e[11]!==m?(x=t.jsx("p",{className:"text-xs text-muted-foreground",children:m}),e[11]=m,e[12]=x):x=e[12];let f;e[13]!==a||e[14]!==x?(f=t.jsxs("div",{className:"space-y-1",children:[a,x]}),e[13]=a,e[14]=x,e[15]=f):f=e[15];let u;e[16]!==i?(u=i("sandbox.postEditor.seoTitleLabel"),e[16]=i,e[17]=u):u=e[17];let C;e[18]!==u?(C=t.jsx(xe,{htmlFor:"post-seo-title",children:u}),e[18]=u,e[19]=C):C=e[19];let b;e[20]!==p.title?(b=X(p.title),e[20]=p.title,e[21]=b):b=e[21];let g;e[22]!==r?(g=E=>r("title",E.target.value),e[22]=r,e[23]=g):g=e[23];let j;e[24]!==b||e[25]!==g?(j=t.jsx(ue,{id:"post-seo-title",value:b,onChange:g,className:"h-10"}),e[24]=b,e[25]=g,e[26]=j):j=e[26];let k;e[27]!==j||e[28]!==C?(k=t.jsxs("div",{className:"space-y-2",children:[C,j]}),e[27]=j,e[28]=C,e[29]=k):k=e[29];let P;e[30]!==i?(P=i("sandbox.postEditor.seoDescriptionLabel"),e[30]=i,e[31]=P):P=e[31];let n;e[32]!==P?(n=t.jsx(xe,{htmlFor:"post-seo-description",children:P}),e[32]=P,e[33]=n):n=e[33];let S;e[34]!==p.description?(S=X(p.description),e[34]=p.description,e[35]=S):S=e[35];let U;e[36]!==r?(U=E=>r("description",E.target.value),e[36]=r,e[37]=U):U=e[37];let y;e[38]!==S||e[39]!==U?(y=t.jsx(Le,{id:"post-seo-description",value:S,onChange:U,rows:2}),e[38]=S,e[39]=U,e[40]=y):y=e[40];let Y;e[41]!==n||e[42]!==y?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[41]=n,e[42]=y,e[43]=Y):Y=e[43];let N;e[44]!==i?(N=i("sandbox.postEditor.seoImageLabel"),e[44]=i,e[45]=N):N=e[45];let v;e[46]!==N?(v={type:"string",format:"image-uri",title:N},e[46]=N,e[47]=v):v=e[47];const L=p.image;let z;e[48]!==r?(z=E=>r("image",E),e[48]=r,e[49]=z):z=e[49];let T;e[50]!==i?(T=i("sandbox.postEditor.seoImageLabel"),e[50]=i,e[51]=T):T=e[51];let w;e[52]!==p.image||e[53]!==v||e[54]!==z||e[55]!==T?(w=t.jsx(we,{schema:v,value:L,onChange:z,path:"post-seo-image",label:T}),e[52]=p.image,e[53]=v,e[54]=z,e[55]=T,e[56]=w):w=e[56];let F;e[57]!==i?(F=i("sandbox.postEditor.seoCanonicalLabel"),e[57]=i,e[58]=F):F=e[58];let B;e[59]!==F?(B=t.jsx(xe,{htmlFor:"post-seo-canonical",children:F}),e[59]=F,e[60]=B):B=e[60];let I;e[61]!==p.canonical?(I=X(p.canonical),e[61]=p.canonical,e[62]=I):I=e[62];let G;e[63]!==r?(G=E=>r("canonical",E.target.value),e[63]=r,e[64]=G):G=e[64];let A;e[65]!==i?(A=i("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=i,e[66]=A):A=e[66];let R;e[67]!==I||e[68]!==G||e[69]!==A?(R=t.jsx(ue,{id:"post-seo-canonical",value:I,onChange:G,placeholder:A,className:"h-10"}),e[67]=I,e[68]=G,e[69]=A,e[70]=R):R=e[70];let K;e[71]!==B||e[72]!==R?(K=t.jsxs("div",{className:"space-y-2",children:[B,R]}),e[71]=B,e[72]=R,e[73]=K):K=e[73];let D;e[74]!==i?(D=i("sandbox.postEditor.seoNoIndexingLabel"),e[74]=i,e[75]=D):D=e[75];let $;e[76]!==D?($=t.jsx(xe,{htmlFor:"post-seo-no-indexing",children:D}),e[76]=D,e[77]=$):$=e[77];const H=p.noIndexing===!0;let O;e[78]!==r?(O=E=>r("noIndexing",E),e[78]=r,e[79]=O):O=e[79];let _;e[80]!==H||e[81]!==O?(_=t.jsx(Se,{id:"post-seo-no-indexing",checked:H,onCheckedChange:O}),e[80]=H,e[81]=O,e[82]=_):_=e[82];let M;e[83]!==$||e[84]!==_?(M=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[$,_]}),e[83]=$,e[84]=_,e[85]=M):M=e[85];let q;return e[86]!==k||e[87]!==Y||e[88]!==w||e[89]!==K||e[90]!==M||e[91]!==f?(q=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[f,k,Y,w,K,M]}),e[86]=k,e[87]=Y,e[88]=w,e[89]=K,e[90]=M,e[91]=f,e[92]=q):q=e[92],q}function ct(V){const e=he.c(24),{value:s,onChange:d}=V,i=be();let o,p,l,r;if(e[0]!==d||e[1]!==i||e[2]!==s){o=at(s);const f=(C,b)=>d(o.map((g,j)=>j===C?{...g,...b}:g));p="space-y-2";let u;e[7]!==i?(u=i("sandbox.postEditor.extraPropsLabel"),e[7]=i,e[8]=u):u=e[8],e[9]!==u?(l=t.jsx(xe,{children:u}),e[9]=u,e[10]=l):l=e[10],r=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((C,b)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(ue,{value:C.key,onChange:g=>f(b,{key:g.target.value}),placeholder:i("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(ue,{value:C.value,onChange:g=>f(b,{value:g.target.value}),placeholder:i("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(it,{label:i("sandbox.postEditor.removePropLabel"),onClick:()=>d(o.filter((g,j)=>j!==b))})]},b))}),e[0]=d,e[1]=i,e[2]=s,e[3]=o,e[4]=p,e[5]=l,e[6]=r}else o=e[3],p=e[4],l=e[5],r=e[6];let c;e[11]!==i?(c=i("sandbox.postEditor.addPropLabel"),e[11]=i,e[12]=c):c=e[12];let a;e[13]!==o||e[14]!==d?(a=()=>d([...o,{key:"",value:""}]),e[13]=o,e[14]=d,e[15]=a):a=e[15];let m;e[16]!==c||e[17]!==a?(m=t.jsx(ot,{label:c,onClick:a}),e[16]=c,e[17]=a,e[18]=m):m=e[18];let x;return e[19]!==p||e[20]!==l||e[21]!==r||e[22]!==m?(x=t.jsxs("div",{className:p,children:[l,r,m]}),e[19]=p,e[20]=l,e[21]=r,e[22]=m,e[23]=x):x=e[23],x}function Pe(V){const e=he.c(24),{label:s,decofile:d,kind:i,valueField:o,toRef:p,selected:l,onChange:r}=V,c=be();let a;e[0]!==d||e[1]!==i||e[2]!==l||e[3]!==p||e[4]!==o?(a=Xe({records:Ze(d,i),selected:l,valueField:o,toRef:p}),e[0]=d,e[1]=i,e[2]=l,e[3]=p,e[4]=o,e[5]=a):a=e[5];const{options:m,selectedValues:x,refsForValues:f}=a;let u;e[6]!==i||e[7]!==c?(u=c(i==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=i,e[7]=c,e[8]=u):u=e[8];const C=u;let b;e[9]!==i||e[10]!==c?(b=c(i==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=i,e[10]=c,e[11]=b):b=e[11];const g=b;let j;e[12]!==s?(j=t.jsx(xe,{children:s}),e[12]=s,e[13]=j):j=e[13];let k;e[14]!==C||e[15]!==r||e[16]!==m||e[17]!==f||e[18]!==g||e[19]!==x?(k=m.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:C}):t.jsx($e,{options:m,defaultValue:x,onValueChange:n=>r(f(n)),placeholder:g,maxCount:4}),e[14]=C,e[15]=r,e[16]=m,e[17]=f,e[18]=g,e[19]=x,e[20]=k):k=e[20];let P;return e[21]!==j||e[22]!==k?(P=t.jsxs("div",{className:"space-y-2",children:[j,k]}),e[21]=j,e[22]=k,e[23]=P):P=e[23],P}export{ii as PostEditor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,n as h,j as a}from"./index-
|
|
1
|
+
import{c as f,n as h,j as a}from"./index-DKJfVpPq.js";import{j as y}from"./agent-icon-CQX6ATic.js";import{s as v}from"./Plus-Gk1CScCj.js";import{s as j}from"./Trash01-Cuhq2ZFZ.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,P as be,dd as Te,a as Ce,ax as Ee,az as $e,x as Be,q as V,t as Ae,dc as w,da as Le,db as ze}from"./index-Db07zrZ8.js";import{A as qe}from"./avatar-DO6HMxte.js";import{S as ke}from"./switch-DEg_Wie-.js";import{c as Pe,S as De,d as ye,a as Ve}from"./select-vfh7qXou.js";import{a as _e,T as Ge}from"./toggle-group-C2LyWWdH.js";import{I as Re}from"./input-If4F9A5L.js";import{i as Ue}from"./Monitor01-SjJFS0oc.js";import{n as Fe,a as Oe}from"./Sun-BrMehd0S.js";import{i as Ke}from"./Play-Cs9bKOQj.js";import{u as He}from"./use-debounced-autosave-D_r_55rr.js";import{p as Je,q as Me}from"./question-004-sINsf4GQ.js";import"./User01-2CbqYEEJ.js";import"./Check-ClFUKcbJ.js";import"./ChevronDown-B_mzV1FG.js";import"./ChevronUp-BWdt5HFD.js";const we=[{value:"en",label:"English"},{value:"pt-BR",label:"Português (Brasil)"}];function Qe(){const e=Se.c(36),t=Ne(),{data:l,isPending:i}=Ce.useSession(),c=l?.user,r=c?.image,a=c?.name??"";let j;e[0]!==a?(j={values:{name:a}},e[0]=a,e[1]=j):j=e[1];const o=Ee(j);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 h=o.getValues(),P=o.control._defaultValues;o.reset(h,{keepValues:!0});try{await Ce.updateUser({name:h.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:v}=He(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(qe,{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]!==v||e[16]!==y||e[17]!==t?(u=k=>{const{field:h}=k;return s.jsx(Re,{id:"display-name",...h,onChange:P=>{h.onChange(P),y()},onBlur:()=>{h.onBlur(),v()},onKeyDown:P=>{P.key==="Enter"&&v()},placeholder:t("settings.profile.displayNamePlaceholder"),className:"w-[280px]"})},e[15]=v,e[16]=y,e[17]=t,e[18]=u):u=e[18];let _;e[19]!==o.control||e[20]!==u?(_=s.jsx($e,{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 x;e[29]!==m||e[30]!==g?(x=s.jsx(w,{title:m,action:g}),e[29]=m,e[30]=g,e[31]=x):x=e[31];let A;return e[32]!==d||e[33]!==x||e[34]!==S?(A=s.jsx(Le,{children:s.jsxs(ze,{children:[S,d,x]})}),e[32]=d,e[33]=x,e[34]=S,e[35]=A):A=e[35],A}function We(){const e=Se.c(159),t=Ne(),[l,i]=Be();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 j;e[5]!==t?(j=t("settings.preferences.theme"),e[5]=t,e[6]=j):j=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 v;e[11]!==t?(v=t("settings.preferences.themeLight"),e[11]=t,e[12]=v):v=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Fe,{size:14}),e[13]=b):b=e[13];let N;e[14]!==v?(N=s.jsx(_e,{value:"light","aria-label":v,children:b}),e[14]=v,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(Oe,{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]!==j||e[34]!==o?(C=s.jsx(w,{title:j,description:o,action:m}),e[32]=m,e[33]=j,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 x;e[38]!==t?(x=t("settings.preferences.languageDescription"),e[38]=t,e[39]=x):x=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 h;e[44]!==k?(h=s.jsx(Ve,{className:"w-44 h-7 text-xs",children:s.jsx("span",{children:k})}),e[44]=k,e[45]=h):h=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]!==h?(z=s.jsxs(De,{value:l.language,onValueChange:A,children:[h,P]}),e[47]=l.language,e[48]=A,e[49]=h,e[50]=z):z=e[50];let I;e[51]!==g||e[52]!==x||e[53]!==z?(I=s.jsx(w,{title:g,description:x,action:z}),e[51]=g,e[52]=x,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(Ze)},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 je;e[79]===Symbol.for("react.memo_cache_sentinel")?(je=s.jsx(Ke,{size:11}),e[79]=je):je=e[79];let O;e[80]!==F?(O=s.jsx("button",{type:"button","aria-label":F,onClick:Xe,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:je}),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 H;e[84]!==l.enableSounds||e[85]!==K?(H=s.jsx(ke,{checked:l.enableSounds,onCheckedChange:K}),e[84]=l.enableSounds,e[85]=K,e[86]=H):H=e[86];let J;e[87]!==O||e[88]!==H?(J=s.jsxs("div",{className:"flex items-center gap-2",children:[O,H]}),e[87]=O,e[88]=H,e[89]=J):J=e[89];let M;e[90]!==G||e[91]!==R||e[92]!==U||e[93]!==J?(M=s.jsx(w,{title:G,description:R,onClick:U,action:J}),e[90]=G,e[91]=R,e[92]=U,e[93]=J,e[94]=M):M=e[94];let Q;e[95]!==t?(Q=t("settings.preferences.toolApproval"),e[95]=t,e[96]=Q):Q=e[96];let W;e[97]!==t?(W=t("settings.preferences.toolApprovalDescription"),e[97]=t,e[98]=W):W=e[98];const Ie=l.toolApprovalLevel;let X;e[99]!==i?(X=n=>{V("preferences_tool_approval_changed",{to_value:n}),i(D=>({...D,toolApprovalLevel:n}))},e[99]=i,e[100]=X):X=e[100];let Y;e[101]!==l.toolApprovalLevel||e[102]!==t?(Y={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]=Y):Y=e[103];let Z;e[104]!==Y?(Z=s.jsx(Ve,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:Y})}),e[104]=Y,e[105]=Z):Z=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]!==X||e[143]!==Z||e[144]!==me?(ge=s.jsxs(De,{value:Ie,onValueChange:X,children:[Z,me]}),e[141]=l.toolApprovalLevel,e[142]=X,e[143]=Z,e[144]=me,e[145]=ge):ge=e[145];let xe;e[146]!==Q||e[147]!==W||e[148]!==ge?(xe=s.jsx(w,{title:Q,description:W,action:ge}),e[146]=Q,e[147]=W,e[148]=ge,e[149]=xe):xe=e[149];let he;e[150]!==C||e[151]!==I||e[152]!==q||e[153]!==M||e[154]!==xe?(he=s.jsxs(ze,{children:[C,I,q,M,xe]}),e[150]=C,e[151]=I,e[152]=q,e[153]=M,e[154]=xe,e[155]=he):he=e[155];let ve;return e[156]!==a||e[157]!==he?(ve=s.jsx(Le,{title:a,children:he}),e[156]=a,e[157]=he,e[158]=ve):ve=e[158],ve}function Xe(){V("preferences_sounds_previewed"),Je(Me.dataUri).catch(Ye)}function Ye(){}function Ze(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(Qe,{}),r=s.jsx(We,{}),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(Te,{children:[i,c,r]})})})}),e[6]=i,e[7]=a):a=e[7],a}function jt(){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{jt as default};
|
|
1
|
+
import{c as Se,b as Ne,j as s,P as be,dd as Te,a as Ce,ax as Ee,az as $e,x as Be,q as V,t as Ae,dc as w,da as Le,db as ze}from"./index-DKJfVpPq.js";import{A as qe}from"./avatar-DeRnsiWT.js";import{S as ke}from"./switch-bc2Ofgul.js";import{c as Pe,S as De,d as ye,a as Ve}from"./select-uEKFD6sX.js";import{a as _e,T as Ge}from"./toggle-group-B6dqB33G.js";import{I as Re}from"./input-Dh9y5amp.js";import{i as Ue}from"./Monitor01-CSYulPKA.js";import{n as Fe,a as Oe}from"./Sun-_JugMyUC.js";import{i as Ke}from"./Play-GU4NI0HY.js";import{u as He}from"./use-debounced-autosave-BXMrJoof.js";import{p as Je,q as Me}from"./question-004-sINsf4GQ.js";import"./User01-D6aTAVm9.js";import"./Check-DSXkRb-J.js";import"./ChevronDown-BX6glIQa.js";import"./ChevronUp-nrG459IH.js";const we=[{value:"en",label:"English"},{value:"pt-BR",label:"Português (Brasil)"}];function Qe(){const e=Se.c(36),t=Ne(),{data:l,isPending:i}=Ce.useSession(),c=l?.user,r=c?.image,a=c?.name??"";let j;e[0]!==a?(j={values:{name:a}},e[0]=a,e[1]=j):j=e[1];const o=Ee(j);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 h=o.getValues(),P=o.control._defaultValues;o.reset(h,{keepValues:!0});try{await Ce.updateUser({name:h.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:v}=He(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(qe,{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]!==v||e[16]!==y||e[17]!==t?(u=k=>{const{field:h}=k;return s.jsx(Re,{id:"display-name",...h,onChange:P=>{h.onChange(P),y()},onBlur:()=>{h.onBlur(),v()},onKeyDown:P=>{P.key==="Enter"&&v()},placeholder:t("settings.profile.displayNamePlaceholder"),className:"w-[280px]"})},e[15]=v,e[16]=y,e[17]=t,e[18]=u):u=e[18];let _;e[19]!==o.control||e[20]!==u?(_=s.jsx($e,{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 x;e[29]!==m||e[30]!==g?(x=s.jsx(w,{title:m,action:g}),e[29]=m,e[30]=g,e[31]=x):x=e[31];let A;return e[32]!==d||e[33]!==x||e[34]!==S?(A=s.jsx(Le,{children:s.jsxs(ze,{children:[S,d,x]})}),e[32]=d,e[33]=x,e[34]=S,e[35]=A):A=e[35],A}function We(){const e=Se.c(159),t=Ne(),[l,i]=Be();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 j;e[5]!==t?(j=t("settings.preferences.theme"),e[5]=t,e[6]=j):j=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 v;e[11]!==t?(v=t("settings.preferences.themeLight"),e[11]=t,e[12]=v):v=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Fe,{size:14}),e[13]=b):b=e[13];let N;e[14]!==v?(N=s.jsx(_e,{value:"light","aria-label":v,children:b}),e[14]=v,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(Oe,{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]!==j||e[34]!==o?(C=s.jsx(w,{title:j,description:o,action:m}),e[32]=m,e[33]=j,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 x;e[38]!==t?(x=t("settings.preferences.languageDescription"),e[38]=t,e[39]=x):x=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 h;e[44]!==k?(h=s.jsx(Ve,{className:"w-44 h-7 text-xs",children:s.jsx("span",{children:k})}),e[44]=k,e[45]=h):h=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]!==h?(z=s.jsxs(De,{value:l.language,onValueChange:A,children:[h,P]}),e[47]=l.language,e[48]=A,e[49]=h,e[50]=z):z=e[50];let I;e[51]!==g||e[52]!==x||e[53]!==z?(I=s.jsx(w,{title:g,description:x,action:z}),e[51]=g,e[52]=x,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(Ze)},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 je;e[79]===Symbol.for("react.memo_cache_sentinel")?(je=s.jsx(Ke,{size:11}),e[79]=je):je=e[79];let O;e[80]!==F?(O=s.jsx("button",{type:"button","aria-label":F,onClick:Xe,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:je}),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 H;e[84]!==l.enableSounds||e[85]!==K?(H=s.jsx(ke,{checked:l.enableSounds,onCheckedChange:K}),e[84]=l.enableSounds,e[85]=K,e[86]=H):H=e[86];let J;e[87]!==O||e[88]!==H?(J=s.jsxs("div",{className:"flex items-center gap-2",children:[O,H]}),e[87]=O,e[88]=H,e[89]=J):J=e[89];let M;e[90]!==G||e[91]!==R||e[92]!==U||e[93]!==J?(M=s.jsx(w,{title:G,description:R,onClick:U,action:J}),e[90]=G,e[91]=R,e[92]=U,e[93]=J,e[94]=M):M=e[94];let Q;e[95]!==t?(Q=t("settings.preferences.toolApproval"),e[95]=t,e[96]=Q):Q=e[96];let W;e[97]!==t?(W=t("settings.preferences.toolApprovalDescription"),e[97]=t,e[98]=W):W=e[98];const Ie=l.toolApprovalLevel;let X;e[99]!==i?(X=n=>{V("preferences_tool_approval_changed",{to_value:n}),i(D=>({...D,toolApprovalLevel:n}))},e[99]=i,e[100]=X):X=e[100];let Y;e[101]!==l.toolApprovalLevel||e[102]!==t?(Y={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]=Y):Y=e[103];let Z;e[104]!==Y?(Z=s.jsx(Ve,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:Y})}),e[104]=Y,e[105]=Z):Z=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]!==X||e[143]!==Z||e[144]!==me?(ge=s.jsxs(De,{value:Ie,onValueChange:X,children:[Z,me]}),e[141]=l.toolApprovalLevel,e[142]=X,e[143]=Z,e[144]=me,e[145]=ge):ge=e[145];let xe;e[146]!==Q||e[147]!==W||e[148]!==ge?(xe=s.jsx(w,{title:Q,description:W,action:ge}),e[146]=Q,e[147]=W,e[148]=ge,e[149]=xe):xe=e[149];let he;e[150]!==C||e[151]!==I||e[152]!==q||e[153]!==M||e[154]!==xe?(he=s.jsxs(ze,{children:[C,I,q,M,xe]}),e[150]=C,e[151]=I,e[152]=q,e[153]=M,e[154]=xe,e[155]=he):he=e[155];let ve;return e[156]!==a||e[157]!==he?(ve=s.jsx(Le,{title:a,children:he}),e[156]=a,e[157]=he,e[158]=ve):ve=e[158],ve}function Xe(){V("preferences_sounds_previewed"),Je(Me.dataUri).catch(Ye)}function Ye(){}function Ze(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(Qe,{}),r=s.jsx(We,{}),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(Te,{children:[i,c,r]})})})}),e[6]=i,e[7]=a):a=e[7],a}function jt(){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{jt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as U,b as B,j as s,r as L,E as X,H as K,a as Z,B as ee,k as te}from"./index-Db07zrZ8.js";import{a as oe,g as q,s as H}from"./automation-runs-C_ZrMq7x.js";import{u as z}from"./use-mcp-client-DJsoXyx-.js";import{W as ie,S as re,p as se}from"./constants-z9Iog-sb.js";import{b as ne,c as le}from"./use-mcp-tools-CFPgyeF_.js";import{u as me}from"./index-De8tINWV.js";import{c as ce}from"./monaco-editor-B_ZG2XgX.js";import{g as ae,M as pe,a as Y}from"./types-BzTUSs7-.js";import{a as de,u as fe}from"./chat-context-CIMo666p.js";import{u as ue}from"./shell-layout-X-4UXttm.js";import{O as ge}from"./tab-id-DcJXhcUP.js";import{c as xe,e as he,s as Ce,f as je,P as Se,g as Ie,h as be}from"./self-tool-result-hSt7TNK0.js";import{b as G,a as W,d as J,e as Q}from"./dialog-CjH1Iu8Q.js";import{I as Ne}from"./integration-icon-MYMXKqz4.js";import{u as De}from"./use-is-desktop-app-BNujXJc_.js";import"./agent-icon-BgDuIGKP.js";import"./AlertCircle-B_MGANKn.js";import"./Tool01-BTOYbTgX.js";import"./ArrowUp-v5vRAaKF.js";import"./ArrowLeft-DcwGa0Jf.js";import"./Tool02-CFECF_DG.js";import"./XCircle-gR7wbODj.js";import"./TrendUp01-BeYewvJo.js";import"./ZapSquare-CjpmGLR8.js";import"./Users03-CL5iyeOb.js";import"./UserSquare-B1uAjco3.js";import"./CheckCircle-Dz-gTt1j.js";import"./Check-ClFUKcbJ.js";import"./ChevronDown-B_mzV1FG.js";import"./ChevronRight-Dub9Vgi6.js";import"./ChevronSelectorVertical-CrrNO-r3.js";import"./ChevronUp-BWdt5HFD.js";import"./DotsVertical-D4Pzyb4r.js";import"./Stars02-Cmeu17A1.js";import"./Copy01-B3D8PVwv.js";import"./CreditCard01-DxXtEpJn.js";import"./Download01-ilA7cP4f.js";import"./Settings02-Cis0onGS.js";import"./Eye-XFnZ2CXh.js";import"./FilterLines-CwwshenK.js";import"./Share07-C2aUwUMP.js";import"./Globe01-BuPkaBKs.js";import"./Globe04-CdtnUYpC.js";import"./SwitchHorizontal01-BBbtmcG5.js";import"./HardDrive-CNoZO34E.js";import"./Key01-CrbmL0TU.js";import"./LinkExternal01-BD4ZzbN-.js";import"./LockUnlocked01-B2xjXV-0.js";import"./LogOut01-D4i4Vp-V.js";import"./Monitor01-SjJFS0oc.js";import"./Sun-BrMehd0S.js";import"./Palette-CeXRqZzf.js";import"./Play-Cs9bKOQj.js";import"./Plus-CpF6H29a.js";import"./SearchLg-DzeVpxiS.js";import"./SearchMd-C1UxMmtp.js";import"./Shield01-iGm-BwOf.js";import"./Stars01-CAFV4V0C.js";import"./Trash01-C791hFlg.js";import"./Upload01-7XTjVROx.js";import"./User01-2CbqYEEJ.js";import"./Users01-C7ZXEJya.js";import"./XClose-DZWGF6Pn.js";import"./Zap-B41nS8nd.js";import"./useInfiniteQuery-ByOHg0jE.js";import"./use-infinite-scroll-Bhh9Iw6C.js";import"./use-connection-041rWBWg.js";import"./use-virtual-mcp-DW6EkkI7.js";import"./table-DE4pDdSr.js";import"./empty-state-BkJfb2oG.js";import"./use-members-w23IDC0q.js";import"./use-org-auth-client-CvWEe5k0.js";import"./use-clock-tick-DjTwIlXj.js";import"./select-vfh7qXou.js";import"./use-automations-D9dVViPf.js";import"./useSuspenseInfiniteQuery-BDG9PMEz.js";import"./avatar-DO6HMxte.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DY08vgeu.js";import"./hooks-B1fKNaBu.js";import"./decopilot-sse-pool-7Kw0TgHd.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-navigate-to-agent-fev9H89Q.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./session-runtime-wVXsCwcJ.js";import"./chart-CXvQ6zBw.js";import"./index-1-pSwcms.js";import"./form-CvKOyXRc.js";import"./label-CTeLtpPj.js";import"./input-If4F9A5L.js";import"./spinner-DbGrtl8M.js";import"./file-type-icon-D--9UgoQ.js";import"./auth-BtXDjKRH.js";import"./drawer-i03KFkUQ.js";import"./collection-search-tNk-MBZ7.js";import"./tabs-Ptlrb1uK.js";import"./toggle-group-C2LyWWdH.js";import"./use-commerce-diagnostic-CBCLdaqX.js";import"./popover-DIDrjmQt.js";import"./toolbar-CD7Vw6Qd.js";import"./github-repo-picker-D2ybnxWv.js";import"./use-debounced-value-BUAp_QeG.js";import"./authenticate-and-persist-oauth-DYaz8cjS.js";import"./mcp-oauth-ulTTdNug.js";import"./extract-connection-data-D8IGtoKo.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-Cekp1Uio.js";import"./use-registry-connections-BHMVR_be.js";import"./use-organization-settings-Bi4nkC1u.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-BCyvvzD_.js";import"./connection-form-helpers-CkVNdjEA.js";import"./collection-tabs-Xkrn4Kxx.js";import"./badge-CmWuiLbd.js";import"./use-ai-providers-C0U6QKSW.js";import"./command-Zmu6RKmZ.js";import"./index-CMz3pE97.js";import"./alert-dialog-DD6XIS1V.js";import"./select-model-1RRw_Z45.js";import"./checkbox-BnzMP4sT.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DFxrC3IG.js";import"./dropdown-menu-CPXUeuH8.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CriwNE0R.js";import"./use-decopilot-events-CKuyLkDb.js";import"./use-file-configs-CBqnVr3r.js";import"./pt-BR-CLy76QW2.js";import"./switch-DEg_Wie-.js";import"./use-debounced-autosave-D_r_55rr.js";import"./search-input-CvXcVc_q.js";import"./index-BvD4gkoz.js";import"./use-secrets-D03kV4QO.js";import"./AreaChart-BIE92ZB5.js";import"./use-task-board-items-DKQ2MtMh.js";import"./sprints-DQLQNrmK.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BX4CSIKi.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row--mpKmU3v.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-C8dK15gG.js";import"./required-auth-layout-LxDBuNfG.js";import"./use-org-sso-B5dg4Ub5.js";import"./track-B3J1Xm3T.js";const ve="studio://navigate",Me=new Set(["vtex","ga4","gsc","github"]);function _e(N){const[e]=N;if(N.length!==1||e?.type!=="resource_link"||!e.uri.startsWith(ve))return{isNavigate:!1};let o=null,i=null;try{const r=new URL(e.uri).searchParams;o=r.get("main"),i=r.get("field")}catch{}return{isNavigate:!0,tab:o&&ge.has(o)?o:null,field:i&&Me.has(i)?i:null}}function $(N){const e=U.c(12),{onClose:o,children:i}=N,r=B();let t;e[0]!==o?(t=g=>!g&&o(),e[0]=o,e[1]=t):t=e[1];let c;e[2]!==r?(c=r("commerceOnboarding.connectSourceDialog.title"),e[2]=r,e[3]=c):c=e[3];let l;e[4]!==c?(l=s.jsx(W,{children:s.jsx(G,{children:c})}),e[4]=c,e[5]=l):l=e[5];let p;e[6]!==i||e[7]!==l?(p=s.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[l,i]}),e[6]=i,e[7]=l,e[8]=p):p=e[8];let n;return e[9]!==t||e[10]!==p?(n=s.jsx(Q,{open:!0,onOpenChange:t,children:p}),e[9]=t,e[10]=p,e[11]=n):n=e[11],n}function F(N){const e=U.c(3),{label:o}=N;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(te,{size:16,className:"animate-spin"}),e[0]=i):i=e[0];let r;return e[1]!==o?(r=s.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[i,s.jsx("span",{children:o})]}),e[1]=o,e[2]=r):r=e[2],r}function Oe(N){const e=U.c(19),{field:o,onClose:i}=N,r=B();let t;e[0]!==i||e[1]!==r?(t=()=>s.jsx($,{onClose:i,children:s.jsx("p",{className:"text-sm text-muted-foreground",children:r("routes.commerceOnboarding.connectModal.loadError")})}),e[0]=i,e[1]=r,e[2]=t):t=e[2];let c;e[3]!==r?(c=r("commerceOnboarding.connectSourceDialog.loading"),e[3]=r,e[4]=c):c=e[4];let l;e[5]!==c?(l=s.jsx(F,{label:c}),e[5]=c,e[6]=l):l=e[6];let p;e[7]!==i||e[8]!==l?(p=s.jsx($,{onClose:i,children:l}),e[7]=i,e[8]=l,e[9]=p):p=e[9];let n;e[10]!==o||e[11]!==i?(n=s.jsx(ye,{field:o,onClose:i}),e[10]=o,e[11]=i,e[12]=n):n=e[12];let g;e[13]!==p||e[14]!==n?(g=s.jsx(L.Suspense,{fallback:p,children:n}),e[13]=p,e[14]=n,e[15]=g):g=e[15];let x;return e[16]!==t||e[17]!==g?(x=s.jsx(X,{fallback:t,children:g}),e[16]=t,e[17]=g,e[18]=x):x=e[18],x}function ye(N){const e=U.c(75),{field:o,onClose:i}=N,r=B(),{org:t}=K();let c;e[0]!==t.id?(c=ie.COMMERCE_DISCOVERY(t.id),e[0]=t.id,e[1]=c):c=e[1];const l=c;let p;e[2]!==t.id||e[3]!==t.slug?(p={connectionId:re,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=p):p=e[4];const n=z(p),{data:g}=Z.useSession(),x=g?.user?.id??"";let C;e[5]!==l||e[6]!==t||e[7]!==n?(C={selfClient:n,org:t,cdConnectionId:l},e[5]=l,e[6]=t,e[7]=n,e[8]=C):C=e[8];const m=xe(C);let u;e[9]!==l||e[10]!==t||e[11]!==n||e[12]!==m?(u={selfClient:n,org:t,cdConnectionId:l,siteUrl:m},e[9]=l,e[10]=t,e[11]=n,e[12]=m,e[13]=u):u=e[13];const{cards:S}=he(u);let h;e[14]!==m?(h=Ce(m)??void 0,e[14]=m,e[15]=h):h=e[15];let D;e[16]!==l||e[17]!==t||e[18]!==n||e[19]!==m||e[20]!==h||e[21]!==x?(D={selfClient:n,org:t,userId:x,cdConnectionId:l,domain:h,siteUrl:m},e[16]=l,e[17]=t,e[18]=n,e[19]=m,e[20]=h,e[21]=x,e[22]=D):D=e[22];const{connect:I,connectingFieldKey:b,error:_}=je(D);let E;if(e[23]!==S||e[24]!==o){let d;e[26]!==o?(d=f=>f.fieldKey===o,e[26]=o,e[27]=d):d=e[27],E=S.find(d),e[23]=S,e[24]=o,e[25]=E}else E=e[25];const a=E;if(!a){let d;e[28]!==r?(d=r("routes.commerceOnboarding.connectModal.loadError"),e[28]=r,e[29]=d):d=e[29];let f;e[30]!==d?(f=s.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[30]=d,e[31]=f):f=e[31];let j;return e[32]!==i||e[33]!==f?(j=s.jsx($,{onClose:i,children:f}),e[32]=i,e[33]=f,e[34]=j):j=e[34],j}const O=Se[a.bindingType];if(O&&a.boundVia!=="oauth"){let d;e[35]!==i?(d=v=>!v&&i(),e[35]=i,e[36]=d):d=e[36];let f;e[37]!==a||e[38]!==I?(f=a.satisfied?void 0:()=>{I(a)},e[37]=a,e[38]=I,e[39]=f):f=e[39];let j;return e[40]!==a||e[41]!==t||e[42]!==O||e[43]!==n||e[44]!==m||e[45]!==d||e[46]!==f?(j=s.jsx(be,{card:a,provider:O,org:t,selfClient:n,siteUrl:m,open:!0,onOpenChange:d,onOAuthInstead:f}),e[40]=a,e[41]=t,e[42]=O,e[43]=n,e[44]=m,e[45]=d,e[46]=f,e[47]=j):j=e[47],j}if(a.satisfied&&a.linkedConnectionId){let d;e[48]!==r?(d=r("commerceOnboarding.connectSourceDialog.loading"),e[48]=r,e[49]=d):d=e[49];let f;e[50]!==d?(f=s.jsx(F,{label:d}),e[50]=d,e[51]=f):f=e[51];let j;e[52]!==i||e[53]!==f?(j=s.jsx($,{onClose:i,children:f}),e[52]=i,e[53]=f,e[54]=j):j=e[54];let v;e[55]!==i?(v=k=>!k&&i(),e[55]=i,e[56]=v):v=e[56];let M;e[57]!==a||e[58]!==t||e[59]!==n||e[60]!==m||e[61]!==v?(M=s.jsx(Ie,{card:a,org:t,selfClient:n,connectionId:a.linkedConnectionId,contextSiteUrl:m,open:!0,onOpenChange:v}),e[57]=a,e[58]=t,e[59]=n,e[60]=m,e[61]=v,e[62]=M):M=e[62];let y;return e[63]!==j||e[64]!==M?(y=s.jsx(L.Suspense,{fallback:j,children:M}),e[63]=j,e[64]=M,e[65]=y):y=e[65],y}const R=b===a.fieldKey;let P;e[66]!==a||e[67]!==I?(P=()=>{I(a)},e[66]=a,e[67]=I,e[68]=P):P=e[68];let T;return e[69]!==a||e[70]!==_||e[71]!==i||e[72]!==R||e[73]!==P?(T=s.jsx(Ee,{card:a,connecting:R,error:_,onConnect:P,onClose:i}),e[69]=a,e[70]=_,e[71]=i,e[72]=R,e[73]=P,e[74]=T):T=e[74],T}function Ee(N){const e=U.c(22),{card:o,connecting:i,error:r,onConnect:t,onClose:c}=N,l=B(),[p,n]=L.useState(!1);p||(n(!0),queueMicrotask(t));let g;e[0]!==i||e[1]!==c?(g=D=>{!D&&i||D||c()},e[0]=i,e[1]=c,e[2]=g):g=e[2];let x;e[3]!==o.icon||e[4]!==o.title?(x=s.jsx(Ne,{icon:o.icon,name:o.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=o.icon,e[4]=o.title,e[5]=x):x=e[5];let C;e[6]!==o.title?(C=s.jsx(G,{className:"min-w-0 flex-1",children:o.title}),e[6]=o.title,e[7]=C):C=e[7];let m;e[8]!==x||e[9]!==C?(m=s.jsxs(W,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[x,C]}),e[8]=x,e[9]=C,e[10]=m):m=e[10];let u;e[11]!==o.title||e[12]!==r||e[13]!==t||e[14]!==l?(u=r?s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx("p",{role:"alert",className:"text-sm text-destructive",children:r}),s.jsx(ee,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:l("routes.commerceOnboarding.companionSection.retry")})]}):s.jsx(F,{label:l("commerceOnboarding.connectSourceDialog.connecting",{title:o.title})}),e[11]=o.title,e[12]=r,e[13]=t,e[14]=l,e[15]=u):u=e[15];let S;e[16]!==m||e[17]!==u?(S=s.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[m,u]}),e[16]=m,e[17]=u,e[18]=S):S=e[18];let h;return e[19]!==g||e[20]!==S?(h=s.jsx(Q,{open:!0,onOpenChange:g,children:S}),e[19]=g,e[20]=S,e[21]=h):h=e[21],h}const Pe={};function Te(N){const e=U.c(43),{client:o,resourceURI:i,tool:r,connectionId:t,orgId:c,args:l}=N,{sendMessage:p}=de(),{setAppContext:n,clearAppContext:g}=fe(),{openSidePanel:x,openTab:C}=ue(),m=`${t}:${r.name}`,[u,S]=L.useState(null);let h;e[0]!==C?(h=A=>A==="inline"?(C("0"),"inline"):"fullscreen",e[0]=C,e[1]=h):h=e[1];const D=h,I=l??Pe;let b;e[2]!==o||e[3]!==r.name||e[4]!==I?(b={client:o,toolName:r.name,toolArguments:I},e[2]=o,e[3]=r.name,e[4]=I,e[5]=b):b=e[5];const{data:_}=le(b);let E;if(e[6]!==r._meta||e[7]!==r.name){const A=q(r._meta);E=H(r.name,A),e[6]=r._meta,e[7]=r.name,e[8]=E}else E=e[8];const a=E;let O;e[9]!==r.inputSchema?(O=r.inputSchema??{type:"object"},e[9]=r.inputSchema,e[10]=O):O=e[10];let R;e[11]!==a||e[12]!==O||e[13]!==r?(R={...r,name:a,inputSchema:O},e[11]=a,e[12]=O,e[13]=r,e[14]=R):R=e[14];const P=R;let T;e[15]!==x||e[16]!==C||e[17]!==p?(T=A=>{const w=_e(A.content);if(w.isNavigate){w.tab==="connect-sources"&&w.field?S(w.field):w.tab&&C(w.tab);return}const V=ce(A.content);V.content.length>0&&(x("chat"),p({tiptapDoc:V}))},e[15]=x,e[16]=C,e[17]=p,e[18]=T):T=e[18];const d=T;let f;e[19]!==P?(f={tool:P},e[19]=P,e[20]=f):f=e[20];let j;e[21]!==n||e[22]!==m?(j=A=>n(m,A),e[21]=n,e[22]=m,e[23]=j):j=e[23];let v;e[24]!==g||e[25]!==m?(v=()=>g(m),e[24]=g,e[25]=m,e[26]=v):v=e[26];let M;e[27]!==o||e[28]!==d||e[29]!==D||e[30]!==c||e[31]!==i||e[32]!==f||e[33]!==j||e[34]!==v||e[35]!==I||e[36]!==_?(M=s.jsx(pe,{resourceURI:i,orgId:c,toolInfo:f,toolInput:I,toolResult:_,displayMode:"fullscreen",minHeight:Y.fullscreen.minHeight,maxHeight:Y.fullscreen.maxHeight,client:o,onMessage:d,onUpdateModelContext:j,onTeardown:v,onRequestDisplayMode:D,className:"h-full"}),e[27]=o,e[28]=d,e[29]=D,e[30]=c,e[31]=i,e[32]=f,e[33]=j,e[34]=v,e[35]=I,e[36]=_,e[37]=M):M=e[37];let y;e[38]!==u?(y=u&&s.jsx(Oe,{field:u,onClose:()=>S(null)}),e[38]=u,e[39]=y):y=e[39];let k;return e[40]!==M||e[41]!==y?(k=s.jsxs(s.Fragment,{children:[M,y]}),e[40]=M,e[41]=y,e[42]=k):k=e[42],k}function bi(N){const e=U.c(25),{connectionId:o,toolName:i,args:r}=N,{org:t}=K(),c=me(),l=De();let p;e[0]!==o||e[1]!==l||e[2]!==c?(p=se(o)&&l?`${c.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,e[0]=o,e[1]=l,e[2]=c,e[3]=p):p=e[3];const n=p;let g;e[4]!==o||e[5]!==n||e[6]!==t.id||e[7]!==t.slug?(g={connectionId:o,orgId:t.id,orgSlug:t.slug,mcpUrl:n},e[4]=o,e[5]=n,e[6]=t.id,e[7]=t.slug,e[8]=g):g=e[8];const x=z(g);let C;e[9]!==x?(C={client:x},e[9]=x,e[10]=C):C=e[10];const{data:m}=ne(C);let u,S,h;e[11]!==i||e[12]!==m.tools?(u=oe(decodeURIComponent(i)),h=m.tools.find(b=>b.name===u)??m.tools.find(b=>{const _=q(b._meta);if(!_)return!1;if(H(b.name,_)===u)return!0;const a=H(u,_);return a!==u&&b.name===a}),S=h?._meta?ae(h._meta):void 0,e[11]=i,e[12]=m.tools,e[13]=u,e[14]=S,e[15]=h):(u=e[13],S=e[14],h=e[15]);const D=S;if(!h||!D){let b;return e[16]!==u?(b=s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',u,'" not found or has no UI']})}),e[16]=u,e[17]=b):b=e[17],b}let I;return e[18]!==r||e[19]!==x||e[20]!==o||e[21]!==t.id||e[22]!==D||e[23]!==h?(I=s.jsx(Te,{client:x,resourceURI:D,tool:h,connectionId:o,orgId:t.id,args:r}),e[18]=r,e[19]=x,e[20]=o,e[21]=t.id,e[22]=D,e[23]=h,e[24]=I):I=e[24],I}export{bi as AppViewContent};
|
|
1
|
+
import{c as U,b as B,j as s,r as L,E as X,H as K,a as Z,B as ee,k as te}from"./index-DKJfVpPq.js";import{a as oe,g as q,s as H}from"./automation-runs-CdPhMdUc.js";import{u as z}from"./use-mcp-client-Cy-AIgXV.js";import{W as ie,S as re,p as se}from"./constants-z9Iog-sb.js";import{b as ne,c as le}from"./use-mcp-tools-Dw5BO3gM.js";import{u as me}from"./index-DrW1zjXX.js";import{c as ce}from"./monaco-editor-Bo1FpOSD.js";import{g as ae,M as pe,a as Y}from"./types-cPExEwjj.js";import{a as de,u as fe}from"./chat-context-yeI-v7KV.js";import{u as ue}from"./shell-layout-UCvVv_pI.js";import{O as ge}from"./tab-id-Co9ADgzZ.js";import{c as xe,e as he,s as Ce,f as je,P as Se,g as Ie,h as be}from"./self-tool-result--WgdQZec.js";import{b as G,a as W,d as J,e as Q}from"./dialog-CG0v_Dj_.js";import{I as Ne}from"./integration-icon-DTK5rHiT.js";import{u as De}from"./use-is-desktop-app-BNujXJc_.js";import"./agent-icon-CQX6ATic.js";import"./AlertCircle-C36brJaR.js";import"./Tool01-Cfl3COaF.js";import"./ArrowUp-COJJrX7L.js";import"./ArrowLeft-wwVrsbMW.js";import"./Tool02-BPvFk4HB.js";import"./XCircle-D8-IVKQd.js";import"./TrendUp01-CEu4GTfk.js";import"./ZapSquare-C1MVaAoJ.js";import"./Users03-0YugwDZL.js";import"./UserSquare-BCoi0aB3.js";import"./CheckCircle-CdvUa3of.js";import"./Check-DSXkRb-J.js";import"./ChevronDown-BX6glIQa.js";import"./ChevronRight-LCcuzXWw.js";import"./ChevronSelectorVertical-7Dug0Yf7.js";import"./ChevronUp-nrG459IH.js";import"./DotsVertical-6tWb-wyG.js";import"./Stars02-C7cV-Piq.js";import"./Copy01-DjuOAVvI.js";import"./CreditCard01-BTsbQBXw.js";import"./Download01-Cn_kqE9Y.js";import"./Settings02-DtWW3OuT.js";import"./Eye-pAMeUrM1.js";import"./FilterLines-BX3YcOyY.js";import"./Share07-d3EhtNR0.js";import"./Globe01-dQ7ZoEE0.js";import"./Globe04-BqRl04n1.js";import"./SwitchHorizontal01-DpdGRJB3.js";import"./HardDrive-fpE53R1T.js";import"./Key01-BPxPWTLz.js";import"./LinkExternal01-3eEv4tnH.js";import"./LockUnlocked01-Clq_81PP.js";import"./LogOut01-B4rXGfB9.js";import"./Monitor01-CSYulPKA.js";import"./Sun-_JugMyUC.js";import"./Palette-DDrlgZAr.js";import"./Play-GU4NI0HY.js";import"./Plus-Gk1CScCj.js";import"./SearchLg-CN3H2mAb.js";import"./SearchMd-r-Tv7wRH.js";import"./Shield01-C8aRU48i.js";import"./Stars01-Bu8pvraw.js";import"./Trash01-Cuhq2ZFZ.js";import"./Upload01-DVAZevxC.js";import"./User01-D6aTAVm9.js";import"./Users01-BAepYBIW.js";import"./XClose-DJmAL1aH.js";import"./Zap-BfeJ5Std.js";import"./useInfiniteQuery-D3NBsKx6.js";import"./use-infinite-scroll-CqMrWcOe.js";import"./use-connection-DnvQODWK.js";import"./use-virtual-mcp-BQzmnQ_Z.js";import"./table-DT7H2MWr.js";import"./empty-state-DF4o6Kzp.js";import"./use-members-DLvlC-ek.js";import"./use-org-auth-client-n2Tx1h6l.js";import"./use-clock-tick-DhhDnvIc.js";import"./select-uEKFD6sX.js";import"./use-automations-Be927Cdw.js";import"./useSuspenseInfiniteQuery-D4cpLyu8.js";import"./avatar-DeRnsiWT.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CmmFXbHE.js";import"./hooks-CXgDi8h8.js";import"./decopilot-sse-pool-CBxQ-x96.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-navigate-to-agent-SrjmfK2L.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./session-runtime-wVXsCwcJ.js";import"./chart-DLL_Y85t.js";import"./index-Dxc3VcBu.js";import"./form-CaGeaZ8N.js";import"./label-BdC0RLFX.js";import"./input-Dh9y5amp.js";import"./spinner-CkFs9a6f.js";import"./file-type-icon-CdCpVvc-.js";import"./auth-DYsjRMBU.js";import"./drawer-CC_kwEoi.js";import"./collection-search-DNilu4Dh.js";import"./tabs-CK5j3qVZ.js";import"./toggle-group-B6dqB33G.js";import"./use-commerce-diagnostic-BVosEeoE.js";import"./popover-BJW11m9w.js";import"./toolbar-EGXJJZNP.js";import"./github-repo-picker-bZQ5N_-K.js";import"./use-debounced-value-CiK5D05Q.js";import"./authenticate-and-persist-oauth-CpljZrI4.js";import"./mcp-oauth-CUolBK8e.js";import"./extract-connection-data-DDmPP98y.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-BhwuBGgv.js";import"./use-registry-connections-D0Cs8VqU.js";import"./use-organization-settings-Ct9Eyfrn.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-aDNky26j.js";import"./connection-form-helpers-EHqzE-m_.js";import"./collection-tabs-BHsdWEBz.js";import"./badge-Csa5d5TA.js";import"./use-ai-providers-BKjhknmw.js";import"./command-cIiGvHkA.js";import"./index-B2jxzf3k.js";import"./alert-dialog-Dw0slG3X.js";import"./select-model-DSVyk_Ny.js";import"./checkbox-DVHOhi2h.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DsNGiSlk.js";import"./dropdown-menu-DId3h_0t.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DG4rgeoJ.js";import"./use-decopilot-events-CXO6Iuqv.js";import"./use-file-configs-CkvRoKNn.js";import"./pt-BR-CLy76QW2.js";import"./switch-bc2Ofgul.js";import"./use-debounced-autosave-BXMrJoof.js";import"./search-input-Dv7Qbmb3.js";import"./index-BXYpKH2e.js";import"./use-secrets-D4YftHqR.js";import"./AreaChart-ebW_YLvP.js";import"./use-task-board-items-BpxgNXan.js";import"./sprints-Bcz_MiQn.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BVvdI4pe.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row-D_PVlNwY.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-BKoiq-Av.js";import"./required-auth-layout-QXq5KHk9.js";import"./use-org-sso-8-xVHw1w.js";import"./track-DzOHLu23.js";const ve="studio://navigate",Me=new Set(["vtex","ga4","gsc","github"]);function _e(N){const[e]=N;if(N.length!==1||e?.type!=="resource_link"||!e.uri.startsWith(ve))return{isNavigate:!1};let o=null,i=null;try{const r=new URL(e.uri).searchParams;o=r.get("main"),i=r.get("field")}catch{}return{isNavigate:!0,tab:o&&ge.has(o)?o:null,field:i&&Me.has(i)?i:null}}function $(N){const e=U.c(12),{onClose:o,children:i}=N,r=B();let t;e[0]!==o?(t=g=>!g&&o(),e[0]=o,e[1]=t):t=e[1];let c;e[2]!==r?(c=r("commerceOnboarding.connectSourceDialog.title"),e[2]=r,e[3]=c):c=e[3];let l;e[4]!==c?(l=s.jsx(W,{children:s.jsx(G,{children:c})}),e[4]=c,e[5]=l):l=e[5];let p;e[6]!==i||e[7]!==l?(p=s.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[l,i]}),e[6]=i,e[7]=l,e[8]=p):p=e[8];let n;return e[9]!==t||e[10]!==p?(n=s.jsx(Q,{open:!0,onOpenChange:t,children:p}),e[9]=t,e[10]=p,e[11]=n):n=e[11],n}function F(N){const e=U.c(3),{label:o}=N;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(te,{size:16,className:"animate-spin"}),e[0]=i):i=e[0];let r;return e[1]!==o?(r=s.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[i,s.jsx("span",{children:o})]}),e[1]=o,e[2]=r):r=e[2],r}function Oe(N){const e=U.c(19),{field:o,onClose:i}=N,r=B();let t;e[0]!==i||e[1]!==r?(t=()=>s.jsx($,{onClose:i,children:s.jsx("p",{className:"text-sm text-muted-foreground",children:r("routes.commerceOnboarding.connectModal.loadError")})}),e[0]=i,e[1]=r,e[2]=t):t=e[2];let c;e[3]!==r?(c=r("commerceOnboarding.connectSourceDialog.loading"),e[3]=r,e[4]=c):c=e[4];let l;e[5]!==c?(l=s.jsx(F,{label:c}),e[5]=c,e[6]=l):l=e[6];let p;e[7]!==i||e[8]!==l?(p=s.jsx($,{onClose:i,children:l}),e[7]=i,e[8]=l,e[9]=p):p=e[9];let n;e[10]!==o||e[11]!==i?(n=s.jsx(ye,{field:o,onClose:i}),e[10]=o,e[11]=i,e[12]=n):n=e[12];let g;e[13]!==p||e[14]!==n?(g=s.jsx(L.Suspense,{fallback:p,children:n}),e[13]=p,e[14]=n,e[15]=g):g=e[15];let x;return e[16]!==t||e[17]!==g?(x=s.jsx(X,{fallback:t,children:g}),e[16]=t,e[17]=g,e[18]=x):x=e[18],x}function ye(N){const e=U.c(75),{field:o,onClose:i}=N,r=B(),{org:t}=K();let c;e[0]!==t.id?(c=ie.COMMERCE_DISCOVERY(t.id),e[0]=t.id,e[1]=c):c=e[1];const l=c;let p;e[2]!==t.id||e[3]!==t.slug?(p={connectionId:re,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=p):p=e[4];const n=z(p),{data:g}=Z.useSession(),x=g?.user?.id??"";let C;e[5]!==l||e[6]!==t||e[7]!==n?(C={selfClient:n,org:t,cdConnectionId:l},e[5]=l,e[6]=t,e[7]=n,e[8]=C):C=e[8];const m=xe(C);let u;e[9]!==l||e[10]!==t||e[11]!==n||e[12]!==m?(u={selfClient:n,org:t,cdConnectionId:l,siteUrl:m},e[9]=l,e[10]=t,e[11]=n,e[12]=m,e[13]=u):u=e[13];const{cards:S}=he(u);let h;e[14]!==m?(h=Ce(m)??void 0,e[14]=m,e[15]=h):h=e[15];let D;e[16]!==l||e[17]!==t||e[18]!==n||e[19]!==m||e[20]!==h||e[21]!==x?(D={selfClient:n,org:t,userId:x,cdConnectionId:l,domain:h,siteUrl:m},e[16]=l,e[17]=t,e[18]=n,e[19]=m,e[20]=h,e[21]=x,e[22]=D):D=e[22];const{connect:I,connectingFieldKey:b,error:_}=je(D);let E;if(e[23]!==S||e[24]!==o){let d;e[26]!==o?(d=f=>f.fieldKey===o,e[26]=o,e[27]=d):d=e[27],E=S.find(d),e[23]=S,e[24]=o,e[25]=E}else E=e[25];const a=E;if(!a){let d;e[28]!==r?(d=r("routes.commerceOnboarding.connectModal.loadError"),e[28]=r,e[29]=d):d=e[29];let f;e[30]!==d?(f=s.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[30]=d,e[31]=f):f=e[31];let j;return e[32]!==i||e[33]!==f?(j=s.jsx($,{onClose:i,children:f}),e[32]=i,e[33]=f,e[34]=j):j=e[34],j}const O=Se[a.bindingType];if(O&&a.boundVia!=="oauth"){let d;e[35]!==i?(d=v=>!v&&i(),e[35]=i,e[36]=d):d=e[36];let f;e[37]!==a||e[38]!==I?(f=a.satisfied?void 0:()=>{I(a)},e[37]=a,e[38]=I,e[39]=f):f=e[39];let j;return e[40]!==a||e[41]!==t||e[42]!==O||e[43]!==n||e[44]!==m||e[45]!==d||e[46]!==f?(j=s.jsx(be,{card:a,provider:O,org:t,selfClient:n,siteUrl:m,open:!0,onOpenChange:d,onOAuthInstead:f}),e[40]=a,e[41]=t,e[42]=O,e[43]=n,e[44]=m,e[45]=d,e[46]=f,e[47]=j):j=e[47],j}if(a.satisfied&&a.linkedConnectionId){let d;e[48]!==r?(d=r("commerceOnboarding.connectSourceDialog.loading"),e[48]=r,e[49]=d):d=e[49];let f;e[50]!==d?(f=s.jsx(F,{label:d}),e[50]=d,e[51]=f):f=e[51];let j;e[52]!==i||e[53]!==f?(j=s.jsx($,{onClose:i,children:f}),e[52]=i,e[53]=f,e[54]=j):j=e[54];let v;e[55]!==i?(v=k=>!k&&i(),e[55]=i,e[56]=v):v=e[56];let M;e[57]!==a||e[58]!==t||e[59]!==n||e[60]!==m||e[61]!==v?(M=s.jsx(Ie,{card:a,org:t,selfClient:n,connectionId:a.linkedConnectionId,contextSiteUrl:m,open:!0,onOpenChange:v}),e[57]=a,e[58]=t,e[59]=n,e[60]=m,e[61]=v,e[62]=M):M=e[62];let y;return e[63]!==j||e[64]!==M?(y=s.jsx(L.Suspense,{fallback:j,children:M}),e[63]=j,e[64]=M,e[65]=y):y=e[65],y}const R=b===a.fieldKey;let P;e[66]!==a||e[67]!==I?(P=()=>{I(a)},e[66]=a,e[67]=I,e[68]=P):P=e[68];let T;return e[69]!==a||e[70]!==_||e[71]!==i||e[72]!==R||e[73]!==P?(T=s.jsx(Ee,{card:a,connecting:R,error:_,onConnect:P,onClose:i}),e[69]=a,e[70]=_,e[71]=i,e[72]=R,e[73]=P,e[74]=T):T=e[74],T}function Ee(N){const e=U.c(22),{card:o,connecting:i,error:r,onConnect:t,onClose:c}=N,l=B(),[p,n]=L.useState(!1);p||(n(!0),queueMicrotask(t));let g;e[0]!==i||e[1]!==c?(g=D=>{!D&&i||D||c()},e[0]=i,e[1]=c,e[2]=g):g=e[2];let x;e[3]!==o.icon||e[4]!==o.title?(x=s.jsx(Ne,{icon:o.icon,name:o.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=o.icon,e[4]=o.title,e[5]=x):x=e[5];let C;e[6]!==o.title?(C=s.jsx(G,{className:"min-w-0 flex-1",children:o.title}),e[6]=o.title,e[7]=C):C=e[7];let m;e[8]!==x||e[9]!==C?(m=s.jsxs(W,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[x,C]}),e[8]=x,e[9]=C,e[10]=m):m=e[10];let u;e[11]!==o.title||e[12]!==r||e[13]!==t||e[14]!==l?(u=r?s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx("p",{role:"alert",className:"text-sm text-destructive",children:r}),s.jsx(ee,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:l("routes.commerceOnboarding.companionSection.retry")})]}):s.jsx(F,{label:l("commerceOnboarding.connectSourceDialog.connecting",{title:o.title})}),e[11]=o.title,e[12]=r,e[13]=t,e[14]=l,e[15]=u):u=e[15];let S;e[16]!==m||e[17]!==u?(S=s.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[m,u]}),e[16]=m,e[17]=u,e[18]=S):S=e[18];let h;return e[19]!==g||e[20]!==S?(h=s.jsx(Q,{open:!0,onOpenChange:g,children:S}),e[19]=g,e[20]=S,e[21]=h):h=e[21],h}const Pe={};function Te(N){const e=U.c(43),{client:o,resourceURI:i,tool:r,connectionId:t,orgId:c,args:l}=N,{sendMessage:p}=de(),{setAppContext:n,clearAppContext:g}=fe(),{openSidePanel:x,openTab:C}=ue(),m=`${t}:${r.name}`,[u,S]=L.useState(null);let h;e[0]!==C?(h=A=>A==="inline"?(C("0"),"inline"):"fullscreen",e[0]=C,e[1]=h):h=e[1];const D=h,I=l??Pe;let b;e[2]!==o||e[3]!==r.name||e[4]!==I?(b={client:o,toolName:r.name,toolArguments:I},e[2]=o,e[3]=r.name,e[4]=I,e[5]=b):b=e[5];const{data:_}=le(b);let E;if(e[6]!==r._meta||e[7]!==r.name){const A=q(r._meta);E=H(r.name,A),e[6]=r._meta,e[7]=r.name,e[8]=E}else E=e[8];const a=E;let O;e[9]!==r.inputSchema?(O=r.inputSchema??{type:"object"},e[9]=r.inputSchema,e[10]=O):O=e[10];let R;e[11]!==a||e[12]!==O||e[13]!==r?(R={...r,name:a,inputSchema:O},e[11]=a,e[12]=O,e[13]=r,e[14]=R):R=e[14];const P=R;let T;e[15]!==x||e[16]!==C||e[17]!==p?(T=A=>{const w=_e(A.content);if(w.isNavigate){w.tab==="connect-sources"&&w.field?S(w.field):w.tab&&C(w.tab);return}const V=ce(A.content);V.content.length>0&&(x("chat"),p({tiptapDoc:V}))},e[15]=x,e[16]=C,e[17]=p,e[18]=T):T=e[18];const d=T;let f;e[19]!==P?(f={tool:P},e[19]=P,e[20]=f):f=e[20];let j;e[21]!==n||e[22]!==m?(j=A=>n(m,A),e[21]=n,e[22]=m,e[23]=j):j=e[23];let v;e[24]!==g||e[25]!==m?(v=()=>g(m),e[24]=g,e[25]=m,e[26]=v):v=e[26];let M;e[27]!==o||e[28]!==d||e[29]!==D||e[30]!==c||e[31]!==i||e[32]!==f||e[33]!==j||e[34]!==v||e[35]!==I||e[36]!==_?(M=s.jsx(pe,{resourceURI:i,orgId:c,toolInfo:f,toolInput:I,toolResult:_,displayMode:"fullscreen",minHeight:Y.fullscreen.minHeight,maxHeight:Y.fullscreen.maxHeight,client:o,onMessage:d,onUpdateModelContext:j,onTeardown:v,onRequestDisplayMode:D,className:"h-full"}),e[27]=o,e[28]=d,e[29]=D,e[30]=c,e[31]=i,e[32]=f,e[33]=j,e[34]=v,e[35]=I,e[36]=_,e[37]=M):M=e[37];let y;e[38]!==u?(y=u&&s.jsx(Oe,{field:u,onClose:()=>S(null)}),e[38]=u,e[39]=y):y=e[39];let k;return e[40]!==M||e[41]!==y?(k=s.jsxs(s.Fragment,{children:[M,y]}),e[40]=M,e[41]=y,e[42]=k):k=e[42],k}function bi(N){const e=U.c(25),{connectionId:o,toolName:i,args:r}=N,{org:t}=K(),c=me(),l=De();let p;e[0]!==o||e[1]!==l||e[2]!==c?(p=se(o)&&l?`${c.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,e[0]=o,e[1]=l,e[2]=c,e[3]=p):p=e[3];const n=p;let g;e[4]!==o||e[5]!==n||e[6]!==t.id||e[7]!==t.slug?(g={connectionId:o,orgId:t.id,orgSlug:t.slug,mcpUrl:n},e[4]=o,e[5]=n,e[6]=t.id,e[7]=t.slug,e[8]=g):g=e[8];const x=z(g);let C;e[9]!==x?(C={client:x},e[9]=x,e[10]=C):C=e[10];const{data:m}=ne(C);let u,S,h;e[11]!==i||e[12]!==m.tools?(u=oe(decodeURIComponent(i)),h=m.tools.find(b=>b.name===u)??m.tools.find(b=>{const _=q(b._meta);if(!_)return!1;if(H(b.name,_)===u)return!0;const a=H(u,_);return a!==u&&b.name===a}),S=h?._meta?ae(h._meta):void 0,e[11]=i,e[12]=m.tools,e[13]=u,e[14]=S,e[15]=h):(u=e[13],S=e[14],h=e[15]);const D=S;if(!h||!D){let b;return e[16]!==u?(b=s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',u,'" not found or has no UI']})}),e[16]=u,e[17]=b):b=e[17],b}let I;return e[18]!==r||e[19]!==x||e[20]!==o||e[21]!==t.id||e[22]!==D||e[23]!==h?(I=s.jsx(Te,{client:x,resourceURI:D,tool:h,connectionId:o,orgId:t.id,args:r}),e[18]=r,e[19]=x,e[20]=o,e[21]=t.id,e[22]=D,e[23]=h,e[24]=I):I=e[24],I}export{bi as AppViewContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as B,b as L,j as r}from"./index-DKJfVpPq.js";import{I as A}from"./input-Dh9y5amp.js";import{L as F}from"./label-BdC0RLFX.js";import{S as R,a as V,b as z,c as O,d as D}from"./select-uEKFD6sX.js";import{T as G}from"./textarea-aDNky26j.js";import{G as J,V as M,K as X,X as $,a5 as q}from"./index-DrW1zjXX.js";import{s as P}from"./primitives-DChH4_To.js";import{u as H}from"./use-autosave-Y6m0YrCK.js";import"./Check-DSXkRb-J.js";import"./ChevronDown-BX6glIQa.js";import"./ChevronUp-nrG459IH.js";import"./ArrowUp-COJJrX7L.js";import"./chat-context-yeI-v7KV.js";import"./tab-id-Co9ADgzZ.js";import"./dialog-CG0v_Dj_.js";import"./Copy01-DjuOAVvI.js";import"./Download01-Cn_kqE9Y.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-CXgDi8h8.js";import"./use-mcp-client-Cy-AIgXV.js";import"./constants-z9Iog-sb.js";import"./auth-DYsjRMBU.js";import"./decopilot-sse-pool-CBxQ-x96.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-BQzmnQ_Z.js";import"./use-ai-providers-BKjhknmw.js";import"./use-decopilot-events-CXO6Iuqv.js";import"./use-organization-settings-Ct9Eyfrn.js";import"./automation-runs-CdPhMdUc.js";import"./agent-icon-CQX6ATic.js";import"./AlertCircle-C36brJaR.js";import"./Tool01-Cfl3COaF.js";import"./ArrowLeft-wwVrsbMW.js";import"./Tool02-BPvFk4HB.js";import"./XCircle-D8-IVKQd.js";import"./TrendUp01-CEu4GTfk.js";import"./ZapSquare-C1MVaAoJ.js";import"./Users03-0YugwDZL.js";import"./UserSquare-BCoi0aB3.js";import"./CheckCircle-CdvUa3of.js";import"./ChevronRight-LCcuzXWw.js";import"./ChevronSelectorVertical-7Dug0Yf7.js";import"./DotsVertical-6tWb-wyG.js";import"./Stars02-C7cV-Piq.js";import"./CreditCard01-BTsbQBXw.js";import"./Settings02-DtWW3OuT.js";import"./Eye-pAMeUrM1.js";import"./FilterLines-BX3YcOyY.js";import"./Share07-d3EhtNR0.js";import"./Globe01-dQ7ZoEE0.js";import"./Globe04-BqRl04n1.js";import"./SwitchHorizontal01-DpdGRJB3.js";import"./HardDrive-fpE53R1T.js";import"./Key01-BPxPWTLz.js";import"./LinkExternal01-3eEv4tnH.js";import"./LockUnlocked01-Clq_81PP.js";import"./LogOut01-B4rXGfB9.js";import"./Monitor01-CSYulPKA.js";import"./Sun-_JugMyUC.js";import"./Palette-DDrlgZAr.js";import"./Play-GU4NI0HY.js";import"./Plus-Gk1CScCj.js";import"./SearchLg-CN3H2mAb.js";import"./SearchMd-r-Tv7wRH.js";import"./Shield01-C8aRU48i.js";import"./Stars01-Bu8pvraw.js";import"./Trash01-Cuhq2ZFZ.js";import"./Upload01-DVAZevxC.js";import"./User01-D6aTAVm9.js";import"./Users01-BAepYBIW.js";import"./XClose-DJmAL1aH.js";import"./Zap-BfeJ5Std.js";import"./useInfiniteQuery-D3NBsKx6.js";import"./use-infinite-scroll-CqMrWcOe.js";import"./use-connection-DnvQODWK.js";import"./table-DT7H2MWr.js";import"./empty-state-DF4o6Kzp.js";import"./use-members-DLvlC-ek.js";import"./use-org-auth-client-n2Tx1h6l.js";import"./use-clock-tick-DhhDnvIc.js";import"./use-automations-Be927Cdw.js";import"./useSuspenseInfiniteQuery-D4cpLyu8.js";import"./avatar-DeRnsiWT.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CmmFXbHE.js";import"./monaco-editor-Bo1FpOSD.js";import"./spinner-CkFs9a6f.js";import"./types-cPExEwjj.js";import"./shell-layout-UCvVv_pI.js";import"./required-auth-layout-QXq5KHk9.js";import"./use-org-sso-8-xVHw1w.js";import"./integration-icon-DTK5rHiT.js";import"./use-navigate-to-agent-SrjmfK2L.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-DLL_Y85t.js";import"./index-Dxc3VcBu.js";import"./form-CaGeaZ8N.js";import"./file-type-icon-CdCpVvc-.js";import"./drawer-CC_kwEoi.js";import"./collection-search-DNilu4Dh.js";import"./tabs-CK5j3qVZ.js";import"./toggle-group-B6dqB33G.js";import"./use-commerce-diagnostic-BVosEeoE.js";import"./popover-BJW11m9w.js";import"./self-tool-result--WgdQZec.js";import"./alert-dialog-Dw0slG3X.js";import"./extract-connection-data-DDmPP98y.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-CiK5D05Q.js";import"./authenticate-and-persist-oauth-CpljZrI4.js";import"./mcp-oauth-CUolBK8e.js";import"./track-DzOHLu23.js";import"./toolbar-EGXJJZNP.js";import"./github-repo-picker-bZQ5N_-K.js";import"./use-mcp-tools-Dw5BO3gM.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-BhwuBGgv.js";import"./use-registry-connections-D0Cs8VqU.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-EHqzE-m_.js";import"./collection-tabs-BHsdWEBz.js";import"./badge-Csa5d5TA.js";import"./command-cIiGvHkA.js";import"./index-B2jxzf3k.js";import"./select-model-DSVyk_Ny.js";import"./checkbox-DVHOhi2h.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DsNGiSlk.js";import"./dropdown-menu-DId3h_0t.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DG4rgeoJ.js";import"./use-file-configs-CkvRoKNn.js";import"./pt-BR-CLy76QW2.js";import"./switch-bc2Ofgul.js";import"./use-debounced-autosave-BXMrJoof.js";import"./search-input-Dv7Qbmb3.js";import"./index-BXYpKH2e.js";import"./use-secrets-D4YftHqR.js";import"./AreaChart-ebW_YLvP.js";import"./use-task-board-items-BpxgNXan.js";import"./sprints-Bcz_MiQn.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BVvdI4pe.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row-D_PVlNwY.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-BKoiq-Av.js";const Q={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"}]},U={authors:"sandbox.recordEditor.titleAuthor"};function Gr(I){const t=B.c(39),{orgSlug:E,virtualMcpId:K,branch:w,kind:a,blockKey:b,block:f}=I,i=L();let h;t[0]!==w||t[1]!==E||t[2]!==K?(h={orgSlug:E,virtualMcpId:K,branch:w},t[0]=w,t[1]=E,t[2]=K,t[3]=h):h=t[3];const p=J(h);let g;t[4]!==f||t[5]!==a?(g=M(f,a),t[4]=f,t[5]=a,t[6]=g):g=t[6];const C=g;let k;t[7]!==b||t[8]!==a||t[9]!==p?(k=l=>{p.mutate({blockKey:b,data:$(b,a,l)})},t[7]=b,t[8]=a,t[9]=p,t[10]=k):k=t[10];const[e,S]=H(C,k);let v;t[11]!==e||t[12]!==S?(v=(l,o)=>S({...e,[l]:o}),t[11]=e,t[12]=S,t[13]=v):v=t[13];const s=v,N=U[a];let n;t[14]!==i||t[15]!==N?(n=i(N),t[14]=i,t[15]=N,t[16]=n):n=t[16];let c;t[17]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[17]=n,t[18]=c):c=t[18];let d;t[19]!==p.isError||t[20]!==p.isPending?(d=r.jsx(X,{isPending:p.isPending,isError:p.isError}),t[19]=p.isError,t[20]=p.isPending,t[21]=d):d=t[21];let y;t[22]!==c||t[23]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[22]=c,t[23]=d,t[24]=y):y=t[24];const T=Q[a];let x;if(t[25]!==e||t[26]!==s||t[27]!==i||t[28]!==T){let l;t[30]!==e||t[31]!==s||t[32]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(q,{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:P(e[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(V,{id:o.key,className:"h-10 w-full",children:r.jsx(z,{placeholder:i(o.labelKey)})}),r.jsx(O,{children:(o.options??[]).map(m=>r.jsx(D,{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(G,{id:o.key,value:P(e[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(A,{id:o.key,value:P(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[30]=e,t[31]=s,t[32]=i,t[33]=l):l=t[33],x=T.map(l),t[25]=e,t[26]=s,t[27]=i,t[28]=T,t[29]=x}else x=t[29];let u;t[34]!==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[34]=x,t[35]=u):u=t[35];let j;return t[36]!==u||t[37]!==y?(j=r.jsxs("div",{className:"flex h-full flex-col",children:[y,u]}),t[36]=u,t[37]=y,t[38]=j):j=t[38],j}export{Gr as RecordEditor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as pt,b as at,j as r}from"./index-Db07zrZ8.js";import{C as ct}from"./checkbox-BnzMP4sT.js";import{I as rt}from"./input-If4F9A5L.js";import{L as et}from"./label-CTeLtpPj.js";import{d as dt,a as nt,b as ft,c as xt,S as ht}from"./select-vfh7qXou.js";import{G as ut,c0 as yt,K as bt,c1 as jt,c2 as vt}from"./index-De8tINWV.js";import{u as gt}from"./use-autosave-vevfkgzA.js";import"./Check-ClFUKcbJ.js";import"./ChevronDown-B_mzV1FG.js";import"./ChevronUp-BWdt5HFD.js";import"./ArrowUp-v5vRAaKF.js";import"./chat-context-CIMo666p.js";import"./tab-id-DcJXhcUP.js";import"./dialog-CjH1Iu8Q.js";import"./Copy01-B3D8PVwv.js";import"./Download01-ilA7cP4f.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-B1fKNaBu.js";import"./use-mcp-client-DJsoXyx-.js";import"./constants-z9Iog-sb.js";import"./auth-BtXDjKRH.js";import"./decopilot-sse-pool-7Kw0TgHd.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DW6EkkI7.js";import"./use-ai-providers-C0U6QKSW.js";import"./use-decopilot-events-CKuyLkDb.js";import"./use-organization-settings-Bi4nkC1u.js";import"./automation-runs-C_ZrMq7x.js";import"./agent-icon-BgDuIGKP.js";import"./AlertCircle-B_MGANKn.js";import"./Tool01-BTOYbTgX.js";import"./ArrowLeft-DcwGa0Jf.js";import"./Tool02-CFECF_DG.js";import"./XCircle-gR7wbODj.js";import"./TrendUp01-BeYewvJo.js";import"./ZapSquare-CjpmGLR8.js";import"./Users03-CL5iyeOb.js";import"./UserSquare-B1uAjco3.js";import"./CheckCircle-Dz-gTt1j.js";import"./ChevronRight-Dub9Vgi6.js";import"./ChevronSelectorVertical-CrrNO-r3.js";import"./DotsVertical-D4Pzyb4r.js";import"./Stars02-Cmeu17A1.js";import"./CreditCard01-DxXtEpJn.js";import"./Settings02-Cis0onGS.js";import"./Eye-XFnZ2CXh.js";import"./FilterLines-CwwshenK.js";import"./Share07-C2aUwUMP.js";import"./Globe01-BuPkaBKs.js";import"./Globe04-CdtnUYpC.js";import"./SwitchHorizontal01-BBbtmcG5.js";import"./HardDrive-CNoZO34E.js";import"./Key01-CrbmL0TU.js";import"./LinkExternal01-BD4ZzbN-.js";import"./LockUnlocked01-B2xjXV-0.js";import"./LogOut01-D4i4Vp-V.js";import"./Monitor01-SjJFS0oc.js";import"./Sun-BrMehd0S.js";import"./Palette-CeXRqZzf.js";import"./Play-Cs9bKOQj.js";import"./Plus-CpF6H29a.js";import"./SearchLg-DzeVpxiS.js";import"./SearchMd-C1UxMmtp.js";import"./Shield01-iGm-BwOf.js";import"./Stars01-CAFV4V0C.js";import"./Trash01-C791hFlg.js";import"./Upload01-7XTjVROx.js";import"./User01-2CbqYEEJ.js";import"./Users01-C7ZXEJya.js";import"./XClose-DZWGF6Pn.js";import"./Zap-B41nS8nd.js";import"./useInfiniteQuery-ByOHg0jE.js";import"./use-infinite-scroll-Bhh9Iw6C.js";import"./use-connection-041rWBWg.js";import"./table-DE4pDdSr.js";import"./empty-state-BkJfb2oG.js";import"./use-members-w23IDC0q.js";import"./use-org-auth-client-CvWEe5k0.js";import"./use-clock-tick-DjTwIlXj.js";import"./use-automations-D9dVViPf.js";import"./useSuspenseInfiniteQuery-BDG9PMEz.js";import"./avatar-DO6HMxte.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DY08vgeu.js";import"./monaco-editor-B_ZG2XgX.js";import"./spinner-DbGrtl8M.js";import"./types-BzTUSs7-.js";import"./shell-layout-X-4UXttm.js";import"./required-auth-layout-LxDBuNfG.js";import"./use-org-sso-B5dg4Ub5.js";import"./integration-icon-MYMXKqz4.js";import"./use-navigate-to-agent-fev9H89Q.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-CXvQ6zBw.js";import"./index-1-pSwcms.js";import"./form-CvKOyXRc.js";import"./file-type-icon-D--9UgoQ.js";import"./drawer-i03KFkUQ.js";import"./collection-search-tNk-MBZ7.js";import"./tabs-Ptlrb1uK.js";import"./toggle-group-C2LyWWdH.js";import"./use-commerce-diagnostic-CBCLdaqX.js";import"./popover-DIDrjmQt.js";import"./self-tool-result-hSt7TNK0.js";import"./alert-dialog-DD6XIS1V.js";import"./extract-connection-data-D8IGtoKo.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-BUAp_QeG.js";import"./authenticate-and-persist-oauth-DYaz8cjS.js";import"./mcp-oauth-ulTTdNug.js";import"./track-B3J1Xm3T.js";import"./toolbar-CD7Vw6Qd.js";import"./github-repo-picker-D2ybnxWv.js";import"./use-mcp-tools-CFPgyeF_.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-Cekp1Uio.js";import"./use-registry-connections-BHMVR_be.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-BCyvvzD_.js";import"./connection-form-helpers-CkVNdjEA.js";import"./collection-tabs-Xkrn4Kxx.js";import"./badge-CmWuiLbd.js";import"./command-Zmu6RKmZ.js";import"./index-CMz3pE97.js";import"./select-model-1RRw_Z45.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DFxrC3IG.js";import"./dropdown-menu-CPXUeuH8.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CriwNE0R.js";import"./use-file-configs-CBqnVr3r.js";import"./pt-BR-CLy76QW2.js";import"./switch-DEg_Wie-.js";import"./use-debounced-autosave-D_r_55rr.js";import"./search-input-CvXcVc_q.js";import"./index-BvD4gkoz.js";import"./use-secrets-D03kV4QO.js";import"./AreaChart-BIE92ZB5.js";import"./use-task-board-items-DKQ2MtMh.js";import"./sprints-DQLQNrmK.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BX4CSIKi.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row--mpKmU3v.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-C8dK15gG.js";const Et=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function ni(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 G;t[4]!==Z?(G=yt(Z),t[4]=Z,t[5]=G):G=t[5];const ot=G;let M;t[6]!==X||t[7]!==s?(M=i=>{s.mutate({blockKey:X,data:vt(i)})},t[6]=X,t[7]=s,t[8]=M):M=t[8];const[o,tt]=gt(ot,M);let Y;t[9]!==o||t[10]!==tt?(Y=i=>tt({...o,...i}),t[9]=o,t[10]=tt,t[11]=Y):Y=t[11];const m=Y;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(bt,{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 y;t[36]!==u?(y=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[36]=u,t[37]=y):y=t[37];let b;t[38]!==n||t[39]!==h||t[40]!==y?(b=r.jsxs("div",{className:"space-y-2",children:[n,h,y]}),t[38]=n,t[39]=h,t[40]=y,t[41]=b):b=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 C;t[58]!==v||t[59]!==P||t[60]!==S?(C=r.jsxs("div",{className:"space-y-2",children:[v,P,S]}),t[58]=v,t[59]=P,t[60]=S,t[61]=C):C=t[61];let T;t[62]!==e?(T=e("sandbox.redirectEditor.typeLabel"),t[62]=e,t[63]=T):T=t[63];let k;t[64]!==T?(k=r.jsx(et,{htmlFor:"redirect-type",children:T}),t[64]=T,t[65]=k):k=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 K;t[74]!==_?(K=r.jsx(xt,{children:_}),t[74]=_,t[75]=K):K=t[75];let L;t[76]!==o.type||t[77]!==w||t[78]!==I||t[79]!==K?(L=r.jsxs(ht,{value:lt,onValueChange:w,children:[I,K]}),t[76]=o.type,t[77]=w,t[78]=I,t[79]=K,t[80]=L):L=t[80];let $;t[81]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx("strong",{children:"Temporary"}),t[81]=$):$=t[81];let q;t[82]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",$," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[82]=q):q=t[82];let Q;t[83]!==k||t[84]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,q]}),t[83]=k,t[84]=L,t[85]=Q):Q=t[85];let F;t[86]!==m?(F=i=>m({discardQueryParameters:i===!0}),t[86]=m,t[87]=F):F=t[87];let D;t[88]!==o.discardQueryParameters||t[89]!==F?(D=r.jsx(ct,{checked:o.discardQueryParameters,onCheckedChange:F}),t[88]=o.discardQueryParameters,t[89]=F,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]!==b||t[99]!==C||t[100]!==Q||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:[b,C,Q,O]})}),t[98]=b,t[99]=C,t[100]=Q,t[101]=O,t[102]=U):U=t[102];let z;return t[103]!==U||t[104]!==c?(z=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[103]=U,t[104]=c,t[105]=z):z=t[105],z}export{ni as RedirectEditor};
|
|
1
|
+
import{c as pt,b as at,j as r}from"./index-DKJfVpPq.js";import{C as ct}from"./checkbox-DVHOhi2h.js";import{I as rt}from"./input-Dh9y5amp.js";import{L as et}from"./label-BdC0RLFX.js";import{d as dt,a as nt,b as ft,c as xt,S as ht}from"./select-uEKFD6sX.js";import{G as ut,c0 as yt,K as bt,c1 as jt,c2 as vt}from"./index-DrW1zjXX.js";import{u as gt}from"./use-autosave-Y6m0YrCK.js";import"./Check-DSXkRb-J.js";import"./ChevronDown-BX6glIQa.js";import"./ChevronUp-nrG459IH.js";import"./ArrowUp-COJJrX7L.js";import"./chat-context-yeI-v7KV.js";import"./tab-id-Co9ADgzZ.js";import"./dialog-CG0v_Dj_.js";import"./Copy01-DjuOAVvI.js";import"./Download01-Cn_kqE9Y.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-CXgDi8h8.js";import"./use-mcp-client-Cy-AIgXV.js";import"./constants-z9Iog-sb.js";import"./auth-DYsjRMBU.js";import"./decopilot-sse-pool-CBxQ-x96.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-BQzmnQ_Z.js";import"./use-ai-providers-BKjhknmw.js";import"./use-decopilot-events-CXO6Iuqv.js";import"./use-organization-settings-Ct9Eyfrn.js";import"./automation-runs-CdPhMdUc.js";import"./agent-icon-CQX6ATic.js";import"./AlertCircle-C36brJaR.js";import"./Tool01-Cfl3COaF.js";import"./ArrowLeft-wwVrsbMW.js";import"./Tool02-BPvFk4HB.js";import"./XCircle-D8-IVKQd.js";import"./TrendUp01-CEu4GTfk.js";import"./ZapSquare-C1MVaAoJ.js";import"./Users03-0YugwDZL.js";import"./UserSquare-BCoi0aB3.js";import"./CheckCircle-CdvUa3of.js";import"./ChevronRight-LCcuzXWw.js";import"./ChevronSelectorVertical-7Dug0Yf7.js";import"./DotsVertical-6tWb-wyG.js";import"./Stars02-C7cV-Piq.js";import"./CreditCard01-BTsbQBXw.js";import"./Settings02-DtWW3OuT.js";import"./Eye-pAMeUrM1.js";import"./FilterLines-BX3YcOyY.js";import"./Share07-d3EhtNR0.js";import"./Globe01-dQ7ZoEE0.js";import"./Globe04-BqRl04n1.js";import"./SwitchHorizontal01-DpdGRJB3.js";import"./HardDrive-fpE53R1T.js";import"./Key01-BPxPWTLz.js";import"./LinkExternal01-3eEv4tnH.js";import"./LockUnlocked01-Clq_81PP.js";import"./LogOut01-B4rXGfB9.js";import"./Monitor01-CSYulPKA.js";import"./Sun-_JugMyUC.js";import"./Palette-DDrlgZAr.js";import"./Play-GU4NI0HY.js";import"./Plus-Gk1CScCj.js";import"./SearchLg-CN3H2mAb.js";import"./SearchMd-r-Tv7wRH.js";import"./Shield01-C8aRU48i.js";import"./Stars01-Bu8pvraw.js";import"./Trash01-Cuhq2ZFZ.js";import"./Upload01-DVAZevxC.js";import"./User01-D6aTAVm9.js";import"./Users01-BAepYBIW.js";import"./XClose-DJmAL1aH.js";import"./Zap-BfeJ5Std.js";import"./useInfiniteQuery-D3NBsKx6.js";import"./use-infinite-scroll-CqMrWcOe.js";import"./use-connection-DnvQODWK.js";import"./table-DT7H2MWr.js";import"./empty-state-DF4o6Kzp.js";import"./use-members-DLvlC-ek.js";import"./use-org-auth-client-n2Tx1h6l.js";import"./use-clock-tick-DhhDnvIc.js";import"./use-automations-Be927Cdw.js";import"./useSuspenseInfiniteQuery-D4cpLyu8.js";import"./avatar-DeRnsiWT.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CmmFXbHE.js";import"./monaco-editor-Bo1FpOSD.js";import"./spinner-CkFs9a6f.js";import"./types-cPExEwjj.js";import"./shell-layout-UCvVv_pI.js";import"./required-auth-layout-QXq5KHk9.js";import"./use-org-sso-8-xVHw1w.js";import"./integration-icon-DTK5rHiT.js";import"./use-navigate-to-agent-SrjmfK2L.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-DLL_Y85t.js";import"./index-Dxc3VcBu.js";import"./form-CaGeaZ8N.js";import"./file-type-icon-CdCpVvc-.js";import"./drawer-CC_kwEoi.js";import"./collection-search-DNilu4Dh.js";import"./tabs-CK5j3qVZ.js";import"./toggle-group-B6dqB33G.js";import"./use-commerce-diagnostic-BVosEeoE.js";import"./popover-BJW11m9w.js";import"./self-tool-result--WgdQZec.js";import"./alert-dialog-Dw0slG3X.js";import"./extract-connection-data-DDmPP98y.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-CiK5D05Q.js";import"./authenticate-and-persist-oauth-CpljZrI4.js";import"./mcp-oauth-CUolBK8e.js";import"./track-DzOHLu23.js";import"./toolbar-EGXJJZNP.js";import"./github-repo-picker-bZQ5N_-K.js";import"./use-mcp-tools-Dw5BO3gM.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-BhwuBGgv.js";import"./use-registry-connections-D0Cs8VqU.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-aDNky26j.js";import"./connection-form-helpers-EHqzE-m_.js";import"./collection-tabs-BHsdWEBz.js";import"./badge-Csa5d5TA.js";import"./command-cIiGvHkA.js";import"./index-B2jxzf3k.js";import"./select-model-DSVyk_Ny.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DsNGiSlk.js";import"./dropdown-menu-DId3h_0t.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DG4rgeoJ.js";import"./use-file-configs-CkvRoKNn.js";import"./pt-BR-CLy76QW2.js";import"./switch-bc2Ofgul.js";import"./use-debounced-autosave-BXMrJoof.js";import"./search-input-Dv7Qbmb3.js";import"./index-BXYpKH2e.js";import"./use-secrets-D4YftHqR.js";import"./AreaChart-ebW_YLvP.js";import"./use-task-board-items-BpxgNXan.js";import"./sprints-Bcz_MiQn.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BVvdI4pe.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row-D_PVlNwY.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-BKoiq-Av.js";const Et=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function ni(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 G;t[4]!==Z?(G=yt(Z),t[4]=Z,t[5]=G):G=t[5];const ot=G;let M;t[6]!==X||t[7]!==s?(M=i=>{s.mutate({blockKey:X,data:vt(i)})},t[6]=X,t[7]=s,t[8]=M):M=t[8];const[o,tt]=gt(ot,M);let Y;t[9]!==o||t[10]!==tt?(Y=i=>tt({...o,...i}),t[9]=o,t[10]=tt,t[11]=Y):Y=t[11];const m=Y;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(bt,{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 y;t[36]!==u?(y=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[36]=u,t[37]=y):y=t[37];let b;t[38]!==n||t[39]!==h||t[40]!==y?(b=r.jsxs("div",{className:"space-y-2",children:[n,h,y]}),t[38]=n,t[39]=h,t[40]=y,t[41]=b):b=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 C;t[58]!==v||t[59]!==P||t[60]!==S?(C=r.jsxs("div",{className:"space-y-2",children:[v,P,S]}),t[58]=v,t[59]=P,t[60]=S,t[61]=C):C=t[61];let T;t[62]!==e?(T=e("sandbox.redirectEditor.typeLabel"),t[62]=e,t[63]=T):T=t[63];let k;t[64]!==T?(k=r.jsx(et,{htmlFor:"redirect-type",children:T}),t[64]=T,t[65]=k):k=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 K;t[74]!==_?(K=r.jsx(xt,{children:_}),t[74]=_,t[75]=K):K=t[75];let L;t[76]!==o.type||t[77]!==w||t[78]!==I||t[79]!==K?(L=r.jsxs(ht,{value:lt,onValueChange:w,children:[I,K]}),t[76]=o.type,t[77]=w,t[78]=I,t[79]=K,t[80]=L):L=t[80];let $;t[81]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx("strong",{children:"Temporary"}),t[81]=$):$=t[81];let q;t[82]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",$," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[82]=q):q=t[82];let Q;t[83]!==k||t[84]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,q]}),t[83]=k,t[84]=L,t[85]=Q):Q=t[85];let F;t[86]!==m?(F=i=>m({discardQueryParameters:i===!0}),t[86]=m,t[87]=F):F=t[87];let D;t[88]!==o.discardQueryParameters||t[89]!==F?(D=r.jsx(ct,{checked:o.discardQueryParameters,onCheckedChange:F}),t[88]=o.discardQueryParameters,t[89]=F,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]!==b||t[99]!==C||t[100]!==Q||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:[b,C,Q,O]})}),t[98]=b,t[99]=C,t[100]=Q,t[101]=O,t[102]=U):U=t[102];let z;return t[103]!==U||t[104]!==c?(z=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[103]=U,t[104]=c,t[105]=z):z=t[105],z}export{ni as RedirectEditor};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-D5ZJ1ywR.js","assets/index-DKJfVpPq.js","assets/index-DUyD93UD.css","assets/Tool02-BPvFk4HB.js","assets/CheckCircle-CdvUa3of.js","assets/Settings02-DtWW3OuT.js","assets/use-mcp-client-Cy-AIgXV.js","assets/constants-z9Iog-sb.js","assets/auth-DYsjRMBU.js","assets/useInfiniteQuery-D3NBsKx6.js","assets/use-infinite-scroll-CqMrWcOe.js","assets/badge-Csa5d5TA.js","assets/input-Dh9y5amp.js","assets/dropdown-menu-DId3h_0t.js","assets/Check-DSXkRb-J.js","assets/ChevronRight-LCcuzXWw.js","assets/DotsVertical-6tWb-wyG.js","assets/table-DT7H2MWr.js","assets/toggle-group-B6dqB33G.js","assets/use-view-mode-fxGDVDZJ.js","assets/FilterLines-BX3YcOyY.js","assets/Globe01-dQ7ZoEE0.js","assets/SearchMd-r-Tv7wRH.js","assets/dialog-CG0v_Dj_.js","assets/AlertCircle-C36brJaR.js","assets/Download01-Cn_kqE9Y.js","assets/Upload01-DVAZevxC.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-Dw0slG3X.js","assets/Trash01-Cuhq2ZFZ.js","assets/label-BdC0RLFX.js","assets/select-uEKFD6sX.js","assets/ChevronDown-BX6glIQa.js","assets/ChevronUp-nrG459IH.js","assets/switch-bc2Ofgul.js","assets/textarea-aDNky26j.js","assets/ArrowLeft-wwVrsbMW.js","assets/XCircle-D8-IVKQd.js","assets/checkbox-DVHOhi2h.js","assets/Eye-pAMeUrM1.js","assets/LinkExternal01-3eEv4tnH.js","assets/use-copy-CmmFXbHE.js","assets/Copy01-DjuOAVvI.js","assets/Key01-BPxPWTLz.js","assets/Plus-Gk1CScCj.js","assets/mcp-oauth-CUolBK8e.js","assets/Play-GU4NI0HY.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as i,j as e,r as s,k as a,bi as o}from"./index-DKJfVpPq.js";import{R as n}from"./require-capability-nVe6XspV.js";import"./access-gate-Cd-bRLR3.js";import"./capability-load-error-BsvCbg7T.js";const c=s.lazy(()=>o(()=>import("./registry-layout-D5ZJ1ywR.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])));function u(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(n,{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(c,{})})}),r[0]=t):t=r[0],t}export{u as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Z,H as Ne,o as Ae,p as Ue,e as Pe,ac as Me,t as V,b as oe,r as q,j as t,B as Q,aZ as ge,k as Ye,n as te,aw as Gs,a8 as Qs,a9 as Ys,ab as Ws,bS as Js,bT as Zs}from"./index-
|
|
1
|
+
import{c as Z,H as Ne,o as Ae,p as Ue,e as Pe,ac as Me,t as V,b as oe,r as q,j as t,B as Q,aZ as ge,k as Ye,n as te,aw as Gs,a8 as Qs,a9 as Ys,ab as Ws,bS as Js,bT as Zs}from"./index-DKJfVpPq.js";import{i as ss,a as ps,t as Xs,c as er,n as tr,b as sr}from"./Tool02-BPvFk4HB.js";import{i as We}from"./CheckCircle-CdvUa3of.js";import{s as Ft,b as rr,i as ir,a as nr}from"./Settings02-DtWW3OuT.js";import{u as Fe}from"./use-mcp-client-Cy-AIgXV.js";import{S as Oe,W as or}from"./constants-z9Iog-sb.js";import{u as hs}from"./useInfiniteQuery-D3NBsKx6.js";import{B as H}from"./badge-Csa5d5TA.js";import{I as je}from"./input-Dh9y5amp.js";import{D as ft,a as Ie,b as yt,c as jt,j as rs,k as is,i as ar}from"./dropdown-menu-DId3h_0t.js";import{c as $t,e as zt,a as Je,d as he,b as Ot,T as fe}from"./table-DT7H2MWr.js";import{T as lr,a as ns}from"./toggle-group-B6dqB33G.js";import{u as cr}from"./use-view-mode-fxGDVDZJ.js";import{a as Bt}from"./DotsVertical-6tWb-wyG.js";import{i as dr}from"./FilterLines-BX3YcOyY.js";import{i as fs}from"./Globe01-dQ7ZoEE0.js";import{i as ur}from"./SearchMd-r-Tv7wRH.js";import{e as vt,d as bt,b as Nt,h as Ct,a as wt,c as _t}from"./dialog-CG0v_Dj_.js";import{i as st}from"./AlertCircle-C36brJaR.js";import{n as mr}from"./Download01-Cn_kqE9Y.js";import{i as os}from"./Upload01-DVAZevxC.js";import{g as ke,w as Pt}from"./metadata-dUsYcpuu.js";import{c as rt,d as it,b as nt,f as ot,g as at,e as lt,a as ct,A as dt}from"./alert-dialog-Dw0slG3X.js";import{s as ut}from"./Trash01-Cuhq2ZFZ.js";import{L as le}from"./label-BdC0RLFX.js";import{S as gr,a as xr,b as pr,c as hr,d as qt}from"./select-uEKFD6sX.js";import{S as Ge}from"./switch-bc2Ofgul.js";import{T as Rt}from"./textarea-aDNky26j.js";import{i as fr}from"./ArrowLeft-wwVrsbMW.js";import{b as yr,i as jr,a as vr}from"./XCircle-D8-IVKQd.js";import{t as br}from"./ChevronDown-BX6glIQa.js";import{n as Nr}from"./ChevronUp-nrG459IH.js";import{C as as}from"./checkbox-DVHOhi2h.js";import{s as ys}from"./Eye-pAMeUrM1.js";import{n as Cr}from"./LinkExternal01-3eEv4tnH.js";import{u as wr}from"./use-infinite-scroll-CqMrWcOe.js";import{u as Et}from"./use-copy-CmmFXbHE.js";import{i as Lt}from"./Check-DSXkRb-J.js";import{a as At}from"./Copy01-DjuOAVvI.js";import{i as _r}from"./Key01-BPxPWTLz.js";import{s as Pr}from"./Plus-Gk1CScCj.js";import{i as Rr,a as kr}from"./mcp-oauth-CUolBK8e.js";import{i as Ir}from"./Play-GU4NI0HY.js";import"./auth-DYsjRMBU.js";import"./ChevronRight-LCcuzXWw.js";const Ve="private-registry",Sr=`
|
|
2
2
|
You are an MCP tool tester running automated integration checks.
|
|
3
3
|
|
|
4
4
|
Goal:
|