decocms 4.82.9 → 4.82.11
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-CasESeW6.js → AlertCircle-B5S0Howv.js} +1 -1
- package/dist/client/assets/{AreaChart-DqvPPaTC.js → AreaChart-BqhmXRim.js} +1 -1
- package/dist/client/assets/{ArrowUp-FPNlktOK.js → ArrowUp-C2Uom_QG.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-M9tqNBZh.js → ArrowUpRight-CWABXTLe.js} +1 -1
- package/dist/client/assets/{Check-D3n4gRJc.js → Check-2hvdb-vm.js} +1 -1
- package/dist/client/assets/{CheckCircle-C7IpeM2l.js → CheckCircle-Dtlxzayc.js} +1 -1
- package/dist/client/assets/{ChevronDown-D4DHAf0j.js → ChevronDown-BOF5C-lc.js} +1 -1
- package/dist/client/assets/{ChevronRight-RInm-aVw.js → ChevronRight-Gt0dyTZv.js} +1 -1
- package/dist/client/assets/{ChevronUp-Cu19ewZf.js → ChevronUp-BgF4lo04.js} +1 -1
- package/dist/client/assets/{Circle-D9nZXcv9.js → Circle-WCex1xh9.js} +1 -1
- package/dist/client/assets/{Copy01-D0NIZWk6.js → Copy01-JoQTJv1g.js} +1 -1
- package/dist/client/assets/{DotsVertical-ZkH87H22.js → DotsVertical-D5iMp6bE.js} +1 -1
- package/dist/client/assets/{Eye-CuMpXJkc.js → Eye-u_eyLJkM.js} +1 -1
- package/dist/client/assets/{FilterLines-CZAAcWWi.js → FilterLines-9uIhD3OH.js} +1 -1
- package/dist/client/assets/{Flag01-DiSJyFcN.js → Flag01-B66NcKmx.js} +1 -1
- package/dist/client/assets/{Globe01-CtGNOAC_.js → Globe01-BLXYE4Cy.js} +1 -1
- package/dist/client/assets/{Globe04-CtsA--DL.js → Globe04-f79X3HKE.js} +1 -1
- package/dist/client/assets/{HardDrive-B7Komd_c.js → HardDrive-al9D_s63.js} +1 -1
- package/dist/client/assets/{Image01-BAGsNaQU.js → Image01-DVYnawJP.js} +1 -1
- package/dist/client/assets/{Key01-BDTnv2QH.js → Key01-TX-oFrbw.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DFfT9PNh.js → LayoutLeft-C1tijNFg.js} +1 -1
- package/dist/client/assets/{LinkExternal01-0cXhXnwo.js → LinkExternal01-B0gcEmkE.js} +1 -1
- package/dist/client/assets/{List-DUr-xsD7.js → List-LBmnlI0P.js} +1 -1
- package/dist/client/assets/{Monitor01-CCca9VX6.js → Monitor01-CdKZX-bL.js} +1 -1
- package/dist/client/assets/{Package-BI2BjUtD.js → Package-CMkd2sHI.js} +1 -1
- package/dist/client/assets/{Palette-DCkpyAzO.js → Palette-Q_tRuOMf.js} +1 -1
- package/dist/client/assets/{Play-Bp-NfS7s.js → Play-Bm9V641L.js} +1 -1
- package/dist/client/assets/{Plus-BnnQdSS2.js → Plus-Bt0qDPEV.js} +1 -1
- package/dist/client/assets/{SearchLg-CJDpvrzu.js → SearchLg-DSuw112A.js} +1 -1
- package/dist/client/assets/{SearchMd-CWXkSlvi.js → SearchMd-CVmGoUfY.js} +1 -1
- package/dist/client/assets/{Settings02-BOgQYQhy.js → Settings02-C28ltUF9.js} +1 -1
- package/dist/client/assets/{Shield01-DROOCFo5.js → Shield01-Bxz1cNPl.js} +1 -1
- package/dist/client/assets/{Star01-Dqxud4cG.js → Star01-ijVxXmb8.js} +1 -1
- package/dist/client/assets/{Stars01-BQF4fDG0.js → Stars01-yVlwMkQy.js} +1 -1
- package/dist/client/assets/{Stars02-BwTUcjpB.js → Stars02-ClLIxwPM.js} +1 -1
- package/dist/client/assets/{Sun-CGU_J3YG.js → Sun-BHNbv08f.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CU1Z25ud.js → SwitchHorizontal01-DEvDgDFu.js} +1 -1
- package/dist/client/assets/{Tool01-C5UcZe4X.js → Tool01-MVmzVfJA.js} +1 -1
- package/dist/client/assets/{Tool02-C3DiBnvC.js → Tool02-B4J4k_Jq.js} +1 -1
- package/dist/client/assets/{Trash01-CnVHiwXT.js → Trash01-D3uneq9V.js} +1 -1
- package/dist/client/assets/{TrendUp01-D4nDXsC7.js → TrendUp01-BnB7HNcK.js} +1 -1
- package/dist/client/assets/{Upload01-B1HnYX_L.js → Upload01-Dz_C9C_o.js} +1 -1
- package/dist/client/assets/{User01-DDQH6RKB.js → User01-B21uLVgH.js} +1 -1
- package/dist/client/assets/{UserPlus01-BuJJCUTQ.js → UserPlus01-B1r5BrnS.js} +1 -1
- package/dist/client/assets/{Users01-BgsiD61H.js → Users01-DS-6elOB.js} +1 -1
- package/dist/client/assets/{Users03-Bq6sidtE.js → Users03-5UfvMRx2.js} +1 -1
- package/dist/client/assets/{X-C1Hb-T06.js → X-CuXL2cLN.js} +1 -1
- package/dist/client/assets/{XCircle-D_1ilOF2.js → XCircle-Bqih3VAo.js} +1 -1
- package/dist/client/assets/{XClose-bVEi_3Z9.js → XClose-DEI4maVJ.js} +1 -1
- package/dist/client/assets/{Zap-DenhxUDB.js → Zap-CbZARwtr.js} +1 -1
- package/dist/client/assets/{ZapSquare-CoeP1pL7.js → ZapSquare-DntY_gJw.js} +1 -1
- package/dist/client/assets/{ZoomOut-ZBq0pI6d.js → ZoomOut-CUl1mvu1.js} +1 -1
- package/dist/client/assets/{access-gate-CeqiNeAt.js → access-gate-DDYRYhpb.js} +1 -1
- package/dist/client/assets/{add-section-modal-D88nYKjy.js → add-section-modal-D3akZWgZ.js} +1 -1
- package/dist/client/assets/{agent-icon-gbgOnB97.js → agent-icon-BD0Dhqds.js} +1 -1
- package/dist/client/assets/{agents-list-D4pvJOPZ.js → agents-list-BYgzGNrl.js} +1 -1
- package/dist/client/assets/{ai-providers-DwFphwmz.js → ai-providers-CC2a0KaA.js} +1 -1
- package/dist/client/assets/{alert-dialog-AMD4bxPu.js → alert-dialog-YVSboGyg.js} +1 -1
- package/dist/client/assets/{alert-5e3SG1g3.js → alert-r0EE7buF.js} +1 -1
- package/dist/client/assets/{app-editor-DxIPuBrZ.js → app-editor-D3NrrquY.js} +1 -1
- package/dist/client/assets/{auth-DKNOF6Pv.js → auth-CQTZH4-O.js} +1 -1
- package/dist/client/assets/{auth-catchall-B0iXh3jj.js → auth-catchall-DjuiYYzw.js} +1 -1
- package/dist/client/assets/{auth-entry-D4Ql-X3u.js → auth-entry-CsE0cCZS.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DJPHJkcG.js → auth-split-layout-BXWnGvvD.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DwbkuScw.js → authenticate-and-persist-oauth-BWBUH6FO.js} +1 -1
- package/dist/client/assets/{automation-list-row-BvEcB9tE.js → automation-list-row-mah_f33i.js} +1 -1
- package/dist/client/assets/{automation-runs-DMvzL5XU.js → automation-runs-CI_DXiSg.js} +1 -1
- package/dist/client/assets/automations-Bo6bbj7e.js +1 -0
- package/dist/client/assets/{autosend-4jNArwYp.js → autosend-Cy6yTFx0.js} +1 -1
- package/dist/client/assets/{avatar-D8cqehrs.js → avatar-B26L6f3M.js} +1 -1
- package/dist/client/assets/{badge-BD9n0Dfq.js → badge-Cagw1NWA.js} +1 -1
- package/dist/client/assets/{block-document-DJVwi8r7.js → block-document-4o_mZ5Wu.js} +1 -1
- package/dist/client/assets/{brand-context-CBkXfvqu.js → brand-context-BIWhPFQh.js} +1 -1
- package/dist/client/assets/{buckets-B3aSLV4N.js → buckets-CYkE09pb.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BECxvOsP.js → bulk-category-panel-D6Gvn6u4.js} +1 -1
- package/dist/client/assets/{calendar-BstnI_Yr.js → calendar-C3xMag-0.js} +1 -1
- package/dist/client/assets/{capability-load-error-C0fAl7Vj.js → capability-load-error-zjT6zavB.js} +1 -1
- package/dist/client/assets/{card-S6Aa8yjq.js → card-DaWNzsoz.js} +1 -1
- package/dist/client/assets/{category-editor-BGw2UKNB.js → category-editor-BdTKt4Wb.js} +1 -1
- package/dist/client/assets/{chat-context-BIBgMmSP.js → chat-context-DsgMhUkR.js} +1 -1
- package/dist/client/assets/{checkbox-Cl_AUlvc.js → checkbox-Bfo0_7OX.js} +1 -1
- package/dist/client/assets/{cli-auth-success-D6eQ3LJC.js → cli-auth-success-CXRXasyO.js} +1 -1
- package/dist/client/assets/{collection-detail-2cgHK4yH.js → collection-detail-DN9ZxScE.js} +1 -1
- package/dist/client/assets/{collection-display-button-CrS1mtS3.js → collection-display-button-BKjWwtNp.js} +1 -1
- package/dist/client/assets/{collection-search-CDWYBpbb.js → collection-search-B1Ombzts.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CaHfX_Ha.js → collection-table-wrapper-X2s9eJ1l.js} +1 -1
- package/dist/client/assets/{collection-tabs-BedmQqrC.js → collection-tabs-WaSVL-dS.js} +1 -1
- package/dist/client/assets/{command-DRdHD2LV.js → command-Cn83qANG.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CiZ-ukOP.js → commerce-onboarding-BuAsGrLS.js} +1 -1
- package/dist/client/assets/{companions-core-CMtMZANc.js → companions-core-DekO4Tau.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-DOTPKvtV.js → connect-desktop-dialog-IeFRacue.js} +1 -1
- package/dist/client/assets/{connection-card-CO4Zt6un.js → connection-card-CGYwJ0pB.js} +1 -1
- package/dist/client/assets/{connection-detail-CBL5s1oA.js → connection-detail-CeB50ytn.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B3-hYGek.js → connection-form-helpers-CmcaSfzc.js} +1 -1
- package/dist/client/assets/{connections-BRoc1zTX.js → connections-CfHN_-P2.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CAAPJES7.js → decopilot-sse-pool-DZSk4S2t.js} +1 -1
- package/dist/client/assets/{dialog-7Hh4EEds.js → dialog-B71p2x2p.js} +1 -1
- package/dist/client/assets/{domain-settings-BQsoathe.js → domain-settings-B8r_-ck2.js} +1 -1
- package/dist/client/assets/{drawer-C9w90-t7.js → drawer-Do-PSohO.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BJz5vhZu.js → dropdown-menu-CCDOmXjQ.js} +1 -1
- package/dist/client/assets/{empty-state-BFIwmfIY.js → empty-state-pDQBZsd9.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CWqIHi--.js → extract-connection-data-DZ42iEpK.js} +1 -1
- package/dist/client/assets/{file-explorer-CtjmBpKr.js → file-explorer-BDF4Y5o5.js} +1 -1
- package/dist/client/assets/{file-type-icon-oaWPVcXq.js → file-type-icon-CrVWqTLg.js} +3 -3
- package/dist/client/assets/{files-Dys5CuAI.js → files-B3NTZjcB.js} +1 -1
- package/dist/client/assets/{form-DNDzmHY7.js → form-IQF2IyvU.js} +1 -1
- package/dist/client/assets/{general-D_WcrNxB.js → general-CxQInQw2.js} +1 -1
- package/dist/client/assets/{github-repo-picker-C9Dg6j7e.js → github-repo-picker-DS0e520o.js} +1 -1
- package/dist/client/assets/{hooks-8LO2nFxS.js → hooks-Ce88nl_8.js} +1 -1
- package/dist/client/assets/index-B1f7loQR.js +1 -0
- package/dist/client/assets/{index-q_ZBGy7p.js → index-B3Lao2pE.js} +5 -5
- package/dist/client/assets/{index-CKjd7FVQ.js → index-BB6iYbEk.js} +3 -3
- package/dist/client/assets/{index-CvhBtFuW.js → index-BQmin4cH.js} +1 -1
- package/dist/client/assets/{index-Bu9LEqep.js → index-BZJ9XJhj.js} +2 -2
- package/dist/client/assets/{index-CMdl54QV.js → index-CP-UVMqF.js} +1 -1
- package/dist/client/assets/{index-BpxVmSwt.js → index-CdSATOtN.js} +1 -1
- package/dist/client/assets/{index-Dv0yuO1h.js → index-CoSY6fwz.js} +1 -1
- package/dist/client/assets/{index-BcxWRa-k.js → index-D5mw-efR.js} +1 -1
- package/dist/client/assets/{index-B941tipH.js → index-DKGDY3AR.js} +1 -1
- package/dist/client/assets/{index-CjOpN5P_.js → index-DdQdmhmf.js} +1 -1
- package/dist/client/assets/{index-Brnwm4tN.js → index-DpU56SgE.js} +1 -1
- package/dist/client/assets/{index-BSxh64hl.js → index-JkzY1USm.js} +3 -3
- package/dist/client/assets/{index-redirect-CmTrCf2J.js → index-redirect-De-_NmXc.js} +1 -1
- package/dist/client/assets/{index-BtmuUE9g.js → index-tJkQ3pGR.js} +1 -1
- package/dist/client/assets/{input-HA5GlV6J.js → input-typWdmM2.js} +1 -1
- package/dist/client/assets/{integration-icon-CxEZQlxS.js → integration-icon-CTpNPfCm.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-BBhywTvU.js → invite-member-dialog-D3bZ7PY8.js} +1 -1
- package/dist/client/assets/{label-DNj28QS5.js → label-6eYPMIMn.js} +1 -1
- package/dist/client/assets/{layout-DN_hrCBE.js → layout-CTMgqxil.js} +1 -1
- package/dist/client/assets/{login-DeWd-DAB.js → login-s_mFeh5v.js} +1 -1
- package/dist/client/assets/{mcp-oauth-D8kd56GU.js → mcp-oauth-HL_Y9nO8.js} +1 -1
- package/dist/client/assets/{members-CMLRo_zA.js → members-BL33Np9a.js} +1 -1
- package/dist/client/assets/{monaco-editor-Db_KtlDF.js → monaco-editor-B1MWJFdI.js} +1 -1
- package/dist/client/assets/monitoring-stats-row-CAKSC2D3.js +28 -0
- package/dist/client/assets/{multi-select-Dkp8_I-Q.js → multi-select--lKhvO-B.js} +1 -1
- package/dist/client/assets/{oauth-callback-o7bBsowp.js → oauth-callback-DCPcIBMz.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Dj4JuuuW.js → oauth-callback-ai-provider-5L_Z_1xs.js} +1 -1
- package/dist/client/assets/{onboarding-DCxeX6Wn.js → onboarding-lSuasVhF.js} +1 -1
- package/dist/client/assets/{org-install-BGUWdrUX.js → org-install-BiDNis-e.js} +1 -1
- package/dist/client/assets/{org-layout-B1tOgtz6.js → org-layout-BxReJo9f.js} +1 -1
- package/dist/client/assets/{organization-choice-Bm8tTm8T.js → organization-choice-CJNcxP4s.js} +1 -1
- package/dist/client/assets/{orgs-Fb0PvU8Z.js → orgs-Dcte6nVl.js} +1 -1
- package/dist/client/assets/{page-seo-form-CH1lAwBC.js → page-seo-form-Q5I4DhzQ.js} +1 -1
- package/dist/client/assets/page-seo-sheet-DJO-4Ve3.js +1 -0
- package/dist/client/assets/{popover-tA9PDjW1.js → popover--4QSfinM.js} +1 -1
- package/dist/client/assets/{post-editor-DX-lnsH9.js → post-editor-Y4xJXCQh.js} +1 -1
- package/dist/client/assets/{primitives-CAtuLkMY.js → primitives-BZ0jR3FH.js} +1 -1
- package/dist/client/assets/{profile-XmAUDAXJ.js → profile-BsKSKdiq.js} +1 -1
- package/dist/client/assets/project-app-view-BndTM51x.js +1 -0
- package/dist/client/assets/record-editor-BvebEElK.js +1 -0
- package/dist/client/assets/redirect-editor-DnWBgwhK.js +1 -0
- package/dist/client/assets/registry-Ci2-56YH.js +2 -0
- package/dist/client/assets/{registry-layout-BAA3FULf.js → registry-layout-BJ3nc_ht.js} +2 -2
- package/dist/client/assets/{reports-C7ATuCQR.js → reports-BNm1jTDx.js} +1 -1
- package/dist/client/assets/{require-capability-9TYWYZRa.js → require-capability-Bd1LXPXR.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DjUuTkxW.js → required-auth-layout-CLFVeE7_.js} +1 -1
- package/dist/client/assets/{reset-password-BjL0GpIh.js → reset-password-BtRqnFx3.js} +1 -1
- package/dist/client/assets/{roles-BR46OYWc.js → roles-BFfEI8kY.js} +1 -1
- package/dist/client/assets/{search-input-B38BWJHH.js → search-input-D9-x3yYV.js} +1 -1
- package/dist/client/assets/{secrets-6uwJ_dU6.js → secrets-Yg2E60R5.js} +1 -1
- package/dist/client/assets/{sections-editor-BqwcPQUc.js → sections-editor-b1Ixv47y.js} +1 -1
- package/dist/client/assets/{select-Bml7Rs0T.js → select-Bd-q1yCw.js} +1 -1
- package/dist/client/assets/{select-model-5SsfzBU3.js → select-model-K2oi5fLk.js} +1 -1
- package/dist/client/assets/{self-tool-result-Cha3UFDj.js → self-tool-result-BiEjz1Ry.js} +1 -1
- package/dist/client/assets/{seo-editor-CBtnVpDS.js → seo-editor-CdjtqxtA.js} +1 -1
- package/dist/client/assets/{settings-layout-CK7U4bD1.js → settings-layout-5c1plOIU.js} +1 -1
- package/dist/client/assets/{settings-section--qFkAAhx.js → settings-section-shb-u7Ue.js} +1 -1
- package/dist/client/assets/{shell-controls-HQgubU7I.js → shell-controls-BpqLtOsH.js} +1 -1
- package/dist/client/assets/{shell-layout-ChVVxyRA.js → shell-layout-BIqZZ6_U.js} +1 -1
- package/dist/client/assets/{sidebar-Da7wzFWC.js → sidebar-CfdFP1cX.js} +1 -1
- package/dist/client/assets/{skeleton-CFpB1jha.js → skeleton-BN44BcrT.js} +1 -1
- package/dist/client/assets/{sso-CGyGYtGf.js → sso-BXhJwgt8.js} +1 -1
- package/dist/client/assets/{store-BlxWaMnF.js → store-BKjhBvgx.js} +1 -1
- package/dist/client/assets/store-registry-g5R_VlWb.js +2 -0
- package/dist/client/assets/{studio-tools-Bjw0Jr43.js → studio-tools-BbXlY124.js} +1 -1
- package/dist/client/assets/{switch-C2Mm6_qS.js → switch-CuIkQ0ts.js} +1 -1
- package/dist/client/assets/{table-B2on39xb.js → table-BXIfO88i.js} +1 -1
- package/dist/client/assets/{tabs-TPHxWTyx.js → tabs-7EuH5ewS.js} +1 -1
- package/dist/client/assets/{textarea-Z5OnX3vK.js → textarea-COeZkp4P.js} +1 -1
- package/dist/client/assets/{toggle-group-Ex1OojBb.js → toggle-group-DuFTDXUv.js} +1 -1
- package/dist/client/assets/{toolbar-J4RI9xFD.js → toolbar-B6T3nvfB.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BPMkXTme.js → toolbar-icon-button-DzWXQwu7.js} +1 -1
- package/dist/client/assets/{tooltip-Di8Co4Sg.js → tooltip-8XxDCvjI.js} +1 -1
- package/dist/client/assets/{use-ai-providers-EAIs9V5s.js → use-ai-providers-CJ46O17u.js} +1 -1
- package/dist/client/assets/{use-automations-DuO6aGrd.js → use-automations-CX5x-Uqw.js} +1 -1
- package/dist/client/assets/{use-autosave-ZNRJmIC1.js → use-autosave-V0-E8XGy.js} +1 -1
- package/dist/client/assets/{use-capability-NLzcv---.js → use-capability-FmP_AGyE.js} +1 -1
- package/dist/client/assets/{use-clock-tick-B5ExQuB8.js → use-clock-tick-DNb1k8Bx.js} +1 -1
- package/dist/client/assets/{use-collections-Dz-cDGRH.js → use-collections-BUbpxhiU.js} +1 -1
- package/dist/client/assets/{use-connection-Tzw-gM9_.js → use-connection-Bk3dYNpt.js} +1 -1
- package/dist/client/assets/{use-copy-Dlp2drKX.js → use-copy-Cw847YgD.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CXi0Nslh.js → use-create-virtual-mcp-BRbI72EV.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CIHnH-Z_.js → use-debounced-autosave-JeuWph6h.js} +1 -1
- package/dist/client/assets/{use-debounced-value--fL8uLzq.js → use-debounced-value-CNzGGbsu.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CbKP4RkY.js → use-deco-credits-B4BR0gFr.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-bEeBCG8g.js → use-decopilot-events-D28_JGgq.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DqqWPkeA.js → use-delete-connection-CjmQkOW1.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DEHWWJw1.js → use-deployment-admin-Dyk7hBaE.js} +1 -1
- package/dist/client/assets/{use-file-configs-DJ9EWhri.js → use-file-configs-DL_xMbOi.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BXgYebaV.js → use-infinite-scroll-OAX5SxNS.js} +1 -1
- package/dist/client/assets/{use-join-requests-SiDEVOz4.js → use-join-requests-B3tUIQS3.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DaaoI_us.js → use-mcp-auth-status-CPftzmcf.js} +1 -1
- package/dist/client/assets/{use-mcp-client-C8CUpc9I.js → use-mcp-client-FLTjUCG7.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Cb9NQ6Rf.js → use-mcp-tools-D2FBN-6Y.js} +1 -1
- package/dist/client/assets/{use-members-Cbq-KhlP.js → use-members-Dq8ZMPmz.js} +1 -1
- package/dist/client/assets/{use-mobile-jR7vc4lZ.js → use-mobile-DCYqAZ4D.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DJUvOfFB.js → use-navigate-to-agent-zGXO_gBb.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DaulafqZ.js → use-org-auth-client-asYkCBii.js} +1 -1
- package/dist/client/assets/{use-org-sso-BYe3M43L.js → use-org-sso-DGvCB7c3.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BtvYl6eT.js → use-organization-roles-DNoMRyWZ.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BZRqZCOI.js → use-organization-settings-vZiR9w_k.js} +1 -1
- package/dist/client/assets/{use-registry-app-CDi6-sFg.js → use-registry-app-DEcBrUWC.js} +1 -1
- package/dist/client/assets/{use-registry-connections-_izo0bxC.js → use-registry-connections-ZIIAN618.js} +1 -1
- package/dist/client/assets/{use-secrets-DUdJCh_2.js → use-secrets-BPGFw9d3.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BCav02M9.js → use-status-sounds-lae0TShH.js} +1 -1
- package/dist/client/assets/{use-view-mode-BPJ2wr8B.js → use-view-mode-CPvsHu0J.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BoNQ0wEI.js → use-virtual-mcp-qUMQTRyD.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-sJT3Rp66.js +1 -0
- package/dist/client/assets/{useRouterState-Dn4czoAO.js → useRouterState-B99a8RMJ.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-QwMQXCnx.js +1 -0
- package/dist/client/assets/{users-BYNIJvAA.js → users-_WAywRSq.js} +1 -1
- package/dist/client/assets/{variant-calendar-BtFPRCWy.js → variant-calendar-DV02T715.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CRdEbwTX.js → view-mode-toggle-vOT0KHyw.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +470 -470
- package/dist/server/server.js +317 -317
- package/package.json +1 -1
- package/dist/client/assets/automations-BWjpI0nS.js +0 -1
- package/dist/client/assets/index-DY5BC5zx.js +0 -1
- package/dist/client/assets/monitoring-stats-row-9ZdejwGF.js +0 -28
- package/dist/client/assets/page-seo-sheet-CVotwhzI.js +0 -1
- package/dist/client/assets/project-app-view-BkKlOSPd.js +0 -1
- package/dist/client/assets/record-editor-BSKrfQSg.js +0 -1
- package/dist/client/assets/redirect-editor-C6-v5Dep.js +0 -1
- package/dist/client/assets/registry-Bv-r_l-Q.js +0 -2
- package/dist/client/assets/store-registry-wjNVj2Go.js +0 -2
- package/dist/client/assets/useInfiniteQuery-uUKZgZ1F.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BUWsAQNT.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as B,j as o,C as L,b as T,r as $,B as M,p as N}from"./index-BSxh64hl.js";import{s as q}from"./Plus-BnnQdSS2.js";import{i as S}from"./Zap-DenhxUDB.js";import{S as D}from"./search-input-B38BWJHH.js";import{P as l}from"./index-CvhBtFuW.js";import{E as b}from"./empty-state-BFIwmfIY.js";import{c as O}from"./use-automations-DuO6aGrd.js";import{c as V}from"./use-navigate-to-agent-DJUvOfFB.js";import{A as F}from"./automation-list-row-BvEcB9tE.js";import{f as G}from"./constants-BHDe7bIw.js";import{u as H}from"./use-virtual-mcp-BoNQ0wEI.js";import{R as J}from"./require-capability-9TYWYZRa.js";import"./SearchMd-CWXkSlvi.js";import"./sidebar-Da7wzFWC.js";import"./LayoutLeft-DFfT9PNh.js";import"./use-mobile-jR7vc4lZ.js";import"./X-C1Hb-T06.js";import"./tooltip-Di8Co4Sg.js";import"./use-mcp-client-C8CUpc9I.js";import"./auth-DKNOF6Pv.js";import"./studio-tools-Bjw0Jr43.js";import"./hooks-8LO2nFxS.js";import"./decopilot-sse-pool-CAAPJES7.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./alert-dialog-AMD4bxPu.js";import"./dropdown-menu-BJz5vhZu.js";import"./Check-D3n4gRJc.js";import"./ChevronRight-RInm-aVw.js";import"./Circle-D9nZXcv9.js";import"./Stars02-BwTUcjpB.js";import"./DotsVertical-ZkH87H22.js";import"./Trash01-CnVHiwXT.js";import"./agent-icon-gbgOnB97.js";import"./AlertCircle-CasESeW6.js";import"./UserPlus01-BuJJCUTQ.js";import"./Tool01-C5UcZe4X.js";import"./ArrowUp-FPNlktOK.js";import"./Settings02-BOgQYQhy.js";import"./Tool02-C3DiBnvC.js";import"./XCircle-D_1ilOF2.js";import"./ArrowUpRight-M9tqNBZh.js";import"./TrendUp01-D4nDXsC7.js";import"./ZapSquare-CoeP1pL7.js";import"./ZoomOut-ZBq0pI6d.js";import"./Users03-Bq6sidtE.js";import"./CheckCircle-C7IpeM2l.js";import"./ChevronDown-D4DHAf0j.js";import"./ChevronUp-Cu19ewZf.js";import"./Copy01-D0NIZWk6.js";import"./Globe01-CtGNOAC_.js";import"./Eye-CuMpXJkc.js";import"./FilterLines-CZAAcWWi.js";import"./Flag01-DiSJyFcN.js";import"./Star01-Dqxud4cG.js";import"./Globe04-CtsA--DL.js";import"./SwitchHorizontal01-CU1Z25ud.js";import"./HardDrive-B7Komd_c.js";import"./Image01-BAGsNaQU.js";import"./Key01-BDTnv2QH.js";import"./LinkExternal01-0cXhXnwo.js";import"./List-DUr-xsD7.js";import"./Monitor01-CCca9VX6.js";import"./Sun-CGU_J3YG.js";import"./Package-BI2BjUtD.js";import"./Palette-DCkpyAzO.js";import"./Play-Bp-NfS7s.js";import"./SearchLg-CJDpvrzu.js";import"./Shield01-DROOCFo5.js";import"./Stars01-BQF4fDG0.js";import"./Upload01-B1HnYX_L.js";import"./User01-DDQH6RKB.js";import"./Users01-BgsiD61H.js";import"./XClose-bVEi_3Z9.js";import"./use-collections-Dz-cDGRH.js";import"./use-capability-NLzcv---.js";import"./access-gate-CeqiNeAt.js";import"./capability-load-error-C0fAl7Vj.js";function K(){const t=B.c(16),{org:e}=L(),{data:w}=O(void 0),u=w===void 0?[]:w,R=H(),k=V(),d=T(),[f,E]=$.useState(""),g=f.toLowerCase(),y=new Map(R.map(Q)),C=u.filter(i=>{if(!g||i.name.toLowerCase().includes(g))return!0;if(i.virtual_mcp_id){const a=y.get(i.virtual_mcp_id);if(a&&a.title.toLowerCase().includes(g))return!0}return!1}),P=(i,a)=>{const A=a&&y.has(a)?a:G(e.id);N("automations_list_row_clicked",{automation_id:i,agent_id:A,source:"settings_automations"}),k(A,{search:{main:"automation:"+i}})};let n;t[0]!==d||t[1]!==e.slug?(n=()=>{N("automations_empty_state_browse_agents_clicked"),d({to:"/$org/settings/agents",params:{org:e.slug}})},t[0]=d,t[1]=e.slug,t[2]=n):n=t[2];const z=n,x=l,h=l,j=l;let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(l.Title,{children:"Automations"}),t[3]=p):p=t[3];const _=u.length>0&&o.jsx(D,{value:f,onChange:E,placeholder:"Search automations...",className:"w-full md:w-[375px]"});let r;t[4]!==_?(r=o.jsxs("div",{className:"flex flex-col gap-6",children:[p,_]}),t[4]=_,t[5]=r):r=t[5];const v=u.length===0?o.jsx("div",{className:"flex items-center justify-center py-20",children:o.jsx(b,{image:o.jsx(S,{size:48,className:"text-muted-foreground"}),title:"No automations yet",description:"Automations are created per agent. Open an agent and add one from its Automations tab.",actions:o.jsxs(M,{size:"sm",onClick:z,children:[o.jsx(q,{size:14}),"Browse agents"]})})}):C.length===0?o.jsx("div",{className:"flex items-center justify-center py-20",children:o.jsx(b,{image:o.jsx(S,{size:48,className:"text-muted-foreground"}),title:"No automations found",description:`No automations match "${f}"`})}):o.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:C.map(i=>o.jsx(F,{automation:i,showAgent:!0,onClick:()=>P(i.id,i.virtual_mcp_id)},i.id))});let s;t[6]!==j.Body||t[7]!==r||t[8]!==v?(s=o.jsxs(j.Body,{children:[r,v]}),t[6]=j.Body,t[7]=r,t[8]=v,t[9]=s):s=t[9];let m;t[10]!==h.Content||t[11]!==s?(m=o.jsx(h.Content,{children:s}),t[10]=h.Content,t[11]=s,t[12]=m):m=t[12];let c;return t[13]!==x||t[14]!==m?(c=o.jsx(x,{children:m}),t[13]=x,t[14]=m,t[15]=c):c=t[15],c}function Q(t){return[t.id,t]}function vo(){const t=B.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(J,{capability:"automations:manage",area:"automations",children:o.jsx(K,{})}),t[0]=e):e=t[0],e}export{vo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as I,b as ne,C as X,D as xs,j as s,B as je,r as M,F as ps,E as We,a as te,v as gs,K as Ct,d as Le,p as J,G as Ce,l as O,H as bs,I as js,J as vs,M as ys,P as Ss,q as _s,t as oe,s as Ns,i as wt,e as Ve,u as we,L as Cs,R as ws,U as ks,V as Is,W as As,m as zs,X as $s,O as Ts,Y as Os}from"./index-BSxh64hl.js";import{u as re,S as qe,a as Ke,b as ee,c as K,d as H,e as kt,f as Ms,g as It,h as Es,i as he,j as Ps,k as Ds,l as Fs}from"./sidebar-Da7wzFWC.js";import{u as Ye}from"./use-mobile-jR7vc4lZ.js";import{C as Rs,p as Ee,s as Ls,b as Hs,S as Bs,d as Us,e as Gs,c as Ws,n as Vs}from"./self-tool-result-Cha3UFDj.js";import{f as qs,a as At,e as zt,g as Ks,D as Ys,h as Xs,d as Qs}from"./dialog-7Hh4EEds.js";import{f as Js}from"./tab-id-BijBBRwE.js";import{u as $t}from"./use-mcp-client-C8CUpc9I.js";import{C as Zs,W as Tt,g as en,S as Ot,a as _e,i as tn,b as sn}from"./constants-BHDe7bIw.js";import{i as Mt}from"./XCircle-D_1ilOF2.js";import{S as se}from"./skeleton-CFpB1jha.js";import{i as Et}from"./LayoutLeft-DFfT9PNh.js";import{t as Xe}from"./ChevronDown-D4DHAf0j.js";import{T as le,a as ae,b as ce,c as Pt}from"./tooltip-Di8Co4Sg.js";import{u as Dt,a as Qe}from"./use-virtual-mcp-BoNQ0wEI.js";import{A as de,t as nn,a as on,i as rn,b as ln,c as an,s as cn,d as dn}from"./agent-icon-gbgOnB97.js";import{P as fe,a as ke,b as Ie}from"./popover-tA9PDjW1.js";import{i as Ft}from"./Check-D3n4gRJc.js";import{s as xe}from"./Plus-BnnQdSS2.js";import{i as Rt}from"./SearchMd-CWXkSlvi.js";import{s as mn}from"./XClose-bVEi_3Z9.js";import{A as un,a as fn,b as hn,c as xn,d as pn,e as gn,f as bn}from"./alert-dialog-AMD4bxPu.js";import{F as jn,a as vn,b as yn,c as Sn,d as _n,e as Nn,f as Cn}from"./form-DNDzmHY7.js";import{I as wn}from"./input-HA5GlV6J.js";import{S as kn,u as In,C as An}from"./chat-context-BIBgMmSP.js";import{T as me}from"./toolbar-icon-button-BPMkXTme.js";import{D as Lt,a as Ht,b as Bt}from"./drawer-C9w90-t7.js";import{G as zn}from"./use-registry-app-CDi6-sFg.js";import{G as $n}from"./github-repo-picker-C9Dg6j7e.js";import{u as Ut,a as Je,b as Tn,T as On}from"./hooks-8LO2nFxS.js";import{r as Mn,u as Ze,f as En}from"./shell-layout-ChVVxyRA.js";import{u as Pn,g as Dn,a as Fn,b as Rn,S as Gt}from"./use-navigate-to-agent-DJUvOfFB.js";import{g as Ln,a as Wt,u as Hn,A as Bn,b as Un}from"./use-deco-credits-CbKP4RkY.js";import{f as Gn}from"./reusable-new-chat-CouMjkYR.js";import{A as He}from"./avatar-D8cqehrs.js";import{a as Wn}from"./Copy01-D0NIZWk6.js";import{n as Vn,i as qn}from"./Globe01-CtGNOAC_.js";import{i as Kn}from"./ZoomOut-ZBq0pI6d.js";import{i as ot,a as Yn}from"./ZapSquare-CoeP1pL7.js";import{i as Be}from"./Monitor01-CCca9VX6.js";import{n as Xn,a as Qn}from"./Sun-CGU_J3YG.js";import{a as Ae}from"./Settings02-BOgQYQhy.js";import{i as Jn}from"./Shield01-DROOCFo5.js";import{a as Zn}from"./Users03-Bq6sidtE.js";import{u as ei}from"./use-deployment-admin-DEHWWJw1.js";import"./index-CMdl54QV.js";import{t as Vt,i as rt}from"./UserPlus01-BuJJCUTQ.js";import{I as qt}from"./invite-member-dialog-BBhywTvU.js";import{v as ti,C as lt}from"./connect-desktop-dialog-DOTPKvtV.js";import{u as ze}from"./use-organization-settings-BZRqZCOI.js";import{i as si}from"./FilterLines-CZAAcWWi.js";import{T as ni,a as ii}from"./toggle-group-Ex1OojBb.js";import{C as oi,a as ri,b as li,c as ai,d as ci}from"./command-DRdHD2LV.js";import{u as Kt}from"./studio-tools-Bjw0Jr43.js";import{i as Yt}from"./Zap-DenhxUDB.js";import{S as Xt,M as di}from"./shell-controls-HQgubU7I.js";import{n as mi}from"./Stars02-BwTUcjpB.js";import{g as ui,u as fi,S as hi}from"./use-clock-tick-B5ExQuB8.js";import{a as xi}from"./format-time-BnbuEtat.js";import{i as pi}from"./ChevronRight-RInm-aVw.js";import{T as Q}from"./toolbar-J4RI9xFD.js";import"./X-C1Hb-T06.js";import"./integration-icon-CxEZQlxS.js";import"./Tool02-C3DiBnvC.js";import"./CheckCircle-C7IpeM2l.js";import"./companions-core-CMtMZANc.js";import"./extract-connection-data-CWqIHi--.js";import"./github-repo-scope-DjMZbiKa.js";import"./Eye-CuMpXJkc.js";import"./use-debounced-value--fL8uLzq.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./authenticate-and-persist-oauth-DwbkuScw.js";import"./mcp-oauth-D8kd56GU.js";import"./auth-DKNOF6Pv.js";import"./ArrowUpRight-M9tqNBZh.js";import"./use-collections-Dz-cDGRH.js";import"./AlertCircle-CasESeW6.js";import"./Tool01-C5UcZe4X.js";import"./ArrowUp-FPNlktOK.js";import"./TrendUp01-D4nDXsC7.js";import"./ChevronUp-Cu19ewZf.js";import"./Circle-D9nZXcv9.js";import"./DotsVertical-ZkH87H22.js";import"./Flag01-DiSJyFcN.js";import"./Star01-Dqxud4cG.js";import"./Globe04-CtsA--DL.js";import"./SwitchHorizontal01-CU1Z25ud.js";import"./HardDrive-B7Komd_c.js";import"./Image01-BAGsNaQU.js";import"./Key01-BDTnv2QH.js";import"./LinkExternal01-0cXhXnwo.js";import"./List-DUr-xsD7.js";import"./Package-BI2BjUtD.js";import"./Palette-DCkpyAzO.js";import"./Play-Bp-NfS7s.js";import"./SearchLg-CJDpvrzu.js";import"./Stars01-BQF4fDG0.js";import"./Trash01-CnVHiwXT.js";import"./Upload01-B1HnYX_L.js";import"./User01-DDQH6RKB.js";import"./Users01-BgsiD61H.js";import"./label-DNj28QS5.js";import"./autosend-4jNArwYp.js";import"./use-ai-providers-EAIs9V5s.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-bEeBCG8g.js";import"./decopilot-sse-pool-CAAPJES7.js";import"./backoff-CrEUbyZT.js";import"./use-mcp-tools-Cb9NQ6Rf.js";import"./collection-search-CDWYBpbb.js";import"./use-connection-Tzw-gM9_.js";import"./delay-CnY5UFtP.js";import"./required-auth-layout-DjUuTkxW.js";import"./use-org-sso-BYe3M43L.js";import"./connection-card-CO4Zt6un.js";import"./use-registry-connections-_izo0bxC.js";import"./useInfiniteQuery-uUKZgZ1F.js";import"./use-infinite-scroll-BXgYebaV.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./card-S6Aa8yjq.js";import"./select-Bml7Rs0T.js";import"./textarea-Z5OnX3vK.js";import"./connection-form-helpers-B3-hYGek.js";import"./collection-tabs-BedmQqrC.js";import"./badge-BD9n0Dfq.js";import"./useSuspenseInfiniteQuery-BUWsAQNT.js";import"./use-org-auth-client-DaulafqZ.js";import"./use-organization-roles-BtvYl6eT.js";import"./index-B941tipH.js";import"./differenceInSeconds-NQ4PDo0z.js";function gi(t){const e=I.c(15),{siteUrl:n}=t,o=ne(),{org:i}=X();let r;e[0]!==o||e[1]!==i.id||e[2]!==i.slug?(r=()=>{localStorage.setItem(xs.sidebarOpen(),JSON.stringify(!1)),o({to:"/$org/$taskId",params:{org:i.slug,taskId:crypto.randomUUID()},search:{virtualmcpid:en(i.id),main:Js(Tt.COMMERCE_DISCOVERY(i.id),Zs),sidepanel:0}})},e[0]=o,e[1]=i.id,e[2]=i.slug,e[3]=r):r=e[3];const l=r;let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(qs,{className:"bg-black/15 backdrop-blur-sm"}),e[4]=a):a=e[4];let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(At,{className:"sr-only",children:"Conecte suas ferramentas para ver o diagnóstico completo"}),e[5]=m):m=e[5];let c;e[6]!==l?(c=()=>s.jsxs("div",{className:"grid gap-4 p-6",children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"Não foi possível carregar as integrações. Você pode continuar e abrir o relatório mesmo assim."}),s.jsxs(je,{type:"button",size:"xl",className:"w-full",onClick:l,children:["Continuar",s.jsx(Mt,{size:18})]})]}),e[6]=l,e[7]=c):c=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Rs,{}),e[8]=d):d=e[8];let u;e[9]!==l||e[10]!==n?(u=s.jsx(M.Suspense,{fallback:d,children:s.jsx(yi,{siteUrlFromUrl:n,onComplete:l})}),e[9]=l,e[10]=n,e[11]=u):u=e[11];let f;return e[12]!==c||e[13]!==u?(f=s.jsx(zt,{open:!0,children:s.jsxs(Ks,{children:[a,s.jsxs(ps,{"data-slot":"commerce-connect-modal",onEscapeKeyDown:vi,onPointerDownOutside:ji,onInteractOutside:bi,className:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 flex h-[calc(100dvh-1rem)] w-full max-w-[calc(100%-1rem)] translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded-2xl border p-0 shadow-md duration-200 sm:max-w-lg md:h-auto md:max-h-[calc(100dvh-2rem)] lg:max-h-[calc(100dvh-4rem)] lg:max-w-5xl",children:[m,s.jsx(We,{fallback:c,children:u})]})]})}),e[12]=c,e[13]=u,e[14]=f):f=e[14],f}function bi(t){return t.preventDefault()}function ji(t){return t.preventDefault()}function vi(t){return t.preventDefault()}function yi({siteUrlFromUrl:t,onComplete:e}){const{org:n}=X(),{data:o}=te.useSession(),i=Tt.COMMERCE_DISCOVERY(n.id),r=$t({connectionId:Ot,orgId:n.id,orgSlug:n.slug}),a=gs({queryKey:Ct.commerceDiscoveryConnection(n.id,i),queryFn:async()=>{const v=await r.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:i}});return Ee(v)},retry:!1}).data.item,m=typeof a?.metadata?.siteUrl=="string"?a.metadata.siteUrl:void 0,c=t||m,d=Ls(c),[u,f]=M.useState(!0),[h,x]=M.useState(null),g=Le({mutationFn:async v=>Ee(await r.callTool({name:"COMMERCE_DISCOVERY_SETUP",arguments:{siteUrl:v}})),retry:!1}),p=Le({mutationFn:async v=>Ee(await r.callTool({name:"COMMERCE_DISCOVERY_RUN",arguments:{siteUrl:v}})),retry:!1}),b=Hs({siteUrl:c,email:o?.user?.email}),j=async()=>{x(null),J("commerce_onboarding_open_report_clicked",{domain:d??void 0,organization_id:n.id});const v=c?Vs(c):null;if(v?.ok)try{let y=await p.mutateAsync(v.value);if(y.triggered||(J("commerce_onboarding_run_reclaim",{domain:d??void 0,organization_id:n.id,reason:y.reason??"not_upgraded"}),await g.mutateAsync(v.value),y=await p.mutateAsync(v.value)),!y.triggered){J("commerce_onboarding_run_failed",{domain:d??void 0,organization_id:n.id,error:y.reason??"not_triggered"}),x("Não foi possível gerar o relatório para este site. Recarregue a página e tente novamente.");return}}catch(y){J("commerce_onboarding_run_failed",{domain:d??void 0,organization_id:n.id,error:y instanceof Error?y.message:String(y)}),x("Algo deu errado ao gerar seu relatório. Tente novamente em instantes.");return}e()};return s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col lg:flex-row",children:[s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-4 p-4 lg:gap-6 lg:bg-sidebar lg:p-10",children:[d?s.jsx(Bs,{host:d}):null,s.jsx(Us,{org:n,cdConnectionId:i,siteUrl:c,onReadinessChange:f}),s.jsxs("div",{className:"flex shrink-0 flex-col gap-3",children:[s.jsx(Gs,{href:b,orgId:n.id,className:"lg:hidden"}),h?s.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:h}):null,s.jsxs(je,{type:"button",size:"xl",className:"w-full rounded-2xl text-base font-medium whitespace-normal h-auto py-3",onClick:()=>{j()},disabled:p.isPending||!u,children:[p.isPending?"Abrindo relatório...":u?"Ver relatório completo":"Conecte uma ferramenta para continuar",!p.isPending&&u?s.jsx(Mt,{size:18}):null]})]})]}),s.jsx("aside",{className:"hidden lg:flex lg:w-[380px] lg:shrink-0 lg:items-center lg:justify-center lg:overflow-y-auto lg:border-l lg:border-border lg:bg-muted",children:s.jsx(Ws,{href:b,orgId:n.id})})]})}function Si(t){const e=I.c(5),{onPointerDown:n,onDoubleClick:o}=t,{state:i,isMobile:r}=re();if(r||i==="collapsed")return null;let l,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={left:"var(--sidebar-width)"},a=s.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border"}),e[0]=l,e[1]=a):(l=e[0],a=e[1]);let m;return e[2]!==o||e[3]!==n?(m=s.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar",title:"Drag to resize, double-click to reset",onPointerDown:n,onDoubleClick:o,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize",style:l,children:a}),e[2]=o,e[3]=n,e[4]=m):m=e[4],m}const et=240,_i=400,Ni="sidebar.width";function pe(t){return Math.max(et,Math.min(_i,t))}function Ci(){const t=I.c(11),[e,n]=Ce(Ni,wi),o=M.useRef(null);let i;t[0]!==n||t[1]!==e?(i=d=>{d.preventDefault();const u=d.clientX,f=pe(e),h=o.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),x=h?Array.from(h.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const b of x)b.style.transition="none";const g=b=>{const j=pe(f+(b.clientX-u));h?.style.setProperty("--sidebar-width",`${j}px`)},p=b=>{const j=pe(f+(b.clientX-u));n(j);for(const v of x)v.style.transition="";window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",p),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",g),window.addEventListener("pointerup",p)},t[0]=n,t[1]=e,t[2]=i):i=t[2];const r=i;let l;t[3]!==n?(l=()=>{n(et)},t[3]=n,t[4]=l):l=t[4];const a=l;let m;t[5]!==e?(m=pe(e),t[5]=e,t[6]=m):m=t[6];let c;return t[7]!==r||t[8]!==a||t[9]!==m?(c={width:m,wrapperRef:o,onStartResize:r,resetWidth:a},t[7]=r,t[8]=a,t[9]=m,t[10]=c):c=t[10],c}function wi(t){return typeof t=="number"?pe(t):et}function Qt(){return[]}function Jt(t){const e=I.c(3),{children:n}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-16 rounded-full bg-sidebar-foreground/15"})}),e[0]=o):o=e[0];let i;return e[1]!==n?(i=s.jsxs(qe,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[o,s.jsx(Ke,{children:s.jsx(ee,{className:"gap-0.5",children:n})})]}),e[1]=n,e[2]=i):i=e[2],i}function Zt(t){const e=I.c(18),{item:n}=t,{isMobile:o,setOpenMobile:i}=re();let r;e[0]!==o||e[1]!==n||e[2]!==i?(r=()=>{J("nav_item_clicked",{nav_key:n.key,nav_label:n.label,is_active:!!n.isActive,is_mobile:o}),n.onClick?.(),o&&i(!1)},e[0]=o,e[1]=n,e[2]=i,e[3]=r):r=e[3];const l=r,a=n.key,m=n.isActive&&"z-10";let c;e[4]!==m?(c=O(m),e[4]=m,e[5]=c):c=e[5];let d;e[6]!==n.label?(d=s.jsx("span",{children:n.label}),e[6]=n.label,e[7]=d):d=e[7];let u;e[8]!==l||e[9]!==n.icon||e[10]!==n.isActive||e[11]!==n.label||e[12]!==d?(u=s.jsxs(K,{onClick:l,isActive:n.isActive,tooltip:n.label,children:[n.icon,d]}),e[8]=l,e[9]=n.icon,e[10]=n.isActive,e[11]=n.label,e[12]=d,e[13]=u):u=e[13];let f;return e[14]!==n.key||e[15]!==c||e[16]!==u?(f=s.jsx(H,{className:c,children:u},a),e[14]=n.key,e[15]=c,e[16]=u,e[17]=f):f=e[17],f}function ki(t){const e=I.c(12),{section:n}=t;switch(n.type){case"divider":{let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(kt,{className:"my-2"}),e[0]=o):o=e[0],o}case"spacer":{let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1"}),e[1]=o):o=e[1],o}case"group":{const o=n.group.label,i=n.group.defaultExpanded;let r;e[2]!==n.group.items?(r=n.group.items.map(Ai),e[2]=n.group.items,e[3]=r):r=e[3];let l;return e[4]!==n.group.defaultExpanded||e[5]!==n.group.label||e[6]!==r?(l=s.jsx(Jt,{label:o,defaultExpanded:i,children:r}),e[4]=n.group.defaultExpanded,e[5]=n.group.label,e[6]=r,e[7]=l):l=e[7],l}case"items":{let o;e[8]!==n.items?(o=n.items.map(Ii),e[8]=n.items,e[9]=o):o=e[9];let i;return e[10]!==o?(i=s.jsx(qe,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ke,{children:s.jsx(ee,{className:"gap-1.5",children:o})})}),e[10]=o,e[11]=i):i=e[11],i}case"custom":return n.content}}function Ii(t){return s.jsx(Zt,{item:t},t.key)}function Ai(t){return s.jsx(Zt,{item:t},t.key)}function zi(t){const e=I.c(17),{sections:n,footer:o,additionalContent:i,header:r,variant:l,contentClassName:a}=t,m=l===void 0?"sidebar":l;let c;e[0]!==r?(c=r&&s.jsx(Ms,{className:"sidebar-titlebar wco-drag shrink-0 h-12 flex flex-row items-center px-2 py-0 group-data-[collapsible=icon]/sidebar:hidden",children:r}),e[0]=r,e[1]=c):c=e[1];let d;e[2]!==a?(d=O("flex flex-col flex-1 px-2 pb-2 gap-0.5",a),e[2]=a,e[3]=d):d=e[3];let u;e[4]!==n?(u=n.map($i),e[4]=n,e[5]=u):u=e[5];let f;e[6]!==i?(f=i&&s.jsx("div",{className:"flex flex-col flex-1 min-h-0 group-data-[state=collapsed]/sidebar:mt-1 group-data-[state=expanded]/sidebar:mt-2",children:i}),e[6]=i,e[7]=f):f=e[7];let h;e[8]!==d||e[9]!==u||e[10]!==f?(h=s.jsxs(It,{className:d,children:[u,f]}),e[8]=d,e[9]=u,e[10]=f,e[11]=h):h=e[11];let x;return e[12]!==o||e[13]!==c||e[14]!==h||e[15]!==m?(x=s.jsxs(Es,{variant:m,children:[c,h,o]}),e[12]=o,e[13]=c,e[14]=h,e[15]=m,e[16]=x):x=e[16],x}function $i(t,e){return s.jsx(ki,{section:t},e)}function es(t){const e=I.c(2);let n;return e[0]!==t?(n=s.jsx(zi,{...t}),e[0]=t,e[1]=n):n=e[1],n}es.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,n)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(se,{className:"h-full bg-sidebar-accent rounded-md"})},n))})};function ts(t){return t.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Ti=bs({name:js().min(2,"Organization name is required")});function Oi(t){const e=I.c(41),{open:n,onOpenChange:o}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={resolver:vs(Ti),defaultValues:{name:""}},e[0]=i):i=e[0];const r=ys(i);let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={mutationFn:Ei,onSuccess:Mi},e[1]=l):l=e[1];const a=Le(l),m=a.error instanceof Error?a.error.message:a.error?"Failed to create organization.":null;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsxs(hn,{children:[s.jsx(xn,{children:"Create a new organization"}),s.jsx(pn,{children:"Set up a new organization to collaborate with others."})]}),e[2]=c):c=e[2];let d;if(e[3]!==a||e[4]!==r){let _;e[6]!==a?(_=N=>a.mutateAsync(N),e[6]=a,e[7]=_):_=e[7],d=r.handleSubmit(_),e[3]=a,e[4]=r,e[5]=d}else d=e[5];let u;e[8]!==r.formState.isSubmitting?(u=_=>{const{field:N}=_;return s.jsxs(yn,{children:[s.jsx(Sn,{children:"Organization Name"}),s.jsx(_n,{children:s.jsx(wn,{...N,placeholder:"Acme Inc.",disabled:r.formState.isSubmitting})}),s.jsx(Nn,{children:"The name of your company or organization"}),N.value&&s.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["Organization URL:"," ",s.jsxs("span",{className:"font-mono",children:[typeof window<"u"?globalThis.location.origin:"","/",ts(N.value)]})]}),s.jsx(Cn,{})]})},e[8]=r.formState.isSubmitting,e[9]=u):u=e[9];let f;e[10]!==r.control||e[11]!==u?(f=s.jsx(jn,{control:r.control,name:"name",render:u}),e[10]=r.control,e[11]=u,e[12]=f):f=e[12];let h;e[13]!==m?(h=m&&s.jsx("div",{className:"text-destructive text-sm mt-2",children:m}),e[13]=m,e[14]=h):h=e[14];let x;e[15]!==a||e[16]!==r?(x=()=>{a.reset(),r.reset()},e[15]=a,e[16]=r,e[17]=x):x=e[17];let g;e[18]!==r.formState.isSubmitting||e[19]!==x?(g=s.jsx(un,{disabled:r.formState.isSubmitting,onClick:x,children:"Cancel"}),e[18]=r.formState.isSubmitting,e[19]=x,e[20]=g):g=e[20];const p=!r.formState.isValid||r.formState.isSubmitting;let b;e[21]!==r.formState.isSubmitting?(b=r.formState.isSubmitting?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(kn,{size:"xs"})," Creating..."]}):"Create Organization",e[21]=r.formState.isSubmitting,e[22]=b):b=e[22];let j;e[23]!==p||e[24]!==b?(j=s.jsx(je,{type:"submit",variant:"default",disabled:p,children:b}),e[23]=p,e[24]=b,e[25]=j):j=e[25];let v;e[26]!==j||e[27]!==g?(v=s.jsxs(gn,{children:[g,j]}),e[26]=j,e[27]=g,e[28]=v):v=e[28];let y;e[29]!==v||e[30]!==d||e[31]!==f||e[32]!==h?(y=s.jsxs("form",{className:"space-y-6",onSubmit:d,autoComplete:"off",children:[f,h,v]}),e[29]=v,e[30]=d,e[31]=f,e[32]=h,e[33]=y):y=e[33];let S;e[34]!==r||e[35]!==y?(S=s.jsxs(fn,{children:[c,s.jsx(vn,{...r,children:y})]}),e[34]=r,e[35]=y,e[36]=S):S=e[36];let C;return e[37]!==o||e[38]!==n||e[39]!==S?(C=s.jsx(bn,{open:n,onOpenChange:o,children:S}),e[37]=o,e[38]=n,e[39]=S,e[40]=C):C=e[40],C}function Mi(t){const{orgSlug:e}=t;window.location.href=`/${e}`}async function Ei(t){const e=ts(t.name);if(!e)throw new Error("Organization slug is invalid");const n=await te.organization.create({name:t.name,slug:e});if(n?.error)throw new Error(n.error.message||"Failed to create organization");const o=n?.data?.slug??e;if(!o)throw new Error("Failed to create organization");return{orgSlug:o}}function ss(){const t=M.useContext(Ss),{data:e,refetch:n}=t.hooks.useListUserInvitations();return{invitations:(e??[]).filter(i=>i.status==="pending"&&new Date(i.expiresAt)>new Date),refetch:()=>n?.()}}function Pi(t){let e=0;for(let o=0;o<t.length;o++)e=t.charCodeAt(o)+((e<<5)-e);const n=Math.abs(e)%360;return{backgroundColor:`hsl(${n} 55% 70%)`,color:`hsl(${n} 55% 20%)`}}function $e(t){const e=I.c(13),{org:n,size:o}=t,i=o===void 0?"sm":o,r=i==="xs"?"size-5":"size-6",l=i==="xs"?"text-[9px]":"text-xs";let a;e[0]!==r?(a=O(r,"shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden"),e[0]=r,e[1]=a):a=e[1];let m;e[2]!==n.logo||e[3]!==n.name?(m=n.logo?void 0:Pi(n.name),e[2]=n.logo,e[3]=n.name,e[4]=m):m=e[4];let c;e[5]!==n.logo||e[6]!==n.name||e[7]!==l?(c=n.logo?s.jsx("img",{src:n.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:O("font-semibold leading-none",l),children:n.name.slice(0,2).toUpperCase()}),e[5]=n.logo,e[6]=n.name,e[7]=l,e[8]=c):c=e[8];let d;return e[9]!==a||e[10]!==m||e[11]!==c?(d=s.jsx("div",{className:a,style:m,children:c}),e[9]=a,e[10]=m,e[11]=c,e[12]=d):d=e[12],d}function Di({invitation:t,onChanged:e}){const[n,o]=M.useState(!1),i=t.organizationName??"Unknown organization",r=async()=>{o(!0);try{const m=await te.organization.acceptInvitation({invitationId:t.id});if(m.error){oe.error(m.error.message),o(!1);return}}catch{oe.error("Failed to accept invitation"),o(!1);return}oe.success(`Joined ${i}`),Ns();let a;try{a=(await te.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=a?`/${a}`:"/"},l=async()=>{o(!0);try{const a=await te.organization.rejectInvitation({invitationId:t.id});if(a.error){oe.error(a.error.message),o(!1);return}oe.success("Invitation declined"),o(!1),e()}catch{oe.error("Failed to decline invitation"),o(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[s.jsx($e,{org:{name:i},size:"sm"}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"truncate text-sm font-medium",children:i}),s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:"Invited to join"})]}),s.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[s.jsx(je,{size:"sm",variant:"default",className:"h-7 text-xs",onClick:r,disabled:n,children:"Accept"}),s.jsx(je,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground",onClick:l,disabled:n,"aria-label":`Decline invitation to ${i}`,children:s.jsx(mn,{size:14})})]})]})}function Fi(t){const e=I.c(29),{orgParam:n,onSelectOrg:o,onCreateOrg:i}=t,{data:r}=_s(),{invitations:l,refetch:a}=ss();let m;e[0]!==n?(m=(k,$)=>k.slug===n?-1:$.slug===n?1:k.name.localeCompare($.name),e[0]=n,e[1]=m):m=e[1];const c=[...r??[]].sort(m),[d,u]=M.useState(""),f=d.toLowerCase(),h=f?c.filter(k=>k.name.toLowerCase().includes(f)||k.slug.toLowerCase().includes(f)):c;let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Rt,{size:16,className:"shrink-0 text-muted-foreground/60"}),e[2]=x):x=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=k=>u(k.target.value),e[3]=g):g=e[3];let p;e[4]!==d?(p=k=>k.key==="Escape"&&d&&u(""),e[4]=d,e[5]=p):p=e[5];let b;e[6]!==d||e[7]!==p?(b=s.jsx("input",{"data-org-switcher-search":!0,autoFocus:!0,type:"text",value:d,onChange:g,onKeyDown:p,placeholder:"Search organizations...",className:"flex-1 min-w-0 bg-transparent text-sm outline-none placeholder:text-muted-foreground/60"}),e[6]=d,e[7]=p,e[8]=b):b=e[8];let j;e[9]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(xe,{size:16}),e[9]=j):j=e[9];let v;e[10]!==i?(v=s.jsx("button",{type:"button",onClick:i,className:"flex items-center justify-center size-7 rounded-md text-muted-foreground hover:bg-accent/50 hover:text-foreground transition-colors",children:j}),e[10]=i,e[11]=v):v=e[11];let y;e[12]!==b||e[13]!==v?(y=s.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b border-border/50",children:[x,b,v]}),e[12]=b,e[13]=v,e[14]=y):y=e[14];const S="flex-1 min-h-0 overflow-y-auto p-1.5 flex flex-col gap-1";let C;e[15]!==l||e[16]!==d||e[17]!==a?(C=!d&&l.map(k=>s.jsx(Di,{invitation:k,onChanged:a},k.id)),e[15]=l,e[16]=d,e[17]=a,e[18]=C):C=e[18];const _=h.length===0&&s.jsx("p",{className:"px-3 py-4 text-sm text-muted-foreground/60 text-center",children:d?`No organizations match "${d}"`:"No organizations available"});let N;e[19]!==o||e[20]!==n?(N=k=>s.jsxs("button",{type:"button",onClick:()=>o(k.slug),className:O("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",k.slug===n?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50"),children:[s.jsx($e,{org:k,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:k.name}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:k.slug})]}),k.slug===n&&s.jsx(Ft,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},k.id),e[19]=o,e[20]=n,e[21]=N):N=e[21];const w=h.map(N);let A;e[22]!==C||e[23]!==_||e[24]!==w?(A=s.jsxs("div",{className:S,children:[C,_,w]}),e[22]=C,e[23]=_,e[24]=w,e[25]=A):A=e[25];let z;return e[26]!==A||e[27]!==y?(z=s.jsxs(s.Fragment,{children:[y,A]}),e[26]=A,e[27]=y,e[28]=z):z=e[28],z}function ns(t){const e=I.c(22),{trigger:n,orgParam:o,align:i,side:r}=t,l=i===void 0?"start":i,a=r===void 0?"bottom":r,m=ne(),[c,d]=M.useState(!1),[u,f]=M.useState(!1);let h;e[0]!==n?(h=s.jsx(fe,{asChild:!0,children:n}),e[0]=n,e[1]=h):h=e[1];const x=String(c);let g;e[2]!==m?(g=C=>{d(!1),m({to:"/$org",params:{org:C}})},e[2]=m,e[3]=g):g=e[3];let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{d(!1),f(!0)},e[4]=p):p=e[4];let b;e[5]!==o||e[6]!==x||e[7]!==g?(b=s.jsx(Fi,{orgParam:o,onSelectOrg:g,onCreateOrg:p},x),e[5]=o,e[6]=x,e[7]=g,e[8]=b):b=e[8];let j;e[9]!==l||e[10]!==a||e[11]!==b?(j=s.jsx(ke,{side:a,align:l,sideOffset:8,collisionPadding:16,className:"w-[300px] p-0 flex flex-col max-h-[440px]",onOpenAutoFocus:Li,onCloseAutoFocus:Ri,children:b}),e[9]=l,e[10]=a,e[11]=b,e[12]=j):j=e[12];let v;e[13]!==c||e[14]!==h||e[15]!==j?(v=s.jsxs(Ie,{open:c,onOpenChange:d,children:[h,j]}),e[13]=c,e[14]=h,e[15]=j,e[16]=v):v=e[16];let y;e[17]!==u?(y=s.jsx(Oi,{open:u,onOpenChange:f}),e[17]=u,e[18]=y):y=e[18];let S;return e[19]!==y||e[20]!==v?(S=s.jsxs(s.Fragment,{children:[v,y]}),e[19]=y,e[20]=v,e[21]=S):S=e[21],S}function Ri(t){return t.preventDefault()}function Li(t){t.preventDefault(),t.currentTarget?.querySelector("[data-org-switcher-search]")?.focus()}function Hi(t){const e=I.c(21),{value:n,onChange:o,placeholder:i,onKeyDown:r,className:l,isSearching:a,disabled:m}=t,c=i===void 0?"Search...":i;let d;e[0]!==l?(d=O("shrink-0 w-full border-b border-border h-12",l),e[0]=l,e[1]=d):d=e[1];const u=m?"cursor-not-allowed opacity-50":"cursor-text";let f;e[2]!==u?(f=O("flex items-center gap-2.5 h-12 px-4",u),e[2]=u,e[3]=f):f=e[3];let h;e[4]!==a?(h=a?s.jsx(wt,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):s.jsx(Rt,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=a,e[5]=h):h=e[5];let x;e[6]!==o?(x=j=>o(j.target.value),e[6]=o,e[7]=x):x=e[7];let g;e[8]!==m||e[9]!==r||e[10]!==c||e[11]!==x||e[12]!==n?(g=s.jsx("input",{type:"text",value:n,onChange:x,onKeyDown:r,placeholder:c,disabled:m,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=m,e[9]=r,e[10]=c,e[11]=x,e[12]=n,e[13]=g):g=e[13];let p;e[14]!==f||e[15]!==h||e[16]!==g?(p=s.jsxs("label",{className:f,children:[h,g]}),e[14]=f,e[15]=h,e[16]=g,e[17]=p):p=e[17];let b;return e[18]!==d||e[19]!==p?(b=s.jsx("div",{className:d,children:p}),e[18]=d,e[19]=p,e[20]=b):b=e[20],b}const Bi="Select an existing agent";function Ui(t){const e=I.c(5),{children:n}=t;let o;e[0]!==n?(o=s.jsx(le,{asChild:!0,children:n}),e[0]=n,e[1]=o):o=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ae,{side:"right",sideOffset:8,children:Bi}),e[2]=i):i=e[2];let r;return e[3]!==o?(r=s.jsxs(ce,{defaultOpen:!0,delayDuration:0,children:[o,i]}),e[3]=o,e[4]=r):r=e[4],r}function Gi(t){const e=ne(),{create:n}=Ut(),{locator:o}=X(),i=Ve({strict:!1}),r=we({strict:!1});return async l=>{const a=crypto.randomUUID(),m=l===r.virtualmcpid?Mn(t,o,i.taskId??""):null;try{await n({id:a,virtual_mcp_id:l,...m?{branch:m}:{}})}catch{}e({to:"/$org/$taskId",params:{org:t,taskId:a},search:{virtualmcpid:l}})}}function Pe(t){const e=I.c(20),{agent:n,selected:o,onClick:i}=t,r=o?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50";let l;e[0]!==r?(l=O("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",r),e[0]=r,e[1]=l):l=e[1];let a;e[2]!==n.icon||e[3]!==n.title?(a=s.jsx(de,{icon:n.icon,name:n.title,size:"xs",className:"shrink-0"}),e[2]=n.icon,e[3]=n.title,e[4]=a):a=e[4];let m;e[5]!==n.title?(m=s.jsx("p",{className:"text-sm font-medium truncate",children:n.title}),e[5]=n.title,e[6]=m):m=e[6];let c;e[7]!==n.description?(c=n.description&&s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:n.description}),e[7]=n.description,e[8]=c):c=e[8];let d;e[9]!==m||e[10]!==c?(d=s.jsxs("div",{className:"flex-1 min-w-0",children:[m,c]}),e[9]=m,e[10]=c,e[11]=d):d=e[11];let u;e[12]!==o?(u=o&&s.jsx(Ft,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[12]=o,e[13]=u):u=e[13];let f;return e[14]!==i||e[15]!==l||e[16]!==a||e[17]!==d||e[18]!==u?(f=s.jsxs("button",{type:"button",onClick:i,className:l,children:[a,d,u]}),e[14]=i,e[15]=l,e[16]=a,e[17]=d,e[18]=u,e[19]=f):f=e[19],f}function at(t){const e=I.c(5),{children:n,action:o}=t;let i;e[0]!==n?(i=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:n}),e[0]=n,e[1]=i):i=e[1];let r;return e[2]!==o||e[3]!==i?(r=s.jsxs("div",{className:"flex items-center justify-between px-3 pb-1 pt-2",children:[i,o]}),e[2]=o,e[3]=i,e[4]=r):r=e[4],r}function Wi(t){const e=I.c(27),{onClose:n,onSelectAgent:o,selectedAgentId:i,onImportFromGithub:r}=t,[l,a]=M.useState(""),m=Dt(),c=m??[],{org:d}=X(),{data:u}=te.useSession(),f=u?.user?.id??"anon",h=Dn(m),x=Fn(),g=Gi(d.slug),p=Ln(m),b=l.toLowerCase(),j=c.filter(Yi).filter(V=>!p.has(V.id)).filter(Ki).filter(V=>!l||V.title.toLowerCase().includes(b)),v=j.filter(qi),y=j.filter(Vi),S=_e(d.id),C=!l||S.title.toLowerCase().includes(b),_=!!(o&&C);let N;e[0]!==n||e[1]!==o?(N=()=>{o?.(null),n(),a("")},e[0]=n,e[1]=o,e[2]=N):N=e[2];const w=N,A=V=>{if(o){o(V.id),n(),a("");return}Rn({orgId:d.id,userId:f},V.id,h),x(),n(),a(""),g(V.id)},z="flex flex-col max-h-[min(640px,80dvh)]";let k;e[3]!==l?(k=s.jsx(Hi,{value:l,onChange:a,placeholder:"Search agents..."}),e[3]=l,e[4]=k):k=e[4];const $="overflow-y-auto flex-1 min-h-0 p-1.5 flex flex-col gap-0.5",D=o&&C&&S&&s.jsx(Pe,{agent:S,selected:!i||i===S.id,onClick:w}),R=y.length>0&&s.jsx(at,{children:"Agents"}),B=y.map(V=>s.jsx(Pe,{agent:V,selected:o?i===V.id:void 0,onClick:()=>A(V)},V.id)),L=(v.length>0||!l)&&s.jsx(at,{action:s.jsxs("button",{type:"button",onClick:r,className:"flex items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground",children:[s.jsx(zn,{className:"size-3.5"}),"Import"]}),children:"Code Agents"}),P=v.map(V=>s.jsx(Pe,{agent:V,selected:o?i===V.id:void 0,onClick:()=>A(V)},V.id));let E;e[5]!==_||e[6]!==l||e[7]!==j.length?(E=j.length===0&&!_&&l&&s.jsx("div",{className:"flex items-center justify-center py-6 text-xs text-muted-foreground",children:"No agents found"}),e[5]=_,e[6]=l,e[7]=j.length,e[8]=E):E=e[8];let F;e[9]!==E||e[10]!==D||e[11]!==R||e[12]!==B||e[13]!==L||e[14]!==P?(F=s.jsxs("div",{className:$,children:[D,R,B,L,P,E]}),e[9]=E,e[10]=D,e[11]=R,e[12]=B,e[13]=L,e[14]=P,e[15]=F):F=e[15];let U;e[16]!==d.slug?(U={org:d.slug},e[16]=d.slug,e[17]=U):U=e[17];let G;e[18]!==n?(G=()=>n(),e[18]=n,e[19]=G):G=e[19];let W;e[20]!==U||e[21]!==G?(W=s.jsx("div",{className:"border-t border-border px-3 py-2.5",children:s.jsx(Cs,{to:"/$org/settings/agents",params:U,onClick:G,className:"text-xs text-muted-foreground hover:text-foreground transition-colors flex items-center justify-center",children:"See all agents"})}),e[20]=U,e[21]=G,e[22]=W):W=e[22];let Y;return e[23]!==F||e[24]!==W||e[25]!==k?(Y=s.jsxs("div",{className:z,children:[k,F,W]}),e[23]=F,e[24]=W,e[25]=k,e[26]=Y):Y=e[26],Y}function Vi(t){return!Wt(t.metadata)}function qi(t){return Wt(t.metadata)}function Ki(t){return!sn(t.id)}function Yi(t){return!tn(t.id)}function Xi(t){const e=I.c(31);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{compact:o,trigger:i,onSelectAgent:r,selectedAgentId:l,side:a,align:m}=n,c=o===void 0?!1:o,d=a===void 0?"right":a,u=m===void 0?"start":m,[f,h]=M.useState(!1),[x,g]=M.useState(!1),p=Ye(),{setOpenMobile:b}=re(),j=Pn(),v=j?"border border-border":void 0;let y;e[2]!==j?(y=R=>j?s.jsx(Ui,{children:R}):R,e[2]=j,e[3]=y):y=e[3];const S=y;let C;e[4]!==p||e[5]!==b?(C=()=>{h(!1),p&&b(!1)},e[4]=p,e[5]=b,e[6]=C):C=e[6];const _=C;let N;e[7]!==_?(N=()=>{_(),g(!0)},e[7]=_,e[8]=N):N=e[8];const w=N;let A;e[9]!==_||e[10]!==w||e[11]!==r||e[12]!==f||e[13]!==l?(A=f&&s.jsx(M.Suspense,{fallback:s.jsx("div",{className:"flex items-center justify-center py-8",children:s.jsx(se,{className:"h-4 w-24"})}),children:s.jsx(Wi,{onClose:_,onSelectAgent:r,selectedAgentId:l,onImportFromGithub:w})}),e[9]=_,e[10]=w,e[11]=r,e[12]=f,e[13]=l,e[14]=A):A=e[14];const z=A;let k;e[15]!==u||e[16]!==c||e[17]!==v||e[18]!==j||e[19]!==p||e[20]!==f||e[21]!==z||e[22]!==d||e[23]!==i||e[24]!==S?(k=p?s.jsxs(s.Fragment,{children:[i?s.jsx("button",{type:"button",onClick:()=>h(!0),className:"contents",children:i}):c?S(s.jsx(me,{"aria-label":"Browse agents",className:O(v),onClick:()=>{J("agent_browser_opened",{surface:"mobile_drawer"}),h(!0)},children:s.jsx(xe,{className:"size-4"})})):s.jsx(H,{children:S(s.jsxs(K,{tooltip:j?void 0:"Browse agents",className:O(v),onClick:()=>{J("agent_browser_opened",{surface:"mobile_drawer"}),h(!0)},children:[s.jsx(xe,{}),s.jsx("span",{children:"New agent"})]}))}),s.jsx(Lt,{open:f,onOpenChange:h,direction:"bottom",children:s.jsxs(Ht,{className:"max-h-[85dvh] p-0",children:[s.jsx(Bt,{className:"sr-only",children:"Browse agents"}),z]})})]}):s.jsxs(Ie,{open:f,onOpenChange:R=>{R&&!f&&J("agent_browser_opened",{surface:"desktop_popover"}),h(R)},children:[i?s.jsx(fe,{asChild:!0,children:i}):c?S(s.jsx(fe,{asChild:!0,children:s.jsx(me,{"aria-label":"Browse agents",className:O(v),children:s.jsx(xe,{className:"size-4"})})})):s.jsx(H,{children:S(s.jsx(fe,{asChild:!0,children:s.jsxs(K,{tooltip:j?void 0:"Browse agents",className:O(v),children:[s.jsx(xe,{}),s.jsx("span",{children:"New agent"})]})}))}),s.jsx(ke,{className:"w-[380px] p-0 overflow-hidden",side:d,align:u,children:z})]}),e[15]=u,e[16]=c,e[17]=v,e[18]=j,e[19]=p,e[20]=f,e[21]=z,e[22]=d,e[23]=i,e[24]=S,e[25]=k):k=e[25];let $;e[26]!==x?($=s.jsx($n,{open:x,onOpenChange:g,mode:"agent"}),e[26]=x,e[27]=$):$=e[27];let D;return e[28]!==$||e[29]!==k?(D=s.jsxs(s.Fragment,{children:[k,$]}),e[28]=$,e[29]=k,e[30]=D):D=e[30],D}const Qi="wco-no-drag inline-flex items-center gap-1.5 min-w-0 rounded-md pl-1 pr-2 py-1.5 text-sm text-foreground hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50";function Ji(t){const e=I.c(19),{agentId:n,fallback:o,onOpenHome:i,onPick:r}=t,l=Qe(n)??o??null,a=l?.title??"Super Agent",m=`Open ${a} home`,c=l?.icon??null;let d;e[0]!==c||e[1]!==a?(d=s.jsx(de,{icon:c,name:a,size:"xs"}),e[0]=c,e[1]=a,e[2]=d):d=e[2];let u;e[3]!==i||e[4]!==m||e[5]!==d?(u=s.jsx("button",{type:"button",onClick:i,"aria-label":m,className:"wco-no-drag flex items-center shrink-0 rounded-md p-1 hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:d}),e[3]=i,e[4]=m,e[5]=d,e[6]=u):u=e[6];let f;e[7]!==a?(f=s.jsx("span",{className:"truncate font-medium max-w-[8rem]",children:a}),e[7]=a,e[8]=f):f=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(Xe,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),e[9]=h):h=e[9];let x;e[10]!==f?(x=s.jsxs("button",{type:"button",className:Qi,children:[f,h]}),e[10]=f,e[11]=x):x=e[11];let g;e[12]!==n||e[13]!==r||e[14]!==x?(g=s.jsx(Xi,{side:"bottom",align:"start",selectedAgentId:n,onSelectAgent:r,trigger:x}),e[12]=n,e[13]=r,e[14]=x,e[15]=g):g=e[15];let p;return e[16]!==u||e[17]!==g?(p=s.jsxs("div",{className:"flex min-w-0 items-center gap-0",children:[u,g]}),e[16]=u,e[17]=g,e[18]=p):p=e[18],p}function Ue(t){const e=I.c(26);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{showName:o}=n,{org:i}=X(),{state:r,isMobile:l}=re(),a=ss().invitations.length>0,m=r==="collapsed"||l,c=a?`${i.name} — switch organization (pending invitation)`:`${i.name} — switch organization`;let d;e[2]!==i?(d=s.jsx($e,{org:i,size:"sm"}),e[2]=i,e[3]=d):d=e[3];let u;e[4]!==a||e[5]!==m?(u=a&&s.jsx("span",{className:O("absolute -right-1 size-2.5 rounded-full bg-destructive ring-2 ring-background",m?"-top-1":"top-1/2 -translate-y-1/2")}),e[4]=a,e[5]=m,e[6]=u):u=e[6];let f;e[7]!==d||e[8]!==u?(f=s.jsxs("span",{className:"relative inline-flex",children:[d,u]}),e[7]=d,e[8]=u,e[9]=f):f=e[9];let h;e[10]!==i.name||e[11]!==o?(h=o&&s.jsx("span",{className:"truncate text-sm font-medium text-foreground max-w-[10rem]",children:i.name}),e[10]=i.name,e[11]=o,e[12]=h):h=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Xe,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),e[13]=x):x=e[13];let g;e[14]!==c||e[15]!==f||e[16]!==h?(g=s.jsx(le,{asChild:!0,children:s.jsxs("button",{type:"button","aria-label":c,className:"wco-no-drag flex items-center gap-1.5 shrink-0 rounded-lg pl-[5px] pr-1.5 py-1.5 hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:[f,h,x]})}),e[14]=c,e[15]=f,e[16]=h,e[17]=g):g=e[17];let p;e[18]!==i.slug||e[19]!==g?(p=s.jsx(ns,{orgParam:i.slug,trigger:g}),e[18]=i.slug,e[19]=g,e[20]=p):p=e[20];let b;e[21]!==i.name?(b=s.jsx(ae,{side:"bottom",children:i.name}),e[21]=i.name,e[22]=b):b=e[22];let j;return e[23]!==b||e[24]!==p?(j=s.jsxs(ce,{children:[p,b]}),e[23]=b,e[24]=p,e[25]=j):j=e[25],j}function Te(t){const e=I.c(24);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{onNavigate:o}=n,{org:i}=X(),r=ne();let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},e[2]=l):l=e[2];const a=Ve(l);let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m={strict:!1},e[3]=m):m=e[3];const c=we(m),{threads:d}=Je(),{data:u}=te.useSession(),{setTaskId:f,createNewTask:h}=Ze();let x;e[4]!==i.id?(x=_e(i.id),e[4]=i.id,e[5]=x):x=e[5];const g=x,p=g.id,b=a.taskId?c.virtualmcpid??p:p;let j;e[6]!==h||e[7]!==p||e[8]!==r||e[9]!==o||e[10]!==i.slug||e[11]!==u?.user?.id||e[12]!==f||e[13]!==d?(j=N=>{if(!N||N===p){r({to:"/$org",params:{org:i.slug}}),o?.();return}const w=Gn(d,N,u?.user?.id);w?f(w.id,N):h(N),o?.()},e[6]=h,e[7]=p,e[8]=r,e[9]=o,e[10]=i.slug,e[11]=u?.user?.id,e[12]=f,e[13]=d,e[14]=j):j=e[14];const v=j;let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx("span",{className:"h-5 w-24 rounded bg-muted animate-pulse"}),e[15]=y):y=e[15];const S=b===p?g:void 0;let C;e[16]!==b||e[17]!==v?(C=()=>v(b),e[16]=b,e[17]=v,e[18]=C):C=e[18];let _;return e[19]!==b||e[20]!==v||e[21]!==S||e[22]!==C?(_=s.jsx(M.Suspense,{fallback:y,children:s.jsx(Ji,{agentId:b,fallback:S,onOpenHome:C,onPick:v})}),e[19]=b,e[20]=v,e[21]=S,e[22]=C,e[23]=_):_=e[23],_}function ct(t){const e=I.c(18),{item:n,onClose:o}=t,i=n.isActive&&"z-10";let r;e[0]!==i?(r=O(i),e[0]=i,e[1]=r):r=e[1];let l;e[2]!==n||e[3]!==o?(l=()=>{n.onClick?.(),o()},e[2]=n,e[3]=o,e[4]=l):l=e[4];let a;e[5]!==n.icon?(a=s.jsx("span",{className:"[&>svg]:size-5 shrink-0",children:n.icon}),e[5]=n.icon,e[6]=a):a=e[6];let m;e[7]!==n.label?(m=s.jsx("span",{children:n.label}),e[7]=n.label,e[8]=m):m=e[8];let c;e[9]!==n.isActive||e[10]!==n.label||e[11]!==l||e[12]!==a||e[13]!==m?(c=s.jsxs(K,{onClick:l,isActive:n.isActive,tooltip:n.label,className:"h-10! text-sm!",children:[a,m]}),e[9]=n.isActive,e[10]=n.label,e[11]=l,e[12]=a,e[13]=m,e[14]=c):c=e[14];let d;return e[15]!==r||e[16]!==c?(d=s.jsx(H,{className:r,children:c}),e[15]=r,e[16]=c,e[17]=d):d=e[17],d}function Zi(t){const e=I.c(18),{section:n,onClose:o}=t;switch(n.type){case"divider":{let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(kt,{className:"my-2"}),e[0]=i):i=e[0],i}case"spacer":{let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1"}),e[1]=i):i=e[1],i}case"group":{const i=n.group.label,r=n.group.defaultExpanded;let l;if(e[2]!==o||e[3]!==n.group.items){let m;e[5]!==o?(m=c=>s.jsx(ct,{item:c,onClose:o},c.key),e[5]=o,e[6]=m):m=e[6],l=n.group.items.map(m),e[2]=o,e[3]=n.group.items,e[4]=l}else l=e[4];let a;return e[7]!==n.group.defaultExpanded||e[8]!==n.group.label||e[9]!==l?(a=s.jsx(Jt,{label:i,defaultExpanded:r,children:l}),e[7]=n.group.defaultExpanded,e[8]=n.group.label,e[9]=l,e[10]=a):a=e[10],a}case"items":{let i;if(e[11]!==o||e[12]!==n.items){let l;e[14]!==o?(l=a=>s.jsx(ct,{item:a,onClose:o},a.key),e[14]=o,e[15]=l):l=e[15],i=n.items.map(l),e[11]=o,e[12]=n.items,e[13]=i}else i=e[13];let r;return e[16]!==i?(r=s.jsx(qe,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ke,{children:s.jsx(ee,{className:"gap-1.5",children:i})})}),e[16]=i,e[17]=r):r=e[17],r}case"custom":return n.content}}function eo(t){const e=I.c(24),{sections:n,onClose:o,footer:i,additionalContent:r}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Ue,{}),e[0]=l):l=e[0];let a;e[1]!==o?(a=s.jsx(Te,{onNavigate:o}),e[1]=o,e[2]=a):a=e[2];let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"flex-1"}),e[3]=m):m=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Et,{size:16}),e[4]=c):c=e[4];let d;e[5]!==o?(d=s.jsx(me,{onClick:o,"aria-label":"Close sidebar",children:c}),e[5]=o,e[6]=d):d=e[6];let u;e[7]!==a||e[8]!==d?(u=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-0.5 px-1.5",children:[l,a,m,d]}),e[7]=a,e[8]=d,e[9]=u):u=e[9];let f;if(e[10]!==o||e[11]!==n){let p;e[13]!==o?(p=(b,j)=>s.jsx(Zi,{section:b,onClose:o},j),e[13]=o,e[14]=p):p=e[14],f=n.map(p),e[10]=o,e[11]=n,e[12]=f}else f=e[12];let h;e[15]!==r?(h=r&&s.jsx("div",{className:"mt-3 flex flex-col flex-1 min-h-0",children:r}),e[15]=r,e[16]=h):h=e[16];let x;e[17]!==f||e[18]!==h?(x=s.jsxs(It,{className:"flex flex-col flex-1 px-2 py-2 gap-0",children:[f,h]}),e[17]=f,e[18]=h,e[19]=x):x=e[19];let g;return e[20]!==i||e[21]!==u||e[22]!==x?(g=s.jsxs("div",{className:"bg-sidebar flex h-full w-full flex-col","data-sidebar":"sidebar",children:[u,x,i]}),e[20]=i,e[21]=u,e[22]=x,e[23]=g):g=e[23],g}function ue(t){const e=I.c(26),{item:n,onClose:o}=t;let i;e[0]!==n.className?(i=O("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",n.className),e[0]=n.className,e[1]=i):i=e[1];const r=i;if(n.href){const d=n.external?"_blank":void 0,u=n.external?"noopener noreferrer":void 0;let f;e[2]!==n.icon?(f=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[2]=n.icon,e[3]=f):f=e[3];let h;e[4]!==n.label?(h=s.jsx("span",{className:"flex-1",children:n.label}),e[4]=n.label,e[5]=h):h=e[5];let x;return e[6]!==r||e[7]!==n.href||e[8]!==o||e[9]!==d||e[10]!==u||e[11]!==f||e[12]!==h?(x=s.jsxs("a",{href:n.href,target:d,rel:u,className:r,onClick:o,children:[f,h]}),e[6]=r,e[7]=n.href,e[8]=o,e[9]=d,e[10]=u,e[11]=f,e[12]=h,e[13]=x):x=e[13],x}let l;e[14]!==n||e[15]!==o?(l=()=>{n.onClick?.(),o()},e[14]=n,e[15]=o,e[16]=l):l=e[16];let a;e[17]!==n.icon?(a=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[17]=n.icon,e[18]=a):a=e[18];let m;e[19]!==n.label?(m=s.jsx("span",{className:"flex-1",children:n.label}),e[19]=n.label,e[20]=m):m=e[20];let c;return e[21]!==r||e[22]!==l||e[23]!==a||e[24]!==m?(c=s.jsxs("button",{type:"button",onClick:l,className:r,children:[a,m]}),e[21]=r,e[22]=l,e[23]=a,e[24]=m,e[25]=c):c=e[25],c}function to(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("span",{className:"shrink-0 inline-flex items-center rounded-full bg-warning/10 px-2 py-0.5 text-[10px] font-medium text-warning",children:"Impersonating"}),t[0]=e):e=t[0],e}function dt(t){const e=I.c(30),{user:n,userImage:o,isImpersonating:i,isMobile:r}=t,l=r?"py-4 border-b border-border":"py-3 mx-1 mt-1";let a;e[0]!==l?(a=O("flex items-center gap-3 px-4",l),e[0]=l,e[1]=a):a=e[1];const m=n?.name??"U";let c;e[2]!==m||e[3]!==o?(c=s.jsx(He,{url:o,fallback:m,shape:"circle",size:"sm",className:"shrink-0"}),e[2]=m,e[3]=o,e[4]=c):c=e[4];const d=n?.name??"User";let u;e[5]!==d?(u=s.jsx("p",{className:"text-sm font-medium truncate",children:d}),e[5]=d,e[6]=u):u=e[6];let f;e[7]!==i?(f=i&&s.jsx(to,{}),e[7]=i,e[8]=f):f=e[8];let h;e[9]!==u||e[10]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2",children:[u,f]}),e[9]=u,e[10]=f,e[11]=h):h=e[11];const x=n?.email;let g;e[12]!==x?(g=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:x}),e[12]=x,e[13]=g):g=e[13];let p;e[14]!==g||e[15]!==h?(p=s.jsxs("div",{className:"flex-1 min-w-0",children:[h,g]}),e[14]=g,e[15]=h,e[16]=p):p=e[16];let b;e[17]!==n?(b=()=>{n?.id&&navigator.clipboard.writeText(n.id).then(so)},e[17]=n,e[18]=b):b=e[18];let j;e[19]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Wn,{size:14}),e[19]=j):j=e[19];let v;e[20]!==b?(v=s.jsx(le,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:b,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:j})}),e[20]=b,e[21]=v):v=e[21];let y;e[22]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(ae,{side:"right",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[22]=y):y=e[22];let S;e[23]!==v?(S=s.jsx(Pt,{delayDuration:300,children:s.jsxs(ce,{children:[v,y]})}),e[23]=v,e[24]=S):S=e[24];let C;return e[25]!==p||e[26]!==S||e[27]!==a||e[28]!==c?(C=s.jsxs("div",{className:a,children:[c,p,S]}),e[25]=p,e[26]=S,e[27]=a,e[28]=c,e[29]=C):C=e[29],C}function so(){oe.success("User ID copied")}function mt(t){const e=I.c(32),{themeOptions:n,preferences:o,setPreferences:i,isMobile:r}=t,l=r?"size-8":"size-7",a=r?"px-3 py-3":"px-2 py-1.5";let m;e[0]!==a?(m=O("flex items-center justify-between border-t border-border/50",a),e[0]=a,e[1]=m):m=e[1];let c;if(e[2]!==l||e[3]!==o.theme||e[4]!==i||e[5]!==n){let y;e[7]!==l||e[8]!==o.theme||e[9]!==i?(y=S=>{const{value:C,icon:_,label:N}=S;return s.jsx("button",{type:"button","aria-label":N,onClick:()=>i(w=>({...w,theme:C})),className:O(l,"rounded-md flex items-center justify-center transition-colors",o.theme===C?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:_},C)},e[7]=l,e[8]=o.theme,e[9]=i,e[10]=y):y=e[10],c=n.map(y),e[2]=l,e[3]=o.theme,e[4]=i,e[5]=n,e[6]=c}else c=e[6];let d;e[11]!==c?(d=s.jsx("div",{className:"flex items-center gap-0.5",children:c}),e[11]=c,e[12]=d):d=e[12];const u=o.enableSounds?"Disable sounds":"Enable sounds";let f;e[13]!==i?(f=()=>i(no),e[13]=i,e[14]=f):f=e[14];const h=o.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let x;e[15]!==l||e[16]!==h?(x=O(l,"rounded-md flex items-center justify-center transition-colors",h),e[15]=l,e[16]=h,e[17]=x):x=e[17];let g;e[18]!==o.enableSounds?(g=o.enableSounds?s.jsx(on,{size:14}):s.jsx(rn,{size:14}),e[18]=o.enableSounds,e[19]=g):g=e[19];let p;e[20]!==u||e[21]!==f||e[22]!==x||e[23]!==g?(p=s.jsx("button",{type:"button","aria-label":u,onClick:f,className:x,children:g}),e[20]=u,e[21]=f,e[22]=x,e[23]=g,e[24]=p):p=e[24];let b;e[25]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.82.9"]}),e[25]=b):b=e[25];let j;e[26]!==p?(j=s.jsxs("div",{className:"flex items-center gap-2",children:[p,b]}),e[26]=p,e[27]=j):j=e[27];let v;return e[28]!==j||e[29]!==m||e[30]!==d?(v=s.jsxs("div",{className:m,children:[d,j]}),e[28]=j,e[29]=m,e[30]=d,e[31]=v):v=e[31],v}function no(t){return{...t,enableSounds:!t.enableSounds}}function ut(t){const e=I.c(54),{user:n,userImage:o,menuItems:i,signOutItem:r,stopImpersonatingItem:l,isImpersonating:a,themeOptions:m,preferences:c,setPreferences:d,close:u,isMobile:f}=t;if(f){let y;e[0]!==a||e[1]!==n||e[2]!==o?(y=s.jsx(dt,{user:n,userImage:o,isImpersonating:a,isMobile:!0}),e[0]=a,e[1]=n,e[2]=o,e[3]=y):y=e[3];let S;if(e[4]!==u||e[5]!==i){let z;e[7]!==u?(z=k=>s.jsx(ue,{item:k,onClose:u},k.key),e[7]=u,e[8]=z):z=e[8],S=i.map(z),e[4]=u,e[5]=i,e[6]=S}else S=e[6];let C;e[9]!==u||e[10]!==l?(C=l&&s.jsx(ue,{item:l,onClose:u}),e[9]=u,e[10]=l,e[11]=C):C=e[11];let _;e[12]!==u||e[13]!==r?(_=s.jsx(ue,{item:r,onClose:u}),e[12]=u,e[13]=r,e[14]=_):_=e[14];let N;e[15]!==S||e[16]!==C||e[17]!==_?(N=s.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:s.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[S,C,_]})}),e[15]=S,e[16]=C,e[17]=_,e[18]=N):N=e[18];let w;e[19]!==c||e[20]!==d||e[21]!==m?(w=s.jsx(mt,{themeOptions:m,preferences:c,setPreferences:d,isMobile:!0}),e[19]=c,e[20]=d,e[21]=m,e[22]=w):w=e[22];let A;return e[23]!==y||e[24]!==N||e[25]!==w?(A=s.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[y,N,w]}),e[23]=y,e[24]=N,e[25]=w,e[26]=A):A=e[26],A}let h;e[27]!==a||e[28]!==n||e[29]!==o?(h=s.jsx(dt,{user:n,userImage:o,isImpersonating:a,isMobile:!1}),e[27]=a,e[28]=n,e[29]=o,e[30]=h):h=e[30];let x;if(e[31]!==u||e[32]!==i){let y;e[34]!==u?(y=S=>s.jsx(ue,{item:S,onClose:u},S.key),e[34]=u,e[35]=y):y=e[35],x=i.map(y),e[31]=u,e[32]=i,e[33]=x}else x=e[33];let g;e[36]!==u||e[37]!==l?(g=l&&s.jsx(ue,{item:l,onClose:u}),e[36]=u,e[37]=l,e[38]=g):g=e[38];let p;e[39]!==u||e[40]!==r?(p=s.jsx(ue,{item:r,onClose:u}),e[39]=u,e[40]=r,e[41]=p):p=e[41];let b;e[42]!==x||e[43]!==g||e[44]!==p?(b=s.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[x,g,p]}),e[42]=x,e[43]=g,e[44]=p,e[45]=b):b=e[45];let j;e[46]!==c||e[47]!==d||e[48]!==m?(j=s.jsx(mt,{themeOptions:m,preferences:c,setPreferences:d,isMobile:!1}),e[46]=c,e[47]=d,e[48]=m,e[49]=j):j=e[49];let v;return e[50]!==h||e[51]!==b||e[52]!==j?(v=s.jsx("div",{className:"flex w-full flex-col overflow-hidden",children:s.jsxs("div",{className:"flex flex-col",children:[h,b,j]})}),e[50]=h,e[51]=b,e[52]=j,e[53]=v):v=e[53],v}function ge(){const t=I.c(43),{data:e}=te.useSession(),{org:n}=X(),o=ne();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org",shouldThrow:!1},t[0]=i):i=t[0];const l=ws(i)?.params.org,[a,m]=ks(),c=Ye(),{isAdmin:d}=ei(),[u,f]=M.useState(!1),h=e?.user,x=h?.image,g=!!e?.session?.impersonatedBy;let p;t[1]===Symbol.for("react.memo_cache_sentinel")?(p=()=>f(!1),t[1]=p):p=t[1];const b=p;let j;t[2]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Ae,{size:16}),t[2]=j):j=t[2];let v;t[3]!==o||t[4]!==l?(v={key:"preferences",label:"Preferences",icon:j,onClick:()=>{o({to:"/$org/settings/profile",params:{org:l??""}})}},t[3]=o,t[4]=l,t[5]=v):v=t[5];let y;t[6]!==n||t[7]!==o?(y=n?[{key:"install-app",label:"Add to Home Screen",icon:s.jsx(Vn,{size:16}),onClick:()=>{o({to:"/$org/install",params:{org:n.slug}})}}]:[],t[6]=n,t[7]=o,t[8]=y):y=t[8];let S;t[9]===Symbol.for("react.memo_cache_sentinel")?(S={key:"terms",label:"Terms of Use",icon:s.jsx(Kn,{size:16}),href:"https://www.decocms.com/terms-of-use",external:!0},t[9]=S):S=t[9];let C;t[10]===Symbol.for("react.memo_cache_sentinel")?(C={key:"privacy",label:"Privacy Policy",icon:s.jsx(Jn,{size:16}),href:"https://www.decocms.com/privacy-policy",external:!0},t[10]=C):C=t[10];let _;t[11]===Symbol.for("react.memo_cache_sentinel")?(_={key:"github",label:"decocms/studio",icon:s.jsx(Is,{className:"w-4 h-4"}),href:"https://github.com/decocms/studio",external:!0},t[11]=_):_=t[11];let N;t[12]===Symbol.for("react.memo_cache_sentinel")?(N={key:"community",label:"Community",icon:s.jsx(Zn,{size:16}),href:"https://decocms.com/discord",external:!0},t[12]=N):N=t[12];let w;t[13]===Symbol.for("react.memo_cache_sentinel")?(w={key:"homepage",label:"Homepage",icon:s.jsx(qn,{size:16}),href:"https://decocms.com",external:!0},t[13]=w):w=t[13];let A;t[14]!==d||t[15]!==o?(A=d?[{key:"admin-dashboard",label:"Admin Dashboard",icon:s.jsx(nn,{size:16}),onClick:()=>o({to:"/_admin"}),className:"text-warning"}]:[],t[14]=d,t[15]=o,t[16]=A):A=t[16];let z;t[17]!==A||t[18]!==v||t[19]!==y?(z=[v,...y,S,C,_,N,w,...A],t[17]=A,t[18]=v,t[19]=y,t[20]=z):z=t[20];const k=z;let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($={key:"logout",label:"Sign out",icon:s.jsx(ot,{size:16}),onClick:ro},t[21]=$):$=t[21];const D=$;let R;t[22]!==g?(R=g?{key:"stop-impersonating",label:"Stop impersonation",icon:s.jsx(ot,{size:16}),onClick:oo,className:"text-warning"}:null,t[22]=g,t[23]=R):R=t[23];const B=R;let L;t[24]===Symbol.for("react.memo_cache_sentinel")?(L={value:"light",icon:s.jsx(Xn,{size:14}),label:"Light theme"},t[24]=L):L=t[24];let P;t[25]===Symbol.for("react.memo_cache_sentinel")?(P={value:"dark",icon:s.jsx(Qn,{size:14}),label:"Dark theme"},t[25]=P):P=t[25];let E;t[26]===Symbol.for("react.memo_cache_sentinel")?(E=[L,P,{value:"system",icon:s.jsx(Be,{size:14}),label:"System theme"}],t[26]=E):E=t[26];const F=E;let U;t[27]!==g||t[28]!==c||t[29]!==k||t[30]!==a||t[31]!==m||t[32]!==B||t[33]!==h||t[34]!==x?(U={user:h,userImage:x,menuItems:k,signOutItem:D,stopImpersonatingItem:B,isImpersonating:g,themeOptions:F,preferences:a,setPreferences:m,close:b,isMobile:c},t[27]=g,t[28]=c,t[29]=k,t[30]=a,t[31]=m,t[32]=B,t[33]=h,t[34]=x,t[35]=U):U=t[35];const G=U;let W;return t[36]!==g||t[37]!==c||t[38]!==u||t[39]!==G||t[40]!==h?.name||t[41]!==x?(W=s.jsx(s.Fragment,{children:c?s.jsxs(Lt,{open:u,onOpenChange:f,direction:"bottom",children:[s.jsxs("button",{type:"button",onClick:()=>f(!0),className:O("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",g&&"border-2 border-dashed border-warning"),children:[s.jsx(He,{url:x,fallback:h?.name??"U",shape:"circle",size:"2xs",className:"shrink-0"}),s.jsx("span",{className:"truncate",children:h?.name??"Account"})]}),s.jsxs(Ht,{className:"h-[80dvh] p-0",children:[s.jsx(Bt,{className:"sr-only",children:"Account"}),s.jsx(ut,{...G})]})]}):s.jsxs(Ie,{open:u,onOpenChange:f,children:[s.jsx(fe,{asChild:!0,children:s.jsxs(K,{tooltip:h?.name??"Account",className:O("rounded-md",g&&"border-2 border-dashed border-warning"),children:[s.jsx(He,{url:x,fallback:h?.name??"U",shape:"circle",size:"xs",className:"shrink-0"}),s.jsx("span",{className:"truncate",children:h?.name??"Account"})]})}),s.jsx(ke,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[280px] p-0 flex flex-col max-h-[520px]",onCloseAutoFocus:io,children:s.jsx(ut,{...G})})]})}),t[36]=g,t[37]=c,t[38]=u,t[39]=G,t[40]=h?.name,t[41]=x,t[42]=W):W=t[42],W}function io(t){return t.preventDefault()}async function oo(){const{error:t}=await te.admin.stopImpersonating();if(t){oe.error(t.message||"Failed to stop impersonation");return}window.location.href="/"}function ro(){J("signed_out",{source:"account_popover"}),As(),te.signOut()}function be(t){const e=I.c(43),{variant:n}=t===void 0?{}:t,o=n===void 0?"icon":n,i=In(),[r,l]=M.useState(!1);let a,m;if(e[0]!==i.capabilities||e[1]!==i.hostname||e[2]!==i.machineId||e[3]!==i.online){const v=ti(i.capabilities);a=i.online?"Desktop linked":"Connect desktop",m=i.online?s.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",children:[s.jsx("span",{className:"font-medium",children:i.hostname??i.machineId??"Desktop linked"}),s.jsx("span",{className:"text-muted-foreground",children:v.length>0?`Available: ${v.join(", ")}`:"No CLI agents detected"})]}):s.jsx("span",{className:"text-xs",children:"Desktop disconnected"}),e[0]=i.capabilities,e[1]=i.hostname,e[2]=i.machineId,e[3]=i.online,e[4]=a,e[5]=m}else a=e[4],m=e[5];const c=m;if(o==="full"){let v,y;e[6]===Symbol.for("react.memo_cache_sentinel")?(v=()=>l(!0),y=s.jsx(Be,{}),e[6]=v,e[7]=y):(v=e[6],y=e[7]);let S;e[8]!==a?(S=s.jsx("span",{children:a}),e[8]=a,e[9]=S):S=e[9];let C;e[10]!==i.online?(C=i.online&&s.jsx("span",{className:"ml-auto size-2 rounded-full bg-success animate-pulse"}),e[10]=i.online,e[11]=C):C=e[11];let _;e[12]!==a||e[13]!==S||e[14]!==C?(_=s.jsx(le,{asChild:!0,children:s.jsxs(K,{tooltip:a,onClick:v,children:[y,S,C]})}),e[12]=a,e[13]=S,e[14]=C,e[15]=_):_=e[15];let N;e[16]!==c?(N=s.jsx(ae,{side:"right",children:c}),e[16]=c,e[17]=N):N=e[17];let w;e[18]!==_||e[19]!==N?(w=s.jsxs(ce,{children:[_,N]}),e[18]=_,e[19]=N,e[20]=w):w=e[20];let A;e[21]!==r?(A=s.jsx(lt,{open:r,onOpenChange:l}),e[21]=r,e[22]=A):A=e[22];let z;return e[23]!==A||e[24]!==w?(z=s.jsxs(s.Fragment,{children:[w,A]}),e[23]=A,e[24]=w,e[25]=z):z=e[25],z}let d;e[26]===Symbol.for("react.memo_cache_sentinel")?(d=()=>l(!0),e[26]=d):d=e[26];const u=i.online?"Desktop linked":"Connect your desktop";let f;e[27]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Be,{size:16}),e[27]=f):f=e[27];let h;e[28]!==i.online?(h=i.online&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-success ring-2 ring-background animate-pulse"}),e[28]=i.online,e[29]=h):h=e[29];let x;e[30]!==u||e[31]!==h?(x=s.jsx(le,{asChild:!0,children:s.jsxs(me,{onClick:d,"aria-label":u,children:[f,h]})}),e[30]=u,e[31]=h,e[32]=x):x=e[32];let g;e[33]!==c?(g=s.jsx(ae,{side:"bottom",children:c}),e[33]=c,e[34]=g):g=e[34];let p;e[35]!==x||e[36]!==g?(p=s.jsxs(ce,{children:[x,g]}),e[35]=x,e[36]=g,e[37]=p):p=e[37];let b;e[38]!==r?(b=s.jsx(lt,{open:r,onOpenChange:l}),e[38]=r,e[39]=b):b=e[39];let j;return e[40]!==b||e[41]!==p?(j=s.jsxs(s.Fragment,{children:[p,b]}),e[40]=b,e[41]=p,e[42]=j):j=e[42],j}class lo extends M.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,n){}render(){return this.state.hasError?null:this.props.children}}function ao(t){return t<=1?"text-destructive":t<=5?"text-warning":"text-foreground/70"}function co(){const t=I.c(17),e=ne(),{org:n}=X(),{hasDecoKey:o,balanceDollars:i}=Hn();if(!o)return null;let r;t[0]!==i?(r=i!=null?`Credits: $${i.toFixed(2)}`:"Credits",t[0]=i,t[1]=r):r=t[1];let l;t[2]!==i?(l=O(i!=null&&ao(i)),t[2]=i,t[3]=l):l=t[3];let a;t[4]!==e||t[5]!==n.slug?(a=()=>e({to:"/$org/settings/ai-providers",params:{org:n.slug}}),t[4]=e,t[5]=n.slug,t[6]=a):a=t[6];let m;t[7]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(ln,{}),t[7]=m):m=t[7];let c;t[8]!==i?(c=i!=null?`$${i.toFixed(2)}`:"Credits",t[8]=i,t[9]=c):c=t[9];let d;t[10]!==c?(d=s.jsx("span",{children:c}),t[10]=c,t[11]=d):d=t[11];let u;return t[12]!==r||t[13]!==l||t[14]!==a||t[15]!==d?(u=s.jsx(ee,{children:s.jsx(H,{children:s.jsxs(K,{tooltip:r,className:l,onClick:a,children:[m,d]})})}),t[12]=r,t[13]=l,t[14]=a,t[15]=d,t[16]=u):u=t[16],u}function ft(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(lo,{children:s.jsx(M.Suspense,{fallback:null,children:s.jsx(co,{})})}),t[0]=e):e=t[0],e}function De(){const t=I.c(7),e=ne(),{org:n}=X();let o;t[0]!==e||t[1]!==n.slug?(o=()=>e({to:"/$org/settings",params:{org:n.slug}}),t[0]=e,t[1]=n.slug,t[2]=o):o=t[2];let i,r;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ae,{}),r=s.jsx("span",{children:"Settings"}),t[3]=i,t[4]=r):(i=t[3],r=t[4]);let l;return t[5]!==o?(l=s.jsxs(K,{tooltip:"Settings",onClick:o,children:[i,r]}),t[5]=o,t[6]=l):l=t[6],l}function mo(){const t=I.c(6),e=ne(),{org:n}=X();let o;t[0]!==e||t[1]!==n.slug?(o=()=>e({to:"/$org/settings",params:{org:n.slug}}),t[0]=e,t[1]=n.slug,t[2]=o):o=t[2];let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ae,{size:15}),t[3]=i):i=t[3];let r;return t[4]!==o?(r=s.jsx("button",{type:"button","aria-label":"Settings",onClick:o,className:"shrink-0 flex items-center justify-center size-7 rounded-md text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground transition-colors",children:i}),t[4]=o,t[5]=r):r=t[5],r}function ht(){const t=I.c(4),[e,n]=M.useState(!1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(H,{children:s.jsx(qt,{trigger:s.jsxs(K,{tooltip:"Invite members",children:[s.jsx(Vt,{}),s.jsx("span",{children:"Invite members"})]})})}),t[0]=o):o=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(ee,{className:"gap-0.5",children:[o,s.jsx(H,{children:s.jsxs(K,{tooltip:"Add connection",onClick:()=>n(!0),children:[s.jsx(Yn,{}),s.jsx("span",{children:"Add connection"})]})})]}),t[1]=i):i=t[1];let r;return t[2]!==e?(r=s.jsxs(s.Fragment,{children:[i,s.jsx(Bn,{open:e,onOpenChange:n,mode:"browse"})]}),t[2]=e,t[3]=r):r=t[3],r}function xt(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ee,{className:"gap-0.5",children:s.jsx(H,{children:s.jsx(qt,{trigger:s.jsxs(K,{tooltip:"Invite members",children:[s.jsx(Vt,{}),s.jsx("span",{children:"Invite members"})]})})})}),t[0]=e):e=t[0],e}function uo(){const t=I.c(17),{state:e}=re(),n=e==="collapsed";if(ze()){if(n){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(xt,{}),t[0]=f):f=t[0];let h;t[1]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(H,{children:s.jsx("div",{className:"flex justify-center",children:s.jsx(be,{})})}),t[1]=h):h=t[1];let x;t[2]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(H,{children:s.jsx(De,{})}),t[2]=x):x=t[2];let g;return t[3]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsxs(he,{className:"px-2 pb-3 gap-1",children:[f,s.jsxs(ee,{children:[h,x,s.jsx(H,{children:s.jsx(ge,{})})]})]}),t[3]=g):g=t[3],g}let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(xt,{}),t[4]=c):c=t[4];let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(H,{children:s.jsx(be,{variant:"full"})}),t[5]=d):d=t[5];let u;return t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsxs(he,{className:"px-2 pb-3 gap-0.5",children:[c,s.jsxs(ee,{className:"gap-0.5",children:[d,s.jsx(H,{children:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(ge,{})}),s.jsx(mo,{})]})})]})]}),t[6]=u):u=t[6],u}if(n){let c,d;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(ht,{}),d=s.jsx(ft,{}),t[7]=c,t[8]=d):(c=t[7],d=t[8]);let u;t[9]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(H,{children:s.jsx("div",{className:"flex justify-center",children:s.jsx(be,{})})}),t[9]=u):u=t[9];let f;t[10]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(H,{children:s.jsx(De,{})}),t[10]=f):f=t[10];let h;return t[11]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsxs(he,{className:"px-2 pb-3 gap-1",children:[c,d,s.jsxs(ee,{children:[u,f,s.jsx(H,{children:s.jsx(ge,{})})]})]}),t[11]=h):h=t[11],h}let i,r;t[12]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ht,{}),r=s.jsx(ft,{}),t[12]=i,t[13]=r):(i=t[12],r=t[13]);let l;t[14]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(H,{children:s.jsx(be,{variant:"full"})}),t[14]=l):l=t[14];let a;t[15]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(H,{children:s.jsx(De,{})}),t[15]=a):a=t[15];let m;return t[16]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsxs(he,{className:"px-2 pb-3 gap-0.5",children:[i,r,s.jsxs(ee,{className:"gap-0.5",children:[l,a,s.jsx(H,{children:s.jsx(ge,{})})]})]}),t[16]=m):m=t[16],m}function fo(){const t=I.c(8),e=ne(),{org:n}=X(),{setOpenMobile:o}=re();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(ee,{children:s.jsx(H,{children:s.jsx(ge,{})})})}),t[0]=i):i=t[0];let r;t[1]!==e||t[2]!==n.slug||t[3]!==o?(r=()=>{e({to:"/$org/settings",params:{org:n.slug}}),o(!1)},t[1]=e,t[2]=n.slug,t[3]=o,t[4]=r):r=t[4];let l;t[5]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Ae,{className:"size-4"}),t[5]=l):l=t[5];let a;return t[6]!==r?(a=s.jsx(he,{className:"px-2 pb-3",children:s.jsxs("div",{className:"flex items-center gap-1",children:[i,s.jsx(me,{"aria-label":"Settings",onClick:r,children:l})]})}),t[6]=r,t[7]=a):a=t[7],a}function pt(t){const e=I.c(15),{className:n,wrapperClassName:o,children:i}=t,[r,l]=M.useState(!1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=b=>{b&&l(b.scrollHeight>b.clientHeight+1)},e[0]=a):a=e[0];const m=a;let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=b=>{const j=b.currentTarget;l(j.scrollHeight-j.scrollTop>j.clientHeight+1)},e[1]=c):c=e[1];const d=c;let u;e[2]!==o?(u=O("relative",o),e[2]=o,e[3]=u):u=e[3];let f;e[4]!==i||e[5]!==n?(f=s.jsx("div",{ref:m,onScroll:d,className:n,children:i}),e[4]=i,e[5]=n,e[6]=f):f=e[6];const h=r?"opacity-100":"opacity-0";let x;e[7]!==h?(x=O("pointer-events-none absolute right-0 bottom-0 left-0 h-10 bg-gradient-to-t from-sidebar to-transparent transition-opacity duration-150",h),e[7]=h,e[8]=x):x=e[8];let g;e[9]!==x?(g=s.jsx("div",{"aria-hidden":!0,className:x}),e[9]=x,e[10]=g):g=e[10];let p;return e[11]!==u||e[12]!==f||e[13]!==g?(p=s.jsxs("div",{className:u,children:[f,g]}),e[11]=u,e[12]=f,e[13]=g,e[14]=p):p=e[14],p}function ho(t){const e=I.c(8),{virtualMcpId:n,size:o,showAutomationBadge:i}=t,r=o===void 0?"sm":o;let l;e[0]!==r||e[1]!==n?(l=n?s.jsx(xo,{virtualMcpId:n,size:r}):s.jsx(de,{icon:null,name:"?",size:r}),e[0]=r,e[1]=n,e[2]=l):l=e[2];let a;e[3]!==i?(a=i&&s.jsx("span",{"aria-label":"Automation-triggered",className:"absolute -bottom-0.5 -right-0.5 flex size-4 items-center justify-center rounded-full bg-blue-500 border border-blue-600 text-white",children:s.jsx(Yt,{size:10,className:"text-white"})}),e[3]=i,e[4]=a):a=e[4];let m;return e[5]!==l||e[6]!==a?(m=s.jsxs("div",{className:"relative shrink-0",children:[l,a]}),e[5]=l,e[6]=a,e[7]=m):m=e[7],m}function xo(t){const e=I.c(6),{virtualMcpId:n,size:o}=t,i=Qe(n);if(!i){let a;return e[0]!==o?(a=s.jsx(de,{icon:null,name:"?",size:o}),e[0]=o,e[1]=a):a=e[1],a}const r=i.icon??null;let l;return e[2]!==i.title||e[3]!==o||e[4]!==r?(l=s.jsx(de,{icon:r,name:i.title,size:o}),e[2]=i.title,e[3]=o,e[4]=r,e[5]=l):l=e[5],l}function gt(t){const e=I.c(36),{open:n,onOpenChange:o}=t,[i,r]=M.useState(""),{org:l}=X(),{setTaskId:a}=Ze(),m=Kt();let c,d,u;e[0]!==l.id||e[1]!==i?(u=i.trim(),d=zs,c=Ct.globalSearch(l.id,u),e[0]=l.id,e[1]=i,e[2]=c,e[3]=d,e[4]=u):(c=e[2],d=e[3],u=e[4]);const f=n&&u.length>0;let h;e[5]!==m||e[6]!==u?(h=async()=>await m.call("GLOBAL_SEARCH",{query:u,limit:20}),e[5]=m,e[6]=u,e[7]=h):h=e[7];let x;e[8]!==c||e[9]!==f||e[10]!==h?(x={queryKey:c,enabled:f,queryFn:h,staleTime:1e4},e[8]=c,e[9]=f,e[10]=h,e[11]=x):x=e[11];const{data:g,isFetching:p}=d(x);let b;e[12]!==g?.items?(b=g?.items??[],e[12]=g?.items,e[13]=b):b=e[13];const j=b;let v;e[14]!==o?(v=$=>{$||r(""),o($)},e[14]=o,e[15]=v):v=e[15];const y=v;let S;e[16]!==y||e[17]!==a?(S=$=>{y(!1),a($.id,$.virtual_mcp_id??void 0)},e[16]=y,e[17]=a,e[18]=S):S=e[18];const C=S;let _;e[19]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsxs(Ys,{className:"sr-only",children:[s.jsx(At,{children:"Search"}),s.jsx(Xs,{children:"Search across your organization's resources."})]}),e[19]=_):_=e[19];let N;e[20]!==i?(N=s.jsx(li,{value:i,onValueChange:r,placeholder:"Search..."}),e[20]=i,e[21]=N):N=e[21];let w;e[22]!==C||e[23]!==p||e[24]!==j||e[25]!==u?(w=u?p&&j.length===0?s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Searching…"}):j.length===0?s.jsx(oi,{children:"No results."}):j.map($=>$.type==="thread"?s.jsxs(ri,{value:`thread:${$.id}:${$.title}`,onSelect:()=>C($),className:"gap-2.5",children:[s.jsx(ho,{virtualMcpId:$.virtual_mcp_id,size:"xs"}),s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("div",{className:"text-sm text-foreground truncate",children:$.title||"Untitled chat"})}),s.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:new Date($.updated_at).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]},`thread:${$.id}`):null):s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Start typing to search."}),e[22]=C,e[23]=p,e[24]=j,e[25]=u,e[26]=w):w=e[26];let A;e[27]!==w?(A=s.jsx(ai,{children:w}),e[27]=w,e[28]=A):A=e[28];let z;e[29]!==N||e[30]!==A?(z=s.jsxs(Qs,{className:"overflow-hidden p-0",closeButtonClassName:"hidden",children:[_,s.jsxs(ci,{shouldFilter:!1,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:[N,A]})]}),e[29]=N,e[30]=A,e[31]=z):z=e[31];let k;return e[32]!==y||e[33]!==n||e[34]!==z?(k=s.jsx(zt,{open:n,onOpenChange:y,children:z}),e[32]=y,e[33]=n,e[34]=z,e[35]=k):k=e[35],k}function po(t){return t==="ephemeral"||t.startsWith("thread:")}function is(t){const e=I.c(40),{task:n,isActive:o,onClick:i,onArchive:r,showAutomationBadge:l,showAgentIcon:a,hideStatusIdle:m,indented:c}=t,d=ui(n.status),u=d.icon,f=n.metadata?.kind==="tool_call_run",h=Qe(f?void 0:n.virtual_mcp_id);let x;e[0]!==h?(x=Un(h),e[0]=h,e[1]=x):x=e[1];const g=x;fi(6e4);const p=l||!!n.trigger_id,b=n.id,j="button",v=0;let y;e[2]!==i?(y=F=>{F.target===F.currentTarget&&(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),i())},e[2]=i,e[3]=y):y=e[3];const S=c?"-ml-4 pl-6":"pl-[7px]",C=o?"bg-accent text-accent-foreground":"hover:bg-accent/60";let _;e[4]!==S||e[5]!==C?(_=O("group/row flex items-center gap-2 py-1.5 rounded-md cursor-pointer transition-colors",S,"focus-visible:outline-none focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50",C),e[4]=S,e[5]=C,e[6]=_):_=e[6];let N;e[7]!==f||e[8]!==a||e[9]!==h?.icon||e[10]!==h?.title?(N=a&&!f&&s.jsx(de,{icon:h?.icon??null,name:h?.title??"?",size:"2xs"}),e[7]=f,e[8]=a,e[9]=h?.icon,e[10]=h?.title,e[11]=N):N=e[11];let w;e[12]!==p?(w=p&&s.jsx(Yt,{size:12,"aria-label":"Automation-triggered",className:"shrink-0 text-blue-500"}),e[12]=p,e[13]=w):w=e[13];const A=n.title||"Untitled task";let z;e[14]!==A?(z=s.jsx("div",{className:"text-sm text-foreground truncate",children:A}),e[14]=A,e[15]=z):z=e[15];let k;e[16]!==w||e[17]!==z?(k=s.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[w,z]}),e[16]=w,e[17]=z,e[18]=k):k=e[18];let $;e[19]!==g||e[20]!==o||e[21]!==n.branch||e[22]!==n.updated_at?($=n.updated_at&&s.jsxs("div",{className:O("flex items-center gap-1 text-[11px] min-w-0",o?"text-accent-foreground/70":"text-muted-foreground/60"),children:[n.branch&&!po(n.branch)?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"truncate font-mono",children:n.branch}),s.jsx("span",{className:"shrink-0",children:"·"})]}):g?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"truncate",children:[g.owner,"/",g.name]}),s.jsx("span",{className:"shrink-0",children:"·"})]}):null,s.jsx("span",{className:"shrink-0",children:xi(new Date(n.updated_at))})]}),e[19]=g,e[20]=o,e[21]=n.branch,e[22]=n.updated_at,e[23]=$):$=e[23];let D;e[24]!==k||e[25]!==$?(D=s.jsxs("div",{className:"flex-1 min-w-0",children:[k,$]}),e[24]=k,e[25]=$,e[26]=D):D=e[26];const R="shrink-0 grid [grid-template-areas:'slot'] items-center justify-items-center",B=!m&&s.jsx("span",{className:O("[grid-area:slot] flex size-8 items-center justify-center pointer-events-none transition-opacity",r&&"group-hover/row:opacity-0"),"aria-label":d.label,children:s.jsx(u,{size:14,className:O(d.iconClassName,n.status==="in_progress"&&"animate-spin")})});let L;e[27]!==r?(L=r&&s.jsxs(ce,{children:[s.jsx(le,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":"Archive task",onClick:F=>{F.stopPropagation(),r()},className:"[grid-area:slot] opacity-0 pointer-events-none group-hover/row:opacity-100 group-hover/row:pointer-events-auto focus-visible:opacity-100 focus-visible:pointer-events-auto transition-opacity flex size-8 items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:s.jsx($s,{size:14})})}),s.jsx(ae,{side:"right",children:"Archive"})]}),e[27]=r,e[28]=L):L=e[28];let P;e[29]!==B||e[30]!==L?(P=s.jsxs("div",{className:R,children:[B,L]}),e[29]=B,e[30]=L,e[31]=P):P=e[31];let E;return e[32]!==i||e[33]!==D||e[34]!==P||e[35]!==y||e[36]!==_||e[37]!==N||e[38]!==n.id?(E=s.jsxs("div",{"data-task-id":b,role:j,tabIndex:v,onClick:i,onKeyDown:y,className:_,children:[N,D,P]}),e[32]=i,e[33]=D,e[34]=P,e[35]=y,e[36]=_,e[37]=N,e[38]=n.id,e[39]=E):E=e[39],E}const bt=["requires_action","in_progress","failed","expired","completed"];function go(t){const e=new Map(bt.map(n=>[n,[]]));for(const n of t){const o=n.status??"completed";(e.get(o)??e.get("completed")).push(n)}return bt.map(n=>({status:n,threads:e.get(n)}))}const bo="sidebar.group.expanded.";function jo(t,e){const n=I.c(3),[o,i]=Ce(`${bo}${t}`,e);let r;return n[0]!==o||n[1]!==i?(r=[o,i],n[0]=o,n[1]=i,n[2]=r):r=n[2],r}function os(t){const e=I.c(12),{onClick:n,isFetching:o,indented:i}=t,r=i?"-ml-4 pl-6 pr-2":"px-2";let l;e[0]!==r?(l=O("flex items-center gap-2 py-1.5 rounded-md text-sm text-muted-foreground",r,"hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50","transition-colors disabled:cursor-progress disabled:opacity-60"),e[0]=r,e[1]=l):l=e[1];let a;e[2]!==o?(a=o&&s.jsx(wt,{size:14,className:"animate-spin"}),e[2]=o,e[3]=a):a=e[3];const m=o?"Loading…":"Show more";let c;e[4]!==m?(c=s.jsx("span",{children:m}),e[4]=m,e[5]=c):c=e[5];let d;return e[6]!==o||e[7]!==n||e[8]!==l||e[9]!==a||e[10]!==c?(d=s.jsxs("button",{type:"button","aria-label":"Show more tasks",onClick:n,disabled:o,className:l,children:[a,c]}),e[6]=o,e[7]=n,e[8]=l,e[9]=a,e[10]=c,e[11]=d):d=e[11],d}function vo(t,e,n,o){return[t,e,n,o.type,o.member,o.currentUserId??""].join("|")}function yo(t){return t.member==="mine"&&!t.currentUserId}const rs=4;let Se=0;const Ge=[];function So(){for(;Se<rs&&Ge.length>0;){const t=Ge.shift();t&&t()}}function ls(t){return new Promise((e,n)=>{const o=()=>{Se++,t().then(e,n).finally(()=>{Se--,So()})};Se<rs?o():Ge.push(o)})}const Oe=10;function jt(t,e,n,o,i){const r={hidden:!1};o.member==="mine"&&o.currentUserId&&(r.created_by=o.currentUserId),o.type==="automation"&&(r.has_trigger=!0),o.type==="manual"&&(r.has_trigger=!1);const l={where:r,limit:i,offset:n,orderBy:[{field:["updated_at"],direction:"desc"}]};return l.status=e,l}function _o(t,e,n,o){let i=0;for(const r of t)as(r,e,n,o)&&i++;return i}function Fe(t,e,n,o){return _o(t,e,n,o)}function No(t,e){return!!(t>=Oe||t===0&&e)}function vt(t,e){return t<e}function Co(t,e){return e===!1?!1:e===!0?!0:t}function as(t,e,n,o){return!(t.hidden||(t.status??"completed")!==n||o.member==="mine"&&o.currentUserId&&t.created_by!==o.currentUserId||o.type==="automation"&&!t.trigger_id||o.type==="manual"&&t.trigger_id)}const Ne=new Map,ye=new Map;function wo(t,e){return e?t>=Oe?!0:null:!1}function yt(t){return Ne.get(t)}function ko(t,e){Ne.set(t,e)}function Io(t,e,n){const o=Ne.get(t);if(o!==void 0){n(o);return}let i=ye.get(t);i||(i=ls(e).then(r=>(Ne.set(t,r),ye.delete(t),r)).catch(()=>(ye.delete(t),Promise.reject(new Error("group probe failed")))),ye.set(t,i)),i.then(n,()=>n(!1))}function St(t){const e=t,n=Array.isArray(e.items)?e.items:[];return{items:n,hasMore:e.hasMore??n.length===Oe,totalCount:typeof e.totalCount=="number"?e.totalCount:void 0}}function Ao(t,e,n,o,i){let r=0;for(const l of t)e.has(l.id)||as(l,n,o,i)&&r++;return r}function zo(t,e,n,o){const i=I.c(8),{org:r}=X(),l=vo(r.id,t,e,n);let a;i[0]!==n?(a=yo(n),i[0]=n,i[1]=a):a=i[1];const m=a,[c,d]=M.useState({isFetching:!1,isProbing:!1,identity:l,probeSubscribedIdentity:null,serverHasMore:null});c.identity!==l&&d({isFetching:!1,isProbing:!1,identity:l,probeSubscribedIdentity:null,serverHasMore:null});const u=Tn(),{threads:f,hasMore:h}=Je(),x=Fe(f,t,e,n),g=No(x,h),p=wo(x,h),b=Kt();if(c.identity===l&&c.serverHasMore===null){const _=p??yt(l);_!==void 0&&d({isFetching:!1,isProbing:!1,identity:l,probeSubscribedIdentity:c.probeSubscribedIdentity,serverHasMore:_})}!m&&c.identity===l&&c.serverHasMore===null&&p===null&&yt(l)===void 0&&c.probeSubscribedIdentity!==l&&(d(_=>_.identity===l?{..._,isProbing:!0,probeSubscribedIdentity:l}:_),Io(l,async()=>{const _=jt(t,e,0,n,1),N=await b.call("COLLECTION_THREADS_LIST",_),{totalCount:w}=St(N),A=Fe(u.threads.get(),t,e,n);return w===void 0?!1:vt(A,w)},_=>{d(N=>N.identity!==l?N:{...N,isProbing:!1,serverHasMore:_})}));const v=async function(){if(c.isFetching||c.isProbing||m)return;const N=l;d(w=>w.identity===N?{...w,isFetching:!0}:w);try{const w=Fe(f,t,e,n),A=jt(t,e,w,n,Oe),z=await ls(()=>b.call("COLLECTION_THREADS_LIST",A)),{items:k,hasMore:$,totalCount:D}=St(z),R=new Set(f.map($o)),B=Ao(k,R,t,e,n),L=w;u.mergeThreads(k),d(P=>{if(P.identity!==N)return P;let E;return D!==void 0?E=vt(L+B,D):E=k.length===0||B===0?!1:$,ko(N,E),{...P,isFetching:!1,serverHasMore:E}})}catch(w){const A=w,z=A instanceof Error?A.message:String(A);oe.error(`Could not load more tasks: ${z}`),d(k=>k.identity===N?{...k,isFetching:!1}:k)}},y=c.isFetching||c.isProbing,S=!m&&!y&&Co(g,c.serverHasMore);let C;return i[2]!==y||i[3]!==v||i[4]!==S||i[5]!==c.isProbing||i[6]!==c.serverHasMore?(C={hasMore:S,isFetching:y,isProbing:c.isProbing,serverHasMore:c.serverHasMore,loadMore:v},i[2]=y,i[3]=v,i[4]=S,i[5]=c.isProbing,i[6]=c.serverHasMore,i[7]=C):C=i[7],C}function $o(t){return t.id}function To(t){const e=I.c(20),{status:n,threads:o,activeTaskId:i,onSelectTask:r,onArchiveTask:l,canArchive:a,filters:m}=t,{isFetching:c,isProbing:d,loadMore:u,hasMore:f,serverHasMore:h}=zo("status",n,m),[x,g]=M.useState(!1);!x&&o.length===0&&h===!0&&!c&&!d&&(g(!0),queueMicrotask(()=>{u()}));let p;if(e[0]!==i||e[1]!==a||e[2]!==m||e[3]!==l||e[4]!==r||e[5]!==o){let v;e[7]!==i||e[8]!==a||e[9]!==m||e[10]!==l||e[11]!==r?(v=y=>s.jsx(is,{task:y,isActive:i===y.id,onClick:()=>r(y),onArchive:a&&y.created_by===m.currentUserId?()=>l(y):void 0,showAutomationBadge:!!y.trigger_id,showAgentIcon:!0,hideStatusIdle:!0,indented:!0},y.id),e[7]=i,e[8]=a,e[9]=m,e[10]=l,e[11]=r,e[12]=v):v=e[12],p=o.map(v),e[0]=i,e[1]=a,e[2]=m,e[3]=l,e[4]=r,e[5]=o,e[6]=p}else p=e[6];let b;e[13]!==f||e[14]!==c||e[15]!==u?(b=(f||c)&&s.jsx(os,{onClick:()=>{u()},isFetching:c,indented:!0}),e[13]=f,e[14]=c,e[15]=u,e[16]=b):b=e[16];let j;return e[17]!==p||e[18]!==b?(j=s.jsxs(s.Fragment,{children:[p,b]}),e[17]=p,e[18]=b,e[19]=j):j=e[19],j}function Oo(t){const e=I.c(36),{status:n,threads:o,activeTaskId:i,onSelectTask:r,onArchiveTask:l,canArchive:a,filters:m}=t,c=hi[n],d=c.icon,[u,f]=jo(`status-${n}`,!1);let h;e[0]!==u||e[1]!==f?(h=function(){f(!u)},e[0]=u,e[1]=f,e[2]=h):h=e[2];const x=h;let g;e[3]!==x?(g=N=>{N.target===N.currentTarget&&(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),x())},e[3]=x,e[4]=g):g=e[4];let p;e[5]!==d||e[6]!==c.iconClassName?(p=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center transition-opacity group-hover/group:opacity-0",children:s.jsx(d,{size:12,className:c.iconClassName})}),e[5]=d,e[6]=c.iconClassName,e[7]=p):p=e[7];let b;e[8]!==u?(b=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center text-muted-foreground opacity-0 transition-opacity group-hover/group:opacity-100",children:u?s.jsx(Xe,{size:14}):s.jsx(pi,{size:14})}),e[8]=u,e[9]=b):b=e[9];let j;e[10]!==p||e[11]!==b?(j=s.jsxs("div",{className:"relative size-5 shrink-0 flex items-center justify-center",children:[p,b]}),e[10]=p,e[11]=b,e[12]=j):j=e[12];let v;e[13]!==c.label?(v=s.jsx("span",{className:"flex-1 truncate",children:c.label}),e[13]=c.label,e[14]=v):v=e[14];let y;e[15]!==o.length?(y=s.jsx("div",{className:"size-5 shrink-0 flex items-center justify-center",children:s.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:o.length})}),e[15]=o.length,e[16]=y):y=e[16];let S;e[17]!==u||e[18]!==x||e[19]!==g||e[20]!==j||e[21]!==v||e[22]!==y?(S=s.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":u,onClick:x,onKeyDown:g,className:"group/group flex items-center gap-2 px-2 py-1.5 rounded-md text-sm font-medium text-foreground cursor-pointer hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 transition-colors",children:[j,v,y]}),e[17]=u,e[18]=x,e[19]=g,e[20]=j,e[21]=v,e[22]=y,e[23]=S):S=e[23];let C;e[24]!==i||e[25]!==a||e[26]!==u||e[27]!==m||e[28]!==l||e[29]!==r||e[30]!==n||e[31]!==o?(C=u&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:s.jsx(To,{status:n,threads:o,activeTaskId:i,onSelectTask:r,onArchiveTask:l,canArchive:a,filters:m})}),e[24]=i,e[25]=a,e[26]=u,e[27]=m,e[28]=l,e[29]=r,e[30]=n,e[31]=o,e[32]=C):C=e[32];let _;return e[33]!==S||e[34]!==C?(_=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[S,C]}),e[33]=S,e[34]=C,e[35]=_):_=e[35],_}function _t(t){const e=I.c(38),{threads:n,groupBy:o,activeTaskId:i,onSelectTask:r,onArchiveTask:l,filters:a,hasMore:m,isFetchingMore:c,onLoadMore:d,filtersActive:u}=t;if(n.length===0&&!m&&!c){let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(mi,{className:"size-6 opacity-60"}),e[0]=p):p=e[0];const b=u?"No chats match your filters":"No chats yet";let j;return e[1]!==b?(j=s.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 px-4 py-12 text-center text-muted-foreground",children:[p,s.jsx("p",{className:"text-sm",children:b})]}),e[1]=b,e[2]=j):j=e[2],j}const f=n.length>1||m;if(o==="status"){let p;if(e[3]!==i||e[4]!==f||e[5]!==a||e[6]!==l||e[7]!==r||e[8]!==n){let j;e[10]!==i||e[11]!==f||e[12]!==a||e[13]!==l||e[14]!==r?(j=v=>s.jsx(Oo,{status:v.status,threads:v.threads,activeTaskId:i,onSelectTask:r,onArchiveTask:l,canArchive:f,filters:a},v.status),e[10]=i,e[11]=f,e[12]=a,e[13]=l,e[14]=r,e[15]=j):j=e[15],p=go(n).map(j),e[3]=i,e[4]=f,e[5]=a,e[6]=l,e[7]=r,e[8]=n,e[9]=p}else p=e[9];let b;return e[16]!==p?(b=s.jsx(s.Fragment,{children:p}),e[16]=p,e[17]=b):b=e[17],b}let h;if(e[18]!==i||e[19]!==f||e[20]!==a||e[21]!==l||e[22]!==r||e[23]!==n){let p;e[25]!==i||e[26]!==f||e[27]!==a||e[28]!==l||e[29]!==r?(p=b=>s.jsx(is,{task:b,isActive:i===b.id,onClick:()=>r(b),onArchive:f&&b.created_by===a.currentUserId?()=>l(b):void 0,showAutomationBadge:!!b.trigger_id,showAgentIcon:!0},b.id),e[25]=i,e[26]=f,e[27]=a,e[28]=l,e[29]=r,e[30]=p):p=e[30],h=n.map(p),e[18]=i,e[19]=f,e[20]=a,e[21]=l,e[22]=r,e[23]=n,e[24]=h}else h=e[24];let x;e[31]!==m||e[32]!==c||e[33]!==d?(x=(m||c)&&s.jsx(os,{onClick:d,isFetching:c}),e[31]=m,e[32]=c,e[33]=d,e[34]=x):x=e[34];let g;return e[35]!==h||e[36]!==x?(g=s.jsxs(s.Fragment,{children:[h,x]}),e[35]=h,e[36]=x,e[37]=g):g=e[37],g}function Mo(t,e,n){if(!n)return;const o=t.findIndex(i=>i.id===e);if(o!==-1){for(let i=o+1;i<t.length;i++){const r=t[i];if(r?.created_by===n)return r}for(let i=o-1;i>=0;i--){const r=t[i];if(r?.created_by===n)return r}}}function Nt(t){const e=I.c(17),{label:n,onClick:o,active:i,children:r}=t,[l,a]=M.useState(!1);let m,c,d,u;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>a(!0),c=()=>a(!1),d=()=>a(!0),u=()=>a(!1),e[0]=m,e[1]=c,e[2]=d,e[3]=u):(m=e[0],c=e[1],d=e[2],u=e[3]);const f=i&&"bg-sidebar-accent text-foreground";let h;e[4]!==f?(h=O("md:size-[34px] rounded-lg",f),e[4]=f,e[5]=h):h=e[5];let x;e[6]!==r||e[7]!==n||e[8]!==o||e[9]!==h?(x=s.jsx(le,{asChild:!0,children:s.jsx(me,{"aria-label":n,onClick:o,onPointerEnter:m,onPointerLeave:c,onFocus:d,onBlur:u,className:h,children:r})}),e[6]=r,e[7]=n,e[8]=o,e[9]=h,e[10]=x):x=e[10];let g;e[11]!==n?(g=s.jsx(ae,{side:"bottom",children:n}),e[11]=n,e[12]=g):g=e[12];let p;return e[13]!==l||e[14]!==x||e[15]!==g?(p=s.jsxs(ce,{open:l,children:[x,g]}),e[13]=l,e[14]=x,e[15]=g,e[16]=p):p=e[16],p}function Re(t){const e=I.c(13),{label:n,value:o,onChange:i,options:r}=t;let l;e[0]!==n?(l=s.jsx("span",{className:"text-sm text-muted-foreground",children:n}),e[0]=n,e[1]=l):l=e[1];let a;e[2]!==i?(a=u=>u&&i(u),e[2]=i,e[3]=a):a=e[3];let m;e[4]!==r?(m=r.map(Eo),e[4]=r,e[5]=m):m=e[5];let c;e[6]!==a||e[7]!==m||e[8]!==o?(c=s.jsx(ii,{type:"single",size:"sm",value:o,onValueChange:a,className:"gap-0.5 rounded-lg border border-border bg-muted/50 p-0.5",children:m}),e[6]=a,e[7]=m,e[8]=o,e[9]=c):c=e[9];let d;return e[10]!==l||e[11]!==c?(d=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[l,c]}),e[10]=l,e[11]=c,e[12]=d):d=e[12],d}function Eo(t){return s.jsxs(ni,{value:t.value,className:"h-6 gap-1.5 rounded-md border border-transparent px-2 text-xs font-medium text-muted-foreground hover:bg-transparent data-[state=on]:border-border data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm",children:[t.icon,t.label]},t.value)}function cs({onNavigate:t}={}){const{data:e}=te.useSession(),n=e?.user?.id,{org:o}=X(),i=$t({connectionId:Ot,orgId:o.id,orgSlug:o.slug}),r=_e(o.id).id,l=Dt(),{threads:a,hasMore:m,isFetchingMore:c,fetchNextPage:d}=Je(),u=a.filter(T=>!T.hidden),{hide:f,setScope:h}=Ut(),x=ne(),{setTaskId:g,createNewTask:p}=Ze(),b=Ve({strict:!1}),j=we({strict:!1}),v=b.taskId??null,y=j.virtualmcpid??a.find(T=>T.id===v)?.virtual_mcp_id??null,S=()=>{t?.()},C=[...u].sort((T,q)=>(q.updated_at??"").localeCompare(T.updated_at??"")),[_,N]=M.useState("all"),[w,A]=M.useState("flat"),[z,k]=Ce("sidebar-threads-scope-all",!1),[$,D]=M.useState(!1),[R,B]=M.useState(!1),L={type:_,member:"mine",currentUserId:n??null},P={};z||(P.created_by="me"),h(P);const E=T=>n?T.filter(q=>q.created_by===n):[],F=T=>_==="automation"?T.filter(q=>!!q.trigger_id):_==="manual"?T.filter(q=>!q.trigger_id):T,U=E(C),G=F(U),W=F(C),Y=z?W:G,V=T=>{if(n&&T.created_by&&T.created_by!==n)return;const q=T.id===v;if(f(T.id),En(T.id),!q)return;const ie=Mo(Y,T.id,n);S(),ie?g(ie.id,ie.virtual_mcp_id):x({to:"/$org",params:{org:o.slug}})},Me=T=>{S(),g(T.id,T.virtual_mcp_id)},ms=async T=>{try{const q=await i.callTool({name:"COLLECTION_THREAD_MESSAGES_LIST",arguments:{thread_id:T,limit:1,offset:0}});return((q.structuredContent??q).items?.length??0)===0}catch{return!1}},tt=async()=>{const T=y??r;J("sidebar_new_thread_clicked",{virtual_mcp_id:T});const q=U.find(ie=>ie.virtual_mcp_id===T&&ie.title==="New chat");if(q&&await ms(q.id)){S(),g(q.id,T);return}S(),p(T)},{state:us,isMobile:st,toggleSidebar:fs}=re();if(us==="collapsed"&&!st){const T=_e(o.id),q=new Map((l??[]).map(Z=>[Z.id,Z])),ie=Z=>(Z?q.get(Z):void 0)??(Z===r?T:void 0);return s.jsxs("div",{className:"flex flex-col min-h-0 flex-1 -mt-1 w-[calc(var(--sidebar-width-icon)-1rem)]",children:[s.jsx("div",{className:"flex h-12 shrink-0 items-center justify-center",children:s.jsx(ns,{orgParam:o.slug,side:"right",align:"start",trigger:s.jsx(K,{tooltip:o.name,children:s.jsx($e,{org:o,size:"sm"})})})}),s.jsxs(ee,{className:"mt-2 min-h-0 gap-1.5 overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[s.jsx(H,{children:s.jsx(K,{"aria-label":"Toggle sidebar",tooltip:"Toggle sidebar",onClick:fs,children:s.jsx(Et,{size:16})})}),s.jsx(H,{children:s.jsx(K,{tooltip:"New chat",onClick:()=>{tt()},children:s.jsx(rt,{size:16})})}),Y.map(Z=>{const it=ie(Z.virtual_mcp_id);return s.jsx(H,{children:s.jsx(K,{tooltip:Z.title||"New chat",isActive:Z.id===v,onClick:()=>Me(Z),children:s.jsx(de,{icon:it?.icon??null,name:it?.title??"Agent",size:"xs"})})},Z.id)})]})]})}const ve=w!=="flat"||_!=="all"||z===!0,hs=s.jsxs(Ie,{children:[s.jsxs(ce,{children:[s.jsx(le,{asChild:!0,children:s.jsx(fe,{asChild:!0,children:s.jsxs(me,{"aria-label":"Filter chats",active:ve,className:"md:size-[34px] rounded-lg",children:[s.jsx(si,{size:16}),ve&&s.jsx("span",{className:"absolute right-1 top-1 size-1.5 rounded-full bg-primary ring-2 ring-sidebar"})]})})}),s.jsx(ae,{side:"bottom",children:"Filter chats"})]}),s.jsxs(ke,{align:"start",className:"w-64 flex flex-col gap-3 p-3",children:[s.jsx(Re,{label:"View",value:w,onChange:T=>{J("tasks_panel_group_by_changed",{to_value:T}),A(T)},options:[{value:"flat",label:"List",icon:s.jsx(cn,{size:13})},{value:"status",label:"Status",icon:s.jsx(dn,{size:13})}]}),s.jsx(Re,{label:"Type",value:_,onChange:T=>{J("tasks_panel_filter_changed",{to_value:T}),N(T)},options:[{value:"all",label:"All"},{value:"manual",label:"Chats"},{value:"automation",label:"Auto"}]}),s.jsx(Re,{label:"Scope",value:z?"team":"mine",onChange:T=>k(T==="team"),options:[{value:"mine",label:"Mine"},{value:"team",label:"Team"}]})]})]}),nt=T=>s.jsx(Pt,{delayDuration:300,children:s.jsxs("div",{className:O("shrink-0 flex items-center justify-between",T?"h-10":"h-10 md:h-[34px] mb-2"),children:[s.jsxs("div",{className:"flex items-center gap-0.5",children:[!T&&s.jsx(Xt,{className:"md:size-[34px] rounded-lg"}),hs]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(Nt,{label:"Search chats",onClick:()=>{J("tasks_panel_search_opened"),B(!0),D(!0)},children:s.jsx(an,{size:16})}),s.jsx(Nt,{label:"New chat",onClick:()=>{tt()},children:s.jsx(rt,{size:16})})]})]})});return st?s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[nt(!0),s.jsx(pt,{wrapperClassName:"flex-1 min-h-0",className:"flex flex-col gap-0.5 overflow-y-auto overscroll-contain px-1 h-full",children:s.jsx(_t,{threads:Y,groupBy:w,activeTaskId:v,onSelectTask:Me,onArchiveTask:V,filters:L,hasMore:m,isFetchingMore:c,onLoadMore:()=>{d()},filtersActive:ve})}),R&&s.jsx(gt,{open:$,onOpenChange:D})]}):s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[nt(!1),s.jsx("div",{className:"flex-1 min-h-0 flex flex-col gap-0.5 -mr-2 pr-2",children:s.jsx(pt,{wrapperClassName:"flex-1 min-h-0",className:"flex flex-col gap-0.5 overflow-y-auto overscroll-contain h-full",children:s.jsx(_t,{threads:Y,groupBy:w,activeTaskId:v,onSelectTask:Me,onArchiveTask:V,filters:L,hasMore:m,isFetchingMore:c,onLoadMore:()=>{d()},filtersActive:ve})})}),R&&s.jsx(gt,{open:$,onOpenChange:D})]})}const Po=5,Do=[{nameWidth:"w-24",taskRows:2},{nameWidth:"w-28",taskRows:0},{nameWidth:"w-20",taskRows:1},{nameWidth:"w-32",taskRows:0},{nameWidth:"w-24",taskRows:0}];function ds(){const t=I.c(3),{state:e}=re();if(e==="collapsed"){let i;return t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex flex-col gap-1.5",children:Array.from({length:Po}).map(Lo)}),t[0]=i):i=t[0],i}let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"shrink-0 px-1 h-10 md:h-7 mb-2 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(se,{className:"size-6 rounded-md"}),s.jsx(se,{className:"size-6 rounded-md"}),s.jsx(se,{className:"size-6 rounded-md"})]}),s.jsx(se,{className:"h-6 w-20 rounded-md"})]}),t[1]=n):n=t[1];let o;return t[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[n,s.jsx("div",{className:"flex flex-col gap-0.5",children:Do.map(Fo)})]}),t[2]=o):o=t[2],o}function Fo(t,e){return s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[s.jsx(se,{className:"size-5 rounded-full shrink-0"}),s.jsx(se,{className:O("h-3",t.nameWidth,"rounded-sm")})]}),t.taskRows>0&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:Array.from({length:t.taskRows}).map(Ro)})]},e)}function Ro(t,e){return s.jsx("div",{className:"flex items-center gap-2 px-2 py-1.5",children:s.jsx(se,{className:"h-3 flex-1 rounded-sm"})},e)}function Lo(t,e){return s.jsx(se,{className:"size-10 rounded-lg mx-auto"},e)}function Ho(){const t=I.c(2);if(ze()){let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ue,{showName:!0}),t[0]=o):o=t[0],o}let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(s.Fragment,{children:[s.jsx(Ue,{}),s.jsx(Te,{})]}),t[1]=n):n=t[1],n}function Bo(){const t=I.c(5),e=Qt();let n,o;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(uo,{}),o=s.jsx(Ho,{}),t[0]=n,t[1]=o):(n=t[0],o=t[1]);let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(We,{children:s.jsx(M.Suspense,{fallback:s.jsx(ds,{}),children:s.jsx(cs,{})})}),t[2]=i):i=t[2];let r;return t[3]!==e?(r=s.jsx(Gt,{children:s.jsx(es,{sections:e,footer:n,header:o,additionalContent:i})}),t[3]=e,t[4]=r):r=t[4],r}function Uo(t){const e=I.c(8),{onClose:n}=t,o=Qt();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(fo,{}),e[0]=i):i=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ds,{}),e[1]=r):r=e[1];let l;e[2]!==n?(l=s.jsx(We,{children:s.jsx(M.Suspense,{fallback:r,children:s.jsx(cs,{onNavigate:n})})}),e[2]=n,e[3]=l):l=e[3];let a;return e[4]!==n||e[5]!==o||e[6]!==l?(a=s.jsx(Gt,{children:s.jsx(eo,{sections:o,onClose:n,footer:i,additionalContent:l})}),e[4]=n,e[5]=o,e[6]=l,e[7]=a):a=e[7],a}const Go="sidebar.open";function Wo(){const t=I.c(1),{state:e}=re(),n=ze();if(e!=="collapsed"||n)return null;let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Te,{}),t[0]=o):o=t[0],o}function Vo(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Os,{}),t[0]=e):e=t[0],e}function ga(){const t=I.c(43),e=Ye(),n=ze();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},t[0]=o):o=t[0];const{connect:i,siteUrl:r}=we(o),l=i==="1",[a,m]=Ce(Go,!1),{width:c,wrapperRef:d,onStartResize:u,resetWidth:f}=Ci(),h=!e;let x,g;t[1]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsxs(Q.LeftColumn,{children:[s.jsx(Wo,{}),s.jsx(Q.TogglesSlot,{})]}),g=s.jsx(Q.CenterSlot,{}),t[1]=x,t[2]=g):(x=t[1],g=t[2]);let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs(Q.Header,{children:[x,g,s.jsxs(Q.RightColumn,{children:[s.jsx("div",{className:"min-w-0 flex-1 overflow-x-auto [scrollbar-width:none] flex justify-end items-center gap-0.5",children:s.jsx(Q.TabsSlot,{})}),s.jsx(Q.RightSlot,{})]})]}),t[3]=p):p=t[3];const b=p;let j;t[4]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Xt,{}),t[4]=j):j=t[4];let v;t[5]!==n?(v=!n&&s.jsx("div",{className:"flex min-w-0 flex-1 items-center",children:s.jsx(Te,{})}),t[5]=n,t[6]=v):v=t[6];let y,S,C,_,N;t[7]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(be,{}),C=s.jsx(Q.TogglesSlot,{}),_=s.jsx(Q.TabsSlot,{className:"shrink-0"}),N=s.jsx(Q.CenterSlot,{}),y=s.jsx(Q.RightSlot,{}),t[7]=y,t[8]=S,t[9]=C,t[10]=_,t[11]=N):(y=t[7],S=t[8],C=t[9],_=t[10],N=t[11]);let w;t[12]!==v?(w=s.jsx(Q.Header,{className:"grid-cols-1 px-1",children:s.jsxs("div",{className:"flex w-full min-w-0 items-center gap-1",children:[j,v,S,C,_,N,y]})}),t[12]=v,t[13]=w):w=t[13];const A=w;let z;t[14]===Symbol.for("react.memo_cache_sentinel")?(z={background:"transparent",containerType:"inline-size"},t[14]=z):z=t[14];let k;t[15]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Ps,{className:"flex flex-col min-h-0",style:z,children:s.jsx("div",{className:"flex flex-col h-full min-h-0",children:s.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:s.jsx(M.Suspense,{fallback:s.jsx(Vo,{}),children:s.jsx(Ts,{})})})})}),t[15]=k):k=t[15];const $=k,D=!h&&(e?A:b),R=`${c}px`;let B;t[16]!==R?(B={"--sidebar-width":R,"--sidebar-width-icon":"3.125rem"},t[16]=R,t[17]=B):B=t[17];const L=B;let P;t[18]!==e||t[19]!==u||t[20]!==f?(P=!e&&s.jsxs(s.Fragment,{children:[s.jsx(Bo,{}),s.jsx(Si,{onPointerDown:u,onDoubleClick:f})]}),t[18]=e,t[19]=u,t[20]=f,t[21]=P):P=t[21];let E;t[22]!==h?(E=h?s.jsxs("div",{className:"flex flex-col flex-1 min-w-0 min-h-0 h-full",children:[b,$]}):$,t[22]=h,t[23]=E):E=t[23];let F;t[24]!==L||t[25]!==P||t[26]!==E||t[27]!==d?(F=s.jsxs(Ds,{ref:d,className:"flex-1 bg-sidebar relative min-h-0",style:L,children:[P,E]}),t[24]=L,t[25]=P,t[26]=E,t[27]=d,t[28]=F):F=t[28];let U;t[29]!==e?(U=e&&s.jsx(di,{renderSidebar:qo}),t[29]=e,t[30]=U):U=t[30];let G;t[31]!==r||t[32]!==l?(G=l&&s.jsx(gi,{siteUrl:r}),t[31]=r,t[32]=l,t[33]=G):G=t[33];let W;t[34]!==D||t[35]!==F||t[36]!==U||t[37]!==G?(W=s.jsx(An,{children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[D,F,U,G]})}),t[34]=D,t[35]=F,t[36]=U,t[37]=G,t[38]=W):W=t[38];let Y;return t[39]!==m||t[40]!==a||t[41]!==W?(Y=s.jsx(On,{children:s.jsx(Q.Provider,{children:s.jsx(Fs,{open:a,onOpenChange:m,children:W})})}),t[39]=m,t[40]=a,t[41]=W,t[42]=Y):Y=t[42],Y}function qo(t){const{onClose:e}=t;return s.jsx("div",{className:"flex h-full",children:s.jsx("div",{className:"w-full bg-sidebar flex flex-col overflow-y-auto group/sidebar","data-state":"expanded",children:s.jsx(Uo,{onClose:e})})})}export{ga as default};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import{r as d,bB as me,bx as Gr,c as cr,l as st,j as w}from"./index-BSxh64hl.js";import{w as Yr,e as Ae,s as fe,i as V,f as ur,r as ye,h as at,j as fr,J as nt,k as D,m as _,n as ue,o as we,p as Se,q as re,R as ct,L as de,t as Hr,v as Oe,x as Vr,y as qr,z as Ur,B as Zr,D as Le,E as He,F as Xr,G as Jr,H as Qr,I as ea,K as Ne,M as ze,N as q,O as ut,P as ft,Z as Ke,Q as dr,S as vr,T as pr,U as xe,V as mr,W as te,Y as ta,_ as yr,$ as he,a0 as ra,a1 as ie,a2 as ve,a3 as oe,a4 as pe,a5 as hr,a6 as gr,a7 as br,a8 as aa,a9 as na,aa as dt,ab as ia,ac as vt,ad as oa,ae as la,af as sa,ag as ca,ah as ua,ai as xr,aj as fa,ak as da,al as va,am as pa,an as ma,ao as Or,ap as ya,aq as Pr,ar as ha,as as jr,at as ga,au as ba,av as pt,aw as xa,ax as Oa,ay as Pa,az as ja,aA as $,aB as Aa,aC as ka,aD as Ia,aE as wa,aF as Sa,aG as Ea,aH as Ta,aI as Ca,aJ as Da,aK as Ma,aL as Ba,aM as $a,aN as _a,aO as La,aP as Na,X as mt,C as yt,A as za,b as Ka,c as ht}from"./AreaChart-DqvPPaTC.js";const Ar=Math.cos,Ee=Math.sin,U=Math.sqrt,Te=Math.PI,We=2*Te,it={draw(t,e){const r=U(e/Te);t.moveTo(r,0),t.arc(0,0,r,0,We)}},Wa={draw(t,e){const r=U(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},kr=U(1/3),Ra=kr*2,Fa={draw(t,e){const r=U(e/Ra),a=r*kr;t.moveTo(0,-r),t.lineTo(a,0),t.lineTo(0,r),t.lineTo(-a,0),t.closePath()}},Ga={draw(t,e){const r=U(e),a=-r/2;t.rect(a,a,r,r)}},Ya=.8908130915292852,Ir=Ee(Te/10)/Ee(7*Te/10),Ha=Ee(We/10)*Ir,Va=-Ar(We/10)*Ir,qa={draw(t,e){const r=U(e*Ya),a=Ha*r,n=Va*r;t.moveTo(0,-r),t.lineTo(a,n);for(let i=1;i<5;++i){const l=We*i/5,f=Ar(l),o=Ee(l);t.lineTo(o*r,-f*r),t.lineTo(f*a-o*n,o*a+f*n)}t.closePath()}},Fe=U(3),Ua={draw(t,e){const r=-U(e/(Fe*3));t.moveTo(0,r*2),t.lineTo(-Fe*r,-r),t.lineTo(Fe*r,-r),t.closePath()}},G=-.5,Y=U(3)/2,Ve=1/U(12),Za=(Ve/2+1)*3,Xa={draw(t,e){const r=U(e/Za),a=r/2,n=r*Ve,i=a,l=r*Ve+r,f=-i,o=l;t.moveTo(a,n),t.lineTo(i,l),t.lineTo(f,o),t.lineTo(G*a-Y*n,Y*a+G*n),t.lineTo(G*i-Y*l,Y*i+G*l),t.lineTo(G*f-Y*o,Y*f+G*o),t.lineTo(G*a+Y*n,G*n-Y*a),t.lineTo(G*i+Y*l,G*l-Y*i),t.lineTo(G*f+Y*o,G*o-Y*f),t.closePath()}};function Ja(t,e){let r=null,a=Yr(n);t=typeof t=="function"?t:Ae(t||it),e=typeof e=="function"?e:Ae(e===void 0?64:+e);function n(){let i;if(r||(r=i=a()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return n.type=function(i){return arguments.length?(t=typeof i=="function"?i:Ae(i),n):t},n.size=function(i){return arguments.length?(e=typeof i=="function"?i:Ae(+i),n):e},n.context=function(i){return arguments.length?(r=i??null,n):r},n}var Qa="Invariant failed";function en(t,e){throw new Error(Qa)}var tn=["type","size","sizeType"];function qe(){return qe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)({}).hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},qe.apply(null,arguments)}function gt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function bt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?gt(Object(r),!0).forEach(function(a){rn(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gt(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function rn(t,e,r){return(e=an(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function an(t){var e=nn(t,"string");return typeof e=="symbol"?e:e+""}function nn(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function on(t,e){if(t==null)return{};var r,a,n=ln(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)r=i[a],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ln(t,e){if(t==null)return{};var r={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;r[a]=t[a]}return r}var wr={symbolCircle:it,symbolCross:Wa,symbolDiamond:Fa,symbolSquare:Ga,symbolStar:qa,symbolTriangle:Ua,symbolWye:Xa},sn=Math.PI/180,cn=t=>{var e="symbol".concat(ur(t));return wr[e]||it},un=(t,e,r)=>{if(e==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*sn;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.tan(a)**2)}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},fn=(t,e)=>{wr["symbol".concat(ur(t))]=e},Sr=t=>{var{type:e="circle",size:r=64,sizeType:a="area"}=t,n=on(t,tn),i=bt(bt({},n),{},{type:e,size:r,sizeType:a}),l="circle";typeof e=="string"&&(l=e);var f=()=>{var v=cn(l),m=Ja().type(v).size(un(r,a,l)),y=m();if(y!==null)return y},{className:o,cx:s,cy:c}=i,u=fe(i);return V(s)&&V(c)&&V(r)?d.createElement("path",qe({},u,{className:me("recharts-symbols",o),transform:"translate(".concat(s,", ").concat(c,")"),d:f()})):null};Sr.registerSymbol=fn;var xt=function(e,r){for(var a=arguments.length,n=new Array(a>2?a-2:0),i=2;i<a;i++)n[i-2]=arguments[i];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!e))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;console.warn(r.replace(/%s/g,()=>n[l++]))}},dn=["radius"],vn=["radius"],Ot,Pt,jt,At,kt,It,wt,St,Et,Tt;function Ct(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function Dt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ct(Object(r),!0).forEach(function(a){pn(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function pn(t,e,r){return(e=mn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mn(t){var e=yn(t,"string");return typeof e=="symbol"?e:e+""}function yn(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ce(){return Ce=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)({}).hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Ce.apply(null,arguments)}function Mt(t,e){if(t==null)return{};var r,a,n=hn(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)r=i[a],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function hn(t,e){if(t==null)return{};var r={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;r[a]=t[a]}return r}function J(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Bt=(t,e,r,a,n)=>{var i=ue(r),l=ue(a),f=Math.min(Math.abs(i)/2,Math.abs(l)/2),o=l>=0?1:-1,s=i>=0?1:-1,c=l>=0&&i>=0||l<0&&i<0?1:0,u;if(f>0&&Array.isArray(n)){for(var v=[0,0,0,0],m=0,y=4;m<y;m++){var h,b=(h=n[m])!==null&&h!==void 0?h:0;v[m]=b>f?f:b}u=D(Ot||(Ot=J(["M",",",""])),t,e+o*v[0]),v[0]>0&&(u+=D(Pt||(Pt=J(["A ",",",",0,0,",",",",",""])),v[0],v[0],c,t+s*v[0],e)),u+=D(jt||(jt=J(["L ",",",""])),t+r-s*v[1],e),v[1]>0&&(u+=D(At||(At=J(["A ",",",",0,0,",`,
|
|
2
|
-
`,",",""])),v[1],v[1],c,t+r,e+o*v[1])),u+=D(kt||(kt=J(["L ",",",""])),t+r,e+a-o*v[2]),v[2]>0&&(u+=D(It||(It=J(["A ",",",",0,0,",`,
|
|
3
|
-
`,",",""])),v[2],v[2],c,t+r-s*v[2],e+a)),u+=D(wt||(wt=J(["L ",",",""])),t+s*v[3],e+a),v[3]>0&&(u+=D(St||(St=J(["A ",",",",0,0,",`,
|
|
4
|
-
`,",",""])),v[3],v[3],c,t,e+a-o*v[3])),u+="Z"}else if(f>0&&n===+n&&n>0){var p=Math.min(f,n);u=D(Et||(Et=J(["M ",",",`
|
|
5
|
-
A `,",",",0,0,",",",",",`
|
|
6
|
-
L `,",",`
|
|
7
|
-
A `,",",",0,0,",",",",",`
|
|
8
|
-
L `,",",`
|
|
9
|
-
A `,",",",0,0,",",",",",`
|
|
10
|
-
L `,",",`
|
|
11
|
-
A `,",",",0,0,",",",","," Z"])),t,e+o*p,p,p,c,t+s*p,e,t+r-s*p,e,p,p,c,t+r,e+o*p,t+r,e+a-o*p,p,p,c,t+r-s*p,e+a,t+s*p,e+a,p,p,c,t,e+a-o*p)}else u=D(Tt||(Tt=J(["M ",","," h "," v "," h "," Z"])),t,e,r,a,-r);return u},$t={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gn=t=>{var e=ye(t,$t),r=d.useRef(null),[a,n]=d.useState(-1);d.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&n(T)}catch{}},[]);var{x:i,y:l,width:f,height:o,radius:s,className:c}=e,{animationEasing:u,animationDuration:v,animationBegin:m,isAnimationActive:y,isUpdateAnimationActive:h}=e,b=d.useRef(f),p=d.useRef(o),g=d.useRef(i),x=d.useRef(l),O=d.useMemo(()=>({x:i,y:l,width:f,height:o,radius:s}),[i,l,f,o,s]),A=at(O,"rectangle-");if(i!==+i||l!==+l||f!==+f||o!==+o||f===0||o===0)return null;var P=me("recharts-rectangle",c);if(!h){var j=fe(e),{radius:S}=j,I=Mt(j,dn);return d.createElement("path",Ce({},I,{x:ue(i),y:ue(l),width:ue(f),height:ue(o),radius:typeof s=="number"?s:void 0,className:P,d:Bt(i,l,f,o,s)}))}var E=b.current,M=p.current,C=g.current,B=x.current,k="0px ".concat(a===-1?1:a,"px"),z="".concat(a,"px ").concat(a,"px"),K=fr(["strokeDasharray"],v,typeof u=="string"?u:$t.animationEasing);return d.createElement(nt,{animationId:A,key:A,canBegin:a>0,duration:v,easing:u,isActive:h,begin:m},T=>{var L=_(E,f,T),R=_(M,o,T),F=_(C,i,T),Z=_(B,l,T);r.current&&(b.current=L,p.current=R,g.current=F,x.current=Z);var X;y?T>0?X={transition:K,strokeDasharray:z}:X={strokeDasharray:k}:X={strokeDasharray:z};var H=fe(e),{radius:ge}=H,Q=Mt(H,vn);return d.createElement("path",Ce({},Q,{radius:typeof s=="number"?s:void 0,className:P,d:Bt(F,Z,L,R,s),ref:r,style:Dt(Dt({},X),e.style)}))})},_t,Lt,Nt,zt,Kt,Wt,Rt;function Ue(){return Ue=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)({}).hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Ue.apply(null,arguments)}function ae(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var bn=(t,e)=>{var r=Se(e-t),a=Math.min(Math.abs(e-t),359.999);return r*a},ke=t=>{var{cx:e,cy:r,radius:a,angle:n,sign:i,isExternal:l,cornerRadius:f,cornerIsExternal:o}=t,s=f*(l?1:-1)+a,c=Math.asin(f/s)/ct,u=o?n:n+i*c,v=re(e,r,s,u),m=re(e,r,a,u),y=o?n-i*c:n,h=re(e,r,s*Math.cos(c*ct),y);return{center:v,circleTangency:m,lineTangency:h,theta:c}},Er=t=>{var{cx:e,cy:r,innerRadius:a,outerRadius:n,startAngle:i,endAngle:l}=t,f=bn(i,l),o=i+f,s=re(e,r,n,i),c=re(e,r,n,o),u=D(_t||(_t=ae(["M ",",",`
|
|
12
|
-
A `,",",`,0,
|
|
13
|
-
`,",",`,
|
|
14
|
-
`,",",`
|
|
15
|
-
`])),s.x,s.y,n,n,+(Math.abs(f)>180),+(i>o),c.x,c.y);if(a>0){var v=re(e,r,a,i),m=re(e,r,a,o);u+=D(Lt||(Lt=ae(["L ",",",`
|
|
16
|
-
A `,",",`,0,
|
|
17
|
-
`,",",`,
|
|
18
|
-
`,","," Z"])),m.x,m.y,a,a,+(Math.abs(f)>180),+(i<=o),v.x,v.y)}else u+=D(Nt||(Nt=ae(["L ",","," Z"])),e,r);return u},xn=t=>{var{cx:e,cy:r,innerRadius:a,outerRadius:n,cornerRadius:i,forceCornerRadius:l,cornerIsExternal:f,startAngle:o,endAngle:s}=t,c=Se(s-o),{circleTangency:u,lineTangency:v,theta:m}=ke({cx:e,cy:r,radius:n,angle:o,sign:c,cornerRadius:i,cornerIsExternal:f}),{circleTangency:y,lineTangency:h,theta:b}=ke({cx:e,cy:r,radius:n,angle:s,sign:-c,cornerRadius:i,cornerIsExternal:f}),p=f?Math.abs(o-s):Math.abs(o-s)-m-b;if(p<0)return l?D(zt||(zt=ae(["M ",",",`
|
|
19
|
-
a`,",",",0,0,1,",`,0
|
|
20
|
-
a`,",",",0,0,1,",`,0
|
|
21
|
-
`])),v.x,v.y,i,i,i*2,i,i,-i*2):Er({cx:e,cy:r,innerRadius:a,outerRadius:n,startAngle:o,endAngle:s});var g=D(Kt||(Kt=ae(["M ",",",`
|
|
22
|
-
A`,",",",0,0,",",",",",`
|
|
23
|
-
A`,",",",0,",",",",",",",`
|
|
24
|
-
A`,",",",0,0,",",",",",`
|
|
25
|
-
`])),v.x,v.y,i,i,+(c<0),u.x,u.y,n,n,+(p>180),+(c<0),y.x,y.y,i,i,+(c<0),h.x,h.y);if(a>0){var{circleTangency:x,lineTangency:O,theta:A}=ke({cx:e,cy:r,radius:a,angle:o,sign:c,isExternal:!0,cornerRadius:i,cornerIsExternal:f}),{circleTangency:P,lineTangency:j,theta:S}=ke({cx:e,cy:r,radius:a,angle:s,sign:-c,isExternal:!0,cornerRadius:i,cornerIsExternal:f}),I=f?Math.abs(o-s):Math.abs(o-s)-A-S;if(I<0&&i===0)return"".concat(g,"L").concat(e,",").concat(r,"Z");g+=D(Wt||(Wt=ae(["L",",",`
|
|
26
|
-
A`,",",",0,0,",",",",",`
|
|
27
|
-
A`,",",",0,",",",",",",",`
|
|
28
|
-
A`,",",",0,0,",",",",","Z"])),j.x,j.y,i,i,+(c<0),P.x,P.y,a,a,+(I>180),+(c>0),x.x,x.y,i,i,+(c<0),O.x,O.y)}else g+=D(Rt||(Rt=ae(["L",",","Z"])),e,r);return g},On={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Pn=t=>{var e=ye(t,On),{cx:r,cy:a,innerRadius:n,outerRadius:i,cornerRadius:l,forceCornerRadius:f,cornerIsExternal:o,startAngle:s,endAngle:c,className:u}=e;if(i<n||s===c)return null;var v=me("recharts-sector",u),m=i-n,y=we(l,m,0,!0),h;return y>0&&Math.abs(s-c)<360?h=xn({cx:r,cy:a,innerRadius:n,outerRadius:i,cornerRadius:Math.min(y,m/2),forceCornerRadius:f,cornerIsExternal:o,startAngle:s,endAngle:c}):h=Er({cx:r,cy:a,innerRadius:n,outerRadius:i,startAngle:s,endAngle:c}),d.createElement("path",Ue({},fe(e),{className:v,d:h}))},ot=t=>null;ot.displayName="Cell";var Ge={},Ft;function jn(){return Ft||(Ft=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const n=r[Symbol.toStringTag];return n==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${n}]`}let a=r;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(r)===a}t.isPlainObject=e})(Ge)),Ge}var Ye,Gt;function An(){return Gt||(Gt=1,Ye=jn().isPlainObject),Ye}var kn=An();const In=Gr(kn);var Yt,Ht,Vt,qt,Ut;function Zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function Xt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zt(Object(r),!0).forEach(function(a){wn(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function wn(t,e,r){return(e=Sn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sn(t){var e=En(t,"string");return typeof e=="symbol"?e:e+""}function En(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function De(){return De=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)({}).hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},De.apply(null,arguments)}function be(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Jt=(t,e,r,a,n)=>{var i=r-a,l;return l=D(Yt||(Yt=be(["M ",",",""])),t,e),l+=D(Ht||(Ht=be(["L ",",",""])),t+r,e),l+=D(Vt||(Vt=be(["L ",",",""])),t+r-i/2,e+n),l+=D(qt||(qt=be(["L ",",",""])),t+r-i/2-a,e+n),l+=D(Ut||(Ut=be(["L ",","," Z"])),t,e),l},Tn={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Cn=t=>{var e=ye(t,Tn),{x:r,y:a,upperWidth:n,lowerWidth:i,height:l,className:f}=e,{animationEasing:o,animationDuration:s,animationBegin:c,isUpdateAnimationActive:u}=e,v=d.useRef(null),[m,y]=d.useState(-1),h=d.useRef(n),b=d.useRef(i),p=d.useRef(l),g=d.useRef(r),x=d.useRef(a),O=at(t,"trapezoid-");if(d.useEffect(()=>{if(v.current&&v.current.getTotalLength)try{var k=v.current.getTotalLength();k&&y(k)}catch{}},[]),r!==+r||a!==+a||n!==+n||i!==+i||l!==+l||n===0&&i===0||l===0)return null;var A=me("recharts-trapezoid",f);if(!u)return d.createElement("g",null,d.createElement("path",De({},fe(e),{className:A,d:Jt(r,a,n,i,l)})));var P=h.current,j=b.current,S=p.current,I=g.current,E=x.current,M="0px ".concat(m===-1?1:m,"px"),C="".concat(m,"px ").concat(m,"px"),B=fr(["strokeDasharray"],s,o);return d.createElement(nt,{animationId:O,key:O,canBegin:m>0,duration:s,easing:o,isActive:u,begin:c},k=>{var z=_(P,n,k),K=_(j,i,k),T=_(S,l,k),L=_(I,r,k),R=_(E,a,k);v.current&&(h.current=z,b.current=K,p.current=T,g.current=L,x.current=R);var F=k>0?{transition:B,strokeDasharray:C}:{strokeDasharray:M};return d.createElement("path",De({},fe(e),{className:A,d:Jt(L,R,z,K,T),ref:v,style:Xt(Xt({},F),e.style)}))})},Dn=["option","shapeType","activeClassName","inActiveClassName"];function Mn(t,e){if(t==null)return{};var r,a,n=Bn(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)r=i[a],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Bn(t,e){if(t==null)return{};var r={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;r[a]=t[a]}return r}function Qt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function Me(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Qt(Object(r),!0).forEach(function(a){$n(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qt(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function $n(t,e,r){return(e=_n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _n(t){var e=Ln(t,"string");return typeof e=="symbol"?e:e+""}function Ln(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Nn(t,e){return Me(Me({},e),t)}function zn(t,e){return t==="symbols"}function er(t){var{shapeType:e,elementProps:r}=t;switch(e){case"rectangle":return d.createElement(gn,r);case"trapezoid":return d.createElement(Cn,r);case"sector":return d.createElement(Pn,r);case"symbols":if(zn(e))return d.createElement(Sr,r);break;case"curve":return d.createElement(Hr,r);default:return null}}function Kn(t){return d.isValidElement(t)?t.props:t}function Wn(t){var{option:e,shapeType:r,activeClassName:a="recharts-active-shape",inActiveClassName:n="recharts-shape"}=t,i=Mn(t,Dn),l;if(d.isValidElement(e))l=d.cloneElement(e,Me(Me({},i),Kn(e)));else if(typeof e=="function")l=e(i,i.index);else if(In(e)&&typeof e!="boolean"){var f=Nn(e,i);l=d.createElement(er,{shapeType:r,elementProps:f})}else{var o=i;l=d.createElement(er,{shapeType:r,elementProps:o})}return i.isActive?d.createElement(de,{className:a},l):d.createElement(de,{className:n},l)}var Tr=(t,e,r)=>{var a=Oe();return(n,i)=>l=>{t?.(n,i,l),a(Vr({activeIndex:String(i),activeDataKey:e,activeCoordinate:n.tooltipPosition,activeGraphicalItemId:r}))}},Cr=t=>{var e=Oe();return(r,a)=>n=>{t?.(r,a,n),e(qr())}},Dr=(t,e,r)=>{var a=Oe();return(n,i)=>l=>{t?.(n,i,l),a(Ur({activeIndex:String(i),activeDataKey:e,activeCoordinate:n.tooltipPosition,activeGraphicalItemId:r}))}},tr=(t,e,r)=>{var a=r??t;if(!Le(a))return we(a,e,0)},Rn=(t,e,r)=>{var a={},n=t.filter(Zr),i=t.filter(s=>s.stackId==null),l=n.reduce((s,c)=>{var u=s[c.stackId];return u==null&&(u=[]),u.push(c),s[c.stackId]=u,s},a),f=Object.entries(l).map(s=>{var c,[u,v]=s,m=v.map(h=>h.dataKey),y=tr(e,r,(c=v[0])===null||c===void 0?void 0:c.barSize);return{stackId:u,dataKeys:m,barSize:y}}),o=i.map(s=>{var c=[s.dataKey].filter(v=>v!=null),u=tr(e,r,s.barSize);return{stackId:void 0,dataKeys:c,barSize:u}});return[...f,...o]};function rr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function Ie(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?rr(Object(r),!0).forEach(function(a){Fn(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function Fn(t,e,r){return(e=Gn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gn(t){var e=Yn(t,"string");return typeof e=="symbol"?e:e+""}function Yn(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hn(t,e,r,a,n){var i,l=a.length;if(!(l<1)){var f=we(t,r,0,!0),o,s=[];if(He((i=a[0])===null||i===void 0?void 0:i.barSize)){var c=!1,u=r/l,v=a.reduce((g,x)=>g+(x.barSize||0),0);v+=(l-1)*f,v>=r&&(v-=(l-1)*f,f=0),v>=r&&u>0&&(c=!0,u*=.9,v=l*u);var m=(r-v)/2>>0,y={offset:m-f,size:0};o=a.reduce((g,x)=>{var O,A={stackId:x.stackId,dataKeys:x.dataKeys,position:{offset:y.offset+y.size+f,size:c?u:(O=x.barSize)!==null&&O!==void 0?O:0}},P=[...g,A];return y=A.position,P},s)}else{var h=we(e,r,0,!0);r-2*h-(l-1)*f<=0&&(f=0);var b=(r-2*h-(l-1)*f)/l;b>1&&(b>>=0);var p=He(n)?Math.min(b,n):b;o=a.reduce((g,x,O)=>[...g,{stackId:x.stackId,dataKeys:x.dataKeys,position:{offset:h+(b+f)*O+(b-p)/2,size:p}}],s)}return o}}var Vn=(t,e,r,a,n,i,l)=>{var f=Le(l)?e:l,o=Hn(r,a,n!==i?n:i,t,f);return n!==i&&o!=null&&(o=o.map(s=>Ie(Ie({},s),{},{position:Ie(Ie({},s.position),{},{offset:s.position.offset-n/2})}))),o},qn=(t,e)=>{var r=Xr(e);if(!(!t||r==null||e==null)){var{stackId:a}=e;if(a!=null){var n=t[a];if(n){var{stackedData:i}=n;if(i)return i.find(l=>l.key===r)}}}},Un=(t,e)=>{if(!(t==null||e==null)){var r=t.find(a=>a.stackId===e.stackId&&e.dataKey!=null&&a.dataKeys.includes(e.dataKey));if(r!=null)return r.position}};function Zn(t,e){return t&&typeof t=="object"&&"zIndex"in t&&typeof t.zIndex=="number"&&He(t.zIndex)?t.zIndex:e}var Xn=["x1","y1","x2","y2","key"],Jn=["offset"],Qn=["xAxisId","yAxisId"],ei=["xAxisId","yAxisId"];function ar(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function N(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ar(Object(r),!0).forEach(function(a){ti(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ar(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function ti(t,e,r){return(e=ri(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ri(t){var e=ai(t,"string");return typeof e=="symbol"?e:e+""}function ai(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ne(){return ne=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)({}).hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ne.apply(null,arguments)}function Be(t,e){if(t==null)return{};var r,a,n=ni(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)r=i[a],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ni(t,e){if(t==null)return{};var r={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;r[a]=t[a]}return r}var ii=t=>{var{fill:e}=t;if(!e||e==="none")return null;var{fillOpacity:r,x:a,y:n,width:i,height:l,ry:f}=t;return d.createElement("rect",{x:a,y:n,ry:f,width:i,height:l,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function Mr(t){var{option:e,lineItemProps:r}=t,a;if(d.isValidElement(e))a=d.cloneElement(e,r);else if(typeof e=="function")a=e(r);else{var n,{x1:i,y1:l,x2:f,y2:o,key:s}=r,c=Be(r,Xn),u=(n=mr(c))!==null&&n!==void 0?n:{},{offset:v}=u,m=Be(u,Jn);a=d.createElement("line",ne({},m,{x1:i,y1:l,x2:f,y2:o,fill:"none",key:s}))}return a}function oi(t){var{x:e,width:r,horizontal:a=!0,horizontalPoints:n}=t;if(!a||!n||!n.length)return null;var{xAxisId:i,yAxisId:l}=t,f=Be(t,Qn),o=n.map((s,c)=>{var u=N(N({},f),{},{x1:e,y1:s,x2:e+r,y2:s,key:"line-".concat(c),index:c});return d.createElement(Mr,{key:"line-".concat(c),option:a,lineItemProps:u})});return d.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function li(t){var{y:e,height:r,vertical:a=!0,verticalPoints:n}=t;if(!a||!n||!n.length)return null;var{xAxisId:i,yAxisId:l}=t,f=Be(t,ei),o=n.map((s,c)=>{var u=N(N({},f),{},{x1:s,y1:e,x2:s,y2:e+r,key:"line-".concat(c),index:c});return d.createElement(Mr,{option:a,lineItemProps:u,key:"line-".concat(c)})});return d.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function si(t){var{horizontalFill:e,fillOpacity:r,x:a,y:n,width:i,height:l,horizontalPoints:f,horizontal:o=!0}=t;if(!o||!e||!e.length||f==null)return null;var s=f.map(u=>Math.round(u+n-n)).sort((u,v)=>u-v);n!==s[0]&&s.unshift(0);var c=s.map((u,v)=>{var m=s[v+1],y=m==null,h=y?n+l-u:m-u;if(h<=0)return null;var b=v%e.length;return d.createElement("rect",{key:"react-".concat(v),y:u,x:a,height:h,width:i,stroke:"none",fill:e[b],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return d.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function ci(t){var{vertical:e=!0,verticalFill:r,fillOpacity:a,x:n,y:i,width:l,height:f,verticalPoints:o}=t;if(!e||!r||!r.length)return null;var s=o.map(u=>Math.round(u+n-n)).sort((u,v)=>u-v);n!==s[0]&&s.unshift(0);var c=s.map((u,v)=>{var m=s[v+1],y=m==null,h=y?n+l-u:m-u;if(h<=0)return null;var b=v%r.length;return d.createElement("rect",{key:"react-".concat(v),x:u,y:i,width:h,height:f,stroke:"none",fill:r[b],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return d.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var ui=(t,e)=>{var{xAxis:r,width:a,height:n,offset:i}=t;return dr(vr(N(N(N({},xe),r),{},{ticks:pr(r),viewBox:{x:0,y:0,width:a,height:n}})),i.left,i.left+i.width,e)},fi=(t,e)=>{var{yAxis:r,width:a,height:n,offset:i}=t;return dr(vr(N(N(N({},xe),r),{},{ticks:pr(r),viewBox:{x:0,y:0,width:a,height:n}})),i.top,i.top+i.height,e)},di={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Ne.grid};function Ze(t){var e=Jr(),r=Qr(),a=ea(),n=N(N({},ye(t,di)),{},{x:V(t.x)?t.x:a.left,y:V(t.y)?t.y:a.top,width:V(t.width)?t.width:a.width,height:V(t.height)?t.height:a.height}),{xAxisId:i,yAxisId:l,x:f,y:o,width:s,height:c,syncWithTicks:u,horizontalValues:v,verticalValues:m}=n,y=ze(),h=q(I=>ut(I,"xAxis",i,y)),b=q(I=>ut(I,"yAxis",l,y));if(!ft(s)||!ft(c)||!V(f)||!V(o))return null;var p=n.verticalCoordinatesGenerator||ui,g=n.horizontalCoordinatesGenerator||fi,{horizontalPoints:x,verticalPoints:O}=n;if((!x||!x.length)&&typeof g=="function"){var A=v&&v.length,P=g({yAxis:b?N(N({},b),{},{ticks:A?v:b.ticks}):void 0,width:e??s,height:r??c,offset:a},A?!0:u);xt(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(x=P)}if((!O||!O.length)&&typeof p=="function"){var j=m&&m.length,S=p({xAxis:h?N(N({},h),{},{ticks:j?m:h.ticks}):void 0,width:e??s,height:r??c,offset:a},j?!0:u);xt(Array.isArray(S),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof S,"]")),Array.isArray(S)&&(O=S)}return d.createElement(Ke,{zIndex:n.zIndex},d.createElement("g",{className:"recharts-cartesian-grid"},d.createElement(ii,{fill:n.fill,fillOpacity:n.fillOpacity,x:n.x,y:n.y,width:n.width,height:n.height,ry:n.ry}),d.createElement(si,ne({},n,{horizontalPoints:x})),d.createElement(ci,ne({},n,{verticalPoints:O})),d.createElement(oi,ne({},n,{offset:a,horizontalPoints:x,xAxis:h,yAxis:b})),d.createElement(li,ne({},n,{offset:a,verticalPoints:O,xAxis:h,yAxis:b}))))}Ze.displayName="CartesianGrid";var vi=["children"];function pi(t,e){if(t==null)return{};var r,a,n=mi(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)r=i[a],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function mi(t,e){if(t==null)return{};var r={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;r[a]=t[a]}return r}var yi={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},hi=d.createContext(yi);function gi(t){var{children:e}=t,r=pi(t,vi);return d.createElement(hi.Provider,{value:r},e)}function Xe(){return Xe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)({}).hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Xe.apply(null,arguments)}function lt(t){return d.createElement(Wn,Xe({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},t))}var bi=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(a,n)=>{if(V(e))return e;var i=V(a)||Le(a);return i?e(a,n):(i||en(),r)}},xi=(t,e,r)=>r,Oi=(t,e)=>e,Pe=te([gr,Oi],(t,e)=>t.filter(r=>r.type==="bar").find(r=>r.id===e)),Pi=te([Pe],t=>t?.maxBarSize),ji=(t,e,r,a)=>a,Ai=te([he,gr,ie,oe,xi],(t,e,r,a,n)=>e.filter(i=>t==="horizontal"?i.xAxisId===r:i.yAxisId===a).filter(i=>i.isPanorama===n).filter(i=>i.hide===!1).filter(i=>i.type==="bar")),ki=(t,e,r)=>{var a=he(t),n=ie(t,e),i=oe(t,e);if(!(n==null||i==null))return a==="horizontal"?dt(t,"yAxis",i,r):dt(t,"xAxis",n,r)},Ii=(t,e)=>{var r=he(t),a=ie(t,e),n=oe(t,e);if(!(a==null||n==null))return r==="horizontal"?vt(t,"xAxis",a):vt(t,"yAxis",n)},wi=te([Ai,ia,Ii],Rn),Si=(t,e,r)=>{var a,n,i=Pe(t,e);if(i==null)return 0;var l=ie(t,e),f=oe(t,e);if(l==null||f==null)return 0;var o=he(t),s=br(t),{maxBarSize:c}=i,u=Le(c)?s:c,v,m;return o==="horizontal"?(v=ve(t,"xAxis",l,r),m=pe(t,"xAxis",l,r)):(v=ve(t,"yAxis",f,r),m=pe(t,"yAxis",f,r)),(a=(n=hr(v,m,!0))!==null&&n!==void 0?n:u)!==null&&a!==void 0?a:0},Br=(t,e,r)=>{var a=he(t),n=ie(t,e),i=oe(t,e);if(!(n==null||i==null)){var l,f;return a==="horizontal"?(l=ve(t,"xAxis",n,r),f=pe(t,"xAxis",n,r)):(l=ve(t,"yAxis",i,r),f=pe(t,"yAxis",i,r)),hr(l,f)}},Ei=te([wi,br,aa,na,Si,Br,Pi],Vn),Ti=(t,e,r)=>{var a=ie(t,e);if(a!=null)return ve(t,"xAxis",a,r)},Ci=(t,e,r)=>{var a=oe(t,e);if(a!=null)return ve(t,"yAxis",a,r)},Di=(t,e,r)=>{var a=ie(t,e);if(a!=null)return pe(t,"xAxis",a,r)},Mi=(t,e,r)=>{var a=oe(t,e);if(a!=null)return pe(t,"yAxis",a,r)},Bi=te([Ei,Pe],Un),$i=te([ki,Pe],qn),_i=te([ta,yr,Ti,Ci,Di,Mi,Bi,he,ra,Br,$i,Pe,ji],(t,e,r,a,n,i,l,f,o,s,c,u,v)=>{var{chartData:m,dataStartIndex:y,dataEndIndex:h}=o;if(!(u==null||l==null||e==null||f!=="horizontal"&&f!=="vertical"||r==null||a==null||n==null||i==null||s==null)){var{data:b}=u,p;if(b!=null&&b.length>0?p=b:p=m?.slice(y,h+1),p!=null)return uo({layout:f,barSettings:u,pos:l,parentViewBox:e,bandSize:s,xAxis:r,yAxis:a,xAxisTicks:n,yAxisTicks:i,stackedData:c,displayedData:p,offset:t,cells:v,dataStartIndex:y})}}),Li=["index"];function Je(){return Je=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)({}).hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Je.apply(null,arguments)}function Ni(t,e){if(t==null)return{};var r,a,n=zi(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)r=i[a],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function zi(t,e){if(t==null)return{};var r={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;r[a]=t[a]}return r}var $r=d.createContext(void 0),Ki=t=>{var e=d.useContext($r);if(e!=null)return e.stackId;if(t!=null)return oa(t)},Wi=(t,e)=>"recharts-bar-stack-clip-path-".concat(t,"-").concat(e),Ri=t=>{var e=d.useContext($r);if(e!=null){var{stackId:r}=e;return"url(#".concat(Wi(r,t),")")}},_r=t=>{var{index:e}=t,r=Ni(t,Li),a=Ri(e);return d.createElement(de,Je({className:"recharts-bar-stack-layer",clipPath:a},r))},Fi=["onMouseEnter","onMouseLeave","onClick"],Gi=["value","background","tooltipPosition"],Yi=["id"],Hi=["onMouseEnter","onClick","onMouseLeave"];function ee(){return ee=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)({}).hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ee.apply(null,arguments)}function nr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function W(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?nr(Object(r),!0).forEach(function(a){Vi(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nr(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function Vi(t,e,r){return(e=qi(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qi(t){var e=Ui(t,"string");return typeof e=="symbol"?e:e+""}function Ui(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $e(t,e){if(t==null)return{};var r,a,n=Zi(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)r=i[a],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Zi(t,e){if(t==null)return{};var r={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;r[a]=t[a]}return r}var Xi=t=>{var{dataKey:e,name:r,fill:a,legendType:n,hide:i}=t;return[{inactive:i,dataKey:e,type:n,color:a,value:xr(r,e),payload:t}]},Ji=d.memo(t=>{var{dataKey:e,stroke:r,strokeWidth:a,fill:n,name:i,hide:l,unit:f,tooltipType:o,id:s}=t,c={dataDefinedOnItem:void 0,getPosition:da,settings:{stroke:r,strokeWidth:a,fill:n,dataKey:e,nameKey:void 0,name:xr(i,e),hide:l,type:o,color:n,unit:f,graphicalItemId:s}};return d.createElement(fa,{tooltipEntrySettings:c})});function Qi(t){var e=q(Pr),{data:r,dataKey:a,background:n,allOtherBarProps:i}=t,{onMouseEnter:l,onMouseLeave:f,onClick:o}=i,s=$e(i,Fi),c=Tr(l,a,i.id),u=Cr(f),v=Dr(o,a,i.id);if(!n||r==null)return null;var m=ha(n);return d.createElement(Ke,{zIndex:Zn(n,Ne.barBackground)},r.map((y,h)=>{var{value:b,background:p,tooltipPosition:g}=y,x=$e(y,Gi);if(!p)return null;var O=c(y,h),A=u(y,h),P=v(y,h),j=W(W(W(W(W({option:n,isActive:String(h)===e},x),{},{fill:"#eee"},p),m),jr(s,y,h)),{},{onMouseEnter:O,onMouseLeave:A,onClick:P,dataKey:a,index:h,className:"recharts-bar-background-rectangle"});return d.createElement(lt,ee({key:"background-bar-".concat(h)},j))}))}function eo(t){var{showLabels:e,children:r,rects:a}=t,n=a?.map(i=>{var l={x:i.x,y:i.y,width:i.width,lowerWidth:i.width,upperWidth:i.width,height:i.height};return W(W({},l),{},{value:i.value,payload:i.payload,parentViewBox:i.parentViewBox,viewBox:l,fill:i.fill})});return d.createElement(Oa,{value:e?n:void 0},r)}function to(t){var{shape:e,activeBar:r,baseProps:a,entry:n,index:i,dataKey:l}=t,f=q(Pr),o=q(Pa),s=r&&String(n.originalDataIndex)===f&&(o==null||l===o),[c,u]=d.useState(!1),[v,m]=d.useState(!1);d.useEffect(()=>{var x;return s?(u(!0),x=requestAnimationFrame(()=>{m(!0)})):m(!1),()=>{cancelAnimationFrame(x)}},[s]);var y=d.useCallback(()=>{s||u(!1)},[s]),h=s&&v,b=s||c,p;s?r===!0?p=e:p=r:p=e;var g=d.createElement(lt,ee({},a,{name:String(a.name)},n,{isActive:h,option:p,index:i,dataKey:l,onTransitionEnd:y}));return b?d.createElement(Ke,{zIndex:Ne.activeBar},d.createElement(_r,{index:n.originalDataIndex},g)):g}function ro(t){var{shape:e,baseProps:r,entry:a,index:n,dataKey:i}=t;return d.createElement(lt,ee({},r,{name:String(r.name)},a,{isActive:!1,option:e,index:n,dataKey:i}))}function ao(t){var e,{data:r,props:a}=t,n=(e=mr(a))!==null&&e!==void 0?e:{},{id:i}=n,l=$e(n,Yi),{shape:f,dataKey:o,activeBar:s}=a,{onMouseEnter:c,onClick:u,onMouseLeave:v}=a,m=$e(a,Hi),y=Tr(c,o,i),h=Cr(v),b=Dr(u,o,i);return r?d.createElement(d.Fragment,null,r.map((p,g)=>d.createElement(_r,ee({index:p.originalDataIndex,key:"rectangle-".concat(p?.x,"-").concat(p?.y,"-").concat(p?.value,"-").concat(g),className:"recharts-bar-rectangle"},jr(m,p,g),{onMouseEnter:y(p,g),onMouseLeave:h(p,g),onClick:b(p,g)}),s?d.createElement(to,{shape:f,activeBar:s,baseProps:l,entry:p,index:g,dataKey:o}):d.createElement(ro,{shape:f,baseProps:l,entry:p,index:g,dataKey:o})))):null}function no(t){var{props:e,previousRectanglesRef:r}=t,{data:a,layout:n,isAnimationActive:i,animationBegin:l,animationDuration:f,animationEasing:o,onAnimationEnd:s,onAnimationStart:c}=e,u=r.current,v=at(e,"recharts-bar-"),[m,y]=d.useState(!1),h=!m,b=d.useCallback(()=>{typeof s=="function"&&s(),y(!1)},[s]),p=d.useCallback(()=>{typeof c=="function"&&c(),y(!0)},[c]);return d.createElement(eo,{showLabels:h,rects:a},d.createElement(nt,{animationId:v,begin:l,duration:f,isActive:i,easing:o,onAnimationEnd:b,onAnimationStart:p,key:v},g=>{var x=g===1?a:a?.map((O,A)=>{var P=u&&u[A];if(P)return W(W({},O),{},{x:_(P.x,O.x,g),y:_(P.y,O.y,g),width:_(P.width,O.width,g),height:_(P.height,O.height,g)});if(n==="horizontal"){var j=_(0,O.height,g),S=_(O.stackedBarStart,O.y,g);return W(W({},O),{},{y:S,height:j})}var I=_(0,O.width,g),E=_(O.stackedBarStart,O.x,g);return W(W({},O),{},{width:I,x:E})});return g>0&&(r.current=x??null),x==null?null:d.createElement(de,null,d.createElement(ao,{props:e,data:x}))}),d.createElement(xa,{label:e.label}),e.children)}function io(t){var e=d.useRef(null);return d.createElement(no,{previousRectanglesRef:e,props:t})}var Lr=0,oo=(t,e)=>{var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:Or(t,e)}};class lo extends d.PureComponent{render(){var{hide:e,data:r,dataKey:a,className:n,xAxisId:i,yAxisId:l,needClip:f,background:o,id:s}=this.props;if(e||r==null)return null;var c=me("recharts-bar",n),u=s;return d.createElement(de,{className:c,id:s},f&&d.createElement("defs",null,d.createElement(ya,{clipPathId:u,xAxisId:i,yAxisId:l})),d.createElement(de,{className:"recharts-bar-rectangles",clipPath:f?"url(#clipPath-".concat(u,")"):void 0},d.createElement(Qi,{data:r,dataKey:a,background:o,allOtherBarProps:this.props}),d.createElement(io,this.props)))}}var so={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:Lr,xAxisId:0,yAxisId:0,zIndex:Ne.bar};function co(t){var{xAxisId:e,yAxisId:r,hide:a,legendType:n,minPointSize:i,activeBar:l,animationBegin:f,animationDuration:o,animationEasing:s,isAnimationActive:c}=t,{needClip:u}=va(e,r),v=pa(),m=ze(),y=ma(t.children,ot),h=q(g=>_i(g,t.id,m,y));if(v!=="vertical"&&v!=="horizontal")return null;var b,p=h?.[0];return p==null||p.height==null||p.width==null?b=0:b=v==="vertical"?p.height/2:p.width/2,d.createElement(gi,{xAxisId:e,yAxisId:r,data:h,dataPointFormatter:oo,errorBarOffset:b},d.createElement(lo,ee({},t,{layout:v,needClip:u,data:h,xAxisId:e,yAxisId:r,hide:a,legendType:n,minPointSize:i,activeBar:l,animationBegin:f,animationDuration:o,animationEasing:s,isAnimationActive:c})))}function uo(t){var{layout:e,barSettings:{dataKey:r,minPointSize:a,hasCustomShape:n},pos:i,bandSize:l,xAxis:f,yAxis:o,xAxisTicks:s,yAxisTicks:c,stackedData:u,displayedData:v,offset:m,cells:y,parentViewBox:h,dataStartIndex:b}=t,p=e==="horizontal"?o:f,g=u?p.scale.domain():null,x=ga({numericAxis:p}),O=p.scale.map(x);return v.map((A,P)=>{var j,S,I,E,M,C;if(u){var B=u[P+b];if(B==null)return null;j=ba(B,g)}else j=Or(A,r),Array.isArray(j)||(j=[x,j]);var k=bi(a,Lr)(j[1],P);if(e==="horizontal"){var z,K=o.scale.map(j[0]),T=o.scale.map(j[1]);if(K==null||T==null)return null;S=pt({axis:f,ticks:s,bandSize:l,offset:i.offset,entry:A,index:P}),I=(z=T??K)!==null&&z!==void 0?z:void 0,E=i.size;var L=K-T;if(M=ja(L)?0:L,C={x:S,y:m.top,width:E,height:m.height},Math.abs(k)>0&&Math.abs(M)<Math.abs(k)){var R=Se(M||k)*(Math.abs(k)-Math.abs(M));I-=R,M+=R}}else{var F=f.scale.map(j[0]),Z=f.scale.map(j[1]);if(F==null||Z==null)return null;if(S=F,I=pt({axis:o,ticks:c,bandSize:l,offset:i.offset,entry:A,index:P}),E=Z-F,M=i.size,C={x:m.left,y:I,width:m.width,height:M},Math.abs(k)>0&&Math.abs(E)<Math.abs(k)){var X=Se(E||k)*(Math.abs(k)-Math.abs(E));E+=X}}if(S==null||I==null||E==null||M==null||!n&&(E===0||M===0))return null;var H=W(W({},A),{},{stackedBarStart:O,x:S,y:I,width:E,height:M,value:u?j:j[1],payload:A,background:C,tooltipPosition:{x:S+E/2,y:I+M/2},parentViewBox:h,originalDataIndex:P},y&&y[P]&&y[P].props);return H}).filter(Boolean)}function fo(t){var e=ye(t,so),r=Ki(e.stackId),a=ze();return d.createElement(sa,{id:e.id,type:"bar"},n=>d.createElement(d.Fragment,null,d.createElement(ca,{legendPayload:Xi(e)}),d.createElement(Ji,{dataKey:e.dataKey,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,unit:e.unit,tooltipType:e.tooltipType,id:n}),d.createElement(ua,{type:"bar",id:n,data:void 0,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,dataKey:e.dataKey,stackId:r,hide:e.hide,barSize:e.barSize,minPointSize:e.minPointSize,maxBarSize:e.maxBarSize,isPanorama:a,hasCustomShape:e.shape!=null}),d.createElement(Ke,{zIndex:e.zIndex},d.createElement(co,ee({},e,{id:n})))))}var Nr=d.memo(fo,la);Nr.displayName="Bar";var vo=["type"],po=["dangerouslySetInnerHTML","ticks","scale"],mo=["id","scale"];function Qe(){return Qe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)({}).hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Qe.apply(null,arguments)}function ir(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function or(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ir(Object(r),!0).forEach(function(a){yo(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ir(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function yo(t,e,r){return(e=ho(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ho(t){var e=go(t,"string");return typeof e=="symbol"?e:e+""}function go(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function et(t,e){if(t==null)return{};var r,a,n=bo(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)r=i[a],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function bo(t,e){if(t==null)return{};var r={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;r[a]=t[a]}return r}function xo(t){var e=Oe(),r=d.useRef(null),a=ka(),{type:n}=t,i=et(t,vo),l=_a(a,"yAxis",n),f=d.useMemo(()=>{if(l!=null)return or(or({},i),{},{type:l})},[l,i]);return d.useLayoutEffect(()=>{f!=null&&(r.current===null?e(Ia(f)):r.current!==f&&e(wa({prev:r.current,next:f})),r.current=f)},[f,e]),d.useLayoutEffect(()=>()=>{r.current&&(e(Sa(r.current)),r.current=null)},[e]),null}function Oo(t){var{yAxisId:e,className:r,width:a,label:n}=t,i=d.useRef(null),l=d.useRef(null),f=q(yr),o=ze(),s=Oe(),c="yAxis",u=q(P=>Ea(P,e)),v=q(P=>Ta(P,e)),m=q(P=>Ca(P,c,e,o)),y=q(P=>Da(P,e));if(d.useLayoutEffect(()=>{if(!(a!=="auto"||!u||Ma(n)||d.isValidElement(n)||y==null)){var P=i.current;if(P){var j=P.getCalculatedWidth();Math.round(u.width)!==Math.round(j)&&s(Ba({id:e,width:j}))}}},[m,u,s,n,e,a,y]),u==null||v==null||y==null)return null;var{dangerouslySetInnerHTML:h,ticks:b,scale:p}=t,g=et(t,po),{id:x,scale:O}=y,A=et(y,mo);return d.createElement($a,Qe({},g,A,{ref:i,labelRef:l,x:v.x,y:v.y,tickTextProps:a==="auto"?{width:void 0}:{width:a},width:u.width,height:u.height,className:me("recharts-".concat(c," ").concat(c),r),viewBox:f,ticks:m,axisType:c,axisId:e}))}var Po={allowDataOverflow:$.allowDataOverflow,allowDecimals:$.allowDecimals,allowDuplicatedCategory:$.allowDuplicatedCategory,angle:$.angle,axisLine:xe.axisLine,hide:!1,includeHidden:$.includeHidden,interval:$.interval,label:!1,minTickGap:$.minTickGap,mirror:$.mirror,orientation:$.orientation,padding:$.padding,reversed:$.reversed,scale:$.scale,tick:$.tick,tickCount:$.tickCount,tickLine:xe.tickLine,tickSize:xe.tickSize,type:$.type,niceTicks:$.niceTicks,width:$.width,yAxisId:0},jo=t=>{var e=ye(t,Po);return d.createElement(d.Fragment,null,d.createElement(xo,{interval:e.interval,id:e.yAxisId,scale:e.scale,type:e.type,domain:e.domain,allowDataOverflow:e.allowDataOverflow,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,padding:e.padding,includeHidden:e.includeHidden,reversed:e.reversed,ticks:e.ticks,width:e.width,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:e.angle,minTickGap:e.minTickGap,tick:e.tick,tickFormatter:e.tickFormatter,niceTicks:e.niceTicks}),d.createElement(Oo,e))},tt=d.memo(jo,Aa);tt.displayName="YAxis";var Ao=["axis","item"],ko=d.forwardRef((t,e)=>d.createElement(La,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Ao,tooltipPayloadSearcher:Na,categoricalChartProps:t,ref:e}));const zr=60*1e3,_e=60*zr,Io=24*_e,Kr=25*_e;function rt(t,e){if(t.length===0)return 0;const r=[...t].sort((n,i)=>n-i),a=Math.max(0,Math.min(r.length-1,Math.ceil(e*r.length)-1));return r[a]??0}function wo(t,e){return e<=Kr?t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):t.toLocaleDateString([],{month:"short",day:"numeric"})}function So(t,e){const r=e-t;return r<=_e?Math.max(1,Math.min(60,Math.ceil(r/zr))):r<=Kr?Math.max(1,Math.min(25,Math.ceil(r/_e))):Math.max(1,Math.min(31,Math.ceil(r/Io)))}function Eo(t,e,r,a){const n=e.getTime(),i=r.getTime(),l=Math.max(1,i-n),f=So(n,i),o=Math.max(1,Math.floor(l/f)),s=[];for(let c=0;c<f;c++){const u=new Date(n+c*o);s.push({t:u.toISOString(),ts:u.getTime(),label:wo(u,l),calls:0,errors:0,durations:[]})}for(const c of t){const u=new Date(c.timestamp).getTime(),v=Math.floor((u-n)/o),m=Math.max(0,Math.min(f-1,v)),y=s[m];y&&(y.calls+=1,c.isError&&(y.errors+=1),Number.isFinite(c.durationMs)&&y.durations.push(c.durationMs))}return s.map(c=>({t:c.t,ts:c.ts,label:c.label,calls:c.calls,errors:c.errors,errorRate:c.calls>0?c.errors/c.calls*100:0,avg:Math.round(c.durations.length>0?c.durations.reduce((u,v)=>u+v,0)/c.durations.length:0),p50:Math.round(rt(c.durations,.5)),p95:Math.round(rt(c.durations,.95))}))}function Do(t,e,r,a){const n=t.length,i=t.filter(c=>c.isError).length,l=t.map(c=>c.durationMs),f=l.length>0?l.reduce((c,u)=>c+u,0)/l.length:0,o=rt(l,.95),s=Eo(t,e.startDate,e.endDate);return{totalCalls:n,totalErrors:i,avgDurationMs:f,p95DurationMs:o,data:s}}function lr(t){return t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function sr(t){const e=cr.c(19),{active:r,payload:a,dataKey:n,colorVar:i}=t;if(!r||!a?.length)return null;const l=a[0],f=l?.payload?.t??"";let o;e[0]!==l?.payload?.label||e[1]!==f?(o=f?new Date(f).toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):l?.payload?.label??"",e[0]=l?.payload?.label,e[1]=f,e[2]=o):o=e[2];const s=o,c=l?.value,u=typeof c=="number"?c:0,v=n==="avg"||n==="p50"||n==="p95",m=n==="costUsd";let y;e[3]!==m||e[4]!==v||e[5]!==u?(y=m?`$${u.toFixed(u<1?4:2)}`:v?u>=1e4?`${(u/1e3).toFixed(1)}s`:`${Math.round(u)}ms`:u.toLocaleString(),e[3]=m,e[4]=v,e[5]=u,e[6]=y):y=e[6];const h=y;let b;e[7]!==s?(b=w.jsx("div",{className:"text-[11px] text-muted-foreground mb-1",children:s}),e[7]=s,e[8]=b):b=e[8];let p;e[9]!==i?(p=w.jsx("div",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:i}}),e[9]=i,e[10]=p):p=e[10];let g;e[11]!==h?(g=w.jsx("span",{className:"text-xs font-medium tabular-nums",children:h}),e[11]=h,e[12]=g):g=e[12];let x;e[13]!==p||e[14]!==g?(x=w.jsxs("div",{className:"flex items-center gap-1.5",children:[p,g]}),e[13]=p,e[14]=g,e[15]=x):x=e[15];let O;return e[16]!==b||e[17]!==x?(O=w.jsxs("div",{className:"rounded-lg border bg-background px-3 py-2 shadow-md",children:[b,x]}),e[16]=b,e[17]=x,e[18]=O):O=e[18],O}function Mo(t){const e=cr.c(83),{data:r,dataKey:a,colorNum:n,chartHeight:i,variant:l}=t,f=l===void 0?"bar":l,o=`var(--chart-${n})`,s=`kpi-gradient-${a}-${n}`,c=Math.max(...r.map(C=>C[a]??0),0);if(f==="area"){let C;e[0]!==i?(C=st(i,"w-full"),e[0]=i,e[1]=C):C=e[1];let B;e[2]!==o||e[3]!==a?(B={label:a,color:o},e[2]=o,e[3]=a,e[4]=B):B=e[4];let k;e[5]!==a||e[6]!==B?(k={[a]:B},e[5]=a,e[6]=B,e[7]=k):k=e[7];let z;e[8]===Symbol.for("react.memo_cache_sentinel")?(z={left:0,right:-12,top:8,bottom:8},e[8]=z):z=e[8];let K,T;e[9]!==o?(K=w.jsx("stop",{offset:"0%",stopColor:o,stopOpacity:.2}),T=w.jsx("stop",{offset:"100%",stopColor:o,stopOpacity:0}),e[9]=o,e[10]=K,e[11]=T):(K=e[10],T=e[11]);let L;e[12]!==s||e[13]!==K||e[14]!==T?(L=w.jsx("defs",{children:w.jsxs("linearGradient",{id:s,x1:"0",y1:"0",x2:"0",y2:"1",children:[K,T]})}),e[12]=s,e[13]=K,e[14]=T,e[15]=L):L=e[15];let R;e[16]===Symbol.for("react.memo_cache_sentinel")?(R=w.jsx(Ze,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),e[16]=R):R=e[16];let F;e[17]===Symbol.for("react.memo_cache_sentinel")?(F=w.jsx(mt,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)",opacity:.7},interval:"preserveStartEnd",tickMargin:8}),e[17]=F):F=e[17];let Z;e[18]===Symbol.for("react.memo_cache_sentinel")?(Z={fontSize:11,fill:"var(--muted-foreground)",opacity:.7},e[18]=Z):Z=e[18];const X=c>0?"auto":10;let H;e[19]!==X?(H=w.jsx(tt,{orientation:"right",axisLine:!1,tickLine:!1,tick:Z,tickFormatter:lr,width:40,domain:[0,X],tickCount:5}),e[19]=X,e[20]=H):H=e[20];let ge;e[21]===Symbol.for("react.memo_cache_sentinel")?(ge={stroke:"var(--border)",strokeDasharray:"4 4"},e[21]=ge):ge=e[21];let Q;e[22]!==o||e[23]!==a?(Q=w.jsx(yt,{cursor:ge,content:Wr=>{const{active:Rr,payload:Fr}=Wr;return w.jsx(sr,{active:Rr,payload:Fr,dataKey:a,colorVar:o})}}),e[22]=o,e[23]=a,e[24]=Q):Q=e[24];const Re=`url(#${s})`;let le;e[25]!==o?(le={r:4,fill:o,stroke:"var(--background)",strokeWidth:2},e[25]=o,e[26]=le):le=e[26];let se;e[27]!==o||e[28]!==a||e[29]!==Re||e[30]!==le?(se=w.jsx(za,{type:"linear",dataKey:a,stroke:o,strokeWidth:2,fill:Re,animationDuration:300,dot:!1,activeDot:le}),e[27]=o,e[28]=a,e[29]=Re,e[30]=le,e[31]=se):se=e[31];let ce;e[32]!==r||e[33]!==H||e[34]!==Q||e[35]!==se||e[36]!==L?(ce=w.jsxs(Ka,{data:r,margin:z,children:[L,R,F,H,Q,se]}),e[32]=r,e[33]=H,e[34]=Q,e[35]=se,e[36]=L,e[37]=ce):ce=e[37];let je;return e[38]!==ce||e[39]!==C||e[40]!==k?(je=w.jsx(ht,{className:C,config:k,children:ce}),e[38]=ce,e[39]=C,e[40]=k,e[41]=je):je=e[41],je}let u;e[42]!==i?(u=st(i,"w-full"),e[42]=i,e[43]=u):u=e[43];let v;e[44]!==o||e[45]!==a?(v={label:a,color:o},e[44]=o,e[45]=a,e[46]=v):v=e[46];let m;e[47]!==a||e[48]!==v?(m={[a]:v},e[47]=a,e[48]=v,e[49]=m):m=e[49];let y,h;e[50]===Symbol.for("react.memo_cache_sentinel")?(y={left:0,right:-12,top:8,bottom:8},h=w.jsx(Ze,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),e[50]=y,e[51]=h):(y=e[50],h=e[51]);let b;e[52]===Symbol.for("react.memo_cache_sentinel")?(b={fontSize:11,fill:"var(--muted-foreground)",opacity:.7},e[52]=b):b=e[52];const p=r.length<=6?0:Math.floor(r.length/6);let g;e[53]!==p?(g=w.jsx(mt,{dataKey:"label",axisLine:!1,tickLine:!1,tick:b,interval:p,tickMargin:8}),e[53]=p,e[54]=g):g=e[54];let x;e[55]===Symbol.for("react.memo_cache_sentinel")?(x={fontSize:11,fill:"var(--muted-foreground)",opacity:.7},e[55]=x):x=e[55];const O=c>0?"auto":10;let A;e[56]!==O?(A=w.jsx(tt,{orientation:"right",axisLine:!1,tickLine:!1,tick:x,tickFormatter:lr,width:40,domain:[0,O],tickCount:5}),e[56]=O,e[57]=A):A=e[57];let P;e[58]===Symbol.for("react.memo_cache_sentinel")?(P={fill:"var(--muted)",opacity:.3},e[58]=P):P=e[58];let j;e[59]!==o||e[60]!==a?(j=w.jsx(yt,{cursor:P,content:C=>{const{active:B,payload:k}=C;return w.jsx(sr,{active:B,payload:k,dataKey:a,colorVar:o})}}),e[59]=o,e[60]=a,e[61]=j):j=e[61];let S;if(e[62]!==o||e[63]!==r||e[64]!==a){let C;e[66]!==o||e[67]!==a?(C=(B,k)=>w.jsx(ot,{fill:(B[a]??0)===0?"var(--muted-foreground)":o,fillOpacity:(B[a]??0)===0?.15:.85},`cell-${k}`),e[66]=o,e[67]=a,e[68]=C):C=e[68],S=r.map(C),e[62]=o,e[63]=r,e[64]=a,e[65]=S}else S=e[65];let I;e[69]!==o||e[70]!==a||e[71]!==S?(I=w.jsx(Nr,{dataKey:a,fill:o,radius:0,minPointSize:1,children:S}),e[69]=o,e[70]=a,e[71]=S,e[72]=I):I=e[72];let E;e[73]!==r||e[74]!==A||e[75]!==j||e[76]!==I||e[77]!==g?(E=w.jsxs(ko,{data:r,margin:y,children:[h,g,A,j,I]}),e[73]=r,e[74]=A,e[75]=j,e[76]=I,e[77]=g,e[78]=E):E=e[78];let M;return e[79]!==E||e[80]!==u||e[81]!==m?(M=w.jsx(ht,{className:u,config:m,children:E}),e[79]=E,e[80]=u,e[81]=m,e[82]=M):M=e[82],M}export{ko as B,ot as C,Mo as K,Nr as a,Do as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as E,j as e,i as rt}from"./index-BSxh64hl.js";import{m as mt,o as pt,p as st,q as at}from"./sidebar-Da7wzFWC.js";import{A as nt}from"./automation-runs-DMvzL5XU.js";import{r as lt,u as ct,a as dt,b as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-CH1lAwBC.js";import{r as xt}from"./index-q_ZBGy7p.js";import"./LayoutLeft-DFfT9PNh.js";import"./use-mobile-jR7vc4lZ.js";import"./X-C1Hb-T06.js";import"./tooltip-Di8Co4Sg.js";import"./select-Bml7Rs0T.js";import"./Check-D3n4gRJc.js";import"./ChevronDown-D4DHAf0j.js";import"./ChevronUp-Cu19ewZf.js";import"./useInfiniteQuery-uUKZgZ1F.js";import"./use-infinite-scroll-BXgYebaV.js";import"./use-connection-Tzw-gM9_.js";import"./use-collections-Dz-cDGRH.js";import"./use-mcp-client-C8CUpc9I.js";import"./constants-BHDe7bIw.js";import"./auth-DKNOF6Pv.js";import"./use-virtual-mcp-BoNQ0wEI.js";import"./card-S6Aa8yjq.js";import"./table-B2on39xb.js";import"./empty-state-BFIwmfIY.js";import"./use-members-Cbq-KhlP.js";import"./use-org-auth-client-DaulafqZ.js";import"./use-clock-tick-B5ExQuB8.js";import"./AlertCircle-CasESeW6.js";import"./CheckCircle-C7IpeM2l.js";import"./Circle-D9nZXcv9.js";import"./agent-icon-gbgOnB97.js";import"./UserPlus01-BuJJCUTQ.js";import"./Tool01-C5UcZe4X.js";import"./ArrowUp-FPNlktOK.js";import"./Settings02-BOgQYQhy.js";import"./Tool02-C3DiBnvC.js";import"./XCircle-D_1ilOF2.js";import"./ArrowUpRight-M9tqNBZh.js";import"./TrendUp01-D4nDXsC7.js";import"./ZapSquare-CoeP1pL7.js";import"./ZoomOut-ZBq0pI6d.js";import"./Users03-Bq6sidtE.js";import"./ChevronRight-RInm-aVw.js";import"./Stars02-BwTUcjpB.js";import"./Copy01-D0NIZWk6.js";import"./DotsVertical-ZkH87H22.js";import"./Globe01-CtGNOAC_.js";import"./Eye-CuMpXJkc.js";import"./FilterLines-CZAAcWWi.js";import"./Flag01-DiSJyFcN.js";import"./Star01-Dqxud4cG.js";import"./Globe04-CtsA--DL.js";import"./SwitchHorizontal01-CU1Z25ud.js";import"./HardDrive-B7Komd_c.js";import"./Image01-BAGsNaQU.js";import"./Key01-BDTnv2QH.js";import"./LinkExternal01-0cXhXnwo.js";import"./List-DUr-xsD7.js";import"./Monitor01-CCca9VX6.js";import"./Sun-CGU_J3YG.js";import"./Package-BI2BjUtD.js";import"./Palette-DCkpyAzO.js";import"./Play-Bp-NfS7s.js";import"./Plus-BnnQdSS2.js";import"./SearchLg-CJDpvrzu.js";import"./SearchMd-CWXkSlvi.js";import"./Shield01-DROOCFo5.js";import"./Stars01-BQF4fDG0.js";import"./Trash01-CnVHiwXT.js";import"./Upload01-B1HnYX_L.js";import"./User01-DDQH6RKB.js";import"./Users01-BgsiD61H.js";import"./XClose-bVEi_3Z9.js";import"./Zap-DenhxUDB.js";import"./use-automations-DuO6aGrd.js";import"./studio-tools-Bjw0Jr43.js";import"./useSuspenseInfiniteQuery-BUWsAQNT.js";import"./avatar-D8cqehrs.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dlp2drKX.js";import"./file-type-icon-oaWPVcXq.js";import"./dialog-7Hh4EEds.js";import"./tab-id-BijBBRwE.js";import"./hooks-8LO2nFxS.js";import"./decopilot-sse-pool-CAAPJES7.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-BIBgMmSP.js";import"./autosend-4jNArwYp.js";import"./use-ai-providers-EAIs9V5s.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-bEeBCG8g.js";import"./use-organization-settings-BZRqZCOI.js";import"./monaco-editor-Db_KtlDF.js";import"./index-Dv0yuO1h.js";import"./index-BcxWRa-k.js";import"./shell-layout-ChVVxyRA.js";import"./required-auth-layout-DjUuTkxW.js";import"./use-org-sso-BYe3M43L.js";import"./integration-icon-CxEZQlxS.js";import"./use-navigate-to-agent-DJUvOfFB.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DqvPPaTC.js";import"./form-DNDzmHY7.js";import"./label-DNj28QS5.js";import"./input-HA5GlV6J.js";import"./switch-C2Mm6_qS.js";import"./drawer-C9w90-t7.js";import"./collection-search-CDWYBpbb.js";import"./tabs-TPHxWTyx.js";import"./toggle-group-Ex1OojBb.js";import"./use-deco-credits-CbKP4RkY.js";import"./extract-connection-data-CWqIHi--.js";import"./connection-card-CO4Zt6un.js";import"./use-registry-connections-_izo0bxC.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-Z5OnX3vK.js";import"./connection-form-helpers-B3-hYGek.js";import"./authenticate-and-persist-oauth-DwbkuScw.js";import"./mcp-oauth-D8kd56GU.js";import"./collection-tabs-BedmQqrC.js";import"./badge-BD9n0Dfq.js";import"./connect-desktop-dialog-DOTPKvtV.js";import"./select-model-5SsfzBU3.js";import"./checkbox-Cl_AUlvc.js";import"./skeleton-CFpB1jha.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section--qFkAAhx.js";import"./command-DRdHD2LV.js";import"./index-B941tipH.js";import"./popover-tA9PDjW1.js";import"./dropdown-menu-BJz5vhZu.js";import"./index-BpxVmSwt.js";import"./alert-dialog-AMD4bxPu.js";import"./toolbar-J4RI9xFD.js";import"./use-debounced-value--fL8uLzq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BCav02M9.js";import"./use-mcp-tools-Cb9NQ6Rf.js";import"./use-capability-NLzcv---.js";import"./toolbar-icon-button-BPMkXTme.js";import"./use-debounced-autosave-CIHnH-Z_.js";import"./index-CvhBtFuW.js";import"./search-input-B38BWJHH.js";import"./use-mcp-auth-status-DaaoI_us.js";import"./use-registry-app-CDi6-sFg.js";import"./github-repo-picker-C9Dg6j7e.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./github-repo-scope-DjMZbiKa.js";import"./use-secrets-DUdJCh_2.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CMtMZANc.js";import"./index-Bu9LEqep.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BstnI_Yr.js";import"./use-file-configs-DJ9EWhri.js";import"./automation-list-row-BvEcB9tE.js";function yi(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const A=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const M=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const V=F,q=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,z=m.kind==="site"&&o&&n,B=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const H=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const $=O;let l;t[13]!==q?(l=e.jsx(mt,{className:"text-sm font-semibold",children:q}),t[13]=q,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==$||t[22]!==H||t[23]!==A||t[24]!==v||t[25]!==h||t[26]!==B||t[27]!==x||t[28]!==M||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==z||t[37]!==_?(S=!o||!T&&!z?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:B}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:A,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:H,onBumpFormKey:$}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:M})})})}),t[20]=p,t[21]=$,t[22]=H,t[23]=A,t[24]=v,t[25]=h,t[26]=B,t[27]=x,t[28]=M,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=z,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==V||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:V,children:f}),t[42]=V,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{yi as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,C as H,j as U}from"./index-BSxh64hl.js";import{a as O,g as $,s as E}from"./automation-runs-DMvzL5XU.js";import{u as k}from"./use-mcp-client-C8CUpc9I.js";import{p as B}from"./constants-BHDe7bIw.js";import{b as V,c as Y}from"./use-mcp-tools-Cb9NQ6Rf.js";import{u as q}from"./index-q_ZBGy7p.js";import{c as G}from"./monaco-editor-Db_KtlDF.js";import{g as K,M as W,a as D}from"./index-BcxWRa-k.js";import{b as z,a as F}from"./chat-context-BIBgMmSP.js";import{u as J}from"./shell-layout-ChVVxyRA.js";import{O as Q}from"./tab-id-BijBBRwE.js";import"./select-Bml7Rs0T.js";import"./tooltip-Di8Co4Sg.js";import"./Check-D3n4gRJc.js";import"./ChevronDown-D4DHAf0j.js";import"./ChevronUp-Cu19ewZf.js";import"./useInfiniteQuery-uUKZgZ1F.js";import"./use-infinite-scroll-BXgYebaV.js";import"./use-connection-Tzw-gM9_.js";import"./use-collections-Dz-cDGRH.js";import"./use-virtual-mcp-BoNQ0wEI.js";import"./card-S6Aa8yjq.js";import"./sidebar-Da7wzFWC.js";import"./LayoutLeft-DFfT9PNh.js";import"./use-mobile-jR7vc4lZ.js";import"./X-C1Hb-T06.js";import"./table-B2on39xb.js";import"./empty-state-BFIwmfIY.js";import"./use-members-Cbq-KhlP.js";import"./use-org-auth-client-DaulafqZ.js";import"./use-clock-tick-B5ExQuB8.js";import"./AlertCircle-CasESeW6.js";import"./CheckCircle-C7IpeM2l.js";import"./Circle-D9nZXcv9.js";import"./agent-icon-gbgOnB97.js";import"./UserPlus01-BuJJCUTQ.js";import"./Tool01-C5UcZe4X.js";import"./ArrowUp-FPNlktOK.js";import"./Settings02-BOgQYQhy.js";import"./Tool02-C3DiBnvC.js";import"./XCircle-D_1ilOF2.js";import"./ArrowUpRight-M9tqNBZh.js";import"./TrendUp01-D4nDXsC7.js";import"./ZapSquare-CoeP1pL7.js";import"./ZoomOut-ZBq0pI6d.js";import"./Users03-Bq6sidtE.js";import"./ChevronRight-RInm-aVw.js";import"./Stars02-BwTUcjpB.js";import"./Copy01-D0NIZWk6.js";import"./DotsVertical-ZkH87H22.js";import"./Globe01-CtGNOAC_.js";import"./Eye-CuMpXJkc.js";import"./FilterLines-CZAAcWWi.js";import"./Flag01-DiSJyFcN.js";import"./Star01-Dqxud4cG.js";import"./Globe04-CtsA--DL.js";import"./SwitchHorizontal01-CU1Z25ud.js";import"./HardDrive-B7Komd_c.js";import"./Image01-BAGsNaQU.js";import"./Key01-BDTnv2QH.js";import"./LinkExternal01-0cXhXnwo.js";import"./List-DUr-xsD7.js";import"./Monitor01-CCca9VX6.js";import"./Sun-CGU_J3YG.js";import"./Package-BI2BjUtD.js";import"./Palette-DCkpyAzO.js";import"./Play-Bp-NfS7s.js";import"./Plus-BnnQdSS2.js";import"./SearchLg-CJDpvrzu.js";import"./SearchMd-CWXkSlvi.js";import"./Shield01-DROOCFo5.js";import"./Stars01-BQF4fDG0.js";import"./Trash01-CnVHiwXT.js";import"./Upload01-B1HnYX_L.js";import"./User01-DDQH6RKB.js";import"./Users01-BgsiD61H.js";import"./XClose-bVEi_3Z9.js";import"./Zap-DenhxUDB.js";import"./use-automations-DuO6aGrd.js";import"./studio-tools-Bjw0Jr43.js";import"./useSuspenseInfiniteQuery-BUWsAQNT.js";import"./avatar-D8cqehrs.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dlp2drKX.js";import"./file-type-icon-oaWPVcXq.js";import"./dialog-7Hh4EEds.js";import"./hooks-8LO2nFxS.js";import"./decopilot-sse-pool-CAAPJES7.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./integration-icon-CxEZQlxS.js";import"./use-navigate-to-agent-DJUvOfFB.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DqvPPaTC.js";import"./form-DNDzmHY7.js";import"./label-DNj28QS5.js";import"./input-HA5GlV6J.js";import"./auth-DKNOF6Pv.js";import"./drawer-C9w90-t7.js";import"./collection-search-CDWYBpbb.js";import"./autosend-4jNArwYp.js";import"./tabs-TPHxWTyx.js";import"./toggle-group-Ex1OojBb.js";import"./use-deco-credits-CbKP4RkY.js";import"./extract-connection-data-CWqIHi--.js";import"./connection-card-CO4Zt6un.js";import"./use-registry-connections-_izo0bxC.js";import"./use-organization-settings-BZRqZCOI.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-Z5OnX3vK.js";import"./connection-form-helpers-B3-hYGek.js";import"./authenticate-and-persist-oauth-DwbkuScw.js";import"./mcp-oauth-D8kd56GU.js";import"./collection-tabs-BedmQqrC.js";import"./badge-BD9n0Dfq.js";import"./use-ai-providers-EAIs9V5s.js";import"./connect-desktop-dialog-DOTPKvtV.js";import"./select-model-5SsfzBU3.js";import"./checkbox-Cl_AUlvc.js";import"./skeleton-CFpB1jha.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section--qFkAAhx.js";import"./command-DRdHD2LV.js";import"./index-B941tipH.js";import"./popover-tA9PDjW1.js";import"./dropdown-menu-BJz5vhZu.js";import"./index-BpxVmSwt.js";import"./alert-dialog-AMD4bxPu.js";import"./toolbar-J4RI9xFD.js";import"./use-debounced-value--fL8uLzq.js";import"./location-BpLtHjTZ.js";import"./index-Dv0yuO1h.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BCav02M9.js";import"./use-decopilot-events-bEeBCG8g.js";import"./use-capability-NLzcv---.js";import"./toolbar-icon-button-BPMkXTme.js";import"./use-debounced-autosave-CIHnH-Z_.js";import"./index-CvhBtFuW.js";import"./search-input-B38BWJHH.js";import"./use-mcp-auth-status-DaaoI_us.js";import"./switch-C2Mm6_qS.js";import"./use-registry-app-CDi6-sFg.js";import"./github-repo-picker-C9Dg6j7e.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./github-repo-scope-DjMZbiKa.js";import"./use-secrets-DUdJCh_2.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CMtMZANc.js";import"./index-Bu9LEqep.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BstnI_Yr.js";import"./use-file-configs-DJ9EWhri.js";import"./automation-list-row-BvEcB9tE.js";import"./required-auth-layout-DjUuTkxW.js";import"./use-org-sso-BYe3M43L.js";const X="studio://navigate";function Z(M){const[t]=M;if(M.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return{isNavigate:!1};let o=null;try{o=new URL(t.uri).searchParams.get("main")}catch{}return{isNavigate:!0,tab:o&&Q.has(o)?o:null}}const tt={};function ot(M){const t=L.c(38),{client:o,resourceURI:I,tool:i,connectionId:p,orgId:a,args:v}=M,{sendMessage:C}=z(),{setAppContext:d,clearAppContext:l}=F(),{openSidePanel:g,openTab:s}=J(),r=`${p}:${i.name}`;let c;t[0]!==s?(c=x=>x==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=c):c=t[1];const m=c,n=v??tt;let u;t[2]!==o||t[3]!==i.name||t[4]!==n?(u={client:o,toolName:i.name,toolArguments:n},t[2]=o,t[3]=i.name,t[4]=n,t[5]=u):u=t[5];const{data:e}=Y(u);let h;if(t[6]!==i._meta||t[7]!==i.name){const x=$(i._meta);h=E(i.name,x),t[6]=i._meta,t[7]=i.name,t[8]=h}else h=t[8];const A=h;let f;t[9]!==i.inputSchema?(f=i.inputSchema??{type:"object"},t[9]=i.inputSchema,t[10]=f):f=t[10];let R;t[11]!==A||t[12]!==f||t[13]!==i?(R={...i,name:A,inputSchema:f},t[11]=A,t[12]=f,t[13]=i,t[14]=R):R=t[14];const b=R;let _;t[15]!==g||t[16]!==s||t[17]!==C?(_=x=>{const j=Z(x.content);if(j.isNavigate){j.tab&&s(j.tab);return}const w=G(x.content);w.content.length>0&&(g("chat"),C({tiptapDoc:w}))},t[15]=g,t[16]=s,t[17]=C,t[18]=_):_=t[18];const y=_;let P;t[19]!==b?(P={tool:b},t[19]=b,t[20]=P):P=t[20];let N;t[21]!==d||t[22]!==r?(N=x=>d(r,x),t[21]=d,t[22]=r,t[23]=N):N=t[23];let T;t[24]!==l||t[25]!==r?(T=()=>l(r),t[24]=l,t[25]=r,t[26]=T):T=t[26];let S;return t[27]!==o||t[28]!==y||t[29]!==m||t[30]!==a||t[31]!==I||t[32]!==P||t[33]!==N||t[34]!==T||t[35]!==n||t[36]!==e?(S=U.jsx(W,{resourceURI:I,orgId:a,toolInfo:P,toolInput:n,toolResult:e,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:o,onMessage:y,onUpdateModelContext:N,onTeardown:T,onRequestDisplayMode:m,className:"h-full"}),t[27]=o,t[28]=y,t[29]=m,t[30]=a,t[31]=I,t[32]=P,t[33]=N,t[34]=T,t[35]=n,t[36]=e,t[37]=S):S=t[37],S}function Zi(M){const t=L.c(24),{connectionId:o,toolName:I,args:i}=M,{org:p}=H(),a=q();let v;t[0]!==o||t[1]!==a?(v=B(o)&&a.vmEntry?.sandboxProviderKind==="user-desktop"&&a.previewUrl?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=o,t[1]=a,t[2]=v):v=t[2];const C=v;let d;t[3]!==o||t[4]!==C||t[5]!==p.id||t[6]!==p.slug?(d={connectionId:o,orgId:p.id,orgSlug:p.slug,mcpUrl:C},t[3]=o,t[4]=C,t[5]=p.id,t[6]=p.slug,t[7]=d):d=t[7];const l=k(d);let g;t[8]!==l?(g={client:l},t[8]=l,t[9]=g):g=t[9];const{data:s}=V(g);let r,c,m;t[10]!==I||t[11]!==s.tools?(r=O(decodeURIComponent(I)),m=s.tools.find(e=>e.name===r)??s.tools.find(e=>{const h=$(e._meta);if(!h)return!1;if(E(e.name,h)===r)return!0;const f=E(r,h);return f!==r&&e.name===f}),c=m?._meta?K(m._meta):void 0,t[10]=I,t[11]=s.tools,t[12]=r,t[13]=c,t[14]=m):(r=t[12],c=t[13],m=t[14]);const n=c;if(!m||!n){let e;return t[15]!==r?(e=U.jsx("div",{className:"flex items-center justify-center h-full w-full",children:U.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[15]=r,t[16]=e):e=t[16],e}let u;return t[17]!==i||t[18]!==l||t[19]!==o||t[20]!==p.id||t[21]!==n||t[22]!==m?(u=U.jsx(ot,{client:l,resourceURI:n,tool:m,connectionId:o,orgId:p.id,args:i}),t[17]=i,t[18]=l,t[19]=o,t[20]=p.id,t[21]=n,t[22]=m,t[23]=u):u=t[23],u}export{Zi as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as C,j as o}from"./index-BSxh64hl.js";import{I as B}from"./input-HA5GlV6J.js";import{L as T}from"./label-DNj28QS5.js";import{S as L,a as A,b as R,c as z,d as O}from"./select-Bml7Rs0T.js";import{T as V}from"./textarea-Z5OnX3vK.js";import{v as D,w as J,o as K,x as M,I as _}from"./index-q_ZBGy7p.js";import{s as F}from"./primitives-CAtuLkMY.js";import{u as $}from"./use-autosave-ZNRJmIC1.js";import"./tooltip-Di8Co4Sg.js";import"./Check-D3n4gRJc.js";import"./ChevronDown-D4DHAf0j.js";import"./ChevronUp-Cu19ewZf.js";import"./ArrowUp-FPNlktOK.js";import"./chat-context-BIBgMmSP.js";import"./autosend-4jNArwYp.js";import"./hooks-8LO2nFxS.js";import"./use-mcp-client-C8CUpc9I.js";import"./constants-BHDe7bIw.js";import"./auth-DKNOF6Pv.js";import"./decopilot-sse-pool-CAAPJES7.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-Bjw0Jr43.js";import"./use-virtual-mcp-BoNQ0wEI.js";import"./use-collections-Dz-cDGRH.js";import"./use-ai-providers-EAIs9V5s.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-bEeBCG8g.js";import"./use-organization-settings-BZRqZCOI.js";import"./automation-runs-DMvzL5XU.js";import"./useInfiniteQuery-uUKZgZ1F.js";import"./use-infinite-scroll-BXgYebaV.js";import"./use-connection-Tzw-gM9_.js";import"./card-S6Aa8yjq.js";import"./sidebar-Da7wzFWC.js";import"./LayoutLeft-DFfT9PNh.js";import"./use-mobile-jR7vc4lZ.js";import"./X-C1Hb-T06.js";import"./table-B2on39xb.js";import"./empty-state-BFIwmfIY.js";import"./use-members-Cbq-KhlP.js";import"./use-org-auth-client-DaulafqZ.js";import"./use-clock-tick-B5ExQuB8.js";import"./AlertCircle-CasESeW6.js";import"./CheckCircle-C7IpeM2l.js";import"./Circle-D9nZXcv9.js";import"./agent-icon-gbgOnB97.js";import"./UserPlus01-BuJJCUTQ.js";import"./Tool01-C5UcZe4X.js";import"./Settings02-BOgQYQhy.js";import"./Tool02-C3DiBnvC.js";import"./XCircle-D_1ilOF2.js";import"./ArrowUpRight-M9tqNBZh.js";import"./TrendUp01-D4nDXsC7.js";import"./ZapSquare-CoeP1pL7.js";import"./ZoomOut-ZBq0pI6d.js";import"./Users03-Bq6sidtE.js";import"./ChevronRight-RInm-aVw.js";import"./Stars02-BwTUcjpB.js";import"./Copy01-D0NIZWk6.js";import"./DotsVertical-ZkH87H22.js";import"./Globe01-CtGNOAC_.js";import"./Eye-CuMpXJkc.js";import"./FilterLines-CZAAcWWi.js";import"./Flag01-DiSJyFcN.js";import"./Star01-Dqxud4cG.js";import"./Globe04-CtsA--DL.js";import"./SwitchHorizontal01-CU1Z25ud.js";import"./HardDrive-B7Komd_c.js";import"./Image01-BAGsNaQU.js";import"./Key01-BDTnv2QH.js";import"./LinkExternal01-0cXhXnwo.js";import"./List-DUr-xsD7.js";import"./Monitor01-CCca9VX6.js";import"./Sun-CGU_J3YG.js";import"./Package-BI2BjUtD.js";import"./Palette-DCkpyAzO.js";import"./Play-Bp-NfS7s.js";import"./Plus-BnnQdSS2.js";import"./SearchLg-CJDpvrzu.js";import"./SearchMd-CWXkSlvi.js";import"./Shield01-DROOCFo5.js";import"./Stars01-BQF4fDG0.js";import"./Trash01-CnVHiwXT.js";import"./Upload01-B1HnYX_L.js";import"./User01-DDQH6RKB.js";import"./Users01-BgsiD61H.js";import"./XClose-bVEi_3Z9.js";import"./Zap-DenhxUDB.js";import"./use-automations-DuO6aGrd.js";import"./useSuspenseInfiniteQuery-BUWsAQNT.js";import"./avatar-D8cqehrs.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dlp2drKX.js";import"./file-type-icon-oaWPVcXq.js";import"./dialog-7Hh4EEds.js";import"./monaco-editor-Db_KtlDF.js";import"./index-Dv0yuO1h.js";import"./index-BcxWRa-k.js";import"./shell-layout-ChVVxyRA.js";import"./required-auth-layout-DjUuTkxW.js";import"./use-org-sso-BYe3M43L.js";import"./integration-icon-CxEZQlxS.js";import"./use-navigate-to-agent-DJUvOfFB.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DqvPPaTC.js";import"./form-DNDzmHY7.js";import"./drawer-C9w90-t7.js";import"./collection-search-CDWYBpbb.js";import"./tabs-TPHxWTyx.js";import"./toggle-group-Ex1OojBb.js";import"./use-deco-credits-CbKP4RkY.js";import"./extract-connection-data-CWqIHi--.js";import"./connection-card-CO4Zt6un.js";import"./use-registry-connections-_izo0bxC.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-B3-hYGek.js";import"./authenticate-and-persist-oauth-DwbkuScw.js";import"./mcp-oauth-D8kd56GU.js";import"./collection-tabs-BedmQqrC.js";import"./badge-BD9n0Dfq.js";import"./connect-desktop-dialog-DOTPKvtV.js";import"./select-model-5SsfzBU3.js";import"./checkbox-Cl_AUlvc.js";import"./skeleton-CFpB1jha.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section--qFkAAhx.js";import"./command-DRdHD2LV.js";import"./index-B941tipH.js";import"./popover-tA9PDjW1.js";import"./dropdown-menu-BJz5vhZu.js";import"./index-BpxVmSwt.js";import"./alert-dialog-AMD4bxPu.js";import"./toolbar-J4RI9xFD.js";import"./use-debounced-value--fL8uLzq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BCav02M9.js";import"./use-mcp-tools-Cb9NQ6Rf.js";import"./use-capability-NLzcv---.js";import"./toolbar-icon-button-BPMkXTme.js";import"./use-debounced-autosave-CIHnH-Z_.js";import"./index-CvhBtFuW.js";import"./search-input-B38BWJHH.js";import"./use-mcp-auth-status-DaaoI_us.js";import"./switch-C2Mm6_qS.js";import"./use-registry-app-CDi6-sFg.js";import"./github-repo-picker-C9Dg6j7e.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./github-repo-scope-DjMZbiKa.js";import"./use-secrets-DUdJCh_2.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CMtMZANc.js";import"./index-Bu9LEqep.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BstnI_Yr.js";import"./use-file-configs-DJ9EWhri.js";import"./automation-list-row-BvEcB9tE.js";const q={authors:[{key:"name",label:"Name",widget:"text"},{key:"type",label:"Type",widget:"select",options:[{value:"Person",label:"Person"},{value:"Organization",label:"Organization"}]},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},G={authors:"Author"};function Ho(g){const t=C.c(34),{orgSlug:j,virtualMcpId:w,branch:S,kind:e,blockKey:h,block:E}=g;let y;t[0]!==S||t[1]!==j||t[2]!==w?(y={orgSlug:j,virtualMcpId:w,branch:S},t[0]=S,t[1]=j,t[2]=w,t[3]=y):y=t[3];const m=D(y);let d;t[4]!==E||t[5]!==e?(d=J(E,e),t[4]=E,t[5]=e,t[6]=d):d=t[6];const f=d;let k;t[7]!==h||t[8]!==e||t[9]!==m?(k=a=>{m.mutate({blockKey:h,data:M(h,e,a)})},t[7]=h,t[8]=e,t[9]=m,t[10]=k):k=t[10];const[i,N]=$(f,k);let b;t[11]!==i||t[12]!==N?(b=(a,r)=>N({...i,[a]:r}),t[11]=i,t[12]=N,t[13]=b):b=t[13];const p=b,I=G[e];let l;t[14]!==I?(l=o.jsx("span",{className:"text-sm font-medium",children:I}),t[14]=I,t[15]=l):l=t[15];let n;t[16]!==m.isError||t[17]!==m.isPending?(n=o.jsx(K,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=n):n=t[18];let c;t[19]!==l||t[20]!==n?(c=o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,n]}),t[19]=l,t[20]=n,t[21]=c):c=t[21];const P=q[e];let u;if(t[22]!==i||t[23]!==p||t[24]!==P){let a;t[26]!==i||t[27]!==p?(a=r=>o.jsx("div",{className:"space-y-2",children:r.widget==="image"?o.jsx(_,{schema:{type:"string",format:"image-uri",title:r.label},value:i[r.key],onChange:s=>p(r.key,s),path:r.key,label:r.label}):r.widget==="select"?o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),o.jsxs(L,{value:F(i[r.key])||r.options?.[0]?.value,onValueChange:s=>p(r.key,s),children:[o.jsx(A,{id:r.key,className:"h-10 w-full",children:o.jsx(R,{placeholder:r.label})}),o.jsx(z,{children:(r.options??[]).map(H)})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),r.widget==="textarea"?o.jsx(V,{id:r.key,value:F(i[r.key]),onChange:s=>p(r.key,s.target.value),rows:3}):o.jsx(B,{id:r.key,value:F(i[r.key]),placeholder:r.placeholder,onChange:s=>p(r.key,s.target.value),className:"h-10"})]})},r.key),t[26]=i,t[27]=p,t[28]=a):a=t[28],u=P.map(a),t[22]=i,t[23]=p,t[24]=P,t[25]=u}else u=t[25];let x;t[29]!==u?(x=o.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:u})}),t[29]=u,t[30]=x):x=t[30];let v;return t[31]!==x||t[32]!==c?(v=o.jsxs("div",{className:"flex h-full flex-col",children:[c,x]}),t[31]=x,t[32]=c,t[33]=v):v=t[33],v}function H(g){return o.jsx(O,{value:g.value,children:g.label},g.value)}export{Ho as RecordEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as X,j as e}from"./index-BSxh64hl.js";import{C as Y}from"./checkbox-Cl_AUlvc.js";import{I as K}from"./input-HA5GlV6J.js";import{L as q}from"./label-DNj28QS5.js";import{c as z,S as G,d as H,a as J,b as Z}from"./select-Bml7Rs0T.js";import{k as tt,aV as et,o as rt,aW as M,aX as it}from"./index-q_ZBGy7p.js";import{u as ot}from"./use-autosave-ZNRJmIC1.js";import"./Check-D3n4gRJc.js";import"./tooltip-Di8Co4Sg.js";import"./ChevronDown-D4DHAf0j.js";import"./ChevronUp-Cu19ewZf.js";import"./ArrowUp-FPNlktOK.js";import"./chat-context-BIBgMmSP.js";import"./autosend-4jNArwYp.js";import"./hooks-8LO2nFxS.js";import"./use-mcp-client-C8CUpc9I.js";import"./constants-BHDe7bIw.js";import"./auth-DKNOF6Pv.js";import"./decopilot-sse-pool-CAAPJES7.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-Bjw0Jr43.js";import"./use-virtual-mcp-BoNQ0wEI.js";import"./use-collections-Dz-cDGRH.js";import"./use-ai-providers-EAIs9V5s.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-bEeBCG8g.js";import"./use-organization-settings-BZRqZCOI.js";import"./automation-runs-DMvzL5XU.js";import"./useInfiniteQuery-uUKZgZ1F.js";import"./use-infinite-scroll-BXgYebaV.js";import"./use-connection-Tzw-gM9_.js";import"./card-S6Aa8yjq.js";import"./sidebar-Da7wzFWC.js";import"./LayoutLeft-DFfT9PNh.js";import"./use-mobile-jR7vc4lZ.js";import"./X-C1Hb-T06.js";import"./table-B2on39xb.js";import"./empty-state-BFIwmfIY.js";import"./use-members-Cbq-KhlP.js";import"./use-org-auth-client-DaulafqZ.js";import"./use-clock-tick-B5ExQuB8.js";import"./AlertCircle-CasESeW6.js";import"./CheckCircle-C7IpeM2l.js";import"./Circle-D9nZXcv9.js";import"./agent-icon-gbgOnB97.js";import"./UserPlus01-BuJJCUTQ.js";import"./Tool01-C5UcZe4X.js";import"./Settings02-BOgQYQhy.js";import"./Tool02-C3DiBnvC.js";import"./XCircle-D_1ilOF2.js";import"./ArrowUpRight-M9tqNBZh.js";import"./TrendUp01-D4nDXsC7.js";import"./ZapSquare-CoeP1pL7.js";import"./ZoomOut-ZBq0pI6d.js";import"./Users03-Bq6sidtE.js";import"./ChevronRight-RInm-aVw.js";import"./Stars02-BwTUcjpB.js";import"./Copy01-D0NIZWk6.js";import"./DotsVertical-ZkH87H22.js";import"./Globe01-CtGNOAC_.js";import"./Eye-CuMpXJkc.js";import"./FilterLines-CZAAcWWi.js";import"./Flag01-DiSJyFcN.js";import"./Star01-Dqxud4cG.js";import"./Globe04-CtsA--DL.js";import"./SwitchHorizontal01-CU1Z25ud.js";import"./HardDrive-B7Komd_c.js";import"./Image01-BAGsNaQU.js";import"./Key01-BDTnv2QH.js";import"./LinkExternal01-0cXhXnwo.js";import"./List-DUr-xsD7.js";import"./Monitor01-CCca9VX6.js";import"./Sun-CGU_J3YG.js";import"./Package-BI2BjUtD.js";import"./Palette-DCkpyAzO.js";import"./Play-Bp-NfS7s.js";import"./Plus-BnnQdSS2.js";import"./SearchLg-CJDpvrzu.js";import"./SearchMd-CWXkSlvi.js";import"./Shield01-DROOCFo5.js";import"./Stars01-BQF4fDG0.js";import"./Trash01-CnVHiwXT.js";import"./Upload01-B1HnYX_L.js";import"./User01-DDQH6RKB.js";import"./Users01-BgsiD61H.js";import"./XClose-bVEi_3Z9.js";import"./Zap-DenhxUDB.js";import"./use-automations-DuO6aGrd.js";import"./useSuspenseInfiniteQuery-BUWsAQNT.js";import"./avatar-D8cqehrs.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dlp2drKX.js";import"./file-type-icon-oaWPVcXq.js";import"./dialog-7Hh4EEds.js";import"./monaco-editor-Db_KtlDF.js";import"./index-Dv0yuO1h.js";import"./index-BcxWRa-k.js";import"./shell-layout-ChVVxyRA.js";import"./required-auth-layout-DjUuTkxW.js";import"./use-org-sso-BYe3M43L.js";import"./integration-icon-CxEZQlxS.js";import"./use-navigate-to-agent-DJUvOfFB.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DqvPPaTC.js";import"./form-DNDzmHY7.js";import"./drawer-C9w90-t7.js";import"./collection-search-CDWYBpbb.js";import"./tabs-TPHxWTyx.js";import"./toggle-group-Ex1OojBb.js";import"./use-deco-credits-CbKP4RkY.js";import"./extract-connection-data-CWqIHi--.js";import"./connection-card-CO4Zt6un.js";import"./use-registry-connections-_izo0bxC.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-Z5OnX3vK.js";import"./connection-form-helpers-B3-hYGek.js";import"./authenticate-and-persist-oauth-DwbkuScw.js";import"./mcp-oauth-D8kd56GU.js";import"./collection-tabs-BedmQqrC.js";import"./badge-BD9n0Dfq.js";import"./connect-desktop-dialog-DOTPKvtV.js";import"./select-model-5SsfzBU3.js";import"./skeleton-CFpB1jha.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section--qFkAAhx.js";import"./command-DRdHD2LV.js";import"./index-B941tipH.js";import"./popover-tA9PDjW1.js";import"./dropdown-menu-BJz5vhZu.js";import"./index-BpxVmSwt.js";import"./alert-dialog-AMD4bxPu.js";import"./toolbar-J4RI9xFD.js";import"./use-debounced-value--fL8uLzq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BCav02M9.js";import"./use-mcp-tools-Cb9NQ6Rf.js";import"./use-capability-NLzcv---.js";import"./toolbar-icon-button-BPMkXTme.js";import"./use-debounced-autosave-CIHnH-Z_.js";import"./index-CvhBtFuW.js";import"./search-input-B38BWJHH.js";import"./use-mcp-auth-status-DaaoI_us.js";import"./switch-C2Mm6_qS.js";import"./use-registry-app-CDi6-sFg.js";import"./github-repo-picker-C9Dg6j7e.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./github-repo-scope-DjMZbiKa.js";import"./use-secrets-DUdJCh_2.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CMtMZANc.js";import"./index-Bu9LEqep.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BstnI_Yr.js";import"./use-file-configs-DJ9EWhri.js";import"./automation-list-row-BvEcB9tE.js";const mt=[{value:"temporary",label:`Temporary (${M.temporary})`},{value:"permanent",label:`Permanent (${M.permanent})`}];function oi(S){const t=X.c(62),{orgSlug:V,virtualMcpId:$,branch:A,blockKey:B,block:D}=S;let _;t[0]!==A||t[1]!==V||t[2]!==$?(_={orgSlug:V,virtualMcpId:$,branch:A},t[0]=A,t[1]=V,t[2]=$,t[3]=_):_=t[3];const m=tt(_);let g;t[4]!==D?(g=et(D),t[4]=D,t[5]=g):g=t[5];const W=g;let v;t[6]!==B||t[7]!==m?(v=o=>{m.mutate({blockKey:B,data:it(o)})},t[6]=B,t[7]=m,t[8]=v):v=t[8];const[r,O]=ot(W,v);let N;t[9]!==r||t[10]!==O?(N=o=>O({...r,...o}),t[9]=r,t[10]=O,t[11]=N):N=t[11];const i=N;let P;t[12]===Symbol.for("react.memo_cache_sentinel")?(P=e.jsx("span",{className:"text-sm font-medium",children:"Redirect"}),t[12]=P):P=t[12];let p;t[13]!==m.isError||t[14]!==m.isPending?(p=e.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[P,e.jsx(rt,{isPending:m.isPending,isError:m.isError})]}),t[13]=m.isError,t[14]=m.isPending,t[15]=p):p=t[15];let T;t[16]===Symbol.for("react.memo_cache_sentinel")?(T=e.jsx(q,{htmlFor:"redirect-from",children:"From"}),t[16]=T):T=t[16];let s;t[17]!==i?(s=o=>i({from:o.target.value}),t[17]=i,t[18]=s):s=t[18];let l;t[19]!==r.from||t[20]!==s?(l=e.jsx(K,{id:"redirect-from",value:r.from,placeholder:"/old-path",onChange:s,className:"h-10"}),t[19]=r.from,t[20]=s,t[21]=l):l=t[21];let E;t[22]===Symbol.for("react.memo_cache_sentinel")?(E=e.jsxs("p",{className:"text-xs text-muted-foreground",children:["The source path to match. Supports URLPattern syntax (e.g."," ",e.jsx("code",{children:"/product/:slug"}),")."]}),t[22]=E):E=t[22];let a;t[23]!==l?(a=e.jsxs("div",{className:"space-y-2",children:[T,l,E]}),t[23]=l,t[24]=a):a=t[24];let R;t[25]===Symbol.for("react.memo_cache_sentinel")?(R=e.jsx(q,{htmlFor:"redirect-to",children:"To"}),t[25]=R):R=t[25];let c;t[26]!==i?(c=o=>i({to:o.target.value}),t[26]=i,t[27]=c):c=t[27];let n;t[28]!==r.to||t[29]!==c?(n=e.jsx(K,{id:"redirect-to",value:r.to,placeholder:"/new-path",onChange:c,className:"h-10"}),t[28]=r.to,t[29]=c,t[30]=n):n=t[30];let k;t[31]===Symbol.for("react.memo_cache_sentinel")?(k=e.jsx("p",{className:"text-xs text-muted-foreground",children:"The destination — a relative path or an absolute URL."}),t[31]=k):k=t[31];let d;t[32]!==n?(d=e.jsxs("div",{className:"space-y-2",children:[R,n,k]}),t[32]=n,t[33]=d):d=t[33];let C;t[34]===Symbol.for("react.memo_cache_sentinel")?(C=e.jsx(q,{htmlFor:"redirect-type",children:"Type"}),t[34]=C):C=t[34];let f;t[35]!==i?(f=o=>i({type:o}),t[35]=i,t[36]=f):f=t[36];let w;t[37]===Symbol.for("react.memo_cache_sentinel")?(w=e.jsx(J,{id:"redirect-type",className:"h-10 w-full",children:e.jsx(Z,{placeholder:"Type"})}),t[37]=w):w=t[37];let I;t[38]===Symbol.for("react.memo_cache_sentinel")?(I=e.jsx(z,{children:mt.map(pt)}),t[38]=I):I=t[38];let h;t[39]!==r.type||t[40]!==f?(h=e.jsxs(G,{value:r.type,onValueChange:f,children:[w,I]}),t[39]=r.type,t[40]=f,t[41]=h):h=t[41];let F;t[42]===Symbol.for("react.memo_cache_sentinel")?(F=e.jsx("strong",{children:"Temporary"}),t[42]=F):F=t[42];let L;t[43]===Symbol.for("react.memo_cache_sentinel")?(L=e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",F," when the redirect may change;"," ",e.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[43]=L):L=t[43];let x;t[44]!==h?(x=e.jsxs("div",{className:"space-y-2",children:[C,h,L]}),t[44]=h,t[45]=x):x=t[45];let u;t[46]!==i?(u=o=>i({discardQueryParameters:o===!0}),t[46]=i,t[47]=u):u=t[47];let y;t[48]!==r.discardQueryParameters||t[49]!==u?(y=e.jsx(Y,{checked:r.discardQueryParameters,onCheckedChange:u}),t[48]=r.discardQueryParameters,t[49]=u,t[50]=y):y=t[50];let Q;t[51]===Symbol.for("react.memo_cache_sentinel")?(Q=e.jsx("span",{className:"text-sm",children:"Discard query parameters"}),t[51]=Q):Q=t[51];let j;t[52]!==y?(j=e.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[y,Q]}),t[52]=y,t[53]=j):j=t[53];let b;t[54]!==a||t[55]!==d||t[56]!==x||t[57]!==j?(b=e.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:e.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[a,d,x,j]})}),t[54]=a,t[55]=d,t[56]=x,t[57]=j,t[58]=b):b=t[58];let U;return t[59]!==b||t[60]!==p?(U=e.jsxs("div",{className:"flex h-full flex-col",children:[p,b]}),t[59]=b,t[60]=p,t[61]=U):U=t[61],U}function pt(S){return e.jsx(H,{value:S.value,children:S.label},S.value)}export{oi as RedirectEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BAA3FULf.js","assets/index-BSxh64hl.js","assets/index-BGqqvTWB.css","assets/Tool02-C3DiBnvC.js","assets/CheckCircle-C7IpeM2l.js","assets/Settings02-BOgQYQhy.js","assets/use-mcp-client-C8CUpc9I.js","assets/constants-BHDe7bIw.js","assets/auth-DKNOF6Pv.js","assets/useInfiniteQuery-uUKZgZ1F.js","assets/use-infinite-scroll-BXgYebaV.js","assets/studio-tools-Bjw0Jr43.js","assets/badge-BD9n0Dfq.js","assets/input-HA5GlV6J.js","assets/dropdown-menu-BJz5vhZu.js","assets/Check-D3n4gRJc.js","assets/ChevronRight-RInm-aVw.js","assets/Circle-D9nZXcv9.js","assets/table-B2on39xb.js","assets/toggle-group-Ex1OojBb.js","assets/use-view-mode-BPJ2wr8B.js","assets/use-mobile-jR7vc4lZ.js","assets/DotsVertical-ZkH87H22.js","assets/FilterLines-CZAAcWWi.js","assets/Globe01-CtGNOAC_.js","assets/SearchMd-CWXkSlvi.js","assets/dialog-7Hh4EEds.js","assets/X-C1Hb-T06.js","assets/AlertCircle-CasESeW6.js","assets/Upload01-B1HnYX_L.js","assets/alert-dialog-AMD4bxPu.js","assets/card-S6Aa8yjq.js","assets/Trash01-CnVHiwXT.js","assets/label-DNj28QS5.js","assets/select-Bml7Rs0T.js","assets/tooltip-Di8Co4Sg.js","assets/ChevronDown-D4DHAf0j.js","assets/ChevronUp-Cu19ewZf.js","assets/switch-C2Mm6_qS.js","assets/textarea-Z5OnX3vK.js","assets/XCircle-D_1ilOF2.js","assets/checkbox-Cl_AUlvc.js","assets/Eye-CuMpXJkc.js","assets/LinkExternal01-0cXhXnwo.js","assets/use-copy-Dlp2drKX.js","assets/Copy01-D0NIZWk6.js","assets/Key01-BDTnv2QH.js","assets/Plus-BnnQdSS2.js","assets/mcp-oauth-D8kd56GU.js","assets/Play-Bp-NfS7s.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as s,j as e,r as i,i as a,aX as o}from"./index-BSxh64hl.js";import{R as m}from"./require-capability-9TYWYZRa.js";import"./use-capability-NLzcv---.js";import"./access-gate-CeqiNeAt.js";import"./capability-load-error-C0fAl7Vj.js";const n=i.lazy(()=>o(()=>import("./registry-layout-BAA3FULf.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BAA3FULf.js","assets/index-BSxh64hl.js","assets/index-BGqqvTWB.css","assets/Tool02-C3DiBnvC.js","assets/CheckCircle-C7IpeM2l.js","assets/Settings02-BOgQYQhy.js","assets/use-mcp-client-C8CUpc9I.js","assets/constants-BHDe7bIw.js","assets/auth-DKNOF6Pv.js","assets/useInfiniteQuery-uUKZgZ1F.js","assets/use-infinite-scroll-BXgYebaV.js","assets/studio-tools-Bjw0Jr43.js","assets/badge-BD9n0Dfq.js","assets/input-HA5GlV6J.js","assets/dropdown-menu-BJz5vhZu.js","assets/Check-D3n4gRJc.js","assets/ChevronRight-RInm-aVw.js","assets/Circle-D9nZXcv9.js","assets/table-B2on39xb.js","assets/toggle-group-Ex1OojBb.js","assets/use-view-mode-BPJ2wr8B.js","assets/use-mobile-jR7vc4lZ.js","assets/DotsVertical-ZkH87H22.js","assets/FilterLines-CZAAcWWi.js","assets/Globe01-CtGNOAC_.js","assets/SearchMd-CWXkSlvi.js","assets/dialog-7Hh4EEds.js","assets/X-C1Hb-T06.js","assets/AlertCircle-CasESeW6.js","assets/Upload01-B1HnYX_L.js","assets/alert-dialog-AMD4bxPu.js","assets/card-S6Aa8yjq.js","assets/Trash01-CnVHiwXT.js","assets/label-DNj28QS5.js","assets/select-Bml7Rs0T.js","assets/tooltip-Di8Co4Sg.js","assets/ChevronDown-D4DHAf0j.js","assets/ChevronUp-Cu19ewZf.js","assets/switch-C2Mm6_qS.js","assets/textarea-Z5OnX3vK.js","assets/XCircle-D_1ilOF2.js","assets/checkbox-Cl_AUlvc.js","assets/Eye-CuMpXJkc.js","assets/LinkExternal01-0cXhXnwo.js","assets/use-copy-Dlp2drKX.js","assets/Copy01-D0NIZWk6.js","assets/Key01-BDTnv2QH.js","assets/Plus-BnnQdSS2.js","assets/mcp-oauth-D8kd56GU.js","assets/Play-Bp-NfS7s.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,b as n,e as c,j as t,i as p,r as l,aX as f}from"./index-BSxh64hl.js";import{R as u}from"./require-capability-9TYWYZRa.js";import"./use-capability-NLzcv---.js";import"./access-gate-CeqiNeAt.js";import"./capability-load-error-C0fAl7Vj.js";const g=l.lazy(()=>f(()=>import("./registry-layout-BAA3FULf.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(p,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-BXgYebaV.js";import{dK as i}from"./index-BSxh64hl.js";function t(e,r){return i(e,u,r)}export{t as u};
|