@camstack/addon-admin-ui 1.2.693 → 1.2.695

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.
Files changed (109) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/assets/{AccessSection-BTyH6Uq_.js → AccessSection-BGFxzhHc.js} +1 -1
  3. package/dist/assets/Addons-rtK8axjz.js +5 -0
  4. package/dist/assets/{AdminPage-DHZrZAII.js → AdminPage-6rshkflD.js} +1 -1
  5. package/dist/assets/{AdminSectionedPage-3Jh0qbF0.js → AdminSectionedPage-CdZpQexK.js} +1 -1
  6. package/dist/assets/AiProfiles-B5muXY5m.js +3 -0
  7. package/dist/assets/Archive-BMaCecAn.js +1 -0
  8. package/dist/assets/{BootstrapSettingsForm-DhCX-aLg.js → BootstrapSettingsForm--vmJY8y7.js} +1 -1
  9. package/dist/assets/{Build-DY6Kzxeg.js → Build-CWXuOjNe.js} +4 -4
  10. package/dist/assets/{Calendars-C8ofmzzq.js → Calendars-DcPssCx7.js} +1 -1
  11. package/dist/assets/Cluster-BhzyIV6O.js +1 -0
  12. package/dist/assets/{CompositionBlockEditor-Br6RqkCB.js → CompositionBlockEditor-COFl9yQh.js} +2 -2
  13. package/dist/assets/{CompositionEditorPage-15ZoqacB.js → CompositionEditorPage-BmTxu03T.js} +1 -1
  14. package/dist/assets/Data-CcqSeh2h.js +2 -0
  15. package/dist/assets/DeviceDetail-CbNst4tP.js +1 -0
  16. package/dist/assets/{Devices-WxmPKN4U.js → Devices-BSVSYasX.js} +1 -1
  17. package/dist/assets/{EmbedDevicePage-8R3q6IQn.js → EmbedDevicePage-7rRLDW3p.js} +1 -1
  18. package/dist/assets/{EmbedPlayerPage-GnCekJoU.js → EmbedPlayerPage-BBzeRX2d.js} +1 -1
  19. package/dist/assets/History-DHeoS2Kt.js +1 -0
  20. package/dist/assets/Identity-Duz3hf3w.js +1 -0
  21. package/dist/assets/InstancesTable-DMBgl-Tw.js +1 -0
  22. package/dist/assets/IntegrationDetail-n3IgcFcp.js +1 -0
  23. package/dist/assets/{Integrations-DvJiMePt.js → Integrations-CEeiHe1k.js} +2 -2
  24. package/dist/assets/Integrations-Dg_xl49k.js +1 -0
  25. package/dist/assets/Library-DQ_wgv0I.js +1 -0
  26. package/dist/assets/Locations-C7X5_Xs0.js +3 -0
  27. package/dist/assets/{Logs-Qs13Mwb4.js → Logs-CZzKlgP-.js} +1 -1
  28. package/dist/assets/{MaskShapeCanvas-Dj-FghGr.js → MaskShapeCanvas-i_Iv1KNy.js} +1 -1
  29. package/dist/assets/{MotionZonesSettings-DbgeWC2L.js → MotionZonesSettings-Bw2-3ufZ.js} +1 -1
  30. package/dist/assets/MyAccess-Dw_Tblo-.js +2 -0
  31. package/dist/assets/{Network-C3KG_FSW.js → Network-B04FxTU0.js} +1 -1
  32. package/dist/assets/{NewExportModal-Dy3oNUAO.js → NewExportModal-BLa-tqcX.js} +1 -1
  33. package/dist/assets/{NodeAddonsSettingsPanel-DdbuZ3Yi.js → NodeAddonsSettingsPanel-CVu4j6BL.js} +1 -1
  34. package/dist/assets/Notifications-BCRVU9kb.js +1 -0
  35. package/dist/assets/{PanelContent-BMrwHYf4.js → PanelContent-BkvykeO7.js} +1 -1
  36. package/dist/assets/{Pipeline-BYpUtJpZ.js → Pipeline-DwMwVp3_.js} +1 -1
  37. package/dist/assets/{PrivacyMaskSettings-BWDEhn0S.js → PrivacyMaskSettings-BxOKyH1n.js} +1 -1
  38. package/dist/assets/{SceneMonitorEditor-df7cZ311.js → SceneMonitorEditor-C1uHnYFS.js} +1 -1
  39. package/dist/assets/{SessionsList-Bjhwy-7x.js → SessionsList-CoEhyLQh.js} +2 -2
  40. package/dist/assets/{Showroom-DCb25_tl.js → Showroom-9kVzdIya.js} +1 -1
  41. package/dist/assets/{StorageLocationsTable-D29oGl9n.js → StorageLocationsTable-D2ZADdHk.js} +1 -1
  42. package/dist/assets/System-RFQ29LCt.js +2 -0
  43. package/dist/assets/TemplateEditorDialog-C7gnpBYn.js +1 -0
  44. package/dist/assets/{Terminal-8cb4qrcL.js → Terminal-DitYavmi.js} +4 -4
  45. package/dist/assets/{TrainingProviders-DiSjJ4vy.js → TrainingProviders-DMWT82OP.js} +1 -1
  46. package/dist/assets/{Viewer-JA89uHB4.js → Viewer-SWfkPzOa.js} +1 -1
  47. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CaJo1z-X.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BkawZQN9.js} +1 -1
  48. package/dist/assets/{action-draft-80EQEtaM.js → action-draft-yLNYKNjp.js} +1 -1
  49. package/dist/assets/{ai-page.helpers-DDnyI4U7.js → ai-page.helpers-BckFcRJ5.js} +1 -1
  50. package/dist/assets/{assignment-candidates-5H8d1AOa.js → assignment-candidates-CdlD3txc.js} +1 -1
  51. package/dist/assets/{authed-media-Cu0gpTLP.js → authed-media-CtJpHR0J.js} +1 -1
  52. package/dist/assets/{board-model-D56hE08L.js → board-model-BZBm4HOa.js} +1 -1
  53. package/dist/assets/{camera-block-model-CCoPnK76.js → camera-block-model-D9B-PVTV.js} +1 -1
  54. package/dist/assets/client-MSk00Qty.js +1120 -0
  55. package/dist/assets/{command-vocab-5-fsG014.js → command-vocab-BUiglkI_.js} +1 -1
  56. package/dist/assets/{device-detail-iMuwFcWs.js → device-detail-Ck1CQQDD.js} +1 -1
  57. package/dist/assets/{device-integration-icon-qHQjeL9y.js → device-integration-icon-AyILHcPh.js} +1 -1
  58. package/dist/assets/device-picker-model-C8b99Cdl.js +1 -0
  59. package/dist/assets/{dist-C5ZYqtm3.js → dist-Cb9vnz09.js} +1 -1
  60. package/dist/assets/dist-Cwb_si_L.js +1120 -0
  61. package/dist/assets/{format-BkMEj2-U.js → format-BtpezAH4.js} +1 -1
  62. package/dist/assets/{hostInit-DNeMlxxp.js → hostInit-BOghgK6B.js} +1 -1
  63. package/dist/assets/i18n-CFfN2jss.js +1 -0
  64. package/dist/assets/{icons-CyWLWtXs.js → icons-JB5dxRTR.js} +1 -1
  65. package/dist/assets/{index-Bz3Pl5tG.css → index-Cdqk-EuE.css} +1 -1
  66. package/dist/assets/index-DMtVByrH.js +6 -0
  67. package/dist/assets/{linked-devices-model-CI7wpAm-.js → linked-devices-model-COsUceIA.js} +1 -1
  68. package/dist/assets/{mf-entry-bootstrap-0-c51fcd96.js → mf-entry-bootstrap-0-f92c3da1.js} +2 -2
  69. package/dist/assets/mount-C8b99Cdl.js +1 -0
  70. package/dist/assets/{notification-rule-status-CObTJD-i.js → notification-rule-status-Dp2Kfduw.js} +1 -1
  71. package/dist/assets/{player-overlays-ugkkFXtV.js → player-overlays-B0euBMgD.js} +1 -1
  72. package/dist/assets/remoteEntry-C8MNr-Ir.js +1 -0
  73. package/dist/assets/src-VP2CTMP8.js +279 -0
  74. package/dist/assets/{sso-popup-BRNSJ3u5.js → sso-popup-CxbOOUhY.js} +1 -1
  75. package/dist/assets/{step-inspector-model-BkoSviyf.js → step-inspector-model-DkIG_2Qc.js} +1 -1
  76. package/dist/assets/{use-scenes-feed-bbgFxJ_U.js → use-scenes-feed-DyPKYL04.js} +1 -1
  77. package/dist/assets/{useAdminDeviceRemoval-Ia1zPolI.js → useAdminDeviceRemoval-gBk-4hVR.js} +1 -1
  78. package/dist/assets/useEventInvalidation-C8b99Cdl.js +1 -0
  79. package/dist/assets/{useNodeUrlSelection-BQ2MYP7C.js → useNodeUrlSelection-BvbXoMeL.js} +1 -1
  80. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-BWXQZsum.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-Bwt1NZjv.js} +2 -2
  81. package/dist/index.html +9 -9
  82. package/dist/server/addon.js +223 -60
  83. package/package.json +2 -2
  84. package/dist/assets/Addons-VJhgqhzH.js +0 -5
  85. package/dist/assets/AiProfiles-Dle37tWQ.js +0 -3
  86. package/dist/assets/Archive-SdeDPpcj.js +0 -1
  87. package/dist/assets/Cluster-JhBKuQrD.js +0 -1
  88. package/dist/assets/Data-B5ocdjeC.js +0 -2
  89. package/dist/assets/DeviceDetail-CFZv3c_f.js +0 -1
  90. package/dist/assets/History-BtkXJRVt.js +0 -1
  91. package/dist/assets/Identity-BCgp4vmD.js +0 -1
  92. package/dist/assets/InstancesTable-C81CknSI.js +0 -1
  93. package/dist/assets/IntegrationDetail-D-YgdyLl.js +0 -1
  94. package/dist/assets/Integrations-DNAuezUf.js +0 -1
  95. package/dist/assets/Library-DhRQQIcQ.js +0 -1
  96. package/dist/assets/Locations-CzTWySjI.js +0 -3
  97. package/dist/assets/MyAccess-WIF20bV3.js +0 -2
  98. package/dist/assets/Notifications-Bqde3sni.js +0 -1
  99. package/dist/assets/System-Bz2RLf9j.js +0 -1
  100. package/dist/assets/TemplateEditorDialog-C0r2EnJJ.js +0 -1
  101. package/dist/assets/client-B3h-2G71.js +0 -1120
  102. package/dist/assets/device-picker-model-DY4G4-U0.js +0 -1
  103. package/dist/assets/dist-Bt80qYnQ.js +0 -1120
  104. package/dist/assets/i18n-BwW8nRaE.js +0 -1
  105. package/dist/assets/index-D_vdUQKv.js +0 -6
  106. package/dist/assets/mount-DY4G4-U0.js +0 -1
  107. package/dist/assets/remoteEntry-CjuAs5ha.js +0 -1
  108. package/dist/assets/src-DeDx2fDl.js +0 -279
  109. package/dist/assets/useEventInvalidation-DY4G4-U0.js +0 -1
