limixbot 0.3.131 → 0.3.133
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/NOTICE +119 -0
- package/README.md +3 -5
- package/dist/assets/{ActivityPanel-DLm-v_Kg.js → ActivityPanel-BTszBP4a.js} +1 -1
- package/dist/assets/App-B2fBpoRZ.js +250 -0
- package/dist/assets/{AppEventEditor-BdU7zTya.js → AppEventEditor-CDO2rLAR.js} +1 -1
- package/dist/assets/{BotSettingsDialog-DZbrG3Yu.js → BotSettingsDialog-bwIEtMBP.js} +7 -7
- package/dist/assets/{BrowserPanel-BAmkHZNW.js → BrowserPanel-Cm4lK77e.js} +1 -1
- package/dist/assets/{BrowserProfilesManager-DL_IVvlO.js → BrowserProfilesManager-zGt-sq4k.js} +1 -1
- package/dist/assets/{CloudAddDialog-Cs6tRBOu.js → CloudAddDialog-Bhz32gRM.js} +1 -1
- package/dist/assets/{ComputerFilesPane-Bl6NnCOe.js → ComputerFilesPane-BC49N1Pm.js} +1 -1
- package/dist/assets/{ComputerPanel-CzwDPKV_.js → ComputerPanel-B5BJuUqm.js} +2 -2
- package/dist/assets/{DataPanel-FEAZNWku.js → DataPanel-D-zD8ngK.js} +1 -1
- package/dist/assets/{DesktopViewer-Cb9PL6v1.js → DesktopViewer-CgTlC2ON.js} +1 -1
- package/dist/assets/{GrokMoveDialog-Bp0mxIE8.js → GrokMoveDialog-Diktcl5X.js} +1 -1
- package/dist/assets/{InspectorPanel-DJADxXPA.js → InspectorPanel-Dzl7wwRq.js} +1 -1
- package/dist/assets/{KeyboardShortcutsModal-CNiZBEA1.js → KeyboardShortcutsModal-Bo7yVUTs.js} +1 -1
- package/dist/assets/{LimixResizeHandles-nzE7n7jC.js → LimixResizeHandles-Bdcz_w8I.js} +1 -1
- package/dist/assets/{LiveDesktop-BvdjlV9Q.js → LiveDesktop-qk7oOKR-.js} +1 -1
- package/dist/assets/{LocalVmWorkspace-DmQTSD1_.js → LocalVmWorkspace-B7YaXgti.js} +1 -1
- package/dist/assets/{MacLocalControl-WWFi-S9U.js → MacLocalControl-YCjPm4U3.js} +1 -1
- package/dist/assets/{MarkdownFilePreview-BsGqiWI2.js → MarkdownFilePreview-uvNI77v4.js} +1 -1
- package/dist/assets/{MenuMotion-owWIcamS.js → MenuMotion-D8l5zOOH.js} +1 -1
- package/dist/assets/{NewBotDialog-sr2kfVv6.js → NewBotDialog-veYkUiA5.js} +1 -1
- package/dist/assets/{PhoneAppDialog-DC4JUrmh.js → PhoneAppDialog-CkE9M2PT.js} +1 -1
- package/dist/assets/{PlacesRail-BxdV2GDQ.js → PlacesRail-B0T5a390.js} +1 -1
- package/dist/assets/{PluginsPanel-BMHhkTNZ.js → PluginsPanel-BSv-aWR7.js} +1 -1
- package/dist/assets/{ProIntroduction-CLLJ3Vgd.js → ProIntroduction-BJMwoQGa.js} +1 -1
- package/dist/assets/{RemoteAgentSettingsPanel-DWTstMZc.js → RemoteAgentSettingsPanel-Dkaxe7IA.js} +1 -1
- package/dist/assets/{RoomPanel-DuE_Gpr5.js → RoomPanel-BIXVLWNZ.js} +1 -1
- package/dist/assets/{RoutinesPage-CPo3eSc1.js → RoutinesPage-B-QJRpZi.js} +2 -2
- package/dist/assets/SettingsModal-BtRFqxwn.js +20 -0
- package/dist/assets/{ShareTeamDialog-CDkcowQz.js → ShareTeamDialog-D3Ea5oSB.js} +1 -1
- package/dist/assets/{SignedInSites-DLDJv-6U.js → SignedInSites-CPLPNDp5.js} +1 -1
- package/dist/assets/{TeamLibraryPanel-X0NQqbX0.js → TeamLibraryPanel-D_pKnj54.js} +1 -1
- package/dist/assets/{TeamMapPage-C6K12Ejq.js → TeamMapPage-CBV2HmaF.js} +1 -1
- package/dist/assets/{TriggersPage-BAXbOt6i.js → TriggersPage-C9FIxQGD.js} +1 -1
- package/dist/assets/{VisibilitySection-CC7rEV8o.js → VisibilitySection-B0z1XJD4.js} +1 -1
- package/dist/assets/{WebhookTrigger-cHV0kIQv.js → WebhookTrigger-C7qvE8eC.js} +1 -1
- package/dist/assets/{WorksOnGrid-DZ5DXYgb.js → WorksOnGrid-BOLs3g9Y.js} +1 -1
- package/dist/assets/{abnfDiagram-YUKMZFIV-vvJbRPlq.js → abnfDiagram-YUKMZFIV-CBc7oFEe.js} +1 -1
- package/dist/assets/{activity-D26W1wR5.js → activity-BVpu0XkG.js} +1 -1
- package/dist/assets/{architectureDiagram-47P4ROYG-BxqUvVUX.js → architectureDiagram-47P4ROYG-B5jJZs7S.js} +1 -1
- package/dist/assets/{blockDiagram-E7TT5TSB-DDe2YxQP.js → blockDiagram-E7TT5TSB-DAjxXILv.js} +1 -1
- package/dist/assets/{c4Diagram-CRA5TL53-OdUvGZP-.js → c4Diagram-CRA5TL53-KWoy72TL.js} +1 -1
- package/dist/assets/{calendar-days-OEtSVrLe.js → calendar-days-DNA-E4Np.js} +1 -1
- package/dist/assets/channel-q-lG3psP.js +1 -0
- package/dist/assets/{chunk-2Q5K7J3B-DpnJlpzb.js → chunk-2Q5K7J3B-D3Ycc8P6.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-C5UgOu8-.js → chunk-5VM5RSS4-C7mfSQVV.js} +1 -1
- package/dist/assets/{chunk-7TKQ45FW-Dv-gctKP.js → chunk-7TKQ45FW-BKvAYNH2.js} +1 -1
- package/dist/assets/{chunk-AW2ZBBNX-mehzuNgt.js → chunk-AW2ZBBNX-Ca8gRTzc.js} +1 -1
- package/dist/assets/{chunk-FVRAUYC3-6bArILty.js → chunk-FVRAUYC3-Bzkks_DT.js} +2 -2
- package/dist/assets/{chunk-HTAEGDNF-0w6XIlls.js → chunk-HTAEGDNF-Zo7ZYlx6.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-DaZro178.js → chunk-JWPE2WC7-DuQPO5Rt.js} +1 -1
- package/dist/assets/{chunk-KQW6MTUR-CqA51RiN.js → chunk-KQW6MTUR-C3yGOwbc.js} +1 -1
- package/dist/assets/{chunk-XXDRQBXY-DPZH_wOz.js → chunk-XXDRQBXY-Dza0vL4n.js} +1 -1
- package/dist/assets/{classDiagram-v2-K4WV4PDN-Dgn2w_U2.js → classDiagram-v2-K4WV4PDN-DTtDRSzj.js} +1 -1
- package/dist/assets/{coins-D0EwvaZf.js → coins-Bn14rFjr.js} +1 -1
- package/dist/assets/{core-Lc3koHof.js → core-CGuF_Hr1.js} +1 -1
- package/dist/assets/{cose-bilkent-JH36ORCC-B9lVmBnW.js → cose-bilkent-JH36ORCC-wZ_7CqXu.js} +1 -1
- package/dist/assets/{cynefin-EF2NZ3EQ-BoirpSv2.js → cynefin-EF2NZ3EQ-CE0jDEB2.js} +1 -1
- package/dist/assets/{cynefinDiagram-3GCD6N5R-Cdmdj7_K.js → cynefinDiagram-3GCD6N5R-CHr9A4jc.js} +1 -1
- package/dist/assets/{dagre-W4DXFKR2-BFjlE582.js → dagre-W4DXFKR2-C3IEvn1u.js} +1 -1
- package/dist/assets/{diagram-2UJZ2QOL-OsLSZez_.js → diagram-2UJZ2QOL-D6GEShaY.js} +1 -1
- package/dist/assets/{diagram-OVF4WLC6-CwDUdKBh.js → diagram-OVF4WLC6-vc-kIw0c.js} +1 -1
- package/dist/assets/{diagram-PFPMY2P6-BLtFTcT4.js → diagram-PFPMY2P6-Dz6L5P0U.js} +1 -1
- package/dist/assets/{diagram-UMYRVEAY-BSLF9HqA.js → diagram-UMYRVEAY-BKH-KrgS.js} +1 -1
- package/dist/assets/{diagram-YEKJPTXX-9rCjHXiY.js → diagram-YEKJPTXX-BugCeBVB.js} +1 -1
- package/dist/assets/{diagram-ZIFT7M5P-C4BY_KLT.js → diagram-ZIFT7M5P-BYARFkzf.js} +1 -1
- package/dist/assets/{ebnfDiagram-VR2GEFS7-AhQ5NsrM.js → ebnfDiagram-VR2GEFS7-CKzxPCV8.js} +1 -1
- package/dist/assets/{elk-IJKZMXRS-UnH28E2R.js → elk-IJKZMXRS--PWP5h9X.js} +1 -1
- package/dist/assets/{erDiagram-O2IAPWRE-CO0nepRl.js → erDiagram-O2IAPWRE-OYgx1l4s.js} +1 -1
- package/dist/assets/{file-up-D-jXnd_Y.js → file-up-DmgXwNtQ.js} +1 -1
- package/dist/assets/{flowDiagram-OXPTDLAJ-DdStYfx7.js → flowDiagram-OXPTDLAJ-Cx9uOAhj.js} +1 -1
- package/dist/assets/{ganttDiagram-R7TSEDQI-DH8CA0Mt.js → ganttDiagram-R7TSEDQI-DF4G2mlV.js} +1 -1
- package/dist/assets/{gitGraphDiagram-XJZIOB7I-Ds4256L4.js → gitGraphDiagram-XJZIOB7I-D9CUZ9nv.js} +1 -1
- package/dist/assets/{import-name-CHPmMQSU.js → import-name-DUNKRTJV.js} +1 -1
- package/dist/assets/{index-CFBg45ji.js → index-CV61vbZS.js} +1 -1
- package/dist/assets/{index-CGhQDBT_.js → index-VDBTcIMw.js} +3 -3
- package/dist/assets/{infoDiagram-5W2HQ5XZ-mNLO1zPg.js → infoDiagram-5W2HQ5XZ-CZW1K3wV.js} +1 -1
- package/dist/assets/{ishikawaDiagram-K3B6WC7H-Daak_Ht_.js → ishikawaDiagram-K3B6WC7H-CnK_NQTK.js} +1 -1
- package/dist/assets/{journeyDiagram-COXZFDF6-U58GAPno.js → journeyDiagram-COXZFDF6-DSuoKe19.js} +1 -1
- package/dist/assets/{kanban-definition-P3RFRI5V-CcRE6J9f.js → kanban-definition-P3RFRI5V-DjmRhFSg.js} +1 -1
- package/dist/assets/{mermaid.core-QHRYQaNt.js → mermaid.core-DeRUYgIm.js} +4 -4
- package/dist/assets/{mindmap-definition-LZFPQGKD-CEyDomxS.js → mindmap-definition-LZFPQGKD-BJ3VBjfI.js} +1 -1
- package/dist/assets/{minimize-oQ71ZbVB.js → minimize-BXc-miDU.js} +1 -1
- package/dist/assets/{monitor-BmIglcrr.js → monitor-15mG3xlc.js} +1 -1
- package/dist/assets/{new-bot-tCPJjkMQ.js → new-bot-__CMk5sR.js} +1 -1
- package/dist/assets/{org-library-Dr5sX_Fu.js → org-library-DT_poCG3.js} +1 -1
- package/dist/assets/{package-format-heZrOI7V.js → package-format-CgaIxeTU.js} +1 -1
- package/dist/assets/{pegDiagram-BGZESJAR-CTxI-cP8.js → pegDiagram-BGZESJAR-BZ-1foJI.js} +1 -1
- package/dist/assets/{pieDiagram-CAPJLFHJ-B8DCNi6O.js → pieDiagram-CAPJLFHJ-v_kbKYIo.js} +1 -1
- package/dist/assets/{quadrantDiagram-GDMTTRAM-CWdpAW4W.js → quadrantDiagram-GDMTTRAM-fpE5oT7k.js} +1 -1
- package/dist/assets/{rail-WaxapGbo.js → rail-fintvt10.js} +1 -1
- package/dist/assets/{railroadDiagram-SM67HX2B-BCY8OR1i.js → railroadDiagram-SM67HX2B-C8JH_pmt.js} +1 -1
- package/dist/assets/{remote-desktop-panel-CRSqL4w9.js → remote-desktop-panel-DAU_1yzY.js} +1 -1
- package/dist/assets/{requirementDiagram-X7JNWC4A-BcX43ufU.js → requirementDiagram-X7JNWC4A-DIZkii0D.js} +1 -1
- package/dist/assets/{sankeyDiagram-UM26HJRW-C3YBTWo7.js → sankeyDiagram-UM26HJRW-D28LUPgJ.js} +1 -1
- package/dist/assets/{sequenceDiagram-ZO4K6R2Y-CNLzalKN.js → sequenceDiagram-ZO4K6R2Y-By6Qr2OZ.js} +1 -1
- package/dist/assets/{sizeCapture-INFHLROL-D55E_ZEd.js → sizeCapture-INFHLROL-B8ky8h-O.js} +1 -1
- package/dist/assets/{stateDiagram-v2-TBUQTH76-CRDCsicX.js → stateDiagram-v2-TBUQTH76-CtuCVgt_.js} +1 -1
- package/dist/assets/styles-DKlhnsr7.css +1 -0
- package/dist/assets/{swimlanes-N4OXWK64-Ah7OauuN.js → swimlanes-N4OXWK64-DxwcpFlC.js} +1 -1
- package/dist/assets/swimlanesDiagram-K3J5GTZL-B7Xl2xDR.js +8 -0
- package/dist/assets/{team-share-D3Hwdncm.js → team-share-Dl1JG3TI.js} +1 -1
- package/dist/assets/{timeline-definition-YOQAKGHF-DV-V6CCB.js → timeline-definition-YOQAKGHF-C76P0vUA.js} +1 -1
- package/dist/assets/{usecaseDiagram-VIAY4XPW-T9J5Wpir.js → usecaseDiagram-VIAY4XPW-CYHUVqRH.js} +1 -1
- package/dist/assets/{vennDiagram-BLWOH2XV-RqJjHEmQ.js → vennDiagram-BLWOH2XV-Da7BHd4-.js} +1 -1
- package/dist/assets/{wardleyDiagram-YMQ3BMBF-xZxQC8Rt.js → wardleyDiagram-YMQ3BMBF-Ckv9W8Fc.js} +1 -1
- package/dist/assets/{xychartDiagram-TAQBALBS-BgPG2lil.js → xychartDiagram-TAQBALBS-Dw876alP.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/rail.html +5 -5
- package/dist-server/hybrid-plugin-gateway.js +11 -9
- package/dist-server/index.js +98 -88
- package/dist-server/package.json +1 -1
- package/dist-server/server/hybrid-plugin-manifest.js +2 -1
- package/dist-server/server/limix-skill-hub.js +3 -3
- package/dist-server/server/limix-skill-requirements.js +29 -11
- package/dist-server/server/routes/plugin-studio.js +11 -2
- package/dist-server/shared/plugin-hub.js +52 -0
- package/package.json +5 -1
- package/skills/limix-bot-factory/SKILL.md +2 -0
- package/skills/limix-bot-factory/references/vi.md +2 -0
- package/dist/assets/App-Co1EFoza.js +0 -250
- package/dist/assets/SettingsModal-BZzK-mss.js +0 -19
- package/dist/assets/channel-D_nJ6dC4.js +0 -1
- package/dist/assets/styles-Cr4TcnLq.css +0 -1
- package/dist/assets/swimlanesDiagram-K3J5GTZL-G_1ilp2C.js +0 -8
- /package/dist/assets/{styles-D7SaLPZf.js → styles-Bixj4Mfc.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as un,t as n,r as d,j as e,X as ts,ae as ns,a as _,d as Ye,l as Bt,S as Ns,i as Jt}from"./styles-
|
|
1
|
+
import{c as un,t as n,r as d,j as e,X as ts,ae as ns,a as _,d as Ye,l as Bt,S as Ns,i as Jt}from"./styles-Bixj4Mfc.js";import{S as pn,j as w,u as et,eB as As,eC as Cs,eD as Ss,eE as ht,w as Rs,eF as Es,eG as zs,eH as Vt,l as Is,G as Rn,eI as Ts,eJ as Os,cT as Bs,T as Ps,ah as en,bt as Ms,D as tn,eK as Rt,eL as ss,eM as Et,eN as as,an as is,eO as zt,eP as Ls,eQ as os,eR as It,eS as cs,eT as Us,eU as En,eV as $s,Y as rs,eW as Nt,eX as Fs,eY as Ks,eZ as Ds,e_ as Qs,e$ as Hs,f0 as ct,f1 as zn,f2 as _s,f3 as Js,f4 as Gt,f5 as Vs,f6 as In,eg as Tn,f7 as Gs,f8 as qs,f9 as Zs,fa as qt,fb as Ws,fc as Ys,fd as Xs,fe as ea,ff as ta,fg as na,fh as sa,fi as aa,fj as ia,fk as oa,fl as ca}from"./App-B2fBpoRZ.js";import{L as ae,P as ls,X as ra,a as la,v as mn,E as da,_ as ua,$ as pa,B as ma}from"./PlacesRail-B0T5a390.js";import{C as ds,R as nn}from"./MenuMotion-D8l5zOOH.js";import{u as ha}from"./ProIntroduction-BJMwoQGa.js";import"./index-VDBTcIMw.js";import"./monitor-15mG3xlc.js";const xa=[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],fa=un("phone-call",xa);const ga=[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]],ba=un("radio-tower",ga);const ya=[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1v3clb"}],["path",{d:"m13.148 9.228.383-.923",key:"t2zzyc"}],["path",{d:"m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1bxfiv"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}]],Zt=un("server-cog",ya),ka=new Set(["twitter","x"]);function On(t,s){return t!=="managed"||!ka.has(s.trim().toLowerCase())?null:"Twitter/X needs your own X Developer app and Composio auth config. Use self-hosted connected apps for now."}const ja=5,va=3,Tt=4;function wa(t,s=ja,c=[]){const o=new Map;for(const g of t)for(const k of new Set(g.categories??[]))o.set(k,(o.get(k)??0)+1);const r=[...o].sort((g,k)=>k[1]-g[1]||g[0].localeCompare(k[0])).map(([g])=>g),l=c.filter(g=>r.indexOf(g)>=s),y=[...r.slice(0,Math.max(0,s-l.length)),...l];return{inline:y,more:r.filter(g=>!y.includes(g))}}function sn(t,s){return s===null||(t.categories??[]).includes(s)}function Na(t,s,c){const o=[],r=t.filter(l=>s(l.slug));r.length&&o.push({kind:"connected",cards:r});for(const l of c.slice(0,va)){const y=t.filter(g=>!s(g.slug)&&sn(g,l));y.length&&o.push({kind:"category",category:l,cards:y.slice(0,Tt),more:y.length>Tt})}return o.push({kind:"all",cards:t.filter(l=>!s(l.slug))}),o}const Aa={productivity:"productivity","developer tools":"developerTools",communication:"communication",files:"files","sales and crm":"salesCrm",design:"design",marketing:"marketing",analytics:"analytics",social:"social"},Ca={"google calendar":"googleCalendar","google sheets":"googleSheets","google docs":"googleDocs",notion:"notion",github:"github",linear:"linear",sentry:"sentry",jira:"jira",slack:"slack",gmail:"gmail",discord:"discord","google drive":"googleDrive",posthog:"posthog","x (twitter)":"xTwitter",reddit:"reddit",zapier:"zapier",hubspot:"hubspot",salesforce:"salesforce",asana:"asana",trello:"trello",dropbox:"dropbox",airtable:"airtable",figma:"figma",stripe:"stripe"};function rt(t){const s=Aa[t.trim().toLowerCase()];return s?n(`apps.category.${s}`):t}function Bn(t){const s=Ca[t.label.trim().toLowerCase()];return s?n(`apps.catalog.${s}.blurb`):t.blurb}function Sa({server:t,disabled:s,onSaved:c}){const[o,r]=d.useState(!1),[l,y]=d.useState(null);if(typeof t.apps!="boolean"||t.apps&&t.hasApps!==!0)return null;const g=t.apps,k=async()=>{r(!0),y(null);try{const p=await w(`/api/mcp/servers/${encodeURIComponent(t.name)}`,{method:"PATCH",body:JSON.stringify({apps:!g})});c(p.servers??[])}catch(p){y(p instanceof Error?p.message:String(p))}finally{r(!1)}};return e.jsxs("div",{"data-mcp-apps":t.name,className:"mt-3 flex items-center gap-3 border-t border-hairline/40 pt-3",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"text-[13px] font-medium text-ink",children:n("mcp.apps.title")}),e.jsx("div",{role:l?"alert":void 0,className:l?"mt-0.5 text-[12px] text-danger":"mt-0.5 text-[12px] text-ink-secondary",children:l??n("mcp.apps.desc")})]}),o&&e.jsx(ae,{"aria-hidden":"true",size:13,className:"animate-spin text-ink-secondary"}),e.jsx(pn,{checked:g,disabled:s||o,onClick:()=>{k()},"aria-label":n("mcp.apps.toggleAria",{name:t.name}),className:"disabled:opacity-40"})]})}function Pn({feature:t,enabled:s,prefix:c}){const{dispatch:o}=et(),[r,l]=d.useState(!1),[y,g]=d.useState(!1),k=async()=>{if(!r){l(!0),g(!1);try{const p=await w("/api/config",{method:"PATCH",body:JSON.stringify({features:{[t]:!s}})});o({type:"configStatus",config:p})}catch{g(!0)}finally{l(!1)}}};return e.jsxs("div",{className:"mt-4 flex items-start justify-between gap-4 rounded-2xl border border-hairline/50 bg-card px-4 py-4 sm:px-5",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-[14px] font-medium text-ink",children:n(`${c}.title`)}),e.jsx("p",{className:"mt-1 text-[12px] leading-relaxed text-ink-secondary",children:n(`${c}.desc`)}),y&&e.jsx("p",{role:"alert",className:"mt-1 text-[12px] text-danger",children:n("mcp.claude.error")})]}),e.jsx(pn,{checked:s,"aria-label":n(`${c}.aria`),disabled:r,onClick:()=>{k()},className:"mt-0.5 shrink-0 disabled:cursor-wait disabled:opacity-50"})]})}function Ra(){const{state:t}=et();return e.jsxs(e.Fragment,{children:[e.jsx(Pn,{feature:"claudeUserMcp",enabled:As(t.config),prefix:"mcp.claude"}),e.jsx(Pn,{feature:"claudeUserSkills",enabled:Cs(t.config),prefix:"mcp.claudeSkills"})]})}function Mn({app:t}){if("image"in t.icon)return e.jsx("img",{src:t.icon.image,alt:"",className:"size-10 shrink-0 rounded-xl object-contain"});const s=t.icon.glyph;return e.jsx("span",{className:"flex size-10 shrink-0 items-center justify-center rounded-xl bg-raised text-ink-secondary",children:e.jsx(s,{size:19,"aria-hidden":"true"})})}class me extends Error{key;constructor(s){super(s),this.key=s}}const an=/^https?:\/\//i,us=/^[A-Za-z_][A-Za-z0-9_]*=/,Ea=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+:/,za=new Set(["npx","uvx","bunx"]),Ia=new Set(["pnpm","yarn"]);function Ta(t,s=[]){const c=Oa(t).trim();if(!c)return null;try{const o=/^[{[]/.test(c)?Fa(c):an.test(c)&&!/\s/.test(c)?[hn(void 0,c,void 0,[])]:Ba(c);return{ok:!0,servers:_a(o,s)}}catch(o){if(o instanceof me)return{ok:!1,error:o.key};throw o}}function Oa(t){return t.replace(/[“”„]/g,'"').replace(/[‘’]/g,"'").replace(/(^|\s)[–—](?=[a-z])/g,"$1--")}function ps(t){const s=[];let c=[],o="",r=!1;const l=()=>{r&&c.push(o),o="",r=!1},y=()=>{l(),c.length&&s.push(c),c=[]},g=k=>t[k]===`
|
|
2
2
|
`?1:t[k]==="\r"&&t[k+1]===`
|
|
3
3
|
`?2:0;for(let k=0;k<t.length;k+=1){const p=t[k];if(p==="\\"||(p==="`"||p==="^")&&g(k+1)){const h=g(k+1);if(h){k+=h;continue}k+1<t.length&&(o+=t[k+1],r=!0,k+=1);continue}if(p==="'"){const h=t.indexOf("'",k+1);if(h<0)throw new me("mcp.paste.notRecognized");o+=t.slice(k+1,h),r=!0,k=h;continue}if(p==='"'){let h=k+1;for(;h<t.length&&t[h]!=='"';h+=1){if(t[h]==="\\"&&h+1<t.length){const A=g(h+1);if(A){h+=A;continue}if('"\\$`'.includes(t[h+1])){o+=t[h+1],h+=1;continue}}o+=t[h]}if(h>=t.length)throw new me("mcp.paste.notRecognized");r=!0,k=h;continue}if(p==="$"&&t[k+1]==="("){const h=t.indexOf(")",k+2);if(h<0)throw new me("mcp.paste.notRecognized");o+=t.slice(k,h+1),r=!0,k=h;continue}if(p==="#"&&!r){for(;k+1<t.length&&t[k+1]!==`
|
|
4
4
|
`;)k+=1;continue}if(p===`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as s,k as h,t as u}from"./styles-
|
|
1
|
+
import{r as c,j as s,k as h,t as u}from"./styles-Bixj4Mfc.js";import{f as m,g as b,h as a,i as p}from"./PlacesRail-B0T5a390.js";import{u as g,a2 as w,a3 as v}from"./App-B2fBpoRZ.js";function f(t,e){const o=t&&!window.ogb?.remoteClient?.active?window.ogb?.cloudAccount:void 0,[i,n]=c.useState(null),r=o?.offer?JSON.stringify(e??null):null;return c.useEffect(()=>{if(r===null||!o?.offer)return;let l=!0;return o.offer().then(x=>{l&&n(x)},()=>{}),()=>{l=!1}},[o,r]),o?.offer?i:null}function d(){const t=window.ogb?.remoteClient?.active?void 0:window.ogb?.cloudAccount,[e,o]=c.useState(null);return c.useEffect(()=>{if(!t)return;let i=!0,n=!1;const r=t.onState(l=>{n=!0,i&&o(l)});return t.state().then(l=>{i&&!n&&o(l)}).catch(()=>{}),()=>{i=!1,r()}},[t]),t&&m?{view:b(e),account:e}:null}function S(){const{dispatch:t}=g(),e=d(),o=e!==null&&a(e.view);if(f(o,e?.account?.offer),!e)return null;const{view:i}=e,n=p(i);return!n&&i.kind!=="reauth"?null:s.jsxs("section",{"aria-label":u("settings.section.cloudAccount"),"data-cloud-plan":i.kind,className:"flex flex-wrap items-center justify-between gap-3 rounded-xl border border-hairline/50 p-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(h,{className:"text-ink-secondary",size:18,"aria-hidden":"true"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-[14px] font-semibold text-ink",children:u("settings.section.cloudAccount")}),s.jsx("p",{className:"mt-1 text-[12px] text-ink-secondary",children:i.kind==="reauth"?u("pro.reauthShort"):n})]})]}),s.jsx("button",{type:"button",className:"ui-button",onClick:()=>t({type:"toggleAppSettings",open:!0,section:"cloudAccount"}),children:u("pro.openCloudSettings")})]})}function A({place:t,usage:e=null,upgrade:o}){const{dispatch:i}=g(),n=d(),r=n!==null&&a(n.view);if(f(r,n?.account?.offer),!n)return null;const l=n.view.kind==="reauth"?u("pro.reauthShort"):p(n.view);return l?s.jsx(w,{title:u("pro.name"),subtitle:l,children:t==="account"?s.jsx("button",{type:"button","data-cloud-plan":n.view.kind,className:"ui-button",onClick:()=>i({type:"toggleAppSettings",open:!0,section:"cloudAccount"}),children:u("settings.simple.account.manage")}):e&&o?s.jsx(v,{usage:e,upgrade:o}):null}):null}function y(){const t=d(),e=t!==null&&a(t.view);return f(e,t?.account?.offer),null}export{A as C,S as P,f as a,y as b,d as u};
|
package/dist/assets/{RemoteAgentSettingsPanel-DWTstMZc.js → RemoteAgentSettingsPanel-Dkaxe7IA.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,j as e,C as w,t as n,X as C,a as S}from"./styles-
|
|
1
|
+
import{r,j as e,C as w,t as n,X as C,a as S}from"./styles-Bixj4Mfc.js";import{u as A,I as z,T,B as p,V as L,g as P,S as B,h as E,j as I}from"./App-B2fBpoRZ.js";import{u as R,B as F,L as U,b as V}from"./PlacesRail-B0T5a390.js";import"./index-VDBTcIMw.js";import"./monitor-15mG3xlc.js";import"./MenuMotion-D8l5zOOH.js";function M({bot:t,overlay:b=!1}){const{dispatch:f}=A(),{dragProps:k}=R(),[x,g]=r.useState(!1),[h,l]=r.useState(""),[v,j]=r.useState(!1),d=r.useRef(null),o=r.useRef(null),c=r.useRef(null),y=()=>f({type:"toggleSettings",open:!1}),i=a=>{if(o.current={...o.current,...a},c.current)return c.current;g(!0),l("");const s=async()=>{for(;o.current;){const u=o.current;o.current=null,l("");try{const m=await I(`/api/bots/${t.id}/profile`,{method:"PATCH",body:JSON.stringify(u)});f({type:"botPatched",bot:m.bot})}catch(m){l(m instanceof Error?m.message:n("remoteAgent.updateFailed"))}}};return c.current=s().finally(()=>{c.current=null,g(!1)}),c.current},N=async a=>{if(a){j(!0),l("");try{const s=await E(a),u=s?V(s.path):null;if(!u)throw new Error(n("settings.profile.avatar.invalidType"));await i({avatarUrl:u,avatarCrop:t.avatarCrop==="square"?"square":"circle"})}catch(s){l(s instanceof Error?s.message:String(s))}finally{j(!1),d.current&&(d.current.value="")}}};return e.jsxs("aside",{className:S("animate-panel-in absolute inset-0 z-40 flex h-full min-w-0 flex-col border-l border-hairline/40 bg-panel",b?"md:left-auto md:w-[400px] md:shadow-2xl":"md:relative md:z-20 md:w-[400px] md:shrink-0"),children:[e.jsxs("div",{...k,className:"flex items-center justify-between px-4 py-3",children:[e.jsx("button",{onClick:y,"aria-label":n("remoteAgent.collapse"),className:"flex size-10 items-center justify-center rounded-md text-ink-secondary hover:bg-control hover:text-ink",children:e.jsx(w,{size:18})}),e.jsx("span",{className:"text-[15px] font-semibold text-ink",children:n("remoteAgent.title")}),e.jsx("button",{onClick:y,"aria-label":n("remoteAgent.close"),className:"flex size-10 items-center justify-center rounded-md text-ink-secondary hover:bg-control hover:text-ink",children:e.jsx(C,{size:18})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto px-5 pb-5",children:e.jsxs("div",{className:"flex flex-col gap-4 pt-4",children:[e.jsxs("div",{className:"rounded-xl bg-card p-4",children:[e.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[e.jsx(F,{bot:t,state:"idle",size:64,motion:"none",motionKey:0,animated:!1}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{ref:d,type:"file",accept:"image/png,image/jpeg,image/gif,image/webp",className:"sr-only",onChange:a=>{N(a.target.files?.[0])}}),e.jsxs("button",{type:"button",disabled:v||x,onClick:()=>d.current?.click(),className:"flex items-center gap-1.5 rounded-lg bg-control px-3 py-2 text-[13px] text-ink hover:bg-raised-hover disabled:opacity-50",children:[v?e.jsx(U,{size:14,className:"animate-spin"}):e.jsx(z,{size:14})," ",n("botIdentity.avatar")]}),t.avatarUrl&&e.jsx("button",{type:"button",disabled:x,onClick:()=>{i({avatarUrl:null,avatarCrop:"mascot"})},"aria-label":n("remoteAgent.removeAvatar"),className:"flex size-9 items-center justify-center rounded-lg text-ink-secondary hover:bg-control hover:text-danger",children:e.jsx(T,{size:14})})]})]}),e.jsxs("label",{className:"block text-[12px] font-medium text-ink-secondary",children:[n("botSettings.identity.name"),e.jsx("input",{defaultValue:t.name,maxLength:p.name,onBlur:a=>{const s=a.currentTarget.value.trim();s&&s!==t.name&&i({name:s})},className:"mt-1 w-full rounded-lg bg-inset px-3 py-2 text-[14px] text-ink focus:outline-none focus:ring-1 focus:ring-accent"},t.id)]}),e.jsxs("label",{className:"mt-3 block text-[12px] font-medium text-ink-secondary",children:[n("botSettings.identity.title"),e.jsx("input",{defaultValue:t.title??"",maxLength:p.title,onBlur:a=>{a.currentTarget.value!==(t.title??"")&&i({title:a.currentTarget.value})},className:"mt-1 w-full rounded-lg bg-inset px-3 py-2 text-[14px] text-ink focus:outline-none focus:ring-1 focus:ring-accent"},t.id)]}),e.jsxs("label",{className:"mt-3 block text-[12px] font-medium text-ink-secondary",children:[n("remoteAgent.description"),e.jsx("textarea",{defaultValue:t.description??"",maxLength:p.description,rows:4,onBlur:a=>{a.currentTarget.value!==(t.description??"")&&i({description:a.currentTarget.value})},className:"mt-1 w-full resize-y rounded-lg bg-inset px-3 py-2 text-[13px] leading-relaxed text-ink focus:outline-none focus:ring-1 focus:ring-accent"},t.id)]})]}),e.jsx(L,{bot:t,workspaceConfigurationLocked:!0,onPatch:a=>{i(a)}}),e.jsxs("div",{className:"flex items-center justify-between gap-4 rounded-xl bg-card p-4",children:[e.jsxs("div",{className:"flex min-w-0 items-start gap-3",children:[e.jsx(P,{size:16,className:"mt-0.5 shrink-0 text-ink-secondary"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-[15px] font-medium text-ink",children:n("notifications.title")}),e.jsx("div",{className:"mt-0.5 text-[12px] leading-relaxed text-ink-secondary",children:n("remoteAgent.notificationsHint")})]})]}),e.jsx(B,{checked:t.notifications,disabled:x,"aria-label":n("remoteAgent.notifications"),onClick:()=>{i({notifications:!t.notifications})}})]}),h?e.jsx("div",{role:"alert",className:"text-[12px] text-danger",children:h}):null]})})]})}export{M as RemoteAgentSettingsPanel};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as e,a as z,t as a,G as F,r as d,S as L,X as B}from"./styles-
|
|
1
|
+
import{j as e,a as z,t as a,G as F,r as d,S as L,X as B}from"./styles-Bixj4Mfc.js";import{E as O,C as G,T as K,B as I,n as $,u as q,r as H}from"./PlacesRail-B0T5a390.js";import{an as U,u as w,ao as A,ap as W,aq as X,ar as _,as as J,at as Q,au as V,av as Y,aw as M,ax as Z,K as ee,ay as te,az as ae,aA as se,aB as ne,aC as oe,aD as re,aE as le,aF as ie,aG as ce,aH as P,aI as S,aJ as de,aK as ue,aL as pe,aM as C,aN as v,aO as me,aP as fe,aQ as xe,aR as he,aS as be,aT as je,aU as ye,aV as ge,aW as ke,aX as N,aY as ve,ab as we,aZ as Re}from"./App-B2fBpoRZ.js";import{C as Se}from"./MenuMotion-D8l5zOOH.js";import"./monitor-15mG3xlc.js";import"./index-VDBTcIMw.js";function T(t){return t===60?a("room.panel.hour"):t%60===0?a("room.panel.hours",{hours:t/60}):a("room.panel.minutes",{minutes:t})}function Ce(t){const{dispatch:s}=w(),i=F(),u=A(t.threadId),o=W(t),[p,r]=d.useState(null),f=t.messages,b=f.length>0,n=()=>se({threadId:t.threadId,hasMore:t.hasMore,title:t.name,messages:f,isGroup:!0}),x=i?[]:X(t.tasks??[]),m=_(t.usage);return{items:[{key:"find",label:a("chat.find"),icon:e.jsx(L,{size:16}),active:u,trailing:e.jsx(Q,{id:"find-conversation"}),onSelect:()=>J(t.threadId)},...i?[]:[{key:"new-thread",heading:a("task.list"),separatorBefore:!0,label:a("task.newShort"),icon:e.jsx(V,{size:16}),onSelect:()=>s({type:"newGroupTask",groupId:t.id})}],...x.length<2?[]:[{key:"threads",label:a("task.switch"),icon:e.jsx(M,{size:16}),value:String(x.length),submenu:x.map(l=>({key:`thread:${l.threadId}`,label:Y(l.title||a("task.newShort")),active:l.threadId===t.threadId,onSelect:()=>s({type:"switchGroupTask",groupId:t.id,threadId:l.threadId})})),onSelect:()=>{}}],{key:"copy",heading:a("chat.export.heading"),separatorBefore:!0,label:a("chat.export.copy"),icon:e.jsx(G,{size:16}),disabled:!b,keepOpen:!0,trailing:p&&e.jsx("span",{role:"status",className:"text-[11px] text-ink-secondary",children:a(p==="copied"?"chat.export.copied":"chat.export.copyFailed")}),onSelect:()=>{Z(n()).then(l=>r(l?"copied":"failed"))}},{key:"download",label:a("chat.export.download"),icon:e.jsx(ee,{size:16}),disabled:!b,onSelect:()=>{const l=n(),g=h=>ne(oe(t.name),h);typeof l=="string"?g(l):l.then(g).catch(h=>s({type:"error",message:h instanceof Error?h.message:String(h)}))}},{key:"turn-limit",label:a("room.panel.turnLimit"),icon:e.jsx(K,{size:16}),separatorBefore:!0,value:T(o.saved??o.globalMinutes),submenu:[{key:"turn-limit:default",label:a("room.turnLimit.default",{minutes:o.globalMinutes}),active:o.saved===null,onSelect:()=>o.save(null)},...te.map(l=>({key:`turn-limit:${l}`,label:T(l),active:o.saved===l,onSelect:()=>o.save(l)}))],onSelect:()=>{}},...m?[{key:"usage",label:a("chat.usage.menu"),icon:e.jsx(ae,{size:16}),keepOpen:!0,trailing:e.jsx("span",{title:m.title,"data-testid":"group-usage-chip",className:"tabular-nums text-[12px] text-ink-secondary",children:m.short}),onSelect:()=>{}}]:[]],on:u}}function Ne({group:t}){const{items:s,on:i}=Ce(t);return e.jsx(U,{items:s,ariaLabel:a("chat.more"),triggerClassName:"rounded-full",triggerTitle:a("chat.more"),renderTrigger:({open:u})=>e.jsx("span",{"data-testid":"room-more",className:z("flex size-8 items-center justify-center rounded-full bg-raised/50 transition-colors hover:bg-raised","max-md:size-9 max-md:border max-md:border-hairline max-md:bg-card",u||i?"text-accent":"text-ink"),children:e.jsx(O,{size:16})})})}function Te({group:t}){return e.jsx(Ne,{group:t},t.threadId)}function Ee({group:t,members:s}){const{state:i,dispatch:u}=w(),o=re(i.config),p=le(t,s),r=ie(p),f=n=>{n!==r&&u({type:"patchGroup",groupId:t.id,patch:{defaultResponder:de(n,p)}})},b=[{choice:"auto",title:a("room.panel.responder.autoOption"),hint:o?void 0:a("room.responder.autoOff",{name:ce(t,s)??a("room.responder.leadFallback")})},{choice:"everyone",title:a("room.panel.responder.everyone")},{choice:"mentions",title:a("room.panel.responder.mentions")}];return e.jsx("div",{role:"radiogroup","aria-label":a("room.panel.whoResponds"),children:e.jsxs(P,{children:[s.map(n=>e.jsx(S,{"data-panel-choice":`member:${n.id}`,title:e.jsxs("span",{className:"flex min-w-0 items-center gap-2.5",children:[e.jsx(I,{bot:n,state:$(n.mascotExpression)??"happy",size:22,animated:!1}),e.jsx("span",{className:"truncate",children:n.name})]}),checked:r===`member:${n.id}`,onClick:()=>f(`member:${n.id}`)},n.id)),b.map(({choice:n,title:x,hint:m})=>e.jsx(S,{"data-panel-choice":n,title:x,hint:m,checked:r===n,onClick:()=>f(n)},n))]})})}const E={responder:{title:"room.panel.whoResponds",intro:"room.panel.responder.intro"},folder:{title:"room.folder.title",intro:"room.folder.detail"}};function ze({group:t,members:s}){return e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsx("div",{"data-room-panel-faces":!0,className:"mt-0.5 flex -space-x-3",children:s.slice(0,3).map(i=>e.jsx(I,{bot:i,state:"happy",size:52,animated:!1},i.id))}),e.jsx("h2",{id:"room-panel-title",className:"mt-2.5 max-w-full truncate px-1.5 text-[18px] font-semibold text-ink",children:t.name}),t.description&&e.jsx("p",{className:"mt-px line-clamp-2 max-w-full text-[13px] text-ink-secondary",children:t.description})]})}function Ie({group:t}){const s=ge(t),i=d.useRef(null),u=d.useRef(!1);d.useEffect(()=>{s.open||!u.current||(u.current=!1,i.current?.focus())},[s.open]);const o=r=>{r.key==="Escape"&&(r.preventDefault(),r.stopPropagation()),(r.key==="Escape"||r.key==="Enter"&&(r.metaKey||r.ctrlKey))&&(u.current=!0),s.onKeyDown(r)};if(s.open)return e.jsxs(ke,{"data-panel-row":"instructions",children:[e.jsx(N,{title:a("room.panel.instructions")}),e.jsx("textarea",{autoFocus:!0,dir:"auto","aria-label":a("room.panel.instructions"),value:s.draft,onChange:r=>s.setDraft(r.target.value),onBlur:s.save,onKeyDown:o,placeholder:a("room.bulletin.placeholder"),rows:6,className:"w-full resize-y rounded-lg border border-hairline bg-inset px-2.5 py-2 text-[13px] leading-relaxed text-ink outline-none placeholder:text-ink-tertiary focus:border-accent-border"}),e.jsx("div",{className:"flex justify-end",children:e.jsx("button",{type:"button","data-panel-done":"instructions",onMouseDown:r=>r.preventDefault(),onClick:()=>{u.current=!0,s.save()},className:ve,children:a("botSettings.simple.done")})})]});const p=t.bulletin.split(`
|
|
2
2
|
`)[0]?.trim();return e.jsxs("button",{ref:i,type:"button","data-panel-edit":"instructions","aria-label":`${a("botSettings.simple.edit")}: ${a("room.panel.instructions")}`,onClick:s.start,className:z(Re,"w-full text-left hover:bg-ink/[0.03]"),children:[e.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-lg bg-ink/[0.05] text-ink-secondary max-md:size-8 max-md:rounded-full","aria-hidden":"true",children:e.jsx(we,{size:15})}),e.jsx(N,{title:a("room.panel.instructions"),hint:e.jsx("span",{dir:"auto",className:"line-clamp-1",children:p||a("room.panel.instructionsHint")})}),e.jsx(Se,{size:15,className:"shrink-0 text-ink-tertiary","aria-hidden":"true"})]})}function Oe({group:t,overlay:s=!1}){const{state:i}=w(),{dragProps:u}=q(),[o,p]=d.useState(null),[r,f]=d.useState(!1),b=d.useRef(null),n=d.useRef(null),x=d.useRef(null),m=d.useRef(null),j=d.useMemo(()=>t.memberIds.map(c=>i.bots.find(k=>k.id===c)).filter(c=>!!c),[t.memberIds,i.bots]),l=ue(t),g=d.useCallback(()=>f(!1),[]),h=c=>{p(c),n.current?.scrollTo({top:0})},R=()=>{m.current=o,p(null)};d.useEffect(()=>{o!==null?n.current?.querySelector("[data-panel-back]")?.focus():m.current&&(n.current?.querySelector(`[data-panel-page="${m.current}"]`)?.focus(),m.current=null)},[o]),d.useEffect(()=>{const c=b.current;c?.focus();const k=y=>{y.key!=="Escape"||y.defaultPrevented||c&&y.target instanceof Node&&!c.contains(y.target)||(y.preventDefault(),C({refocus:!0}))};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[]);const D=c=>{c.key!=="Escape"||c.defaultPrevented||o===null||(c.preventDefault(),c.stopPropagation(),R())};return e.jsxs(e.Fragment,{children:[e.jsxs("aside",{ref:b,role:"dialog","aria-labelledby":"room-panel-title",tabIndex:-1,"data-room-panel":!0,onKeyDown:D,className:je(s,!0),children:[e.jsxs("div",{...u,className:"flex h-[52px] shrink-0 items-center justify-end gap-2 px-3.5",children:[e.jsx(Te,{group:t}),e.jsx("button",{type:"button",onClick:()=>C({refocus:!0}),"aria-label":a("botSettings.simple.close"),className:pe,children:e.jsx(B,{size:16,className:"pointer-events-none"})})]}),e.jsx("div",{ref:n,className:"@container relative min-h-0 flex-1 overflow-y-auto px-5 pb-7",children:o===null?e.jsxs(e.Fragment,{children:[e.jsx(ze,{group:t,members:j}),e.jsxs(P,{children:[e.jsx(v,{"data-panel-page":"responder",icon:M,title:a("room.panel.whoResponds"),value:me(t,j),onClick:()=>h("responder")}),e.jsx(v,{"data-panel-page":"folder",icon:fe,title:a("room.folder.title"),value:l?.name??a("room.panel.folder.own"),tooltip:l?.path,onClick:()=>h("folder")}),e.jsx(Ie,{group:t}),e.jsx(v,{ref:x,"data-panel-row":"members",icon:xe,title:a("room.panel.members"),value:String(j.length),onClick:()=>f(!0)})]})]}):e.jsxs("div",{"data-panel-page-view":o,children:[e.jsx("span",{id:"room-panel-title",className:"sr-only",children:t.name}),e.jsx(he,{back:t.name,title:a(E[o].title),intro:a(E[o].intro),onBack:R}),e.jsx("div",{className:"mt-4 flex flex-col gap-3",children:o==="responder"?e.jsx(Ee,{group:t,members:j}):e.jsx(be,{group:t,heading:!1})})]})})]}),r&&H.createPortal(e.jsx(ye,{group:t,onClose:g,triggerRef:x}),document.body)]})}export{Oe as RoomPanel};
|