decocms 2.329.0 → 2.330.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CZv5-nRz.js → AlertCircle-DzuAM8Ts.js} +1 -1
- package/dist/client/assets/{Archive-CtBTV5jI.js → Archive-BDH1Dswp.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-DIkiYF9q.js → ArrowNarrowLeft-Bmb7olbY.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Dox0ddHm.js → ArrowUpRight-DcUWATTI.js} +1 -1
- package/dist/client/assets/{Check-dO8V_uLr.js → Check-D6DtmAYz.js} +1 -1
- package/dist/client/assets/{CheckCircle-CktPb9GV.js → CheckCircle-CjDCEsTA.js} +1 -1
- package/dist/client/assets/{ChevronDown-BIqB-kdu.js → ChevronDown-BQEZBz5I.js} +1 -1
- package/dist/client/assets/{ChevronRight-D4lJWWQI.js → ChevronRight-W_JRVCsB.js} +1 -1
- package/dist/client/assets/{ChevronUp-CVZ1ZPRb.js → ChevronUp-0UdtzCuO.js} +1 -1
- package/dist/client/assets/{Container-tE6bwwK8.js → Container-CAHcYnEg.js} +1 -1
- package/dist/client/assets/{DotsVertical-D7DhA6FG.js → DotsVertical-EAv-owu7.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CqWq_OB6.js → LayoutLeft-IDRLtOjX.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D_xjvR9K.js → LinkExternal01-j3B7-hx8.js} +1 -1
- package/dist/client/assets/{Lock01-ktdh42m3.js → Lock01-SfDe88qn.js} +1 -1
- package/dist/client/assets/{Palette-B8eg1gFk.js → Palette-CqCsrryh.js} +1 -1
- package/dist/client/assets/{Play-kb5DoOdj.js → Play-CnTvC9yX.js} +1 -1
- package/dist/client/assets/{Plus-M0RzUOlK.js → Plus-DPd13c1m.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-SVDZXwgx.js → RefreshCcw01-BYmTCqrQ.js} +1 -1
- package/dist/client/assets/{SearchMd-C-SS0ajA.js → SearchMd-Dh7KD_0m.js} +1 -1
- package/dist/client/assets/{Settings02-CPAYjXIe.js → Settings02-Dc5nQYki.js} +1 -1
- package/dist/client/assets/{Shield01-DFu4sKOO.js → Shield01-DX8JclwA.js} +1 -1
- package/dist/client/assets/{Star01-BWaTGW1-.js → Star01-BTd7uzv1.js} +1 -1
- package/dist/client/assets/{Sun-CYXk6TW5.js → Sun-jEuMiwZd.js} +1 -1
- package/dist/client/assets/{Tool01-BpWDEVwa.js → Tool01-CC7E7i0z.js} +1 -1
- package/dist/client/assets/{Trash01-BSG7RehZ.js → Trash01-D2xRqKfO.js} +1 -1
- package/dist/client/assets/{Upload01-D8Le1Sal.js → Upload01-43iSsXQQ.js} +1 -1
- package/dist/client/assets/{User01-BRWkmAmW.js → User01-c_Asv58w.js} +1 -1
- package/dist/client/assets/{Users03-BNQANChL.js → Users03-C1-L9z2i.js} +1 -1
- package/dist/client/assets/{X-C5yqRZnh.js → X-DTT-z90W.js} +1 -1
- package/dist/client/assets/{XCircle-CWkE6lWT.js → XCircle-BqSNivAk.js} +1 -1
- package/dist/client/assets/{XClose-Tzu6e2WL.js → XClose-BvJMELx2.js} +1 -1
- package/dist/client/assets/{Zap-CTAIaF8m.js → Zap-KD6eR0oK.js} +1 -1
- package/dist/client/assets/{ZapSquare-DJqQ8T0A.js → ZapSquare-D0un1xlb.js} +1 -1
- package/dist/client/assets/{accordion-CDIMQhUY.js → accordion-wpzsKEQA.js} +1 -1
- package/dist/client/assets/{agent-icon-CfJCQXXL.js → agent-icon-Bf-mJf1h.js} +1 -1
- package/dist/client/assets/{agents-list-D7mr3jbW.js → agents-list-Rk84qi5_.js} +1 -1
- package/dist/client/assets/{ai-providers-BLVGxHRK.js → ai-providers-Ch9VXdmL.js} +1 -1
- package/dist/client/assets/{alert-dialog-C3AMCFTP.js → alert-dialog-1jsNudB5.js} +2 -2
- package/dist/client/assets/{auth-catchall-CEadjn3X.js → auth-catchall-C5zyGG89.js} +1 -1
- package/dist/client/assets/{auth-split-layout-58657N-I.js → auth-split-layout-C5mvcCAs.js} +1 -1
- package/dist/client/assets/{automation-list-row-C1tDOg42.js → automation-list-row-DXsgFyeD.js} +1 -1
- package/dist/client/assets/{automations-BCCv-sAr.js → automations-B00CxNwL.js} +1 -1
- package/dist/client/assets/{avatar-C5xSQV4e.js → avatar-D8FGI6L7.js} +1 -1
- package/dist/client/assets/{badge-CUCtlqab.js → badge-CHFfTDkx.js} +1 -1
- package/dist/client/assets/{brand-context-CAcQav0W.js → brand-context-32F2vYxq.js} +1 -1
- package/dist/client/assets/{card-D90nAKhR.js → card-M99xY5Ij.js} +1 -1
- package/dist/client/assets/{chat-context-Q23CBDuu.js → chat-context-BWP0L-4o.js} +7 -7
- package/dist/client/assets/{checkbox-CEstZgy8.js → checkbox-1zI1an2L.js} +1 -1
- package/dist/client/assets/{collection-detail--rjscopX.js → collection-detail-DPAa_Jxh.js} +1 -1
- package/dist/client/assets/{collection-display-button-Cp4EyWUs.js → collection-display-button-lENJyZQL.js} +1 -1
- package/dist/client/assets/{collection-search-DdMpN5LV.js → collection-search-BbX02Vt9.js} +1 -1
- package/dist/client/assets/{collection-search-Dci2tVVt.js → collection-search-Cu9lkdI6.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-pORpGGv-.js → collection-table-wrapper-DOjzjRHz.js} +1 -1
- package/dist/client/assets/{collection-tabs-C-PClBEt.js → collection-tabs-CklGlAHz.js} +1 -1
- package/dist/client/assets/{collections-uK4K3lyi.js → collections-Cj5K9IFm.js} +1 -1
- package/dist/client/assets/{command-ClRl1jQx.js → command-AVrUDknH.js} +1 -1
- package/dist/client/assets/{connection-card-BpJap4Nh.js → connection-card-dG1gvcfw.js} +1 -1
- package/dist/client/assets/{connection-detail-fUo3RT-x.js → connection-detail-BreqhOne.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Cz-oNLtc.js → connection-form-helpers-BHm9qvan.js} +1 -1
- package/dist/client/assets/{connections-Qbrp0vVP.js → connections-X8BOYR2c.js} +1 -1
- package/dist/client/assets/{constants-B8nJNP4Z.js → constants-DK6-FgDX.js} +4 -4
- package/dist/client/assets/{constants-BS1-t3gr.js → constants-DdO-uSXG.js} +1 -1
- package/dist/client/assets/{dialog-DP2zlBc6.js → dialog-DKLqkTro.js} +1 -1
- package/dist/client/assets/{domain-settings-CVl390Gi.js → domain-settings-C9qsDXWB.js} +1 -1
- package/dist/client/assets/{drawer-BvN4MTUf.js → drawer-H55NP4R-.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DA1QHfLN.js → dropdown-menu-mFwKSfJW.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-D-9ZFIJ_.js → dynamic-plugin-layout-CodQjmGD.js} +1 -1
- package/dist/client/assets/{empty-state-xfXmuhHo.js → empty-state-M6KhVXj7.js} +1 -1
- package/dist/client/assets/{empty-state-CmfXvCjo.js → empty-state-sTUmdNAV.js} +1 -1
- package/dist/client/assets/{extract-connection-data-jSgM-nUQ.js → extract-connection-data-Fzjrvq-Y.js} +1 -1
- package/dist/client/assets/features-t235iBCX.js +1 -0
- package/dist/client/assets/{form-Dq7mhYRB.js → form-Dnh_68v3.js} +1 -1
- package/dist/client/assets/{general-cTPGpv09.js → general-BT1DEreb.js} +1 -1
- package/dist/client/assets/{index-CXEdJkAu.js → index-20auhCJb.js} +1 -1
- package/dist/client/assets/{index-DogFEZ6N.js → index-52GnFl_O.js} +1 -1
- package/dist/client/assets/{index-WHbCaTGq.js → index-AVz4LXaJ.js} +1 -1
- package/dist/client/assets/{index-DGi811FT.js → index-B2-K2yJt.js} +1 -1
- package/dist/client/assets/{index-Cw6xaTj4.js → index-BW5oXiOF.js} +3 -3
- package/dist/client/assets/{index-9ZFIkq4O.js → index-CB0kKfpJ.js} +1 -1
- package/dist/client/assets/{index-CiYn9XJj.js → index-CLSLc3kK.js} +1 -1
- package/dist/client/assets/{index-DLqd_CgL.js → index-CXpTUfZQ.js} +1 -1
- package/dist/client/assets/{index-B1fiOQll.js → index-CaB42iwv.js} +2 -2
- package/dist/client/assets/{index-CqHVCBxA.js → index-CfxeuG-C.js} +3 -3
- package/dist/client/assets/{index-Cazlal7n.js → index-Djpto450.js} +1 -1
- package/dist/client/assets/{index-_6qZXrYn.js → index-DwpTcFSf.js} +1 -1
- package/dist/client/assets/index-F296X3Sq.js +547 -0
- package/dist/client/assets/{index-BziCCKi0.js → index-VfHF0s-6.js} +1 -1
- package/dist/client/assets/{index-Chmmk0v9.js → index-YTibzsnP.js} +1 -1
- package/dist/client/assets/{index-CpjRTG-O.js → index-fAesIntL.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CW53eyEH.js → infiniteQueryObserver-ChWYWWbe.js} +1 -1
- package/dist/client/assets/{input-Yzq5oALv.js → input-IQBUa_cI.js} +1 -1
- package/dist/client/assets/{integration-icon-cl9CqJ2q.js → integration-icon-mQ_J6kU4.js} +1 -1
- package/dist/client/assets/{label-B2_fu_SD.js → label-BnWIwDeW.js} +1 -1
- package/dist/client/assets/{layout-NB4Xxp4u.js → layout-C-U7OZiG.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-CyaJL-Zo.js → lean-canvas-recruit-modal-DqzxwaiI.js} +1 -1
- package/dist/client/assets/{login-DwM6JN1P.js → login-COdNUv8E.js} +1 -1
- package/dist/client/assets/{members-DHeTQIeM.js → members-BTk5NIcA.js} +1 -1
- package/dist/client/assets/{monaco-editor-B9uMt5Mp.js → monaco-editor-BhngwT5D.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BWcUP9cw.js → monitoring-stats-row-D9G7l6Ho.js} +1 -1
- package/dist/client/assets/{oauth-callback-BvyeUyKW.js → oauth-callback-DGaM3FRM.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-2P95aMtn.js → oauth-callback-ai-provider-CzRLvqiw.js} +1 -1
- package/dist/client/assets/{onboarding-DlUcYyzF.js → onboarding-CT3X-AWs.js} +1 -1
- package/dist/client/assets/{org-layout-BUPmLUEY.js → org-layout-kMNjoQdP.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-D09ck2Qk.js → org-plugin-layout-BntDifaf.js} +1 -1
- package/dist/client/assets/{pair-CjJ30z6x.js → pair-CSM05GR-.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CTsoWVR9.js → plugin-empty-state-DiRtDtz2.js} +1 -1
- package/dist/client/assets/{plugin-header-DkvvMlgy.js → plugin-header-CumlGsMi.js} +1 -1
- package/dist/client/assets/{plugin-layout-iv_1X7Na.js → plugin-layout-02_5Qhop.js} +1 -1
- package/dist/client/assets/{popover-B9eXF6k4.js → popover-Dua0iOiu.js} +1 -1
- package/dist/client/assets/{profile-YH0YgG58.js → profile-CwGCV-qD.js} +1 -1
- package/dist/client/assets/{project-app-view-DNpY8qyk.js → project-app-view-zErfFogL.js} +1 -1
- package/dist/client/assets/registry-DaNGJ7bm.js +2 -0
- package/dist/client/assets/{registry-layout-q37GXojn.js → registry-layout-CmGW21c2.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Q3EnXciI.js → required-auth-layout-B5HJtIOF.js} +1 -1
- package/dist/client/assets/{reset-password-Bk2HnIwb.js → reset-password-B677eX41.js} +1 -1
- package/dist/client/assets/{roles-R-xg4AK4.js → roles-rcr_Tn0O.js} +1 -1
- package/dist/client/assets/{scroll-area-BYFbAuO5.js → scroll-area-DBHrR7i5.js} +1 -1
- package/dist/client/assets/{search-input-Mc4stJZb.js → search-input-DNUv1nJ2.js} +1 -1
- package/dist/client/assets/{select-fKeBWvs0.js → select-DCtC1IMd.js} +1 -1
- package/dist/client/assets/{select-model-CqljoruN.js → select-model-C0Ic0E0i.js} +2 -2
- package/dist/client/assets/{settings-layout-KQ8sxRbS.js → settings-layout-D5W1vy8m.js} +1 -1
- package/dist/client/assets/{settings-section-ledSWD9e.js → settings-section-C_Z35Ekv.js} +1 -1
- package/dist/client/assets/{shell-layout-CIN8iVzk.js → shell-layout-DE2WQ3BJ.js} +1 -1
- package/dist/client/assets/{sidebar-BsawU_Dl.js → sidebar-Ch_ebdAm.js} +1 -1
- package/dist/client/assets/{skeleton-Chd_LUPn.js → skeleton-je9GHbw8.js} +1 -1
- package/dist/client/assets/{spinner--ydP15zq.js → spinner-DpQmSOow.js} +1 -1
- package/dist/client/assets/{sso-PouYhBUU.js → sso-CVcn-0Dn.js} +1 -1
- package/dist/client/assets/{store-BYHTSKp0.js → store-_jI9s_lN.js} +1 -1
- package/dist/client/assets/store-registry-BeOq04Go.js +2 -0
- package/dist/client/assets/{switch-B0NwliHt.js → switch-BuXjAHfK.js} +1 -1
- package/dist/client/assets/{table-BGZ4OeFs.js → table-CmIcMrJR.js} +1 -1
- package/dist/client/assets/{tabs-CocusC3Q.js → tabs-DQp_lyAm.js} +1 -1
- package/dist/client/assets/{task-status-D0DrZidP.js → task-status-DTa3jENF.js} +1 -1
- package/dist/client/assets/{textarea-DCvmtPkS.js → textarea-BV-jr_2O.js} +1 -1
- package/dist/client/assets/{toggle-group-DxAOXzQ_.js → toggle-group-CwdiENSQ.js} +1 -1
- package/dist/client/assets/{tools-list-C55xhAuq.js → tools-list-DfRSJFnA.js} +1 -1
- package/dist/client/assets/{tooltip-CTM-VGNz.js → tooltip-Da8-Ku4Z.js} +1 -1
- package/dist/client/assets/{types-tZsFC1f9.js → types--Rr3ouKV.js} +6 -6
- package/dist/client/assets/{use-ai-providers-9lodQCeQ.js → use-ai-providers-B5OHV4sb.js} +1 -1
- package/dist/client/assets/{use-collections-zTebH8oo.js → use-collections-CeOFxTJH.js} +1 -1
- package/dist/client/assets/{use-connection-k97GUyXj.js → use-connection-fq8uDcfF.js} +1 -1
- package/dist/client/assets/{use-copy-DsgLrZyT.js → use-copy-sJQGUyLg.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-cA5m0MBO.js → use-create-virtual-mcp-ojYabGTO.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Cxuw0N1N.js → use-debounced-autosave-DjO2HHUO.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Bav7Y2wl.js → use-decopilot-events-B6BbCwiZ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-pSSLFsQI.js → use-delete-connection-CYBpm8Ct.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BLePnGyM.js → use-infinite-scroll-CJveXi0J.js} +1 -1
- package/dist/client/assets/{use-list-state-DXcSv-kA.js → use-list-state-9sj7RRhW.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CwUwcZrt.js → use-mcp-tools-Dwain8ET.js} +1 -1
- package/dist/client/assets/{use-members-Dfv2lHyn.js → use-members-Didb_H2A.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BB3Md3iO.js → use-navigate-to-agent-DDII26WP.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-B8R-pmOp.js → use-org-auth-client-CQez6x3r.js} +1 -1
- package/dist/client/assets/{use-org-sso-BX2uj-Ck.js → use-org-sso-D_YtPG_1.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C5DDE5rs.js → use-organization-roles-BdaEBBm0.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DbRc43R0.js → use-organization-settings-BufG9pl6.js} +1 -1
- package/dist/client/assets/{use-registry-connections-MzrUlD79.js → use-registry-connections-B9cwxbzp.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CQUOAmkZ.js → use-status-sounds-gwfSIdp-.js} +1 -1
- package/dist/client/assets/{use-tasks-CZKkgu6L.js → use-tasks-MJ3x_RWK.js} +1 -1
- package/dist/client/assets/{use-view-mode-D8nQcZbz.js → use-view-mode-Dwq_2gyt.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-ClGRob5-.js → use-virtual-mcp-B94Q-YCK.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CYx7uTOQ.js +1 -0
- package/dist/client/assets/{useRouterState-DrkRDfLd.js → useRouterState-a3-LnatZ.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-HwB3d92O.js +1 -0
- package/dist/client/assets/{user-D_gPMUTy.js → user-CMk5TXD8.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Bx09GpYM.js → view-mode-toggle-Ba3Fa81r.js} +1 -1
- package/dist/client/assets/{workflow-CdiEesde.js → workflow-Duy2bsYW.js} +1 -1
- package/dist/client/assets/workflow-detail-CxVdD2VS.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
- package/dist/server/node_modules/ansi-styles/index.js +223 -0
- package/dist/server/node_modules/ansi-styles/package.json +54 -0
- package/dist/server/node_modules/ansi-styles/readme.md +173 -0
- package/dist/server/node_modules/environment/index.d.ts +74 -0
- package/dist/server/node_modules/environment/index.js +47 -0
- package/dist/server/node_modules/environment/license +9 -0
- package/dist/server/node_modules/environment/package.json +74 -0
- package/dist/server/node_modules/environment/readme.md +94 -0
- package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
- package/dist/server/node_modules/escape-string-regexp/license +9 -0
- package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
- package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
- package/dist/server/node_modules/figures/index.d.ts +279 -0
- package/dist/server/node_modules/figures/index.js +292 -0
- package/dist/server/node_modules/figures/license +9 -0
- package/dist/server/node_modules/figures/package.json +49 -0
- package/dist/server/node_modules/figures/readme.md +337 -0
- package/dist/server/node_modules/ink/build/ansi-tokenizer.d.ts +38 -0
- package/dist/server/node_modules/ink/build/ansi-tokenizer.js +316 -0
- package/dist/server/node_modules/ink/build/ansi-tokenizer.js.map +1 -0
- package/dist/server/node_modules/ink/build/apply-styles.js +175 -0
- package/dist/server/node_modules/ink/build/build-layout.js +77 -0
- package/dist/server/node_modules/ink/build/calculate-wrapped-text.js +53 -0
- package/dist/server/node_modules/ink/build/colorize.d.ts +3 -0
- package/dist/server/node_modules/ink/build/colorize.js +48 -0
- package/dist/server/node_modules/ink/build/colorize.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/AccessibilityContext.d.ts +3 -0
- package/dist/server/node_modules/ink/build/components/AccessibilityContext.js +5 -0
- package/dist/server/node_modules/ink/build/components/AccessibilityContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/App.d.ts +18 -0
- package/dist/server/node_modules/ink/build/components/App.js +351 -0
- package/dist/server/node_modules/ink/build/components/App.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/AppContext.d.ts +15 -0
- package/dist/server/node_modules/ink/build/components/AppContext.js +11 -0
- package/dist/server/node_modules/ink/build/components/AppContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/BackgroundContext.d.ts +4 -0
- package/dist/server/node_modules/ink/build/components/BackgroundContext.js +3 -0
- package/dist/server/node_modules/ink/build/components/BackgroundContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Box.d.ts +117 -0
- package/dist/server/node_modules/ink/build/components/Box.js +34 -0
- package/dist/server/node_modules/ink/build/components/Box.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Color.js +62 -0
- package/dist/server/node_modules/ink/build/components/Cursor.d.ts +83 -0
- package/dist/server/node_modules/ink/build/components/Cursor.js +53 -0
- package/dist/server/node_modules/ink/build/components/Cursor.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/CursorContext.d.ts +11 -0
- package/dist/server/node_modules/ink/build/components/CursorContext.js +8 -0
- package/dist/server/node_modules/ink/build/components/CursorContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/ErrorBoundary.d.ts +18 -0
- package/dist/server/node_modules/ink/build/components/ErrorBoundary.js +23 -0
- package/dist/server/node_modules/ink/build/components/ErrorBoundary.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/ErrorOverview.d.ts +6 -0
- package/dist/server/node_modules/ink/build/components/ErrorOverview.js +84 -0
- package/dist/server/node_modules/ink/build/components/ErrorOverview.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/FocusContext.d.ts +16 -0
- package/dist/server/node_modules/ink/build/components/FocusContext.js +17 -0
- package/dist/server/node_modules/ink/build/components/FocusContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Newline.d.ts +13 -0
- package/dist/server/node_modules/ink/build/components/Newline.js +8 -0
- package/dist/server/node_modules/ink/build/components/Newline.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Spacer.d.ts +7 -0
- package/dist/server/node_modules/ink/build/components/Spacer.js +11 -0
- package/dist/server/node_modules/ink/build/components/Spacer.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Static.d.ts +24 -0
- package/dist/server/node_modules/ink/build/components/Static.js +28 -0
- package/dist/server/node_modules/ink/build/components/Static.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/StderrContext.d.ts +15 -0
- package/dist/server/node_modules/ink/build/components/StderrContext.js +13 -0
- package/dist/server/node_modules/ink/build/components/StderrContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/StdinContext.d.ts +22 -0
- package/dist/server/node_modules/ink/build/components/StdinContext.js +19 -0
- package/dist/server/node_modules/ink/build/components/StdinContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/StdoutContext.d.ts +15 -0
- package/dist/server/node_modules/ink/build/components/StdoutContext.js +13 -0
- package/dist/server/node_modules/ink/build/components/StdoutContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Text.d.ts +55 -0
- package/dist/server/node_modules/ink/build/components/Text.js +50 -0
- package/dist/server/node_modules/ink/build/components/Text.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Transform.d.ts +16 -0
- package/dist/server/node_modules/ink/build/components/Transform.js +15 -0
- package/dist/server/node_modules/ink/build/components/Transform.js.map +1 -0
- package/dist/server/node_modules/ink/build/cursor-helpers.d.ts +38 -0
- package/dist/server/node_modules/ink/build/cursor-helpers.js +56 -0
- package/dist/server/node_modules/ink/build/cursor-helpers.js.map +1 -0
- package/dist/server/node_modules/ink/build/devtools-window-polyfill.d.ts +1 -0
- package/dist/server/node_modules/ink/build/devtools-window-polyfill.js +65 -0
- package/dist/server/node_modules/ink/build/devtools-window-polyfill.js.map +1 -0
- package/dist/server/node_modules/ink/build/devtools.d.ts +1 -0
- package/dist/server/node_modules/ink/build/devtools.js +11 -0
- package/dist/server/node_modules/ink/build/devtools.js.map +1 -0
- package/dist/server/node_modules/ink/build/dom.d.ts +56 -0
- package/dist/server/node_modules/ink/build/dom.js +124 -0
- package/dist/server/node_modules/ink/build/dom.js.map +1 -0
- package/dist/server/node_modules/ink/build/experimental/apply-style.js +140 -0
- package/dist/server/node_modules/ink/build/experimental/dom.js +123 -0
- package/dist/server/node_modules/ink/build/experimental/output.js +91 -0
- package/dist/server/node_modules/ink/build/experimental/reconciler.js +141 -0
- package/dist/server/node_modules/ink/build/experimental/renderer.js +81 -0
- package/dist/server/node_modules/ink/build/get-max-width.d.ts +3 -0
- package/dist/server/node_modules/ink/build/get-max-width.js +10 -0
- package/dist/server/node_modules/ink/build/get-max-width.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-app.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-app.js +8 -0
- package/dist/server/node_modules/ink/build/hooks/use-app.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-cursor.d.ts +12 -0
- package/dist/server/node_modules/ink/build/hooks/use-cursor.js +29 -0
- package/dist/server/node_modules/ink/build/hooks/use-cursor.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus-manager.d.ts +28 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js +17 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus.d.ts +29 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus.js +42 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-input.d.ts +131 -0
- package/dist/server/node_modules/ink/build/hooks/use-input.js +124 -0
- package/dist/server/node_modules/ink/build/hooks/use-input.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js +11 -0
- package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-stderr.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-stderr.js +8 -0
- package/dist/server/node_modules/ink/build/hooks/use-stderr.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdin.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdin.js +8 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdin.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdout.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdout.js +8 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdout.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/useInput.js +38 -0
- package/dist/server/node_modules/ink/build/index.d.ts +34 -0
- package/dist/server/node_modules/ink/build/index.js +20 -0
- package/dist/server/node_modules/ink/build/index.js.map +1 -0
- package/dist/server/node_modules/ink/build/ink.d.ts +90 -0
- package/dist/server/node_modules/ink/build/ink.js +637 -0
- package/dist/server/node_modules/ink/build/ink.js.map +1 -0
- package/dist/server/node_modules/ink/build/input-parser.d.ts +7 -0
- package/dist/server/node_modules/ink/build/input-parser.js +154 -0
- package/dist/server/node_modules/ink/build/input-parser.js.map +1 -0
- package/dist/server/node_modules/ink/build/instance.js +205 -0
- package/dist/server/node_modules/ink/build/instances.d.ts +3 -0
- package/dist/server/node_modules/ink/build/instances.js +8 -0
- package/dist/server/node_modules/ink/build/instances.js.map +1 -0
- package/dist/server/node_modules/ink/build/kitty-keyboard.d.ts +23 -0
- package/dist/server/node_modules/ink/build/kitty-keyboard.js +32 -0
- package/dist/server/node_modules/ink/build/kitty-keyboard.js.map +1 -0
- package/dist/server/node_modules/ink/build/layout.d.ts +7 -0
- package/dist/server/node_modules/ink/build/layout.js +33 -0
- package/dist/server/node_modules/ink/build/layout.js.map +1 -0
- package/dist/server/node_modules/ink/build/log-update.d.ts +19 -0
- package/dist/server/node_modules/ink/build/log-update.js +242 -0
- package/dist/server/node_modules/ink/build/log-update.js.map +1 -0
- package/dist/server/node_modules/ink/build/measure-element.d.ts +16 -0
- package/dist/server/node_modules/ink/build/measure-element.js +9 -0
- package/dist/server/node_modules/ink/build/measure-element.js.map +1 -0
- package/dist/server/node_modules/ink/build/measure-text.d.ts +6 -0
- package/dist/server/node_modules/ink/build/measure-text.js +21 -0
- package/dist/server/node_modules/ink/build/measure-text.js.map +1 -0
- package/dist/server/node_modules/ink/build/options.d.ts +52 -0
- package/dist/server/node_modules/ink/build/options.js +2 -0
- package/dist/server/node_modules/ink/build/options.js.map +1 -0
- package/dist/server/node_modules/ink/build/output.d.ts +35 -0
- package/dist/server/node_modules/ink/build/output.js +183 -0
- package/dist/server/node_modules/ink/build/output.js.map +1 -0
- package/dist/server/node_modules/ink/build/parse-keypress.d.ts +22 -0
- package/dist/server/node_modules/ink/build/parse-keypress.js +493 -0
- package/dist/server/node_modules/ink/build/parse-keypress.js.map +1 -0
- package/dist/server/node_modules/ink/build/reconciler.d.ts +4 -0
- package/dist/server/node_modules/ink/build/reconciler.js +274 -0
- package/dist/server/node_modules/ink/build/reconciler.js.map +1 -0
- package/dist/server/node_modules/ink/build/render-background.d.ts +4 -0
- package/dist/server/node_modules/ink/build/render-background.js +25 -0
- package/dist/server/node_modules/ink/build/render-background.js.map +1 -0
- package/dist/server/node_modules/ink/build/render-border.d.ts +4 -0
- package/dist/server/node_modules/ink/build/render-border.js +73 -0
- package/dist/server/node_modules/ink/build/render-border.js.map +1 -0
- package/dist/server/node_modules/ink/build/render-node-to-output.d.ts +14 -0
- package/dist/server/node_modules/ink/build/render-node-to-output.js +147 -0
- package/dist/server/node_modules/ink/build/render-node-to-output.js.map +1 -0
- package/dist/server/node_modules/ink/build/render-to-string.d.ts +38 -0
- package/dist/server/node_modules/ink/build/render-to-string.js +115 -0
- package/dist/server/node_modules/ink/build/render-to-string.js.map +1 -0
- package/dist/server/node_modules/ink/build/render.d.ts +121 -0
- package/dist/server/node_modules/ink/build/render.js +55 -0
- package/dist/server/node_modules/ink/build/render.js.map +1 -0
- package/dist/server/node_modules/ink/build/renderer.d.ts +8 -0
- package/dist/server/node_modules/ink/build/renderer.js +55 -0
- package/dist/server/node_modules/ink/build/renderer.js.map +1 -0
- package/dist/server/node_modules/ink/build/sanitize-ansi.d.ts +2 -0
- package/dist/server/node_modules/ink/build/sanitize-ansi.js +27 -0
- package/dist/server/node_modules/ink/build/sanitize-ansi.js.map +1 -0
- package/dist/server/node_modules/ink/build/screen-reader-update.d.ts +13 -0
- package/dist/server/node_modules/ink/build/screen-reader-update.js +38 -0
- package/dist/server/node_modules/ink/build/screen-reader-update.js.map +1 -0
- package/dist/server/node_modules/ink/build/squash-text-nodes.d.ts +3 -0
- package/dist/server/node_modules/ink/build/squash-text-nodes.js +36 -0
- package/dist/server/node_modules/ink/build/squash-text-nodes.js.map +1 -0
- package/dist/server/node_modules/ink/build/styles.d.ts +240 -0
- package/dist/server/node_modules/ink/build/styles.js +232 -0
- package/dist/server/node_modules/ink/build/styles.js.map +1 -0
- package/dist/server/node_modules/ink/build/utils.d.ts +2 -0
- package/dist/server/node_modules/ink/build/utils.js +4 -0
- package/dist/server/node_modules/ink/build/utils.js.map +1 -0
- package/dist/server/node_modules/ink/build/wrap-text.d.ts +3 -0
- package/dist/server/node_modules/ink/build/wrap-text.js +31 -0
- package/dist/server/node_modules/ink/build/wrap-text.js.map +1 -0
- package/dist/server/node_modules/ink/build/write-synchronized.d.ts +4 -0
- package/dist/server/node_modules/ink/build/write-synchronized.js +7 -0
- package/dist/server/node_modules/ink/build/write-synchronized.js.map +1 -0
- package/dist/server/node_modules/ink/license +10 -0
- package/dist/server/node_modules/ink/package.json +201 -0
- package/dist/server/node_modules/ink/readme.md +2636 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
- package/dist/server/node_modules/is-fullwidth-code-point/license +9 -0
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
- package/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
- package/dist/server/node_modules/is-unicode-supported/license +9 -0
- package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
- package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
- package/dist/server/node_modules/restore-cursor/index.d.ts +11 -0
- package/dist/server/node_modules/restore-cursor/index.js +11 -0
- package/dist/server/node_modules/restore-cursor/license +9 -0
- package/dist/server/node_modules/restore-cursor/package.json +55 -0
- package/dist/server/node_modules/restore-cursor/readme.md +31 -0
- package/dist/server/node_modules/string-width/index.d.ts +39 -0
- package/dist/server/node_modules/string-width/index.js +82 -0
- package/dist/server/node_modules/string-width/license +9 -0
- package/dist/server/node_modules/string-width/package.json +64 -0
- package/dist/server/node_modules/string-width/readme.md +66 -0
- package/package.json +1 -1
- package/dist/client/assets/features-DsVoLqlH.js +0 -1
- package/dist/client/assets/index-K99A3V6x.js +0 -547
- package/dist/client/assets/registry-CZvdkQ8X.js +0 -2
- package/dist/client/assets/store-registry-BCrAcsol.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CGECRasg.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CINQDnws.js +0 -1
- package/dist/client/assets/workflow-detail-B7_mkaa2.js +0 -1
- package/dist/server/node_modules/indent-string/index.d.ts +0 -38
- package/dist/server/node_modules/indent-string/index.js +0 -38
- package/dist/server/node_modules/indent-string/package.json +0 -40
- package/dist/server/node_modules/indent-string/readme.md +0 -73
- /package/dist/server/node_modules/{indent-string → ansi-styles}/license +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as k,g as E,j as s,v as L,aG as H,c as $,L as z,t as R,b as T,O as I,l as J,r as K}from"./index-Cw6xaTj4.js";import{u as W}from"./useRouterState-DrkRDfLd.js";import{S as Q,a as U,b as V,u as X,f as w,g as C,h as O,j as P,i as M,l as Y,m as Z,c as ee,d as se,e as te}from"./sidebar-BsawU_Dl.js";import{a as A}from"./index-Cazlal7n.js";import{i as F}from"./ArrowNarrowLeft-DIkiYF9q.js";import{c as le,d as ne,b as re,e as ie,f as oe,i as q,a as ae,n as ce}from"./ZapSquare-DJqQ8T0A.js";import{t as me,a as G}from"./Users03-BNQANChL.js";import{i as de}from"./ChevronRight-D4lJWWQI.js";import{i as fe}from"./Lock01-ktdh42m3.js";import{i as xe}from"./Shield01-DFu4sKOO.js";import{s as be}from"./User01-BRWkmAmW.js";import{i as B}from"./Zap-CTAIaF8m.js";import{u as he}from"./tooltip-CTM-VGNz.js";import{u as ue}from"./use-status-sounds-CQUOAmkZ.js";import"./LayoutLeft-CqWq_OB6.js";import"./X-C5yqRZnh.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-Bav7Y2wl.js";import"./create-sse-subscription-CxkOgzKf.js";function D(){const e=k.c(29),t=L().project;let n;e[0]!==t.enabledPlugins?(n=t.enabledPlugins??[],e[0]=t.enabledPlugins,e[1]=n):n=e[1];const l=n;let r,i,c,m,o;if(e[2]!==l){const b=H.filter(N=>l.includes(N.pluginId)).map(pe);let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x={key:"general",label:"General",icon:s.jsx(me,{size:14}),to:"/$org/settings/general"},e[8]=x):x=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g={key:"brand-context",label:"Brand Context",icon:s.jsx(le,{size:14}),to:"/$org/settings/brand-context"},e[9]=g):g=e[9],e[10]===Symbol.for("react.memo_cache_sentinel")?(c={label:"Organization",items:[x,g,{key:"ai-providers",label:"AI Providers",icon:s.jsx(ne,{size:14}),to:"/$org/settings/ai-providers"}]},e[10]=c):c=e[10];let y;e[11]===Symbol.for("react.memo_cache_sentinel")?(y={key:"connections",label:"Connections",icon:s.jsx(re,{size:14}),to:"/$org/settings/connections"},e[11]=y):y=e[11];let j;e[12]===Symbol.for("react.memo_cache_sentinel")?(j={key:"agents",label:"Agents",icon:s.jsx(G,{size:14}),to:"/$org/settings/agents"},e[12]=j):j=e[12];let _;e[13]===Symbol.for("react.memo_cache_sentinel")?(_={key:"automations",label:"Automations",icon:s.jsx(B,{size:14}),to:"/$org/settings/automations"},e[13]=_):_=e[13],e[14]===Symbol.for("react.memo_cache_sentinel")?(m={label:"Build",items:[y,j,_,{key:"store",label:"Store",icon:s.jsx(ie,{size:14}),to:"/$org/settings/store"}]},e[14]=m):m=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p={key:"monitor",label:"Monitor",icon:s.jsx(oe,{size:14}),to:"/$org/settings/monitor"},e[15]=p):p=e[15];let S;e[16]===Symbol.for("react.memo_cache_sentinel")?(S={key:"members",label:"Members",icon:s.jsx(G,{size:14}),to:"/$org/settings/members"},e[16]=S):S=e[16];let u;e[17]===Symbol.for("react.memo_cache_sentinel")?(u={key:"roles",label:"Roles",icon:s.jsx(xe,{size:14}),to:"/$org/settings/roles"},e[17]=u):u=e[17],e[18]===Symbol.for("react.memo_cache_sentinel")?(o={label:"Manage",items:[p,S,u,{key:"sso",label:"Security",icon:s.jsx(fe,{size:14}),to:"/$org/settings/sso"}]},e[18]=o):o=e[18],r="Extensions";let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v={key:"features",label:"Plugins",icon:s.jsx(B,{size:14}),to:"/$org/settings/features"},e[19]=v):v=e[19],i=[v,...b],e[2]=l,e[3]=r,e[4]=i,e[5]=c,e[6]=m,e[7]=o}else r=e[3],i=e[4],c=e[5],m=e[6],o=e[7];let a;e[20]!==r||e[21]!==i?(a={label:r,items:i},e[20]=r,e[21]=i,e[22]=a):a=e[22];let d;e[23]===Symbol.for("react.memo_cache_sentinel")?(d={label:"Account",items:[{key:"profile",label:"Profile & Preferences",icon:s.jsx(be,{size:14}),to:"/$org/settings/profile"}]},e[23]=d):d=e[23];let f;return e[24]!==c||e[25]!==m||e[26]!==o||e[27]!==a?(f=[c,m,o,a,d],e[24]=c,e[25]=m,e[26]=o,e[27]=a,e[28]=f):f=e[28],f}function pe(e){const{key:t,label:n,icon:l,to:r}=e;return{key:t,label:n,icon:l,to:r}}function ge(){const e=k.c(26),t=D();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:l}=E(n);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={select:_e},e[1]=r):r=e[1];const i=W(r);let c;e[2]!==l||e[3]!==i?(c=_=>{const p=_.replace("$org",l);return i.startsWith(p)},e[2]=l,e[3]=i,e[4]=c):c=e[4];const m=c;let o;e[5]!==l?(o={org:l},e[5]=l,e[6]=o):o=e[6];let a,d;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(F,{size:14}),d=s.jsx("span",{children:"Settings"}),e[7]=a,e[8]=d):(a=e[7],d=e[8]);let f;e[9]!==o?(f=s.jsx(w,{className:"pt-0 pr-0 pb-3 md:pb-3 pl-0",children:s.jsx(C,{children:s.jsx(O,{className:"gap-1.5",children:s.jsx(P,{children:s.jsx(M,{asChild:!0,children:s.jsxs(z,{to:"/$org",params:o,className:"flex items-center gap-2 text-sm text-muted-foreground",children:[a,d]})})})})})}),e[9]=o,e[10]=f):f=e[10];let h;if(e[11]!==t||e[12]!==m||e[13]!==l){let _;e[15]!==m||e[16]!==l?(_=(p,S)=>s.jsxs(w,{className:"pt-0 pr-0 pb-0 pl-0",children:[p.label&&s.jsx("p",{className:$("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",S>0&&"mt-3"),children:p.label}),s.jsx(C,{children:s.jsx(O,{className:"gap-0.5",children:p.items.map(u=>s.jsx(P,{children:s.jsx(M,{asChild:!0,isActive:m(u.to),children:s.jsxs(z,{to:u.to,params:{org:l},onClick:()=>R("settings_nav_clicked",{section_key:u.key,section_label:u.label,group_label:p.label||"main"}),className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:u.icon}),s.jsx("span",{className:"truncate",children:u.label})]})})},u.key))})})]},`${p.label}-${S}`),e[15]=m,e[16]=l,e[17]=_):_=e[17],h=t.map(_),e[11]=t,e[12]=m,e[13]=l,e[14]=h}else h=e[14];let b;e[18]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[18]=b):b=e[18];let x;e[19]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsxs(w,{className:"pt-0 pr-0 pb-0 pl-0",children:[b,s.jsx(C,{children:s.jsx(O,{className:"gap-0.5",children:s.jsx(P,{children:s.jsxs(M,{onClick:je,className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:s.jsx(q,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})})})})]}),e[19]=x):x=e[19];let g;e[20]!==f||e[21]!==h?(g=s.jsxs(Y,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0",children:[f,h,x]}),e[20]=f,e[21]=h,e[22]=g):g=e[22];let y;e[23]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx("div",{className:"mt-auto px-4 pb-1",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","2.329.0"]})}),e[23]=y):y=e[23];let j;return e[24]!==g?(j=s.jsxs(Z,{variant:"sidebar",children:[g,y]}),e[24]=g,e[25]=j):j=e[25],j}function je(){R("signed_out",{source:"settings_sidebar"}),T.signOut()}function _e(e){return e.location.pathname}function ye(e){const t=k.c(29),{onClose:n}=e,l=D();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org"},t[0]=r):r=t[0];const{org:i}=E(r);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={select:ve},t[1]=c):c=t[1];const m=W(c);let o;t[2]!==i||t[3]!==m?(o=S=>{const u=S.replace("$org",i);return m.startsWith(u)},t[2]=i,t[3]=m,t[4]=o):o=t[4];const a=o;let d;t[5]!==i?(d={org:i},t[5]=i,t[6]=d):d=t[6];let f,h;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(F,{size:16,className:"shrink-0"}),h=s.jsx("span",{children:"Settings"}),t[7]=f,t[8]=h):(f=t[7],h=t[8]);let b;t[9]!==n||t[10]!==d?(b=s.jsx("div",{className:"flex items-center h-14 px-4 shrink-0 border-b border-border/50",children:s.jsxs(z,{to:"/$org",params:d,onClick:n,className:"flex items-center gap-2 text-sm font-semibold text-foreground",children:[f,h]})}),t[9]=n,t[10]=d,t[11]=b):b=t[11];let x;if(t[12]!==l||t[13]!==a||t[14]!==n||t[15]!==i){let S;t[17]!==a||t[18]!==n||t[19]!==i?(S=(u,v)=>s.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.label&&s.jsx("p",{className:$("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",v>0&&"mt-3"),children:u.label}),u.items.map(N=>s.jsxs(z,{to:N.to,params:{org:i},onClick:n,className:$("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",a(N.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[s.jsx("span",{className:"shrink-0",children:N.icon}),s.jsx("span",{className:"truncate",children:N.label})]},N.key))]},`${u.label}-${v}`),t[17]=a,t[18]=n,t[19]=i,t[20]=S):S=t[20],x=l.map(S),t[12]=l,t[13]=a,t[14]=n,t[15]=i,t[16]=x}else x=t[16];let g;t[21]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx("div",{className:"h-px bg-border/50 my-2"}),t[21]=g):g=t[21];let y;t[22]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[g,s.jsxs("button",{type:"button",onClick:Se,className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[s.jsx("span",{className:"shrink-0",children:s.jsx(q,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})]}),t[22]=y):y=t[22];let j;t[23]!==x?(j=s.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[x,y]}),t[23]=x,t[24]=j):j=t[24];let _;t[25]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","2.329.0"]})}),t[25]=_):_=t[25];let p;return t[26]!==j||t[27]!==b?(p=s.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[b,j,_]}),t[26]=j,t[27]=b,t[28]=p):p=t[28],p}function Se(){return T.signOut()}function ve(e){return e.location.pathname}function Ne(){const e=k.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx("button",{type:"button",onClick:$e,className:"flex size-7 shrink-0 items-center justify-center rounded-md text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground transition-colors",title:"Go back",children:s.jsx(ae,{size:16})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"shrink-0 flex items-center justify-between pl-1 pr-2 h-10",children:s.jsxs("div",{className:"flex items-center gap-0.5 min-w-0",children:[t,s.jsx("button",{type:"button",onClick:ke,className:"flex size-7 shrink-0 items-center justify-center rounded-md text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground transition-colors",title:"Go forward",children:s.jsx(de,{size:16})})]})}),e[1]=n):n=e[1],n}function ke(){return window.history.forward()}function $e(){return window.history.back()}function ze(e){const t=k.c(3),{onOpenSidebar:n}=e;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ce,{size:20}),t[0]=l):l=t[0];let r;return t[1]!==n?(r=s.jsx("div",{className:"shrink-0 flex items-center justify-between px-3 h-12 bg-background border-b border-border",children:s.jsx("button",{type:"button",onClick:n,className:"flex size-8 items-center justify-center rounded-md text-foreground/60 hover:bg-accent hover:text-foreground transition-colors","aria-label":"Open menu",children:l})}),t[1]=n,t[2]=r):r=t[2],r}function we(){const e=k.c(17),t=he(),{org:n}=L();ue(n.slug);const{setOpenMobile:l,openMobile:r}=X();if(t){let a;e[0]!==l?(a=s.jsx(ze,{onOpenSidebar:()=>l(!0)}),e[0]=l,e[1]=a):a=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(A,{value:"p-0",children:s.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:s.jsx(I,{})})})}),e[2]=d):d=e[2];let f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(ee,{className:"sr-only",children:"Navigation"}),e[3]=f):f=e[3];let h;e[4]!==l?(h=s.jsxs(se,{side:"left",hideCloseButton:!0,className:"w-[calc(100vw-3rem)] sm:max-w-md! p-0",children:[f,s.jsx(ye,{onClose:()=>l(!1)})]}),e[4]=l,e[5]=h):h=e[5];let b;e[6]!==r||e[7]!==l||e[8]!==h?(b=s.jsx(te,{open:r,onOpenChange:l,children:h}),e[6]=r,e[7]=l,e[8]=h,e[9]=b):b=e[9];let x;return e[10]!==a||e[11]!==b?(x=s.jsxs("div",{className:"flex flex-col flex-1 bg-background min-h-0",children:[a,d,b]}),e[10]=a,e[11]=b,e[12]=x):x=e[12],x}let i;e[13]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ne,{}),e[13]=i):i=e[13];let c;e[14]===Symbol.for("react.memo_cache_sentinel")?(c=$("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),e[14]=c):c=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(J,{size:20,className:"animate-spin text-muted-foreground"})}),e[15]=m):m=e[15];let o;return e[16]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(s.Fragment,{children:[i,s.jsx("div",{className:"flex-1 min-h-0 p-1",children:s.jsx("div",{className:c,children:s.jsx(K.Suspense,{fallback:m,children:s.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:s.jsx(A,{value:"p-0",children:s.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:s.jsx(I,{})})})})})})})]}),e[16]=o):o=e[16],o}function Qe(){const e=k.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={"--sidebar-width-icon":"3.5rem"},e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(ge,{}),e[1]=n):n=e[1];let l;return e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Q,{defaultOpen:!0,children:s.jsx("div",{className:"flex flex-col h-dvh overflow-hidden",children:s.jsxs(U,{className:"flex-1 bg-sidebar",style:t,children:[n,s.jsx(V,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:s.jsx(we,{})})]})})}),e[2]=l):l=e[2],l}export{ge as SettingsSidebar,ye as SettingsSidebarMobile,Qe as default};
|
|
1
|
+
import{e as k,g as E,j as s,v as L,aH as D,c as $,L as z,t as R,b as T,O as I,l as J,r as K}from"./index-BW5oXiOF.js";import{u as W}from"./useRouterState-a3-LnatZ.js";import{S as Q,a as U,b as V,u as X,f as w,g as C,h as O,j as P,i as M,l as Y,m as Z,c as ee,d as se,e as te}from"./sidebar-Ch_ebdAm.js";import{a as A}from"./index-Djpto450.js";import{i as F}from"./ArrowNarrowLeft-Bmb7olbY.js";import{c as le,d as ne,b as re,e as ie,f as oe,i as H,a as ae,n as ce}from"./ZapSquare-D0un1xlb.js";import{t as me,a as G}from"./Users03-C1-L9z2i.js";import{i as de}from"./ChevronRight-W_JRVCsB.js";import{i as fe}from"./Lock01-SfDe88qn.js";import{i as xe}from"./Shield01-DX8JclwA.js";import{s as be}from"./User01-c_Asv58w.js";import{i as B}from"./Zap-KD6eR0oK.js";import{u as he}from"./tooltip-Da8-Ku4Z.js";import{u as ue}from"./use-status-sounds-gwfSIdp-.js";import"./LayoutLeft-IDRLtOjX.js";import"./X-DTT-z90W.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-B6BbCwiZ.js";import"./create-sse-subscription-CxkOgzKf.js";function q(){const e=k.c(29),t=L().project;let n;e[0]!==t.enabledPlugins?(n=t.enabledPlugins??[],e[0]=t.enabledPlugins,e[1]=n):n=e[1];const l=n;let r,i,c,m,o;if(e[2]!==l){const b=D.filter(N=>l.includes(N.pluginId)).map(pe);let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x={key:"general",label:"General",icon:s.jsx(me,{size:14}),to:"/$org/settings/general"},e[8]=x):x=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g={key:"brand-context",label:"Brand Context",icon:s.jsx(le,{size:14}),to:"/$org/settings/brand-context"},e[9]=g):g=e[9],e[10]===Symbol.for("react.memo_cache_sentinel")?(c={label:"Organization",items:[x,g,{key:"ai-providers",label:"AI Providers",icon:s.jsx(ne,{size:14}),to:"/$org/settings/ai-providers"}]},e[10]=c):c=e[10];let y;e[11]===Symbol.for("react.memo_cache_sentinel")?(y={key:"connections",label:"Connections",icon:s.jsx(re,{size:14}),to:"/$org/settings/connections"},e[11]=y):y=e[11];let j;e[12]===Symbol.for("react.memo_cache_sentinel")?(j={key:"agents",label:"Agents",icon:s.jsx(G,{size:14}),to:"/$org/settings/agents"},e[12]=j):j=e[12];let _;e[13]===Symbol.for("react.memo_cache_sentinel")?(_={key:"automations",label:"Automations",icon:s.jsx(B,{size:14}),to:"/$org/settings/automations"},e[13]=_):_=e[13],e[14]===Symbol.for("react.memo_cache_sentinel")?(m={label:"Build",items:[y,j,_,{key:"store",label:"Store",icon:s.jsx(ie,{size:14}),to:"/$org/settings/store"}]},e[14]=m):m=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p={key:"monitor",label:"Monitor",icon:s.jsx(oe,{size:14}),to:"/$org/settings/monitor"},e[15]=p):p=e[15];let S;e[16]===Symbol.for("react.memo_cache_sentinel")?(S={key:"members",label:"Members",icon:s.jsx(G,{size:14}),to:"/$org/settings/members"},e[16]=S):S=e[16];let u;e[17]===Symbol.for("react.memo_cache_sentinel")?(u={key:"roles",label:"Roles",icon:s.jsx(xe,{size:14}),to:"/$org/settings/roles"},e[17]=u):u=e[17],e[18]===Symbol.for("react.memo_cache_sentinel")?(o={label:"Manage",items:[p,S,u,{key:"sso",label:"Security",icon:s.jsx(fe,{size:14}),to:"/$org/settings/sso"}]},e[18]=o):o=e[18],r="Extensions";let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v={key:"features",label:"Plugins",icon:s.jsx(B,{size:14}),to:"/$org/settings/features"},e[19]=v):v=e[19],i=[v,...b],e[2]=l,e[3]=r,e[4]=i,e[5]=c,e[6]=m,e[7]=o}else r=e[3],i=e[4],c=e[5],m=e[6],o=e[7];let a;e[20]!==r||e[21]!==i?(a={label:r,items:i},e[20]=r,e[21]=i,e[22]=a):a=e[22];let d;e[23]===Symbol.for("react.memo_cache_sentinel")?(d={label:"Account",items:[{key:"profile",label:"Profile & Preferences",icon:s.jsx(be,{size:14}),to:"/$org/settings/profile"}]},e[23]=d):d=e[23];let f;return e[24]!==c||e[25]!==m||e[26]!==o||e[27]!==a?(f=[c,m,o,a,d],e[24]=c,e[25]=m,e[26]=o,e[27]=a,e[28]=f):f=e[28],f}function pe(e){const{key:t,label:n,icon:l,to:r}=e;return{key:t,label:n,icon:l,to:r}}function ge(){const e=k.c(26),t=q();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:l}=E(n);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={select:_e},e[1]=r):r=e[1];const i=W(r);let c;e[2]!==l||e[3]!==i?(c=_=>{const p=_.replace("$org",l);return i.startsWith(p)},e[2]=l,e[3]=i,e[4]=c):c=e[4];const m=c;let o;e[5]!==l?(o={org:l},e[5]=l,e[6]=o):o=e[6];let a,d;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(F,{size:14}),d=s.jsx("span",{children:"Settings"}),e[7]=a,e[8]=d):(a=e[7],d=e[8]);let f;e[9]!==o?(f=s.jsx(w,{className:"pt-0 pr-0 pb-3 md:pb-3 pl-0",children:s.jsx(C,{children:s.jsx(O,{className:"gap-1.5",children:s.jsx(P,{children:s.jsx(M,{asChild:!0,children:s.jsxs(z,{to:"/$org",params:o,className:"flex items-center gap-2 text-sm text-muted-foreground",children:[a,d]})})})})})}),e[9]=o,e[10]=f):f=e[10];let h;if(e[11]!==t||e[12]!==m||e[13]!==l){let _;e[15]!==m||e[16]!==l?(_=(p,S)=>s.jsxs(w,{className:"pt-0 pr-0 pb-0 pl-0",children:[p.label&&s.jsx("p",{className:$("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",S>0&&"mt-3"),children:p.label}),s.jsx(C,{children:s.jsx(O,{className:"gap-0.5",children:p.items.map(u=>s.jsx(P,{children:s.jsx(M,{asChild:!0,isActive:m(u.to),children:s.jsxs(z,{to:u.to,params:{org:l},onClick:()=>R("settings_nav_clicked",{section_key:u.key,section_label:u.label,group_label:p.label||"main"}),className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:u.icon}),s.jsx("span",{className:"truncate",children:u.label})]})})},u.key))})})]},`${p.label}-${S}`),e[15]=m,e[16]=l,e[17]=_):_=e[17],h=t.map(_),e[11]=t,e[12]=m,e[13]=l,e[14]=h}else h=e[14];let b;e[18]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[18]=b):b=e[18];let x;e[19]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsxs(w,{className:"pt-0 pr-0 pb-0 pl-0",children:[b,s.jsx(C,{children:s.jsx(O,{className:"gap-0.5",children:s.jsx(P,{children:s.jsxs(M,{onClick:je,className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:s.jsx(H,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})})})})]}),e[19]=x):x=e[19];let g;e[20]!==f||e[21]!==h?(g=s.jsxs(Y,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0",children:[f,h,x]}),e[20]=f,e[21]=h,e[22]=g):g=e[22];let y;e[23]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx("div",{className:"mt-auto px-4 pb-1",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","2.330.0"]})}),e[23]=y):y=e[23];let j;return e[24]!==g?(j=s.jsxs(Z,{variant:"sidebar",children:[g,y]}),e[24]=g,e[25]=j):j=e[25],j}function je(){R("signed_out",{source:"settings_sidebar"}),T.signOut()}function _e(e){return e.location.pathname}function ye(e){const t=k.c(29),{onClose:n}=e,l=q();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org"},t[0]=r):r=t[0];const{org:i}=E(r);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={select:ve},t[1]=c):c=t[1];const m=W(c);let o;t[2]!==i||t[3]!==m?(o=S=>{const u=S.replace("$org",i);return m.startsWith(u)},t[2]=i,t[3]=m,t[4]=o):o=t[4];const a=o;let d;t[5]!==i?(d={org:i},t[5]=i,t[6]=d):d=t[6];let f,h;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(F,{size:16,className:"shrink-0"}),h=s.jsx("span",{children:"Settings"}),t[7]=f,t[8]=h):(f=t[7],h=t[8]);let b;t[9]!==n||t[10]!==d?(b=s.jsx("div",{className:"flex items-center h-14 px-4 shrink-0 border-b border-border/50",children:s.jsxs(z,{to:"/$org",params:d,onClick:n,className:"flex items-center gap-2 text-sm font-semibold text-foreground",children:[f,h]})}),t[9]=n,t[10]=d,t[11]=b):b=t[11];let x;if(t[12]!==l||t[13]!==a||t[14]!==n||t[15]!==i){let S;t[17]!==a||t[18]!==n||t[19]!==i?(S=(u,v)=>s.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.label&&s.jsx("p",{className:$("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",v>0&&"mt-3"),children:u.label}),u.items.map(N=>s.jsxs(z,{to:N.to,params:{org:i},onClick:n,className:$("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",a(N.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[s.jsx("span",{className:"shrink-0",children:N.icon}),s.jsx("span",{className:"truncate",children:N.label})]},N.key))]},`${u.label}-${v}`),t[17]=a,t[18]=n,t[19]=i,t[20]=S):S=t[20],x=l.map(S),t[12]=l,t[13]=a,t[14]=n,t[15]=i,t[16]=x}else x=t[16];let g;t[21]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx("div",{className:"h-px bg-border/50 my-2"}),t[21]=g):g=t[21];let y;t[22]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[g,s.jsxs("button",{type:"button",onClick:Se,className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[s.jsx("span",{className:"shrink-0",children:s.jsx(H,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})]}),t[22]=y):y=t[22];let j;t[23]!==x?(j=s.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[x,y]}),t[23]=x,t[24]=j):j=t[24];let _;t[25]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","2.330.0"]})}),t[25]=_):_=t[25];let p;return t[26]!==j||t[27]!==b?(p=s.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[b,j,_]}),t[26]=j,t[27]=b,t[28]=p):p=t[28],p}function Se(){return T.signOut()}function ve(e){return e.location.pathname}function Ne(){const e=k.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx("button",{type:"button",onClick:$e,className:"flex size-7 shrink-0 items-center justify-center rounded-md text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground transition-colors",title:"Go back",children:s.jsx(ae,{size:16})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"shrink-0 flex items-center justify-between pl-1 pr-2 h-10",children:s.jsxs("div",{className:"flex items-center gap-0.5 min-w-0",children:[t,s.jsx("button",{type:"button",onClick:ke,className:"flex size-7 shrink-0 items-center justify-center rounded-md text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground transition-colors",title:"Go forward",children:s.jsx(de,{size:16})})]})}),e[1]=n):n=e[1],n}function ke(){return window.history.forward()}function $e(){return window.history.back()}function ze(e){const t=k.c(3),{onOpenSidebar:n}=e;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ce,{size:20}),t[0]=l):l=t[0];let r;return t[1]!==n?(r=s.jsx("div",{className:"shrink-0 flex items-center justify-between px-3 h-12 bg-background border-b border-border",children:s.jsx("button",{type:"button",onClick:n,className:"flex size-8 items-center justify-center rounded-md text-foreground/60 hover:bg-accent hover:text-foreground transition-colors","aria-label":"Open menu",children:l})}),t[1]=n,t[2]=r):r=t[2],r}function we(){const e=k.c(17),t=he(),{org:n}=L();ue(n.slug);const{setOpenMobile:l,openMobile:r}=X();if(t){let a;e[0]!==l?(a=s.jsx(ze,{onOpenSidebar:()=>l(!0)}),e[0]=l,e[1]=a):a=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(A,{value:"p-0",children:s.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:s.jsx(I,{})})})}),e[2]=d):d=e[2];let f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(ee,{className:"sr-only",children:"Navigation"}),e[3]=f):f=e[3];let h;e[4]!==l?(h=s.jsxs(se,{side:"left",hideCloseButton:!0,className:"w-[calc(100vw-3rem)] sm:max-w-md! p-0",children:[f,s.jsx(ye,{onClose:()=>l(!1)})]}),e[4]=l,e[5]=h):h=e[5];let b;e[6]!==r||e[7]!==l||e[8]!==h?(b=s.jsx(te,{open:r,onOpenChange:l,children:h}),e[6]=r,e[7]=l,e[8]=h,e[9]=b):b=e[9];let x;return e[10]!==a||e[11]!==b?(x=s.jsxs("div",{className:"flex flex-col flex-1 bg-background min-h-0",children:[a,d,b]}),e[10]=a,e[11]=b,e[12]=x):x=e[12],x}let i;e[13]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ne,{}),e[13]=i):i=e[13];let c;e[14]===Symbol.for("react.memo_cache_sentinel")?(c=$("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),e[14]=c):c=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(J,{size:20,className:"animate-spin text-muted-foreground"})}),e[15]=m):m=e[15];let o;return e[16]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(s.Fragment,{children:[i,s.jsx("div",{className:"flex-1 min-h-0 p-1",children:s.jsx("div",{className:c,children:s.jsx(K.Suspense,{fallback:m,children:s.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:s.jsx(A,{value:"p-0",children:s.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:s.jsx(I,{})})})})})})})]}),e[16]=o):o=e[16],o}function Qe(){const e=k.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={"--sidebar-width-icon":"3.5rem"},e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(ge,{}),e[1]=n):n=e[1];let l;return e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Q,{defaultOpen:!0,children:s.jsx("div",{className:"flex flex-col h-dvh overflow-hidden",children:s.jsxs(U,{className:"flex-1 bg-sidebar",style:t,children:[n,s.jsx(V,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:s.jsx(we,{})})]})})}),e[2]=l):l=e[2],l}export{ge as SettingsSidebar,ye as SettingsSidebarMobile,Qe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as v,c as N,j as r,r as S}from"./index-
|
|
1
|
+
import{e as v,c as N,j as r,r as S}from"./index-BW5oXiOF.js";import{C as w}from"./card-M99xY5Ij.js";import{i as E}from"./ArrowUpRight-DcUWATTI.js";function I(c){const e=v.c(12),{title:i,description:l,docsHref:t,actions:s,className:n,headerClassName:a,children:d}=c;let m;e[0]!==n?(m=N("flex flex-col gap-3",n),e[0]=n,e[1]=m):m=e[1];let f;e[2]!==s||e[3]!==l||e[4]!==t||e[5]!==a||e[6]!==i?(f=(i||l||t||s)&&r.jsxs("div",{className:N("flex items-center justify-between gap-3 px-4",a),children:[r.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[i&&r.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:i}),(l||t)&&r.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[l,t&&r.jsxs("a",{href:t,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",r.jsx(E,{size:12})]})]})]}),s&&r.jsx("div",{className:"shrink-0",children:s})]}),e[2]=s,e[3]=l,e[4]=t,e[5]=a,e[6]=i,e[7]=f):f=e[7];let o;return e[8]!==d||e[9]!==m||e[10]!==f?(o=r.jsxs("section",{className:m,children:[f,d]}),e[8]=d,e[9]=m,e[10]=f,e[11]=o):o=e[11],o}function P(c){const e=v.c(11),{className:i,children:l}=c;let t,s,n;if(e[0]!==l||e[1]!==i){const d=S.Children.toArray(l).filter(S.isValidElement);t=w,e[5]!==i?(s=N("p-0 gap-0 overflow-hidden",i),e[5]=i,e[6]=s):s=e[6],n=d.map($),e[0]=l,e[1]=i,e[2]=t,e[3]=s,e[4]=n}else t=e[2],s=e[3],n=e[4];let a;return e[7]!==t||e[8]!==s||e[9]!==n?(a=r.jsx(t,{className:s,children:n}),e[7]=t,e[8]=s,e[9]=n,e[10]=a):a=e[10],a}function $(c,e){return r.jsxs("div",{children:[e>0&&r.jsx("div",{className:"h-px bg-border mx-5"}),c]},e)}function R(c){const e=v.c(27),{icon:i,title:l,description:t,action:s,onClick:n,className:a,children:d}=c,m=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",f=n&&"hover:bg-muted/50 cursor-pointer";let o;e[0]!==a||e[1]!==m||e[2]!==f?(o=N(m,f,a),e[0]=a,e[1]=m,e[2]=f,e[3]=o):o=e[3];const b=n?"button":void 0,C=n?0:void 0;let x;e[4]!==n?(x=n?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),n())}:void 0,e[4]=n,e[5]=x):x=e[5];let p;e[6]!==i?(p=i&&r.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:i}),e[6]=i,e[7]=p):p=e[7];let u;e[8]!==l?(u=r.jsx("div",{className:"text-sm font-medium",children:l}),e[8]=l,e[9]=u):u=e[9];let h;e[10]!==t?(h=t&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:t}),e[10]=t,e[11]=h):h=e[11];let g;e[12]!==d||e[13]!==u||e[14]!==h?(g=r.jsxs("div",{className:"flex-1 min-w-0",children:[u,h,d]}),e[12]=d,e[13]=u,e[14]=h,e[15]=g):g=e[15];let j;e[16]!==s?(j=s&&r.jsx("div",{className:"shrink-0",onClick:D,children:s}),e[16]=s,e[17]=j):j=e[17];let y;return e[18]!==n||e[19]!==g||e[20]!==j||e[21]!==o||e[22]!==b||e[23]!==C||e[24]!==x||e[25]!==p?(y=r.jsxs("div",{className:o,onClick:n,role:b,tabIndex:C,onKeyDown:x,children:[p,g,j]}),e[18]=n,e[19]=g,e[20]=j,e[21]=o,e[22]=b,e[23]=C,e[24]=x,e[25]=p,e[26]=y):y=e[26],y}function D(c){return c.stopPropagation()}function H(c){const e=v.c(5),{children:i,className:l}=c;let t;e[0]!==l?(t=N("flex items-center justify-end gap-2 px-4 py-4",l),e[0]=l,e[1]=t):t=e[1];let s;return e[2]!==i||e[3]!==t?(s=r.jsx("div",{className:t,children:i}),e[2]=i,e[3]=t,e[4]=s):s=e[4],s}function K(c){const e=v.c(5),{className:i,children:l}=c;let t;e[0]!==i?(t=N("flex flex-col gap-10",i),e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==l||e[3]!==t?(s=r.jsx("div",{className:t,children:l}),e[2]=l,e[3]=t,e[4]=s):s=e[4],s}export{I as S,P as a,R as b,H as c,K as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as _,j as s,
|
|
1
|
+
import{e as _,j as s,bi as P,K as D,B as C,f as I,p as E,v as M,g as R,d as $,a0 as L,r as A,x as q,R as T,b as z,S as F,O as G,bj as U}from"./index-BW5oXiOF.js";import{a as B,c as H,d as Q,b as Y}from"./dialog-DKLqkTro.js";import{R as W}from"./required-auth-layout-B5HJtIOF.js";import{u as V}from"./use-tasks-MJ3x_RWK.js";import{b as J}from"./use-organization-settings-BufG9pl6.js";import{u as X}from"./use-org-sso-D_YtPG_1.js";import{i as Z}from"./Lock01-SfDe88qn.js";import{i as ee}from"./Archive-BDH1Dswp.js";const K=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),v=K?"⌘":"Ctrl",b={keyboardShortcuts:{keys:[v,"K"],description:"Keyboard shortcuts"},focusChatInput:{keys:[v,"L"],description:"Focus chat input"},saveAndFormat:{keys:[v,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[v,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[v,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",v,"S"],description:"New task"},toggleDaemon:{keys:[v,"D"],description:"Toggle daemon logs"}},te=[{label:"General",shortcuts:[b.keyboardShortcuts,b.newTask,b.toggleDaemon]},{label:"Editor",shortcuts:[b.saveAndFormat]},{label:"Chat",shortcuts:[b.focusChatInput,b.togglePlanMode,b.sendMessage,b.newLine]},{label:"Questions",shortcuts:[b.selectOption]},{label:"Monitoring",shortcuts:[b.applyFilter]}];function se(t){return K?t.metaKey:t.ctrlKey}function ne(t){const e=_.c(5),{open:a,onOpenChange:i}=t;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(H,{children:s.jsx(Q,{children:"Keyboard Shortcuts"})}),e[0]=c):c=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs(B,{className:"sm:max-w-md",children:[c,s.jsx("div",{className:"flex flex-col gap-4",children:te.map(ae)})]}),e[1]=r):r=e[1];let o;return e[2]!==i||e[3]!==a?(o=s.jsx(Y,{open:a,onOpenChange:i,children:r}),e[2]=i,e[3]=a,e[4]=o):o=e[4],o}function ae(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(oe)})]},t.label)}function oe(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(ie)})]},t.description)}function ie(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function re({activeOrg:t}){return t&&P(t.id,{name:t.name??void 0,slug:t.slug??void 0}),null}function le(t,e,a){if(!a)return null;const i=t.getQueriesData({queryKey:D.tasksPrefix(e)});for(const[,c]of i){const r=c?.items?.find(o=>o.id===a);if(r?.branch)return r.branch}return null}function ce(t){const e=_.c(17),{orgSlug:a,orgName:i,domain:c}=t;let r;e[0]!==a?(r=()=>{window.location.href=`/api/${encodeURIComponent(a)}/sso/authorize`},e[0]=a,e[1]=r):r=e[1];const o=r,u=me;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Z,{className:"h-6 w-6 text-primary"})}),e[2]=l):l=e[2];let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("h3",{className:"text-lg font-medium",children:"SSO Authentication Required"}),e[3]=h):h=e[3];let p;e[4]!==c||e[5]!==i?(p=i?s.jsxs(s.Fragment,{children:[s.jsx("strong",{children:i})," requires SSO authentication",c?` via ${c}`:"","."]}):"This organization requires SSO authentication to access.",e[4]=c,e[5]=i,e[6]=p):p=e[6];let n;e[7]!==p?(n=s.jsxs("div",{className:"space-y-2",children:[h,s.jsx("p",{className:"text-sm text-muted-foreground",children:p})]}),e[7]=p,e[8]=n):n=e[8];let S;e[9]!==o?(S=s.jsx(C,{onClick:o,children:"Sign in with SSO"}),e[9]=o,e[10]=S):S=e[10];let j;e[11]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(C,{variant:"ghost",onClick:u,children:"Go back"}),e[11]=j):j=e[11];let x;e[12]!==S?(x=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,j]}),e[12]=S,e[13]=x):x=e[13];let k;return e[14]!==n||e[15]!==x?(k=s.jsx("div",{className:"flex items-center justify-center min-h-screen bg-background",children:s.jsxs("div",{className:"flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:[l,n,x]})}),e[14]=n,e[15]=x,e[16]=k):k=e[16],k}function me(){window.location.href="/"}function de(t){const e=_.c(9),{orgName:a}=t,i=ue;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(ee,{className:"h-6 w-6 text-muted-foreground"})}),e[0]=c):c=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("h3",{className:"text-lg font-medium",children:"Organization unavailable"}),e[1]=r):r=e[1];let o;e[2]!==a?(o=a?s.jsxs(s.Fragment,{children:[s.jsx("strong",{children:a})," has been deleted or is no longer available."]}):"This organization has been deleted or is no longer available.",e[2]=a,e[3]=o):o=e[3];let u;e[4]!==o?(u=s.jsxs("div",{className:"space-y-2",children:[r,s.jsx("p",{className:"text-sm text-muted-foreground",children:o})]}),e[4]=o,e[5]=u):u=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(C,{onClick:i,children:"Go to home"}),e[6]=l):l=e[6];let h;return e[7]!==u?(h=s.jsx("div",{className:"flex items-center justify-center min-h-screen bg-background",children:s.jsxs("div",{className:"flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:[c,u,l]})}),e[7]=u,e[8]=h):h=e[8],h}function ue(){window.location.href="/"}function fe(t){const e=_.c(8),{org:a,children:i}=t,r=J(a.id,a.slug)?.enabled_plugins??null;let o;e[0]!==a.id||e[1]!==a.name||e[2]!==r?(o={id:a.id,organizationId:a.id,slug:"_org",name:a.name,enabledPlugins:r,ui:null},e[0]=a.id,e[1]=a.name,e[2]=r,e[3]=o):o=e[3];const u=o;let l;return e[4]!==i||e[5]!==a||e[6]!==u?(l=s.jsx(U,{org:a,project:u,children:i}),e[4]=i,e[5]=a,e[6]=u,e[7]=l):l=e[7],l}function ge(){const t=I(),e=E(),a=V(),{locator:i}=M(),c=R({strict:!1}),r=$({strict:!1}),o=c.org??"",u=c.taskId??"",l=(m,d,f=!0)=>t({to:"/$org/$taskId",params:{org:o,taskId:m},search:d,replace:f}),h=(m,d=!0)=>l(u,m,d),p=m=>h(d=>({...d,chat:m?1:0})),n=m=>h(d=>({...d,tasks:m?1:0})),S=(m,d)=>l(m,f=>{const y={chat:1};return d?y.virtualmcpid=d:f.virtualmcpid&&(y.virtualmcpid=f.virtualmcpid),f.tasks&&(y.tasks=f.tasks),f.main&&(y.main=f.main),y},!1);return{setChatOpen:p,setTasksOpen:n,setTaskId:S,createNewTask:async()=>{const m=crypto.randomUUID(),d=le(e,i,u),f=r.virtualmcpid;try{await a.create.mutateAsync({id:m,...f?{virtual_mcp_id:f}:{},...d?{branch:d}:{}})}catch{}S(m)},openTab:m=>l(u||crypto.randomUUID(),d=>({...d,main:m})),toggleMain:()=>h(m=>{if(m.main!==void 0&&m.main!=="0")return{...m,main:"0"};const f={...m};return delete f.main,f})}}function he(){const t=_.c(30);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const i=L(e)?.params.org,[c,r]=A.useState(!1);let o,u;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{const g=N=>{se(N)&&N.code==="KeyK"&&(N.preventDefault(),r(!0))};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},u=[],t[1]=o,t[2]=u):(o=t[1],u=t[2]),A.useEffect(o,u);let l;t[3]!==i?(l=D.activeOrganization(i),t[3]=i,t[4]=l):l=t[4];let h;t[5]!==i?(h=async()=>{if(!i)return null;const{data:g}=await z.organization.getFullOrganization({query:{organizationSlug:i}}),N=g?.metadata?.archived===!0;return g&&!N&&localStorage.setItem(T.lastOrgSlug(),i),g},t[5]=i,t[6]=h):h=t[6];let p;t[7]!==l||t[8]!==h?(p={queryKey:l,queryFn:h,gcTime:1/0,refetchOnWindowFocus:!1},t[7]=l,t[8]=h,t[9]=p):p=t[9];const{data:n}=q(p),S=n?.id,j=n?.slug,{data:x}=X(S,j);if(!n){let g;return t[10]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(F,{}),t[10]=g):g=t[10],g}if(n.metadata?.archived===!0){localStorage.getItem(T.lastOrgSlug())===i&&localStorage.removeItem(T.lastOrgSlug());let g;return t[11]!==n.name?(g=s.jsx(de,{orgName:n.name}),t[11]=n.name,t[12]=g):g=t[12],g}if(x?.ssoRequired&&!x.authenticated){let g;return t[13]!==n.id||t[14]!==n.name||t[15]!==n.slug||t[16]!==x.domain?(g=s.jsx(ce,{orgId:n.id,orgSlug:n.slug,orgName:n.name,domain:x.domain}),t[13]=n.id,t[14]=n.name,t[15]=n.slug,t[16]=x.domain,t[17]=g):g=t[17],g}const m=n.logo??null;let d;t[18]!==n||t[19]!==m?(d={...n,logo:m},t[18]=n,t[19]=m,t[20]=d):d=t[20];let f;t[21]!==n?(f=s.jsx(re,{activeOrg:n}),t[21]=n,t[22]=f):f=t[22];let y;t[23]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(G,{}),t[23]=y):y=t[23];let O;t[24]!==c?(O=s.jsx(ne,{open:c,onOpenChange:r}),t[24]=c,t[25]=O):O=t[25];let w;return t[26]!==O||t[27]!==d||t[28]!==f?(w=s.jsxs(fe,{org:d,children:[f,y,O]}),t[26]=O,t[27]=d,t[28]=f,t[29]=w):w=t[29],w}function pe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(W,{children:s.jsx(he,{})}),t[0]=e):e=t[0],e}const _e=Object.freeze(Object.defineProperty({__proto__:null,default:pe,usePanelActions:ge},Symbol.toStringTag,{value:"Module"}));export{b as K,se as i,le as r,_e as s,ge as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as b,c as g,j as o,cI as P,b_ as R,bd as A,cJ as H,b$ as W,cL as L,c0 as V,r as I,aX as q,aW as G,B as F}from"./index-Cw6xaTj4.js";import{i as J}from"./LayoutLeft-CqWq_OB6.js";import{u as X,c as B,a as D,T as k,b as O}from"./tooltip-CTM-VGNz.js";import{i as K}from"./X-C5yqRZnh.js";function Q(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(R,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function U(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(W,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function Y(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(V,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Z(i){const e=b.c(20);let t,s,a,l,n;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:n,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=n):(t=e[1],s=e[2],a=e[3],l=e[4],n=e[5]);const d=l===void 0?"right":l,r=n===void 0?!1:n;let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx(Y,{}),e[6]=u):u=e[6];const c=d==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",p=d==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=d==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",m=d==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let h;e[7]!==s||e[8]!==c||e[9]!==p||e[10]!==f||e[11]!==m?(h=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",c,p,f,m,s),e[7]=s,e[8]=c,e[9]=p,e[10]=f,e[11]=m,e[12]=h):h=e[12];let x;e[13]!==r?(x=!r&&o.jsxs(L,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(K,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=r,e[14]=x):x=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==h||e[18]!==x?(v=o.jsxs(U,{children:[u,o.jsxs(A,{"data-slot":"sheet-content",className:h,...a,children:[t,x]})]}),e[15]=t,e[16]=a,e[17]=h,e[18]=x,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(H,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=I.createContext(null);function z(){const i=I.useContext(E);if(!i)throw new Error("useSidebar must be used within a SidebarProvider.");return i}function be(i){const e=b.c(13),{children:t,defaultOpen:s}=i,a=s===void 0?!1:s,l=X(),[n,d]=I.useState(!1);let r;e[0]!==l?(r=()=>{l&&d(re)},e[0]=l,e[1]=r):r=e[1];const u=r,c=a?"expanded":"collapsed";let p;e[2]!==a||e[3]!==l||e[4]!==n||e[5]!==c||e[6]!==u?(p={state:c,open:a,setOpen:oe,isMobile:l,openMobile:n,setOpenMobile:d,toggleSidebar:u},e[2]=a,e[3]=l,e[4]=n,e[5]=c,e[6]=u,e[7]=p):p=e[7];const f=p;let m;e[8]!==t?(m=o.jsx(B,{delayDuration:0,children:t}),e[8]=t,e[9]=m):m=e[9];let h;return e[10]!==f||e[11]!==m?(h=o.jsx(E.Provider,{value:f,children:m}),e[10]=f,e[11]=m,e[12]=h):h=e[12],h}function oe(){}function re(i){return!i}function me(i){const e=b.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let n;e[5]!==l?(n={"--sidebar-width":ae,"--sidebar-width-icon":ie,...l},e[5]=l,e[6]=n):n=e[6];const d=n;let r;e[7]!==s?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=r):r=e[8];let u;return e[9]!==t||e[10]!==a||e[11]!==d||e[12]!==r?(u=o.jsx("div",{"data-slot":"sidebar-wrapper",style:d,className:r,...a,children:t}),e[9]=t,e[10]=a,e[11]=d,e[12]=r,e[13]=u):u=e[13],u}function xe(i){const e=b.c(36);let t,s,a,l,n;e[0]!==i?({side:l,variant:n,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=n):(t=e[1],s=e[2],a=e[3],l=e[4],n=e[5]);const d=l===void 0?"left":l,r=n===void 0?"sidebar":n,{isMobile:u,state:c,openMobile:p,setOpenMobile:f}=z();if(u){let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_={"--sidebar-width":le},e[6]=_):_=e[6];let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsxs(ee,{className:"sr-only",children:[o.jsx(te,{children:"Sidebar"}),o.jsx(se,{children:"Displays the mobile sidebar."})]}),e[7]=M):M=e[7];let $;e[8]!==t?($=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let C;e[10]!==d||e[11]!==$?(C=o.jsxs(Z,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:_,side:d,children:[M,$]}),e[10]=d,e[11]=$,e[12]=C):C=e[12];let T;return e[13]!==p||e[14]!==a||e[15]!==f||e[16]!==C?(T=o.jsx(Q,{open:p,onOpenChange:f,...a,children:C}),e[13]=p,e[14]=a,e[15]=f,e[16]=C,e[17]=T):T=e[17],T}const m=c==="expanded",h=m?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let x;e[18]!==h?(x=g("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden",h),e[18]=h,e[19]=x):x=e[19];const v=m?void 0:"icon",y=m?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let j;e[20]!==s||e[21]!==y?(j=g("flex flex-col h-full",y,s),e[20]=s,e[21]=y,e[22]=j):j=e[22];let N;e[23]!==t?(N=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=N):N=e[24];let w;e[25]!==a||e[26]!==j||e[27]!==N?(w=o.jsx("div",{"data-slot":"sidebar-container",className:j,...a,children:N}),e[25]=a,e[26]=j,e[27]=N,e[28]=w):w=e[28];let S;return e[29]!==d||e[30]!==c||e[31]!==x||e[32]!==v||e[33]!==w||e[34]!==r?(S=o.jsx("div",{className:x,"data-state":c,"data-collapsible":v,"data-variant":r,"data-side":d,"data-slot":"sidebar",children:w}),e[29]=d,e[30]=c,e[31]=x,e[32]=v,e[33]=w,e[34]=r,e[35]=S):S=e[35],S}function he(i){const e=b.c(18);let t,s,a;e[0]!==i?({className:t,onClick:s,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:l}=z();let n;e[4]!==t?(n=g("size-7",t),e[4]=t,e[5]=n):n=e[5];let d;e[6]!==s||e[7]!==l?(d=m=>{s?.(m),l()},e[6]=s,e[7]=l,e[8]=d):d=e[8];let r,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(J,{}),u=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=r,e[10]=u):(r=e[9],u=e[10]);let c;e[11]!==a||e[12]!==n||e[13]!==d?(c=o.jsx(k,{asChild:!0,children:o.jsxs(F,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:n,onClick:d,...a,children:[r,u]})}),e[11]=a,e[12]=n,e[13]=d,e[14]=c):c=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsxs(D,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=p):p=e[15];let f;return e[16]!==c?(f=o.jsx(B,{delayDuration:300,children:o.jsxs(O,{children:[c,p]})}),e[16]=c,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const de=G("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,n,d,r;e[0]!==i?({asChild:a,isActive:l,variant:n,size:d,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=n,e[6]=d,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],n=e[5],d=e[6],r=e[7]);const u=a===void 0?!1:a,c=l===void 0?!1:l,p=n===void 0?"default":n,f=d===void 0?"default":d,m=u?q:"button",{isMobile:h}=z();let x;e[8]!==t||e[9]!==f||e[10]!==p?(x=g(de({variant:p,size:f}),t),e[8]=t,e[9]=f,e[10]=p,e[11]=x):x=e[11];let v;e[12]!==m||e[13]!==c||e[14]!==s||e[15]!==f||e[16]!==x?(v=o.jsx(m,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":c,className:x,...s}),e[12]=m,e[13]=c,e[14]=s,e[15]=f,e[16]=x,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let S;e[18]!==r?(S={children:r},e[18]=r,e[19]=S):S=e[19],r=S}let j;e[20]!==y?(j=o.jsx(k,{asChild:!0,children:y}),e[20]=y,e[21]=j):j=e[21];let N;e[22]!==h||e[23]!==r?(N=o.jsx(D,{side:"right",align:"center",hidden:h,...r}),e[22]=h,e[23]=r,e[24]=N):N=e[24];let w;return e[25]!==j||e[26]!==N?(w=o.jsxs(O,{children:[j,N]}),e[25]=j,e[26]=N,e[27]=w):w=e[27],w}export{be as S,me as a,ge as b,te as c,Z as d,Q as e,Se as f,ye as g,$e as h,_e as i,Ce as j,Ne as k,we as l,xe as m,ve as n,je as o,ee as p,se as q,he as r,z as u};
|
|
1
|
+
import{e as b,c as g,j as o,cJ as P,b$ as R,be as A,cK as H,c0 as V,cM as W,c1 as q,r as z,aY as G,aX as L,B as F}from"./index-BW5oXiOF.js";import{i as J}from"./LayoutLeft-IDRLtOjX.js";import{u as K,c as D,a as I,T as k,b as O}from"./tooltip-Da8-Ku4Z.js";import{i as X}from"./X-DTT-z90W.js";function Y(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(R,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function Q(i){const e=b.c(4);let t;e[0]!==i?({...t}=i,e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==t?(s=o.jsx(V,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function U(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(q,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Z(i){const e=b.c(20);let t,s,a,l,n;e[0]!==i?({className:s,children:t,side:l,hideCloseButton:n,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=n):(t=e[1],s=e[2],a=e[3],l=e[4],n=e[5]);const d=l===void 0?"right":l,r=n===void 0?!1:n;let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx(U,{}),e[6]=u):u=e[6];const c=d==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",p=d==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=d==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",m=d==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let h;e[7]!==s||e[8]!==c||e[9]!==p||e[10]!==f||e[11]!==m?(h=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",c,p,f,m,s),e[7]=s,e[8]=c,e[9]=p,e[10]=f,e[11]=m,e[12]=h):h=e[12];let x;e[13]!==r?(x=!r&&o.jsxs(W,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(X,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=r,e[14]=x):x=e[14];let v;return e[15]!==t||e[16]!==a||e[17]!==h||e[18]!==x?(v=o.jsxs(Q,{children:[u,o.jsxs(A,{"data-slot":"sheet-content",className:h,...a,children:[t,x]})]}),e[15]=t,e[16]=a,e[17]=h,e[18]=x,e[19]=v):v=e[19],v}function ee(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function te(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(P,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx(H,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const ae="15rem",le="18rem",ie="4.5rem",E=z.createContext(null);function B(){const i=z.useContext(E);if(!i)throw new Error("useSidebar must be used within a SidebarProvider.");return i}function be(i){const e=b.c(13),{children:t,defaultOpen:s}=i,a=s===void 0?!1:s,l=K(),[n,d]=z.useState(!1);let r;e[0]!==l?(r=()=>{l&&d(re)},e[0]=l,e[1]=r):r=e[1];const u=r,c=a?"expanded":"collapsed";let p;e[2]!==a||e[3]!==l||e[4]!==n||e[5]!==c||e[6]!==u?(p={state:c,open:a,setOpen:oe,isMobile:l,openMobile:n,setOpenMobile:d,toggleSidebar:u},e[2]=a,e[3]=l,e[4]=n,e[5]=c,e[6]=u,e[7]=p):p=e[7];const f=p;let m;e[8]!==t?(m=o.jsx(D,{delayDuration:0,children:t}),e[8]=t,e[9]=m):m=e[9];let h;return e[10]!==f||e[11]!==m?(h=o.jsx(E.Provider,{value:f,children:m}),e[10]=f,e[11]=m,e[12]=h):h=e[12],h}function oe(){}function re(i){return!i}function me(i){const e=b.c(14);let t,s,a,l;e[0]!==i?({className:s,style:l,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l):(t=e[1],s=e[2],a=e[3],l=e[4]);let n;e[5]!==l?(n={"--sidebar-width":ae,"--sidebar-width-icon":ie,...l},e[5]=l,e[6]=n):n=e[6];const d=n;let r;e[7]!==s?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=r):r=e[8];let u;return e[9]!==t||e[10]!==a||e[11]!==d||e[12]!==r?(u=o.jsx("div",{"data-slot":"sidebar-wrapper",style:d,className:r,...a,children:t}),e[9]=t,e[10]=a,e[11]=d,e[12]=r,e[13]=u):u=e[13],u}function xe(i){const e=b.c(36);let t,s,a,l,n;e[0]!==i?({side:l,variant:n,className:s,children:t,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=n):(t=e[1],s=e[2],a=e[3],l=e[4],n=e[5]);const d=l===void 0?"left":l,r=n===void 0?"sidebar":n,{isMobile:u,state:c,openMobile:p,setOpenMobile:f}=B();if(u){let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_={"--sidebar-width":le},e[6]=_):_=e[6];let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsxs(ee,{className:"sr-only",children:[o.jsx(te,{children:"Sidebar"}),o.jsx(se,{children:"Displays the mobile sidebar."})]}),e[7]=M):M=e[7];let $;e[8]!==t?($=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let C;e[10]!==d||e[11]!==$?(C=o.jsxs(Z,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:_,side:d,children:[M,$]}),e[10]=d,e[11]=$,e[12]=C):C=e[12];let T;return e[13]!==p||e[14]!==a||e[15]!==f||e[16]!==C?(T=o.jsx(Y,{open:p,onOpenChange:f,...a,children:C}),e[13]=p,e[14]=a,e[15]=f,e[16]=C,e[17]=T):T=e[17],T}const m=c==="expanded",h=m?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let x;e[18]!==h?(x=g("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden",h),e[18]=h,e[19]=x):x=e[19];const v=m?void 0:"icon",y=m?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let j;e[20]!==s||e[21]!==y?(j=g("flex flex-col h-full",y,s),e[20]=s,e[21]=y,e[22]=j):j=e[22];let N;e[23]!==t?(N=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=N):N=e[24];let w;e[25]!==a||e[26]!==j||e[27]!==N?(w=o.jsx("div",{"data-slot":"sidebar-container",className:j,...a,children:N}),e[25]=a,e[26]=j,e[27]=N,e[28]=w):w=e[28];let S;return e[29]!==d||e[30]!==c||e[31]!==x||e[32]!==v||e[33]!==w||e[34]!==r?(S=o.jsx("div",{className:x,"data-state":c,"data-collapsible":v,"data-variant":r,"data-side":d,"data-slot":"sidebar",children:w}),e[29]=d,e[30]=c,e[31]=x,e[32]=v,e[33]=w,e[34]=r,e[35]=S):S=e[35],S}function he(i){const e=b.c(18);let t,s,a;e[0]!==i?({className:t,onClick:s,...a}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:l}=B();let n;e[4]!==t?(n=g("size-7",t),e[4]=t,e[5]=n):n=e[5];let d;e[6]!==s||e[7]!==l?(d=m=>{s?.(m),l()},e[6]=s,e[7]=l,e[8]=d):d=e[8];let r,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(J,{}),u=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=r,e[10]=u):(r=e[9],u=e[10]);let c;e[11]!==a||e[12]!==n||e[13]!==d?(c=o.jsx(k,{asChild:!0,children:o.jsxs(F,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:n,onClick:d,...a,children:[r,u]})}),e[11]=a,e[12]=n,e[13]=d,e[14]=c):c=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsxs(I,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(ne)})]}),e[15]=p):p=e[15];let f;return e[16]!==c?(f=o.jsx(D,{delayDuration:300,children:o.jsxs(O,{children:[c,p]})}),e[16]=c,e[17]=f):f=e[17],f}function ne(i){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:i},i)}function ge(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ve(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function je(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ne(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function we(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Se(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function ye(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function $e(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("flex w-full min-w-0 flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Ce(i){const e=b.c(8);let t,s;e[0]!==i?({className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("group/menu-item relative w-full",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}const de=L("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _e(i){const e=b.c(28);let t,s,a,l,n,d,r;e[0]!==i?({asChild:a,isActive:l,variant:n,size:d,tooltip:r,className:t,...s}=i,e[0]=i,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=n,e[6]=d,e[7]=r):(t=e[1],s=e[2],a=e[3],l=e[4],n=e[5],d=e[6],r=e[7]);const u=a===void 0?!1:a,c=l===void 0?!1:l,p=n===void 0?"default":n,f=d===void 0?"default":d,m=u?G:"button",{isMobile:h}=B();let x;e[8]!==t||e[9]!==f||e[10]!==p?(x=g(de({variant:p,size:f}),t),e[8]=t,e[9]=f,e[10]=p,e[11]=x):x=e[11];let v;e[12]!==m||e[13]!==c||e[14]!==s||e[15]!==f||e[16]!==x?(v=o.jsx(m,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":c,className:x,...s}),e[12]=m,e[13]=c,e[14]=s,e[15]=f,e[16]=x,e[17]=v):v=e[17];const y=v;if(!r)return y;if(typeof r=="string"){let S;e[18]!==r?(S={children:r},e[18]=r,e[19]=S):S=e[19],r=S}let j;e[20]!==y?(j=o.jsx(k,{asChild:!0,children:y}),e[20]=y,e[21]=j):j=e[21];let N;e[22]!==h||e[23]!==r?(N=o.jsx(I,{side:"right",align:"center",hidden:h,...r}),e[22]=h,e[23]=r,e[24]=N):N=e[24];let w;return e[25]!==j||e[26]!==N?(w=o.jsxs(O,{children:[j,N]}),e[25]=j,e[26]=N,e[27]=w):w=e[27],w}export{be as S,me as a,ge as b,te as c,Z as d,Y as e,Se as f,ye as g,$e as h,_e as i,Ce as j,Ne as k,we as l,xe as m,ve as n,je as o,ee as p,se as q,he as r,B as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,c,j as i}from"./index-
|
|
1
|
+
import{e as n,c,j as i}from"./index-BW5oXiOF.js";function m(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{m as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as C,c as d,
|
|
1
|
+
import{e as C,c as d,aX as u,j as a}from"./index-BW5oXiOF.js";const m=u("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",success:"fill-success text-gray-200",special:"fill-special text-background"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(m({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as N,r as j,j as e,B as p,t as S,o as c,e as b}from"./index-
|
|
1
|
+
import{v as N,r as j,j as e,B as p,t as S,o as c,e as b}from"./index-BW5oXiOF.js";import{D as k}from"./domain-settings-C9qsDXWB.js";import{P as f}from"./index-Djpto450.js";import{I as l}from"./input-IQBUa_cI.js";import{S as z}from"./switch-BuXjAHfK.js";import{a as P,b as R,c as A,d as T}from"./use-org-sso-D_YtPG_1.js";import{d as F,S as y,a as C,b as a,c as O}from"./settings-section-C_Z35Ekv.js";import{s as L}from"./Trash01-D2xRqKfO.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./constants-DK6-FgDX.js";import"./sidebar-Ch_ebdAm.js";import"./LayoutLeft-IDRLtOjX.js";import"./tooltip-Da8-Ku4Z.js";import"./X-DTT-z90W.js";import"./card-M99xY5Ij.js";import"./ArrowUpRight-DcUWATTI.js";function B(){const{org:t}=N(),{data:r,isLoading:E}=P(t.id,t.slug),x=R(t.id,t.slug),h=A(t.id,t.slug),v=T(t.id,t.slug),[s,d]=j.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[m,g]=j.useState(!1),u=r?.configured&&r.config,o=r?.config,I=()=>{o&&d({issuer:o.issuer,clientId:o.clientId,clientSecret:"",discoveryEndpoint:o.discoveryEndpoint??"",domain:o.domain,scopes:o.scopes.join(" ")}),g(!0)},w=async()=>{if(!s.issuer||!s.clientId||!s.domain){c.error("Issuer, Client ID, and Domain are required");return}if(!u&&!s.clientSecret){c.error("Client Secret is required for initial setup");return}try{await x.mutateAsync({issuer:s.issuer,clientId:s.clientId,clientSecret:s.clientSecret,discoveryEndpoint:s.discoveryEndpoint||void 0,scopes:s.scopes.split(/\s+/).filter(Boolean),domain:s.domain,enforced:o?.enforced??!1}),S(u?"sso_config_updated":"sso_configured",{organization_id:t.id,email_domain:s.domain}),c.success("SSO configuration saved"),g(!1)}catch(i){c.error(i instanceof Error?i.message:"Failed to save SSO config")}},_=async()=>{if(confirm("Are you sure you want to remove SSO configuration?"))try{await h.mutateAsync(),S("sso_config_removed",{organization_id:t.id}),c.success("SSO configuration removed"),g(!1)}catch{c.error("Failed to remove SSO config")}},D=async i=>{try{await v.mutateAsync(i),S("sso_enforcement_toggled",{organization_id:t.id,enforced:i}),c.success(i?"SSO enforcement enabled":"SSO enforcement disabled")}catch{c.error("Failed to toggle SSO enforcement")}};return e.jsx(f,{children:e.jsx(f.Content,{children:e.jsx(f.Body,{children:e.jsxs(F,{children:[e.jsx(f.Title,{children:"Security"}),e.jsx(k,{}),E?e.jsx("div",{className:"text-sm text-muted-foreground",children:"Loading..."}):e.jsxs(e.Fragment,{children:[u&&!m&&e.jsx(y,{title:"Single Sign-On",children:e.jsxs(C,{children:[e.jsx(a,{title:"Provider",action:e.jsx("span",{className:"font-medium",children:o.issuer})}),e.jsx(a,{title:"Client ID",action:e.jsx("span",{className:"font-mono text-xs",children:o.clientId})}),e.jsx(a,{title:"Domain",action:e.jsx("span",{className:"font-medium",children:o.domain})}),e.jsx(a,{title:"Scopes",action:e.jsx("span",{className:"font-mono text-xs",children:o.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:"Enforce SSO",description:"Require all members to authenticate via SSO",action:e.jsx(z,{checked:o.enforced,onCheckedChange:D,disabled:v.isPending})}),e.jsxs(O,{children:[e.jsxs(p,{variant:"ghost",size:"sm",onClick:_,disabled:h.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(L,{size:14}),"Remove"]}),e.jsx(p,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${t.slug}/sso/authorize`,"_blank")},children:"Test SSO"}),e.jsx(p,{variant:"outline",size:"sm",onClick:I,children:"Edit configuration"})]})]})}),(!u||m)&&e.jsx(y,{title:"Single Sign-On",children:e.jsxs(C,{children:[e.jsx(a,{title:"Issuer URL",description:"The OIDC issuer URL of your identity provider.",action:e.jsx(l,{id:"sso-issuer",placeholder:"https://login.microsoftonline.com/{tenant}/v2.0",value:s.issuer,onChange:i=>d(n=>({...n,issuer:i.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:"Client ID",action:e.jsx(l,{id:"sso-client-id",placeholder:"your-client-id",value:s.clientId,onChange:i=>d(n=>({...n,clientId:i.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:"Client Secret",description:m&&u?"Leave empty to keep current":void 0,action:e.jsx(l,{id:"sso-client-secret",type:"password",placeholder:"your-client-secret",value:s.clientSecret,onChange:i=>d(n=>({...n,clientSecret:i.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:"Email Domain",description:"The email domain this SSO provider covers.",action:e.jsx(l,{id:"sso-domain",placeholder:"company.com",value:s.domain,onChange:i=>d(n=>({...n,domain:i.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:"Scopes",action:e.jsx(l,{id:"sso-scopes",placeholder:"openid email profile",value:s.scopes,onChange:i=>d(n=>({...n,scopes:i.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:"Discovery Endpoint",description:"Optional — auto-detected from issuer if omitted.",action:e.jsx(l,{id:"sso-discovery",placeholder:"Auto-detected from issuer",value:s.discoveryEndpoint,onChange:i=>d(n=>({...n,discoveryEndpoint:i.target.value})),className:"w-[280px]"})}),e.jsxs(O,{children:[m&&e.jsx(p,{variant:"outline",size:"sm",onClick:()=>g(!1),children:"Cancel"}),e.jsx(p,{onClick:w,disabled:x.isPending,size:"sm",children:x.isPending?"Saving...":m?"Update":"Configure SSO"})]})]})})]})]})})})})}function se(){const t=b.c(1);let r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=e.jsx(B,{}),t[0]=r):r=t[0],r}export{se as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as D,j as s,E as le,r as K,v as ae,p as ce,f as de,g as me,B as Y,t as te,K as fe,a as ge,o as ie}from"./index-
|
|
1
|
+
import{e as D,j as s,E as le,r as K,v as ae,p as ce,f as de,g as me,B as Y,t as te,K as fe,a as ge,o as ie}from"./index-BW5oXiOF.js";import{i as ue}from"./AlertCircle-DzuAM8Ts.js";import{i as pe}from"./ChevronRight-W_JRVCsB.js";import{s as xe}from"./Plus-DPd13c1m.js";import{s as he}from"./Trash01-D2xRqKfO.js";import{I as X}from"./input-IQBUa_cI.js";import{S as ne}from"./switch-BuXjAHfK.js";import{S as ye}from"./skeleton-je9GHbw8.js";import{A as oe}from"./avatar-D8FGI6L7.js";import{b as je,P as Ce,a as ve}from"./popover-Dua0iOiu.js";import{b as re}from"./use-connection-fq8uDcfF.js";import{d as Z}from"./constants-DK6-FgDX.js";import{P as G}from"./index-Djpto450.js";import{u as Se}from"./use-registry-connections-B9cwxbzp.js";import{g as _e,h as be}from"./use-organization-settings-BufG9pl6.js";import{d as Pe,b as I,S as ee,a as Q}from"./settings-section-C_Z35Ekv.js";import"./User01-c_Asv58w.js";import"./use-collections-CeOFxTJH.js";import"./sidebar-Ch_ebdAm.js";import"./LayoutLeft-IDRLtOjX.js";import"./tooltip-Da8-Ku4Z.js";import"./X-DTT-z90W.js";import"./card-M99xY5Ij.js";import"./ArrowUpRight-DcUWATTI.js";function Re(t){const e=D.c(3),{error:n}=t;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(ue,{size:16}),e[0]=m):m=e[0];let o;return e[1]!==n.message?(o=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[m,s.jsxs("span",{className:"text-sm font-medium",children:["Failed to load store settings: ",n.message]})]}),e[1]=n.message,e[2]=o):o=e[2],o}function ke(t){const e=D.c(36),{onCancel:n,onSuccess:m}=t,o=re(),[r,j]=K.useState(""),[a,v]=K.useState(""),[x,S]=K.useState("");let h;e[0]!==o||e[1]!==r||e[2]!==x||e[3]!==a?(h=async()=>(await o.create.mutateAsync({title:r||"Private Registry",description:"Private MCP registry",connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=x,e[3]=a,e[4]=h):h=e[4];let f;e[5]!==m?(f=C=>{te("store_private_registry_added",{connection_id:C}),ie.success("Private registry added"),m(C)},e[5]=m,e[6]=f):f=e[6];let y;e[7]!==h||e[8]!==f?(y={mutationFn:h,onSuccess:f,onError:we},e[7]=h,e[8]=f,e[9]=y):y=e[9];const{mutate:c,isPending:d}=ge(y);let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=C=>j(C.target.value),e[10]=g):g=e[10];let u;e[11]!==r?(u=s.jsx(I,{title:"Name",action:s.jsx(X,{placeholder:"e.g. Acme Corp Registry",value:r,onChange:g,className:"w-[280px]"})}),e[11]=r,e[12]=u):u=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=C=>v(C.target.value),e[13]=p):p=e[13];let l;e[14]!==a?(l=s.jsx(I,{title:"Registry URL",action:s.jsx(X,{placeholder:"https://registry.example.com/mcp",value:a,onChange:p,className:"w-[280px]"})}),e[14]=a,e[15]=l):l=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=C=>S(C.target.value),e[16]=_):_=e[16];let b;e[17]!==x?(b=s.jsx(I,{title:"Auth Token",description:"Optional",action:s.jsx(X,{type:"password",placeholder:"Bearer token...",value:x,onChange:_,className:"w-[280px]"})}),e[17]=x,e[18]=b):b=e[18];let k;e[19]!==d||e[20]!==n?(k=s.jsx(Y,{variant:"ghost",size:"sm",onClick:n,disabled:d,children:"Cancel"}),e[19]=d,e[20]=n,e[21]=k):k=e[21];let N;e[22]!==c?(N=()=>c(),e[22]=c,e[23]=N):N=e[23];const O=!a||d,B=d?"Adding...":"Add Registry";let A;e[24]!==N||e[25]!==O||e[26]!==B?(A=s.jsx(Y,{size:"sm",onClick:N,disabled:O,children:B}),e[24]=N,e[25]=O,e[26]=B,e[27]=A):A=e[27];let R;e[28]!==k||e[29]!==A?(R=s.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[k,A]}),e[28]=k,e[29]=A,e[30]=R):R=e[30];let P;return e[31]!==R||e[32]!==u||e[33]!==l||e[34]!==b?(P=s.jsxs(Q,{children:[u,l,b,R]}),e[31]=R,e[32]=u,e[33]=l,e[34]=b,e[35]=P):P=e[35],P}function we(t){ie.error(`Failed to add registry: ${t.message}`)}function L(t){const e=D.c(29),{name:n,description:m,icon:o,enabled:r,onToggle:j,onDelete:a,href:v}=t,x=de();let S;e[0]===Symbol.for("react.memo_cache_sentinel")?(S={from:"/shell/$org"},e[0]=S):S=e[0];const{org:h}=me(S);let f;e[1]!==r||e[2]!==v||e[3]!==x||e[4]!==j||e[5]!==h?(f=()=>{v?x({to:v,params:{org:h}}):j(!r)},e[1]=r,e[2]=v,e[3]=x,e[4]=j,e[5]=h,e[6]=f):f=e[6];const y=f;let c;e[7]!==o||e[8]!==n?(c=o?s.jsx("img",{src:o,alt:n,className:"size-8 rounded-md object-contain"}):s.jsx(oe,{fallback:n.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=o,e[8]=n,e[9]=c):c=e[9];let d;e[10]!==a?(d=a&&s.jsxs(je,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(Y,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ae,children:s.jsx(he,{size:14})})}),s.jsx(ve,{className:"w-auto p-2",align:"end",children:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{className:"text-xs font-medium",children:"Remove this registry?"}),s.jsx(Y,{variant:"destructive",size:"xs",onClick:b=>{b.stopPropagation(),a()},children:"Remove"})]})})]}),e[10]=a,e[11]=d):d=e[11];let g;e[12]!==j?(g=b=>j(b),e[12]=j,e[13]=g):g=e[13];let u;e[14]!==r||e[15]!==g?(u=s.jsx(ne,{checked:r,onClick:Ne,onCheckedChange:g}),e[14]=r,e[15]=g,e[16]=u):u=e[16];let p;e[17]!==v?(p=v&&s.jsx(pe,{size:14,className:"text-muted-foreground"}),e[17]=v,e[18]=p):p=e[18];let l;e[19]!==d||e[20]!==u||e[21]!==p?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[d,u,p]}),e[19]=d,e[20]=u,e[21]=p,e[22]=l):l=e[22];let _;return e[23]!==m||e[24]!==y||e[25]!==n||e[26]!==c||e[27]!==l?(_=s.jsx(I,{title:n,description:m,onClick:y,icon:c,action:l}),e[23]=m,e[24]=y,e[25]=n,e[26]=c,e[27]=l,e[28]=_):_=e[28],_}function Ne(t){return t.stopPropagation()}function Ae(t){return t.stopPropagation()}function Me(){const t=D.c(59),{org:e}=ae(),n=Se(),m=re(),o=_e(),{mutateAsync:r}=be(),j=ce(),[a,v]=K.useState(!1);let x,S,h,f,y,c;if(t[0]!==m||t[1]!==e.id||t[2]!==j||t[3]!==o||t[4]!==n||t[5]!==a||t[6]!==r){const p=Z.REGISTRY(e.id),l=i=>{if(!o)return i===p;const w=o.registries[i];return w?w.enabled:i===p},_=Z.COMMUNITY_REGISTRY(e.id),b=n.find(i=>i.id===p),k=n.find(i=>i.id===_||i.id==="community-registry"),N=k?.id??_,O=Z.SELF(e.id),B=new Set([p,_,"community-registry",O]),A=n.filter(i=>!B.has(i.id));let R;t[13]!==o||t[14]!==r?(R=async(i,w)=>{te("store_registry_toggled",{connection_id:i,enabled:w});const se=o??{registries:{},blockedMcps:[]};await r({...se,registries:{...se.registries,[i]:{enabled:w}}})},t[13]=o,t[14]=r,t[15]=R):R=t[15];const P=R;let C;t[16]!==m||t[17]!==e.id||t[18]!==j?(C=async i=>{te("store_private_registry_removed",{connection_id:i}),await m.delete.mutateAsync(i),j.invalidateQueries({queryKey:fe.organizationSettings(e.id)})},t[16]=m,t[17]=e.id,t[18]=j,t[19]=C):C=t[19];const H=C;let U;t[20]!==o||t[21]!==r?(U=async i=>{v(!1);const w=o??{registries:{},blockedMcps:[]};await r({...w,registries:{...w.registries,[i]:{enabled:!0}}})},t[20]=o,t[21]=r,t[22]=U):U=t[22];const W=U,J=b?s.jsx(L,{name:"Deco Store",description:"Official deco MCP registry with curated integrations",icon:b.icon,enabled:l(p),onToggle:i=>P(p,i)}):s.jsx(I,{title:"Deco Store",description:"Connection not found — will be created automatically."});t[23]!==J?(y=s.jsx(ee,{title:"Deco Store",children:s.jsx(Q,{children:J})}),t[23]=J,t[24]=y):y=t[24];let M;t[25]!==a?(M=a?void 0:s.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>v(!0),children:[s.jsx(xe,{size:14}),"Add registry"]}),t[25]=a,t[26]=M):M=t[26];let T;t[27]!==W||t[28]!==a?(T=a&&s.jsx(ke,{onCancel:()=>v(!1),onSuccess:W}),t[27]=W,t[28]=a,t[29]=T):T=t[29];let z;t[30]!==l?(z=l("self"),t[30]=l,t[31]=z):z=t[31];let E;t[32]!==P?(E=i=>P("self",i),t[32]=P,t[33]=E):E=t[33];let $;t[34]!==z||t[35]!==E?($=s.jsx(L,{name:"Private Registry",description:"Your organization's private MCP registry",enabled:z,onToggle:E,href:"/$org/settings/store/registry"}),t[34]=z,t[35]=E,t[36]=$):$=t[36];let q;t[37]!==H||t[38]!==P||t[39]!==l?(q=i=>s.jsx(L,{name:i.title,description:i.description??"Private MCP registry",icon:i.icon,enabled:l(i.id),onToggle:w=>P(i.id,w),onDelete:()=>H(i.id)},i.id),t[37]=H,t[38]=P,t[39]=l,t[40]=q):q=t[40];const V=A.map(q);let F;t[41]!==$||t[42]!==V?(F=s.jsxs(Q,{children:[$,V]}),t[41]=$,t[42]=V,t[43]=F):F=t[43],t[44]!==F||t[45]!==M||t[46]!==T?(c=s.jsxs(ee,{title:"Private Registries",actions:M,children:[T,F]}),t[44]=F,t[45]=M,t[46]=T,t[47]=c):c=t[47],S=ee,f="Community",x=Q,h=k?s.jsx(L,{name:"MCP Registry",description:"Community MCP registry with thousands of handy MCPs",icon:k.icon,enabled:l(N),onToggle:i=>P(N,i)}):s.jsx(I,{title:"MCP Registry",description:"Community MCP registry — not yet added",icon:s.jsx(oe,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:s.jsx(ne,{checked:!1,disabled:!0,onCheckedChange:Te})}),t[0]=m,t[1]=e.id,t[2]=j,t[3]=o,t[4]=n,t[5]=a,t[6]=r,t[7]=x,t[8]=S,t[9]=h,t[10]=f,t[11]=y,t[12]=c}else x=t[7],S=t[8],h=t[9],f=t[10],y=t[11],c=t[12];let d;t[48]!==x||t[49]!==h?(d=s.jsx(x,{children:h}),t[48]=x,t[49]=h,t[50]=d):d=t[50];let g;t[51]!==S||t[52]!==f||t[53]!==d?(g=s.jsx(S,{title:f,children:d}),t[51]=S,t[52]=f,t[53]=d,t[54]=g):g=t[54];let u;return t[55]!==y||t[56]!==c||t[57]!==g?(u=s.jsxs(s.Fragment,{children:[y,c,g]}),t[55]=y,t[56]=c,t[57]=g,t[58]=u):u=t[58],u}function Te(){}function ze(){const t=D.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ye,{className:"h-64 w-full"}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(le,{fallback:Ee,children:s.jsx(K.Suspense,{fallback:e,children:s.jsx(G,{children:s.jsx(G.Content,{children:s.jsx(G.Body,{children:s.jsxs(Pe,{children:[s.jsx(G.Title,{children:"Store"}),s.jsx(Me,{})]})})})})})}),t[1]=n):n=t[1],n}function Ee(t){const{error:e}=t;return s.jsx(Re,{error:e??new Error("Failed to load store settings")})}function ot(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ze,{}),t[0]=e):e=t[0],e}export{ot as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CmGW21c2.js","assets/index-BW5oXiOF.js","assets/index-Bg3h9DSa.css","assets/ArrowNarrowLeft-Bmb7olbY.js","assets/CheckCircle-CjDCEsTA.js","assets/Container-CAHcYnEg.js","assets/Settings02-Dc5nQYki.js","assets/XCircle-BqSNivAk.js","assets/constants-DK6-FgDX.js","assets/useInfiniteQuery-CYx7uTOQ.js","assets/infiniteQueryObserver-ChWYWWbe.js","assets/badge-CHFfTDkx.js","assets/input-IQBUa_cI.js","assets/dropdown-menu-mFwKSfJW.js","assets/Check-D6DtmAYz.js","assets/ChevronRight-W_JRVCsB.js","assets/DotsVertical-EAv-owu7.js","assets/table-CmIcMrJR.js","assets/toggle-group-CwdiENSQ.js","assets/use-view-mode-Dwq_2gyt.js","assets/tooltip-Da8-Ku4Z.js","assets/SearchMd-Dh7KD_0m.js","assets/dialog-DKLqkTro.js","assets/X-DTT-z90W.js","assets/AlertCircle-DzuAM8Ts.js","assets/Upload01-43iSsXQQ.js","assets/alert-dialog-1jsNudB5.js","assets/card-M99xY5Ij.js","assets/Trash01-D2xRqKfO.js","assets/label-BnWIwDeW.js","assets/select-DCtC1IMd.js","assets/ChevronDown-BQEZBz5I.js","assets/ChevronUp-0UdtzCuO.js","assets/switch-BuXjAHfK.js","assets/textarea-BV-jr_2O.js","assets/RefreshCcw01-BYmTCqrQ.js","assets/checkbox-1zI1an2L.js","assets/LinkExternal01-j3B7-hx8.js","assets/use-copy-sJQGUyLg.js","assets/Plus-DPd13c1m.js","assets/Play-CnTvC9yX.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{e as n,f as c,g as m,j as r,l as f,r as l,_ as u}from"./index-BW5oXiOF.js";const _=l.lazy(()=>u(()=>import("./registry-layout-CmGW21c2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40])));function x(){const e=n.c(5),o=c();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:i}=m(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx("div",{className:"h-full flex items-center justify-center",children:r.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=s):s=e[1];let a;return e[2]!==o||e[3]!==i?(a=r.jsx(l.Suspense,{fallback:s,children:r.jsx(_,{onBack:()=>o({to:"/$org/settings/store",params:{org:i}})})}),e[2]=o,e[3]=i,e[4]=a):a=e[4],a}export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,a6 as C,
|
|
1
|
+
import{r as c,j as i,a6 as C,b6 as y,aT as B,a7 as I,b7 as M,b8 as H,ad as z,e as A,c as g}from"./index-BW5oXiOF.js";var m="Switch",[U]=z(m),[q,L]=U(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=B({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(T=>!T),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=L(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(r){return r?"checked":"unchecked"}var $=E,D=R;function W(r){const e=A.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx($,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{W as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c,c as i,j as r}from"./index-
|
|
1
|
+
import{e as c,c as i,j as r}from"./index-BW5oXiOF.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,p as a,b,d as c,f as d,m as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as b,n as A,
|
|
1
|
+
import{e as b,n as A,aO as F,aP as k,x as V,r as f,j as d,aQ as L,a6 as m,a7 as y,aR as h,ad as q,aS as D,aT as K,aU as G,aV as O,aW as Q,c as g}from"./index-BW5oXiOF.js";import{K as w}from"./constants-DK6-FgDX.js";async function C(s){if(!s.getServerCapabilities()?.prompts)return{prompts:[]};try{return await s.listPrompts()}catch(t){if(t instanceof F&&t.code===k.MethodNotFound)return{prompts:[]};throw t}}async function Z(s,e,t){if(!s.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await s.getPrompt({name:e,arguments:t??{}})}function ee(s){const e=b.c(12);let t,a;e[0]!==s?({client:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=w.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let o;e[5]!==t?(o=()=>C(t),e[5]=t,e[6]=o):o=e[6];const n=a.staleTime??3e4;let i;return e[7]!==a||e[8]!==r||e[9]!==o||e[10]!==n?(i={...a,queryKey:r,queryFn:o,staleTime:n,retry:!1},e[7]=a,e[8]=r,e[9]=o,e[10]=n,e[11]=i):i=e[11],V(i)}function te(s){const e=b.c(12);let t,a;e[0]!==s?({client:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=w.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let o;e[5]!==t?(o=()=>C(t),e[5]=t,e[6]=o):o=e[6];const n=a.staleTime??3e4;let i;return e[7]!==a||e[8]!==r||e[9]!==o||e[10]!==n?(i={...a,queryKey:r,queryFn:o,staleTime:n,retry:!1},e[7]=a,e[8]=r,e[9]=o,e[10]=n,e[11]=i):i=e[11],A(i)}var x="Tabs",[z]=q(x,[h]),P=h(),[B,T]=z(x),N=f.forwardRef((s,e)=>{const{__scopeTabs:t,value:a,onValueChange:r,defaultValue:o,orientation:n="horizontal",dir:i,activationMode:l="automatic",...v}=s,u=D(i),[c,p]=K({prop:a,onChange:r,defaultProp:o??"",caller:x});return d.jsx(B,{scope:t,baseId:G(),value:c,onValueChange:p,orientation:n,dir:u,activationMode:l,children:d.jsx(m.div,{dir:u,"data-orientation":n,...v,ref:e})})});N.displayName=x;var j="TabsList",E=f.forwardRef((s,e)=>{const{__scopeTabs:t,loop:a=!0,...r}=s,o=T(j,t),n=P(t);return d.jsx(O,{asChild:!0,...n,orientation:o.orientation,dir:o.dir,loop:a,children:d.jsx(m.div,{role:"tablist","aria-orientation":o.orientation,...r,ref:e})})});E.displayName=j;var I="TabsTrigger",_=f.forwardRef((s,e)=>{const{__scopeTabs:t,value:a,disabled:r=!1,...o}=s,n=T(I,t),i=P(t),l=M(n.baseId,a),v=$(n.baseId,a),u=a===n.value;return d.jsx(L,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(m.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...o,ref:e,onMouseDown:y(s.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?n.onValueChange(a):c.preventDefault()}),onKeyDown:y(s.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&n.onValueChange(a)}),onFocus:y(s.onFocus,()=>{const c=n.activationMode!=="manual";!u&&!r&&c&&n.onValueChange(a)})})})});_.displayName=I;var R="TabsContent",S=f.forwardRef((s,e)=>{const{__scopeTabs:t,value:a,forceMount:r,children:o,...n}=s,i=T(R,t),l=M(i.baseId,a),v=$(i.baseId,a),u=a===i.value,c=f.useRef(u);return f.useEffect(()=>{const p=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(p)},[]),d.jsx(Q,{present:r||u,children:({present:p})=>d.jsx(m.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!p,id:v,tabIndex:0,...n,ref:e,style:{...s.style,animationDuration:c.current?"0s":void 0},children:p&&o})})});S.displayName=R;function M(s,e){return`${s}-trigger-${e}`}function $(s,e){return`${s}-content-${e}`}var H=N,U=E,W=_,Y=S;function ae(s){const e=b.c(10);let t,a,r;e[0]!==s?({className:t,variant:r,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=r):(t=e[1],a=e[2],r=e[3]);const o=r===void 0?"pill":r;let n;e[4]!==t?(n=g("flex flex-col gap-2",t),e[4]=t,e[5]=n):n=e[5];let i;return e[6]!==a||e[7]!==n||e[8]!==o?(i=d.jsx(H,{"data-slot":"tabs","data-variant":o,className:n,...a}),e[6]=a,e[7]=n,e[8]=o,e[9]=i):i=e[9],i}function re(s){const e=b.c(11);let t,a,r;e[0]!==s?({className:t,variant:r,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=r):(t=e[1],a=e[2],r=e[3]);const o=r||"pill",n=o==="underline"?"flex h-[52px] items-center border-b border-border":o==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==t||e[5]!==n?(i=g(n,t),e[4]=t,e[5]=n,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==a||e[9]!==i?(l=d.jsx(U,{"data-slot":"tabs-list","data-variant":o,className:i,...a}),e[7]=o,e[8]=a,e[9]=i,e[10]=l):l=e[10],l}function se(s){const e=b.c(11);let t,a,r;e[0]!==s?({className:t,variant:r,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=r):(t=e[1],a=e[2],r=e[3]);const o=r||"pill",n=o==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":o==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==t||e[5]!==n?(i=g(n,t),e[4]=t,e[5]=n,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==a||e[9]!==i?(l=d.jsx(W,{"data-slot":"tabs-trigger","data-variant":o,className:i,...a}),e[7]=o,e[8]=a,e[9]=i,e[10]=l):l=e[10],l}function oe(s){const e=b.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=g("flex-1 outline-none h-full",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=d.jsx(Y,{"data-slot":"tabs-content",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}export{se as T,ae as a,re as b,oe as c,te as d,Z as g,C as l,ee as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as o}from"./AlertCircle-
|
|
1
|
+
import{i as o}from"./AlertCircle-DzuAM8Ts.js";import{i as t}from"./CheckCircle-CjDCEsTA.js";import{a as r}from"./DotsVertical-EAv-owu7.js";import{Y as a}from"./agent-icon-Bf-mJf1h.js";import{l}from"./index-BW5oXiOF.js";import{i as n}from"./XCircle-BqSNivAk.js";const i={requires_action:{label:"Needs review",verb:"Waiting for your review",icon:o,iconClassName:"text-orange-500",labelColor:"text-orange-600 dark:text-orange-400"},failed:{label:"Failed",verb:"Something went wrong",icon:n,iconClassName:"text-red-500",labelColor:"text-red-600 dark:text-red-400"},expired:{label:"Timed out",verb:"Stopped responding",icon:a,iconClassName:"text-amber-500",labelColor:"text-amber-600 dark:text-amber-400"},in_progress:{label:"Running",verb:"Agent is working",icon:l,iconClassName:"text-blue-500",labelColor:"text-blue-600 dark:text-blue-400"},completed:{label:"Done",verb:"Completed",icon:t,iconClassName:"text-muted-foreground/50",labelColor:"text-muted-foreground"}},m={label:"Unknown",verb:"Unknown status",icon:r,iconClassName:"text-muted-foreground",labelColor:"text-muted-foreground"};function x(e){return i[e??"completed"]??m}export{i as S,x as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as o,c as l,j as n}from"./index-
|
|
1
|
+
import{e as o,c as l,j as n}from"./index-BW5oXiOF.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,
|
|
1
|
+
import{r as x,aT as h,j as c,a6 as m,a7 as k,bc as p,aQ as S,aR as T,aS as M,aV as A,ad as F,aX as $,e as P,c as C}from"./index-BW5oXiOF.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=h({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),I=T(),b=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});b.displayName=v;var[z,R]=w(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(y,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(E=>E!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(y,{...r,ref:e})})});b.displayName=v;var[O,H]=w(v),y=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=I(l),u=M(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=R(f,a.__scopeToggleGroup),s=H(f,a.__scopeToggleGroup),n=I(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(S,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=R(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),L=b,Q=N;const U=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),V=x.createContext({size:"default",variant:"default"});function q(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(V.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(L,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function J(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(V),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(U({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(Q,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{q as T,J as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as h,v as I,K as T,x as b,G as C,y as k,M as N,j as o}from"./index-
|
|
1
|
+
import{e as h,v as I,K as T,x as b,G as C,y as k,M as N,j as o}from"./index-BW5oXiOF.js";import{B as x}from"./badge-CHFfTDkx.js";import{b as y,T as j,a as g,c as S}from"./tooltip-Da8-Ku4Z.js";import{g as _}from"./types--Rr3ouKV.js";import{s as $}from"./RefreshCcw01-BYmTCqrQ.js";import{s as A}from"./Star01-BTd7uzv1.js";import{U}from"./agent-icon-Bf-mJf1h.js";function q(m){const e=h.c(11),{connectionId:a}=m,{org:r}=I();let i,t,l;e[0]!==a||e[1]!==r.slug?(i=new URL(`/api/${r.slug}/mcp/${a}`,window.location.origin),l=b,t=T.isMCPAuthenticated(i.href,null),e[0]=a,e[1]=r.slug,e[2]=i,e[3]=t,e[4]=l):(i=e[2],t=e[3],l=e[4]);let s;e[5]!==i||e[6]!==r.id?(s=()=>C({url:i.href,token:null,orgId:r.id}),e[5]=i,e[6]=r.id,e[7]=s):s=e[7];let n;e[8]!==t||e[9]!==s?(n={queryKey:t,queryFn:s},e[8]=t,e[9]=s,e[10]=n):n=e[10];const{data:c}=l(n);return c}const w=[{key:"readOnlyHint",label:"Read-only",Icon:$,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:k,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:N,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:A,variant:"outline"}];function z(m){const e=h.c(18),{annotations:a,_meta:r}=m;let i;e[0]!==r?(i=_(r),e[0]=r,e[1]=i):i=e[1];const t=!!i;let l,s,n,c,u;if(e[2]!==a||e[3]!==t){u=Symbol.for("react.early_return_sentinel");e:{const f=a?w.filter(v=>a[v.key]===!0):[];if(f.length===0&&!t){u=null;break e}l=S,s="flex gap-1 flex-nowrap",e[9]!==t?(n=t&&o.jsxs(y,{children:[o.jsx(j,{asChild:!0,children:o.jsx(x,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:o.jsx(U,{})})}),o.jsx(g,{children:"Interactive"})]}),e[9]=t,e[10]=n):n=e[10],c=f.map(H)}e[2]=a,e[3]=t,e[4]=l,e[5]=s,e[6]=n,e[7]=c,e[8]=u}else l=e[4],s=e[5],n=e[6],c=e[7],u=e[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;let d;e[11]!==s||e[12]!==n||e[13]!==c?(d=o.jsxs("div",{className:s,children:[n,c]}),e[11]=s,e[12]=n,e[13]=c,e[14]=d):d=e[14];let p;return e[15]!==l||e[16]!==d?(p=o.jsx(l,{children:d}),e[15]=l,e[16]=d,e[17]=p):p=e[17],p}function H(m){const{label:e,Icon:a,variant:r}=m;return o.jsxs(y,{children:[o.jsx(j,{asChild:!0,children:o.jsx(x,{asChild:!0,variant:r,className:"size-6 p-1",children:o.jsx(a,{})})}),o.jsx(g,{children:e})]},e)}export{z as T,q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,j as c,a6 as H,
|
|
1
|
+
import{r as a,j as c,a6 as H,aU as Z,aT as ee,c5 as te,b6 as $,c6 as oe,a7 as b,aW as G,c7 as re,c8 as V,ce as ne,cf as se,ad as ae,dg as ie,cg as le,e as _,c as ce}from"./index-BW5oXiOF.js";var ue=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),de="VisuallyHidden",z=a.forwardRef((o,e)=>c.jsx(H.span,{...o,ref:e,style:{...ue,...o.style}}));z.displayName=de;var pe=z,[O]=ae("Tooltip",[V]),D=V(),B="TooltipProvider",fe=700,A="tooltip.open",[ve,k]=O(B),F=o=>{const{__scopeTooltip:e,delayDuration:t=fe,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,i=a.useRef(!0),d=a.useRef(!1),l=a.useRef(0);return a.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),c.jsx(ve,{scope:e,isOpenDelayedRef:i,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=B;var R="Tooltip",[he,j]=O(R),U=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:i,delayDuration:d}=o,l=k(R,o.__scopeTooltip),p=D(e),[u,v]=a.useState(null),h=Z(),f=a.useRef(0),x=i??l.disableHoverableContent,m=d??l.delayDuration,g=a.useRef(!1),[y,T]=ee({prop:r,defaultProp:n??!1,onChange:S=>{S?(l.onOpen(),document.dispatchEvent(new CustomEvent(A))):l.onClose(),s?.(S)},caller:R}),w=a.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,T(!0)},[T]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,T(!1)},[T]),N=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,T(!0),f.current=0},m)},[m,T]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(te,{...p,children:c.jsx(he,{scope:e,contentId:h,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{l.isOpenDelayedRef.current?N():E()},[l.isOpenDelayedRef,N,E]),onTriggerLeave:a.useCallback(()=>{x?P():(window.clearTimeout(f.current),f.current=0)},[P,x]),onOpen:E,onClose:P,disableHoverableContent:x,children:t})})};U.displayName=R;var M="TooltipTrigger",Y=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=j(M,t),s=k(M,t),i=D(t),d=a.useRef(null),l=$(e,d,n.onTriggerChange),p=a.useRef(!1),u=a.useRef(!1),v=a.useCallback(()=>p.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(oe,{asChild:!0,...i,children:c.jsx(H.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:l,onPointerMove:b(o.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:b(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:b(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:b(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:b(o.onBlur,n.onClose),onClick:b(o.onClick,n.onClose)})})});Y.displayName=M;var I="TooltipPortal",[xe,ge]=O(I,{forceMount:void 0}),W=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=j(I,e);return c.jsx(xe,{scope:e,forceMount:t,children:c.jsx(G,{present:t||s.open,children:c.jsx(re,{asChild:!0,container:n,children:r})})})};W.displayName=I;var C="TooltipContent",q=a.forwardRef((o,e)=>{const t=ge(C,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,i=j(C,o.__scopeTooltip);return c.jsx(G,{present:r||i.open,children:i.disableHoverableContent?c.jsx(K,{side:n,...s,ref:e}):c.jsx(me,{side:n,...s,ref:e})})}),me=a.forwardRef((o,e)=>{const t=j(C,o.__scopeTooltip),r=k(C,o.__scopeTooltip),n=a.useRef(null),s=$(e,n),[i,d]=a.useState(null),{trigger:l,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,h=a.useCallback(()=>{d(null),v(!1)},[v]),f=a.useCallback((x,m)=>{const g=x.currentTarget,y={x:x.clientX,y:x.clientY},T=Ce(y,g.getBoundingClientRect()),w=we(y,T),E=Ee(m.getBoundingClientRect()),P=Re([...w,...E]);d(P),v(!0)},[v]);return a.useEffect(()=>()=>h(),[h]),a.useEffect(()=>{if(l&&u){const x=g=>f(g,u),m=g=>f(g,l);return l.addEventListener("pointerleave",x),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",x),u.removeEventListener("pointerleave",m)}}},[l,u,f,h]),a.useEffect(()=>{if(i){const x=m=>{const g=m.target,y={x:m.clientX,y:m.clientY},T=l?.contains(g)||u?.contains(g),w=!Pe(y,i);T?h():w&&(h(),p())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,u,i,p,h]),c.jsx(K,{...o,ref:s})}),[Te,ye]=O(R,{isInside:!1}),be=ie("TooltipContent"),K=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:i,...d}=o,l=j(C,t),p=D(t),{onClose:u}=l;return a.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),a.useEffect(()=>{if(l.trigger){const v=h=>{h.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[l.trigger,u]),c.jsx(ne,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(se,{"data-state":l.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(be,{children:r}),c.jsx(Te,{scope:t,isInside:!0,children:c.jsx(pe,{id:l.contentId,role:"tooltip",children:n||r})})]})})});q.displayName=C;var X="TooltipArrow",J=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return ye(X,t).isInside?null:c.jsx(le,{...n,...r,ref:e})});J.displayName=X;function Ce(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function we(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function Ee(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function Pe(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const d=e[s],l=e[i],p=d.x,u=d.y,v=l.x,h=l.y;u>r!=h>r&&t<(v-p)*(r-u)/(h-u)+p&&(n=!n)}return n}function Re(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),_e(e)}function _e(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],i=e[e.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var je=F,Oe=U,De=Y,Le=W,Ae=q,Me=J;const Q=768,L=()=>globalThis.innerWidth<Q;function Ne(){const o=_.c(2),[e,t]=a.useState(L);let r,n;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{const s=()=>t(L),i=globalThis.matchMedia(`(max-width: ${Q-1}px)`);return i.addEventListener("change",s),t(L),()=>i.removeEventListener("change",s)},n=[],o[0]=r,o[1]=n):(r=o[0],n=o[1]),a.useEffect(r,n),e}function ke(o){const e=_.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(je,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Se(o){const e=_.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(ke,{children:c.jsx(Oe,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function He(o){const e=_.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(De,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function $e(o){const e=_.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const i=s===void 0?0:s;let d;e[5]!==r?(d=ce("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=c.jsx(Me,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=l):l=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==i||e[11]!==d?(p=c.jsx(Le,{children:c.jsxs(Ae,{"data-slot":"tooltip-content",sideOffset:i,className:d,...n,children:[t,l]})}),e[8]=t,e[9]=n,e[10]=i,e[11]=d,e[12]=p):p=e[12],p}export{He as T,ue as V,$e as a,Se as b,ke as c,Ne as u};
|