decocms 4.167.3 → 4.167.5
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-Cicq6Btx.js → AlertCircle-DdtdV7M4.js} +1 -1
- package/dist/client/assets/{AreaChart-DFQ9anBg.js → AreaChart-D7FaG8Lf.js} +1 -1
- package/dist/client/assets/{ArrowUp-LHPBhEbp.js → ArrowUp-CpEPYAOf.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DKu3sDw2.js → ArrowUpRight-CHW6cpx0.js} +1 -1
- package/dist/client/assets/{Check-f04bRoaY.js → Check-BwHliFRj.js} +1 -1
- package/dist/client/assets/{CheckCircle-BDYEoc2A.js → CheckCircle-CTIPijUa.js} +1 -1
- package/dist/client/assets/{ChevronDown-DyPoUAwG.js → ChevronDown-CKkO8sAW.js} +1 -1
- package/dist/client/assets/{ChevronRight-ByYfkUuJ.js → ChevronRight-B8f4wyDl.js} +1 -1
- package/dist/client/assets/{ChevronUp-DTBO0YIR.js → ChevronUp-C1afs1xa.js} +1 -1
- package/dist/client/assets/{Copy01-BK7unRe5.js → Copy01-BlkL52M8.js} +1 -1
- package/dist/client/assets/{CpuChip01-OzAhABj8.js → CpuChip01-Cs3gfrhP.js} +1 -1
- package/dist/client/assets/{DotsVertical-BOoWejjN.js → DotsVertical-BFrinGvO.js} +1 -1
- package/dist/client/assets/{Eye-Dq2AhBpY.js → Eye-CQsjSohp.js} +1 -1
- package/dist/client/assets/{FilterLines-DFF1TYW3.js → FilterLines-oPoBPuqv.js} +1 -1
- package/dist/client/assets/{HardDrive-PxX2eS0f.js → HardDrive-CpV48xOn.js} +1 -1
- package/dist/client/assets/{Key01-QIc7SJsy.js → Key01-CIup5BVm.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DVCUfMEo.js → LayoutLeft-DrcKo4sm.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Chyou-nB.js → LinkExternal01-CgpMIzO0.js} +1 -1
- package/dist/client/assets/{LogOut01-CZ8M0-Mw.js → LogOut01-uhMfgP0K.js} +1 -1
- package/dist/client/assets/{Monitor01-DdYMBVN1.js → Monitor01-BT8WHZmo.js} +1 -1
- package/dist/client/assets/{Palette-C1L2ofpt.js → Palette-CpgDl594.js} +1 -1
- package/dist/client/assets/{Play-Dx9zbgtK.js → Play-BBCpB_Tz.js} +1 -1
- package/dist/client/assets/{Plus-DQSqgbXS.js → Plus-DO9NbOAK.js} +1 -1
- package/dist/client/assets/{SearchLg-B6WGS6K3.js → SearchLg-Df6klb6Y.js} +1 -1
- package/dist/client/assets/{SearchMd-CN5YBDRF.js → SearchMd-GYne36B-.js} +1 -1
- package/dist/client/assets/{Settings02-CgZPcZ7w.js → Settings02-DerOgVc2.js} +1 -1
- package/dist/client/assets/{Shield01-DZ6YvlwA.js → Shield01-gMQ1chGf.js} +1 -1
- package/dist/client/assets/{Star01-DUGGdLzq.js → Star01-CH5MEDQn.js} +1 -1
- package/dist/client/assets/{Stars01-D-dQK92H.js → Stars01-DAx8aZEr.js} +1 -1
- package/dist/client/assets/{Stars02-DxJUAXG3.js → Stars02-BG4AWaaX.js} +1 -1
- package/dist/client/assets/{Sun-BgsS0p54.js → Sun-DPokUB7F.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D1lq-Kdk.js → SwitchHorizontal01-B4ZgCyE5.js} +1 -1
- package/dist/client/assets/{Tool01-Cck98cEb.js → Tool01-Dn1kpGdl.js} +1 -1
- package/dist/client/assets/{Tool02-DA9UyLwr.js → Tool02-DZ2vEkP4.js} +1 -1
- package/dist/client/assets/{Trash01-gdb_rf-l.js → Trash01-BOMqKZ1K.js} +1 -1
- package/dist/client/assets/{TrendUp01-7inJIhQA.js → TrendUp01-DwZeXU3a.js} +1 -1
- package/dist/client/assets/{Upload01-Cgd-iRGv.js → Upload01-S_KetqzT.js} +1 -1
- package/dist/client/assets/{User01-CZDBfvD7.js → User01-HXIFsqtn.js} +1 -1
- package/dist/client/assets/{Users01-DBliec9J.js → Users01-ByuTyOLr.js} +1 -1
- package/dist/client/assets/{Users03-BISCNzBj.js → Users03-CI91FsuH.js} +1 -1
- package/dist/client/assets/{X-D0Coarkj.js → X-B6K21IFp.js} +1 -1
- package/dist/client/assets/{XCircle-BOvwYwxn.js → XCircle-Df3ZOY6R.js} +1 -1
- package/dist/client/assets/{XClose-CLWdXIS8.js → XClose-DBug4o8k.js} +1 -1
- package/dist/client/assets/{Zap-tSUs1L-J.js → Zap-C9gRaG5K.js} +1 -1
- package/dist/client/assets/{ZapSquare-DIplYvne.js → ZapSquare-CPOIzhEC.js} +1 -1
- package/dist/client/assets/{access-gate-BxWFFSaK.js → access-gate-CScD5WwV.js} +1 -1
- package/dist/client/assets/{add-section-modal-BMIGGLcT.js → add-section-modal---WRWqCq.js} +1 -1
- package/dist/client/assets/{agent-icon-BCrD15Ca.js → agent-icon-Dcc64Amv.js} +1 -1
- package/dist/client/assets/{agents-list-DwxjQQvs.js → agents-list-Cc9aJCuF.js} +1 -1
- package/dist/client/assets/{ai-providers-C83ykFah.js → ai-providers-BSRRBbsG.js} +1 -1
- package/dist/client/assets/{alert-DTTMLF4J.js → alert-Bep9Lxpp.js} +1 -1
- package/dist/client/assets/{alert-dialog-DnqyXHfM.js → alert-dialog-tPwVc9uJ.js} +1 -1
- package/dist/client/assets/{app-editor-CKcRsram.js → app-editor-B6Hjw_Pg.js} +1 -1
- package/dist/client/assets/{auth-DSQBrdmM.js → auth-Q0kADPVB.js} +1 -1
- package/dist/client/assets/{auth-catchall-B97ls6YQ.js → auth-catchall-BGhPLdgj.js} +1 -1
- package/dist/client/assets/{auth-entry-Dwk49HpM.js → auth-entry-7vb620Uc.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DzOiwh9h.js → auth-split-layout-_MAsIBb7.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DNq2co04.js → authenticate-and-persist-oauth-Dus5ShT0.js} +1 -1
- package/dist/client/assets/{automation-list-row-BPnZRF4k.js → automation-list-row-eD1c19d3.js} +1 -1
- package/dist/client/assets/{automation-runs-B4NS8rzb.js → automation-runs-D7I8QaWS.js} +1 -1
- package/dist/client/assets/{automations-CsNjYA-Y.js → automations-B6GTOD2v.js} +1 -1
- package/dist/client/assets/{avatar-BCLsXL4H.js → avatar-3ae7eb9x.js} +1 -1
- package/dist/client/assets/{badge-x-7WrvvC.js → badge-ClTHWVhH.js} +1 -1
- package/dist/client/assets/{block-document-Dulfsr2U.js → block-document-DoV2ApVE.js} +1 -1
- package/dist/client/assets/{brand-context-CQ1Tf8Wp.js → brand-context-DU88wlq-.js} +1 -1
- package/dist/client/assets/{buckets-DpPCYRzR.js → buckets-Dv64V13u.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-49uMqDM0.js → bulk-category-panel-D9d-CPZi.js} +1 -1
- package/dist/client/assets/{calendar-hqlz1PlK.js → calendar-CaFuCBn0.js} +1 -1
- package/dist/client/assets/{capability-load-error-BJzI4xu7.js → capability-load-error-Bb2HUhlv.js} +1 -1
- package/dist/client/assets/{card-Bpzcw64L.js → card-BkMfo3-L.js} +1 -1
- package/dist/client/assets/{category-editor-CMwI6qt5.js → category-editor-95YwksDq.js} +1 -1
- package/dist/client/assets/{chat-context-C9AlLzvl.js → chat-context-CklmWc6u.js} +1 -1
- package/dist/client/assets/{checkbox-6ZWRDMwE.js → checkbox-BXAaMwzS.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BCDlr0k_.js → cli-auth-success-Dgklezpk.js} +1 -1
- package/dist/client/assets/{collection-detail-CysnnRnu.js → collection-detail-8NE3cr65.js} +1 -1
- package/dist/client/assets/{collection-display-button-ygeEvxMu.js → collection-display-button-CyKBEium.js} +1 -1
- package/dist/client/assets/{collection-search-DycU0jmq.js → collection-search-CgEc7JVV.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CjkX3yqr.js → collection-table-wrapper-DwhAFC5W.js} +1 -1
- package/dist/client/assets/{collection-tabs-T9RTywR0.js → collection-tabs-jHD3PV9U.js} +1 -1
- package/dist/client/assets/{command-B7brqxOl.js → command-DUTyl3qs.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CblBjVbU.js → commerce-onboarding-DYZssxx_.js} +1 -1
- package/dist/client/assets/{companions-core-BhrI4a_V.js → companions-core-DdNaKkOK.js} +1 -1
- package/dist/client/assets/{connect-CNQIhHCL.js → connect-DnZs58Fx.js} +1 -1
- package/dist/client/assets/{connection-card-Dda8Ri7q.js → connection-card-BoLbm0Lq.js} +1 -1
- package/dist/client/assets/{connection-detail-CAn_PAZA.js → connection-detail-CuzNCThW.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CNWz3mpZ.js → connection-form-helpers-MuJLCV8m.js} +1 -1
- package/dist/client/assets/{connection-r-zOTtxQ.js → connection-yFrSB_Ck.js} +1 -1
- package/dist/client/assets/{connections-CDFhUmuB.js → connections-C4UBN-Ku.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-B6LhhEZg.js → decopilot-sse-pool-C9wT7nFZ.js} +1 -1
- package/dist/client/assets/{dialog-C9ETdGjn.js → dialog-Y2c_xFO9.js} +1 -1
- package/dist/client/assets/{domain-settings-Bt64UwZm.js → domain-settings-BixkB4wg.js} +1 -1
- package/dist/client/assets/{drawer-BD7_0pOG.js → drawer-Dn6DCG1a.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DdMA7Vq_.js → dropdown-menu-hQO8uf9z.js} +1 -1
- package/dist/client/assets/{empty-state-z-_UrQKo.js → empty-state-BYwKHc7l.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DHczjTgR.js → extract-connection-data-C2o6ZTIY.js} +1 -1
- package/dist/client/assets/{file-explorer-3inNuldH.js → file-explorer-D4pNhhOc.js} +1 -1
- package/dist/client/assets/{form-DgrZJrh8.js → form-92MvHLxT.js} +1 -1
- package/dist/client/assets/{general-BJVuOdS3.js → general-CCHZeIqH.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CnOqewLh.js → github-repo-picker-CgWDATG6.js} +1 -1
- package/dist/client/assets/{hooks-DObrp1-C.js → hooks-VEM1hLto.js} +1 -1
- package/dist/client/assets/{index-MCBhNmxf.js → index-BAPkgzXp.js} +1 -1
- package/dist/client/assets/{index-KTtpS5-N.js → index-BIINGXKR.js} +3 -3
- package/dist/client/assets/{index-CjKkPBSN.js → index-BTg6jfKl.js} +5 -5
- package/dist/client/assets/{index-Z21w6ntf.js → index-C2-dhaI-.js} +1 -1
- package/dist/client/assets/{index-Bp_Qr2P5.js → index-CG2piyb3.js} +1 -1
- package/dist/client/assets/{index-CckLDzub.js → index-Ct5z4bLK.js} +3 -3
- package/dist/client/assets/{index-Bzzv6eR3.js → index-D3cRbFZn.js} +1 -1
- package/dist/client/assets/{index-BlRoNOHG.js → index-DCk4UwEM.js} +1 -1
- package/dist/client/assets/{index-DBRPKLYM.js → index-DWnwwFPu.js} +1 -1
- package/dist/client/assets/{index-CYNEwkBg.js → index-DXYTRa9w.js} +1 -1
- package/dist/client/assets/{index-CNiVaCVz.js → index-cp39w1Sm.js} +1 -1
- package/dist/client/assets/{index-redirect-z4SbsFlA.js → index-redirect-mcpsT-db.js} +1 -1
- package/dist/client/assets/{input-BvaZWiGU.js → input-J1mhqAdN.js} +1 -1
- package/dist/client/assets/{integration-icon-BbHwHD7u.js → integration-icon-C2mjeHEI.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-D6Hncu3i.js → invite-member-dialog-CNAKazL-.js} +1 -1
- package/dist/client/assets/{label-DpC2facL.js → label-CXy-_gNr.js} +1 -1
- package/dist/client/assets/{layout-Cgzdlx0N.js → layout-X5hM7nOr.js} +1 -1
- package/dist/client/assets/{login-Bqz5s29p.js → login-BbQ5kAsz.js} +1 -1
- package/dist/client/assets/{mcp-oauth-z-__qP-h.js → mcp-oauth-C2w2n5sc.js} +1 -1
- package/dist/client/assets/{members-BHNhTcuL.js → members-DCcNOZYQ.js} +1 -1
- package/dist/client/assets/{monaco-editor-T9BnbZT1.js → monaco-editor-BlUBHNk6.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DXVxvpKp.js → monitoring-stats-row-C8t8xcl-.js} +1 -1
- package/dist/client/assets/{multi-select-C5N55_nd.js → multi-select-Bsz4hp3f.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DplmQape.js → oauth-callback-ai-provider-CW0zzOtE.js} +1 -1
- package/dist/client/assets/{oauth-callback-B0NiBgJ4.js → oauth-callback-nGTeJjL9.js} +1 -1
- package/dist/client/assets/{onboarding-BdHNcZPg.js → onboarding-Bsyf93ke.js} +1 -1
- package/dist/client/assets/{org-layout-CpiV0los.js → org-layout-B7FeJv1e.js} +1 -1
- package/dist/client/assets/{organization-choice-BzOTSkAu.js → organization-choice-Izk-OEPw.js} +1 -1
- package/dist/client/assets/{orgs-BcpdNkjd.js → orgs-C32kHiDb.js} +1 -1
- package/dist/client/assets/{page-seo-form-DTa98sr_.js → page-seo-form-Cl2_e8dB.js} +1 -1
- package/dist/client/assets/{popover-DX_G7AK7.js → popover-CqIaLo6d.js} +1 -1
- package/dist/client/assets/{post-editor-BcHvsAs5.js → post-editor-CdNgXoS-.js} +1 -1
- package/dist/client/assets/{primitives--73nNxNp.js → primitives-Crc8xFCt.js} +1 -1
- package/dist/client/assets/{profile-DQMbGEbQ.js → profile-BEXHPCef.js} +1 -1
- package/dist/client/assets/project-app-view-Caj-wVy9.js +1 -0
- package/dist/client/assets/record-editor-Gg2yYvWK.js +1 -0
- package/dist/client/assets/{redirect-editor-0PFZQzYm.js → redirect-editor-CECrXl-i.js} +1 -1
- package/dist/client/assets/registry-CrwbPuRI.js +2 -0
- package/dist/client/assets/{registry-layout-Cb10cHP1.js → registry-layout-1tl7K2yu.js} +1 -1
- package/dist/client/assets/{reports-DX2Lse0N.js → reports-Dec6vyLn.js} +1 -1
- package/dist/client/assets/{require-capability-UNqd8cTc.js → require-capability-Cws6dYpT.js} +1 -1
- package/dist/client/assets/{required-auth-layout-cIXJFYDi.js → required-auth-layout-CKzC4Wry.js} +1 -1
- package/dist/client/assets/{reset-password-DyS3Fz7b.js → reset-password-CF1AWZ9e.js} +1 -1
- package/dist/client/assets/{roles-AGB5SElb.js → roles-D74h0S27.js} +1 -1
- package/dist/client/assets/{search-input-DZBNMAR1.js → search-input-zDL_p_LQ.js} +1 -1
- package/dist/client/assets/{secrets-ClWwtDuq.js → secrets-8wXE75XO.js} +1 -1
- package/dist/client/assets/{sections-editor-WIl_ikde.js → sections-editor-BlTn3Sit.js} +1 -1
- package/dist/client/assets/{select-uD0cTgkh.js → select-Ctd_ZZ0k.js} +1 -1
- package/dist/client/assets/{select-model-DoKrAOGg.js → select-model-CRAkLaCL.js} +1 -1
- package/dist/client/assets/{self-tool-result-DiA23XPu.js → self-tool-result-BCYw36Eu.js} +1 -1
- package/dist/client/assets/{seo-editor-DsCsef7r.js → seo-editor-BKDYZkhV.js} +1 -1
- package/dist/client/assets/{settings-layout-B4RC50w_.js → settings-layout-B5JYfisv.js} +1 -1
- package/dist/client/assets/{settings-section-fwn-im7I.js → settings-section-B_1oLymV.js} +1 -1
- package/dist/client/assets/{shell-controls-CRIMT49r.js → shell-controls-D3ipd2jw.js} +1 -1
- package/dist/client/assets/{shell-layout-3vEmXYAK.js → shell-layout-1C4_PYHs.js} +1 -1
- package/dist/client/assets/{sidebar-jLNWMsPH.js → sidebar-CAZ2FyoU.js} +1 -1
- package/dist/client/assets/{skeleton-B44NoZN3.js → skeleton-tW3UOR15.js} +1 -1
- package/dist/client/assets/{spinner-CXf1Qx7i.js → spinner-BVMuKuHb.js} +1 -1
- package/dist/client/assets/{sso-Du8GVIBZ.js → sso-BFHTrmFE.js} +1 -1
- package/dist/client/assets/{store-9-zqXO_5.js → store-BL5oTmqc.js} +1 -1
- package/dist/client/assets/store-registry-CaYPeu2J.js +2 -0
- package/dist/client/assets/{studio-tools-BB_5IEtF.js → studio-tools-D0M8AyaL.js} +1 -1
- package/dist/client/assets/{switch-C3QbEtEB.js → switch-DskVyYCS.js} +1 -1
- package/dist/client/assets/{tab-id-CBUh52o8.js → tab-id-BhaxduZ_.js} +1 -1
- package/dist/client/assets/{table-Bg1d64zP.js → table-DrUjEYlL.js} +1 -1
- package/dist/client/assets/{tabs-D_z_XTCK.js → tabs-DjKkhJF-.js} +1 -1
- package/dist/client/assets/{textarea-CO_8K2AK.js → textarea-BroNzwSJ.js} +1 -1
- package/dist/client/assets/{toggle-group-D6b4XzrC.js → toggle-group-BsjhKaUR.js} +1 -1
- package/dist/client/assets/{toolbar-BFM5BlTU.js → toolbar-TQryde5B.js} +1 -1
- package/dist/client/assets/{tooltip-kvNY_Zlt.js → tooltip-DcvI3Qmq.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BOEUgaK6.js → use-ai-providers-BWHJhqYW.js} +1 -1
- package/dist/client/assets/{use-automations-BkN-CygW.js → use-automations-CZHCGQrS.js} +1 -1
- package/dist/client/assets/{use-autosave-D8ctgvBJ.js → use-autosave-C7cBRroM.js} +1 -1
- package/dist/client/assets/{use-capability-CGIswx3e.js → use-capability-7L6HM4-F.js} +1 -1
- package/dist/client/assets/{use-clock-tick-wRFIIDnf.js → use-clock-tick-BWJoXcll.js} +1 -1
- package/dist/client/assets/{use-connection-DzkSa9xt.js → use-connection-COSULjHn.js} +1 -1
- package/dist/client/assets/{use-copy-HtfZJ1BU.js → use-copy-DkOP7abA.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CQmW9zDz.js → use-create-virtual-mcp-C2ATuS8O.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-oBotAb_R.js → use-debounced-autosave-Hz9sqsxr.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CHrKB74_.js → use-debounced-value-DqJiqnYk.js} +1 -1
- package/dist/client/assets/{use-deco-credits-yERkW46h.js → use-deco-credits-BHzyr0wR.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Bxnrix6_.js → use-decopilot-events-DhC1PW_6.js} +1 -1
- package/dist/client/assets/{use-delete-connection-x0u7HZiw.js → use-delete-connection-JY4ayTjm.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-mQHHYcCc.js → use-deployment-admin-DCJNChjl.js} +1 -1
- package/dist/client/assets/{use-file-configs-bsVDHd5B.js → use-file-configs-shCGf-89.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BtrAR-G0.js → use-infinite-scroll-BQbD3RgJ.js} +1 -1
- package/dist/client/assets/{use-join-requests-C5PYC5O7.js → use-join-requests-Eybe4FCk.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CqSXfDuC.js → use-mcp-auth-status-B3eaajte.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DsGe28fL.js → use-mcp-client-B2w_Vv7G.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CKYOWKm4.js → use-mcp-tools-CpiBQMkC.js} +1 -1
- package/dist/client/assets/{use-members-DmcMStkp.js → use-members-1iyOisn8.js} +1 -1
- package/dist/client/assets/{use-mobile-Fy04CvB1.js → use-mobile-CEeeXHm_.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-ChK8XZgk.js → use-navigate-to-agent-DtRj8Nu_.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DWjjH9tE.js → use-org-auth-client-Bcl40eqI.js} +1 -1
- package/dist/client/assets/{use-org-sso-BPVS9mge.js → use-org-sso-CM7UG764.js} +1 -1
- package/dist/client/assets/{use-organization-roles-SLqFRSqw.js → use-organization-roles-D5PTbPg1.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BZXqOB8A.js → use-organization-settings-CyU2O9C4.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CZe25fCH.js → use-registry-connections-DRTunUDV.js} +1 -1
- package/dist/client/assets/{use-secrets-bg3TRPzG.js → use-secrets-DzfLLYjI.js} +1 -1
- package/dist/client/assets/{use-status-sounds-bWBSm9U2.js → use-status-sounds-BsT1VQN-.js} +1 -1
- package/dist/client/assets/{use-tags-CAuhxiJo.js → use-tags-B4S441L8.js} +1 -1
- package/dist/client/assets/{use-view-mode-C0jrsZRt.js → use-view-mode-CHvTaXmO.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BmVj-UAd.js → use-virtual-mcp-DmnaO1IL.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ddyR5cpH.js +1 -0
- package/dist/client/assets/{useQueries-VBPdYlce.js → useQueries-D3Lp43ym.js} +1 -1
- package/dist/client/assets/{useRouterState-CIal-NIB.js → useRouterState-C3P1iOeR.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D4QmwKBY.js +1 -0
- package/dist/client/assets/{users-OTlsCOkv.js → users-jpxk8SpM.js} +1 -1
- package/dist/client/assets/{variant-calendar-KVnOvmDJ.js → variant-calendar-DLLlNEC5.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-kxFvMgL6.js → view-mode-toggle-mSOu7veP.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/project-app-view-B1Fm6vhL.js +0 -1
- package/dist/client/assets/record-editor-Cfk4BC9N.js +0 -1
- package/dist/client/assets/registry-DMJUy1tJ.js +0 -2
- package/dist/client/assets/store-registry-DPHDPP76.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DtYcV9jc.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D4g2oYT_.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import{G as Pa,r as v,c as L,x as Fa,K as ve,F as _e,o as En,e as Tt,n as lt,ax as Se,ag as Ut,a as Ua,t as At,a0 as qa,m as Z,j as d,b as ce,aW as Vi,aX as Gi,aY as Qi,aZ as Xi,a_ as Yi,a$ as Zi,b0 as Ji,b1 as eo,b2 as to,B as Xe,E as Ha,d as no,p as ii,k as wr,u as Ka,aG as Wa}from"./index-CckLDzub.js";import{g as Dt}from"./get-initials-D-f_fDFw.js";import{A as Nt}from"./avatar-BCLsXL4H.js";import{aC as ss,af as Va,ag as Ga,ai as Qa,a6 as Xa,aD as Ya,B as Za,p as Ja,aE as so,X as ro,e as io,ae as el,j as oo,aF as tl,aB as Zs,as as Sr,_ as Sn,aG as nl,n as Cr,az as sl}from"./agent-icon-BCrD15Ca.js";import{i as ao}from"./SwitchHorizontal01-D1lq-Kdk.js";import{s as Jn}from"./Plus-DQSqgbXS.js";import{i as Cn}from"./X-D0Coarkj.js";import{a as wn,b as Gn,P as Qn}from"./popover-DX_G7AK7.js";import{a as jt,D as jn,b as Dn,c as Nn,d as zn,e as Ln,f as Pn,i as rl}from"./dropdown-menu-DdMA7Vq_.js";import{W as il,m as oi,S as lo,C as co,g as ol,u as al,h as ll,Q as cl,j as dl,a as ul}from"./use-mcp-client-DsGe28fL.js";import{u as fl,G as ar,a as hl}from"./github-repo-picker-CnOqewLh.js";import{b as Tr,d as jr,e as Dr,h as pl,a as gl,c as ml}from"./dialog-C9ETdGjn.js";import{b as xl,u as bl}from"./use-connection-DzkSa9xt.js";import{b as yl}from"./provision-repo-scoped-github-connection-CAXumITS.js";import{a as kl}from"./authenticate-and-persist-oauth-DNq2co04.js";import{e as vl}from"./extract-connection-data-DHczjTgR.js";import{u as uo}from"./use-members-DmcMStkp.js";import{u as In}from"./studio-tools-BB_5IEtF.js";import{t as wl,T as Sl,a as Cl,S as nt,i as ai}from"./decopilot-sse-pool-B6LhhEZg.js";import{u as Tl}from"./use-decopilot-events-Bxnrix6_.js";import{a as fo}from"./format-time-BnbuEtat.js";import{i as Ls}from"./AlertCircle-Cicq6Btx.js";import{i as _n}from"./CheckCircle-BDYEoc2A.js";import{i as jl}from"./DotsVertical-BOoWejjN.js";import{s as Dl}from"./Eye-Dq2AhBpY.js";import{u as ho,a as Nl,b as Rl}from"./use-tags-CAuhxiJo.js";import{o as El,P as qt,a as Nr,D as Il,p as _l,q as Al,S as Bt,r as Bl,T as po,F as Js,s as Kn,v as Ol,w as $l,x as go,N as Ml,k as Rr,y as zl,z as Ll,d as mo,n as Pl,A as Mt,B as Fl,G as Fn,H as Ul,I as xo,R as bo,m as yo,J as ko,K as ql,L as Hl,Q as Kl,e as Wl,u as Vl,f as Gl,j as Ql,C as vo,c as Xl}from"./calendar-hqlz1PlK.js";import{S as yn}from"./skeleton-B44NoZN3.js";import{u as Yl}from"./use-copy-HtfZJ1BU.js";import{i as Ps}from"./Check-f04bRoaY.js";import{i as wo}from"./ChevronRight-ByYfkUuJ.js";import{a as Zl}from"./Copy01-BK7unRe5.js";import{n as Jl,i as So}from"./Tool02-DA9UyLwr.js";import{n as Ss}from"./LinkExternal01-Chyou-nB.js";import{b as Co,i as To}from"./XCircle-BOvwYwxn.js";import{s as jo}from"./Trash01-gdb_rf-l.js";import{u as li,a as ec}from"./use-organization-settings-BZXqOB8A.js";import{d as Er,a as Ir,c as Pt,b as Rn,C as _r,e as Ar}from"./command-B7brqxOl.js";import{s as lr}from"./User01-CZDBfvD7.js";import{d as tc,b as nc,f as sc,g as rc,a as ic,D as oc}from"./drawer-BD7_0pOG.js";import{t as Br}from"./ChevronDown-DyPoUAwG.js";import{i as Do}from"./FilterLines-DFF1TYW3.js";import{s as ac}from"./TrendUp01-7inJIhQA.js";import{u as lc}from"./shell-layout-3vEmXYAK.js";import{b as cc}from"./hooks-DObrp1-C.js";import{f as dc}from"./tab-id-CBUh52o8.js";import{u as cr}from"./companions-core-BhrI4a_V.js";function uc(t){return!t||!t.content||t.content.length===0?!0:t.content.every(e=>e.type==="paragraph"?!e.content||e.content.length===0?!0:e.content.every(n=>n.type==="hardBreak"||n.type==="text"&&(!n.text||n.text.trim()==="")):!1)}const Ug="__home__";function Or(t,e){return Pa.chatDraft(t,e)}function fc(t){if(!t)return null;let e;try{e=JSON.parse(t)}catch{return null}if(!e||typeof e!="object"||typeof e.updatedAt!="number")return null;const n=e.tiptapDoc;return!n||typeof n!="object"||n.type!=="doc"||!Array.isArray(n.content)?null:n}function hc(t,e,n,r,s){const i=Or(e,n);if(uc(r)){t.removeItem(i);return}const o={tiptapDoc:r,updatedAt:Date.now()},a=JSON.stringify(o);try{t.setItem(i,a)}catch(l){if(pc(l)){const c=new TextEncoder().encode(a).byteLength;s?.onQuotaExceeded?.({docSizeBytes:c});return}throw l}}function qg(t,e,n){const r=Or(e,n),s=t.getItem(r),i=fc(s);return s!==null&&i===null&&t.removeItem(r),i}function Hg(t,e,n){t.removeItem(Or(e,n))}function pc(t){if(!t||typeof t!="object")return!1;const e=t.name;return e==="QuotaExceededError"||e==="NS_ERROR_DOM_QUOTA_REACHED"}var gc=El;function mc(t){var e;const{char:n,allowSpaces:r,allowToIncludeChar:s,allowedPrefixes:i,startOfLine:o,$position:a}=t,l=r&&!s,c=Al(n),f=new RegExp(`\\s${c}$`),u=o?"^":"",h=s?"":c,p=l?new RegExp(`${u}${c}.*?(?=\\s${h}|$)`,"gm"):new RegExp(`${u}(?:^)?${c}[^\\s${h}]*`,"gm"),m=((e=a.nodeBefore)==null?void 0:e.isText)&&a.nodeBefore.text;if(!m)return null;const y=a.pos-m.length,x=Array.from(m.matchAll(p)).pop();if(!x||x.input===void 0||x.index===void 0)return null;const g=x.input.slice(Math.max(0,x.index-1),x.index),b=new RegExp(`^[${i?.join("")}\0]?$`).test(g);if(i!==null&&!b)return null;const k=y+x.index;let w=k+x[0].length;return l&&f.test(m.slice(w-1,w+1))&&(x[0]+=" ",w+=1),k<a.pos&&w>=a.pos?{range:{from:k,to:w},query:x[0].slice(n.length),text:x[0]}:null}var xc=new qt("suggestion");function bc({pluginKey:t=xc,editor:e,char:n="@",allowSpaces:r=!1,allowToIncludeChar:s=!1,allowedPrefixes:i=[" "],startOfLine:o=!1,decorationTag:a="span",decorationClass:l="suggestion",decorationContent:c="",decorationEmptyClass:f="is-empty",command:u=()=>null,items:h=()=>[],render:p=()=>({}),allow:m=()=>!0,findSuggestionMatch:y=mc,shouldShow:x}){let g;const b=p?.(),k=()=>{const S=e.state.selection.$anchor.pos,T=e.view.coordsAtPos(S),{top:N,right:R,bottom:D,left:E}=T;try{return new DOMRect(E,N,R-E,D-N)}catch{return null}},w=(S,T)=>T?()=>{const N=t.getState(e.state),R=N?.decorationId,D=S.dom.querySelector(`[data-decoration-id="${R}"]`);return D?.getBoundingClientRect()||null}:k;function C(S,T){var N;try{const D=t.getState(S.state),E=D?.decorationId?S.dom.querySelector(`[data-decoration-id="${D.decorationId}"]`):null,M={editor:e,range:D?.range||{from:0,to:0},query:D?.query||null,text:D?.text||null,items:[],command:A=>u({editor:e,range:D?.range||{from:0,to:0},props:A}),decorationNode:E,clientRect:w(S,E)};(N=b?.onExit)==null||N.call(b,M)}catch{}const R=S.state.tr.setMeta(T,{exit:!0});S.dispatch(R)}const j=new Nr({key:t,view(){return{update:async(S,T)=>{var N,R,D,E,M,A,U;const I=(N=this.key)==null?void 0:N.getState(T),B=(R=this.key)==null?void 0:R.getState(S.state),O=I.active&&B.active&&I.range.from!==B.range.from,K=!I.active&&B.active,Y=I.active&&!B.active,P=!K&&!Y&&I.query!==B.query,q=K||O&&P,Q=P||O,G=Y||O&&P;if(!q&&!Q&&!G)return;const ee=G&&!q?I:B,W=S.dom.querySelector(`[data-decoration-id="${ee.decorationId}"]`);g={editor:e,range:ee.range,query:ee.query,text:ee.text,items:[],command:ne=>u({editor:e,range:ee.range,props:ne}),decorationNode:W,clientRect:w(S,W)},q&&((D=b?.onBeforeStart)==null||D.call(b,g)),Q&&((E=b?.onBeforeUpdate)==null||E.call(b,g)),(Q||q)&&(g.items=await h({editor:e,query:ee.query})),G&&((M=b?.onExit)==null||M.call(b,g)),Q&&((A=b?.onUpdate)==null||A.call(b,g)),q&&((U=b?.onStart)==null||U.call(b,g))},destroy:()=>{var S;g&&((S=b?.onExit)==null||S.call(b,g))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(S,T,N,R){const{isEditable:D}=e,{composing:E}=e.view,{selection:M}=S,{empty:A,from:U}=M,I={...T},B=S.getMeta(t);if(B&&B.exit)return I.active=!1,I.decorationId=null,I.range={from:0,to:0},I.query=null,I.text=null,I;if(I.composing=E,D&&(A||e.view.composing)){(U<T.range.from||U>T.range.to)&&!E&&!T.composing&&(I.active=!1);const O=y({char:n,allowSpaces:r,allowToIncludeChar:s,allowedPrefixes:i,startOfLine:o,$position:M.$from}),K=`id_${Math.floor(Math.random()*4294967295)}`;O&&m({editor:e,state:R,range:O.range,isActive:T.active})&&(!x||x({editor:e,range:O.range,query:O.query,text:O.text,transaction:S}))?(I.active=!0,I.decorationId=T.decorationId?T.decorationId:K,I.range=O.range,I.query=O.query,I.text=O.text):I.active=!1}else I.active=!1;return I.active||(I.decorationId=null,I.range={from:0,to:0},I.query=null,I.text=null),I}},props:{handleKeyDown(S,T){var N,R,D,E;const{active:M,range:A}=j.getState(S.state);if(!M)return!1;if(T.key==="Escape"||T.key==="Esc"){const I=j.getState(S.state),B=(N=g?.decorationNode)!=null?N:null,O=B??(I?.decorationId?S.dom.querySelector(`[data-decoration-id="${I.decorationId}"]`):null);if(((R=b?.onKeyDown)==null?void 0:R.call(b,{view:S,event:T,range:I.range}))||!1)return!0;const Y={editor:e,range:I.range,query:I.query,text:I.text,items:[],command:P=>u({editor:e,range:I.range,props:P}),decorationNode:O,clientRect:O?()=>O.getBoundingClientRect()||null:null};return(D=b?.onExit)==null||D.call(b,Y),C(S,t),!0}return((E=b?.onKeyDown)==null?void 0:E.call(b,{view:S,event:T,range:A}))||!1},decorations(S){const{active:T,range:N,decorationId:R,query:D}=j.getState(S);if(!T)return null;const E=!D?.length,M=[l];return E&&M.push(f),Il.create(S.doc,[_l.inline(N.from,N.to,{nodeName:a,class:M.join(" "),"data-decoration-id":R,"data-decoration-content":c})])}}});return j}function yc(t){const e=L.c(24),{editor:n,query:r,items:s,onSelect:i,onClose:o}=t,[a,l]=v.useState(0),c=v.useRef(s),f=v.useRef(a),u=v.useRef(i),h=v.useRef(o),p=v.useDeferredValue(r);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{l(0)},e[0]=m):m=e[0];let y;e[1]!==p?(y=[p],e[1]=p,e[2]=y):y=e[2],v.useEffect(m,y);let x,g;e[3]!==s.length||e[4]!==a?(x=()=>{a>=s.length&&s.length>0&&l(0)},g=[s.length,a],e[3]=s.length,e[4]=a,e[5]=x,e[6]=g):(x=e[5],g=e[6]),v.useEffect(x,g);let b,k;e[7]!==s?(b=()=>{c.current=s},k=[s],e[7]=s,e[8]=b,e[9]=k):(b=e[8],k=e[9]),v.useEffect(b,k);let w,C;e[10]!==a?(w=()=>{f.current=a},C=[a],e[10]=a,e[11]=w,e[12]=C):(w=e[11],C=e[12]),v.useEffect(w,C);let j,S;e[13]!==i?(S=()=>{u.current=i},j=[i],e[13]=i,e[14]=j,e[15]=S):(j=e[14],S=e[15]),v.useEffect(S,j);let T,N;e[16]!==o?(T=()=>{h.current=o},N=[o],e[16]=o,e[17]=T,e[18]=N):(T=e[17],N=e[18]),v.useEffect(T,N);let R,D;e[19]!==n?(R=()=>{if(n?.isDestroyed)return;let A;try{A=n.view.dom}catch{return}if(!A)return;const U=B=>{const O=c.current;if(!O.length)return!1;const K=()=>l(P=>(P+1)%O.length),Y=()=>l(P=>(P-1+O.length)%O.length);switch(B.key){case"ArrowUp":return B.preventDefault(),Y(),!0;case"ArrowDown":return B.preventDefault(),K(),!0;case"Tab":return B.preventDefault(),B.shiftKey?Y():K(),!0;case"Home":return B.preventDefault(),l(0),!0;case"End":return B.preventDefault(),l(O.length-1),!0;case"Enter":{if(B.isComposing)return!1;B.preventDefault();const P=f.current;return P!==-1&&O[P]&&u.current?.(O[P],P),!0}case"Escape":return B.preventDefault(),h.current?.(),!0;default:return!1}},I=B=>{U(B)};return A.addEventListener("keydown",I,!0),()=>{A?.removeEventListener("keydown",I,!0)}},D=[n],e[19]=n,e[20]=R,e[21]=D):(R=e[20],D=e[21]),v.useEffect(R,D);const E=s.length?a:void 0;let M;return e[22]!==E?(M={selectedIndex:E,setSelectedIndex:l},e[22]=E,e[23]=M):M=e[23],M}function kc(t,e){switch(e.type){case"SET_SELECTED_ITEM":return{...t,selectedItem:e.payload};case"ON_START":return{...t,open:!0,selectedItem:null,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_UPDATE":return{...t,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_EXIT":return{open:!1,element:null,query:"",range:null,selectedItem:null};default:return t}}const vc=v.createContext(void 0);function wc(){const t=v.useContext(vc);if(!t)throw new Error("useSuggestionContext must be used within a SuggestionContext.Provider");return t}function Kg(t){const e=L.c(16),{editor:n,char:r,pluginKey:s,allow:i,onOpenChange:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={open:!1,element:null,query:"",range:null,selectedItem:null},e[0]=a):a=e[0];const[l,c]=v.useReducer(kc,a);let f;e[1]!==o?(f=y=>{o?.(y)},e[1]=o,e[2]=f):f=e[2];const u=v.useEffectEvent(f);let h;e[3]!==r||e[4]!==i||e[5]!==n||e[6]!==u||e[7]!==s?(h=()=>{if(n?.isDestroyed)return;const y=s instanceof qt?s:new qt(s);n.state.plugins.find(b=>b.spec.key===y)&&n.unregisterPlugin(y);const g=bc({pluginKey:y,editor:n,char:r,allow(b){const k=n.state.doc.resolve(b.range.from);for(let w=k.depth;w>0;w--)if(k.node(w).type.name==="image")return!1;return!(i&&!i(b))},command(){},render:()=>({onStart:b=>{c({type:"ON_START",payload:{element:b.decorationNode??null,query:b.query,range:b.range}}),u(!0)},onUpdate:b=>{c({type:"ON_UPDATE",payload:{element:b.decorationNode??null,query:b.query,range:b.range}})},onKeyDown:b=>b.event.key==="Escape"?(c({type:"ON_EXIT"}),!0):!1,onExit:()=>{c({type:"ON_EXIT"}),u(!1)}}),items:Sc});return n.registerPlugin(g),()=>{n?.isDestroyed||n.unregisterPlugin(y)}},e[3]=r,e[4]=i,e[5]=n,e[6]=u,e[7]=s,e[8]=h):h=e[8];let p;e[9]!==r||e[10]!==i||e[11]!==n||e[12]!==s?(p=[n,s,r,c,i],e[9]=r,e[10]=i,e[11]=n,e[12]=s,e[13]=p):p=e[13],v.useEffect(h,p);let m;return e[14]!==l?(m={state:l,dispatch:c},e[14]=l,e[15]=m):m=e[15],m}function Sc(){return[]}function Wg({editor:t,queryKey:e,queryFn:n,onSelect:r}){const{state:s,dispatch:i}=wc(),o=v.useDeferredValue(s.query),{data:a}=Fa({queryKey:ve.suggestionItems(e,s.open,o),queryFn:()=>s.open?n({query:o}):[]}),l=()=>{i({type:"ON_EXIT"})},c=async(u,h)=>{if(!(s.selectedItem!==null||!s.range)){i({type:"SET_SELECTED_ITEM",payload:u});try{const{view:p}=t,y=p.state.selection.$to.nodeAfter?.text?.startsWith(" "),x=s.range?{...s.range}:{from:0,to:0};y&&s.range&&(x.to+=1),await r({range:x,item:u})===!1?i({type:"SET_SELECTED_ITEM",payload:null}):l()}catch{l()}}},{selectedIndex:f}=yc({editor:t,query:o,items:a,onSelect:c,onClose:l});return{selectedItem:s.selectedItem,items:a,selectedIndex:f,close:l,onSelect:c}}function Vg(t){return t.contentHash??`${t.size}-${t.updatedAt}`}function pt(t,e,n,r){const s=new URLSearchParams(r).toString();return`/api/${encodeURIComponent(t)}/fs/${encodeURIComponent(e)}/${n}${s?`?${s}`:""}`}async function Ye(t,e,n){const r=await fetch(t,e);if(r.ok||n?.allow404&&r.status===404)return r;let s="";try{s=(await r.json()).error??""}catch{}throw new Error(s||`HTTP ${r.status}`)}function Gg(t,e){const n=L.c(15),{org:r}=_e();let s;n[0]!==r.id||n[1]!==e||n[2]!==t?(s=ve.orgFsList(r.id,t,e),n[0]=r.id,n[1]=e,n[2]=t,n[3]=s):s=n[3];let i;n[4]!==r.id||n[5]!==t?(i=(l,c)=>c?.queryKey[1]===r.id&&c.queryKey[2]===t?l:void 0,n[4]=r.id,n[5]=t,n[6]=i):i=n[6];let o;n[7]!==r.slug||n[8]!==e||n[9]!==t?(o=async()=>(await(await Ye(pt(r.slug,t,"list",{path:e}))).json()).entries.toSorted(Cc),n[7]=r.slug,n[8]=e,n[9]=t,n[10]=o):o=n[10];let a;return n[11]!==s||n[12]!==i||n[13]!==o?(a={queryKey:s,placeholderData:i,queryFn:o},n[11]=s,n[12]=i,n[13]=o,n[14]=a):a=n[14],lt(a)}function Cc(t,e){return t.kind!==e.kind?t.kind==="dir"?-1:1:t.path.localeCompare(e.path)}function Qg(t,e,n){const r=L.c(15),{org:s}=_e();let i;r[0]!==s.id||r[1]!==e||r[2]!==t?(i=ve.orgFsStat(s.id,t??"",e),r[0]=s.id,r[1]=e,r[2]=t,r[3]=i):i=r[3];const o=t!==null;let a;r[4]!==n?(a=n?.refetchIntervalWhenAbsent?f=>f.state.data?!1:n.refetchIntervalWhenAbsent??!1:void 0,r[4]=n,r[5]=a):a=r[5];let l;r[6]!==s.slug||r[7]!==e||r[8]!==t?(l=async()=>{const f=await Ye(pt(s.slug,t??"","stat",{path:e}),void 0,{allow404:!0});return f.status===404?null:(await f.json()).entry},r[6]=s.slug,r[7]=e,r[8]=t,r[9]=l):l=r[9];let c;return r[10]!==i||r[11]!==o||r[12]!==a||r[13]!==l?(c={queryKey:i,enabled:o,refetchInterval:a,queryFn:l},r[10]=i,r[11]=o,r[12]=a,r[13]=l,r[14]=c):c=r[14],lt(c)}function Xg(t){const e=L.c(9),{org:n}=_e();let r;e[0]!==n.id||e[1]!==t?(r=ve.orgFsUsage(n.id,t),e[0]=n.id,e[1]=t,e[2]=r):r=e[2];let s;e[3]!==n.slug||e[4]!==t?(s=async()=>await(await Ye(pt(n.slug,t,"usage"))).json(),e[3]=n.slug,e[4]=t,e[5]=s):s=e[5];let i;return e[6]!==r||e[7]!==s?(i={queryKey:r,queryFn:s},e[6]=r,e[7]=s,e[8]=i):i=e[8],lt(i)}function Yg(t,e){const n=L.c(9),r=t===void 0?60:t,{org:s}=_e();let i;n[0]!==s.id?(i=ve.orgFsRecent(s.id),n[0]=s.id,n[1]=i):i=n[1];const o=e?.enabled;let a;n[2]!==r||n[3]!==s.slug?(a=async()=>(await(await Ye(`/api/${encodeURIComponent(s.slug)}/fs/recent?limit=${r}`)).json()).entries,n[2]=r,n[3]=s.slug,n[4]=a):a=n[4];let l;return n[5]!==i||n[6]!==o||n[7]!==a?(l={queryKey:i,enabled:o,queryFn:a},n[5]=i,n[6]=o,n[7]=a,n[8]=l):l=n[8],lt(l)}const Tc=50;function Zg(t,e){const n=L.c(16),{org:r}=_e();let s;n[0]!==r.id||n[1]!==t||n[2]!==e?.prefix||n[3]!==e?.volume?(s=ve.orgFsSearch(r.id,t,e?.volume??"",e?.prefix??""),n[0]=r.id,n[1]=t,n[2]=e?.prefix,n[3]=e?.volume,n[4]=s):s=n[4];const i=t.length>0;let o;n[5]!==r.id?(o=(c,f)=>f?.queryKey[1]===r.id?c:void 0,n[5]=r.id,n[6]=o):o=n[6];let a;n[7]!==r.slug||n[8]!==t||n[9]!==e?(a=async()=>{const c=new URLSearchParams({q:t,limit:String(Tc)});return e&&(c.set("volume",e.volume),e.prefix&&c.set("prefix",e.prefix)),(await(await Ye(`/api/${encodeURIComponent(r.slug)}/fs/search?${c}`)).json()).entries},n[7]=r.slug,n[8]=t,n[9]=e,n[10]=a):a=n[10];let l;return n[11]!==s||n[12]!==i||n[13]!==o||n[14]!==a?(l={queryKey:s,enabled:i,placeholderData:o,queryFn:a},n[11]=s,n[12]=i,n[13]=o,n[14]=a,n[15]=l):l=n[15],lt(l)}function Jg(t){const e=L.c(8),{org:n}=_e();let r;e[0]!==n.id?(r=ve.orgFsSkills(n.id),e[0]=n.id,e[1]=r):r=e[1];const s=t?.enabled;let i;e[2]!==n.slug?(i=async()=>{const a=await Ye(`/api/${encodeURIComponent(n.slug)}/fs/skills`),{skills:l}=await a.json();return l.map(jc)},e[2]=n.slug,e[3]=i):i=e[3];let o;return e[4]!==r||e[5]!==s||e[6]!==i?(o={queryKey:r,enabled:s,queryFn:i},e[4]=r,e[5]=s,e[6]=i,e[7]=o):o=e[7],lt(o)}function jc(t){return{volume:t.volume,path:t.path}}async function em(t){const e=await Ye(`/api/${encodeURIComponent(t)}/fs/skills`),{skills:n}=await e.json();return n}async function Dc(t,e,n){return(await Ye(pt(t,e,"read",{path:n}))).text()}const Nc=new Set(["md","mdx","markdown","txt","text"]),Rc=25,Ec=64*1024,Ic=256*1024,_c=4;function Ac(t){const e=t.lastIndexOf(".");return e===-1?!1:Nc.has(t.slice(e+1).toLowerCase())}async function tm(t,e,n){const r=n?`${n}/`:"",s=u=>u.startsWith(r)?u.slice(r.length):u,i=[],o=[],a=[{path:n,depth:0}];for(;a.length>0;){const u=a.shift();if(!u)break;let h;try{h=(await(await Ye(pt(t,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const p of[...h].sort((m,y)=>m.path.localeCompare(y.path))){if(p.kind==="dir"){u.depth<_c&&a.push({path:p.path,depth:u.depth+1});continue}Ac(p.path)&&p.size<=Ec&&i.length<Rc?i.push(p.path):o.push(s(p.path))}}const l=await Promise.all(i.map(u=>Dc(t,e,u).catch(()=>null))),c=[];let f=0;return i.forEach((u,h)=>{const p=l[h];if(p==null||f+p.length>Ic){o.push(s(u));return}f+=p.length,c.push({relPath:s(u),content:p})}),c.sort((u,h)=>u.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:u.relPath.localeCompare(h.relPath)),o.sort(),{files:c,omittedPaths:o}}function nm(){const t=L.c(7),{org:e}=_e();let n;t[0]!==e.id?(n=ve.orgFsPublicSets(e.id),t[0]=e.id,t[1]=n):n=t[1];let r;t[2]!==e.slug?(r=async()=>(await(await Ye(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,t[2]=e.slug,t[3]=r):r=t[3];let s;return t[4]!==n||t[5]!==r?(s={queryKey:n,staleTime:3e5,queryFn:r},t[4]=n,t[5]=r,t[6]=s):s=t[6],lt(s)}function Bc(t){const e=L.c(3),{org:n}=_e();let r;return e[0]!==n.slug||e[1]!==t?(r=s=>pt(n.slug,t,"read",{path:s}),e[0]=n.slug,e[1]=t,e[2]=r):r=e[2],r}function sm(){const t=L.c(2),{org:e}=_e();let n;return t[0]!==e.slug?(n=(r,s)=>pt(e.slug,r,"read",{path:s}),t[0]=e.slug,t[1]=n):n=t[1],n}function rm(t){const e=L.c(3),{org:n}=_e();let r;return e[0]!==n||e[1]!==t?(r={mutationFn:async s=>(await(await Ye(pt(n.slug,t,"file",{path:s.path}),{method:"PUT",headers:{"content-type":s.contentType??"text/html; charset=utf-8"},body:s.body})).json()).entry},e[0]=n,e[1]=t,e[2]=r):r=e[2],Tt(r)}function im(t){const e=L.c(18),{org:n}=_e(),r=En();let s;e[0]!==n||e[1]!==t?(s=async c=>(await(await Ye(pt(n.slug,t,"public",{path:c.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:c.mode,password:c.password})})).json()).entry,e[0]=n,e[1]=t,e[2]=s):s=e[2];let i;e[3]!==n||e[4]!==r||e[5]!==t?(i=async c=>{const f=ve.orgFsStat(n.id,t,c.path);await r.cancelQueries({queryKey:f});const u=r.getQueryData(f),h=c.mode!=="private";return r.setQueryData(f,p=>p&&{...p,readPublic:h,effectivePublic:h,shareMode:c.mode}),{key:f,previous:u}},e[3]=n,e[4]=r,e[5]=t,e[6]=i):i=e[6];let o;e[7]!==r?(o=(c,f,u)=>{u&&r.setQueryData(u.key,u.previous)},e[7]=r,e[8]=o):o=e[8];let a;e[9]!==n||e[10]!==r||e[11]!==t?(a=(c,f,u)=>{r.invalidateQueries({queryKey:ve.orgFsStat(n.id,t,u.path)}),r.invalidateQueries({queryKey:ve.orgFsVolume(n.id,t)}),r.invalidateQueries({queryKey:ve.orgFsRecent(n.id)}),r.invalidateQueries({queryKey:ve.orgFsSearchRoot(n.id)})},e[9]=n,e[10]=r,e[11]=t,e[12]=a):a=e[12];let l;return e[13]!==s||e[14]!==i||e[15]!==o||e[16]!==a?(l={mutationFn:s,onMutate:i,onError:o,onSettled:a},e[13]=s,e[14]=i,e[15]=o,e[16]=a,e[17]=l):l=e[17],Tt(l)}function Oc(t){const e=L.c(33),{org:n}=_e(),r=En();let s;e[0]!==n||e[1]!==r||e[2]!==t?(s=()=>{r.invalidateQueries({queryKey:ve.orgFsVolume(n.id,t)}),r.invalidateQueries({queryKey:ve.orgFsRecent(n.id)}),r.invalidateQueries({queryKey:ve.orgFsSearchRoot(n.id)})},e[0]=n,e[1]=r,e[2]=t,e[3]=s):s=e[3];const i=s;let o;e[4]!==n||e[5]!==t?(o=async k=>{const C=(await Promise.allSettled(k.files.map(j=>{const S=k.dir?`${k.dir}/${j.name}`:j.name;return Ye(pt(n.slug,t,"file",{path:S}),{method:"PUT",headers:{"content-type":j.type||"application/octet-stream"},body:j})}))).find($c);if(C)throw C.reason},e[4]=n,e[5]=t,e[6]=o):o=e[6];let a;e[7]!==i||e[8]!==o?(a={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=a):a=e[9];const l=Tt(a);let c;e[10]!==n||e[11]!==t?(c=async k=>{await Ye(pt(n.slug,t,"dir",{path:k}),{method:"POST"})},e[10]=n,e[11]=t,e[12]=c):c=e[12];let f;e[13]!==i||e[14]!==c?(f={mutationFn:c,onSuccess:i},e[13]=i,e[14]=c,e[15]=f):f=e[15];const u=Tt(f);let h;e[16]!==n||e[17]!==t?(h=async k=>{await Ye(pt(n.slug,t,"file",{path:k}),{method:"DELETE"})},e[16]=n,e[17]=t,e[18]=h):h=e[18];let p;e[19]!==i||e[20]!==h?(p={mutationFn:h,onSuccess:i},e[19]=i,e[20]=h,e[21]=p):p=e[21];const m=Tt(p);let y;e[22]!==n||e[23]!==t?(y=async k=>{await Ye(pt(n.slug,t,"move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(k)})},e[22]=n,e[23]=t,e[24]=y):y=e[24];let x;e[25]!==i||e[26]!==y?(x={mutationFn:y,onSuccess:i},e[25]=i,e[26]=y,e[27]=x):x=e[27];const g=Tt(x);let b;return e[28]!==u||e[29]!==g||e[30]!==m||e[31]!==l?(b={upload:l,mkdir:u,remove:m,move:g},e[28]=u,e[29]=g,e[30]=m,e[31]=l,e[32]=b):b=e[32],b}function $c(t){return t.status==="rejected"}function Mc(t){return t?t.run_in_progress?"generating":t.scanned_at?"ready":"none":"none"}const zc=2e4;function Lc(t){if(typeof t!="string"||!t)return null;try{return new URL(t).hostname||null}catch{return null}}function Pc(){const t=L.c(17),{org:e}=_e(),n=il.COMMERCE_DISCOVERY(e.id);let r;t[0]!==e.id||t[1]!==e.slug?(r=oi({connectionId:lo,orgId:e.id,orgSlug:e.slug}),t[0]=e.id,t[1]=e.slug,t[2]=r):r=t[2];const{data:s}=lt(r),o=lt({queryKey:ve.commerceDiscoveryConnection(e.id,n),enabled:!!s,retry:!1,staleTime:6e4,queryFn:async()=>{if(!s)throw new Error("selfClient not ready");const k=await s.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:n}});return cr(k)}}).data?.item??null,{data:a}=lt({...oi({connectionId:n,orgId:e.id,orgSlug:e.slug}),enabled:!!o}),l=ve.commerceDiscoveryDiagnostic(e.id,n),c=!!a;let f;t[3]!==a?(f=async()=>{if(!a)throw new Error("cdClient not ready");const k=await a.callTool({name:co,arguments:{}});return cr(k).diagnostic??null},t[3]=a,t[4]=f):f=t[4];let u;t[5]!==l||t[6]!==c||t[7]!==f?(u={queryKey:l,enabled:c,retry:1,refetchInterval:Fc,queryFn:f},t[5]=l,t[6]=c,t[7]=f,t[8]=u):u=t[8];const h=lt(u),p=h.data??null,m=h.isSuccess,y=o?.metadata?.siteUrl;let x;t[9]!==y?(x=Lc(y),t[9]=y,t[10]=x):x=t[10];const g=a??null;let b;return t[11]!==n||t[12]!==h.isSuccess||t[13]!==p||t[14]!==x||t[15]!==g?(b={diagnostic:p,isSuccess:m,host:x,connectionId:n,cdClient:g},t[11]=n,t[12]=h.isSuccess,t[13]=p,t[14]=x,t[15]=g,t[16]=b):b=t[16],b}function Fc(t){return t.state.status!=="error"&&Mc(t.state.data)==="generating"?zc:!1}function Uc(t,e){return{to:"/$org/$taskId",params:{org:t.slug,taskId:crypto.randomUUID()},search:{virtualmcpid:ol(t.id),main:dc(e,co)}}}function qc(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return v.useMemo(()=>r=>{e.forEach(s=>s(r))},e)}const Fs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function An(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function $r(t){return"nodeType"in t}function rt(t){var e,n;return t?An(t)?t:$r(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}function Mr(t){const{Document:e}=rt(t);return t instanceof e}function rs(t){return An(t)?!1:t instanceof rt(t).HTMLElement}function No(t){return t instanceof rt(t).SVGElement}function Bn(t){return t?An(t)?t.document:$r(t)?Mr(t)?t:rs(t)||No(t)?t.ownerDocument:document:document:document}const Rt=Fs?v.useLayoutEffect:v.useEffect;function Us(t){const e=v.useRef(t);return Rt(()=>{e.current=t}),v.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return e.current==null?void 0:e.current(...r)},[])}function Hc(){const t=v.useRef(null),e=v.useCallback((r,s)=>{t.current=setInterval(r,s)},[]),n=v.useCallback(()=>{t.current!==null&&(clearInterval(t.current),t.current=null)},[]);return[e,n]}function es(t,e){e===void 0&&(e=[t]);const n=v.useRef(t);return Rt(()=>{n.current!==t&&(n.current=t)},e),n}function is(t,e){const n=v.useRef();return v.useMemo(()=>{const r=t(n.current);return n.current=r,r},[...e])}function js(t){const e=Us(t),n=v.useRef(null),r=v.useCallback(s=>{s!==n.current&&e?.(s,n.current),n.current=s},[]);return[n,r]}function Ds(t){const e=v.useRef();return v.useEffect(()=>{e.current=t},[t]),e.current}let er={};function os(t,e){return v.useMemo(()=>{if(e)return e;const n=er[t]==null?0:er[t]+1;return er[t]=n,t+"-"+n},[t,e])}function Ro(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return r.reduce((i,o)=>{const a=Object.entries(o);for(const[l,c]of a){const f=i[l];f!=null&&(i[l]=f+t*c)}return i},{...e})}}const Tn=Ro(1),ts=Ro(-1);function Kc(t){return"clientX"in t&&"clientY"in t}function qs(t){if(!t)return!1;const{KeyboardEvent:e}=rt(t.target);return e&&t instanceof e}function Wc(t){if(!t)return!1;const{TouchEvent:e}=rt(t.target);return e&&t instanceof e}function Ns(t){if(Wc(t)){if(t.touches&&t.touches.length){const{clientX:e,clientY:n}=t.touches[0];return{x:e,y:n}}else if(t.changedTouches&&t.changedTouches.length){const{clientX:e,clientY:n}=t.changedTouches[0];return{x:e,y:n}}}return Kc(t)?{x:t.clientX,y:t.clientY}:null}const Ht=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:n}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:n}=t;return"scaleX("+e+") scaleY("+n+")"}},Transform:{toString(t){if(t)return[Ht.Translate.toString(t),Ht.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:n,easing:r}=t;return e+" "+n+"ms "+r}}}),ci="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Vc(t){return t.matches(ci)?t:t.querySelector(ci)}const Gc={display:"none"};function Qc(t){let{id:e,value:n}=t;return Se.createElement("div",{id:e,style:Gc},n)}function Xc(t){let{id:e,announcement:n,ariaLiveType:r="assertive"}=t;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Se.createElement("div",{id:e,style:s,role:"status","aria-live":r,"aria-atomic":!0},n)}function Yc(){const[t,e]=v.useState("");return{announce:v.useCallback(r=>{r!=null&&e(r)},[]),announcement:t}}const Eo=v.createContext(null);function Zc(t){const e=v.useContext(Eo);v.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(t)},[t,e])}function Jc(){const[t]=v.useState(()=>new Set),e=v.useCallback(r=>(t.add(r),()=>t.delete(r)),[t]);return[v.useCallback(r=>{let{type:s,event:i}=r;t.forEach(o=>{var a;return(a=o[s])==null?void 0:a.call(o,i)})},[t]),e]}const ed={draggable:`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BTg6jfKl.js","assets/index-Ct5z4bLK.js","assets/index-DsfuG9Bb.css","assets/ArrowUp-CpEPYAOf.js","assets/chat-context-CklmWc6u.js","assets/tab-id-BhaxduZ_.js","assets/dialog-Y2c_xFO9.js","assets/X-B6K21IFp.js","assets/Check-BwHliFRj.js","assets/Copy01-BlkL52M8.js","assets/hooks-VEM1hLto.js","assets/use-mcp-client-B2w_Vv7G.js","assets/auth-Q0kADPVB.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/decopilot-sse-pool-C9wT7nFZ.js","assets/use-is-desktop-app-BNujXJc_.js","assets/use-virtual-mcp-DmnaO1IL.js","assets/use-ai-providers-BWHJhqYW.js","assets/studio-tools-D0M8AyaL.js","assets/use-decopilot-events-DhC1PW_6.js","assets/use-organization-settings-CyU2O9C4.js","assets/automation-runs-D7I8QaWS.js","assets/select-Ctd_ZZ0k.js","assets/tooltip-DcvI3Qmq.js","assets/ChevronDown-CKkO8sAW.js","assets/ChevronUp-C1afs1xa.js","assets/useInfiniteQuery-ddyR5cpH.js","assets/use-infinite-scroll-BQbD3RgJ.js","assets/use-connection-COSULjHn.js","assets/card-BkMfo3-L.js","assets/sidebar-CAZ2FyoU.js","assets/LayoutLeft-DrcKo4sm.js","assets/use-mobile-CEeeXHm_.js","assets/table-DrUjEYlL.js","assets/empty-state-BYwKHc7l.js","assets/use-members-1iyOisn8.js","assets/use-org-auth-client-Bcl40eqI.js","assets/use-clock-tick-BWJoXcll.js","assets/AlertCircle-DdtdV7M4.js","assets/CheckCircle-CTIPijUa.js","assets/DotsVertical-BFrinGvO.js","assets/agent-icon-Dcc64Amv.js","assets/Tool01-Dn1kpGdl.js","assets/Settings02-DerOgVc2.js","assets/Tool02-DZ2vEkP4.js","assets/XCircle-Df3ZOY6R.js","assets/ArrowUpRight-CHW6cpx0.js","assets/TrendUp01-DwZeXU3a.js","assets/ZapSquare-CPOIzhEC.js","assets/Users03-CI91FsuH.js","assets/ChevronRight-B8f4wyDl.js","assets/Stars02-BG4AWaaX.js","assets/CpuChip01-Cs3gfrhP.js","assets/Eye-CQsjSohp.js","assets/FilterLines-oPoBPuqv.js","assets/Star01-CH5MEDQn.js","assets/Palette-CpgDl594.js","assets/SwitchHorizontal01-B4ZgCyE5.js","assets/HardDrive-CpV48xOn.js","assets/Key01-CIup5BVm.js","assets/LinkExternal01-CgpMIzO0.js","assets/LogOut01-uhMfgP0K.js","assets/Monitor01-BT8WHZmo.js","assets/Sun-DPokUB7F.js","assets/Play-BBCpB_Tz.js","assets/Plus-DO9NbOAK.js","assets/SearchLg-Df6klb6Y.js","assets/SearchMd-GYne36B-.js","assets/Shield01-gMQ1chGf.js","assets/Stars01-DAx8aZEr.js","assets/Trash01-BOMqKZ1K.js","assets/Upload01-S_KetqzT.js","assets/User01-HXIFsqtn.js","assets/Users01-ByuTyOLr.js","assets/XClose-DBug4o8k.js","assets/Zap-C9gRaG5K.js","assets/use-automations-CZHCGQrS.js","assets/useSuspenseInfiniteQuery-D4QmwKBY.js","assets/avatar-3ae7eb9x.js","assets/format-time-BnbuEtat.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/use-copy-DkOP7abA.js","assets/calendar-CaFuCBn0.js","assets/monaco-editor-BlUBHNk6.js","assets/spinner-BVMuKuHb.js","assets/index-DWnwwFPu.js","assets/shell-layout-1C4_PYHs.js","assets/required-auth-layout-CKzC4Wry.js","assets/use-org-sso-CM7UG764.js","assets/integration-icon-C2mjeHEI.js","assets/use-navigate-to-agent-DtRj8Nu_.js","assets/reusable-new-chat-CouMjkYR.js","assets/AreaChart-D7FaG8Lf.js","assets/form-92MvHLxT.js","assets/label-CXy-_gNr.js","assets/input-J1mhqAdN.js","assets/drawer-Dn6DCG1a.js","assets/collection-search-CgEc7JVV.js","assets/tabs-DjKkhJF-.js","assets/toggle-group-BsjhKaUR.js","assets/use-deco-credits-BHzyr0wR.js","assets/popover-CqIaLo6d.js","assets/alert-dialog-tPwVc9uJ.js","assets/toolbar-TQryde5B.js","assets/skeleton-tW3UOR15.js","assets/github-repo-picker-CgWDATG6.js","assets/use-debounced-value-DqJiqnYk.js","assets/authenticate-and-persist-oauth-Dus5ShT0.js","assets/mcp-oauth-C2w2n5sc.js","assets/use-mcp-tools-CpiBQMkC.js","assets/extract-connection-data-C2o6ZTIY.js","assets/metadata-dUsYcpuu.js","assets/provision-repo-scoped-github-connection-CAXumITS.js","assets/agent-capabilities-cXfbMfjV.js","assets/connection-card-BoLbm0Lq.js","assets/use-registry-connections-DRTunUDV.js","assets/retry-CErkP7V6.js","assets/connection-slug-eyAPH6o3.js","assets/textarea-BroNzwSJ.js","assets/connection-form-helpers-MuJLCV8m.js","assets/collection-tabs-jHD3PV9U.js","assets/badge-ClTHWVhH.js","assets/select-model-CRAkLaCL.js","assets/checkbox-BXAaMwzS.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-B_1oLymV.js","assets/dropdown-menu-hQO8uf9z.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-BsT1VQN-.js","assets/deco-site-production-url-CaKZ7xBn.js","assets/use-capability-7L6HM4-F.js","assets/pt-BR-CLy76QW2.js","assets/use-mcp-auth-status-B3eaajte.js","assets/use-debounced-autosave-Hz9sqsxr.js","assets/index-cp39w1Sm.js","assets/search-input-zDL_p_LQ.js","assets/switch-DskVyYCS.js","assets/use-secrets-DzfLLYjI.js","assets/command-DUTyl3qs.js","assets/index-C2-dhaI-.js","assets/useQueries-D3Lp43ym.js","assets/use-file-configs-shCGf-89.js","assets/automation-list-row-eD1c19d3.js","assets/get-initials-D-f_fDFw.js","assets/index-CiP0VfIv.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{G as Pa,r as v,c as L,x as Fa,K as ve,F as _e,o as En,e as Tt,n as lt,ax as Se,ag as Ut,a as Ua,t as At,a0 as qa,m as Z,j as d,b as ce,aW as Vi,aX as Gi,aY as Qi,aZ as Xi,a_ as Yi,a$ as Zi,b0 as Ji,b1 as eo,b2 as to,B as Xe,E as Ha,d as no,p as ii,k as wr,u as Ka,aG as Wa}from"./index-Ct5z4bLK.js";import{g as Dt}from"./get-initials-D-f_fDFw.js";import{A as Nt}from"./avatar-3ae7eb9x.js";import{aC as ss,af as Va,ag as Ga,ai as Qa,a6 as Xa,aD as Ya,B as Za,p as Ja,aE as so,X as ro,e as io,ae as el,j as oo,aF as tl,aB as Zs,as as Sr,_ as Sn,aG as nl,n as Cr,az as sl}from"./agent-icon-Dcc64Amv.js";import{i as ao}from"./SwitchHorizontal01-B4ZgCyE5.js";import{s as Jn}from"./Plus-DO9NbOAK.js";import{i as Cn}from"./X-B6K21IFp.js";import{a as wn,b as Gn,P as Qn}from"./popover-CqIaLo6d.js";import{a as jt,D as jn,b as Dn,c as Nn,d as zn,e as Ln,f as Pn,i as rl}from"./dropdown-menu-hQO8uf9z.js";import{W as il,m as oi,S as lo,C as co,g as ol,u as al,h as ll,Q as cl,j as dl,a as ul}from"./use-mcp-client-B2w_Vv7G.js";import{u as fl,G as ar,a as hl}from"./github-repo-picker-CgWDATG6.js";import{b as Tr,d as jr,e as Dr,h as pl,a as gl,c as ml}from"./dialog-Y2c_xFO9.js";import{b as xl,u as bl}from"./use-connection-COSULjHn.js";import{b as yl}from"./provision-repo-scoped-github-connection-CAXumITS.js";import{a as kl}from"./authenticate-and-persist-oauth-Dus5ShT0.js";import{e as vl}from"./extract-connection-data-C2o6ZTIY.js";import{u as uo}from"./use-members-1iyOisn8.js";import{u as In}from"./studio-tools-D0M8AyaL.js";import{t as wl,T as Sl,a as Cl,S as nt,i as ai}from"./decopilot-sse-pool-C9wT7nFZ.js";import{u as Tl}from"./use-decopilot-events-DhC1PW_6.js";import{a as fo}from"./format-time-BnbuEtat.js";import{i as Ls}from"./AlertCircle-DdtdV7M4.js";import{i as _n}from"./CheckCircle-CTIPijUa.js";import{i as jl}from"./DotsVertical-BFrinGvO.js";import{s as Dl}from"./Eye-CQsjSohp.js";import{u as ho,a as Nl,b as Rl}from"./use-tags-B4S441L8.js";import{o as El,P as qt,a as Nr,D as Il,p as _l,q as Al,S as Bt,r as Bl,T as po,F as Js,s as Kn,v as Ol,w as $l,x as go,N as Ml,k as Rr,y as zl,z as Ll,d as mo,n as Pl,A as Mt,B as Fl,G as Fn,H as Ul,I as xo,R as bo,m as yo,J as ko,K as ql,L as Hl,Q as Kl,e as Wl,u as Vl,f as Gl,j as Ql,C as vo,c as Xl}from"./calendar-CaFuCBn0.js";import{S as yn}from"./skeleton-tW3UOR15.js";import{u as Yl}from"./use-copy-DkOP7abA.js";import{i as Ps}from"./Check-BwHliFRj.js";import{i as wo}from"./ChevronRight-B8f4wyDl.js";import{a as Zl}from"./Copy01-BlkL52M8.js";import{n as Jl,i as So}from"./Tool02-DZ2vEkP4.js";import{n as Ss}from"./LinkExternal01-CgpMIzO0.js";import{b as Co,i as To}from"./XCircle-Df3ZOY6R.js";import{s as jo}from"./Trash01-BOMqKZ1K.js";import{u as li,a as ec}from"./use-organization-settings-CyU2O9C4.js";import{d as Er,a as Ir,c as Pt,b as Rn,C as _r,e as Ar}from"./command-DUTyl3qs.js";import{s as lr}from"./User01-HXIFsqtn.js";import{d as tc,b as nc,f as sc,g as rc,a as ic,D as oc}from"./drawer-Dn6DCG1a.js";import{t as Br}from"./ChevronDown-CKkO8sAW.js";import{i as Do}from"./FilterLines-oPoBPuqv.js";import{s as ac}from"./TrendUp01-DwZeXU3a.js";import{u as lc}from"./shell-layout-1C4_PYHs.js";import{b as cc}from"./hooks-VEM1hLto.js";import{f as dc}from"./tab-id-BhaxduZ_.js";import{u as cr}from"./companions-core-DdNaKkOK.js";function uc(t){return!t||!t.content||t.content.length===0?!0:t.content.every(e=>e.type==="paragraph"?!e.content||e.content.length===0?!0:e.content.every(n=>n.type==="hardBreak"||n.type==="text"&&(!n.text||n.text.trim()==="")):!1)}const Ug="__home__";function Or(t,e){return Pa.chatDraft(t,e)}function fc(t){if(!t)return null;let e;try{e=JSON.parse(t)}catch{return null}if(!e||typeof e!="object"||typeof e.updatedAt!="number")return null;const n=e.tiptapDoc;return!n||typeof n!="object"||n.type!=="doc"||!Array.isArray(n.content)?null:n}function hc(t,e,n,r,s){const i=Or(e,n);if(uc(r)){t.removeItem(i);return}const o={tiptapDoc:r,updatedAt:Date.now()},a=JSON.stringify(o);try{t.setItem(i,a)}catch(l){if(pc(l)){const c=new TextEncoder().encode(a).byteLength;s?.onQuotaExceeded?.({docSizeBytes:c});return}throw l}}function qg(t,e,n){const r=Or(e,n),s=t.getItem(r),i=fc(s);return s!==null&&i===null&&t.removeItem(r),i}function Hg(t,e,n){t.removeItem(Or(e,n))}function pc(t){if(!t||typeof t!="object")return!1;const e=t.name;return e==="QuotaExceededError"||e==="NS_ERROR_DOM_QUOTA_REACHED"}var gc=El;function mc(t){var e;const{char:n,allowSpaces:r,allowToIncludeChar:s,allowedPrefixes:i,startOfLine:o,$position:a}=t,l=r&&!s,c=Al(n),f=new RegExp(`\\s${c}$`),u=o?"^":"",h=s?"":c,p=l?new RegExp(`${u}${c}.*?(?=\\s${h}|$)`,"gm"):new RegExp(`${u}(?:^)?${c}[^\\s${h}]*`,"gm"),m=((e=a.nodeBefore)==null?void 0:e.isText)&&a.nodeBefore.text;if(!m)return null;const y=a.pos-m.length,x=Array.from(m.matchAll(p)).pop();if(!x||x.input===void 0||x.index===void 0)return null;const g=x.input.slice(Math.max(0,x.index-1),x.index),b=new RegExp(`^[${i?.join("")}\0]?$`).test(g);if(i!==null&&!b)return null;const k=y+x.index;let w=k+x[0].length;return l&&f.test(m.slice(w-1,w+1))&&(x[0]+=" ",w+=1),k<a.pos&&w>=a.pos?{range:{from:k,to:w},query:x[0].slice(n.length),text:x[0]}:null}var xc=new qt("suggestion");function bc({pluginKey:t=xc,editor:e,char:n="@",allowSpaces:r=!1,allowToIncludeChar:s=!1,allowedPrefixes:i=[" "],startOfLine:o=!1,decorationTag:a="span",decorationClass:l="suggestion",decorationContent:c="",decorationEmptyClass:f="is-empty",command:u=()=>null,items:h=()=>[],render:p=()=>({}),allow:m=()=>!0,findSuggestionMatch:y=mc,shouldShow:x}){let g;const b=p?.(),k=()=>{const S=e.state.selection.$anchor.pos,T=e.view.coordsAtPos(S),{top:N,right:R,bottom:D,left:E}=T;try{return new DOMRect(E,N,R-E,D-N)}catch{return null}},w=(S,T)=>T?()=>{const N=t.getState(e.state),R=N?.decorationId,D=S.dom.querySelector(`[data-decoration-id="${R}"]`);return D?.getBoundingClientRect()||null}:k;function C(S,T){var N;try{const D=t.getState(S.state),E=D?.decorationId?S.dom.querySelector(`[data-decoration-id="${D.decorationId}"]`):null,M={editor:e,range:D?.range||{from:0,to:0},query:D?.query||null,text:D?.text||null,items:[],command:A=>u({editor:e,range:D?.range||{from:0,to:0},props:A}),decorationNode:E,clientRect:w(S,E)};(N=b?.onExit)==null||N.call(b,M)}catch{}const R=S.state.tr.setMeta(T,{exit:!0});S.dispatch(R)}const j=new Nr({key:t,view(){return{update:async(S,T)=>{var N,R,D,E,M,A,U;const I=(N=this.key)==null?void 0:N.getState(T),B=(R=this.key)==null?void 0:R.getState(S.state),O=I.active&&B.active&&I.range.from!==B.range.from,K=!I.active&&B.active,Y=I.active&&!B.active,P=!K&&!Y&&I.query!==B.query,q=K||O&&P,Q=P||O,G=Y||O&&P;if(!q&&!Q&&!G)return;const ee=G&&!q?I:B,W=S.dom.querySelector(`[data-decoration-id="${ee.decorationId}"]`);g={editor:e,range:ee.range,query:ee.query,text:ee.text,items:[],command:ne=>u({editor:e,range:ee.range,props:ne}),decorationNode:W,clientRect:w(S,W)},q&&((D=b?.onBeforeStart)==null||D.call(b,g)),Q&&((E=b?.onBeforeUpdate)==null||E.call(b,g)),(Q||q)&&(g.items=await h({editor:e,query:ee.query})),G&&((M=b?.onExit)==null||M.call(b,g)),Q&&((A=b?.onUpdate)==null||A.call(b,g)),q&&((U=b?.onStart)==null||U.call(b,g))},destroy:()=>{var S;g&&((S=b?.onExit)==null||S.call(b,g))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(S,T,N,R){const{isEditable:D}=e,{composing:E}=e.view,{selection:M}=S,{empty:A,from:U}=M,I={...T},B=S.getMeta(t);if(B&&B.exit)return I.active=!1,I.decorationId=null,I.range={from:0,to:0},I.query=null,I.text=null,I;if(I.composing=E,D&&(A||e.view.composing)){(U<T.range.from||U>T.range.to)&&!E&&!T.composing&&(I.active=!1);const O=y({char:n,allowSpaces:r,allowToIncludeChar:s,allowedPrefixes:i,startOfLine:o,$position:M.$from}),K=`id_${Math.floor(Math.random()*4294967295)}`;O&&m({editor:e,state:R,range:O.range,isActive:T.active})&&(!x||x({editor:e,range:O.range,query:O.query,text:O.text,transaction:S}))?(I.active=!0,I.decorationId=T.decorationId?T.decorationId:K,I.range=O.range,I.query=O.query,I.text=O.text):I.active=!1}else I.active=!1;return I.active||(I.decorationId=null,I.range={from:0,to:0},I.query=null,I.text=null),I}},props:{handleKeyDown(S,T){var N,R,D,E;const{active:M,range:A}=j.getState(S.state);if(!M)return!1;if(T.key==="Escape"||T.key==="Esc"){const I=j.getState(S.state),B=(N=g?.decorationNode)!=null?N:null,O=B??(I?.decorationId?S.dom.querySelector(`[data-decoration-id="${I.decorationId}"]`):null);if(((R=b?.onKeyDown)==null?void 0:R.call(b,{view:S,event:T,range:I.range}))||!1)return!0;const Y={editor:e,range:I.range,query:I.query,text:I.text,items:[],command:P=>u({editor:e,range:I.range,props:P}),decorationNode:O,clientRect:O?()=>O.getBoundingClientRect()||null:null};return(D=b?.onExit)==null||D.call(b,Y),C(S,t),!0}return((E=b?.onKeyDown)==null?void 0:E.call(b,{view:S,event:T,range:A}))||!1},decorations(S){const{active:T,range:N,decorationId:R,query:D}=j.getState(S);if(!T)return null;const E=!D?.length,M=[l];return E&&M.push(f),Il.create(S.doc,[_l.inline(N.from,N.to,{nodeName:a,class:M.join(" "),"data-decoration-id":R,"data-decoration-content":c})])}}});return j}function yc(t){const e=L.c(24),{editor:n,query:r,items:s,onSelect:i,onClose:o}=t,[a,l]=v.useState(0),c=v.useRef(s),f=v.useRef(a),u=v.useRef(i),h=v.useRef(o),p=v.useDeferredValue(r);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{l(0)},e[0]=m):m=e[0];let y;e[1]!==p?(y=[p],e[1]=p,e[2]=y):y=e[2],v.useEffect(m,y);let x,g;e[3]!==s.length||e[4]!==a?(x=()=>{a>=s.length&&s.length>0&&l(0)},g=[s.length,a],e[3]=s.length,e[4]=a,e[5]=x,e[6]=g):(x=e[5],g=e[6]),v.useEffect(x,g);let b,k;e[7]!==s?(b=()=>{c.current=s},k=[s],e[7]=s,e[8]=b,e[9]=k):(b=e[8],k=e[9]),v.useEffect(b,k);let w,C;e[10]!==a?(w=()=>{f.current=a},C=[a],e[10]=a,e[11]=w,e[12]=C):(w=e[11],C=e[12]),v.useEffect(w,C);let j,S;e[13]!==i?(S=()=>{u.current=i},j=[i],e[13]=i,e[14]=j,e[15]=S):(j=e[14],S=e[15]),v.useEffect(S,j);let T,N;e[16]!==o?(T=()=>{h.current=o},N=[o],e[16]=o,e[17]=T,e[18]=N):(T=e[17],N=e[18]),v.useEffect(T,N);let R,D;e[19]!==n?(R=()=>{if(n?.isDestroyed)return;let A;try{A=n.view.dom}catch{return}if(!A)return;const U=B=>{const O=c.current;if(!O.length)return!1;const K=()=>l(P=>(P+1)%O.length),Y=()=>l(P=>(P-1+O.length)%O.length);switch(B.key){case"ArrowUp":return B.preventDefault(),Y(),!0;case"ArrowDown":return B.preventDefault(),K(),!0;case"Tab":return B.preventDefault(),B.shiftKey?Y():K(),!0;case"Home":return B.preventDefault(),l(0),!0;case"End":return B.preventDefault(),l(O.length-1),!0;case"Enter":{if(B.isComposing)return!1;B.preventDefault();const P=f.current;return P!==-1&&O[P]&&u.current?.(O[P],P),!0}case"Escape":return B.preventDefault(),h.current?.(),!0;default:return!1}},I=B=>{U(B)};return A.addEventListener("keydown",I,!0),()=>{A?.removeEventListener("keydown",I,!0)}},D=[n],e[19]=n,e[20]=R,e[21]=D):(R=e[20],D=e[21]),v.useEffect(R,D);const E=s.length?a:void 0;let M;return e[22]!==E?(M={selectedIndex:E,setSelectedIndex:l},e[22]=E,e[23]=M):M=e[23],M}function kc(t,e){switch(e.type){case"SET_SELECTED_ITEM":return{...t,selectedItem:e.payload};case"ON_START":return{...t,open:!0,selectedItem:null,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_UPDATE":return{...t,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_EXIT":return{open:!1,element:null,query:"",range:null,selectedItem:null};default:return t}}const vc=v.createContext(void 0);function wc(){const t=v.useContext(vc);if(!t)throw new Error("useSuggestionContext must be used within a SuggestionContext.Provider");return t}function Kg(t){const e=L.c(16),{editor:n,char:r,pluginKey:s,allow:i,onOpenChange:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={open:!1,element:null,query:"",range:null,selectedItem:null},e[0]=a):a=e[0];const[l,c]=v.useReducer(kc,a);let f;e[1]!==o?(f=y=>{o?.(y)},e[1]=o,e[2]=f):f=e[2];const u=v.useEffectEvent(f);let h;e[3]!==r||e[4]!==i||e[5]!==n||e[6]!==u||e[7]!==s?(h=()=>{if(n?.isDestroyed)return;const y=s instanceof qt?s:new qt(s);n.state.plugins.find(b=>b.spec.key===y)&&n.unregisterPlugin(y);const g=bc({pluginKey:y,editor:n,char:r,allow(b){const k=n.state.doc.resolve(b.range.from);for(let w=k.depth;w>0;w--)if(k.node(w).type.name==="image")return!1;return!(i&&!i(b))},command(){},render:()=>({onStart:b=>{c({type:"ON_START",payload:{element:b.decorationNode??null,query:b.query,range:b.range}}),u(!0)},onUpdate:b=>{c({type:"ON_UPDATE",payload:{element:b.decorationNode??null,query:b.query,range:b.range}})},onKeyDown:b=>b.event.key==="Escape"?(c({type:"ON_EXIT"}),!0):!1,onExit:()=>{c({type:"ON_EXIT"}),u(!1)}}),items:Sc});return n.registerPlugin(g),()=>{n?.isDestroyed||n.unregisterPlugin(y)}},e[3]=r,e[4]=i,e[5]=n,e[6]=u,e[7]=s,e[8]=h):h=e[8];let p;e[9]!==r||e[10]!==i||e[11]!==n||e[12]!==s?(p=[n,s,r,c,i],e[9]=r,e[10]=i,e[11]=n,e[12]=s,e[13]=p):p=e[13],v.useEffect(h,p);let m;return e[14]!==l?(m={state:l,dispatch:c},e[14]=l,e[15]=m):m=e[15],m}function Sc(){return[]}function Wg({editor:t,queryKey:e,queryFn:n,onSelect:r}){const{state:s,dispatch:i}=wc(),o=v.useDeferredValue(s.query),{data:a}=Fa({queryKey:ve.suggestionItems(e,s.open,o),queryFn:()=>s.open?n({query:o}):[]}),l=()=>{i({type:"ON_EXIT"})},c=async(u,h)=>{if(!(s.selectedItem!==null||!s.range)){i({type:"SET_SELECTED_ITEM",payload:u});try{const{view:p}=t,y=p.state.selection.$to.nodeAfter?.text?.startsWith(" "),x=s.range?{...s.range}:{from:0,to:0};y&&s.range&&(x.to+=1),await r({range:x,item:u})===!1?i({type:"SET_SELECTED_ITEM",payload:null}):l()}catch{l()}}},{selectedIndex:f}=yc({editor:t,query:o,items:a,onSelect:c,onClose:l});return{selectedItem:s.selectedItem,items:a,selectedIndex:f,close:l,onSelect:c}}function Vg(t){return t.contentHash??`${t.size}-${t.updatedAt}`}function pt(t,e,n,r){const s=new URLSearchParams(r).toString();return`/api/${encodeURIComponent(t)}/fs/${encodeURIComponent(e)}/${n}${s?`?${s}`:""}`}async function Ye(t,e,n){const r=await fetch(t,e);if(r.ok||n?.allow404&&r.status===404)return r;let s="";try{s=(await r.json()).error??""}catch{}throw new Error(s||`HTTP ${r.status}`)}function Gg(t,e){const n=L.c(15),{org:r}=_e();let s;n[0]!==r.id||n[1]!==e||n[2]!==t?(s=ve.orgFsList(r.id,t,e),n[0]=r.id,n[1]=e,n[2]=t,n[3]=s):s=n[3];let i;n[4]!==r.id||n[5]!==t?(i=(l,c)=>c?.queryKey[1]===r.id&&c.queryKey[2]===t?l:void 0,n[4]=r.id,n[5]=t,n[6]=i):i=n[6];let o;n[7]!==r.slug||n[8]!==e||n[9]!==t?(o=async()=>(await(await Ye(pt(r.slug,t,"list",{path:e}))).json()).entries.toSorted(Cc),n[7]=r.slug,n[8]=e,n[9]=t,n[10]=o):o=n[10];let a;return n[11]!==s||n[12]!==i||n[13]!==o?(a={queryKey:s,placeholderData:i,queryFn:o},n[11]=s,n[12]=i,n[13]=o,n[14]=a):a=n[14],lt(a)}function Cc(t,e){return t.kind!==e.kind?t.kind==="dir"?-1:1:t.path.localeCompare(e.path)}function Qg(t,e,n){const r=L.c(15),{org:s}=_e();let i;r[0]!==s.id||r[1]!==e||r[2]!==t?(i=ve.orgFsStat(s.id,t??"",e),r[0]=s.id,r[1]=e,r[2]=t,r[3]=i):i=r[3];const o=t!==null;let a;r[4]!==n?(a=n?.refetchIntervalWhenAbsent?f=>f.state.data?!1:n.refetchIntervalWhenAbsent??!1:void 0,r[4]=n,r[5]=a):a=r[5];let l;r[6]!==s.slug||r[7]!==e||r[8]!==t?(l=async()=>{const f=await Ye(pt(s.slug,t??"","stat",{path:e}),void 0,{allow404:!0});return f.status===404?null:(await f.json()).entry},r[6]=s.slug,r[7]=e,r[8]=t,r[9]=l):l=r[9];let c;return r[10]!==i||r[11]!==o||r[12]!==a||r[13]!==l?(c={queryKey:i,enabled:o,refetchInterval:a,queryFn:l},r[10]=i,r[11]=o,r[12]=a,r[13]=l,r[14]=c):c=r[14],lt(c)}function Xg(t){const e=L.c(9),{org:n}=_e();let r;e[0]!==n.id||e[1]!==t?(r=ve.orgFsUsage(n.id,t),e[0]=n.id,e[1]=t,e[2]=r):r=e[2];let s;e[3]!==n.slug||e[4]!==t?(s=async()=>await(await Ye(pt(n.slug,t,"usage"))).json(),e[3]=n.slug,e[4]=t,e[5]=s):s=e[5];let i;return e[6]!==r||e[7]!==s?(i={queryKey:r,queryFn:s},e[6]=r,e[7]=s,e[8]=i):i=e[8],lt(i)}function Yg(t,e){const n=L.c(9),r=t===void 0?60:t,{org:s}=_e();let i;n[0]!==s.id?(i=ve.orgFsRecent(s.id),n[0]=s.id,n[1]=i):i=n[1];const o=e?.enabled;let a;n[2]!==r||n[3]!==s.slug?(a=async()=>(await(await Ye(`/api/${encodeURIComponent(s.slug)}/fs/recent?limit=${r}`)).json()).entries,n[2]=r,n[3]=s.slug,n[4]=a):a=n[4];let l;return n[5]!==i||n[6]!==o||n[7]!==a?(l={queryKey:i,enabled:o,queryFn:a},n[5]=i,n[6]=o,n[7]=a,n[8]=l):l=n[8],lt(l)}const Tc=50;function Zg(t,e){const n=L.c(16),{org:r}=_e();let s;n[0]!==r.id||n[1]!==t||n[2]!==e?.prefix||n[3]!==e?.volume?(s=ve.orgFsSearch(r.id,t,e?.volume??"",e?.prefix??""),n[0]=r.id,n[1]=t,n[2]=e?.prefix,n[3]=e?.volume,n[4]=s):s=n[4];const i=t.length>0;let o;n[5]!==r.id?(o=(c,f)=>f?.queryKey[1]===r.id?c:void 0,n[5]=r.id,n[6]=o):o=n[6];let a;n[7]!==r.slug||n[8]!==t||n[9]!==e?(a=async()=>{const c=new URLSearchParams({q:t,limit:String(Tc)});return e&&(c.set("volume",e.volume),e.prefix&&c.set("prefix",e.prefix)),(await(await Ye(`/api/${encodeURIComponent(r.slug)}/fs/search?${c}`)).json()).entries},n[7]=r.slug,n[8]=t,n[9]=e,n[10]=a):a=n[10];let l;return n[11]!==s||n[12]!==i||n[13]!==o||n[14]!==a?(l={queryKey:s,enabled:i,placeholderData:o,queryFn:a},n[11]=s,n[12]=i,n[13]=o,n[14]=a,n[15]=l):l=n[15],lt(l)}function Jg(t){const e=L.c(8),{org:n}=_e();let r;e[0]!==n.id?(r=ve.orgFsSkills(n.id),e[0]=n.id,e[1]=r):r=e[1];const s=t?.enabled;let i;e[2]!==n.slug?(i=async()=>{const a=await Ye(`/api/${encodeURIComponent(n.slug)}/fs/skills`),{skills:l}=await a.json();return l.map(jc)},e[2]=n.slug,e[3]=i):i=e[3];let o;return e[4]!==r||e[5]!==s||e[6]!==i?(o={queryKey:r,enabled:s,queryFn:i},e[4]=r,e[5]=s,e[6]=i,e[7]=o):o=e[7],lt(o)}function jc(t){return{volume:t.volume,path:t.path}}async function em(t){const e=await Ye(`/api/${encodeURIComponent(t)}/fs/skills`),{skills:n}=await e.json();return n}async function Dc(t,e,n){return(await Ye(pt(t,e,"read",{path:n}))).text()}const Nc=new Set(["md","mdx","markdown","txt","text"]),Rc=25,Ec=64*1024,Ic=256*1024,_c=4;function Ac(t){const e=t.lastIndexOf(".");return e===-1?!1:Nc.has(t.slice(e+1).toLowerCase())}async function tm(t,e,n){const r=n?`${n}/`:"",s=u=>u.startsWith(r)?u.slice(r.length):u,i=[],o=[],a=[{path:n,depth:0}];for(;a.length>0;){const u=a.shift();if(!u)break;let h;try{h=(await(await Ye(pt(t,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const p of[...h].sort((m,y)=>m.path.localeCompare(y.path))){if(p.kind==="dir"){u.depth<_c&&a.push({path:p.path,depth:u.depth+1});continue}Ac(p.path)&&p.size<=Ec&&i.length<Rc?i.push(p.path):o.push(s(p.path))}}const l=await Promise.all(i.map(u=>Dc(t,e,u).catch(()=>null))),c=[];let f=0;return i.forEach((u,h)=>{const p=l[h];if(p==null||f+p.length>Ic){o.push(s(u));return}f+=p.length,c.push({relPath:s(u),content:p})}),c.sort((u,h)=>u.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:u.relPath.localeCompare(h.relPath)),o.sort(),{files:c,omittedPaths:o}}function nm(){const t=L.c(7),{org:e}=_e();let n;t[0]!==e.id?(n=ve.orgFsPublicSets(e.id),t[0]=e.id,t[1]=n):n=t[1];let r;t[2]!==e.slug?(r=async()=>(await(await Ye(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,t[2]=e.slug,t[3]=r):r=t[3];let s;return t[4]!==n||t[5]!==r?(s={queryKey:n,staleTime:3e5,queryFn:r},t[4]=n,t[5]=r,t[6]=s):s=t[6],lt(s)}function Bc(t){const e=L.c(3),{org:n}=_e();let r;return e[0]!==n.slug||e[1]!==t?(r=s=>pt(n.slug,t,"read",{path:s}),e[0]=n.slug,e[1]=t,e[2]=r):r=e[2],r}function sm(){const t=L.c(2),{org:e}=_e();let n;return t[0]!==e.slug?(n=(r,s)=>pt(e.slug,r,"read",{path:s}),t[0]=e.slug,t[1]=n):n=t[1],n}function rm(t){const e=L.c(3),{org:n}=_e();let r;return e[0]!==n||e[1]!==t?(r={mutationFn:async s=>(await(await Ye(pt(n.slug,t,"file",{path:s.path}),{method:"PUT",headers:{"content-type":s.contentType??"text/html; charset=utf-8"},body:s.body})).json()).entry},e[0]=n,e[1]=t,e[2]=r):r=e[2],Tt(r)}function im(t){const e=L.c(18),{org:n}=_e(),r=En();let s;e[0]!==n||e[1]!==t?(s=async c=>(await(await Ye(pt(n.slug,t,"public",{path:c.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:c.mode,password:c.password})})).json()).entry,e[0]=n,e[1]=t,e[2]=s):s=e[2];let i;e[3]!==n||e[4]!==r||e[5]!==t?(i=async c=>{const f=ve.orgFsStat(n.id,t,c.path);await r.cancelQueries({queryKey:f});const u=r.getQueryData(f),h=c.mode!=="private";return r.setQueryData(f,p=>p&&{...p,readPublic:h,effectivePublic:h,shareMode:c.mode}),{key:f,previous:u}},e[3]=n,e[4]=r,e[5]=t,e[6]=i):i=e[6];let o;e[7]!==r?(o=(c,f,u)=>{u&&r.setQueryData(u.key,u.previous)},e[7]=r,e[8]=o):o=e[8];let a;e[9]!==n||e[10]!==r||e[11]!==t?(a=(c,f,u)=>{r.invalidateQueries({queryKey:ve.orgFsStat(n.id,t,u.path)}),r.invalidateQueries({queryKey:ve.orgFsVolume(n.id,t)}),r.invalidateQueries({queryKey:ve.orgFsRecent(n.id)}),r.invalidateQueries({queryKey:ve.orgFsSearchRoot(n.id)})},e[9]=n,e[10]=r,e[11]=t,e[12]=a):a=e[12];let l;return e[13]!==s||e[14]!==i||e[15]!==o||e[16]!==a?(l={mutationFn:s,onMutate:i,onError:o,onSettled:a},e[13]=s,e[14]=i,e[15]=o,e[16]=a,e[17]=l):l=e[17],Tt(l)}function Oc(t){const e=L.c(33),{org:n}=_e(),r=En();let s;e[0]!==n||e[1]!==r||e[2]!==t?(s=()=>{r.invalidateQueries({queryKey:ve.orgFsVolume(n.id,t)}),r.invalidateQueries({queryKey:ve.orgFsRecent(n.id)}),r.invalidateQueries({queryKey:ve.orgFsSearchRoot(n.id)})},e[0]=n,e[1]=r,e[2]=t,e[3]=s):s=e[3];const i=s;let o;e[4]!==n||e[5]!==t?(o=async k=>{const C=(await Promise.allSettled(k.files.map(j=>{const S=k.dir?`${k.dir}/${j.name}`:j.name;return Ye(pt(n.slug,t,"file",{path:S}),{method:"PUT",headers:{"content-type":j.type||"application/octet-stream"},body:j})}))).find($c);if(C)throw C.reason},e[4]=n,e[5]=t,e[6]=o):o=e[6];let a;e[7]!==i||e[8]!==o?(a={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=a):a=e[9];const l=Tt(a);let c;e[10]!==n||e[11]!==t?(c=async k=>{await Ye(pt(n.slug,t,"dir",{path:k}),{method:"POST"})},e[10]=n,e[11]=t,e[12]=c):c=e[12];let f;e[13]!==i||e[14]!==c?(f={mutationFn:c,onSuccess:i},e[13]=i,e[14]=c,e[15]=f):f=e[15];const u=Tt(f);let h;e[16]!==n||e[17]!==t?(h=async k=>{await Ye(pt(n.slug,t,"file",{path:k}),{method:"DELETE"})},e[16]=n,e[17]=t,e[18]=h):h=e[18];let p;e[19]!==i||e[20]!==h?(p={mutationFn:h,onSuccess:i},e[19]=i,e[20]=h,e[21]=p):p=e[21];const m=Tt(p);let y;e[22]!==n||e[23]!==t?(y=async k=>{await Ye(pt(n.slug,t,"move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(k)})},e[22]=n,e[23]=t,e[24]=y):y=e[24];let x;e[25]!==i||e[26]!==y?(x={mutationFn:y,onSuccess:i},e[25]=i,e[26]=y,e[27]=x):x=e[27];const g=Tt(x);let b;return e[28]!==u||e[29]!==g||e[30]!==m||e[31]!==l?(b={upload:l,mkdir:u,remove:m,move:g},e[28]=u,e[29]=g,e[30]=m,e[31]=l,e[32]=b):b=e[32],b}function $c(t){return t.status==="rejected"}function Mc(t){return t?t.run_in_progress?"generating":t.scanned_at?"ready":"none":"none"}const zc=2e4;function Lc(t){if(typeof t!="string"||!t)return null;try{return new URL(t).hostname||null}catch{return null}}function Pc(){const t=L.c(17),{org:e}=_e(),n=il.COMMERCE_DISCOVERY(e.id);let r;t[0]!==e.id||t[1]!==e.slug?(r=oi({connectionId:lo,orgId:e.id,orgSlug:e.slug}),t[0]=e.id,t[1]=e.slug,t[2]=r):r=t[2];const{data:s}=lt(r),o=lt({queryKey:ve.commerceDiscoveryConnection(e.id,n),enabled:!!s,retry:!1,staleTime:6e4,queryFn:async()=>{if(!s)throw new Error("selfClient not ready");const k=await s.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:n}});return cr(k)}}).data?.item??null,{data:a}=lt({...oi({connectionId:n,orgId:e.id,orgSlug:e.slug}),enabled:!!o}),l=ve.commerceDiscoveryDiagnostic(e.id,n),c=!!a;let f;t[3]!==a?(f=async()=>{if(!a)throw new Error("cdClient not ready");const k=await a.callTool({name:co,arguments:{}});return cr(k).diagnostic??null},t[3]=a,t[4]=f):f=t[4];let u;t[5]!==l||t[6]!==c||t[7]!==f?(u={queryKey:l,enabled:c,retry:1,refetchInterval:Fc,queryFn:f},t[5]=l,t[6]=c,t[7]=f,t[8]=u):u=t[8];const h=lt(u),p=h.data??null,m=h.isSuccess,y=o?.metadata?.siteUrl;let x;t[9]!==y?(x=Lc(y),t[9]=y,t[10]=x):x=t[10];const g=a??null;let b;return t[11]!==n||t[12]!==h.isSuccess||t[13]!==p||t[14]!==x||t[15]!==g?(b={diagnostic:p,isSuccess:m,host:x,connectionId:n,cdClient:g},t[11]=n,t[12]=h.isSuccess,t[13]=p,t[14]=x,t[15]=g,t[16]=b):b=t[16],b}function Fc(t){return t.state.status!=="error"&&Mc(t.state.data)==="generating"?zc:!1}function Uc(t,e){return{to:"/$org/$taskId",params:{org:t.slug,taskId:crypto.randomUUID()},search:{virtualmcpid:ol(t.id),main:dc(e,co)}}}function qc(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return v.useMemo(()=>r=>{e.forEach(s=>s(r))},e)}const Fs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function An(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function $r(t){return"nodeType"in t}function rt(t){var e,n;return t?An(t)?t:$r(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}function Mr(t){const{Document:e}=rt(t);return t instanceof e}function rs(t){return An(t)?!1:t instanceof rt(t).HTMLElement}function No(t){return t instanceof rt(t).SVGElement}function Bn(t){return t?An(t)?t.document:$r(t)?Mr(t)?t:rs(t)||No(t)?t.ownerDocument:document:document:document}const Rt=Fs?v.useLayoutEffect:v.useEffect;function Us(t){const e=v.useRef(t);return Rt(()=>{e.current=t}),v.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return e.current==null?void 0:e.current(...r)},[])}function Hc(){const t=v.useRef(null),e=v.useCallback((r,s)=>{t.current=setInterval(r,s)},[]),n=v.useCallback(()=>{t.current!==null&&(clearInterval(t.current),t.current=null)},[]);return[e,n]}function es(t,e){e===void 0&&(e=[t]);const n=v.useRef(t);return Rt(()=>{n.current!==t&&(n.current=t)},e),n}function is(t,e){const n=v.useRef();return v.useMemo(()=>{const r=t(n.current);return n.current=r,r},[...e])}function js(t){const e=Us(t),n=v.useRef(null),r=v.useCallback(s=>{s!==n.current&&e?.(s,n.current),n.current=s},[]);return[n,r]}function Ds(t){const e=v.useRef();return v.useEffect(()=>{e.current=t},[t]),e.current}let er={};function os(t,e){return v.useMemo(()=>{if(e)return e;const n=er[t]==null?0:er[t]+1;return er[t]=n,t+"-"+n},[t,e])}function Ro(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return r.reduce((i,o)=>{const a=Object.entries(o);for(const[l,c]of a){const f=i[l];f!=null&&(i[l]=f+t*c)}return i},{...e})}}const Tn=Ro(1),ts=Ro(-1);function Kc(t){return"clientX"in t&&"clientY"in t}function qs(t){if(!t)return!1;const{KeyboardEvent:e}=rt(t.target);return e&&t instanceof e}function Wc(t){if(!t)return!1;const{TouchEvent:e}=rt(t.target);return e&&t instanceof e}function Ns(t){if(Wc(t)){if(t.touches&&t.touches.length){const{clientX:e,clientY:n}=t.touches[0];return{x:e,y:n}}else if(t.changedTouches&&t.changedTouches.length){const{clientX:e,clientY:n}=t.changedTouches[0];return{x:e,y:n}}}return Kc(t)?{x:t.clientX,y:t.clientY}:null}const Ht=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:n}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:n}=t;return"scaleX("+e+") scaleY("+n+")"}},Transform:{toString(t){if(t)return[Ht.Translate.toString(t),Ht.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:n,easing:r}=t;return e+" "+n+"ms "+r}}}),ci="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Vc(t){return t.matches(ci)?t:t.querySelector(ci)}const Gc={display:"none"};function Qc(t){let{id:e,value:n}=t;return Se.createElement("div",{id:e,style:Gc},n)}function Xc(t){let{id:e,announcement:n,ariaLiveType:r="assertive"}=t;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Se.createElement("div",{id:e,style:s,role:"status","aria-live":r,"aria-atomic":!0},n)}function Yc(){const[t,e]=v.useState("");return{announce:v.useCallback(r=>{r!=null&&e(r)},[]),announcement:t}}const Eo=v.createContext(null);function Zc(t){const e=v.useContext(Eo);v.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(t)},[t,e])}function Jc(){const[t]=v.useState(()=>new Set),e=v.useCallback(r=>(t.add(r),()=>t.delete(r)),[t]);return[v.useCallback(r=>{let{type:s,event:i}=r;t.forEach(o=>{var a;return(a=o[s])==null?void 0:a.call(o,i)})},[t]),e]}const ed={draggable:`
|
|
3
3
|
To pick up a draggable item, press the space bar.
|
|
4
4
|
While dragging, use the arrow keys to move the item.
|
|
5
5
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
@@ -74,4 +74,4 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error
|
|
|
74
74
|
`))}if(t.threads.length>0){const r=t.threads.map(s=>{const i=s.title?.trim()||"Untitled chat";return s.status?`- ${i} [${s.status}]`:`- ${i}`});n.push(["## Other chats on this task",...r].join(`
|
|
75
75
|
`))}return n.join(`
|
|
76
76
|
|
|
77
|
-
`)}const vr="__unassigned__",zs={assignee:null,priority:null,due:null};function up(t){return t.assignee!==null||t.priority!==null||t.due!==null}function fp(t){return(t.assignee!==null?1:0)+(t.priority!==null?1:0)+(t.due!==null?1:0)}const hp=864e5;function pp(t,e){const n=new Date(t),r=new Date(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}function gp(t,e){if(e.assignee!==null){if(e.assignee===vr){if(t.assigneeId!==null)return!1}else if(t.assigneeId!==e.assignee)return!1}if(e.priority!==null&&t.priority!==e.priority)return!1;if(e.due!==null)if(e.due==="none"){if(t.dueDate)return!1}else{if(!t.dueDate)return!1;const n=new Date(t.dueDate).getTime(),r=Date.now();if(e.due==="overdue"&&n>=r||e.due==="today"&&!pp(n,r)||e.due==="week"&&(n<r||n>r+7*hp))return!1}return!0}const qi={overdue:"taskBoard.taskFilters.dueDateFilterOverdue",today:"taskBoard.taskFilters.dueDateFilterDueToday",week:"taskBoard.taskFilters.dueDateFilterDueThisWeek",none:"taskBoard.taskFilters.dueDateFilterNoDueDate"};function Qs(t,e=!1){return Z("inline-flex h-8 items-center gap-1.5 rounded-lg border px-2.5 text-xs font-medium outline-none transition-colors",e&&"h-10 w-full justify-start px-3 text-sm",t?"border-transparent bg-accent text-foreground":"border-border text-muted-foreground hover:bg-muted/60 hover:text-foreground")}function mp(t){const e=L.c(95),{value:n,members:r,onChange:s,block:i}=t,o=ce(),[a,l]=v.useState(!1);let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=d.jsx(lr,{size:14,className:"shrink-0"}),e[0]=c):c=e[0];let f=c,u;e[1]!==o?(u=o("taskBoard.taskFilters.assigneeLabel"),e[1]=o,e[2]=u):u=e[2];let h=u;if(n===vr){let $;e[3]!==o?($=o("taskBoard.taskFilters.assigneeUnassigned"),e[3]=o,e[4]=$):$=e[4],h=$}else if(n===nt){let $;e[5]===Symbol.for("react.memo_cache_sentinel")?($=d.jsx(Ot,{size:14}),e[5]=$):$=e[5],f=$;let F;e[6]!==o?(F=o("taskBoard.taskFilters.assigneeSuperAgent"),e[6]=o,e[7]=F):F=e[7],h=F}else if(n){let $,F,X,re;if(e[8]!==r||e[9]!==n){let te;e[14]!==n?(te=le=>le.userId===n,e[14]=n,e[15]=te):te=e[15],F=r.find(te),$=Nt,X=F?.user?.image??void 0,re=Dt(F?.user?.name),e[8]=r,e[9]=n,e[10]=$,e[11]=F,e[12]=X,e[13]=re}else $=e[10],F=e[11],X=e[12],re=e[13];let _;e[16]!==$||e[17]!==X||e[18]!==re?(_=d.jsx($,{url:X,fallback:re,shape:"circle",size:"2xs"}),e[16]=$,e[17]=X,e[18]=re,e[19]=_):_=e[19],f=_;let V;e[20]!==F?.user?.name||e[21]!==o?(V=F?.user?.name??o("taskBoard.taskFilters.assigneeMember"),e[20]=F?.user?.name,e[21]=o,e[22]=V):V=e[22],h=V}let p;e[23]!==s?(p=$=>{s($),l(!1)},e[23]=s,e[24]=p):p=e[24];const m=p,y=n!==null;let x;e[25]!==i||e[26]!==y?(x=Qs(y,i),e[25]=i,e[26]=y,e[27]=x):x=e[27];const g=x,b=i&&"ml-auto";let k;e[28]!==b?(k=Z("shrink-0 opacity-60",b),e[28]=b,e[29]=k):k=e[29];const w=k;let C;e[30]!==h?(C=d.jsx("span",{className:"max-w-[10rem] truncate",children:h}),e[30]=h,e[31]=C):C=e[31];let j;e[32]!==w?(j=d.jsx(Br,{size:12,className:w}),e[32]=w,e[33]=j):j=e[33];let S;e[34]!==f||e[35]!==C||e[36]!==j||e[37]!==g?(S=d.jsx(wn,{asChild:!0,children:d.jsxs("button",{type:"button",className:g,children:[f,C,j]})}),e[34]=f,e[35]=C,e[36]=j,e[37]=g,e[38]=S):S=e[38];let T;e[39]!==o?(T=o("taskBoard.taskFilters.assigneeFilterPlaceholder"),e[39]=o,e[40]=T):T=e[40];let N;e[41]!==T?(N=d.jsx(Er,{placeholder:T,className:"h-9"}),e[41]=T,e[42]=N):N=e[42];let R;e[43]!==o?(R=o("taskBoard.taskFilters.assigneeNoMembersFound"),e[43]=o,e[44]=R):R=e[44];let D;e[45]!==R?(D=d.jsx(Ir,{children:R}),e[45]=R,e[46]=D):D=e[46];let E;e[47]!==m?(E=()=>m(null),e[47]=m,e[48]=E):E=e[48];let M;e[49]!==o?(M=o("taskBoard.taskFilters.assigneeAnyone"),e[49]=o,e[50]=M):M=e[50];let A;e[51]!==E||e[52]!==M?(A=d.jsx(Pt,{value:"Anyone",onSelect:E,children:M}),e[51]=E,e[52]=M,e[53]=A):A=e[53];let U;e[54]!==m?(U=()=>m(vr),e[54]=m,e[55]=U):U=e[55];let I;e[56]===Symbol.for("react.memo_cache_sentinel")?(I=d.jsx(lr,{size:16,className:"text-muted-foreground"}),e[56]=I):I=e[56];let B;e[57]!==o?(B=o("taskBoard.taskFilters.assigneeUnassigned"),e[57]=o,e[58]=B):B=e[58];let O;e[59]!==U||e[60]!==B?(O=d.jsxs(Pt,{value:"Unassigned",onSelect:U,className:"gap-2",children:[I,B]}),e[59]=U,e[60]=B,e[61]=O):O=e[61];let K;e[62]!==m?(K=()=>m(nt),e[62]=m,e[63]=K):K=e[63];let Y;e[64]===Symbol.for("react.memo_cache_sentinel")?(Y=d.jsx(Ot,{size:16}),e[64]=Y):Y=e[64];let P;e[65]!==o?(P=o("taskBoard.taskFilters.assigneeSuperAgent"),e[65]=o,e[66]=P):P=e[66];let q;e[67]!==K||e[68]!==P?(q=d.jsxs(Pt,{value:"Super Agent",onSelect:K,className:"gap-2",children:[Y,P]}),e[67]=K,e[68]=P,e[69]=q):q=e[69];let Q;e[70]!==A||e[71]!==O||e[72]!==q?(Q=d.jsxs(Rn,{children:[A,O,q]}),e[70]=A,e[71]=O,e[72]=q,e[73]=Q):Q=e[73];let G;e[74]!==o?(G=o("taskBoard.taskFilters.assigneeGroupMembers"),e[74]=o,e[75]=G):G=e[75];let ee;if(e[76]!==r||e[77]!==m){let $;e[79]!==m?($=F=>d.jsxs(Pt,{value:F.user?.name??F.userId,onSelect:()=>m(F.userId),className:"gap-2",children:[d.jsx(Nt,{url:F.user?.image??void 0,fallback:Dt(F.user?.name),shape:"circle",size:"2xs"}),d.jsx("span",{className:"truncate",children:F.user?.name??F.userId})]},F.userId),e[79]=m,e[80]=$):$=e[80],ee=r.map($),e[76]=r,e[77]=m,e[78]=ee}else ee=e[78];let W;e[81]!==G||e[82]!==ee?(W=d.jsx(Rn,{heading:G,children:ee}),e[81]=G,e[82]=ee,e[83]=W):W=e[83];let ne;e[84]!==D||e[85]!==Q||e[86]!==W?(ne=d.jsxs(_r,{children:[D,Q,W]}),e[84]=D,e[85]=Q,e[86]=W,e[87]=ne):ne=e[87];let J;e[88]!==N||e[89]!==ne?(J=d.jsx(Gn,{align:"start",className:"w-56 p-0",children:d.jsxs(Ar,{children:[N,ne]})}),e[88]=N,e[89]=ne,e[90]=J):J=e[90];let se;return e[91]!==a||e[92]!==S||e[93]!==J?(se=d.jsxs(Qn,{open:a,onOpenChange:l,children:[S,J]}),e[91]=a,e[92]=S,e[93]=J,e[94]=se):se=e[94],se}function xp(t){const e=L.c(33),{value:n,onChange:r,block:s}=t,i=ce(),o=n!==null;let a;e[0]!==s||e[1]!==o?(a=Qs(o,s),e[0]=s,e[1]=o,e[2]=a):a=e[2];const l=a,c=s&&"ml-auto";let f;e[3]!==c?(f=Z("shrink-0 opacity-60",c),e[3]=c,e[4]=f):f=e[4];const u=f;let h;e[5]!==n?(h=n?d.jsx("span",{className:Z("size-2 shrink-0 rounded-full",kt[n].dotClassName)}):d.jsx(ac,{size:14,className:"shrink-0"}),e[5]=n,e[6]=h):h=e[6];let p;e[7]!==i||e[8]!==n?(p=i(n?kt[n].labelKey:"taskBoard.taskFilters.priorityLabel"),e[7]=i,e[8]=n,e[9]=p):p=e[9];let m;e[10]!==u?(m=d.jsx(Br,{size:12,className:u}),e[10]=u,e[11]=m):m=e[11];let y;e[12]!==h||e[13]!==p||e[14]!==m||e[15]!==l?(y=d.jsx(jn,{asChild:!0,children:d.jsxs("button",{type:"button",className:l,children:[h,p,m]})}),e[12]=h,e[13]=p,e[14]=m,e[15]=l,e[16]=y):y=e[16];let x;e[17]!==r?(x=()=>r(null),e[17]=r,e[18]=x):x=e[18];let g;e[19]!==i?(g=i("taskBoard.taskFilters.priorityAnyPriority"),e[19]=i,e[20]=g):g=e[20];let b;e[21]!==g||e[22]!==x?(b=d.jsx(jt,{onSelect:x,children:g}),e[21]=g,e[22]=x,e[23]=b):b=e[23];let k;e[24]!==r||e[25]!==i?(k=Kr.map(j=>d.jsxs(jt,{onSelect:()=>r(j),className:"gap-2",children:[d.jsx("span",{className:Z("size-2 rounded-full",kt[j].dotClassName)}),i(kt[j].labelKey)]},j)),e[24]=r,e[25]=i,e[26]=k):k=e[26];let w;e[27]!==b||e[28]!==k?(w=d.jsxs(Dn,{align:"start",className:"w-40",children:[b,k]}),e[27]=b,e[28]=k,e[29]=w):w=e[29];let C;return e[30]!==w||e[31]!==y?(C=d.jsxs(Nn,{children:[y,w]}),e[30]=w,e[31]=y,e[32]=C):C=e[32],C}function bp(t){const e=L.c(35),{value:n,onChange:r,block:s}=t,i=ce();let o;e[0]!==i||e[1]!==n?(o=n?i(qi[n]):void 0,e[0]=i,e[1]=n,e[2]=o):o=e[2];const a=o,l=n!==null;let c;e[3]!==s||e[4]!==l?(c=Qs(l,s),e[3]=s,e[4]=l,e[5]=c):c=e[5];const f=c,u=s&&"ml-auto";let h;e[6]!==u?(h=Z("shrink-0 opacity-60",u),e[6]=u,e[7]=h):h=e[7];const p=h;let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=d.jsx(Sn,{size:14,className:"shrink-0"}),e[8]=m):m=e[8];let y;e[9]!==a||e[10]!==i?(y=a??i("taskBoard.taskFilters.dueDateLabel"),e[9]=a,e[10]=i,e[11]=y):y=e[11];let x;e[12]!==p?(x=d.jsx(Br,{size:12,className:p}),e[12]=p,e[13]=x):x=e[13];let g;e[14]!==y||e[15]!==x||e[16]!==f?(g=d.jsx(jn,{asChild:!0,children:d.jsxs("button",{type:"button",className:f,children:[m,y,x]})}),e[14]=y,e[15]=x,e[16]=f,e[17]=g):g=e[17];let b;e[18]!==r?(b=()=>r(null),e[18]=r,e[19]=b):b=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=d.jsx(Sn,{size:16,className:"text-muted-foreground"}),e[20]=k):k=e[20];let w;e[21]!==i?(w=i("taskBoard.taskFilters.dueDateAnyTime"),e[21]=i,e[22]=w):w=e[22];let C;e[23]!==b||e[24]!==w?(C=d.jsxs(jt,{onSelect:b,className:"gap-2",children:[k,w]}),e[23]=b,e[24]=w,e[25]=C):C=e[25];let j;e[26]!==r||e[27]!==i?(j=Object.entries(qi).map(N=>{const[R,D]=N,E=R==="overdue";return d.jsxs(jt,{onSelect:()=>r(R),className:Z("gap-2",E&&"text-destructive"),children:[d.jsx(Sn,{size:16,className:Z("shrink-0",E?"text-destructive":"text-muted-foreground")}),i(D)]},R)}),e[26]=r,e[27]=i,e[28]=j):j=e[28];let S;e[29]!==C||e[30]!==j?(S=d.jsxs(Dn,{align:"start",className:"w-44",children:[C,j]}),e[29]=C,e[30]=j,e[31]=S):S=e[31];let T;return e[32]!==S||e[33]!==g?(T=d.jsxs(Nn,{children:[g,S]}),e[32]=S,e[33]=g,e[34]=T):T=e[34],T}function _a(t){const e=L.c(26),{filters:n,members:r,onChange:s,block:i}=t;let o;e[0]!==n||e[1]!==s?(o=p=>s({...n,assignee:p}),e[0]=n,e[1]=s,e[2]=o):o=e[2];let a;e[3]!==i||e[4]!==n.assignee||e[5]!==r||e[6]!==o?(a=d.jsx(mp,{block:i,value:n.assignee,members:r,onChange:o}),e[3]=i,e[4]=n.assignee,e[5]=r,e[6]=o,e[7]=a):a=e[7];let l;e[8]!==n||e[9]!==s?(l=p=>s({...n,priority:p}),e[8]=n,e[9]=s,e[10]=l):l=e[10];let c;e[11]!==i||e[12]!==n.priority||e[13]!==l?(c=d.jsx(xp,{block:i,value:n.priority,onChange:l}),e[11]=i,e[12]=n.priority,e[13]=l,e[14]=c):c=e[14];let f;e[15]!==n||e[16]!==s?(f=p=>s({...n,due:p}),e[15]=n,e[16]=s,e[17]=f):f=e[17];let u;e[18]!==i||e[19]!==n.due||e[20]!==f?(u=d.jsx(bp,{block:i,value:n.due,onChange:f}),e[18]=i,e[19]=n.due,e[20]=f,e[21]=u):u=e[21];let h;return e[22]!==a||e[23]!==c||e[24]!==u?(h=d.jsxs(d.Fragment,{children:[a,c,u]}),e[22]=a,e[23]=c,e[24]=u,e[25]=h):h=e[25],h}function yp(t){const e=L.c(12),{filters:n,members:r,onChange:s}=t,i=ce();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=d.jsx(Do,{size:16,className:"mr-0.5 shrink-0 text-muted-foreground"}),e[0]=o):o=e[0];let a;e[1]!==n||e[2]!==r||e[3]!==s?(a=d.jsx(_a,{filters:n,members:r,onChange:s}),e[1]=n,e[2]=r,e[3]=s,e[4]=a):a=e[4];let l;e[5]!==n||e[6]!==s||e[7]!==i?(l=up(n)&&d.jsx("button",{type:"button",onClick:()=>s(zs),className:"ml-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:i("taskBoard.taskFilters.clearButton")}),e[5]=n,e[6]=s,e[7]=i,e[8]=l):l=e[8];let c;return e[9]!==a||e[10]!==l?(c=d.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[o,a,l]}),e[9]=a,e[10]=l,e[11]=c):c=e[11],c}function kp(t){const e=L.c(38),{filters:n,members:r,onChange:s}=t,i=ce(),[o,a]=v.useState(!1),l=fp(n),c=l>0;let f;e[0]!==c?(f=Qs(c),e[0]=c,e[1]=f):f=e[1];const u=f;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=d.jsx(Do,{size:14,className:"shrink-0"}),e[2]=h):h=e[2];let p;e[3]!==i?(p=i("taskBoard.taskFilters.filterDrawerButtonLabel"),e[3]=i,e[4]=p):p=e[4];let m;e[5]!==l?(m=l>0&&d.jsx("span",{className:"ml-0.5 flex size-4 items-center justify-center rounded-full bg-foreground text-[10px] font-semibold text-background",children:l}),e[5]=l,e[6]=m):m=e[6];let y;e[7]!==p||e[8]!==m||e[9]!==u?(y=d.jsx(tc,{asChild:!0,children:d.jsxs("button",{type:"button",className:u,children:[h,p,m]})}),e[7]=p,e[8]=m,e[9]=u,e[10]=y):y=e[10];let x;e[11]!==i?(x=i("taskBoard.taskFilters.filterDrawerTitle"),e[11]=i,e[12]=x):x=e[12];let g;e[13]!==x?(g=d.jsx(nc,{className:"px-4 pt-4 text-base font-medium text-foreground",children:x}),e[13]=x,e[14]=g):g=e[14];let b;e[15]!==n||e[16]!==r||e[17]!==s?(b=d.jsx("div",{className:"flex flex-col gap-2 p-4",children:d.jsx(_a,{block:!0,filters:n,members:r,onChange:s})}),e[15]=n,e[16]=r,e[17]=s,e[18]=b):b=e[18];let k;e[19]!==l||e[20]!==s||e[21]!==i?(k=l>0&&d.jsx(Xe,{variant:"outline",className:"flex-1",onClick:()=>s(zs),children:i("taskBoard.taskFilters.clearAllButton")}),e[19]=l,e[20]=s,e[21]=i,e[22]=k):k=e[22];let w;e[23]!==i?(w=i("taskBoard.taskFilters.doneButton"),e[23]=i,e[24]=w):w=e[24];let C;e[25]!==w?(C=d.jsx(sc,{asChild:!0,children:d.jsx(Xe,{className:"flex-1",children:w})}),e[25]=w,e[26]=C):C=e[26];let j;e[27]!==k||e[28]!==C?(j=d.jsxs(rc,{className:"flex-row gap-2",children:[k,C]}),e[27]=k,e[28]=C,e[29]=j):j=e[29];let S;e[30]!==j||e[31]!==g||e[32]!==b?(S=d.jsxs(ic,{className:"p-0",children:[g,b,j]}),e[30]=j,e[31]=g,e[32]=b,e[33]=S):S=e[33];let T;return e[34]!==o||e[35]!==S||e[36]!==y?(T=d.jsxs(oc,{open:o,onOpenChange:a,direction:"bottom",children:[y,S]}),e[34]=o,e[35]=S,e[36]=y,e[37]=T):T=e[37],T}const vp="https://decoims.com/image?src=decocms%2F7263a67f-fb83-410b-a5f2-e54e87deaaac%2Freport-kanban.png&quality=original&fit=cover",wp=["taskBoard.backlogPaywall.benefitPrioritizedTasks","taskBoard.backlogPaywall.benefitRecurringReport","taskBoard.backlogPaywall.benefitAgentResolves"],Hi={price:"R$ 99",anchor:"R$ 499"};function Sp(t){const e=L.c(21),{onOpen:n}=t,r=ce();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=d.jsx("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-success/10",children:d.jsx(Cr,{size:16,className:"text-success"})}),e[0]=s):s=e[0];let i;e[1]!==r?(i=r("taskBoard.backlogPaywall.bannerTitle"),e[1]=r,e[2]=i):i=e[2];let o;e[3]!==i?(o=d.jsx("span",{className:"text-sm font-medium text-foreground",children:i}),e[3]=i,e[4]=o):o=e[4];let a;e[5]!==r?(a=r("taskBoard.backlogPaywall.bannerSubtitle"),e[5]=r,e[6]=a):a=e[6];let l;e[7]!==a?(l=d.jsx("span",{className:"text-sm text-muted-foreground",children:a}),e[7]=a,e[8]=l):l=e[8];let c;e[9]!==o||e[10]!==l?(c=d.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3 sm:items-center",children:[s,d.jsxs("div",{className:"flex min-w-0 flex-col",children:[o,l]})]}),e[9]=o,e[10]=l,e[11]=c):c=e[11];let f;e[12]!==r?(f=r("taskBoard.backlogPaywall.unlockButton"),e[12]=r,e[13]=f):f=e[13];let u;e[14]===Symbol.for("react.memo_cache_sentinel")?(u=d.jsx(To,{size:16}),e[14]=u):u=e[14];let h;e[15]!==n||e[16]!==f?(h=d.jsxs(Xe,{size:"sm",onClick:n,className:"w-full gap-2 sm:w-auto sm:shrink-0",children:[f,u]}),e[15]=n,e[16]=f,e[17]=h):h=e[17];let p;return e[18]!==c||e[19]!==h?(p=d.jsxs("div",{className:"flex flex-col gap-3 rounded-xl bg-card p-4 card-shadow sm:flex-row sm:items-center sm:gap-4",children:[c,h]}),e[18]=c,e[19]=h,e[20]=p):p=e[20],p}function Cp({open:t,onOpenChange:e,cdClient:n,onExpired:r}){const s=ce(),[i,o]=v.useState(!1),a=async()=>{if(!n){r();return}o(!0);try{const l=await n.callTool({name:"start_checkout",arguments:{}}),{url:c}=cr(l);if(new URL(c).protocol!=="https:")throw new Error("unsafe checkout url");window.open(c,"_blank","noopener,noreferrer"),e(!1)}catch{r()}finally{o(!1)}};return d.jsx(Dr,{open:t,onOpenChange:e,children:d.jsxs(jr,{className:"gap-0 p-3 sm:max-w-[500px]",closeButtonClassName:"z-10 rounded-full bg-background/70 p-1 text-foreground backdrop-blur transition-colors hover:bg-background",children:[d.jsx("div",{className:"overflow-hidden rounded-xl bg-muted",children:d.jsx("img",{src:vp,alt:s("taskBoard.backlogPaywall.previewAlt"),className:"h-[208px] w-full object-cover object-left-top"})}),d.jsxs("div",{className:"flex flex-col gap-7 px-3 pb-3 pt-7",children:[d.jsxs("div",{className:"flex flex-col gap-5",children:[d.jsx(Tr,{className:"text-xl font-semibold text-foreground",children:s("taskBoard.backlogPaywall.modalTitle")}),d.jsx("ul",{className:"flex flex-col gap-3.5",children:wp.map(l=>d.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[d.jsx(_n,{size:18,className:"mt-0.5 shrink-0 text-success","aria-hidden":!0}),d.jsx("span",{className:"leading-snug text-foreground",children:s(l)})]},l))})]}),d.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[d.jsxs("div",{className:"flex items-baseline gap-2",children:[d.jsx("span",{className:"text-2xl font-semibold text-foreground",children:Hi.price}),d.jsx("span",{className:"text-sm text-muted-foreground line-through",children:Hi.anchor})]}),d.jsxs("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[d.jsx(Xe,{variant:"ghost",onClick:()=>e(!1),disabled:i,className:"order-2 w-full sm:order-none sm:w-auto",children:s("taskBoard.backlogPaywall.exploreButton")}),d.jsxs(Xe,{onClick:a,disabled:i,className:"order-1 w-full gap-2 sm:order-none sm:w-auto",children:[i?d.jsx(wr,{size:16,className:"animate-spin"}):null,s("taskBoard.backlogPaywall.unlockButton"),!i&&d.jsx(To,{size:16})]})]})]})]})]})})}function or(t){return`board-paywall-seen:${t}`}function Tp(){const t=L.c(26),{org:e}=_e(),n=no(),{diagnostic:r,cdClient:s,connectionId:i}=Pc();let o;t[0]!==e.id?(o=()=>({orgId:e.id,open:!sessionStorage.getItem(or(e.id))}),t[0]=e.id,t[1]=o):o=t[1];const[a,l]=v.useState(o);let c;t[2]!==a.open||t[3]!==a.orgId||t[4]!==e.id?(c=a.orgId===e.id?a.open:!sessionStorage.getItem(or(e.id)),t[2]=a.open,t[3]=a.orgId,t[4]=e.id,t[5]=c):c=t[5];const f=c;if(!r?.locked)return null;let u;t[6]!==e.id?(u=w=>l({orgId:e.id,open:w}),t[6]=e.id,t[7]=u):u=t[7];const h=u;let p;t[8]!==e.id||t[9]!==h?(p=w=>{h(w),w||sessionStorage.setItem(or(e.id),"1")},t[8]=e.id,t[9]=h,t[10]=p):p=t[10];const m=p;let y;t[11]!==i||t[12]!==n||t[13]!==e?(y=()=>{ii("board_paywall_report_opened",{organization_id:e.id}),n(Uc(e,i))},t[11]=i,t[12]=n,t[13]=e,t[14]=y):y=t[14];const x=y;let g;t[15]!==e.id||t[16]!==h?(g=d.jsx(Sp,{onOpen:()=>{ii("board_paywall_banner_clicked",{organization_id:e.id}),h(!0)}}),t[15]=e.id,t[16]=h,t[17]=g):g=t[17];let b;t[18]!==s||t[19]!==m||t[20]!==f||t[21]!==x?(b=d.jsx(Cp,{open:f,onOpenChange:m,cdClient:s,onExpired:x}),t[18]=s,t[19]=m,t[20]=f,t[21]=x,t[22]=b):b=t[22];let k;return t[23]!==g||t[24]!==b?(k=d.jsxs(d.Fragment,{children:[g,b]}),t[23]=g,t[24]=b,t[25]=k):k=t[25],k}function jp(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=d.jsx(Ha,{fallback:null,children:d.jsx(Tp,{})}),t[0]=e):e=t[0],e}Wa(()=>import("./index-CjKkPBSN.js").then(t=>t.bd),__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,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145])).catch(()=>{});function Dp(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=d.jsx("div",{className:"min-h-0 flex-1 pt-0 pr-1 pb-1 pl-0",children:d.jsx("div",{className:"h-full p-0.5 pt-0.25",children:d.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:d.jsx(za,{})})})}),t[0]=e):e=t[0],e}const Np=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function Rp(t){const e=new Date(t),n=e.getTime()<Date.now();return{label:Np.format(e),overdue:n}}const ds="inline-flex items-center gap-1.5 rounded-lg border border-border bg-background px-2 py-1 text-xs font-medium text-muted-foreground";function Aa(){const t=L.c(9),e=ce();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=Z(ds,"border-warning/30 text-warning"),t[0]=n):n=t[0];let r;t[1]!==e?(r=e("taskBoard.taskBoard.blockedBadgeTitle"),t[1]=e,t[2]=r):r=t[2];let s;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=d.jsx(Sr,{size:14}),t[3]=s):s=t[3];let i;t[4]!==e?(i=e("taskBoard.taskBoard.needsInput"),t[4]=e,t[5]=i):i=t[5];let o;return t[6]!==r||t[7]!==i?(o=d.jsxs("span",{className:n,title:r,children:[s,i]}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Ba(t){const e=L.c(10),{priority:n}=t,r=ce(),s=kt[n];let i;e[0]!==s.dotClassName?(i=Z("size-2 rounded-full",s.dotClassName),e[0]=s.dotClassName,e[1]=i):i=e[1];let o;e[2]!==i?(o=d.jsx("span",{className:i}),e[2]=i,e[3]=o):o=e[3];let a;e[4]!==s.labelKey||e[5]!==r?(a=r(s.labelKey),e[4]=s.labelKey,e[5]=r,e[6]=a):a=e[6];let l;return e[7]!==o||e[8]!==a?(l=d.jsxs("span",{className:ds,children:[o,a]}),e[7]=o,e[8]=a,e[9]=l):l=e[9],l}function Oa(t){const e=L.c(7),{iso:n}=t;let r,s;if(e[0]!==n){const{label:a,overdue:l}=Rp(n);r=a,s=Z(ds,l&&"border-destructive/30 text-destructive"),e[0]=n,e[1]=r,e[2]=s}else r=e[1],s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(Sn,{size:14}),e[3]=i):i=e[3];let o;return e[4]!==r||e[5]!==s?(o=d.jsxs("span",{className:s,children:[i,r]}),e[4]=r,e[5]=s,e[6]=o):o=e[6],o}function $a(t){const e=L.c(7),{tag:n}=t;let r;e[0]!==n.color?(r=ls(n.color),e[0]=n.color,e[1]=r):r=e[1];let s;e[2]!==r?(s=d.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:r}}),e[2]=r,e[3]=s):s=e[3];let i;return e[4]!==s||e[5]!==n.name?(i=d.jsxs("span",{className:ds,children:[s,n.name]}),e[4]=s,e[5]=n.name,e[6]=i):i=e[6],i}function Ma(t){const e=L.c(32),{item:n,assignee:r,assignedBy:s,members:i,onAssign:o}=t,a=ce(),[l,c]=v.useState(!1);if(n.assigneeId===nt){let b;e[0]!==s||e[1]!==a?(b=s?.user?.name?a("taskBoard.taskBoard.assignedToSuperAgentBy",{name:s.user.name}):a("taskBoard.taskBoard.assignedToSuperAgent"),e[0]=s,e[1]=a,e[2]=b):b=e[2];let k;e[3]!==s?(k=s&&d.jsx(Nt,{url:s.user?.image??void 0,fallback:Dt(s.user?.name),shape:"circle",size:"xs",className:"-mr-2 ring-2 ring-background"}),e[3]=s,e[4]=k):k=e[4];let w;e[5]===Symbol.for("react.memo_cache_sentinel")?(w=d.jsx(Ot,{size:20,className:"ring-2 ring-background"}),e[5]=w):w=e[5];let C;return e[6]!==b||e[7]!==k?(C=d.jsxs("span",{className:"inline-flex items-center",title:b,children:[k,w]}),e[6]=b,e[7]=k,e[8]=C):C=e[8],C}if(r){const b=r.user?.image??void 0,k=r.user?.name;let w;e[9]!==k?(w=Dt(k),e[9]=k,e[10]=w):w=e[10];let C;return e[11]!==b||e[12]!==w?(C=d.jsx(Nt,{url:b,fallback:w,shape:"circle",size:"xs"}),e[11]=b,e[12]=w,e[13]=C):C=e[13],C}if(!o||!i?.length)return null;let f;e[14]!==a?(f=a("taskBoard.taskBoard.assignButton"),e[14]=a,e[15]=f):f=e[15];let u;e[16]!==a?(u=a("taskBoard.taskBoard.assignButton"),e[16]=a,e[17]=u):u=e[17];let h;e[18]===Symbol.for("react.memo_cache_sentinel")?(h=b=>{b.stopPropagation(),c(!0)},e[18]=h):h=e[18];let p;e[19]===Symbol.for("react.memo_cache_sentinel")?(p=d.jsx(io,{size:13}),e[19]=p):p=e[19];let m;e[20]!==f||e[21]!==u?(m=d.jsx(wn,{asChild:!0,children:d.jsx("button",{type:"button",title:f,"aria-label":u,onClick:h,className:"flex size-6 shrink-0 items-center justify-center rounded-full border border-dashed border-muted-foreground/40 text-muted-foreground/40 transition-colors hover:border-muted-foreground hover:text-muted-foreground",children:p})}),e[20]=f,e[21]=u,e[22]=m):m=e[22];let y;e[23]!==o?(y=b=>{o(b),c(!1)},e[23]=o,e[24]=y):y=e[24];let x;e[25]!==i||e[26]!==y?(x=d.jsx(Gn,{className:"w-56 p-0",align:"end",side:"bottom",onClick:Ep,children:d.jsx(ri,{members:i,onSelect:y})}),e[25]=i,e[26]=y,e[27]=x):x=e[27];let g;return e[28]!==l||e[29]!==m||e[30]!==x?(g=d.jsxs(Qn,{open:l,onOpenChange:c,children:[m,x]}),e[28]=l,e[29]=m,e[30]=x,e[31]=g):g=e[31],g}function Ep(t){return t.stopPropagation()}function za(){const t=L.c(126),e=ce(),{items:n,isLoading:r}=zu(),s=Lu(),i=ec(),o=bl({slug:"mcp-github"})??[];let a;t[0]!==o?(a=o.some(Op),t[0]=o,t[1]=a):a=t[1];const l=a,[c,f]=v.useState(!1),[u,h]=v.useState(!1);let p;t[2]!==l?(p=z=>z===nt&&!l?(f(!0),!0):!1,t[2]=l,t[3]=p):p=t[3];const m=p,{data:y}=uo();let x,g;t[4]!==y?.data?.members?(x=y?.data?.members??[],g=new Map(x.map(Bp)),t[4]=y?.data?.members,t[5]=x,t[6]=g):(x=t[5],g=t[6]);const b=g,[k,w]=v.useState("board"),[C,j]=v.useState(zs);let S;t[7]===Symbol.for("react.memo_cache_sentinel")?(S=new Set,t[7]=S):S=t[7];const[T,N]=v.useState(S);let R;t[8]===Symbol.for("react.memo_cache_sentinel")?(R=z=>N(ie=>{const ke=new Set(ie);return ke.has(z)?ke.delete(z):ke.add(z),ke}),t[8]=R):R=t[8];const D=R,E=z=>N(ie=>{const ke=new Set(ie);for(const Ge of te)Ge.status===z&&ke.add(Ge.id);return ke});let M;t[9]===Symbol.for("react.memo_cache_sentinel")?(M=()=>N(new Set),t[9]=M):M=t[9];const A=M,[U,I]=v.useState(!1),[B,O]=v.useState(null),[K,Y]=v.useState(null),{setTaskId:P}=lc(),{create:q}=cc(),Q=In(),{org:G,locator:ee}=_e(),W=no();let ne;t[10]===Symbol.for("react.memo_cache_sentinel")?(ne={strict:!1},t[10]=ne):ne=t[10];const{task:J}=Ka(ne);let se;t[11]!==J||t[12]!==n?(se=J?n.find(z=>z.id===J)??null:null,t[11]=J,t[12]=n,t[13]=se):se=t[13];const $=se;let F;t[14]!==J||t[15]!==W||t[16]!==G?(F=()=>{J&&W({to:"/$org/board",params:{org:G.slug},search:{},replace:!0})},t[14]=J,t[15]=W,t[16]=G,t[17]=F):F=t[17];const X=F;let re;t[18]!==s||t[19]!==q||t[20]!==ee||t[21]!==G||t[22]!==P||t[23]!==Q?(re=async z=>{const ie=crypto.randomUUID(),ke=ul(G.id).id,Ge=await Q.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:z.id}).then(Ap).catch(_p),xt=dp(z,Ge),Kt={type:"doc",content:[{type:"paragraph",content:[Xl({id:z.id,name:z.title,char:"@",kind:"task",metadata:{title:z.title,description:z.description,context:xt}}),{type:"text",text:" "}]}]};hc(sessionStorage,ee,ie,Kt),I(!1);try{await q({id:ie,virtual_mcp_id:ke}),await s.link.mutateAsync({id:z.id,linkThreadId:ie})}catch{}P(ie,ke)},t[18]=s,t[19]=q,t[20]=ee,t[21]=G,t[22]=P,t[23]=Q,t[24]=re):re=t[24];const _=re;let V;t[25]!==C?(V=z=>gp(z,C),t[25]=C,t[26]=V):V=t[26];const te=n.filter(V);let le;t[27]===Symbol.for("react.memo_cache_sentinel")?(le=()=>{O(null),Y(null),I(!0)},t[27]=le):le=t[27];const je=le;let pe;t[28]===Symbol.for("react.memo_cache_sentinel")?(pe=z=>{O(null),Y(z),I(!0)},t[28]=pe):pe=t[28];const De=pe;let fe;t[29]===Symbol.for("react.memo_cache_sentinel")?(fe=z=>{O(z),I(!0)},t[29]=fe):fe=t[29];const Ee=fe;let ct;t[30]!==$||t[31]!==B||t[32]!==n?(ct=(B&&n.find(z=>z.id===B.id))??B??$,t[30]=$,t[31]=B,t[32]=n,t[33]=ct):ct=t[33];const be=ct,ge=U||!!$;let Le;t[34]!==X?(Le=()=>{I(!1),O(null),Y(null),X()},t[34]=X,t[35]=Le):Le=t[35];const me=Le;if(r&&n.length===0){let z;return t[36]===Symbol.for("react.memo_cache_sentinel")?(z=d.jsx("div",{className:"flex flex-1 items-center justify-center",children:d.jsx(wr,{size:20,className:"animate-spin text-muted-foreground"})}),t[36]=z):z=t[36],z}const gt="relative flex min-h-0 flex-1 flex-col";let Ke;t[37]!==e?(Ke=e("taskBoard.taskBoard.tasksTitle"),t[37]=e,t[38]=Ke):Ke=t[38];let Ae;t[39]!==Ke?(Ae=d.jsx("h1",{className:"text-xl font-medium text-foreground",children:Ke}),t[39]=Ke,t[40]=Ae):Ae=t[40];let We;t[41]!==i?(We=i&&d.jsx(jp,{}),t[41]=i,t[42]=We):We=t[42];let Ze;t[43]!==C||t[44]!==n.length||t[45]!==x?(Ze=n.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"sm:hidden",children:d.jsx(kp,{filters:C,members:x,onChange:j})}),d.jsx("div",{className:"hidden sm:block",children:d.jsx(yp,{filters:C,members:x,onChange:j})})]}),t[43]=C,t[44]=n.length,t[45]=x,t[46]=Ze):Ze=t[46];const mt=k==="list";let Fe;t[47]!==A?(Fe=()=>{w("list"),A()},t[47]=A,t[48]=Fe):Fe=t[48];let Ve;t[49]!==e?(Ve=e("common.taskBoard.listView"),t[49]=e,t[50]=Ve):Ve=t[50];let Je;t[51]!==mt||t[52]!==Fe||t[53]!==Ve?(Je=d.jsx(Ki,{active:mt,onClick:Fe,icon:ao,label:Ve}),t[51]=mt,t[52]=Fe,t[53]=Ve,t[54]=Je):Je=t[54];const dt=k==="board";let ut;t[55]===Symbol.for("react.memo_cache_sentinel")?(ut=()=>w("board"),t[55]=ut):ut=t[55];let et;t[56]!==e?(et=e("common.taskBoard.boardView"),t[56]=e,t[57]=et):et=t[57];let tt;t[58]!==dt||t[59]!==et?(tt=d.jsx(Ki,{active:dt,onClick:ut,icon:sl,label:et}),t[58]=dt,t[59]=et,t[60]=tt):tt=t[60];let de;t[61]!==Je||t[62]!==tt?(de=d.jsxs("div",{className:"inline-flex rounded-lg bg-muted p-0.5",children:[Je,tt]}),t[61]=Je,t[62]=tt,t[63]=de):de=t[63];let we;t[64]===Symbol.for("react.memo_cache_sentinel")?(we=d.jsx(Jn,{size:16}),t[64]=we):we=t[64];let xe;t[65]!==e?(xe=e("taskBoard.taskBoard.newTask"),t[65]=e,t[66]=xe):xe=t[66];let Ne;t[67]!==xe?(Ne=d.jsxs(Xe,{size:"sm",onClick:je,children:[we,xe]}),t[67]=xe,t[68]=Ne):Ne=t[68];let ye;t[69]!==de||t[70]!==Ne?(ye=d.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[de,Ne]}),t[69]=de,t[70]=Ne,t[71]=ye):ye=t[71];let Ce;t[72]!==Ze||t[73]!==ye?(Ce=d.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Ze,ye]}),t[72]=Ze,t[73]=ye,t[74]=Ce):Ce=t[74];let Te;t[75]!==Ae||t[76]!==We||t[77]!==Ce?(Te=d.jsxs("div",{className:"mx-auto flex w-full max-w-[1680px] flex-col gap-4 px-4 pt-6 sm:px-8 sm:pt-8",children:[Ae,We,Ce]}),t[75]=Ae,t[76]=We,t[77]=Ce,t[78]=Te):Te=t[78];const Ue=n.length===0?d.jsx("div",{className:"mx-auto w-full max-w-[1680px] px-4 pt-6 sm:px-8",children:d.jsx("div",{className:"rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:e("taskBoard.taskBoard.noTasksYet")})}):te.length===0?d.jsx("div",{className:"mx-auto w-full max-w-[1680px] px-4 pt-6 sm:px-8",children:d.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:[e("taskBoard.taskBoard.noTasksMatch"),d.jsx(Xe,{variant:"outline",size:"sm",onClick:()=>j(zs),children:e("taskBoard.taskBoard.clearFilters")})]})}):k==="board"?d.jsx(zp,{items:te,members:x,memberByUserId:b,selectedIds:T,onToggleSelect:D,onSelectAllInLane:E,onOpen:Ee,onCreate:De,onMove:(z,ie,ke)=>{const Ge=sa(ke,z.length);z.forEach((xt,Kt)=>s.update.mutate({id:xt,status:ie,sortOrder:Ge[Kt]}))},onAssign:(z,ie)=>{m(ie)||s.update.mutate({id:z,assigneeId:ie})},onAutoFix:i?z=>{m(nt)||s.update.mutate({id:z.id,assigneeId:nt})}:void 0}):d.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:d.jsx("div",{className:"mx-auto flex max-w-[820px] flex-col gap-2",children:te.map(z=>d.jsx(Vp,{item:z,assignee:z.assigneeId?b.get(z.assigneeId):void 0,assignedBy:z.assignedBy?b.get(z.assignedBy):void 0,onOpen:()=>Ee(z)},z.id))})}),he=ge?be?.id??`new-${K??"default"}`:"closed",Be=be??void 0,Ie=K??void 0,qe=s.create.isPending||s.update.isPending;let Oe;t[79]!==s.create||t[80]!==s.update||t[81]!==be||t[82]!==m||t[83]!==me?(Oe=z=>{if(m(z.assigneeId)){me();return}be?s.update.mutate({id:be.id,...z}):s.create.mutate(z),me()},t[79]=s.create,t[80]=s.update,t[81]=be,t[82]=m,t[83]=me,t[84]=Oe):Oe=t[84];let $e;t[85]!==s.remove||t[86]!==be||t[87]!==me?($e=be?()=>{s.remove.mutate(be.id),me()}:void 0,t[85]=s.remove,t[86]=be,t[87]=me,t[88]=$e):$e=t[88];let Re;t[89]!==be||t[90]!==_?(Re=be?()=>{_(be)}:void 0,t[89]=be,t[90]=_,t[91]=Re):Re=t[91];let Me;t[92]!==me||t[93]!==P?(Me=z=>{z.virtualMcpId&&(me(),P(z.threadId,z.virtualMcpId,{main:z.hasPreview?"preview":"board"}))},t[92]=me,t[93]=P,t[94]=Me):Me=t[94];let He;t[95]!==me||t[96]!==ge||t[97]!==he||t[98]!==Be||t[99]!==Ie||t[100]!==qe||t[101]!==Oe||t[102]!==$e||t[103]!==Re||t[104]!==Me?(He=d.jsx(Mh,{open:ge,onClose:me,item:Be,defaultStatus:Ie,isSaving:qe,onSubmit:Oe,onDelete:$e,onNewChat:Re,onOpenThread:Me},he),t[95]=me,t[96]=ge,t[97]=he,t[98]=Be,t[99]=Ie,t[100]=qe,t[101]=Oe,t[102]=$e,t[103]=Re,t[104]=Me,t[105]=He):He=t[105];let vt;t[106]===Symbol.for("react.memo_cache_sentinel")?(vt=()=>h(!0),t[106]=vt):vt=t[106];let It;t[107]!==c?(It=d.jsx($p,{open:c,onOpenChange:f,onConnected:vt}),t[107]=c,t[108]=It):It=t[108];let ft;t[109]!==u?(ft=d.jsx(hl,{mode:"connection",open:u,onOpenChange:h}),t[109]=u,t[110]=ft):ft=t[110];let ht;t[111]!==s.remove||t[112]!==s.update||t[113]!==m||t[114]!==A||t[115]!==n||t[116]!==x||t[117]!==T?(ht=T.size>0&&d.jsx(Mp,{count:T.size,members:x,onMoveTo:z=>{for(const ie of T)s.update.mutate({id:ie,status:z});A()},onSetPriority:z=>{for(const ie of T)s.update.mutate({id:ie,priority:z});A()},onAddTag:z=>{for(const ie of T){const ke=n.find(xt=>xt.id===ie);if(!ke)continue;const Ge=ke.tags.map(Ip);Ge.includes(z)||s.update.mutate({id:ie,tagIds:[...Ge,z]})}A()},onAssign:z=>{if(!m(z)){for(const ie of T)s.update.mutate({id:ie,assigneeId:z});A()}},onSetDueDate:z=>{const ie=Ea(z);for(const ke of T)s.update.mutate({id:ke,dueDate:ie});A()},onAutoFix:T.size>0&&Array.from(T).every(z=>{const ie=n.find(ke=>ke.id===z);return ie&&(ie.status==="triage"||ie.status==="todo")&&ie.assigneeId!==nt})?()=>{if(!m(nt)){for(const z of T)s.update.mutate({id:z,assigneeId:nt});A()}}:void 0,onDelete:()=>{for(const z of T)s.remove.mutate(z);A()},onClear:A}),t[111]=s.remove,t[112]=s.update,t[113]=m,t[114]=A,t[115]=n,t[116]=x,t[117]=T,t[118]=ht):ht=t[118];let wt;return t[119]!==Te||t[120]!==Ue||t[121]!==He||t[122]!==It||t[123]!==ft||t[124]!==ht?(wt=d.jsxs("div",{className:gt,children:[Te,Ue,He,It,ft,ht]}),t[119]=Te,t[120]=Ue,t[121]=He,t[122]=It,t[123]=ft,t[124]=ht,t[125]=wt):wt=t[125],wt}function Ip(t){return t.id}function _p(){return[]}function Ap(t){return t.prs}function Bp(t){return[t.userId,t]}function Op(t){return t.status==="active"&&yl(t)!==null}function $p(t){const e=L.c(32),{open:n,onOpenChange:r,onConnected:s}=t,i=ce(),{connect:o,isConnecting:a}=bu("deco/mcp-github");let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=d.jsx("div",{className:"flex h-28 items-center justify-center bg-gradient-to-br from-muted via-muted to-accent",children:d.jsx("div",{className:"flex size-14 items-center justify-center rounded-2xl bg-foreground text-background shadow-sm",children:d.jsx(ar,{className:"size-7"})})}),e[0]=l):l=e[0];let c;e[1]!==i?(c=i("taskBoard.taskBoard.connectGithubTitle"),e[1]=i,e[2]=c):c=e[2];let f;e[3]!==c?(f=d.jsx(Tr,{children:c}),e[3]=c,e[4]=f):f=e[4];let u;e[5]!==i?(u=i("taskBoard.taskBoard.connectGithubDescription"),e[5]=i,e[6]=u):u=e[6];let h;e[7]!==u?(h=d.jsx(pl,{children:u}),e[7]=u,e[8]=h):h=e[8];let p;e[9]!==f||e[10]!==h?(p=d.jsxs(gl,{children:[f,h]}),e[9]=f,e[10]=h,e[11]=p):p=e[11];let m;e[12]!==o||e[13]!==s||e[14]!==r?(m=async()=>{await o(),r(!1),s()},e[12]=o,e[13]=s,e[14]=r,e[15]=m):m=e[15];let y;e[16]!==a?(y=a?d.jsx(wr,{size:16,className:"animate-spin"}):d.jsx(ar,{className:"size-4"}),e[16]=a,e[17]=y):y=e[17];let x;e[18]!==i?(x=i("taskBoard.taskBoard.connectGithubButton"),e[18]=i,e[19]=x):x=e[19];let g;e[20]!==a||e[21]!==m||e[22]!==y||e[23]!==x?(g=d.jsx(ml,{children:d.jsxs(Xe,{onClick:m,disabled:a,className:"gap-2",children:[y,x]})}),e[20]=a,e[21]=m,e[22]=y,e[23]=x,e[24]=g):g=e[24];let b;e[25]!==g||e[26]!==p?(b=d.jsxs(jr,{className:"gap-0 overflow-hidden p-0 sm:max-w-md",children:[l,d.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[p,g]})]}),e[25]=g,e[26]=p,e[27]=b):b=e[27];let k;return e[28]!==r||e[29]!==n||e[30]!==b?(k=d.jsx(Dr,{open:n,onOpenChange:r,children:b}),e[28]=r,e[29]=n,e[30]=b,e[31]=k):k=e[31],k}function Mp(t){const e=L.c(91),{count:n,members:r,onMoveTo:s,onSetPriority:i,onAddTag:o,onAssign:a,onSetDueDate:l,onAutoFix:c,onDelete:f,onClear:u}=t,h=ce(),{data:p}=ho();let m;e[0]!==p?(m=p===void 0?[]:p,e[0]=p,e[1]=m):m=e[1];const y=m;let x;e[2]!==n||e[3]!==h?(x=h("taskBoard.taskBoard.selectedCount",{count:n}),e[2]=n,e[3]=h,e[4]=x):x=e[4];let g;e[5]!==x?(g=d.jsx("span",{className:"pl-1 text-sm font-medium text-foreground",children:x}),e[5]=x,e[6]=g):g=e[6];let b;e[7]!==h?(b=h("taskBoard.taskBoard.actionsButton"),e[7]=h,e[8]=b):b=e[8];let k;e[9]!==b?(k=d.jsx(jn,{asChild:!0,children:d.jsx("button",{type:"button",className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:b})}),e[9]=b,e[10]=k):k=e[10];let w;e[11]!==h?(w=h("taskBoard.taskBoard.moveToButton"),e[11]=h,e[12]=w):w=e[12];let C;e[13]!==w?(C=d.jsx(Ln,{children:w}),e[13]=w,e[14]=C):C=e[14];let j;e[15]!==s||e[16]!==h?(j=As.map(_=>d.jsx(jt,{onClick:()=>s(_),children:h(yt[_].labelKey)},_)),e[15]=s,e[16]=h,e[17]=j):j=e[17];let S;e[18]!==j?(S=d.jsx(Pn,{children:j}),e[18]=j,e[19]=S):S=e[19];let T;e[20]!==S||e[21]!==C?(T=d.jsxs(zn,{children:[C,S]}),e[20]=S,e[21]=C,e[22]=T):T=e[22];let N;e[23]!==h?(N=h("taskBoard.taskBoard.changePriorityButton"),e[23]=h,e[24]=N):N=e[24];let R;e[25]!==N?(R=d.jsx(Ln,{children:N}),e[25]=N,e[26]=R):R=e[26];let D;e[27]!==i||e[28]!==h?(D=Kr.map(_=>d.jsxs(jt,{onClick:()=>i(_),children:[d.jsx("span",{className:Z("size-2 rounded-full",kt[_].dotClassName)}),h(kt[_].labelKey)]},_)),e[27]=i,e[28]=h,e[29]=D):D=e[29];let E;e[30]!==D?(E=d.jsx(Pn,{children:D}),e[30]=D,e[31]=E):E=e[31];let M;e[32]!==R||e[33]!==E?(M=d.jsxs(zn,{children:[R,E]}),e[32]=R,e[33]=E,e[34]=M):M=e[34];let A;e[35]!==h?(A=h("taskBoard.taskBoard.assignButton"),e[35]=h,e[36]=A):A=e[36];let U;e[37]!==A?(U=d.jsx(Ln,{children:A}),e[37]=A,e[38]=U):U=e[38];let I;e[39]!==r||e[40]!==a?(I=d.jsx(Pn,{className:"w-56 p-0",children:d.jsx(ri,{members:r,onSelect:a})}),e[39]=r,e[40]=a,e[41]=I):I=e[41];let B;e[42]!==U||e[43]!==I?(B=d.jsxs(zn,{children:[U,I]}),e[42]=U,e[43]=I,e[44]=B):B=e[44];let O;e[45]!==h?(O=h("taskBoard.taskBoard.dueDateButton"),e[45]=h,e[46]=O):O=e[46];let K;e[47]!==O?(K=d.jsx(Ln,{children:O}),e[47]=O,e[48]=K):K=e[48];let Y;e[49]!==l?(Y=d.jsx(Pn,{className:"w-auto p-0",children:d.jsx(vo,{mode:"single",onSelect:_=>_&&l(_),initialFocus:!0})}),e[49]=l,e[50]=Y):Y=e[50];let P;e[51]!==K||e[52]!==Y?(P=d.jsxs(zn,{children:[K,Y]}),e[51]=K,e[52]=Y,e[53]=P):P=e[53];let q;e[54]!==o||e[55]!==y||e[56]!==h?(q=y.length>0&&d.jsxs(zn,{children:[d.jsx(Ln,{children:h("taskBoard.taskBoard.addTagButton")}),d.jsx(Pn,{children:y.map(_=>d.jsxs(jt,{onClick:()=>o(_.id),children:[d.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:ls(_.color)}}),_.name]},_.id))})]}),e[54]=o,e[55]=y,e[56]=h,e[57]=q):q=e[57];let Q;e[58]===Symbol.for("react.memo_cache_sentinel")?(Q=d.jsx(rl,{}),e[58]=Q):Q=e[58];let G;e[59]!==h?(G=h("taskBoard.taskBoard.deleteSelectedButton"),e[59]=h,e[60]=G):G=e[60];let ee;e[61]!==f||e[62]!==G?(ee=d.jsx(jt,{variant:"destructive",onClick:f,children:G}),e[61]=f,e[62]=G,e[63]=ee):ee=e[63];let W;e[64]!==T||e[65]!==M||e[66]!==B||e[67]!==P||e[68]!==q||e[69]!==ee?(W=d.jsxs(Dn,{align:"center",side:"top",children:[T,M,B,P,q,Q,ee]}),e[64]=T,e[65]=M,e[66]=B,e[67]=P,e[68]=q,e[69]=ee,e[70]=W):W=e[70];let ne;e[71]!==W||e[72]!==k?(ne=d.jsxs(Nn,{children:[k,W]}),e[71]=W,e[72]=k,e[73]=ne):ne=e[73];let J;e[74]!==c||e[75]!==h?(J=c&&d.jsxs("button",{type:"button",onClick:c,className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[d.jsx(Cr,{size:14}),h("taskBoard.taskBoard.autoFix")]}),e[74]=c,e[75]=h,e[76]=J):J=e[76];let se;e[77]!==h?(se=h("taskBoard.taskBoard.clearSelectionButton"),e[77]=h,e[78]=se):se=e[78];let $;e[79]!==h?($=h("taskBoard.taskBoard.clearSelectionButton"),e[79]=h,e[80]=$):$=e[80];let F;e[81]===Symbol.for("react.memo_cache_sentinel")?(F=d.jsx(Cn,{size:16}),e[81]=F):F=e[81];let X;e[82]!==u||e[83]!==se||e[84]!==$?(X=d.jsx("button",{type:"button","aria-label":se,title:$,onClick:u,className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:F}),e[82]=u,e[83]=se,e[84]=$,e[85]=X):X=e[85];let re;return e[86]!==ne||e[87]!==J||e[88]!==X||e[89]!==g?(re=d.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-6 z-20 flex justify-center",children:d.jsxs("div",{className:"pointer-events-auto flex items-center gap-2 rounded-full bg-background px-3 py-2 card-shadow",children:[g,ne,J,X]})}),e[86]=ne,e[87]=J,e[88]=X,e[89]=g,e[90]=re):re=e[90],re}function Ki(t){const e=L.c(14),{active:n,onClick:r,icon:s,label:i}=t,o=ce();let a;e[0]!==i||e[1]!==o?(a=o("taskBoard.taskBoard.layoutViewAriaLabel",{label:i}),e[0]=i,e[1]=o,e[2]=a):a=e[2];const l=n?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground";let c;e[3]!==l?(c=Z("flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors",l),e[3]=l,e[4]=c):c=e[4];let f;e[5]!==s?(f=d.jsx(s,{size:14}),e[5]=s,e[6]=f):f=e[6];let u;return e[7]!==n||e[8]!==i||e[9]!==r||e[10]!==a||e[11]!==c||e[12]!==f?(u=d.jsxs("button",{type:"button",onClick:r,"aria-label":a,"aria-pressed":n,className:c,children:[f,i]}),e[7]=n,e[8]=i,e[9]=r,e[10]=a,e[11]=c,e[12]=f,e[13]=u):u=e[13],u}const Vn="lane:";function Wi(t,e){return t.sortOrder-e.sortOrder}function zp(t){const e=L.c(30),{items:n,members:r,memberByUserId:s,selectedIds:i,onToggleSelect:o,onSelectAllInLane:a,onOpen:l,onCreate:c,onMove:f,onAutoFix:u,onAssign:h}=t,[p,m]=v.useState(null);let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y=[],e[0]=y):y=e[0];const[x,g]=v.useState(y);let b;e[1]===Symbol.for("react.memo_cache_sentinel")?(b=new Map,e[1]=b):b=e[1];const[k,w]=v.useState(b),C=v.useRef(null),j=k.size>0?n.map(_=>{const V=k.get(_.id);return V?{..._,...V}:_}):n;if(k.size>0&&!p){const _=[...k].filter(V=>{const[te,le]=V,je=n.find(pe=>pe.id===te);return je?.status===le.status&&je.sortOrder===le.sortOrder});_.length>0&&w(V=>{const te=new Map(V);for(const[le]of _)te.delete(le);return te})}cp(C,j.map(Up).join(","),p===null);const S=_=>j.filter(V=>V.status===_).sort(Wi),T=_=>{if(_===void 0)return null;const V=String(_);if(V.startsWith(Vn)){const te=V.slice(Vn.length);return As.find(le=>le===te)??null}return j.find(te=>te.id===V)?.status??null};let N;e[2]!==i?(N=_=>i.has(_)&&i.size>1?[_,...Array.from(i).filter(V=>V!==_)]:[_],e[2]=i,e[3]=N):N=e[3];const R=N;let D;e[4]===Symbol.for("react.memo_cache_sentinel")?(D=(_,V,te)=>{const le=sa(te,_.length);w(je=>{const pe=new Map(je);return _.forEach((De,fe)=>pe.set(De,{status:V,sortOrder:le[fe]})),pe})},e[4]=D):D=e[4];const E=D;let M;e[5]===Symbol.for("react.memo_cache_sentinel")?(M={activationConstraint:{distance:4}},e[5]=M):M=e[5];let A;e[6]===Symbol.for("react.memo_cache_sentinel")?(A={coordinateGetter:Ou},e[6]=A):A=e[6];const U=sd(di(Fr,M),di(Lr,A)),I=_=>{const V=String(_.active.id),te=T(_.over?.id),le=j.find(fe=>fe.id===V);if(!te||!le||le.status===te)return;const je=R(V),pe=String(_.over?.id??""),De=S(te).filter(fe=>!je.includes(fe.id));E(je,te,Ti(De,pe.startsWith(Vn)?null:pe,V))},B=_=>{const V=String(_.active.id);m(null);const te=T(_.over?.id)??j.find(ge=>ge.id===V)?.status;if(!te){w(new Map);return}const le=R(V),je=S(te),pe=String(_.over?.id??""),De=je.findIndex(ge=>ge.id===V),fe=pe.startsWith(Vn)?je.length-1:je.findIndex(ge=>ge.id===pe),it=De===-1||fe===-1?je:qr(je,De,fe);if(n.filter(ge=>ge.status===te).sort(Wi).map(Fp).join()===it.map(Pp).join()){w(new Map);return}const ct=it.slice(it.findIndex(ge=>ge.id===V)+1).find(ge=>!le.includes(ge.id)),be=Ti(je.filter(ge=>!le.includes(ge.id)),ct?.id??null,V);E(le,te,be),g(le),f(le,te,be)},O=p?j.find(_=>_.id===p):null;let K;e[7]!==p||e[8]!==R?(K=p?R(p):[],e[7]=p,e[8]=R,e[9]=K):K=e[9];const Y=K,P=Jd,q=Bo;let Q;e[10]===Symbol.for("react.memo_cache_sentinel")?(Q=_=>{m(String(_.active.id)),g([])},e[10]=Q):Q=e[10];let G;e[11]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{m(null),w(new Map)},e[11]=G):G=e[11];const ee=As.map(_=>d.jsx(qp,{status:_,items:S(_),members:r,memberByUserId:s,selectedIds:i,isTarget:O?.status===_,hiddenIds:Y,landedIds:x,onToggleSelect:o,onSelectAllInLane:a,onOpen:l,onCreate:c,onAutoFix:u,onAssign:h},_));let W;e[12]!==ee?(W=d.jsx("div",{ref:C,className:"min-h-0 flex-1 overflow-x-auto",children:d.jsx("div",{className:"mx-auto flex h-full w-full max-w-[1680px] gap-3 px-4 pt-6 sm:px-8",children:ee})}),e[12]=ee,e[13]=W):W=e[13];const ne=Ut.createPortal,J=xu,se=null,$=O&&d.jsxs("div",{className:"relative w-[292px] cursor-grabbing",children:[d.jsx(La,{item:O,assignee:O.assigneeId?s.get(O.assigneeId):void 0,assignedBy:O.assignedBy?s.get(O.assignedBy):void 0,selected:i.has(O.id),onOpen:Lp,className:"w-full shadow-lg"}),Y.length>1&&d.jsx("span",{className:"absolute -top-2 -right-2 flex h-5 min-w-5 items-center justify-center rounded-full bg-foreground px-1.5 text-[11px] font-semibold text-background",children:Y.length})]});let F;e[14]!==J||e[15]!==$?(F=d.jsx(J,{dropAnimation:se,children:$}),e[14]=J,e[15]=$,e[16]=F):F=e[16];let X;e[17]!==ne||e[18]!==F?(X=ne(F,document.body),e[17]=ne,e[18]=F,e[19]=X):X=e[19];let re;return e[20]!==P||e[21]!==B||e[22]!==I||e[23]!==U||e[24]!==G||e[25]!==W||e[26]!==X||e[27]!==q||e[28]!==Q?(re=d.jsxs(P,{sensors:U,collisionDetection:q,onDragStart:Q,onDragOver:I,onDragEnd:B,onDragCancel:G,children:[W,X]}),e[20]=P,e[21]=B,e[22]=I,e[23]=U,e[24]=G,e[25]=W,e[26]=X,e[27]=q,e[28]=Q,e[29]=re):re=e[29],re}function Lp(){}function Pp(t){return t.id}function Fp(t){return t.id}function Up(t){return`${t.id}:${t.status}`}function qp(t){const e=L.c(91),{status:n,items:r,members:s,memberByUserId:i,selectedIds:o,isTarget:a,hiddenIds:l,landedIds:c,onToggleSelect:f,onSelectAllInLane:u,onOpen:h,onCreate:p,onAutoFix:m,onAssign:y}=t,x=ce(),g=yt[n],b=g.icon,k=`${Vn}${n}`;let w;e[0]!==k?(w={id:k},e[0]=k,e[1]=w):w=e[1];const{setNodeRef:C}=Yo(w),j=a&&"bg-muted/50";let S;e[2]!==j?(S=Z("flex h-full w-[300px] shrink-0 flex-col rounded-xl py-1 transition-colors",j),e[2]=j,e[3]=S):S=e[3];const T=a?"bg-muted":"bg-background";let N;e[4]!==T?(N=Z("sticky top-0 z-10 flex items-center gap-2 px-2 py-1.5 transition-colors",T),e[4]=T,e[5]=N):N=e[5];let R;e[6]!==g.iconClassName?(R=Z("shrink-0",g.iconClassName.replace(/\banimate-\S+\b/g,"").trim()),e[6]=g.iconClassName,e[7]=R):R=e[7];let D;e[8]!==b||e[9]!==R?(D=d.jsx(b,{size:15,className:R}),e[8]=b,e[9]=R,e[10]=D):D=e[10];let E;e[11]!==g.labelKey||e[12]!==x?(E=x(g.labelKey),e[11]=g.labelKey,e[12]=x,e[13]=E):E=e[13];let M;e[14]!==E?(M=d.jsx("span",{className:"text-sm font-medium text-foreground",children:E}),e[14]=E,e[15]=M):M=e[15];let A;e[16]!==r.length?(A=d.jsx("span",{className:"rounded-md bg-muted px-1.5 text-[11px] font-medium text-muted-foreground",children:r.length}),e[16]=r.length,e[17]=A):A=e[17];let U;e[18]!==g.labelKey||e[19]!==x?(U=x("taskBoard.taskBoard.laneMenuAriaLabel",{lane:x(g.labelKey)}),e[18]=g.labelKey,e[19]=x,e[20]=U):U=e[20];let I;e[21]===Symbol.for("react.memo_cache_sentinel")?(I=d.jsx(ro,{size:15}),e[21]=I):I=e[21];let B;e[22]!==U?(B=d.jsx(jn,{asChild:!0,children:d.jsx("button",{type:"button","aria-label":U,className:"ml-auto flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:I})}),e[22]=U,e[23]=B):B=e[23];let O;e[24]!==u||e[25]!==n?(O=()=>u(n),e[24]=u,e[25]=n,e[26]=O):O=e[26];let K;e[27]!==x?(K=x("taskBoard.taskBoard.selectAllInLane"),e[27]=x,e[28]=K):K=e[28];let Y;e[29]!==O||e[30]!==K?(Y=d.jsx(Dn,{align:"end",children:d.jsx(jt,{onClick:O,children:K})}),e[29]=O,e[30]=K,e[31]=Y):Y=e[31];let P;e[32]!==B||e[33]!==Y?(P=d.jsxs(Nn,{children:[B,Y]}),e[32]=B,e[33]=Y,e[34]=P):P=e[34];let q;e[35]!==g.labelKey||e[36]!==x?(q=x("taskBoard.taskBoard.newTaskInLaneAriaLabel",{lane:x(g.labelKey)}),e[35]=g.labelKey,e[36]=x,e[37]=q):q=e[37];let Q;e[38]!==g.labelKey||e[39]!==x?(Q=x("taskBoard.taskBoard.newTaskInLaneTitle",{lane:x(g.labelKey)}),e[38]=g.labelKey,e[39]=x,e[40]=Q):Q=e[40];let G;e[41]!==p||e[42]!==n?(G=()=>p(n),e[41]=p,e[42]=n,e[43]=G):G=e[43];let ee;e[44]===Symbol.for("react.memo_cache_sentinel")?(ee=d.jsx(Jn,{size:15}),e[44]=ee):ee=e[44];let W;e[45]!==q||e[46]!==Q||e[47]!==G?(W=d.jsx("button",{type:"button","aria-label":q,title:Q,onClick:G,className:"flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:ee}),e[45]=q,e[46]=Q,e[47]=G,e[48]=W):W=e[48];let ne;e[49]!==M||e[50]!==A||e[51]!==P||e[52]!==W||e[53]!==N||e[54]!==D?(ne=d.jsxs("div",{className:N,children:[D,M,A,P,W]}),e[49]=M,e[50]=A,e[51]=P,e[52]=W,e[53]=N,e[54]=D,e[55]=ne):ne=e[55];let J;e[56]!==r?(J=r.map(Hp),e[56]=r,e[57]=J):J=e[57];let se;if(e[58]!==l||e[59]!==r||e[60]!==c||e[61]!==i||e[62]!==s||e[63]!==y||e[64]!==m||e[65]!==h||e[66]!==f||e[67]!==o){let re;e[69]!==l||e[70]!==c||e[71]!==i||e[72]!==s||e[73]!==y||e[74]!==m||e[75]!==h||e[76]!==f||e[77]!==o?(re=_=>d.jsx(Kp,{item:_,assignee:_.assigneeId?i.get(_.assigneeId):void 0,assignedBy:_.assignedBy?i.get(_.assignedBy):void 0,members:s,selected:o.has(_.id),hidden:l.includes(_.id),landed:c.includes(_.id),onToggleSelect:()=>f(_.id),onOpen:()=>h(_),onAutoFix:m?()=>m(_):void 0,onAssign:y?V=>y(_.id,V):void 0},_.id),e[69]=l,e[70]=c,e[71]=i,e[72]=s,e[73]=y,e[74]=m,e[75]=h,e[76]=f,e[77]=o,e[78]=re):re=e[78],se=r.map(re),e[58]=l,e[59]=r,e[60]=c,e[61]=i,e[62]=s,e[63]=y,e[64]=m,e[65]=h,e[66]=f,e[67]=o,e[68]=se}else se=e[68];let $;e[79]!==J||e[80]!==se?($=d.jsx(Tu,{items:J,strategy:Su,children:se}),e[79]=J,e[80]=se,e[81]=$):$=e[81];let F;e[82]!==C||e[83]!==n||e[84]!==$?(F=d.jsx("div",{ref:C,"data-lane-scroll":n,className:"flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto px-1 pt-1 pb-16 [scrollbar-width:thin] [&::-webkit-scrollbar]:w-1",children:$}),e[82]=C,e[83]=n,e[84]=$,e[85]=F):F=e[85];let X;return e[86]!==n||e[87]!==ne||e[88]!==F||e[89]!==S?(X=d.jsxs("div",{"data-lane":n,className:S,children:[ne,F]}),e[86]=n,e[87]=ne,e[88]=F,e[89]=S,e[90]=X):X=e[90],X}function Hp(t){return t.id}function Kp(t){const e=L.c(29);let n,r,s,i;e[0]!==t?({item:r,hidden:n,landed:s,...i}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=i):(n=e[1],r=e[2],s=e[3],i=e[4]);let o;e[5]!==r.id?(o={id:r.id},e[5]=r.id,e[6]=o):o=e[6];const{attributes:a,listeners:l,setNodeRef:c,transform:f,transition:u,isDragging:h}=_u(o),p=r.id,m=r.status;let y;e[7]!==a||e[8]!==l?(y={attributes:a,listeners:l},e[7]=a,e[8]=l,e[9]=y):y=e[9];const x=s&&"animate-card-land";let g;e[10]!==x?(g=Z("w-full",x),e[10]=x,e[11]=g):g=e[11];let b;e[12]!==f?(b=Ht.Translate.toString(f),e[12]=f,e[13]=b):b=e[13];const k=h||n?0:void 0;let w;e[14]!==b||e[15]!==k||e[16]!==u?(w={transform:b,transition:u,opacity:k},e[14]=b,e[15]=k,e[16]=u,e[17]=w):w=e[17];let C;e[18]!==r||e[19]!==i||e[20]!==c||e[21]!==y||e[22]!==g||e[23]!==w?(C=d.jsx(La,{...i,item:r,dragRef:c,bindings:y,className:g,style:w}),e[18]=r,e[19]=i,e[20]=c,e[21]=y,e[22]=g,e[23]=w,e[24]=C):C=e[24];let j;return e[25]!==r.id||e[26]!==r.status||e[27]!==C?(j=d.jsx("div",{className:"flex","data-flip-id":p,"data-flip-lane":m,children:C}),e[25]=r.id,e[26]=r.status,e[27]=C,e[28]=j):j=e[28],j}function La(t){const e=L.c(43),{item:n,assignee:r,assignedBy:s,members:i,selected:o,className:a,dragRef:l,bindings:c,style:f,onToggleSelect:u,onOpen:h,onAutoFix:p,onAssign:m}=t,y=ce(),x=yt[n.status].icon,g=Pu(n)?.lastMessage,b=p&&(n.status==="triage"||n.status==="todo")&&n.assigneeId!==nt,k=c?.attributes,w=c?.listeners;let C;e[0]!==h||e[1]!==u?(C=O=>{O.shiftKey&&u?u():h()},e[0]=h,e[1]=u,e[2]=C):C=e[2];const j=o&&"bg-accent";let S;e[3]!==a||e[4]!==j?(S=Z("group flex shrink-0 cursor-grab flex-col gap-2 rounded-xl bg-card px-3 py-2.5 text-left card-shadow hover:bg-accent/60 active:cursor-grabbing",j,a),e[3]=a,e[4]=j,e[5]=S):S=e[5];const T=n.title;let N;e[6]!==n?(N=Z("mt-px shrink-0",Hr(n)),e[6]=n,e[7]=N):N=e[7];let R;e[8]!==x||e[9]!==N?(R=d.jsx(x,{size:16,className:N}),e[8]=x,e[9]=N,e[10]=R):R=e[10];let D;e[11]!==n.title?(D=d.jsx("span",{className:"min-w-0 flex-1 text-sm font-medium leading-snug text-foreground line-clamp-2",children:n.title}),e[11]=n.title,e[12]=D):D=e[12];let E;e[13]!==s||e[14]!==r||e[15]!==n||e[16]!==i||e[17]!==m?(E=d.jsx(Ma,{item:n,assignee:r,assignedBy:s,members:i,onAssign:m}),e[13]=s,e[14]=r,e[15]=n,e[16]=i,e[17]=m,e[18]=E):E=e[18];let M;e[19]!==E||e[20]!==R||e[21]!==D?(M=d.jsxs("div",{className:"flex items-start gap-2",children:[R,D,E]}),e[19]=E,e[20]=R,e[21]=D,e[22]=M):M=e[22];let A;e[23]!==g?(A=g&&d.jsx("p",{className:"line-clamp-2 pl-6 text-xs leading-snug text-muted-foreground",children:g}),e[23]=g,e[24]=A):A=e[24];let U;e[25]!==n?(U=(_s(n)||n.priority!=="none"||!!n.dueDate||n.tags.length>0)&&d.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 pl-6",children:[_s(n)&&d.jsx(Aa,{}),n.priority!=="none"&&d.jsx(Ba,{priority:n.priority}),n.dueDate&&d.jsx(Oa,{iso:n.dueDate}),n.tags.map(Wp)]}),e[25]=n,e[26]=U):U=e[26];let I;e[27]!==p||e[28]!==b||e[29]!==y?(I=b&&d.jsxs("button",{type:"button",onClick:O=>{O.stopPropagation(),p()},className:"flex items-center gap-1.5 self-end rounded-md border border-border bg-background px-2 py-1 text-xs font-medium text-foreground transition-colors hover:bg-accent",children:[d.jsx(Cr,{size:12}),y("taskBoard.taskBoard.autoFix")]}),e[27]=p,e[28]=b,e[29]=y,e[30]=I):I=e[30];let B;return e[31]!==l||e[32]!==n.title||e[33]!==f||e[34]!==k||e[35]!==M||e[36]!==A||e[37]!==U||e[38]!==I||e[39]!==w||e[40]!==C||e[41]!==S?(B=d.jsxs("button",{type:"button",ref:l,style:f,...k,...w,onClick:C,className:S,title:T,children:[M,A,U,I]}),e[31]=l,e[32]=n.title,e[33]=f,e[34]=k,e[35]=M,e[36]=A,e[37]=U,e[38]=I,e[39]=w,e[40]=C,e[41]=S,e[42]=B):B=e[42],B}function Wp(t){return d.jsx($a,{tag:t},t.id)}function Vp(t){const e=L.c(33),{item:n,assignee:r,assignedBy:s,onOpen:i}=t,o=yt[n.status].icon;let a;e[0]!==n?(a=Z("shrink-0",Hr(n)),e[0]=n,e[1]=a):a=e[1];let l;e[2]!==o||e[3]!==a?(l=d.jsx(o,{size:16,className:a}),e[2]=o,e[3]=a,e[4]=l):l=e[4];let c;e[5]!==n.title?(c=d.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:n.title}),e[5]=n.title,e[6]=c):c=e[6];let f;e[7]!==n?(f=_s(n)&&d.jsx(Aa,{}),e[7]=n,e[8]=f):f=e[8];let u;e[9]!==n.priority?(u=n.priority!=="none"&&d.jsx("span",{className:"hidden sm:inline-flex",children:d.jsx(Ba,{priority:n.priority})}),e[9]=n.priority,e[10]=u):u=e[10];let h;e[11]!==n.dueDate?(h=n.dueDate&&d.jsx("span",{className:"hidden sm:inline-flex",children:d.jsx(Oa,{iso:n.dueDate})}),e[11]=n.dueDate,e[12]=h):h=e[12];let p;e[13]!==n.tags?(p=n.tags.length>0&&d.jsxs("span",{className:"hidden items-center gap-1.5 sm:inline-flex",children:[n.tags.slice(0,2).map(Gp),n.tags.length>2&&d.jsxs("span",{className:ds,children:["+",n.tags.length-2]})]}),e[13]=n.tags,e[14]=p):p=e[14];let m;e[15]!==s||e[16]!==r||e[17]!==n?(m=d.jsx(Ma,{item:n,assignee:r,assignedBy:s}),e[15]=s,e[16]=r,e[17]=n,e[18]=m):m=e[18];let y;e[19]!==n.createdAt?(y=fo(new Date(n.createdAt)),e[19]=n.createdAt,e[20]=y):y=e[20];let x;e[21]!==y?(x=d.jsx("span",{className:"hidden shrink-0 text-[11px] text-muted-foreground/70 sm:inline",children:y}),e[21]=y,e[22]=x):x=e[22];let g;return e[23]!==i||e[24]!==x||e[25]!==l||e[26]!==c||e[27]!==f||e[28]!==u||e[29]!==h||e[30]!==p||e[31]!==m?(g=d.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-3 rounded-xl bg-card px-4 py-3 text-left card-shadow transition-colors hover:bg-accent/60",children:[l,c,f,u,h,p,m,x]}),e[23]=i,e[24]=x,e[25]=l,e[26]=c,e[27]=f,e[28]=u,e[29]=h,e[30]=p,e[31]=m,e[32]=g):g=e[32],g}function Gp(t){return d.jsx($a,{tag:t},t.id)}const lm=Object.freeze(Object.defineProperty({__proto__:null,TaskBoardPage:za,default:Dp},Symbol.toStringTag,{value:"Module"}));export{lm as $,Ou as A,qr as B,Ht as C,Jd as D,zu as E,Lu as F,yt as G,Ug as H,kt as I,Ot as J,Lr as K,at as L,rm as M,Vg as N,im as O,Fr as P,Qg as Q,am as R,vc as S,Mh as T,Bc as U,Gg as V,Zg as W,nm as X,Xg as Y,za as Z,Zo as _,wc as a,Wg as b,em as c,uc as d,Hg as e,tm as f,Oc as g,sm as h,gc as i,Yg as j,Jg as k,Pc as l,Mc as m,Uc as n,sd as o,di as p,xu as q,qg as r,nu as s,bu as t,Kg as u,om as v,hc as w,Tu as x,Su as y,_u as z};
|
|
77
|
+
`)}const vr="__unassigned__",zs={assignee:null,priority:null,due:null};function up(t){return t.assignee!==null||t.priority!==null||t.due!==null}function fp(t){return(t.assignee!==null?1:0)+(t.priority!==null?1:0)+(t.due!==null?1:0)}const hp=864e5;function pp(t,e){const n=new Date(t),r=new Date(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}function gp(t,e){if(e.assignee!==null){if(e.assignee===vr){if(t.assigneeId!==null)return!1}else if(t.assigneeId!==e.assignee)return!1}if(e.priority!==null&&t.priority!==e.priority)return!1;if(e.due!==null)if(e.due==="none"){if(t.dueDate)return!1}else{if(!t.dueDate)return!1;const n=new Date(t.dueDate).getTime(),r=Date.now();if(e.due==="overdue"&&n>=r||e.due==="today"&&!pp(n,r)||e.due==="week"&&(n<r||n>r+7*hp))return!1}return!0}const qi={overdue:"taskBoard.taskFilters.dueDateFilterOverdue",today:"taskBoard.taskFilters.dueDateFilterDueToday",week:"taskBoard.taskFilters.dueDateFilterDueThisWeek",none:"taskBoard.taskFilters.dueDateFilterNoDueDate"};function Qs(t,e=!1){return Z("inline-flex h-8 items-center gap-1.5 rounded-lg border px-2.5 text-xs font-medium outline-none transition-colors",e&&"h-10 w-full justify-start px-3 text-sm",t?"border-transparent bg-accent text-foreground":"border-border text-muted-foreground hover:bg-muted/60 hover:text-foreground")}function mp(t){const e=L.c(95),{value:n,members:r,onChange:s,block:i}=t,o=ce(),[a,l]=v.useState(!1);let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=d.jsx(lr,{size:14,className:"shrink-0"}),e[0]=c):c=e[0];let f=c,u;e[1]!==o?(u=o("taskBoard.taskFilters.assigneeLabel"),e[1]=o,e[2]=u):u=e[2];let h=u;if(n===vr){let $;e[3]!==o?($=o("taskBoard.taskFilters.assigneeUnassigned"),e[3]=o,e[4]=$):$=e[4],h=$}else if(n===nt){let $;e[5]===Symbol.for("react.memo_cache_sentinel")?($=d.jsx(Ot,{size:14}),e[5]=$):$=e[5],f=$;let F;e[6]!==o?(F=o("taskBoard.taskFilters.assigneeSuperAgent"),e[6]=o,e[7]=F):F=e[7],h=F}else if(n){let $,F,X,re;if(e[8]!==r||e[9]!==n){let te;e[14]!==n?(te=le=>le.userId===n,e[14]=n,e[15]=te):te=e[15],F=r.find(te),$=Nt,X=F?.user?.image??void 0,re=Dt(F?.user?.name),e[8]=r,e[9]=n,e[10]=$,e[11]=F,e[12]=X,e[13]=re}else $=e[10],F=e[11],X=e[12],re=e[13];let _;e[16]!==$||e[17]!==X||e[18]!==re?(_=d.jsx($,{url:X,fallback:re,shape:"circle",size:"2xs"}),e[16]=$,e[17]=X,e[18]=re,e[19]=_):_=e[19],f=_;let V;e[20]!==F?.user?.name||e[21]!==o?(V=F?.user?.name??o("taskBoard.taskFilters.assigneeMember"),e[20]=F?.user?.name,e[21]=o,e[22]=V):V=e[22],h=V}let p;e[23]!==s?(p=$=>{s($),l(!1)},e[23]=s,e[24]=p):p=e[24];const m=p,y=n!==null;let x;e[25]!==i||e[26]!==y?(x=Qs(y,i),e[25]=i,e[26]=y,e[27]=x):x=e[27];const g=x,b=i&&"ml-auto";let k;e[28]!==b?(k=Z("shrink-0 opacity-60",b),e[28]=b,e[29]=k):k=e[29];const w=k;let C;e[30]!==h?(C=d.jsx("span",{className:"max-w-[10rem] truncate",children:h}),e[30]=h,e[31]=C):C=e[31];let j;e[32]!==w?(j=d.jsx(Br,{size:12,className:w}),e[32]=w,e[33]=j):j=e[33];let S;e[34]!==f||e[35]!==C||e[36]!==j||e[37]!==g?(S=d.jsx(wn,{asChild:!0,children:d.jsxs("button",{type:"button",className:g,children:[f,C,j]})}),e[34]=f,e[35]=C,e[36]=j,e[37]=g,e[38]=S):S=e[38];let T;e[39]!==o?(T=o("taskBoard.taskFilters.assigneeFilterPlaceholder"),e[39]=o,e[40]=T):T=e[40];let N;e[41]!==T?(N=d.jsx(Er,{placeholder:T,className:"h-9"}),e[41]=T,e[42]=N):N=e[42];let R;e[43]!==o?(R=o("taskBoard.taskFilters.assigneeNoMembersFound"),e[43]=o,e[44]=R):R=e[44];let D;e[45]!==R?(D=d.jsx(Ir,{children:R}),e[45]=R,e[46]=D):D=e[46];let E;e[47]!==m?(E=()=>m(null),e[47]=m,e[48]=E):E=e[48];let M;e[49]!==o?(M=o("taskBoard.taskFilters.assigneeAnyone"),e[49]=o,e[50]=M):M=e[50];let A;e[51]!==E||e[52]!==M?(A=d.jsx(Pt,{value:"Anyone",onSelect:E,children:M}),e[51]=E,e[52]=M,e[53]=A):A=e[53];let U;e[54]!==m?(U=()=>m(vr),e[54]=m,e[55]=U):U=e[55];let I;e[56]===Symbol.for("react.memo_cache_sentinel")?(I=d.jsx(lr,{size:16,className:"text-muted-foreground"}),e[56]=I):I=e[56];let B;e[57]!==o?(B=o("taskBoard.taskFilters.assigneeUnassigned"),e[57]=o,e[58]=B):B=e[58];let O;e[59]!==U||e[60]!==B?(O=d.jsxs(Pt,{value:"Unassigned",onSelect:U,className:"gap-2",children:[I,B]}),e[59]=U,e[60]=B,e[61]=O):O=e[61];let K;e[62]!==m?(K=()=>m(nt),e[62]=m,e[63]=K):K=e[63];let Y;e[64]===Symbol.for("react.memo_cache_sentinel")?(Y=d.jsx(Ot,{size:16}),e[64]=Y):Y=e[64];let P;e[65]!==o?(P=o("taskBoard.taskFilters.assigneeSuperAgent"),e[65]=o,e[66]=P):P=e[66];let q;e[67]!==K||e[68]!==P?(q=d.jsxs(Pt,{value:"Super Agent",onSelect:K,className:"gap-2",children:[Y,P]}),e[67]=K,e[68]=P,e[69]=q):q=e[69];let Q;e[70]!==A||e[71]!==O||e[72]!==q?(Q=d.jsxs(Rn,{children:[A,O,q]}),e[70]=A,e[71]=O,e[72]=q,e[73]=Q):Q=e[73];let G;e[74]!==o?(G=o("taskBoard.taskFilters.assigneeGroupMembers"),e[74]=o,e[75]=G):G=e[75];let ee;if(e[76]!==r||e[77]!==m){let $;e[79]!==m?($=F=>d.jsxs(Pt,{value:F.user?.name??F.userId,onSelect:()=>m(F.userId),className:"gap-2",children:[d.jsx(Nt,{url:F.user?.image??void 0,fallback:Dt(F.user?.name),shape:"circle",size:"2xs"}),d.jsx("span",{className:"truncate",children:F.user?.name??F.userId})]},F.userId),e[79]=m,e[80]=$):$=e[80],ee=r.map($),e[76]=r,e[77]=m,e[78]=ee}else ee=e[78];let W;e[81]!==G||e[82]!==ee?(W=d.jsx(Rn,{heading:G,children:ee}),e[81]=G,e[82]=ee,e[83]=W):W=e[83];let ne;e[84]!==D||e[85]!==Q||e[86]!==W?(ne=d.jsxs(_r,{children:[D,Q,W]}),e[84]=D,e[85]=Q,e[86]=W,e[87]=ne):ne=e[87];let J;e[88]!==N||e[89]!==ne?(J=d.jsx(Gn,{align:"start",className:"w-56 p-0",children:d.jsxs(Ar,{children:[N,ne]})}),e[88]=N,e[89]=ne,e[90]=J):J=e[90];let se;return e[91]!==a||e[92]!==S||e[93]!==J?(se=d.jsxs(Qn,{open:a,onOpenChange:l,children:[S,J]}),e[91]=a,e[92]=S,e[93]=J,e[94]=se):se=e[94],se}function xp(t){const e=L.c(33),{value:n,onChange:r,block:s}=t,i=ce(),o=n!==null;let a;e[0]!==s||e[1]!==o?(a=Qs(o,s),e[0]=s,e[1]=o,e[2]=a):a=e[2];const l=a,c=s&&"ml-auto";let f;e[3]!==c?(f=Z("shrink-0 opacity-60",c),e[3]=c,e[4]=f):f=e[4];const u=f;let h;e[5]!==n?(h=n?d.jsx("span",{className:Z("size-2 shrink-0 rounded-full",kt[n].dotClassName)}):d.jsx(ac,{size:14,className:"shrink-0"}),e[5]=n,e[6]=h):h=e[6];let p;e[7]!==i||e[8]!==n?(p=i(n?kt[n].labelKey:"taskBoard.taskFilters.priorityLabel"),e[7]=i,e[8]=n,e[9]=p):p=e[9];let m;e[10]!==u?(m=d.jsx(Br,{size:12,className:u}),e[10]=u,e[11]=m):m=e[11];let y;e[12]!==h||e[13]!==p||e[14]!==m||e[15]!==l?(y=d.jsx(jn,{asChild:!0,children:d.jsxs("button",{type:"button",className:l,children:[h,p,m]})}),e[12]=h,e[13]=p,e[14]=m,e[15]=l,e[16]=y):y=e[16];let x;e[17]!==r?(x=()=>r(null),e[17]=r,e[18]=x):x=e[18];let g;e[19]!==i?(g=i("taskBoard.taskFilters.priorityAnyPriority"),e[19]=i,e[20]=g):g=e[20];let b;e[21]!==g||e[22]!==x?(b=d.jsx(jt,{onSelect:x,children:g}),e[21]=g,e[22]=x,e[23]=b):b=e[23];let k;e[24]!==r||e[25]!==i?(k=Kr.map(j=>d.jsxs(jt,{onSelect:()=>r(j),className:"gap-2",children:[d.jsx("span",{className:Z("size-2 rounded-full",kt[j].dotClassName)}),i(kt[j].labelKey)]},j)),e[24]=r,e[25]=i,e[26]=k):k=e[26];let w;e[27]!==b||e[28]!==k?(w=d.jsxs(Dn,{align:"start",className:"w-40",children:[b,k]}),e[27]=b,e[28]=k,e[29]=w):w=e[29];let C;return e[30]!==w||e[31]!==y?(C=d.jsxs(Nn,{children:[y,w]}),e[30]=w,e[31]=y,e[32]=C):C=e[32],C}function bp(t){const e=L.c(35),{value:n,onChange:r,block:s}=t,i=ce();let o;e[0]!==i||e[1]!==n?(o=n?i(qi[n]):void 0,e[0]=i,e[1]=n,e[2]=o):o=e[2];const a=o,l=n!==null;let c;e[3]!==s||e[4]!==l?(c=Qs(l,s),e[3]=s,e[4]=l,e[5]=c):c=e[5];const f=c,u=s&&"ml-auto";let h;e[6]!==u?(h=Z("shrink-0 opacity-60",u),e[6]=u,e[7]=h):h=e[7];const p=h;let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=d.jsx(Sn,{size:14,className:"shrink-0"}),e[8]=m):m=e[8];let y;e[9]!==a||e[10]!==i?(y=a??i("taskBoard.taskFilters.dueDateLabel"),e[9]=a,e[10]=i,e[11]=y):y=e[11];let x;e[12]!==p?(x=d.jsx(Br,{size:12,className:p}),e[12]=p,e[13]=x):x=e[13];let g;e[14]!==y||e[15]!==x||e[16]!==f?(g=d.jsx(jn,{asChild:!0,children:d.jsxs("button",{type:"button",className:f,children:[m,y,x]})}),e[14]=y,e[15]=x,e[16]=f,e[17]=g):g=e[17];let b;e[18]!==r?(b=()=>r(null),e[18]=r,e[19]=b):b=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=d.jsx(Sn,{size:16,className:"text-muted-foreground"}),e[20]=k):k=e[20];let w;e[21]!==i?(w=i("taskBoard.taskFilters.dueDateAnyTime"),e[21]=i,e[22]=w):w=e[22];let C;e[23]!==b||e[24]!==w?(C=d.jsxs(jt,{onSelect:b,className:"gap-2",children:[k,w]}),e[23]=b,e[24]=w,e[25]=C):C=e[25];let j;e[26]!==r||e[27]!==i?(j=Object.entries(qi).map(N=>{const[R,D]=N,E=R==="overdue";return d.jsxs(jt,{onSelect:()=>r(R),className:Z("gap-2",E&&"text-destructive"),children:[d.jsx(Sn,{size:16,className:Z("shrink-0",E?"text-destructive":"text-muted-foreground")}),i(D)]},R)}),e[26]=r,e[27]=i,e[28]=j):j=e[28];let S;e[29]!==C||e[30]!==j?(S=d.jsxs(Dn,{align:"start",className:"w-44",children:[C,j]}),e[29]=C,e[30]=j,e[31]=S):S=e[31];let T;return e[32]!==S||e[33]!==g?(T=d.jsxs(Nn,{children:[g,S]}),e[32]=S,e[33]=g,e[34]=T):T=e[34],T}function _a(t){const e=L.c(26),{filters:n,members:r,onChange:s,block:i}=t;let o;e[0]!==n||e[1]!==s?(o=p=>s({...n,assignee:p}),e[0]=n,e[1]=s,e[2]=o):o=e[2];let a;e[3]!==i||e[4]!==n.assignee||e[5]!==r||e[6]!==o?(a=d.jsx(mp,{block:i,value:n.assignee,members:r,onChange:o}),e[3]=i,e[4]=n.assignee,e[5]=r,e[6]=o,e[7]=a):a=e[7];let l;e[8]!==n||e[9]!==s?(l=p=>s({...n,priority:p}),e[8]=n,e[9]=s,e[10]=l):l=e[10];let c;e[11]!==i||e[12]!==n.priority||e[13]!==l?(c=d.jsx(xp,{block:i,value:n.priority,onChange:l}),e[11]=i,e[12]=n.priority,e[13]=l,e[14]=c):c=e[14];let f;e[15]!==n||e[16]!==s?(f=p=>s({...n,due:p}),e[15]=n,e[16]=s,e[17]=f):f=e[17];let u;e[18]!==i||e[19]!==n.due||e[20]!==f?(u=d.jsx(bp,{block:i,value:n.due,onChange:f}),e[18]=i,e[19]=n.due,e[20]=f,e[21]=u):u=e[21];let h;return e[22]!==a||e[23]!==c||e[24]!==u?(h=d.jsxs(d.Fragment,{children:[a,c,u]}),e[22]=a,e[23]=c,e[24]=u,e[25]=h):h=e[25],h}function yp(t){const e=L.c(12),{filters:n,members:r,onChange:s}=t,i=ce();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=d.jsx(Do,{size:16,className:"mr-0.5 shrink-0 text-muted-foreground"}),e[0]=o):o=e[0];let a;e[1]!==n||e[2]!==r||e[3]!==s?(a=d.jsx(_a,{filters:n,members:r,onChange:s}),e[1]=n,e[2]=r,e[3]=s,e[4]=a):a=e[4];let l;e[5]!==n||e[6]!==s||e[7]!==i?(l=up(n)&&d.jsx("button",{type:"button",onClick:()=>s(zs),className:"ml-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:i("taskBoard.taskFilters.clearButton")}),e[5]=n,e[6]=s,e[7]=i,e[8]=l):l=e[8];let c;return e[9]!==a||e[10]!==l?(c=d.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[o,a,l]}),e[9]=a,e[10]=l,e[11]=c):c=e[11],c}function kp(t){const e=L.c(38),{filters:n,members:r,onChange:s}=t,i=ce(),[o,a]=v.useState(!1),l=fp(n),c=l>0;let f;e[0]!==c?(f=Qs(c),e[0]=c,e[1]=f):f=e[1];const u=f;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=d.jsx(Do,{size:14,className:"shrink-0"}),e[2]=h):h=e[2];let p;e[3]!==i?(p=i("taskBoard.taskFilters.filterDrawerButtonLabel"),e[3]=i,e[4]=p):p=e[4];let m;e[5]!==l?(m=l>0&&d.jsx("span",{className:"ml-0.5 flex size-4 items-center justify-center rounded-full bg-foreground text-[10px] font-semibold text-background",children:l}),e[5]=l,e[6]=m):m=e[6];let y;e[7]!==p||e[8]!==m||e[9]!==u?(y=d.jsx(tc,{asChild:!0,children:d.jsxs("button",{type:"button",className:u,children:[h,p,m]})}),e[7]=p,e[8]=m,e[9]=u,e[10]=y):y=e[10];let x;e[11]!==i?(x=i("taskBoard.taskFilters.filterDrawerTitle"),e[11]=i,e[12]=x):x=e[12];let g;e[13]!==x?(g=d.jsx(nc,{className:"px-4 pt-4 text-base font-medium text-foreground",children:x}),e[13]=x,e[14]=g):g=e[14];let b;e[15]!==n||e[16]!==r||e[17]!==s?(b=d.jsx("div",{className:"flex flex-col gap-2 p-4",children:d.jsx(_a,{block:!0,filters:n,members:r,onChange:s})}),e[15]=n,e[16]=r,e[17]=s,e[18]=b):b=e[18];let k;e[19]!==l||e[20]!==s||e[21]!==i?(k=l>0&&d.jsx(Xe,{variant:"outline",className:"flex-1",onClick:()=>s(zs),children:i("taskBoard.taskFilters.clearAllButton")}),e[19]=l,e[20]=s,e[21]=i,e[22]=k):k=e[22];let w;e[23]!==i?(w=i("taskBoard.taskFilters.doneButton"),e[23]=i,e[24]=w):w=e[24];let C;e[25]!==w?(C=d.jsx(sc,{asChild:!0,children:d.jsx(Xe,{className:"flex-1",children:w})}),e[25]=w,e[26]=C):C=e[26];let j;e[27]!==k||e[28]!==C?(j=d.jsxs(rc,{className:"flex-row gap-2",children:[k,C]}),e[27]=k,e[28]=C,e[29]=j):j=e[29];let S;e[30]!==j||e[31]!==g||e[32]!==b?(S=d.jsxs(ic,{className:"p-0",children:[g,b,j]}),e[30]=j,e[31]=g,e[32]=b,e[33]=S):S=e[33];let T;return e[34]!==o||e[35]!==S||e[36]!==y?(T=d.jsxs(oc,{open:o,onOpenChange:a,direction:"bottom",children:[y,S]}),e[34]=o,e[35]=S,e[36]=y,e[37]=T):T=e[37],T}const vp="https://decoims.com/image?src=decocms%2F7263a67f-fb83-410b-a5f2-e54e87deaaac%2Freport-kanban.png&quality=original&fit=cover",wp=["taskBoard.backlogPaywall.benefitPrioritizedTasks","taskBoard.backlogPaywall.benefitRecurringReport","taskBoard.backlogPaywall.benefitAgentResolves"],Hi={price:"R$ 99",anchor:"R$ 499"};function Sp(t){const e=L.c(21),{onOpen:n}=t,r=ce();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=d.jsx("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-success/10",children:d.jsx(Cr,{size:16,className:"text-success"})}),e[0]=s):s=e[0];let i;e[1]!==r?(i=r("taskBoard.backlogPaywall.bannerTitle"),e[1]=r,e[2]=i):i=e[2];let o;e[3]!==i?(o=d.jsx("span",{className:"text-sm font-medium text-foreground",children:i}),e[3]=i,e[4]=o):o=e[4];let a;e[5]!==r?(a=r("taskBoard.backlogPaywall.bannerSubtitle"),e[5]=r,e[6]=a):a=e[6];let l;e[7]!==a?(l=d.jsx("span",{className:"text-sm text-muted-foreground",children:a}),e[7]=a,e[8]=l):l=e[8];let c;e[9]!==o||e[10]!==l?(c=d.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3 sm:items-center",children:[s,d.jsxs("div",{className:"flex min-w-0 flex-col",children:[o,l]})]}),e[9]=o,e[10]=l,e[11]=c):c=e[11];let f;e[12]!==r?(f=r("taskBoard.backlogPaywall.unlockButton"),e[12]=r,e[13]=f):f=e[13];let u;e[14]===Symbol.for("react.memo_cache_sentinel")?(u=d.jsx(To,{size:16}),e[14]=u):u=e[14];let h;e[15]!==n||e[16]!==f?(h=d.jsxs(Xe,{size:"sm",onClick:n,className:"w-full gap-2 sm:w-auto sm:shrink-0",children:[f,u]}),e[15]=n,e[16]=f,e[17]=h):h=e[17];let p;return e[18]!==c||e[19]!==h?(p=d.jsxs("div",{className:"flex flex-col gap-3 rounded-xl bg-card p-4 card-shadow sm:flex-row sm:items-center sm:gap-4",children:[c,h]}),e[18]=c,e[19]=h,e[20]=p):p=e[20],p}function Cp({open:t,onOpenChange:e,cdClient:n,onExpired:r}){const s=ce(),[i,o]=v.useState(!1),a=async()=>{if(!n){r();return}o(!0);try{const l=await n.callTool({name:"start_checkout",arguments:{}}),{url:c}=cr(l);if(new URL(c).protocol!=="https:")throw new Error("unsafe checkout url");window.open(c,"_blank","noopener,noreferrer"),e(!1)}catch{r()}finally{o(!1)}};return d.jsx(Dr,{open:t,onOpenChange:e,children:d.jsxs(jr,{className:"gap-0 p-3 sm:max-w-[500px]",closeButtonClassName:"z-10 rounded-full bg-background/70 p-1 text-foreground backdrop-blur transition-colors hover:bg-background",children:[d.jsx("div",{className:"overflow-hidden rounded-xl bg-muted",children:d.jsx("img",{src:vp,alt:s("taskBoard.backlogPaywall.previewAlt"),className:"h-[208px] w-full object-cover object-left-top"})}),d.jsxs("div",{className:"flex flex-col gap-7 px-3 pb-3 pt-7",children:[d.jsxs("div",{className:"flex flex-col gap-5",children:[d.jsx(Tr,{className:"text-xl font-semibold text-foreground",children:s("taskBoard.backlogPaywall.modalTitle")}),d.jsx("ul",{className:"flex flex-col gap-3.5",children:wp.map(l=>d.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[d.jsx(_n,{size:18,className:"mt-0.5 shrink-0 text-success","aria-hidden":!0}),d.jsx("span",{className:"leading-snug text-foreground",children:s(l)})]},l))})]}),d.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[d.jsxs("div",{className:"flex items-baseline gap-2",children:[d.jsx("span",{className:"text-2xl font-semibold text-foreground",children:Hi.price}),d.jsx("span",{className:"text-sm text-muted-foreground line-through",children:Hi.anchor})]}),d.jsxs("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[d.jsx(Xe,{variant:"ghost",onClick:()=>e(!1),disabled:i,className:"order-2 w-full sm:order-none sm:w-auto",children:s("taskBoard.backlogPaywall.exploreButton")}),d.jsxs(Xe,{onClick:a,disabled:i,className:"order-1 w-full gap-2 sm:order-none sm:w-auto",children:[i?d.jsx(wr,{size:16,className:"animate-spin"}):null,s("taskBoard.backlogPaywall.unlockButton"),!i&&d.jsx(To,{size:16})]})]})]})]})]})})}function or(t){return`board-paywall-seen:${t}`}function Tp(){const t=L.c(26),{org:e}=_e(),n=no(),{diagnostic:r,cdClient:s,connectionId:i}=Pc();let o;t[0]!==e.id?(o=()=>({orgId:e.id,open:!sessionStorage.getItem(or(e.id))}),t[0]=e.id,t[1]=o):o=t[1];const[a,l]=v.useState(o);let c;t[2]!==a.open||t[3]!==a.orgId||t[4]!==e.id?(c=a.orgId===e.id?a.open:!sessionStorage.getItem(or(e.id)),t[2]=a.open,t[3]=a.orgId,t[4]=e.id,t[5]=c):c=t[5];const f=c;if(!r?.locked)return null;let u;t[6]!==e.id?(u=w=>l({orgId:e.id,open:w}),t[6]=e.id,t[7]=u):u=t[7];const h=u;let p;t[8]!==e.id||t[9]!==h?(p=w=>{h(w),w||sessionStorage.setItem(or(e.id),"1")},t[8]=e.id,t[9]=h,t[10]=p):p=t[10];const m=p;let y;t[11]!==i||t[12]!==n||t[13]!==e?(y=()=>{ii("board_paywall_report_opened",{organization_id:e.id}),n(Uc(e,i))},t[11]=i,t[12]=n,t[13]=e,t[14]=y):y=t[14];const x=y;let g;t[15]!==e.id||t[16]!==h?(g=d.jsx(Sp,{onOpen:()=>{ii("board_paywall_banner_clicked",{organization_id:e.id}),h(!0)}}),t[15]=e.id,t[16]=h,t[17]=g):g=t[17];let b;t[18]!==s||t[19]!==m||t[20]!==f||t[21]!==x?(b=d.jsx(Cp,{open:f,onOpenChange:m,cdClient:s,onExpired:x}),t[18]=s,t[19]=m,t[20]=f,t[21]=x,t[22]=b):b=t[22];let k;return t[23]!==g||t[24]!==b?(k=d.jsxs(d.Fragment,{children:[g,b]}),t[23]=g,t[24]=b,t[25]=k):k=t[25],k}function jp(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=d.jsx(Ha,{fallback:null,children:d.jsx(Tp,{})}),t[0]=e):e=t[0],e}Wa(()=>import("./index-BTg6jfKl.js").then(t=>t.bd),__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,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145])).catch(()=>{});function Dp(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=d.jsx("div",{className:"min-h-0 flex-1 pt-0 pr-1 pb-1 pl-0",children:d.jsx("div",{className:"h-full p-0.5 pt-0.25",children:d.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:d.jsx(za,{})})})}),t[0]=e):e=t[0],e}const Np=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function Rp(t){const e=new Date(t),n=e.getTime()<Date.now();return{label:Np.format(e),overdue:n}}const ds="inline-flex items-center gap-1.5 rounded-lg border border-border bg-background px-2 py-1 text-xs font-medium text-muted-foreground";function Aa(){const t=L.c(9),e=ce();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=Z(ds,"border-warning/30 text-warning"),t[0]=n):n=t[0];let r;t[1]!==e?(r=e("taskBoard.taskBoard.blockedBadgeTitle"),t[1]=e,t[2]=r):r=t[2];let s;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=d.jsx(Sr,{size:14}),t[3]=s):s=t[3];let i;t[4]!==e?(i=e("taskBoard.taskBoard.needsInput"),t[4]=e,t[5]=i):i=t[5];let o;return t[6]!==r||t[7]!==i?(o=d.jsxs("span",{className:n,title:r,children:[s,i]}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Ba(t){const e=L.c(10),{priority:n}=t,r=ce(),s=kt[n];let i;e[0]!==s.dotClassName?(i=Z("size-2 rounded-full",s.dotClassName),e[0]=s.dotClassName,e[1]=i):i=e[1];let o;e[2]!==i?(o=d.jsx("span",{className:i}),e[2]=i,e[3]=o):o=e[3];let a;e[4]!==s.labelKey||e[5]!==r?(a=r(s.labelKey),e[4]=s.labelKey,e[5]=r,e[6]=a):a=e[6];let l;return e[7]!==o||e[8]!==a?(l=d.jsxs("span",{className:ds,children:[o,a]}),e[7]=o,e[8]=a,e[9]=l):l=e[9],l}function Oa(t){const e=L.c(7),{iso:n}=t;let r,s;if(e[0]!==n){const{label:a,overdue:l}=Rp(n);r=a,s=Z(ds,l&&"border-destructive/30 text-destructive"),e[0]=n,e[1]=r,e[2]=s}else r=e[1],s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(Sn,{size:14}),e[3]=i):i=e[3];let o;return e[4]!==r||e[5]!==s?(o=d.jsxs("span",{className:s,children:[i,r]}),e[4]=r,e[5]=s,e[6]=o):o=e[6],o}function $a(t){const e=L.c(7),{tag:n}=t;let r;e[0]!==n.color?(r=ls(n.color),e[0]=n.color,e[1]=r):r=e[1];let s;e[2]!==r?(s=d.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:r}}),e[2]=r,e[3]=s):s=e[3];let i;return e[4]!==s||e[5]!==n.name?(i=d.jsxs("span",{className:ds,children:[s,n.name]}),e[4]=s,e[5]=n.name,e[6]=i):i=e[6],i}function Ma(t){const e=L.c(32),{item:n,assignee:r,assignedBy:s,members:i,onAssign:o}=t,a=ce(),[l,c]=v.useState(!1);if(n.assigneeId===nt){let b;e[0]!==s||e[1]!==a?(b=s?.user?.name?a("taskBoard.taskBoard.assignedToSuperAgentBy",{name:s.user.name}):a("taskBoard.taskBoard.assignedToSuperAgent"),e[0]=s,e[1]=a,e[2]=b):b=e[2];let k;e[3]!==s?(k=s&&d.jsx(Nt,{url:s.user?.image??void 0,fallback:Dt(s.user?.name),shape:"circle",size:"xs",className:"-mr-2 ring-2 ring-background"}),e[3]=s,e[4]=k):k=e[4];let w;e[5]===Symbol.for("react.memo_cache_sentinel")?(w=d.jsx(Ot,{size:20,className:"ring-2 ring-background"}),e[5]=w):w=e[5];let C;return e[6]!==b||e[7]!==k?(C=d.jsxs("span",{className:"inline-flex items-center",title:b,children:[k,w]}),e[6]=b,e[7]=k,e[8]=C):C=e[8],C}if(r){const b=r.user?.image??void 0,k=r.user?.name;let w;e[9]!==k?(w=Dt(k),e[9]=k,e[10]=w):w=e[10];let C;return e[11]!==b||e[12]!==w?(C=d.jsx(Nt,{url:b,fallback:w,shape:"circle",size:"xs"}),e[11]=b,e[12]=w,e[13]=C):C=e[13],C}if(!o||!i?.length)return null;let f;e[14]!==a?(f=a("taskBoard.taskBoard.assignButton"),e[14]=a,e[15]=f):f=e[15];let u;e[16]!==a?(u=a("taskBoard.taskBoard.assignButton"),e[16]=a,e[17]=u):u=e[17];let h;e[18]===Symbol.for("react.memo_cache_sentinel")?(h=b=>{b.stopPropagation(),c(!0)},e[18]=h):h=e[18];let p;e[19]===Symbol.for("react.memo_cache_sentinel")?(p=d.jsx(io,{size:13}),e[19]=p):p=e[19];let m;e[20]!==f||e[21]!==u?(m=d.jsx(wn,{asChild:!0,children:d.jsx("button",{type:"button",title:f,"aria-label":u,onClick:h,className:"flex size-6 shrink-0 items-center justify-center rounded-full border border-dashed border-muted-foreground/40 text-muted-foreground/40 transition-colors hover:border-muted-foreground hover:text-muted-foreground",children:p})}),e[20]=f,e[21]=u,e[22]=m):m=e[22];let y;e[23]!==o?(y=b=>{o(b),c(!1)},e[23]=o,e[24]=y):y=e[24];let x;e[25]!==i||e[26]!==y?(x=d.jsx(Gn,{className:"w-56 p-0",align:"end",side:"bottom",onClick:Ep,children:d.jsx(ri,{members:i,onSelect:y})}),e[25]=i,e[26]=y,e[27]=x):x=e[27];let g;return e[28]!==l||e[29]!==m||e[30]!==x?(g=d.jsxs(Qn,{open:l,onOpenChange:c,children:[m,x]}),e[28]=l,e[29]=m,e[30]=x,e[31]=g):g=e[31],g}function Ep(t){return t.stopPropagation()}function za(){const t=L.c(126),e=ce(),{items:n,isLoading:r}=zu(),s=Lu(),i=ec(),o=bl({slug:"mcp-github"})??[];let a;t[0]!==o?(a=o.some(Op),t[0]=o,t[1]=a):a=t[1];const l=a,[c,f]=v.useState(!1),[u,h]=v.useState(!1);let p;t[2]!==l?(p=z=>z===nt&&!l?(f(!0),!0):!1,t[2]=l,t[3]=p):p=t[3];const m=p,{data:y}=uo();let x,g;t[4]!==y?.data?.members?(x=y?.data?.members??[],g=new Map(x.map(Bp)),t[4]=y?.data?.members,t[5]=x,t[6]=g):(x=t[5],g=t[6]);const b=g,[k,w]=v.useState("board"),[C,j]=v.useState(zs);let S;t[7]===Symbol.for("react.memo_cache_sentinel")?(S=new Set,t[7]=S):S=t[7];const[T,N]=v.useState(S);let R;t[8]===Symbol.for("react.memo_cache_sentinel")?(R=z=>N(ie=>{const ke=new Set(ie);return ke.has(z)?ke.delete(z):ke.add(z),ke}),t[8]=R):R=t[8];const D=R,E=z=>N(ie=>{const ke=new Set(ie);for(const Ge of te)Ge.status===z&&ke.add(Ge.id);return ke});let M;t[9]===Symbol.for("react.memo_cache_sentinel")?(M=()=>N(new Set),t[9]=M):M=t[9];const A=M,[U,I]=v.useState(!1),[B,O]=v.useState(null),[K,Y]=v.useState(null),{setTaskId:P}=lc(),{create:q}=cc(),Q=In(),{org:G,locator:ee}=_e(),W=no();let ne;t[10]===Symbol.for("react.memo_cache_sentinel")?(ne={strict:!1},t[10]=ne):ne=t[10];const{task:J}=Ka(ne);let se;t[11]!==J||t[12]!==n?(se=J?n.find(z=>z.id===J)??null:null,t[11]=J,t[12]=n,t[13]=se):se=t[13];const $=se;let F;t[14]!==J||t[15]!==W||t[16]!==G?(F=()=>{J&&W({to:"/$org/board",params:{org:G.slug},search:{},replace:!0})},t[14]=J,t[15]=W,t[16]=G,t[17]=F):F=t[17];const X=F;let re;t[18]!==s||t[19]!==q||t[20]!==ee||t[21]!==G||t[22]!==P||t[23]!==Q?(re=async z=>{const ie=crypto.randomUUID(),ke=ul(G.id).id,Ge=await Q.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:z.id}).then(Ap).catch(_p),xt=dp(z,Ge),Kt={type:"doc",content:[{type:"paragraph",content:[Xl({id:z.id,name:z.title,char:"@",kind:"task",metadata:{title:z.title,description:z.description,context:xt}}),{type:"text",text:" "}]}]};hc(sessionStorage,ee,ie,Kt),I(!1);try{await q({id:ie,virtual_mcp_id:ke}),await s.link.mutateAsync({id:z.id,linkThreadId:ie})}catch{}P(ie,ke)},t[18]=s,t[19]=q,t[20]=ee,t[21]=G,t[22]=P,t[23]=Q,t[24]=re):re=t[24];const _=re;let V;t[25]!==C?(V=z=>gp(z,C),t[25]=C,t[26]=V):V=t[26];const te=n.filter(V);let le;t[27]===Symbol.for("react.memo_cache_sentinel")?(le=()=>{O(null),Y(null),I(!0)},t[27]=le):le=t[27];const je=le;let pe;t[28]===Symbol.for("react.memo_cache_sentinel")?(pe=z=>{O(null),Y(z),I(!0)},t[28]=pe):pe=t[28];const De=pe;let fe;t[29]===Symbol.for("react.memo_cache_sentinel")?(fe=z=>{O(z),I(!0)},t[29]=fe):fe=t[29];const Ee=fe;let ct;t[30]!==$||t[31]!==B||t[32]!==n?(ct=(B&&n.find(z=>z.id===B.id))??B??$,t[30]=$,t[31]=B,t[32]=n,t[33]=ct):ct=t[33];const be=ct,ge=U||!!$;let Le;t[34]!==X?(Le=()=>{I(!1),O(null),Y(null),X()},t[34]=X,t[35]=Le):Le=t[35];const me=Le;if(r&&n.length===0){let z;return t[36]===Symbol.for("react.memo_cache_sentinel")?(z=d.jsx("div",{className:"flex flex-1 items-center justify-center",children:d.jsx(wr,{size:20,className:"animate-spin text-muted-foreground"})}),t[36]=z):z=t[36],z}const gt="relative flex min-h-0 flex-1 flex-col";let Ke;t[37]!==e?(Ke=e("taskBoard.taskBoard.tasksTitle"),t[37]=e,t[38]=Ke):Ke=t[38];let Ae;t[39]!==Ke?(Ae=d.jsx("h1",{className:"text-xl font-medium text-foreground",children:Ke}),t[39]=Ke,t[40]=Ae):Ae=t[40];let We;t[41]!==i?(We=i&&d.jsx(jp,{}),t[41]=i,t[42]=We):We=t[42];let Ze;t[43]!==C||t[44]!==n.length||t[45]!==x?(Ze=n.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"sm:hidden",children:d.jsx(kp,{filters:C,members:x,onChange:j})}),d.jsx("div",{className:"hidden sm:block",children:d.jsx(yp,{filters:C,members:x,onChange:j})})]}),t[43]=C,t[44]=n.length,t[45]=x,t[46]=Ze):Ze=t[46];const mt=k==="list";let Fe;t[47]!==A?(Fe=()=>{w("list"),A()},t[47]=A,t[48]=Fe):Fe=t[48];let Ve;t[49]!==e?(Ve=e("common.taskBoard.listView"),t[49]=e,t[50]=Ve):Ve=t[50];let Je;t[51]!==mt||t[52]!==Fe||t[53]!==Ve?(Je=d.jsx(Ki,{active:mt,onClick:Fe,icon:ao,label:Ve}),t[51]=mt,t[52]=Fe,t[53]=Ve,t[54]=Je):Je=t[54];const dt=k==="board";let ut;t[55]===Symbol.for("react.memo_cache_sentinel")?(ut=()=>w("board"),t[55]=ut):ut=t[55];let et;t[56]!==e?(et=e("common.taskBoard.boardView"),t[56]=e,t[57]=et):et=t[57];let tt;t[58]!==dt||t[59]!==et?(tt=d.jsx(Ki,{active:dt,onClick:ut,icon:sl,label:et}),t[58]=dt,t[59]=et,t[60]=tt):tt=t[60];let de;t[61]!==Je||t[62]!==tt?(de=d.jsxs("div",{className:"inline-flex rounded-lg bg-muted p-0.5",children:[Je,tt]}),t[61]=Je,t[62]=tt,t[63]=de):de=t[63];let we;t[64]===Symbol.for("react.memo_cache_sentinel")?(we=d.jsx(Jn,{size:16}),t[64]=we):we=t[64];let xe;t[65]!==e?(xe=e("taskBoard.taskBoard.newTask"),t[65]=e,t[66]=xe):xe=t[66];let Ne;t[67]!==xe?(Ne=d.jsxs(Xe,{size:"sm",onClick:je,children:[we,xe]}),t[67]=xe,t[68]=Ne):Ne=t[68];let ye;t[69]!==de||t[70]!==Ne?(ye=d.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[de,Ne]}),t[69]=de,t[70]=Ne,t[71]=ye):ye=t[71];let Ce;t[72]!==Ze||t[73]!==ye?(Ce=d.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Ze,ye]}),t[72]=Ze,t[73]=ye,t[74]=Ce):Ce=t[74];let Te;t[75]!==Ae||t[76]!==We||t[77]!==Ce?(Te=d.jsxs("div",{className:"mx-auto flex w-full max-w-[1680px] flex-col gap-4 px-4 pt-6 sm:px-8 sm:pt-8",children:[Ae,We,Ce]}),t[75]=Ae,t[76]=We,t[77]=Ce,t[78]=Te):Te=t[78];const Ue=n.length===0?d.jsx("div",{className:"mx-auto w-full max-w-[1680px] px-4 pt-6 sm:px-8",children:d.jsx("div",{className:"rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:e("taskBoard.taskBoard.noTasksYet")})}):te.length===0?d.jsx("div",{className:"mx-auto w-full max-w-[1680px] px-4 pt-6 sm:px-8",children:d.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:[e("taskBoard.taskBoard.noTasksMatch"),d.jsx(Xe,{variant:"outline",size:"sm",onClick:()=>j(zs),children:e("taskBoard.taskBoard.clearFilters")})]})}):k==="board"?d.jsx(zp,{items:te,members:x,memberByUserId:b,selectedIds:T,onToggleSelect:D,onSelectAllInLane:E,onOpen:Ee,onCreate:De,onMove:(z,ie,ke)=>{const Ge=sa(ke,z.length);z.forEach((xt,Kt)=>s.update.mutate({id:xt,status:ie,sortOrder:Ge[Kt]}))},onAssign:(z,ie)=>{m(ie)||s.update.mutate({id:z,assigneeId:ie})},onAutoFix:i?z=>{m(nt)||s.update.mutate({id:z.id,assigneeId:nt})}:void 0}):d.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:d.jsx("div",{className:"mx-auto flex max-w-[820px] flex-col gap-2",children:te.map(z=>d.jsx(Vp,{item:z,assignee:z.assigneeId?b.get(z.assigneeId):void 0,assignedBy:z.assignedBy?b.get(z.assignedBy):void 0,onOpen:()=>Ee(z)},z.id))})}),he=ge?be?.id??`new-${K??"default"}`:"closed",Be=be??void 0,Ie=K??void 0,qe=s.create.isPending||s.update.isPending;let Oe;t[79]!==s.create||t[80]!==s.update||t[81]!==be||t[82]!==m||t[83]!==me?(Oe=z=>{if(m(z.assigneeId)){me();return}be?s.update.mutate({id:be.id,...z}):s.create.mutate(z),me()},t[79]=s.create,t[80]=s.update,t[81]=be,t[82]=m,t[83]=me,t[84]=Oe):Oe=t[84];let $e;t[85]!==s.remove||t[86]!==be||t[87]!==me?($e=be?()=>{s.remove.mutate(be.id),me()}:void 0,t[85]=s.remove,t[86]=be,t[87]=me,t[88]=$e):$e=t[88];let Re;t[89]!==be||t[90]!==_?(Re=be?()=>{_(be)}:void 0,t[89]=be,t[90]=_,t[91]=Re):Re=t[91];let Me;t[92]!==me||t[93]!==P?(Me=z=>{z.virtualMcpId&&(me(),P(z.threadId,z.virtualMcpId,{main:z.hasPreview?"preview":"board"}))},t[92]=me,t[93]=P,t[94]=Me):Me=t[94];let He;t[95]!==me||t[96]!==ge||t[97]!==he||t[98]!==Be||t[99]!==Ie||t[100]!==qe||t[101]!==Oe||t[102]!==$e||t[103]!==Re||t[104]!==Me?(He=d.jsx(Mh,{open:ge,onClose:me,item:Be,defaultStatus:Ie,isSaving:qe,onSubmit:Oe,onDelete:$e,onNewChat:Re,onOpenThread:Me},he),t[95]=me,t[96]=ge,t[97]=he,t[98]=Be,t[99]=Ie,t[100]=qe,t[101]=Oe,t[102]=$e,t[103]=Re,t[104]=Me,t[105]=He):He=t[105];let vt;t[106]===Symbol.for("react.memo_cache_sentinel")?(vt=()=>h(!0),t[106]=vt):vt=t[106];let It;t[107]!==c?(It=d.jsx($p,{open:c,onOpenChange:f,onConnected:vt}),t[107]=c,t[108]=It):It=t[108];let ft;t[109]!==u?(ft=d.jsx(hl,{mode:"connection",open:u,onOpenChange:h}),t[109]=u,t[110]=ft):ft=t[110];let ht;t[111]!==s.remove||t[112]!==s.update||t[113]!==m||t[114]!==A||t[115]!==n||t[116]!==x||t[117]!==T?(ht=T.size>0&&d.jsx(Mp,{count:T.size,members:x,onMoveTo:z=>{for(const ie of T)s.update.mutate({id:ie,status:z});A()},onSetPriority:z=>{for(const ie of T)s.update.mutate({id:ie,priority:z});A()},onAddTag:z=>{for(const ie of T){const ke=n.find(xt=>xt.id===ie);if(!ke)continue;const Ge=ke.tags.map(Ip);Ge.includes(z)||s.update.mutate({id:ie,tagIds:[...Ge,z]})}A()},onAssign:z=>{if(!m(z)){for(const ie of T)s.update.mutate({id:ie,assigneeId:z});A()}},onSetDueDate:z=>{const ie=Ea(z);for(const ke of T)s.update.mutate({id:ke,dueDate:ie});A()},onAutoFix:T.size>0&&Array.from(T).every(z=>{const ie=n.find(ke=>ke.id===z);return ie&&(ie.status==="triage"||ie.status==="todo")&&ie.assigneeId!==nt})?()=>{if(!m(nt)){for(const z of T)s.update.mutate({id:z,assigneeId:nt});A()}}:void 0,onDelete:()=>{for(const z of T)s.remove.mutate(z);A()},onClear:A}),t[111]=s.remove,t[112]=s.update,t[113]=m,t[114]=A,t[115]=n,t[116]=x,t[117]=T,t[118]=ht):ht=t[118];let wt;return t[119]!==Te||t[120]!==Ue||t[121]!==He||t[122]!==It||t[123]!==ft||t[124]!==ht?(wt=d.jsxs("div",{className:gt,children:[Te,Ue,He,It,ft,ht]}),t[119]=Te,t[120]=Ue,t[121]=He,t[122]=It,t[123]=ft,t[124]=ht,t[125]=wt):wt=t[125],wt}function Ip(t){return t.id}function _p(){return[]}function Ap(t){return t.prs}function Bp(t){return[t.userId,t]}function Op(t){return t.status==="active"&&yl(t)!==null}function $p(t){const e=L.c(32),{open:n,onOpenChange:r,onConnected:s}=t,i=ce(),{connect:o,isConnecting:a}=bu("deco/mcp-github");let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=d.jsx("div",{className:"flex h-28 items-center justify-center bg-gradient-to-br from-muted via-muted to-accent",children:d.jsx("div",{className:"flex size-14 items-center justify-center rounded-2xl bg-foreground text-background shadow-sm",children:d.jsx(ar,{className:"size-7"})})}),e[0]=l):l=e[0];let c;e[1]!==i?(c=i("taskBoard.taskBoard.connectGithubTitle"),e[1]=i,e[2]=c):c=e[2];let f;e[3]!==c?(f=d.jsx(Tr,{children:c}),e[3]=c,e[4]=f):f=e[4];let u;e[5]!==i?(u=i("taskBoard.taskBoard.connectGithubDescription"),e[5]=i,e[6]=u):u=e[6];let h;e[7]!==u?(h=d.jsx(pl,{children:u}),e[7]=u,e[8]=h):h=e[8];let p;e[9]!==f||e[10]!==h?(p=d.jsxs(gl,{children:[f,h]}),e[9]=f,e[10]=h,e[11]=p):p=e[11];let m;e[12]!==o||e[13]!==s||e[14]!==r?(m=async()=>{await o(),r(!1),s()},e[12]=o,e[13]=s,e[14]=r,e[15]=m):m=e[15];let y;e[16]!==a?(y=a?d.jsx(wr,{size:16,className:"animate-spin"}):d.jsx(ar,{className:"size-4"}),e[16]=a,e[17]=y):y=e[17];let x;e[18]!==i?(x=i("taskBoard.taskBoard.connectGithubButton"),e[18]=i,e[19]=x):x=e[19];let g;e[20]!==a||e[21]!==m||e[22]!==y||e[23]!==x?(g=d.jsx(ml,{children:d.jsxs(Xe,{onClick:m,disabled:a,className:"gap-2",children:[y,x]})}),e[20]=a,e[21]=m,e[22]=y,e[23]=x,e[24]=g):g=e[24];let b;e[25]!==g||e[26]!==p?(b=d.jsxs(jr,{className:"gap-0 overflow-hidden p-0 sm:max-w-md",children:[l,d.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[p,g]})]}),e[25]=g,e[26]=p,e[27]=b):b=e[27];let k;return e[28]!==r||e[29]!==n||e[30]!==b?(k=d.jsx(Dr,{open:n,onOpenChange:r,children:b}),e[28]=r,e[29]=n,e[30]=b,e[31]=k):k=e[31],k}function Mp(t){const e=L.c(91),{count:n,members:r,onMoveTo:s,onSetPriority:i,onAddTag:o,onAssign:a,onSetDueDate:l,onAutoFix:c,onDelete:f,onClear:u}=t,h=ce(),{data:p}=ho();let m;e[0]!==p?(m=p===void 0?[]:p,e[0]=p,e[1]=m):m=e[1];const y=m;let x;e[2]!==n||e[3]!==h?(x=h("taskBoard.taskBoard.selectedCount",{count:n}),e[2]=n,e[3]=h,e[4]=x):x=e[4];let g;e[5]!==x?(g=d.jsx("span",{className:"pl-1 text-sm font-medium text-foreground",children:x}),e[5]=x,e[6]=g):g=e[6];let b;e[7]!==h?(b=h("taskBoard.taskBoard.actionsButton"),e[7]=h,e[8]=b):b=e[8];let k;e[9]!==b?(k=d.jsx(jn,{asChild:!0,children:d.jsx("button",{type:"button",className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:b})}),e[9]=b,e[10]=k):k=e[10];let w;e[11]!==h?(w=h("taskBoard.taskBoard.moveToButton"),e[11]=h,e[12]=w):w=e[12];let C;e[13]!==w?(C=d.jsx(Ln,{children:w}),e[13]=w,e[14]=C):C=e[14];let j;e[15]!==s||e[16]!==h?(j=As.map(_=>d.jsx(jt,{onClick:()=>s(_),children:h(yt[_].labelKey)},_)),e[15]=s,e[16]=h,e[17]=j):j=e[17];let S;e[18]!==j?(S=d.jsx(Pn,{children:j}),e[18]=j,e[19]=S):S=e[19];let T;e[20]!==S||e[21]!==C?(T=d.jsxs(zn,{children:[C,S]}),e[20]=S,e[21]=C,e[22]=T):T=e[22];let N;e[23]!==h?(N=h("taskBoard.taskBoard.changePriorityButton"),e[23]=h,e[24]=N):N=e[24];let R;e[25]!==N?(R=d.jsx(Ln,{children:N}),e[25]=N,e[26]=R):R=e[26];let D;e[27]!==i||e[28]!==h?(D=Kr.map(_=>d.jsxs(jt,{onClick:()=>i(_),children:[d.jsx("span",{className:Z("size-2 rounded-full",kt[_].dotClassName)}),h(kt[_].labelKey)]},_)),e[27]=i,e[28]=h,e[29]=D):D=e[29];let E;e[30]!==D?(E=d.jsx(Pn,{children:D}),e[30]=D,e[31]=E):E=e[31];let M;e[32]!==R||e[33]!==E?(M=d.jsxs(zn,{children:[R,E]}),e[32]=R,e[33]=E,e[34]=M):M=e[34];let A;e[35]!==h?(A=h("taskBoard.taskBoard.assignButton"),e[35]=h,e[36]=A):A=e[36];let U;e[37]!==A?(U=d.jsx(Ln,{children:A}),e[37]=A,e[38]=U):U=e[38];let I;e[39]!==r||e[40]!==a?(I=d.jsx(Pn,{className:"w-56 p-0",children:d.jsx(ri,{members:r,onSelect:a})}),e[39]=r,e[40]=a,e[41]=I):I=e[41];let B;e[42]!==U||e[43]!==I?(B=d.jsxs(zn,{children:[U,I]}),e[42]=U,e[43]=I,e[44]=B):B=e[44];let O;e[45]!==h?(O=h("taskBoard.taskBoard.dueDateButton"),e[45]=h,e[46]=O):O=e[46];let K;e[47]!==O?(K=d.jsx(Ln,{children:O}),e[47]=O,e[48]=K):K=e[48];let Y;e[49]!==l?(Y=d.jsx(Pn,{className:"w-auto p-0",children:d.jsx(vo,{mode:"single",onSelect:_=>_&&l(_),initialFocus:!0})}),e[49]=l,e[50]=Y):Y=e[50];let P;e[51]!==K||e[52]!==Y?(P=d.jsxs(zn,{children:[K,Y]}),e[51]=K,e[52]=Y,e[53]=P):P=e[53];let q;e[54]!==o||e[55]!==y||e[56]!==h?(q=y.length>0&&d.jsxs(zn,{children:[d.jsx(Ln,{children:h("taskBoard.taskBoard.addTagButton")}),d.jsx(Pn,{children:y.map(_=>d.jsxs(jt,{onClick:()=>o(_.id),children:[d.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:ls(_.color)}}),_.name]},_.id))})]}),e[54]=o,e[55]=y,e[56]=h,e[57]=q):q=e[57];let Q;e[58]===Symbol.for("react.memo_cache_sentinel")?(Q=d.jsx(rl,{}),e[58]=Q):Q=e[58];let G;e[59]!==h?(G=h("taskBoard.taskBoard.deleteSelectedButton"),e[59]=h,e[60]=G):G=e[60];let ee;e[61]!==f||e[62]!==G?(ee=d.jsx(jt,{variant:"destructive",onClick:f,children:G}),e[61]=f,e[62]=G,e[63]=ee):ee=e[63];let W;e[64]!==T||e[65]!==M||e[66]!==B||e[67]!==P||e[68]!==q||e[69]!==ee?(W=d.jsxs(Dn,{align:"center",side:"top",children:[T,M,B,P,q,Q,ee]}),e[64]=T,e[65]=M,e[66]=B,e[67]=P,e[68]=q,e[69]=ee,e[70]=W):W=e[70];let ne;e[71]!==W||e[72]!==k?(ne=d.jsxs(Nn,{children:[k,W]}),e[71]=W,e[72]=k,e[73]=ne):ne=e[73];let J;e[74]!==c||e[75]!==h?(J=c&&d.jsxs("button",{type:"button",onClick:c,className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[d.jsx(Cr,{size:14}),h("taskBoard.taskBoard.autoFix")]}),e[74]=c,e[75]=h,e[76]=J):J=e[76];let se;e[77]!==h?(se=h("taskBoard.taskBoard.clearSelectionButton"),e[77]=h,e[78]=se):se=e[78];let $;e[79]!==h?($=h("taskBoard.taskBoard.clearSelectionButton"),e[79]=h,e[80]=$):$=e[80];let F;e[81]===Symbol.for("react.memo_cache_sentinel")?(F=d.jsx(Cn,{size:16}),e[81]=F):F=e[81];let X;e[82]!==u||e[83]!==se||e[84]!==$?(X=d.jsx("button",{type:"button","aria-label":se,title:$,onClick:u,className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:F}),e[82]=u,e[83]=se,e[84]=$,e[85]=X):X=e[85];let re;return e[86]!==ne||e[87]!==J||e[88]!==X||e[89]!==g?(re=d.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-6 z-20 flex justify-center",children:d.jsxs("div",{className:"pointer-events-auto flex items-center gap-2 rounded-full bg-background px-3 py-2 card-shadow",children:[g,ne,J,X]})}),e[86]=ne,e[87]=J,e[88]=X,e[89]=g,e[90]=re):re=e[90],re}function Ki(t){const e=L.c(14),{active:n,onClick:r,icon:s,label:i}=t,o=ce();let a;e[0]!==i||e[1]!==o?(a=o("taskBoard.taskBoard.layoutViewAriaLabel",{label:i}),e[0]=i,e[1]=o,e[2]=a):a=e[2];const l=n?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground";let c;e[3]!==l?(c=Z("flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors",l),e[3]=l,e[4]=c):c=e[4];let f;e[5]!==s?(f=d.jsx(s,{size:14}),e[5]=s,e[6]=f):f=e[6];let u;return e[7]!==n||e[8]!==i||e[9]!==r||e[10]!==a||e[11]!==c||e[12]!==f?(u=d.jsxs("button",{type:"button",onClick:r,"aria-label":a,"aria-pressed":n,className:c,children:[f,i]}),e[7]=n,e[8]=i,e[9]=r,e[10]=a,e[11]=c,e[12]=f,e[13]=u):u=e[13],u}const Vn="lane:";function Wi(t,e){return t.sortOrder-e.sortOrder}function zp(t){const e=L.c(30),{items:n,members:r,memberByUserId:s,selectedIds:i,onToggleSelect:o,onSelectAllInLane:a,onOpen:l,onCreate:c,onMove:f,onAutoFix:u,onAssign:h}=t,[p,m]=v.useState(null);let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y=[],e[0]=y):y=e[0];const[x,g]=v.useState(y);let b;e[1]===Symbol.for("react.memo_cache_sentinel")?(b=new Map,e[1]=b):b=e[1];const[k,w]=v.useState(b),C=v.useRef(null),j=k.size>0?n.map(_=>{const V=k.get(_.id);return V?{..._,...V}:_}):n;if(k.size>0&&!p){const _=[...k].filter(V=>{const[te,le]=V,je=n.find(pe=>pe.id===te);return je?.status===le.status&&je.sortOrder===le.sortOrder});_.length>0&&w(V=>{const te=new Map(V);for(const[le]of _)te.delete(le);return te})}cp(C,j.map(Up).join(","),p===null);const S=_=>j.filter(V=>V.status===_).sort(Wi),T=_=>{if(_===void 0)return null;const V=String(_);if(V.startsWith(Vn)){const te=V.slice(Vn.length);return As.find(le=>le===te)??null}return j.find(te=>te.id===V)?.status??null};let N;e[2]!==i?(N=_=>i.has(_)&&i.size>1?[_,...Array.from(i).filter(V=>V!==_)]:[_],e[2]=i,e[3]=N):N=e[3];const R=N;let D;e[4]===Symbol.for("react.memo_cache_sentinel")?(D=(_,V,te)=>{const le=sa(te,_.length);w(je=>{const pe=new Map(je);return _.forEach((De,fe)=>pe.set(De,{status:V,sortOrder:le[fe]})),pe})},e[4]=D):D=e[4];const E=D;let M;e[5]===Symbol.for("react.memo_cache_sentinel")?(M={activationConstraint:{distance:4}},e[5]=M):M=e[5];let A;e[6]===Symbol.for("react.memo_cache_sentinel")?(A={coordinateGetter:Ou},e[6]=A):A=e[6];const U=sd(di(Fr,M),di(Lr,A)),I=_=>{const V=String(_.active.id),te=T(_.over?.id),le=j.find(fe=>fe.id===V);if(!te||!le||le.status===te)return;const je=R(V),pe=String(_.over?.id??""),De=S(te).filter(fe=>!je.includes(fe.id));E(je,te,Ti(De,pe.startsWith(Vn)?null:pe,V))},B=_=>{const V=String(_.active.id);m(null);const te=T(_.over?.id)??j.find(ge=>ge.id===V)?.status;if(!te){w(new Map);return}const le=R(V),je=S(te),pe=String(_.over?.id??""),De=je.findIndex(ge=>ge.id===V),fe=pe.startsWith(Vn)?je.length-1:je.findIndex(ge=>ge.id===pe),it=De===-1||fe===-1?je:qr(je,De,fe);if(n.filter(ge=>ge.status===te).sort(Wi).map(Fp).join()===it.map(Pp).join()){w(new Map);return}const ct=it.slice(it.findIndex(ge=>ge.id===V)+1).find(ge=>!le.includes(ge.id)),be=Ti(je.filter(ge=>!le.includes(ge.id)),ct?.id??null,V);E(le,te,be),g(le),f(le,te,be)},O=p?j.find(_=>_.id===p):null;let K;e[7]!==p||e[8]!==R?(K=p?R(p):[],e[7]=p,e[8]=R,e[9]=K):K=e[9];const Y=K,P=Jd,q=Bo;let Q;e[10]===Symbol.for("react.memo_cache_sentinel")?(Q=_=>{m(String(_.active.id)),g([])},e[10]=Q):Q=e[10];let G;e[11]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{m(null),w(new Map)},e[11]=G):G=e[11];const ee=As.map(_=>d.jsx(qp,{status:_,items:S(_),members:r,memberByUserId:s,selectedIds:i,isTarget:O?.status===_,hiddenIds:Y,landedIds:x,onToggleSelect:o,onSelectAllInLane:a,onOpen:l,onCreate:c,onAutoFix:u,onAssign:h},_));let W;e[12]!==ee?(W=d.jsx("div",{ref:C,className:"min-h-0 flex-1 overflow-x-auto",children:d.jsx("div",{className:"mx-auto flex h-full w-full max-w-[1680px] gap-3 px-4 pt-6 sm:px-8",children:ee})}),e[12]=ee,e[13]=W):W=e[13];const ne=Ut.createPortal,J=xu,se=null,$=O&&d.jsxs("div",{className:"relative w-[292px] cursor-grabbing",children:[d.jsx(La,{item:O,assignee:O.assigneeId?s.get(O.assigneeId):void 0,assignedBy:O.assignedBy?s.get(O.assignedBy):void 0,selected:i.has(O.id),onOpen:Lp,className:"w-full shadow-lg"}),Y.length>1&&d.jsx("span",{className:"absolute -top-2 -right-2 flex h-5 min-w-5 items-center justify-center rounded-full bg-foreground px-1.5 text-[11px] font-semibold text-background",children:Y.length})]});let F;e[14]!==J||e[15]!==$?(F=d.jsx(J,{dropAnimation:se,children:$}),e[14]=J,e[15]=$,e[16]=F):F=e[16];let X;e[17]!==ne||e[18]!==F?(X=ne(F,document.body),e[17]=ne,e[18]=F,e[19]=X):X=e[19];let re;return e[20]!==P||e[21]!==B||e[22]!==I||e[23]!==U||e[24]!==G||e[25]!==W||e[26]!==X||e[27]!==q||e[28]!==Q?(re=d.jsxs(P,{sensors:U,collisionDetection:q,onDragStart:Q,onDragOver:I,onDragEnd:B,onDragCancel:G,children:[W,X]}),e[20]=P,e[21]=B,e[22]=I,e[23]=U,e[24]=G,e[25]=W,e[26]=X,e[27]=q,e[28]=Q,e[29]=re):re=e[29],re}function Lp(){}function Pp(t){return t.id}function Fp(t){return t.id}function Up(t){return`${t.id}:${t.status}`}function qp(t){const e=L.c(91),{status:n,items:r,members:s,memberByUserId:i,selectedIds:o,isTarget:a,hiddenIds:l,landedIds:c,onToggleSelect:f,onSelectAllInLane:u,onOpen:h,onCreate:p,onAutoFix:m,onAssign:y}=t,x=ce(),g=yt[n],b=g.icon,k=`${Vn}${n}`;let w;e[0]!==k?(w={id:k},e[0]=k,e[1]=w):w=e[1];const{setNodeRef:C}=Yo(w),j=a&&"bg-muted/50";let S;e[2]!==j?(S=Z("flex h-full w-[300px] shrink-0 flex-col rounded-xl py-1 transition-colors",j),e[2]=j,e[3]=S):S=e[3];const T=a?"bg-muted":"bg-background";let N;e[4]!==T?(N=Z("sticky top-0 z-10 flex items-center gap-2 px-2 py-1.5 transition-colors",T),e[4]=T,e[5]=N):N=e[5];let R;e[6]!==g.iconClassName?(R=Z("shrink-0",g.iconClassName.replace(/\banimate-\S+\b/g,"").trim()),e[6]=g.iconClassName,e[7]=R):R=e[7];let D;e[8]!==b||e[9]!==R?(D=d.jsx(b,{size:15,className:R}),e[8]=b,e[9]=R,e[10]=D):D=e[10];let E;e[11]!==g.labelKey||e[12]!==x?(E=x(g.labelKey),e[11]=g.labelKey,e[12]=x,e[13]=E):E=e[13];let M;e[14]!==E?(M=d.jsx("span",{className:"text-sm font-medium text-foreground",children:E}),e[14]=E,e[15]=M):M=e[15];let A;e[16]!==r.length?(A=d.jsx("span",{className:"rounded-md bg-muted px-1.5 text-[11px] font-medium text-muted-foreground",children:r.length}),e[16]=r.length,e[17]=A):A=e[17];let U;e[18]!==g.labelKey||e[19]!==x?(U=x("taskBoard.taskBoard.laneMenuAriaLabel",{lane:x(g.labelKey)}),e[18]=g.labelKey,e[19]=x,e[20]=U):U=e[20];let I;e[21]===Symbol.for("react.memo_cache_sentinel")?(I=d.jsx(ro,{size:15}),e[21]=I):I=e[21];let B;e[22]!==U?(B=d.jsx(jn,{asChild:!0,children:d.jsx("button",{type:"button","aria-label":U,className:"ml-auto flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:I})}),e[22]=U,e[23]=B):B=e[23];let O;e[24]!==u||e[25]!==n?(O=()=>u(n),e[24]=u,e[25]=n,e[26]=O):O=e[26];let K;e[27]!==x?(K=x("taskBoard.taskBoard.selectAllInLane"),e[27]=x,e[28]=K):K=e[28];let Y;e[29]!==O||e[30]!==K?(Y=d.jsx(Dn,{align:"end",children:d.jsx(jt,{onClick:O,children:K})}),e[29]=O,e[30]=K,e[31]=Y):Y=e[31];let P;e[32]!==B||e[33]!==Y?(P=d.jsxs(Nn,{children:[B,Y]}),e[32]=B,e[33]=Y,e[34]=P):P=e[34];let q;e[35]!==g.labelKey||e[36]!==x?(q=x("taskBoard.taskBoard.newTaskInLaneAriaLabel",{lane:x(g.labelKey)}),e[35]=g.labelKey,e[36]=x,e[37]=q):q=e[37];let Q;e[38]!==g.labelKey||e[39]!==x?(Q=x("taskBoard.taskBoard.newTaskInLaneTitle",{lane:x(g.labelKey)}),e[38]=g.labelKey,e[39]=x,e[40]=Q):Q=e[40];let G;e[41]!==p||e[42]!==n?(G=()=>p(n),e[41]=p,e[42]=n,e[43]=G):G=e[43];let ee;e[44]===Symbol.for("react.memo_cache_sentinel")?(ee=d.jsx(Jn,{size:15}),e[44]=ee):ee=e[44];let W;e[45]!==q||e[46]!==Q||e[47]!==G?(W=d.jsx("button",{type:"button","aria-label":q,title:Q,onClick:G,className:"flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:ee}),e[45]=q,e[46]=Q,e[47]=G,e[48]=W):W=e[48];let ne;e[49]!==M||e[50]!==A||e[51]!==P||e[52]!==W||e[53]!==N||e[54]!==D?(ne=d.jsxs("div",{className:N,children:[D,M,A,P,W]}),e[49]=M,e[50]=A,e[51]=P,e[52]=W,e[53]=N,e[54]=D,e[55]=ne):ne=e[55];let J;e[56]!==r?(J=r.map(Hp),e[56]=r,e[57]=J):J=e[57];let se;if(e[58]!==l||e[59]!==r||e[60]!==c||e[61]!==i||e[62]!==s||e[63]!==y||e[64]!==m||e[65]!==h||e[66]!==f||e[67]!==o){let re;e[69]!==l||e[70]!==c||e[71]!==i||e[72]!==s||e[73]!==y||e[74]!==m||e[75]!==h||e[76]!==f||e[77]!==o?(re=_=>d.jsx(Kp,{item:_,assignee:_.assigneeId?i.get(_.assigneeId):void 0,assignedBy:_.assignedBy?i.get(_.assignedBy):void 0,members:s,selected:o.has(_.id),hidden:l.includes(_.id),landed:c.includes(_.id),onToggleSelect:()=>f(_.id),onOpen:()=>h(_),onAutoFix:m?()=>m(_):void 0,onAssign:y?V=>y(_.id,V):void 0},_.id),e[69]=l,e[70]=c,e[71]=i,e[72]=s,e[73]=y,e[74]=m,e[75]=h,e[76]=f,e[77]=o,e[78]=re):re=e[78],se=r.map(re),e[58]=l,e[59]=r,e[60]=c,e[61]=i,e[62]=s,e[63]=y,e[64]=m,e[65]=h,e[66]=f,e[67]=o,e[68]=se}else se=e[68];let $;e[79]!==J||e[80]!==se?($=d.jsx(Tu,{items:J,strategy:Su,children:se}),e[79]=J,e[80]=se,e[81]=$):$=e[81];let F;e[82]!==C||e[83]!==n||e[84]!==$?(F=d.jsx("div",{ref:C,"data-lane-scroll":n,className:"flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto px-1 pt-1 pb-16 [scrollbar-width:thin] [&::-webkit-scrollbar]:w-1",children:$}),e[82]=C,e[83]=n,e[84]=$,e[85]=F):F=e[85];let X;return e[86]!==n||e[87]!==ne||e[88]!==F||e[89]!==S?(X=d.jsxs("div",{"data-lane":n,className:S,children:[ne,F]}),e[86]=n,e[87]=ne,e[88]=F,e[89]=S,e[90]=X):X=e[90],X}function Hp(t){return t.id}function Kp(t){const e=L.c(29);let n,r,s,i;e[0]!==t?({item:r,hidden:n,landed:s,...i}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=i):(n=e[1],r=e[2],s=e[3],i=e[4]);let o;e[5]!==r.id?(o={id:r.id},e[5]=r.id,e[6]=o):o=e[6];const{attributes:a,listeners:l,setNodeRef:c,transform:f,transition:u,isDragging:h}=_u(o),p=r.id,m=r.status;let y;e[7]!==a||e[8]!==l?(y={attributes:a,listeners:l},e[7]=a,e[8]=l,e[9]=y):y=e[9];const x=s&&"animate-card-land";let g;e[10]!==x?(g=Z("w-full",x),e[10]=x,e[11]=g):g=e[11];let b;e[12]!==f?(b=Ht.Translate.toString(f),e[12]=f,e[13]=b):b=e[13];const k=h||n?0:void 0;let w;e[14]!==b||e[15]!==k||e[16]!==u?(w={transform:b,transition:u,opacity:k},e[14]=b,e[15]=k,e[16]=u,e[17]=w):w=e[17];let C;e[18]!==r||e[19]!==i||e[20]!==c||e[21]!==y||e[22]!==g||e[23]!==w?(C=d.jsx(La,{...i,item:r,dragRef:c,bindings:y,className:g,style:w}),e[18]=r,e[19]=i,e[20]=c,e[21]=y,e[22]=g,e[23]=w,e[24]=C):C=e[24];let j;return e[25]!==r.id||e[26]!==r.status||e[27]!==C?(j=d.jsx("div",{className:"flex","data-flip-id":p,"data-flip-lane":m,children:C}),e[25]=r.id,e[26]=r.status,e[27]=C,e[28]=j):j=e[28],j}function La(t){const e=L.c(43),{item:n,assignee:r,assignedBy:s,members:i,selected:o,className:a,dragRef:l,bindings:c,style:f,onToggleSelect:u,onOpen:h,onAutoFix:p,onAssign:m}=t,y=ce(),x=yt[n.status].icon,g=Pu(n)?.lastMessage,b=p&&(n.status==="triage"||n.status==="todo")&&n.assigneeId!==nt,k=c?.attributes,w=c?.listeners;let C;e[0]!==h||e[1]!==u?(C=O=>{O.shiftKey&&u?u():h()},e[0]=h,e[1]=u,e[2]=C):C=e[2];const j=o&&"bg-accent";let S;e[3]!==a||e[4]!==j?(S=Z("group flex shrink-0 cursor-grab flex-col gap-2 rounded-xl bg-card px-3 py-2.5 text-left card-shadow hover:bg-accent/60 active:cursor-grabbing",j,a),e[3]=a,e[4]=j,e[5]=S):S=e[5];const T=n.title;let N;e[6]!==n?(N=Z("mt-px shrink-0",Hr(n)),e[6]=n,e[7]=N):N=e[7];let R;e[8]!==x||e[9]!==N?(R=d.jsx(x,{size:16,className:N}),e[8]=x,e[9]=N,e[10]=R):R=e[10];let D;e[11]!==n.title?(D=d.jsx("span",{className:"min-w-0 flex-1 text-sm font-medium leading-snug text-foreground line-clamp-2",children:n.title}),e[11]=n.title,e[12]=D):D=e[12];let E;e[13]!==s||e[14]!==r||e[15]!==n||e[16]!==i||e[17]!==m?(E=d.jsx(Ma,{item:n,assignee:r,assignedBy:s,members:i,onAssign:m}),e[13]=s,e[14]=r,e[15]=n,e[16]=i,e[17]=m,e[18]=E):E=e[18];let M;e[19]!==E||e[20]!==R||e[21]!==D?(M=d.jsxs("div",{className:"flex items-start gap-2",children:[R,D,E]}),e[19]=E,e[20]=R,e[21]=D,e[22]=M):M=e[22];let A;e[23]!==g?(A=g&&d.jsx("p",{className:"line-clamp-2 pl-6 text-xs leading-snug text-muted-foreground",children:g}),e[23]=g,e[24]=A):A=e[24];let U;e[25]!==n?(U=(_s(n)||n.priority!=="none"||!!n.dueDate||n.tags.length>0)&&d.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 pl-6",children:[_s(n)&&d.jsx(Aa,{}),n.priority!=="none"&&d.jsx(Ba,{priority:n.priority}),n.dueDate&&d.jsx(Oa,{iso:n.dueDate}),n.tags.map(Wp)]}),e[25]=n,e[26]=U):U=e[26];let I;e[27]!==p||e[28]!==b||e[29]!==y?(I=b&&d.jsxs("button",{type:"button",onClick:O=>{O.stopPropagation(),p()},className:"flex items-center gap-1.5 self-end rounded-md border border-border bg-background px-2 py-1 text-xs font-medium text-foreground transition-colors hover:bg-accent",children:[d.jsx(Cr,{size:12}),y("taskBoard.taskBoard.autoFix")]}),e[27]=p,e[28]=b,e[29]=y,e[30]=I):I=e[30];let B;return e[31]!==l||e[32]!==n.title||e[33]!==f||e[34]!==k||e[35]!==M||e[36]!==A||e[37]!==U||e[38]!==I||e[39]!==w||e[40]!==C||e[41]!==S?(B=d.jsxs("button",{type:"button",ref:l,style:f,...k,...w,onClick:C,className:S,title:T,children:[M,A,U,I]}),e[31]=l,e[32]=n.title,e[33]=f,e[34]=k,e[35]=M,e[36]=A,e[37]=U,e[38]=I,e[39]=w,e[40]=C,e[41]=S,e[42]=B):B=e[42],B}function Wp(t){return d.jsx($a,{tag:t},t.id)}function Vp(t){const e=L.c(33),{item:n,assignee:r,assignedBy:s,onOpen:i}=t,o=yt[n.status].icon;let a;e[0]!==n?(a=Z("shrink-0",Hr(n)),e[0]=n,e[1]=a):a=e[1];let l;e[2]!==o||e[3]!==a?(l=d.jsx(o,{size:16,className:a}),e[2]=o,e[3]=a,e[4]=l):l=e[4];let c;e[5]!==n.title?(c=d.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:n.title}),e[5]=n.title,e[6]=c):c=e[6];let f;e[7]!==n?(f=_s(n)&&d.jsx(Aa,{}),e[7]=n,e[8]=f):f=e[8];let u;e[9]!==n.priority?(u=n.priority!=="none"&&d.jsx("span",{className:"hidden sm:inline-flex",children:d.jsx(Ba,{priority:n.priority})}),e[9]=n.priority,e[10]=u):u=e[10];let h;e[11]!==n.dueDate?(h=n.dueDate&&d.jsx("span",{className:"hidden sm:inline-flex",children:d.jsx(Oa,{iso:n.dueDate})}),e[11]=n.dueDate,e[12]=h):h=e[12];let p;e[13]!==n.tags?(p=n.tags.length>0&&d.jsxs("span",{className:"hidden items-center gap-1.5 sm:inline-flex",children:[n.tags.slice(0,2).map(Gp),n.tags.length>2&&d.jsxs("span",{className:ds,children:["+",n.tags.length-2]})]}),e[13]=n.tags,e[14]=p):p=e[14];let m;e[15]!==s||e[16]!==r||e[17]!==n?(m=d.jsx(Ma,{item:n,assignee:r,assignedBy:s}),e[15]=s,e[16]=r,e[17]=n,e[18]=m):m=e[18];let y;e[19]!==n.createdAt?(y=fo(new Date(n.createdAt)),e[19]=n.createdAt,e[20]=y):y=e[20];let x;e[21]!==y?(x=d.jsx("span",{className:"hidden shrink-0 text-[11px] text-muted-foreground/70 sm:inline",children:y}),e[21]=y,e[22]=x):x=e[22];let g;return e[23]!==i||e[24]!==x||e[25]!==l||e[26]!==c||e[27]!==f||e[28]!==u||e[29]!==h||e[30]!==p||e[31]!==m?(g=d.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-3 rounded-xl bg-card px-4 py-3 text-left card-shadow transition-colors hover:bg-accent/60",children:[l,c,f,u,h,p,m,x]}),e[23]=i,e[24]=x,e[25]=l,e[26]=c,e[27]=f,e[28]=u,e[29]=h,e[30]=p,e[31]=m,e[32]=g):g=e[32],g}function Gp(t){return d.jsx($a,{tag:t},t.id)}const lm=Object.freeze(Object.defineProperty({__proto__:null,TaskBoardPage:za,default:Dp},Symbol.toStringTag,{value:"Module"}));export{lm as $,Ou as A,qr as B,Ht as C,Jd as D,zu as E,Lu as F,yt as G,Ug as H,kt as I,Ot as J,Lr as K,at as L,rm as M,Vg as N,im as O,Fr as P,Qg as Q,am as R,vc as S,Mh as T,Bc as U,Gg as V,Zg as W,nm as X,Xg as Y,za as Z,Zo as _,wc as a,Wg as b,em as c,uc as d,Hg as e,tm as f,Oc as g,sm as h,gc as i,Yg as j,Jg as k,Pc as l,Mc as m,Uc as n,sd as o,di as p,xu as q,qg as r,nu as s,bu as t,Kg as u,om as v,hc as w,Tu as x,Su as y,_u as z};
|