@camstack/addon-admin-ui 1.2.651 → 1.2.653

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 (119) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/assets/Addons-B-UM6GSX.js +5 -0
  3. package/dist/assets/{AdminPage-j7wlZJaX.js → AdminPage-IHC_FLB8.js} +1 -1
  4. package/dist/assets/AdminSectionedPage-Ch-ZRoVJ.js +1 -0
  5. package/dist/assets/AiProfiles-B4SUJQ9G.js +3 -0
  6. package/dist/assets/{BootstrapSettingsForm-BybQlvQs.js → BootstrapSettingsForm-BIJKJjHp.js} +1 -1
  7. package/dist/assets/Build-BHR9T6UJ.js +40 -0
  8. package/dist/assets/{Calendars-CG2avL1-.js → Calendars-GKfsLcqY.js} +1 -1
  9. package/dist/assets/{CameraGrids-dfX8bLpt.js → CameraGrids-MUUhy0x2.js} +1 -1
  10. package/dist/assets/{Cluster-ddOQtA0z.js → Cluster-DxEZYSF0.js} +1 -1
  11. package/dist/assets/CompositionBlockEditor-BFBeiHR4.js +2 -0
  12. package/dist/assets/{CompositionEditorPage-CIYtKsgd.js → CompositionEditorPage-Dz7XI_eP.js} +1 -1
  13. package/dist/assets/{Data-40hNsswQ.js → Data-BaAuEhoW.js} +2 -2
  14. package/dist/assets/DeviceDetail-C0SC_4iD.js +2 -0
  15. package/dist/assets/{Devices-D82RrdaQ.js → Devices-Bf4nCnel.js} +1 -1
  16. package/dist/assets/{EmbedDevicePage-DCqyPvjt.js → EmbedDevicePage-C3NGsRrc.js} +1 -1
  17. package/dist/assets/{EmbedPlayerPage-CoUvRfeW.js → EmbedPlayerPage-BBY-Sx6F.js} +1 -1
  18. package/dist/assets/History-DCTkD2C5.js +1 -0
  19. package/dist/assets/Identity-nbJoxA5E.js +1 -0
  20. package/dist/assets/InstancesTable-D2eTsMze.js +1 -0
  21. package/dist/assets/IntegrationDetail-DL_jE7Ho.js +1 -0
  22. package/dist/assets/IntegrationWizard-BeAKGqkD.js +1 -0
  23. package/dist/assets/Integrations-B6dYn6fd.js +1 -0
  24. package/dist/assets/{Integrations-CqTN93AE.js → Integrations-Cj6uWWN_.js} +2 -2
  25. package/dist/assets/{Library-BIn-La3n.js → Library-DZE79diS.js} +1 -1
  26. package/dist/assets/Locations-CqKj6DUZ.js +3 -0
  27. package/dist/assets/{Logs-q8mnPoZt.js → Logs-BhqOgQ6e.js} +1 -1
  28. package/dist/assets/{MaskShapeCanvas-C5CA5ArA.js → MaskShapeCanvas-LlW1oTr3.js} +1 -1
  29. package/dist/assets/{MotionZonesSettings-CuEdW4kg.js → MotionZonesSettings-Dw3DU6pD.js} +1 -1
  30. package/dist/assets/{MyAccess-BuMfiAQv.js → MyAccess-D-Cz_u-P.js} +1 -1
  31. package/dist/assets/{Network-Cb8igqGd.js → Network-B1Tex5sO.js} +1 -1
  32. package/dist/assets/{NodeAddonsSettingsPanel-Epb11fvO.js → NodeAddonsSettingsPanel-BaDE0Pex.js} +2 -2
  33. package/dist/assets/Notifications-DhTbXKSI.js +1 -0
  34. package/dist/assets/Pipeline-DdOSXsJd.js +1 -0
  35. package/dist/assets/{PrivacyMaskSettings-CRGHDdXy.js → PrivacyMaskSettings-DCVqX841.js} +1 -1
  36. package/dist/assets/Recordings-Clozl5li.js +1 -0
  37. package/dist/assets/{RemoteGrid-JW_jcrRL.js → RemoteGrid--NiAHBK3.js} +1 -1
  38. package/dist/assets/{ScanSubnetEditor-Bp0ZzAGR.js → ScanSubnetEditor-Dp0E5C1_.js} +1 -1
  39. package/dist/assets/{SceneMonitorEditor-Q7jXeGpo.js → SceneMonitorEditor-Djr3jYA7.js} +1 -1
  40. package/dist/assets/SessionsList-GT-Vu8fp.js +2 -0
  41. package/dist/assets/{Showroom-B3_xGKQA.js → Showroom-l4vJyL2_.js} +1 -1
  42. package/dist/assets/StorageLocationsTable-BnmqVIjs.js +1 -0
  43. package/dist/assets/System-XHHHEn1g.js +1 -0
  44. package/dist/assets/{Templates-CjBsCi25.js → Templates-DdfynSCT.js} +1 -1
  45. package/dist/assets/{Terminal-BvsE40TJ.js → Terminal-CSQtVQmE.js} +3 -3
  46. package/dist/assets/{TrainingProviders-CqyzYHwE.js → TrainingProviders-De81MhS-.js} +1 -1
  47. package/dist/assets/{Viewer-Cz5LM-ZD.js → Viewer-FR0LH5M7.js} +1 -1
  48. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-GRzbN4aL.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BBA_NCm-.js} +1 -1
  49. package/dist/assets/action-draft-BUIf6miK.js +1 -0
  50. package/dist/assets/{ai-page.helpers-DNcaXg8W.js → ai-page.helpers-CowRsr4f.js} +1 -1
  51. package/dist/assets/{assignment-candidates-Brt1TfBJ.js → assignment-candidates-DNvncHM2.js} +1 -1
  52. package/dist/assets/{authed-media-BDz2D3wE.js → authed-media-DQUbrVb4.js} +1 -1
  53. package/dist/assets/{board-model-fGSLbQlQ.js → board-model-YFLbUrn6.js} +1 -1
  54. package/dist/assets/client-BPycW7-C.js +1115 -0
  55. package/dist/assets/command-vocab-tdjzfkdy.js +1 -0
  56. package/dist/assets/create-composition-DLzarGQj.js +1 -0
  57. package/dist/assets/device-detail-CLGID6OK.js +1 -0
  58. package/dist/assets/{device-integration-icon-BaZamKTr.js → device-integration-icon-BT-_hxIF.js} +1 -1
  59. package/dist/assets/device-picker-model-Dp5rCpVe.js +1 -0
  60. package/dist/assets/{dist-Cv10wXXS.js → dist-BGrtxcme.js} +1 -1
  61. package/dist/assets/dist-D_CJWYmG.js +1115 -0
  62. package/dist/assets/{format-CD_iudtm.js → format--HuC16nb.js} +1 -1
  63. package/dist/assets/{hostInit-C7q5ZVa2.js → hostInit-3uCgRlGz.js} +1 -1
  64. package/dist/assets/i18n-DMi5B3uV.js +1 -0
  65. package/dist/assets/{icons-DGI91n0_.js → icons-Q-ksrnyT.js} +1 -1
  66. package/dist/assets/index-CfI8I1jw.css +2 -0
  67. package/dist/assets/index-D4P9-tQo.js +4 -0
  68. package/dist/assets/{linked-devices-model-DdmaPBcx.js → linked-devices-model-JZgr5Mkd.js} +1 -1
  69. package/dist/assets/{mf-entry-bootstrap-0-72008839.js → mf-entry-bootstrap-0-01002c42.js} +2 -2
  70. package/dist/assets/mount-Dp5rCpVe.js +1 -0
  71. package/dist/assets/{notification-rule-status-DorPFV4O.js → notification-rule-status-DIIXoVdn.js} +1 -1
  72. package/dist/assets/{player-overlays-BhrNQiuF.js → player-overlays-DuVrpJ5X.js} +1 -1
  73. package/dist/assets/remoteEntry-Cll_F6YF.js +1 -0
  74. package/dist/assets/src-CDP4x5TP.js +253 -0
  75. package/dist/assets/{step-inspector-model-CCXeB8Qp.js → step-inspector-model-C76V4MWJ.js} +1 -1
  76. package/dist/assets/{use-scenes-feed-BlDgjdbB.js → use-scenes-feed-cmZKGNSW.js} +1 -1
  77. package/dist/assets/{use-stationary-objects-X5LldesX.js → use-stationary-objects-BoUGi1JO.js} +1 -1
  78. package/dist/assets/{useAdminDeviceRemoval-DPzuxsjZ.js → useAdminDeviceRemoval-DLI0kLAU.js} +1 -1
  79. package/dist/assets/useEventInvalidation-Dp5rCpVe.js +1 -0
  80. package/dist/assets/{useNodeUrlSelection-qjXl6qTX.js → useNodeUrlSelection-DMmVYpSE.js} +1 -1
  81. package/dist/assets/useTemplateSave-j5OtpDNQ.js +1 -0
  82. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-Pzb2Fskx.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-6S8fCuje.js} +2 -2
  83. package/dist/index.html +8 -8
  84. package/dist/server/addon.js +620 -354
  85. package/package.json +2 -2
  86. package/dist/assets/Addons-B8ltQOv0.js +0 -5
  87. package/dist/assets/AdminSectionedPage-Bff3Jex6.js +0 -1
  88. package/dist/assets/AiProfiles-BKV84wBr.js +0 -3
  89. package/dist/assets/Build-RULxbWDd.js +0 -40
  90. package/dist/assets/CompositionBlockEditor-E9dJvNcn.js +0 -2
  91. package/dist/assets/DeviceDetail-DIOgBXBE.js +0 -2
  92. package/dist/assets/History-LROTE-3F.js +0 -1
  93. package/dist/assets/Identity-B59zHLA3.js +0 -1
  94. package/dist/assets/InstancesTable-I61ipsWQ.js +0 -1
  95. package/dist/assets/IntegrationDetail-rOO7_tpX.js +0 -1
  96. package/dist/assets/IntegrationWizard-D-DvT_nc.js +0 -1
  97. package/dist/assets/Integrations-D9I8f_dT.js +0 -1
  98. package/dist/assets/Locations-Dhv1Kc76.js +0 -3
  99. package/dist/assets/Notifications-Dqd_UOOG.js +0 -1
  100. package/dist/assets/Pipeline-BmIjO9-D.js +0 -1
  101. package/dist/assets/Recordings-DwV6-ANm.js +0 -1
  102. package/dist/assets/SessionsList-CmpxjyUF.js +0 -2
  103. package/dist/assets/StorageLocationsTable-BvMGBanJ.js +0 -1
  104. package/dist/assets/System-JVEKqDtH.js +0 -1
  105. package/dist/assets/action-draft-BVTi9xo9.js +0 -1
  106. package/dist/assets/client-D5elicir.js +0 -1114
  107. package/dist/assets/command-vocab-GNKqYgCN.js +0 -1
  108. package/dist/assets/create-composition-DTVI2eEi.js +0 -1
  109. package/dist/assets/device-detail-BRYKrKpX.js +0 -1
  110. package/dist/assets/device-picker-model-DoO_DpCX.js +0 -1
  111. package/dist/assets/dist-B6ZlvtdW.js +0 -1114
  112. package/dist/assets/i18n-BNkA6jrS.js +0 -1
  113. package/dist/assets/index-BKgdp64z.js +0 -4
  114. package/dist/assets/index-SyR6jUqA.css +0 -2
  115. package/dist/assets/mount-DoO_DpCX.js +0 -1
  116. package/dist/assets/remoteEntry-C0hl0rQE.js +0 -1
  117. package/dist/assets/src-B_Sz8ZXm.js +0 -252
  118. package/dist/assets/useEventInvalidation-DoO_DpCX.js +0 -1
  119. package/dist/assets/useTemplateSave-msQZOGf6.js +0 -1