@@ -1,2 +1,2 @@
1
- import{C as e,J as t,K as n,R as r,S as i,V as a,Y as o,a as s,et as c,t as l,x as u}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{G as d,Z as f,r as p,yt as m}from"./player-overlays-ugkkFXtV.js";import{Pr as h,aa as g,al as _,c as v,fr as y,gp as b,l as x,mr as S,ol as C,pr as w,sl as T,z as E}from"./src-DeDx2fDl.js";import{t as D}from"./useTranslation-BJr-n0es.js";import"./mount-DY4G4-U0.js";import"./index-D_vdUQKv.js";c();function O(e){return x(m().trpcClient,e)}var k=15e3,A={rows:[],unreadableCount:0};function j(e){let t=m(),n=e.length>0,r=[...e].sort((e,t)=>e-t),{data:i,isLoading:a}=s({queryKey:[`stationary-objects`,r],enabled:n,staleTime:k,refetchInterval:k,queryFn:async()=>{let e=await t.trpcClient.zoneAnalytics.getCurrentSnapshotBatch.query({deviceIds:r}),n=[],i=0;for(let t of e){if(t.read===`unreadable`){i++;continue}for(let e of t.snapshot?.stationaryObjects??[])n.push({...e,deviceId:t.deviceId})}return{rows:n,unreadableCount:i}}}),o=i??A;return{rows:o.rows.toSorted((e,t)=>t.becameStationaryAt-e.becameStationaryAt),isLoading:n&&a,unreadableCount:o.unreadableCount}}function M(e){let[n,i]=o(`idle`),[s,c]=o(null),l=t(null),u=t(null),d=t(null),f=t(!0),p=C(),m=_(),h=T(),g=r(()=>{if(l.current){try{l.current.close()}catch{}l.current=null}if(u.current){for(let e of u.current.getTracks())try{e.stop()}catch{}u.current=null}d.current=null},[]),v=r(async()=>{if(n===`idle`)return;i(`stopping`);let t=d.current;if(t&&e!==null)try{await Promise.race([h.mutateAsync({deviceId:e,sessionId:t}),new Promise((e,t)=>setTimeout(()=>t(Error(`server stopSession timeout`)),2e3))])}catch(e){console.warn(`[intercom] server stopSession failed (continuing teardown)`,e)}g(),f.current&&(i(`idle`),c(null))},[n,e,h,g]),y=r(async()=>{if(e===null||n!==`idle`&&n!==`error`)return;c(null);let t=null,r=null,a=null;try{i(`requesting-mic`),t=await navigator.mediaDevices.getUserMedia({audio:!0,video:!1}),u.current=t,i(`starting`);let n=await p.mutateAsync({deviceId:e});a=n.sessionId,d.current=a,i(`connecting`),r=new RTCPeerConnection,l.current=r,r.oniceconnectionstatechange=()=>{if(!f.current)return;let e=r.iceConnectionState;e===`connected`||e===`completed`?i(`talking`):(e===`failed`||e===`closed`||e===`disconnected`)&&f.current&&(c(e===`failed`?`WebRTC connection failed`:null),v())};for(let e of t.getAudioTracks())r.addTrack(e,t);await r.setRemoteDescription({type:`offer`,sdp:n.sdpOffer});let o=await r.createAnswer();await r.setLocalDescription(o);let s=r.localDescription?.sdp??o.sdp??``;await m.mutateAsync({deviceId:e,sessionId:a,sdpAnswer:s})}catch(n){let o=n instanceof Error?n.message:String(n);if(console.warn(`[intercom] start failed`,n),r)try{r.close()}catch{}if(t)for(let e of t.getTracks())try{e.stop()}catch{}if(l.current=null,u.current=null,a!==null)try{await h.mutateAsync({deviceId:e,sessionId:a})}catch{}d.current=null,f.current&&(c(o),i(`error`))}},[e,n,p,m,h,v]);return a(()=>(f.current=!0,()=>{f.current=!1;let t=d.current;if(t!==null&&e!==null&&h.mutate({deviceId:e,sessionId:t}),l.current){try{l.current.close()}catch{}l.current=null}if(u.current){for(let e of u.current.getTracks())try{e.stop()}catch{}u.current=null}d.current=null}),[e]),{state:n,error:s,start:y,stop:v,isTalking:n===`talking`}}c();var N=0;function P(){return++N}function F(e){switch(e.type){case`system`:return`system`;case`device`:return`#${e.deviceId}`;case`provider`:return e.providerId;case`addon`:return e.addonId}}function I(e){return[``,`Commands`,` help Show this help`,` examples Show usage examples for the current scope`,` context Show every available variable + full API surface`,` clear Clear terminal (also Ctrl+L)`,``,`Shortcuts`,` Enter Execute expression`,` Arrow Up/Down Navigate command history`,` Ctrl+L Clear terminal`,``,`Try: ${{system:` sm.summary() // fleet overview`,device:` device.state.battery.value?.sleeping // sync read`,provider:` devices.map(d => d.name)`,addon:` manifest.version`}[e.type]}`,``,`Top-level objects: sm (SystemMirror), DeviceType, Math, JSON, Date, …`]}function L(e){switch(e.type){case`device`:return[``,`── State (sync, zero round-trip) ─────────────────────────`,` device.state.battery.value`,` device.state.battery.value?.level`,` device.state.motion.value?.detected`,``,`── Actions (async, through wrapper chain) ────────────────`,` await device.snapshot.getSnapshot({})`,` await device.ptz.move({ direction: 'left', steps: 1 })`,` await device.switch.setState({ on: true })`,``,`── Wait for condition ───────────────────────────────────`,` await sm.waitForState(deviceId, 'battery', s => !s.sleeping, 30_000)`,``,`── Subscribe to changes ─────────────────────────────────`,` const off = device.state.battery.subscribe(s => console.log(s))`,``,`── Quick info ───────────────────────────────────────────`,` info.name device name`,` info.addonId owning addon`,` sm.dump(deviceId) full debug dump`];case`system`:return[``,`── Lookups ──────────────────────────────────────────────`,` sm.getDeviceById(8)`,` sm.getDeviceByName('Sala da pranzo')`,` sm.getDevicesByAddon('reolink')`,` sm.getDevicesByType(DeviceType.Camera)`,``,`── Filters (typed query) ────────────────────────────────`,` sm.query({ addonId: 'reolink', online: true })`,` sm.query({ caps: ['battery', 'snapshot'] })`,` sm.query({ name: /^Cam-/ })`,``,`── Cross-device ─────────────────────────────────────────`,` sm.whereState('battery', s => s.level < 20).length`,` sm.mapState('battery', s => s.level)`,` sm.countByCap('snapshot')`,``,`── Batch action ─────────────────────────────────────────`,` await sm.invokeCap('snapshot', 'getSnapshot', {}, { parallelism: 4 })`,``,`── Listen ───────────────────────────────────────────────`,` sm.listenCap('motion', (id, s) => console.log(id, s))`,` sm.onDeviceAdded((id, info) => console.log('+', info.name))`,``,`── Diagnostics ──────────────────────────────────────────`,` sm.summary()`,` sm.dump(8)`];case`provider`:return[``,` devices.map(d => d.name)`,` await getIntegration()`,` sm.getDevicesByAddon('<this-addon-id>').length`];case`addon`:return[``,` manifest.name`,` manifest.version`,` declaration`]}}function R(e){let t=[``,`Scope: ${e.type}`,``];switch(e.type){case`system`:return[...t,`Primary API — sm (SystemMirror):`,` sm.getDeviceById(id) DeviceProxy | null (sync)`,` sm.getDeviceByName(name) DeviceProxy | null`,` sm.getDeviceByStableId(sid) DeviceProxy | null`,` sm.getAllDevices() readonly DeviceProxy[]`,` sm.getDeviceInfo(id) DeviceInfo | null`,` sm.summary() fleet stats`,``,`Filters — sm.query({...}):`,` sm.query({ addonId: 'reolink', online: true })`,` sm.query({ caps: ['battery', 'snapshot'] }) // ALL caps required`,` sm.query({ anyCap: ['ptz', 'motion'] }) // ANY cap`,` sm.query({ name: { contains: 'sala' } }) // case-insensitive`,` sm.query({ name: /^Cam-\\d+$/ })`,` sm.query({ type: DeviceType.Camera })`,` sm.query({ parentDeviceId: 8 }) // accessories of cam 8`,` sm.query({ where: (info, dev) => dev.state.battery.value?.sleeping })`,``,`State queries:`,` sm.whereState('battery', s => s.level < 20)`,` sm.mapState('battery', s => s.level)`,` sm.findState('motion', s => s.detected)`,` sm.countByCap('snapshot')`,``,`Listeners (return unsubscribe fn):`,` sm.listen((id, cap, slice) => …) // every state change`,` sm.listenCap('motion', (id, slice) => …)`,` sm.listenDevice(8, (id, cap, slice) => …)`,` sm.onDeviceAdded((id, info) => …)`,` sm.onDeviceRemoved((id, info) => …)`,``,`Wait primitives:`,` await sm.waitForState(8, 'battery', s => !s.sleeping, 30_000)`,` await sm.waitForDevice(99, 30_000)`,``,`Batch:`,` await sm.invokeCap('snapshot', 'getSnapshot', {}, { parallelism: 4 })`,` await sm.forEachCap('reboot', d => d.reboot.reboot({}))`,``,`Diagnostics:`,` sm.dump(8) debug dump (one device)`,` sm.dump() full fleet dump`,` sm.summary() breakdown by cap/addon/type`,``,`Legacy: deviceRegistry, addonRegistry, eventBus, devices(), addons()`];case`device`:return[...t,`Pre-bound variables:`,` device DeviceProxy for this device (sync state + async methods)`,` deviceId number`,` info DeviceInfo metadata (name, addonId, type, online, …)`,` sm SystemMirror (full cluster view)`,` rawDevice legacy IDevice instance (escape hatch)`,``,`Reactive state (sync, zero round-trip):`,` device.state.battery.value BatteryStatus | undefined`,` device.state.battery.value?.sleeping`,` device.state.battery.value?.level`,` device.state.motion.value?.detected`,` device.state.switch.value?.on`,` device.state.brightness.value?.level`,` device.state.doorbell.value?.lastPressedAt`,``,`Cap actions (async, through wrapper chain):`,` await device.snapshot.getSnapshot({})`,` await device.snapshot.getSnapshot({ streamId: 'high' })`,` await device.ptz.move({ direction: 'left', steps: 1 })`,` await device.ptz.goToPreset({ presetId: 'home' })`,` await device.switch.setState({ on: true })`,` await device.brightness.setBrightness({ level: 60 })`,` await device.reboot.reboot({})`,``,`Subscribe to slice changes:`,` const off = device.state.battery.subscribe(s => console.log(s))`,` // off() to unsubscribe`,``,`Wait for a state condition:`,` await sm.waitForState(deviceId, 'battery', s => !s.sleeping, 30_000)`,``,`Diagnostics:`,` info.name device name`,` info.addonId which addon owns it`,` info.online transport health`,` sm.dump(deviceId) full debug dump (binding + state + info)`];case`provider`:return[...t,`Pre-bound variables:`,` devices Devices belonging to this provider (raw IDevice[])`,` getIntegration() Integration metadata`,``,`For typed device access use the SystemMirror:`,` await getSystemMirror()`,` sm.getDevicesByAddon('this-addon-id')`];case`addon`:return[...t,`Pre-bound variables:`,` manifest { name, version, ... }`,` declaration addon declaration`,` source addon source location`,``,`Examples:`,` manifest.name`,` manifest.version`]}}function z({scope:n,greeting:s,className:c}){let{t:u}=D(),d=m(),[f,p]=o(()=>{let e=[];return s&&e.push({id:P(),kind:`info`,text:s}),e.push({id:P(),kind:`info`,text:`scope: ${F(n)} — type help or context for available commands`}),e}),[h,g]=o(``),[_,v]=o([]),[y,x]=o(-1),S=t(null),C=t(null);a(()=>{let e=C.current;e&&(e.scrollTop=e.scrollHeight)},[f]);let w=r(()=>{S.current?.focus()},[]),T=l({mutationFn:e=>d.trpcClient.repl.execute.mutate({code:e,scope:n}),onSuccess:e=>{let t=e??{},n=typeof t.output==`string`?t.output:e==null?`undefined`:typeof e==`string`?e:JSON.stringify(e,null,2),r=t.type===`error`;p(e=>[...e,{id:P(),kind:r?`error`:`result`,text:n}])},onError:e=>{let t=e instanceof Error?e.message:String(e);p(e=>[...e,{id:P(),kind:`error`,text:t}])}});function E(e){let t=e.trim();if(t){if(t===`clear`){p([{id:P(),kind:`info`,text:`scope: ${F(n)}`}]),g(``);return}if(t===`help`){p(e=>[...e,{id:P(),kind:`input`,text:`> ${t}`},...I(n).map(e=>({id:P(),kind:`info`,text:e}))]),g(``);return}if(t===`context`){p(e=>[...e,{id:P(),kind:`input`,text:`> ${t}`},...R(n).map(e=>({id:P(),kind:`info`,text:e}))]),g(``);return}if(t===`examples`){p(e=>[...e,{id:P(),kind:`input`,text:`> ${t}`},...L(n).map(e=>({id:P(),kind:`info`,text:e}))]),g(``);return}v(e=>[...e,t]),x(-1),p(e=>[...e,{id:P(),kind:`input`,text:`> ${t}`}]),g(``),T.mutate(t)}}function O(e){if(e.key===`Enter`){e.preventDefault(),E(h);return}if(e.key===`ArrowUp`){if(e.preventDefault(),_.length===0)return;let t=y===-1?_.length-1:Math.max(0,y-1);x(t),g(_[t]??``);return}if(e.key===`ArrowDown`){if(e.preventDefault(),y===-1)return;let t=y+1;t>=_.length?(x(-1),g(``)):(x(t),g(_[t]??``));return}e.ctrlKey&&e.key===`l`&&(e.preventDefault(),p([{id:P(),kind:`info`,text:`scope: ${F(n)}`}]))}let k={input:`text-zinc-300`,result:`text-emerald-300`,error:`text-red-300`,info:`text-zinc-400`};return e(`div`,{className:`flex flex-col bg-[#0c0a09] rounded-lg border border-border overflow-hidden font-mono text-xs ${c??``}`,onClick:w,children:[e(`div`,{ref:C,className:`flex-1 overflow-y-auto p-3 space-y-1 min-h-[120px]`,children:[f.map(e=>i(`pre`,{className:`whitespace-pre-wrap break-words leading-relaxed ${k[e.kind]}`,children:e.text},e.id)),T.isPending&&i(`span`,{className:`text-zinc-500 animate-pulse`,children:u(`shared.replTerminal.thinking`,`…thinking`)})]}),e(`div`,{className:`flex items-center gap-2 border-t border-zinc-800 px-3 py-2 bg-[#0c0a09]`,children:[i(`span`,{className:`text-emerald-400 flex-shrink-0 select-none font-bold`,children:u(`shared.replTerminal.text`,`>`)}),i(b,{ref:S,value:h,onChange:e=>g(e.target.value),onKeyDown:O,disabled:T.isPending,placeholder:`device.state.battery.value`,autoFocus:!0,className:`flex-1 bg-transparent text-zinc-100 placeholder:text-zinc-600 focus:outline-none caret-emerald-400 disabled:opacity-50`,spellCheck:!1,autoComplete:`off`,autoCorrect:`off`,autoCapitalize:`off`})]})]})}function B(e,t){return e===null?null:{playbackUrl:e.url,...e.format===void 0?{}:{playbackFormat:e.format},playbackAuthToken:t,...e.label===void 0?{}:{playbackLabel:e.label}}}c();function V({deviceId:e,intercomAvailable:t=!1}){let r=m(),a=typeof window<`u`?f():``,o=Number.isFinite(e),s=O(o?e:null),c=j(o?[e]:[]),l=n(()=>{if(!o)return;let e=[];for(let t of c.rows){let n=v(t);n!==null&&e.push(n)}return e},[o,c.rows]),{streams:_,pipelineMetrics:y,createSession:b,sendAnswer:x,handleOffer:S,getIceServers:C,addIceCandidate:w,getIceCandidates:T,closeSession:D,getSessionState:k,applyDownlinkProbe:A}=h(r.trpcClient,o?e:null),N=d(o?e:null,{width:K}),P=M(o&&t?e:null),F=P.state===`requesting-mic`||P.state===`starting`||P.state===`connecting`||P.state===`stopping`,I=P.isTalking||F,L=()=>{P.state===`idle`||P.state===`error`?P.start():P.state!==`stopping`&&P.stop()},R=p(),z=g(),V=typeof window<`u`?window.localStorage.getItem(`camstack_admin_token`):null,H=B(z.request,V),U=R.length>0?i(u,{children:R.map(e=>i(`div`,{className:`absolute inset-0`,children:e.node},e.id))}):null;return i(E,{serverUrl:a,createSession:b,sendAnswer:x,handleOffer:S,getIceServers:C,addIceCandidate:w,getIceCandidates:T,closeSession:D,getSessionState:k,applyDownlinkProbe:A,...H===null?{}:{...H,onExitPlayback:()=>z.clear()},streams:_,pipelineMetrics:y,phase:s.phase,detections:s,...l===void 0?{}:{stationaryObjects:l},defaultShowDetections:!0,defaultShowMotion:!0,showPlayStop:!0,snapshotSrc:N.src,...N.src?{posterUrl:N.src}:{},snapshotLoading:N.loading,onRefreshSnapshot:N.refresh,intercomAvailable:t,intercomShown:I,onIntercomToggle:L,extraOverlay:U,chromeless:!0,className:`h-full`})}function H({deviceId:e,containerDeviceId:t}){let{t:n}=D();return Number.isFinite(e)?i(`div`,{className:`flex flex-col h-full`,children:i(S,{...t===void 0?{deviceId:e}:{containerDeviceId:t},limit:50,maxHeight:`max-h-full`,showScope:!1,showFilters:!1})}):i(`div`,{className:`flex items-center justify-center h-full text-[11px] text-foreground-subtle italic`,children:n(`device.panelContent.notLoaded`,{id:e})})}function U({deviceId:e}){let{t}=D();if(!Number.isFinite(e))return i(`div`,{className:`flex items-center justify-center h-full text-[11px] text-foreground-subtle italic`,children:t(`device.panelContent.notLoaded`,{id:e})});let n=[`CamStack REPL — device #${e}`,``,` device.state.battery.value sync state read`,` await device.snapshot.getSnapshot({}) cap action`,``,` type 'examples' for more, 'context' for the full API`].join(`
1
+ import{C as e,J as t,K as n,R as r,S as i,V as a,Y as o,a as s,et as c,t as l,x as u}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{G as d,Z as f,r as p,yt as m}from"./player-overlays-B0euBMgD.js";import{Pr as h,_p as g,c as _,cl as v,fr as y,l as b,mr as x,oa as S,ol as C,pr as w,sl as T,z as E}from"./src-VP2CTMP8.js";import{t as D}from"./useTranslation-BJr-n0es.js";import"./mount-C8b99Cdl.js";import"./index-DMtVByrH.js";c();function O(e){return b(m().trpcClient,e)}var k=15e3,A={rows:[],unreadableCount:0};function j(e){let t=m(),n=e.length>0,r=[...e].sort((e,t)=>e-t),{data:i,isLoading:a}=s({queryKey:[`stationary-objects`,r],enabled:n,staleTime:k,refetchInterval:k,queryFn:async()=>{let e=await t.trpcClient.zoneAnalytics.getCurrentSnapshotBatch.query({deviceIds:r}),n=[],i=0;for(let t of e){if(t.read===`unreadable`){i++;continue}for(let e of t.snapshot?.stationaryObjects??[])n.push({...e,deviceId:t.deviceId})}return{rows:n,unreadableCount:i}}}),o=i??A;return{rows:o.rows.toSorted((e,t)=>t.becameStationaryAt-e.becameStationaryAt),isLoading:n&&a,unreadableCount:o.unreadableCount}}function M(e){let[n,i]=o(`idle`),[s,c]=o(null),l=t(null),u=t(null),d=t(null),f=t(!0),p=T(),m=C(),h=v(),g=r(()=>{if(l.current){try{l.current.close()}catch{}l.current=null}if(u.current){for(let e of u.current.getTracks())try{e.stop()}catch{}u.current=null}d.current=null},[]),_=r(async()=>{if(n===`idle`)return;i(`stopping`);let t=d.current;if(t&&e!==null)try{await Promise.race([h.mutateAsync({deviceId:e,sessionId:t}),new Promise((e,t)=>setTimeout(()=>t(Error(`server stopSession timeout`)),2e3))])}catch(e){console.warn(`[intercom] server stopSession failed (continuing teardown)`,e)}g(),f.current&&(i(`idle`),c(null))},[n,e,h,g]),y=r(async()=>{if(e===null||n!==`idle`&&n!==`error`)return;c(null);let t=null,r=null,a=null;try{i(`requesting-mic`),t=await navigator.mediaDevices.getUserMedia({audio:!0,video:!1}),u.current=t,i(`starting`);let n=await p.mutateAsync({deviceId:e});a=n.sessionId,d.current=a,i(`connecting`),r=new RTCPeerConnection,l.current=r,r.oniceconnectionstatechange=()=>{if(!f.current)return;let e=r.iceConnectionState;e===`connected`||e===`completed`?i(`talking`):(e===`failed`||e===`closed`||e===`disconnected`)&&f.current&&(c(e===`failed`?`WebRTC connection failed`:null),_())};for(let e of t.getAudioTracks())r.addTrack(e,t);await r.setRemoteDescription({type:`offer`,sdp:n.sdpOffer});let o=await r.createAnswer();await r.setLocalDescription(o);let s=r.localDescription?.sdp??o.sdp??``;await m.mutateAsync({deviceId:e,sessionId:a,sdpAnswer:s})}catch(n){let o=n instanceof Error?n.message:String(n);if(console.warn(`[intercom] start failed`,n),r)try{r.close()}catch{}if(t)for(let e of t.getTracks())try{e.stop()}catch{}if(l.current=null,u.current=null,a!==null)try{await h.mutateAsync({deviceId:e,sessionId:a})}catch{}d.current=null,f.current&&(c(o),i(`error`))}},[e,n,p,m,h,_]);return a(()=>(f.current=!0,()=>{f.current=!1;let t=d.current;if(t!==null&&e!==null&&h.mutate({deviceId:e,sessionId:t}),l.current){try{l.current.close()}catch{}l.current=null}if(u.current){for(let e of u.current.getTracks())try{e.stop()}catch{}u.current=null}d.current=null}),[e]),{state:n,error:s,start:y,stop:_,isTalking:n===`talking`}}c();var N=0;function P(){return++N}function F(e){switch(e.type){case`system`:return`system`;case`device`:return`#${e.deviceId}`;case`provider`:return e.providerId;case`addon`:return e.addonId}}function I(e){return[``,`Commands`,` help Show this help`,` examples Show usage examples for the current scope`,` context Show every available variable + full API surface`,` clear Clear terminal (also Ctrl+L)`,``,`Shortcuts`,` Enter Execute expression`,` Arrow Up/Down Navigate command history`,` Ctrl+L Clear terminal`,``,`Try: ${{system:` sm.summary() // fleet overview`,device:` device.state.battery.value?.sleeping // sync read`,provider:` devices.map(d => d.name)`,addon:` manifest.version`}[e.type]}`,``,`Top-level objects: sm (SystemMirror), DeviceType, Math, JSON, Date, …`]}function L(e){switch(e.type){case`device`:return[``,`── State (sync, zero round-trip) ─────────────────────────`,` device.state.battery.value`,` device.state.battery.value?.level`,` device.state.motion.value?.detected`,``,`── Actions (async, through wrapper chain) ────────────────`,` await device.snapshot.getSnapshot({})`,` await device.ptz.move({ direction: 'left', steps: 1 })`,` await device.switch.setState({ on: true })`,``,`── Wait for condition ───────────────────────────────────`,` await sm.waitForState(deviceId, 'battery', s => !s.sleeping, 30_000)`,``,`── Subscribe to changes ─────────────────────────────────`,` const off = device.state.battery.subscribe(s => console.log(s))`,``,`── Quick info ───────────────────────────────────────────`,` info.name device name`,` info.addonId owning addon`,` sm.dump(deviceId) full debug dump`];case`system`:return[``,`── Lookups ──────────────────────────────────────────────`,` sm.getDeviceById(8)`,` sm.getDeviceByName('Sala da pranzo')`,` sm.getDevicesByAddon('reolink')`,` sm.getDevicesByType(DeviceType.Camera)`,``,`── Filters (typed query) ────────────────────────────────`,` sm.query({ addonId: 'reolink', online: true })`,` sm.query({ caps: ['battery', 'snapshot'] })`,` sm.query({ name: /^Cam-/ })`,``,`── Cross-device ─────────────────────────────────────────`,` sm.whereState('battery', s => s.level < 20).length`,` sm.mapState('battery', s => s.level)`,` sm.countByCap('snapshot')`,``,`── Batch action ─────────────────────────────────────────`,` await sm.invokeCap('snapshot', 'getSnapshot', {}, { parallelism: 4 })`,``,`── Listen ───────────────────────────────────────────────`,` sm.listenCap('motion', (id, s) => console.log(id, s))`,` sm.onDeviceAdded((id, info) => console.log('+', info.name))`,``,`── Diagnostics ──────────────────────────────────────────`,` sm.summary()`,` sm.dump(8)`];case`provider`:return[``,` devices.map(d => d.name)`,` await getIntegration()`,` sm.getDevicesByAddon('<this-addon-id>').length`];case`addon`:return[``,` manifest.name`,` manifest.version`,` declaration`]}}function R(e){let t=[``,`Scope: ${e.type}`,``];switch(e.type){case`system`:return[...t,`Primary API — sm (SystemMirror):`,` sm.getDeviceById(id) DeviceProxy | null (sync)`,` sm.getDeviceByName(name) DeviceProxy | null`,` sm.getDeviceByStableId(sid) DeviceProxy | null`,` sm.getAllDevices() readonly DeviceProxy[]`,` sm.getDeviceInfo(id) DeviceInfo | null`,` sm.summary() fleet stats`,``,`Filters — sm.query({...}):`,` sm.query({ addonId: 'reolink', online: true })`,` sm.query({ caps: ['battery', 'snapshot'] }) // ALL caps required`,` sm.query({ anyCap: ['ptz', 'motion'] }) // ANY cap`,` sm.query({ name: { contains: 'sala' } }) // case-insensitive`,` sm.query({ name: /^Cam-\\d+$/ })`,` sm.query({ type: DeviceType.Camera })`,` sm.query({ parentDeviceId: 8 }) // accessories of cam 8`,` sm.query({ where: (info, dev) => dev.state.battery.value?.sleeping })`,``,`State queries:`,` sm.whereState('battery', s => s.level < 20)`,` sm.mapState('battery', s => s.level)`,` sm.findState('motion', s => s.detected)`,` sm.countByCap('snapshot')`,``,`Listeners (return unsubscribe fn):`,` sm.listen((id, cap, slice) => …) // every state change`,` sm.listenCap('motion', (id, slice) => …)`,` sm.listenDevice(8, (id, cap, slice) => …)`,` sm.onDeviceAdded((id, info) => …)`,` sm.onDeviceRemoved((id, info) => …)`,``,`Wait primitives:`,` await sm.waitForState(8, 'battery', s => !s.sleeping, 30_000)`,` await sm.waitForDevice(99, 30_000)`,``,`Batch:`,` await sm.invokeCap('snapshot', 'getSnapshot', {}, { parallelism: 4 })`,` await sm.forEachCap('reboot', d => d.reboot.reboot({}))`,``,`Diagnostics:`,` sm.dump(8) debug dump (one device)`,` sm.dump() full fleet dump`,` sm.summary() breakdown by cap/addon/type`,``,`Legacy: deviceRegistry, addonRegistry, eventBus, devices(), addons()`];case`device`:return[...t,`Pre-bound variables:`,` device DeviceProxy for this device (sync state + async methods)`,` deviceId number`,` info DeviceInfo metadata (name, addonId, type, online, …)`,` sm SystemMirror (full cluster view)`,` rawDevice legacy IDevice instance (escape hatch)`,``,`Reactive state (sync, zero round-trip):`,` device.state.battery.value BatteryStatus | undefined`,` device.state.battery.value?.sleeping`,` device.state.battery.value?.level`,` device.state.motion.value?.detected`,` device.state.switch.value?.on`,` device.state.brightness.value?.level`,` device.state.doorbell.value?.lastPressedAt`,``,`Cap actions (async, through wrapper chain):`,` await device.snapshot.getSnapshot({})`,` await device.snapshot.getSnapshot({ streamId: 'high' })`,` await device.ptz.move({ direction: 'left', steps: 1 })`,` await device.ptz.goToPreset({ presetId: 'home' })`,` await device.switch.setState({ on: true })`,` await device.brightness.setBrightness({ level: 60 })`,` await device.reboot.reboot({})`,``,`Subscribe to slice changes:`,` const off = device.state.battery.subscribe(s => console.log(s))`,` // off() to unsubscribe`,``,`Wait for a state condition:`,` await sm.waitForState(deviceId, 'battery', s => !s.sleeping, 30_000)`,``,`Diagnostics:`,` info.name device name`,` info.addonId which addon owns it`,` info.online transport health`,` sm.dump(deviceId) full debug dump (binding + state + info)`];case`provider`:return[...t,`Pre-bound variables:`,` devices Devices belonging to this provider (raw IDevice[])`,` getIntegration() Integration metadata`,``,`For typed device access use the SystemMirror:`,` await getSystemMirror()`,` sm.getDevicesByAddon('this-addon-id')`];case`addon`:return[...t,`Pre-bound variables:`,` manifest { name, version, ... }`,` declaration addon declaration`,` source addon source location`,``,`Examples:`,` manifest.name`,` manifest.version`]}}function z({scope:n,greeting:s,className:c}){let{t:u}=D(),d=m(),[f,p]=o(()=>{let e=[];return s&&e.push({id:P(),kind:`info`,text:s}),e.push({id:P(),kind:`info`,text:`scope: ${F(n)} — type help or context for available commands`}),e}),[h,_]=o(``),[v,y]=o([]),[b,x]=o(-1),S=t(null),C=t(null);a(()=>{let e=C.current;e&&(e.scrollTop=e.scrollHeight)},[f]);let w=r(()=>{S.current?.focus()},[]),T=l({mutationFn:e=>d.trpcClient.repl.execute.mutate({code:e,scope:n}),onSuccess:e=>{let t=e??{},n=typeof t.output==`string`?t.output:e==null?`undefined`:typeof e==`string`?e:JSON.stringify(e,null,2),r=t.type===`error`;p(e=>[...e,{id:P(),kind:r?`error`:`result`,text:n}])},onError:e=>{let t=e instanceof Error?e.message:String(e);p(e=>[...e,{id:P(),kind:`error`,text:t}])}});function E(e){let t=e.trim();if(t){if(t===`clear`){p([{id:P(),kind:`info`,text:`scope: ${F(n)}`}]),_(``);return}if(t===`help`){p(e=>[...e,{id:P(),kind:`input`,text:`> ${t}`},...I(n).map(e=>({id:P(),kind:`info`,text:e}))]),_(``);return}if(t===`context`){p(e=>[...e,{id:P(),kind:`input`,text:`> ${t}`},...R(n).map(e=>({id:P(),kind:`info`,text:e}))]),_(``);return}if(t===`examples`){p(e=>[...e,{id:P(),kind:`input`,text:`> ${t}`},...L(n).map(e=>({id:P(),kind:`info`,text:e}))]),_(``);return}y(e=>[...e,t]),x(-1),p(e=>[...e,{id:P(),kind:`input`,text:`> ${t}`}]),_(``),T.mutate(t)}}function O(e){if(e.key===`Enter`){e.preventDefault(),E(h);return}if(e.key===`ArrowUp`){if(e.preventDefault(),v.length===0)return;let t=b===-1?v.length-1:Math.max(0,b-1);x(t),_(v[t]??``);return}if(e.key===`ArrowDown`){if(e.preventDefault(),b===-1)return;let t=b+1;t>=v.length?(x(-1),_(``)):(x(t),_(v[t]??``));return}e.ctrlKey&&e.key===`l`&&(e.preventDefault(),p([{id:P(),kind:`info`,text:`scope: ${F(n)}`}]))}let k={input:`text-zinc-300`,result:`text-emerald-300`,error:`text-red-300`,info:`text-zinc-400`};return e(`div`,{className:`flex flex-col bg-[#0c0a09] rounded-lg border border-border overflow-hidden font-mono text-xs ${c??``}`,onClick:w,children:[e(`div`,{ref:C,className:`flex-1 overflow-y-auto p-3 space-y-1 min-h-[120px]`,children:[f.map(e=>i(`pre`,{className:`whitespace-pre-wrap break-words leading-relaxed ${k[e.kind]}`,children:e.text},e.id)),T.isPending&&i(`span`,{className:`text-zinc-500 animate-pulse`,children:u(`shared.replTerminal.thinking`,`…thinking`)})]}),e(`div`,{className:`flex items-center gap-2 border-t border-zinc-800 px-3 py-2 bg-[#0c0a09]`,children:[i(`span`,{className:`text-emerald-400 flex-shrink-0 select-none font-bold`,children:u(`shared.replTerminal.text`,`>`)}),i(g,{ref:S,value:h,onChange:e=>_(e.target.value),onKeyDown:O,disabled:T.isPending,placeholder:`device.state.battery.value`,autoFocus:!0,className:`flex-1 bg-transparent text-zinc-100 placeholder:text-zinc-600 focus:outline-none caret-emerald-400 disabled:opacity-50`,spellCheck:!1,autoComplete:`off`,autoCorrect:`off`,autoCapitalize:`off`})]})]})}function B(e,t){return e===null?null:{playbackUrl:e.url,...e.format===void 0?{}:{playbackFormat:e.format},playbackAuthToken:t,...e.label===void 0?{}:{playbackLabel:e.label}}}c();function V({deviceId:e,intercomAvailable:t=!1}){let r=m(),a=typeof window<`u`?f():``,o=Number.isFinite(e),s=O(o?e:null),c=j(o?[e]:[]),l=n(()=>{if(!o)return;let e=[];for(let t of c.rows){let n=_(t);n!==null&&e.push(n)}return e},[o,c.rows]),{streams:g,pipelineMetrics:v,createSession:y,sendAnswer:b,handleOffer:x,getIceServers:C,addIceCandidate:w,getIceCandidates:T,closeSession:D,getSessionState:k,applyDownlinkProbe:A}=h(r.trpcClient,o?e:null),N=d(o?e:null,{width:K}),P=M(o&&t?e:null),F=P.state===`requesting-mic`||P.state===`starting`||P.state===`connecting`||P.state===`stopping`,I=P.isTalking||F,L=()=>{P.state===`idle`||P.state===`error`?P.start():P.state!==`stopping`&&P.stop()},R=p(),z=S(),V=typeof window<`u`?window.localStorage.getItem(`camstack_admin_token`):null,H=B(z.request,V),U=R.length>0?i(u,{children:R.map(e=>i(`div`,{className:`absolute inset-0`,children:e.node},e.id))}):null;return i(E,{serverUrl:a,createSession:y,sendAnswer:b,handleOffer:x,getIceServers:C,addIceCandidate:w,getIceCandidates:T,closeSession:D,getSessionState:k,applyDownlinkProbe:A,...H===null?{}:{...H,onExitPlayback:()=>z.clear()},streams:g,pipelineMetrics:v,phase:s.phase,detections:s,...l===void 0?{}:{stationaryObjects:l},defaultShowDetections:!0,defaultShowMotion:!0,showPlayStop:!0,snapshotSrc:N.src,...N.src?{posterUrl:N.src}:{},snapshotLoading:N.loading,onRefreshSnapshot:N.refresh,intercomAvailable:t,intercomShown:I,onIntercomToggle:L,extraOverlay:U,chromeless:!0,className:`h-full`})}function H({deviceId:e,containerDeviceId:t}){let{t:n}=D();return Number.isFinite(e)?i(`div`,{className:`flex flex-col h-full`,children:i(x,{...t===void 0?{deviceId:e}:{containerDeviceId:t},limit:50,maxHeight:`max-h-full`,showScope:!1,showFilters:!1})}):i(`div`,{className:`flex items-center justify-center h-full text-[11px] text-foreground-subtle italic`,children:n(`device.panelContent.notLoaded`,{id:e})})}function U({deviceId:e}){let{t}=D();if(!Number.isFinite(e))return i(`div`,{className:`flex items-center justify-center h-full text-[11px] text-foreground-subtle italic`,children:t(`device.panelContent.notLoaded`,{id:e})});let n=[`CamStack REPL — device #${e}`,``,` device.state.battery.value sync state read`,` await device.snapshot.getSnapshot({}) cap action`,``,` type 'examples' for more, 'context' for the full API`].join(`
2
2
  `);return i(z,{scope:{type:`device`,deviceId:e},greeting:n,className:`h-full border-0 rounded-none`})}function W({deviceId:e}){let{t}=D();return Number.isFinite(e)?i(`div`,{className:`flex flex-col h-full overflow-y-auto`,children:i(w,{deviceId:e,limit:50,maxHeight:`max-h-full`})}):i(`div`,{className:`flex items-center justify-center h-full text-[11px] text-foreground-subtle italic`,children:t(`device.panelContent.notLoaded`,{id:e})})}function G({deviceId:e}){let{t}=D();return Number.isFinite(e)?i(`div`,{className:`flex flex-col h-full overflow-y-auto`,children:i(y,{deviceId:e,limit:50,maxHeight:`max-h-full`})}):i(`div`,{className:`flex items-center justify-center h-full text-[11px] text-foreground-subtle italic`,children:t(`device.panelContent.notLoaded`,{id:e})})}var K=960;export{V as a,G as i,H as n,j as o,U as r,W as t};