@@ -1 +0,0 @@
1
- import{xo as e}from"./client-D5elicir.js";function t(e){return typeof e.deviceId==`number`?e.deviceId:e.target?.kind===`devices`&&e.target.ids.length===1?e.target.ids[0]??null:null}var n={$var:e};function r(e){return e.deviceId===void 0?e.target?.kind===`var`&&e.target.name===`item`:l(e.deviceId)&&e.deviceId.$var===`item`}function i(e){let[t,...n]=e;if(t===void 0)return[];let r=n.map(e=>new Set(e.map(c)));return t.filter(e=>r.every(t=>t.has(c(e)))&&e.openArgs.every(e=>e.offer.kind!==`dynamic`))}function a(e){if(e.deviceId!==void 0)return e.deviceId;let t=e.target;return t?.kind===`devices`?t.ids.length===1?t.ids[0]??[]:t.ids:t?.kind===`var`?{$var:t.name}:[]}var o=/(\{[A-Za-z0-9_]+\})/;function s(e){return e.toLowerCase().startsWith(`it`)?`it`:`en`}function c(e){return`${e.cap}:${e.id}`}function l(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length===1&&t[0]===`$var`&&typeof Reflect.get(e,`$var`)==`string`}function u(e){let t=[];for(let n of e.split(o))n!==``&&(n.startsWith(`{`)&&n.endsWith(`}`)?t.push({kind:`slot`,key:n.slice(1,-1)}):t.push({kind:`text`,text:n}));return t}function d(e){let t=e.offer;switch(t.kind){case`number`:return{kind:`fixed`,value:t.min??0,...t.quantity===void 0||t.unit===void 0?{}:{unit:t.unit}};case`enum`:{let e=t.values[0];return{kind:`fixed`,value:e===void 0?``:e.value}}case`boolean`:return{kind:`fixed`,value:!1};default:return{kind:`fixed`,value:``}}}function f(e){return Object.fromEntries(e.openArgs.map(e=>[e.key,d(e)]))}function p(e,t,n){if(l(e))return{kind:`var`,name:e.$var};let r=m(t);return typeof e==`number`&&r!==void 0?{kind:`fixed`,value:e,unit:n??r.unit}:typeof e==`string`||typeof e==`number`||typeof e==`boolean`?{kind:`fixed`,value:e}:d(t)}function m(e){let t=e.offer;if(!(t.kind!==`number`||t.quantity===void 0||t.unit===void 0))return{quantity:t.quantity,unit:t.unit,min:t.min,max:t.max}}function h(e,t){return JSON.stringify(e)===JSON.stringify(t)}function g(e,n){return t(n)===null?null:v(e,n)}function _(e,t){return r(t)?v(e,t):null}function v(e,t){let n=t.args??{},r=null,i=-1;for(let a of e){if(a.cap!==t.cap||a.method!==t.method)continue;let e=Object.entries(a.args);e.every(([e,t])=>h(n[e],t))&&e.length>i&&(r=a,i=e.length)}if(r===null)return null;let a=Object.fromEntries(r.openArgs.map(e=>[e.key,p(n[e.key],e,t.argUnits?.[e.key])]));return{action:r,values:a}}function y(e){return e.kind===`var`?{$var:e.name}:e.value}function b(e){return e.kind===`fixed`&&e.value===``}function x(e,t,n){let r={},i={};for(let t of e.openArgs){let e=n[t.key]??d(t);t.optional===!0&&b(e)||(r[t.key]=y(e),e.kind===`fixed`&&e.unit!==void 0&&m(t)!==void 0&&(i[t.key]=e.unit))}let a={...e.args,...r};return{kind:`cap`,deviceId:typeof t==`number`?t:{$var:t.$var},cap:e.cap,method:e.method,...Object.keys(a).length===0?{}:{args:a},...Object.keys(i).length===0?{}:{argUnits:i}}}function S(e,t){if(t.kind===`var`)return null;let n=e.offer;return n.kind===`number`?typeof t.value!=`number`||!Number.isFinite(t.value)?`empty`:n.min!==void 0&&t.value<n.min?`below`:n.max!==void 0&&t.value>n.max?`above`:null:n.kind===`text`||n.kind===`dynamic`?e.optional===!0||t.value!==``?null:`empty`:null}export{i as a,r as c,g as d,a as f,s as g,u as h,c as i,l,t as m,S as n,d as o,m as p,x as r,f as s,n as t,_ as u};
@@ -1 +0,0 @@
1
- import{C as e,K as t,S as n,Y as r,a as i,et as a,x as o}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{gt as s,ut as c}from"./player-overlays-BhrNQiuF.js";import{Cn as l,Dn as u,En as d,On as f,Sn as p,Tn as m,bn as h,ps as g,wn as _,xn as v}from"./client-D5elicir.js";import{t as y}from"./boxes-k5PsZ3NR.js";import{C as b,D as x,Ga as S,Kd as C,Lo as w,Oi as T,Q as E,Qd as D,S as O,dr as k,fr as A,g as j,ji as M,mr as N,nf as P,pr as F,uf as I,ur as L,w as ee}from"./src-B_Sz8ZXm.js";import{t as te}from"./i18n-BNkA6jrS.js";import{t as R}from"./useTranslation-BJr-n0es.js";import"./index-BKgdp64z.js";import{Dt as z,Et as B,t as ne}from"./CompositionBlockEditor-E9dJvNcn.js";import{a as re,c as ie,d as ae,f as oe,g as se,h as ce,i as V,m as le,n as ue,o as de,p as H,r as U,s as fe,t as W,u as pe}from"./command-vocab-GNKqYgCN.js";a();var G=`mt-1 w-full rounded border border-border bg-background px-2 py-1 text-xs`,K=`block text-[11px] font-medium text-foreground`,me=`deviceId`;function he(e,t){return t.length===0?0:t.length===1?t[0]:t.find(t=>!e.includes(t))??t[t.length-1]}function ge(e,t,n){if(t.length===0)return[];if(t.length===1)return t;let r=t.find(t=>!e.includes(t));if(r===void 0)return t;let i=n(r);if(i===void 0)return[r];let a=e[0]??t.find(e=>e!==r);if(a===void 0)return[r];let o=n(a);return o===void 0||!f(o,i)?[r]:t.filter(e=>{let t=n(e);return t!==void 0&&f(o,t)})}function q(e){return e.length===0?0:e.length===1?e[0]:[...e]}function _e(e){return typeof e==`number`?e>0?[e]:[]:Array.isArray(e)?e.filter(e=>e>0):[]}function ve(e,t){return{deviceId:e,cap:t.cap,method:t.method,...t.args===void 0?{}:{args:{...t.args}}}}function ye(e,t){return te.t(`deviceDoAction.customLabel`,{name:`${e}.${t}`})}function be({value:r,onChange:i,devices:a,listState:o,fleet:s,allowTriggerDevice:h=!1,allowMultiSameFamily:g=!1,testId:y=`device-do-action`}){let{t:b}=R(),S=typeof r.deviceId!=`number`&&!Array.isArray(r.deviceId),C=_e(r.deviceId),w=t(()=>a.filter(e=>d(String(e.type??``))),[a]),T=t(()=>{let e=new Map;for(let t of w)t.type!==void 0&&t.type!==null&&e.set(t.id,String(t.type));return e},[w]),E=t(()=>{if(!g||C.length===0)return w;let e=T.get(C[0]);return e===void 0?w:w.filter(t=>{if(C.includes(t.id))return!0;let n=t.type!==void 0&&t.type!==null?String(t.type):void 0;return n!==void 0&&f(e,n)})},[g,C,w,T]),D=B(!g&&C.length===1?C[0]:0),O=z(g?C:[]),k=t(()=>S?_():C.length===0?[]:g?O.isLoading&&O.data===void 0?[]:l(C.map(e=>({boundCaps:O.data?.get(e),deviceType:T.get(e)}))):D.data===void 0&&D.isLoading?[]:p({boundCaps:D.data,deviceType:T.get(C[0])}),[S,C,g,O.data,O.isLoading,D.data,D.isLoading,T]),A=m(r.cap,r.method,r.args),j=u(r.cap,r.method,r.args),M=r.cap!==``&&r.method!==``&&j===null&&(S||C.length>0),N=g?O.isLoading:D.isLoading,P=g?O.isError:D.isError,F=e=>{if(e.startsWith(`custom:`))return;let t=v.find(t=>t.id===e);t!==void 0&&i(ve(S?r.deviceId:C.length>0?q(C):w[0]?.id??0,t))};return e(`div`,{className:`flex min-w-0 flex-1 flex-col gap-2`,"data-testid":y,children:[h&&e(`div`,{className:`w-full max-w-xs`,children:[n(`label`,{className:K,children:b(`deviceDoAction.deviceDoActionFields.target`,`Target`)}),e(c,{wrapperClassName:`inline-block w-auto`,className:G,"data-testid":`${y}-target`,value:S?`trigger`:`device`,onChange:e=>{if(e.target.value===`trigger`){i({deviceId:{$var:me},cap:``,method:``});return}i({deviceId:w[0]?.id??0,cap:``,method:``})},children:[n(`option`,{value:`device`,children:b(`deviceDoAction.deviceDoActionFields.specificDevice`,`Specific device`)}),n(`option`,{value:`trigger`,children:b(`deviceDoAction.deviceDoActionFields.theDeviceThatTriggeredThis`,`The device that triggered this run`)})]})]}),!S&&e(`div`,{"data-testid":`${y}-device`,children:[n(`label`,{className:K,children:b(`deviceDoAction.deviceLabel`,{count:g?2:1})}),n(x,{devices:E,listState:o,...s===void 0?{}:{fleet:s},value:[...C],onChange:e=>{i({deviceId:q(g?ge(C,e,e=>T.get(e)):(()=>{let t=he(C,e);return t>0?[t]:[]})()),cap:``,method:``})},emptyLabel:g?`No devices selected`:`No device selected`,noun:`device`,testId:`${y}-device-picker`}),g&&C.length>1&&n(`p`,{className:`mt-1 text-[11px] text-foreground-subtle`,children:b(`deviceDoAction.deviceDoActionFields.sameFamilyOnlyTheAction`,`Same family only — the action runs on each selected device.`)})]}),e(`div`,{className:`w-full max-w-sm`,children:[n(`label`,{className:K,children:b(`deviceDoAction.deviceDoActionFields.action`,`Action`)}),e(c,{wrapperClassName:`inline-block w-auto`,className:G,"data-testid":`${y}-action`,value:A===`custom:${r.cap}.${r.method}`?A:j?.id??``,disabled:!S&&(C.length===0||N),onChange:e=>F(e.target.value),children:[n(`option`,{value:``,children:!S&&C.length===0?b(`deviceDoAction.deviceDoActionFields.pickADeviceFirst`,`Pick a device first`):N?b(`deviceDoAction.deviceDoActionFields.loadingActions`,`Loading actions…`):k.length===0?b(`deviceDoAction.deviceDoActionFields.noActionsForThisDevice`,`No actions for this device`):b(`deviceDoAction.deviceDoActionFields.selectAnAction`,`Select an action…`)}),M&&n(`option`,{value:A,children:ye(r.cap,r.method)}),k.map(e=>n(`option`,{value:e.id,children:e.label},e.id))]}),P&&n(`p`,{className:`mt-1 text-[11px] text-warning`,children:b(`deviceDoAction.deviceDoActionFields.couldNotReadThisDevice`,`Could not read this device’s capabilities.`)})]}),j?.openArgs!==void 0&&j.openArgs.length>0&&n(`div`,{className:`flex flex-col gap-2`,children:j.openArgs.map(t=>{let a=r.args?.[t.key],o=typeof a==`string`||typeof a==`number`?String(a):``;return e(`div`,{className:`w-full max-w-sm`,children:[n(`label`,{className:K,htmlFor:`${y}-${t.key}`,children:t.label}),n(I,{id:`${y}-${t.key}`,className:G,"data-testid":`${y}-${t.key}`,type:t.kind===`number`?`number`:`text`,value:o,onChange:e=>{let n=e.target.value,a=r.args===void 0?{}:{...r.args};if(n===``)delete a[t.key];else if(t.kind===`number`){let e=Number(n);Number.isNaN(e)?delete a[t.key]:a[t.key]=e}else a[t.key]=n;i(Object.keys(a).length>0?{...r,args:a}:{deviceId:r.deviceId,cap:r.cap,method:r.method})}})]},t.key)})})]})}var J=[g.Container],xe=[g.Camera];a();function Se(e){return e===void 0||!Number.isFinite(e)?``:String(e)}function Y({value:e,onValue:t,onBrace:i,onBlur:a,...o}){let[s,c]=r(null);return n(I,{...o,inputMode:`decimal`,value:s??Se(e),onChange:e=>{let n=e.target.value;if(n.includes(`{`)){i?.();return}c(n);let r=n.trim()===``?NaN:Number(n);t(Number.isFinite(r)?r:null)},onBlur:e=>{c(null),a?.(e)}})}function X(e){return e.kind===`dynamic`}function Ce(e){return e.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase())}function we(e){return e.from===`method`?e.method:`getStatus`}function Z(e,t){return typeof e==`object`&&e?Reflect.get(e,t):void 0}function Q(e){return typeof e==`string`||typeof e==`number`}function Te(e,t){let n=t.from===`status`?Z(e,t.field):e;if(!Array.isArray(n))return[];let r=[];for(let e of n){if(t.where!==void 0&&Z(e,t.where.key)!==t.where.equals)continue;let n=t.valueKey===void 0?e:Z(e,t.valueKey);if(!Q(n))continue;let i=t.labelKey===void 0?n:Z(e,t.labelKey);r.push({value:n,label:Q(i)?String(i):String(n)})}return r}function $({widthClass:e,...t}){return n(`span`,{className:`block max-w-full ${e}`,children:n(c,{...t})})}a();function Ee(e){return e.kind===`fixed`?String(e.value):``}function De({arg:t,locale:i,variables:a,value:o,onChange:s,choices:c}){let{t:l}=R(),[u,d]=r(!1),f=t.label[i],p=ue(t,o),m=o.kind===`var`?n(D,{label:o.name,onRemove:()=>s(de(t))}):n(Oe,{arg:t,locale:i,value:o,onChange:s,onBrace:()=>d(!0),choices:c});return e(`span`,{className:`inline-flex flex-col gap-0.5 align-top`,"data-testid":`arg-${t.key}`,children:[e(`span`,{className:`inline-flex items-center gap-1`,children:[m,a.length>0&&e(L,{open:u,onOpenChange:d,children:[n(F,{"aria-label":l(`flow.arg.useVariable`,`Use a variable for {{label}}`,{label:f}),className:`h-8 rounded-md border border-border bg-surface px-2 font-mono text-xs text-foreground hover:bg-surface-hover`,children:`{x}`}),n(k,{children:a.map(e=>n(A,{onClick:()=>s({kind:`var`,name:e.name}),children:`${e.name} · ${e.hint}`},e.name))})]})]}),n(Ae,{arg:t,value:o,issue:p})]})}function Oe({arg:e,locale:t,value:r,onChange:i,onBrace:a,choices:o}){let{t:s}=R(),c=e.offer,l=e.label[t];if(X(c)&&o?.state===`ready`){let t=o.choices.some(e=>e.value===r.value);return n($,{widthClass:`w-48`,"aria-label":l,"data-testid":`dynamic-${e.key}`,value:String(r.value),onChange:e=>{let t=o.choices.find(t=>String(t.value)===e.target.value);t!==void 0&&i({kind:`fixed`,value:t.value})},options:[...t?[]:[{value:String(r.value),label:r.value===``?s(`flow.arg.choose`,`Choose…`):String(r.value)}],...o.choices.map(e=>({value:String(e.value),label:e.label}))]})}if(c.kind===`enum`)return n($,{widthClass:`w-40`,"aria-label":l,value:String(r.value),onChange:e=>{let t=c.values.find(t=>String(t.value)===e.target.value);t!==void 0&&i({kind:`fixed`,value:t.value})},options:c.values.map(e=>({value:String(e.value),label:e.label[t]}))});if(c.kind===`boolean`)return n($,{widthClass:`w-28`,"aria-label":l,value:r.value===!0?`yes`:`no`,onChange:e=>i({kind:`fixed`,value:e.target.value===`yes`}),options:[{value:`yes`,label:s(`common.yes`,`Yes`)},{value:`no`,label:s(`common.no`,`No`)}]});let u=H(e);return u===void 0?c.kind===`number`?n(ke,{label:l,unit:c.unit,value:r,onChange:i,onBrace:a}):c.kind===`text`&&c.secret===!0?n(I,{"aria-label":l,type:`password`,className:`w-40`,value:Ee(r),onChange:e=>i({kind:`fixed`,value:e.target.value})}):n(j,{label:l,className:`flex w-56 flex-col gap-1`,testId:`arg-text-${e.key}`,value:Ee(r),onChange:e=>i({kind:`fixed`,value:e})}):n(O,{quantity:u.quantity,storedUnit:u.unit,value:typeof r.value==`number`?r.value:void 0,unit:r.unit,min:u.min,max:u.max,"aria-label":l,onBrace:a,onChange:e=>{let t=ee(e,u.unit);i({kind:`fixed`,value:t.value,unit:t.unit})}})}function ke({label:t,unit:r,value:i,onChange:a,onBrace:s}){return e(o,{children:[n(Y,{"aria-label":t,className:`w-20`,value:typeof i.value==`number`?i.value:void 0,onValue:e=>a({kind:`fixed`,value:e??NaN}),onBrace:s}),r!==void 0&&n(`span`,{className:`text-sm text-foreground-muted`,children:r})]})}function Ae({arg:e,value:t,issue:r}){let{t:i}=R(),a=e.offer;if(t.kind!==`fixed`||a.kind!==`number`||a.min===void 0&&a.max===void 0)return null;let o=H(e),s=o===void 0?a.unit:t.unit??o.unit,c=o===void 0?{min:a.min,max:a.max}:b({min:a.min,max:a.max},o.unit,s??o.unit),l=s??``,u=e=>e===void 0||o===void 0?e:Number(e.toPrecision(4)),d={min:u(c.min),max:u(c.max)},f=d.min!==void 0&&d.max!==void 0?i(`flow.arg.range`,`{{min}} to {{max}} {{unit}}`,{min:d.min,max:d.max,unit:l}):d.min===void 0?i(`flow.arg.atMost`,`at most {{max}} {{unit}}`,{max:d.max,unit:l}):i(`flow.arg.atLeast`,`at least {{min}} {{unit}}`,{min:d.min,unit:l});return n(`span`,{className:`text-[11px] ${r===null?`text-foreground-subtle`:`text-danger`}`,role:r===null?void 0:`alert`,children:f.trim()})}var je=3e4;function Me(e){return typeof e==`object`&&!!e&&typeof Reflect.get(e,`query`)==`function`}function Ne(e,t,n){let r=s(),a=n===null?``:we(n),o=i({queryKey:[`build`,`dynamic-offer`,e,t,a],enabled:e!==null&&e>0&&n!==null,staleTime:je,retry:!1,queryFn:async()=>{let n=Reflect.get(r.trpcClient,Ce(t)),i=typeof n==`object`&&n?Reflect.get(n,a):void 0;if(!Me(i)||e===null)throw Error(`no readable ${t}.${a}`);return i.query({deviceId:e})}});if(n===null||e===null)return{state:`unavailable`};if(o.isPending)return{state:`loading`};if(o.isError)return{state:`unavailable`};let c=Te(o.data,n);return c.length===0?{state:`unavailable`}:{state:`ready`,choices:c}}function Pe({deviceId:e,cap:t,arg:r,...i}){return n(De,{arg:r,choices:Ne(e,t,X(r.offer)?r.offer:null),...i})}a();var Fe=[];function Ie(e){return typeof e==`number`?e:typeof e==`object`&&e&&`$var`in e?{$var:e.$var}:[...e]}function Le(e,t,n){return e.map(e=>({value:V(e),label:e.label[t],description:e.phrase[t].replace(`{device}`,n)}))}function Re({step:i,devices:a,devicesState:o=`answered`,variables:s,roundDevices:c,onChange:l}){let{t:u,i18n:d}=R(),f=se(d.language),[p,m]=r(!1),g=le(i),_=g!==null,v=g??0,y=a.find(e=>e.id===v),b=B(_?v:0),x=c!==void 0&&ie(i),S=x?c:Fe,w=z(S),E=t(()=>{if(x){let e=w.data;return e===void 0?[]:re(S.map(t=>h(e.get(t)??[],a.find(e=>e.id===t)?.type)))}return b.data===void 0?[]:h(b.data,y?.type)},[x,w.data,S,a,b.data,y?.type]),D=t(()=>x?pe(E,i):ae(E,i),[x,E,i]),O=i.cap===``,k=x?S.length>0&&w.data===void 0&&!w.isError:_&&v>0&&b.data===void 0&&!b.isError,A=(_||x)&&!p&&(O||D!==null||k),j=x?W:v,F=u(`automation.repeat.itemHint`,`the device of this round`),I=x?F:y?.name??``,L=x?S.length===0:v===0;return A?e(`div`,{className:`space-y-2`,"data-testid":`command-step`,children:[e(`div`,{className:`flex flex-wrap items-center gap-2`,children:[!x&&y?.type!==void 0&&n(C,{variant:`neutral`,children:y.type}),c!==void 0&&n(N,{"data-testid":`command-step-round`,checked:x,label:u(`flow.command.roundDevice`,`On the device of this round`),"aria-label":u(`flow.command.roundDevice`,`On the device of this round`),onCheckedChange:e=>l({kind:`cap`,deviceId:e?{$var:W.$var}:0,cap:``,method:``})}),n(P,{variant:`ghost`,size:`sm`,className:`ml-auto`,onClick:()=>m(!0),"data-testid":`command-step-advanced`,children:u(`flow.command.advanced`,`Advanced`)})]}),e(`div`,{className:`grid gap-2 sm:grid-cols-2`,children:[x?n(`p`,{className:`self-center text-xs text-foreground-subtle`,"data-testid":`command-step-round-hint`,children:u(`flow.command.roundHint`,`Runs on each device of the loop in turn. Only the commands all of them have are offered.`)}):n(M,{pick:`device`,excludeTypes:J,recentKey:`build-targets`,value:v>0?{deviceId:v}:null,testId:`command-step-device`,onChange:e=>{let t=e?.deviceId??0;t!==v&&l({kind:`cap`,deviceId:t,cap:``,method:``})}}),n(T,{mode:`single`,singleDisplay:`field`,options:Le(E,f,I),value:D===null?``:V(D.action),placeholder:L?x?u(`flow.command.pickLoopDevicesFirst`,`Pick the devices of the loop first`):u(`flow.command.pickDeviceFirst`,`Pick a device first`):u(`flow.command.pickCommand`,`Pick a command`),disabled:L||k,searchable:E.length>=8,emptyMessage:x?u(`flow.command.noCommonCommands`,`The devices of this loop share no command.`):u(`flow.command.noCommands`,`This device has no commands to offer.`),onChange:e=>{let t=E.find(t=>V(t)===e);t!==void 0&&l(U(t,j,fe(t)))}})]}),x&&S.length===0&&n(`p`,{className:`text-xs text-foreground-subtle`,"data-testid":`command-step-round-empty`,children:u(`flow.command.pickLoopDevicesFirst`,`Pick the devices of the loop first`)}),x&&!k&&S.length>0&&E.length===0&&n(`p`,{className:`text-xs text-foreground-subtle`,"data-testid":`command-step-round-none`,children:u(`flow.command.noCommonCommands`,`The devices of this loop share no command.`)}),D!==null&&n(ze,{action:D.action,deviceId:v,values:D.values,deviceName:I,locale:f,variables:s,onChange:e=>l(U(D.action,j,e))})]}):n(Be,{step:i,devices:a,devicesState:o,onChange:l,onBack:(_||x)&&!O&&D!==null?()=>m(!1):null})}function ze({action:e,deviceId:t,values:r,deviceName:i,locale:a,variables:o,onChange:s}){let c=[];return ce(e.phrase[a]).forEach((l,u)=>{if(l.kind===`text`){c.push(n(`span`,{children:l.text},`t${String(u)}`));return}if(l.key===`device`){c.push(n(`span`,{className:`font-medium`,children:i},`device`));return}let d=e.openArgs.find(e=>e.key===l.key),f=r[l.key];d===void 0||f===void 0||c.push(n(Pe,{deviceId:t,cap:e.cap,arg:d,locale:a,variables:o,value:f,onChange:e=>s({...r,[l.key]:e})},l.key))}),n(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-2 text-sm`,children:c})}function Be({step:t,devices:r,devicesState:i,onChange:a,onBack:o}){let{t:s}=R();return e(`div`,{className:`space-y-2`,"data-testid":`command-step-generic`,children:[o!==null&&n(P,{variant:`ghost`,size:`sm`,onClick:o,children:s(`flow.command.backToSentence`,`Back to the sentence`)}),n(be,{value:{...t,deviceId:oe(t)},allowTriggerDevice:!0,allowMultiSameFamily:!0,devices:r,listState:i,onChange:e=>a({kind:`cap`,deviceId:Ie(e.deviceId),cap:e.cap,method:e.method,...e.args===void 0?{}:{args:{...e.args}}})})]})}a();var Ve=6e4;function He(){let e=w({projection:`slim`});return t(()=>{let t=new Map((e.data??[]).map(e=>[e.id,e.name]));return(e.data??[]).filter(e=>d(String(e.type))).map(e=>({id:e.id,name:e.name,stableId:e.stableId,addonId:e.addonId,type:String(e.type),location:e.location??null,parentName:e.parentDeviceId===null?null:t.get(e.parentDeviceId)??null})).toSorted((e,t)=>e.name.localeCompare(t.name))},[e.data])}function Ue(e){let t=s();return i({queryKey:[`automation`,`wireable-fields`,e],enabled:e>0,staleTime:Ve,queryFn:async()=>(await t.trpcClient.deviceManager.getWireableFields.query({deviceId:e})).caps})}function We(e,t){return e.find(e=>e.cap===t)?.fields??[]}function Ge({blockId:e,onClose:t}){let{t:r}=R();return n(E,{open:e!==null,onClose:t,title:r(`build.customDeviceTab.editComposedDevice`,`Edit composed device`),icon:y,width:`xl`,testId:`composed-device-editor`,fill:!0,children:e!==null&&n(ne,{blockId:e,fillHeight:!0})})}function Ke(){return S()}export{Ue as a,Y as c,He as i,J as l,Ge as n,Re as o,We as r,$ as s,Ke as t,xe as u};
@@ -1 +0,0 @@
1
- import{A as e,C as t,K as n,R as r,S as i,V as a,Y as o,d as s,et as c,k as l,u,x as d}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{Wt as f,it as p,ja as m,ka as h,mt as g}from"./player-overlays-BhrNQiuF.js";import{Du as _,Ff as v,Gr as y,Gt as b,Jr as x,Kt as S,Ot as C,Ou as w,Tu as T,Ur as E,Vf as D,Wd as ee,Wr as O,Wt as k,Xt as A,Yr as j,bn as te,kt as M,ku as N,nf as P,qd as F,vd as I,vf as L,wu as R}from"./src-B_Sz8ZXm.js";import{t as z}from"./i18n-BNkA6jrS.js";import{n as B,t as V}from"./useTranslation-BJr-n0es.js";import{C as H,q as U}from"./index-BKgdp64z.js";import{n as W,r as G,t as K,v as q}from"./RemoteGrid-JW_jcrRL.js";c();function J({i18n:t,defaultNS:r,children:i}){let a=n(()=>({i18n:t,defaultNS:r}),[t,r]);return e(B.Provider,{value:a},i)}c();function Y({deviceId:e,button:n,sources:r,current:a,placement:s}){let{t:c}=V(),l=N(),[u,p]=o(!1),[m,g]=o(null);if(r.length===0)return null;let _=a===``?c(`remote.sourceSelect.label`):a,v=r.filter(e=>e.kind===`digits`),b=r.filter(e=>e.kind!==`digits`),S=async t=>{g(null);try{let n=await l.mutateAsync({deviceId:e,command:`selectSource`,source:t.name,repeat:1});if(n.status===`refused`){g(c(`remote.test.refused.${n.reason}`,{detail:n.detail??``}));return}if(n.status===`not-routed`){g(c(`remote.sourceSelect.notRouted`));return}p(!1)}catch(e){g(e instanceof Error?e.message:String(e))}};return t(d,{children:[t(P,{type:`button`,size:`sm`,variant:`secondary`,"aria-label":_,title:_,"data-testid":`remote-grid-button-${n.id}`,"data-widget":`source_select`,className:h(`z-10 h-full min-w-0 overflow-hidden border border-border px-2`,W(n.shape),G(n.tone)),style:s,onClick:()=>{g(null),p(!0)},children:[i(f,{className:`h-4 w-4 shrink-0`,"aria-hidden":!0}),i(`span`,{className:`min-w-0 truncate text-xs`,children:_})]}),u&&i(E,{open:!0,onOpenChange:e=>!e&&p(!1),children:t(y,{width:`sm`,placement:`sheet-on-mobile`,scroll:`body`,children:[i(x,{children:i(j,{children:c(`remote.sourceSelect.title`)})}),t(O,{className:`space-y-3`,"data-testid":`source-picker`,children:[i(X,{title:c(`remote.sourceSelect.channels`),sources:v,current:a,busy:l.isPending,onPick:e=>void S(e)}),i(X,{title:c(`remote.sourceSelect.inputs`),sources:b,current:a,busy:l.isPending,onPick:e=>void S(e)}),m!==null&&i(`p`,{role:`alert`,className:`text-xs text-danger`,"data-testid":`source-picker-failure`,children:m})]})]})})]})}function X({title:e,sources:n,current:r,busy:a,onPick:o}){return n.length===0?null:t(`section`,{className:`space-y-1`,children:[i(`h3`,{className:`text-xs font-medium uppercase tracking-wide text-foreground-muted`,children:e}),i(`ul`,{className:`space-y-1`,children:n.map(e=>i(`li`,{children:t(P,{type:`button`,variant:e.name===r?`secondary`:`ghost`,size:`sm`,disabled:a,className:`w-full justify-start gap-2`,"data-testid":`source-pick-${e.id}`,onClick:()=>o(e),children:[e.kind===`digits`&&i(`span`,{className:`w-10 shrink-0 text-right tabular-nums text-foreground-muted`,children:e.number}),i(`span`,{className:`min-w-0 truncate`,children:e.name})]})},e.id))})]})}c();function Z({deviceId:e,deviceName:n}){let{t:r}=V(),a=v(`remote`),s=_({deviceId:e},{enabled:a===`present`}),[c,l]=o(!1);return a!==`present`||(s.data?.commands.length??0)===0&&(s.data?.sources.length??0)===0?null:t(`div`,{className:`flex flex-wrap items-center justify-center gap-1`,children:[t(P,{size:`sm`,variant:`outline`,onClick:()=>l(!0),"data-testid":`hero-remote`,children:[i(te,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),r(`remote.hero.open`)]}),c&&i(ne,{deviceId:e,deviceName:n,onClose:()=>l(!1)})]})}function ne({deviceId:e,deviceName:n,onClose:r}){let{t:a}=V(),s=T({deviceId:e}),c=I({kind:`remote`}),l=_({deviceId:e}),u=w(),d=R({deviceId:e}),[f,p]=o(null),m=s.data?.layoutTemplateId??null,h=(c.data??[]).find(e=>e.id===m),g=h===void 0?null:q(h.payload),v=new Set((l.data?.commands??[]).map(e=>e.role)),b=async t=>{let n=g?.buttons.find(e=>e.id===t)?.role;if(!(n===void 0||!v.has(n))){p(null);try{let t=await u.mutateAsync({deviceId:e,role:n,repeat:1});t.status===`refused`&&p(a(`remote.test.refused.${t.reason}`,{detail:t.detail??``}))}catch(e){p(e instanceof Error?e.message:String(e))}}};return i(E,{open:!0,onOpenChange:e=>!e&&r(),children:t(y,{width:`md`,placement:`sheet-on-mobile`,scroll:`body`,children:[i(x,{children:i(j,{children:a(`remote.hero.title`,{name:n})})}),t(O,{className:`space-y-3`,children:[s.status===`error`?i(ee,{title:a(`remote.dialog.unreadable`),message:s.error?.message??``,onRetry:()=>void s.refetch()}):g===null?i(`p`,{className:`text-xs text-foreground-muted`,children:a(`remote.hero.noLayout`)}):i(`div`,{className:`mx-auto w-full max-w-xs`,"data-testid":`remote-press`,children:i(K,{grid:g,label:a(`remote.hero.title`,{name:n}),boundRoles:v,onSelect:e=>void b(e),renderWidget:(t,n)=>i(Y,{deviceId:e,button:t,sources:l.data?.sources??[],current:d.data?.source??``,placement:n})})}),f!==null&&i(`p`,{role:`alert`,className:`text-xs text-danger`,children:f})]})]})})}c();var re=l({});function ie({value:e,children:t}){return i(re.Provider,{value:e,children:t})}c();var Q={"off-while-running":{title:`Turn off while running?`,message:`The device is running. Cutting its power now interrupts what it is doing.`,confirm:`Turn off`},unlock:{title:`Unlock?`,message:`The lock will open.`,confirm:`Unlock`},install:{title:`Install the update?`,message:`The device may restart and be unavailable for a while.`,confirm:`Install`},press:{title:`Run it now?`,message:`The device acts as soon as you confirm.`,confirm:`Run`}},$=e=>e===`off-while-running`?`deviceHero.model.confirmOff`:`deviceHero.model.confirm.${e}`;function ae(){let{t:e,i18n:t}=V(),r=t.language;return n(()=>{let t=t=>({title:e(`${$(t)}.title`,Q[t].title),message:e(`${$(t)}.message`,Q[t].message),confirm:e(`${$(t)}.confirm`,Q[t].confirm)});return{noValue:e(`deviceHero.model.noValue`,`–`),callFailed:e(`deviceHero.model.callFailed`,`The device did not accept the command`),historyTooltip:e(`deviceHero.utility.history.tooltip`,`Opens the history of this device.`),consumables:{label:e(`deviceHero.utility.consumables.label`,`Consumables`),low:t=>e(`deviceHero.utility.consumables.low`,`{{count}} low`,{count:t}),ok:e(`deviceHero.utility.consumables.ok`,`OK`),tooltip:e(`deviceHero.utility.consumables.tooltip`,`Shows the level of each consumable and which ones need attention.`)},power:{label:e(`deviceHero.utility.power.label`,`Power source`),on:e(`deviceHero.utility.power.on`,`On`),off:e(`deviceHero.utility.power.off`,`Off`),tooltip:e(`deviceHero.utility.power.tooltip`,`Opens a menu to cut or restore the power feeding this device, or to restart it.`),tooltipReadOnly:e(`deviceHero.utility.power.tooltipReadOnly`,`Whether the power source feeding this device is on. Your session cannot change it.`)},confirm:{"off-while-running":t(`off-while-running`),unlock:t(`unlock`),install:t(`install`),press:t(`press`)}}},[e,r])}c();function oe(e){let[t]=o(()=>new s({defaultOptions:{queries:{retry:!1,staleTime:5e3}}}));return e??t}function se({deviceId:e,kind:t,canActuate:n,onDrawn:r,showName:o}){let s=L();return a(()=>{r?.(!0)},[r]),i(`div`,{className:`flex justify-center`,children:i(k,{kind:t,deviceId:e,canActuate:n,orientation:s?`vertical`:`horizontal`,showName:o!==!1})})}function ce(e){let t=b(e.deviceId);return t===`pending`?i(F,{className:`h-72 w-full`}):t===null?i(le,{...e}):i(se,{deviceId:e.deviceId,kind:t,canActuate:e.canActuate,onDrawn:e.onDrawn,showName:e.showName})}function le({deviceId:e,canActuate:n,fallback:a,onDrawn:s,defaultHistoryOpen:c,showName:l}){let{t:u,i18n:f}=V(),p=ae(),[m,h]=o(c===!0),g=A(e),_=U(g.presence,g.list),v=r(()=>h(!0),[]);return t(d,{children:[i(C,{deviceId:e,canActuate:n,lang:M(f.language),labels:p,renderRemote:t=>i(Z,{deviceId:e,deviceName:t}),fallback:a??null,showName:l!==!1,..._?{onOpenHistory:v}:{},...s===void 0?{}:{onDrawn:s}}),m?i(E,{open:!0,onOpenChange:e=>!e&&h(!1),children:t(y,{width:`xl`,scroll:`body`,children:[i(x,{children:i(j,{children:u(`deviceModule.history`,`History`)})}),i(O,{className:`mt-3`,children:i(S,{deviceId:e})})]})}):null]})}function ue({deviceId:e,trpcClient:t,theme:r,locale:a,canActuate:o=!1,defaultHistoryOpen:s,queryClient:c,fallback:l,onDrawn:d,onOpenDevice:f,onOpenCamera:h,onClose:_,onNavigate:v,showName:y}){let b=oe(c),x=n(()=>z.cloneInstance({lng:a}),[a]),S=n(()=>H(x.t.bind(x)),[x]),C=n(()=>({onOpenDevice:f,onOpenCamera:h,onClose:_,onNavigate:v}),[f,h,_,v]);return i(`div`,{className:r,"data-theme":r,"data-testid":`device-detail-module`,children:i(J,{i18n:x,children:i(m,{t:S,children:i(g,{client:t,children:i(D.Provider,{client:t,queryClient:b,children:i(u,{client:b,children:i(p,{children:i(ie,{value:C,children:i(ce,{deviceId:e,canActuate:o,fallback:l,onDrawn:d,defaultHistoryOpen:s,showName:y})})})})})})})})})}export{Z as n,ue as t};
@@ -1 +0,0 @@
1
- import"./src-B_Sz8ZXm.js";