@camstack/addon-admin-ui 1.2.645 → 1.2.647
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/CHANGELOG.md +26 -0
- package/dist/assets/Addons-C1rCMYSj.js +5 -0
- package/dist/assets/{AdminPage-CgQxV6oS.js → AdminPage-Cve4EeKX.js} +1 -1
- package/dist/assets/AdminSectionedPage-V0guU8PD.js +1 -0
- package/dist/assets/AiProfiles-COv7z6F-.js +3 -0
- package/dist/assets/{BootstrapSettingsForm-BoEmD1zV.js → BootstrapSettingsForm-DtS11lHd.js} +1 -1
- package/dist/assets/Build-D5T3SI7b.js +40 -0
- package/dist/assets/{Calendars-DJwzxqLu.js → Calendars-BhsUg2gV.js} +1 -1
- package/dist/assets/{CameraGrids-BgccN5Pj.js → CameraGrids-CM8Yxxdq.js} +1 -1
- package/dist/assets/{Cluster-BsENeR0i.js → Cluster-BP9fRDMS.js} +1 -1
- package/dist/assets/CompositionBlockEditor-xQIVx_j0.js +2 -0
- package/dist/assets/{CompositionEditorPage-TUBCxwY3.js → CompositionEditorPage-DHUcurin.js} +1 -1
- package/dist/assets/Data-DJbrnaPU.js +2 -0
- package/dist/assets/DeviceDetail-CaQ51F0f.js +2 -0
- package/dist/assets/{Devices-RQLZEgPY.js → Devices-Cf3ZTJ1J.js} +1 -1
- package/dist/assets/{EmbedDevicePage-ZLq8d2iA.js → EmbedDevicePage-B9J6ucMX.js} +1 -1
- package/dist/assets/{EmbedPlayerPage-CAIQaXj7.js → EmbedPlayerPage-DP7b5VUK.js} +1 -1
- package/dist/assets/History-Dx7eMiJH.js +1 -0
- package/dist/assets/Identity-D3MJ59NJ.js +1 -0
- package/dist/assets/InstancesTable-bYSuSJuI.js +1 -0
- package/dist/assets/IntegrationDetail-c2pjtV64.js +1 -0
- package/dist/assets/IntegrationWizard-DpekcaJ2.js +1 -0
- package/dist/assets/Integrations-B4MvBXRJ.js +1 -0
- package/dist/assets/{Integrations-uNKI4ENy.js → Integrations-Ci8Mqya9.js} +2 -2
- package/dist/assets/Library-D0tz7PS_.js +1 -0
- package/dist/assets/Locations-BFeQBE-F.js +3 -0
- package/dist/assets/Logs-DtjMaCC4.js +1 -0
- package/dist/assets/{MaskShapeCanvas-B3zP9xT5.js → MaskShapeCanvas-DsRgL9Jd.js} +1 -1
- package/dist/assets/{MotionZonesSettings-DKBKT9aJ.js → MotionZonesSettings-BWECPN2p.js} +1 -1
- package/dist/assets/MyAccess-B83bBSQi.js +2 -0
- package/dist/assets/Network-BF1ofy4e.js +1 -0
- package/dist/assets/NodeAddonsSettingsPanel-BhNHsNDz.js +2 -0
- package/dist/assets/Notifications-BDmKjk8l.js +1 -0
- package/dist/assets/Pipeline-3BkMMjQC.js +1 -0
- package/dist/assets/{PrivacyMaskSettings-CK9hqTRF.js → PrivacyMaskSettings-CxsDkPmw.js} +1 -1
- package/dist/assets/Recordings-CdbZm7N3.js +1 -0
- package/dist/assets/{RemoteGrid-i8wKPofF.js → RemoteGrid-D9lQtkK4.js} +1 -1
- package/dist/assets/{ScanSubnetEditor-DgQG14u4.js → ScanSubnetEditor-D1wWQv5l.js} +1 -1
- package/dist/assets/{SceneMonitorEditor-C7BzyuY3.js → SceneMonitorEditor-Bgq5w1mw.js} +1 -1
- package/dist/assets/SessionsList-AtYEgm7p.js +2 -0
- package/dist/assets/{Showroom-v5DKHm7R.js → Showroom-BCX4Yyt6.js} +1 -1
- package/dist/assets/StorageLocationsTable-CInEvHND.js +1 -0
- package/dist/assets/{System-jjlBGk9U.js → System-DvinM4KN.js} +1 -1
- package/dist/assets/{Templates-DKBo80nE.js → Templates-AolwZ6TI.js} +1 -1
- package/dist/assets/{Terminal-CFo4OCRV.js → Terminal-DoBiePC-.js} +5 -5
- package/dist/assets/{TrainingProviders-LmHCsEEc.js → TrainingProviders-BKZ0teUD.js} +1 -1
- package/dist/assets/{Viewer-KhrX-QoU.js → Viewer-q6dKXR67.js} +1 -1
- package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BPtmPLBq.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-M59fwoAQ.js} +1 -1
- package/dist/assets/{action-draft-Ct8_GVdJ.js → action-draft-DB5j6cca.js} +1 -1
- package/dist/assets/{ai-page.helpers-3SnxNBNh.js → ai-page.helpers-CQPhp13c.js} +1 -1
- package/dist/assets/{assignment-candidates-CMQomrma.js → assignment-candidates-C5pHZht5.js} +1 -1
- package/dist/assets/{authed-media-CS1SYJIb.js → authed-media-Q5YVSoIj.js} +1 -1
- package/dist/assets/{board-model-COvoDWAk.js → board-model-CpqXB5lD.js} +1 -1
- package/dist/assets/client-Dzzkm60X.js +1114 -0
- package/dist/assets/command-vocab-Dk_f6ivd.js +1 -0
- package/dist/assets/create-composition-k03FONcQ.js +1 -0
- package/dist/assets/device-detail-okAAAxvr.js +1 -0
- package/dist/assets/{device-integration-icon-dOu9Eloe.js → device-integration-icon-CzQF4KNa.js} +1 -1
- package/dist/assets/device-picker-model-DkSaYUyU.js +1 -0
- package/dist/assets/dist-C0Eyz4-R.js +1114 -0
- package/dist/assets/{dist-BSIDIvPv.js → dist-Dx1IuG2H.js} +1 -1
- package/dist/assets/{format-CnAMMCKO.js → format-BoPK6WDS.js} +1 -1
- package/dist/assets/{hostInit-5hZWUgB1.js → hostInit-JJE2ncUY.js} +1 -1
- package/dist/assets/i18n-DWUEvjgE.js +1 -0
- package/dist/assets/icons-Dhc1mBIs.js +1 -0
- package/dist/assets/index-DKKQtgP2.js +4 -0
- package/dist/assets/index-DcUA-A3F.css +2 -0
- package/dist/assets/{linked-devices-model-C9-KwysR.js → linked-devices-model-XNuspKgG.js} +1 -1
- package/dist/assets/{mf-entry-bootstrap-0-da7ca43d.js → mf-entry-bootstrap-0-0cbecd57.js} +2 -2
- package/dist/assets/mount-DkSaYUyU.js +1 -0
- package/dist/assets/{notification-rule-status-CXntp3K9.js → notification-rule-status-7H1KxBu5.js} +1 -1
- package/dist/assets/player-overlays-DpoShe47.js +1 -0
- package/dist/assets/remoteEntry-DhUUWtf1.js +1 -0
- package/dist/assets/src-CvlhNDJc.js +253 -0
- package/dist/assets/step-inspector-model-B1WjzUY-.js +1 -0
- package/dist/assets/{use-scenes-feed-BoR1Y-VE.js → use-scenes-feed-Dx37Wfqx.js} +1 -1
- package/dist/assets/{use-stationary-objects-DkXKafj7.js → use-stationary-objects-CVyIgKy4.js} +1 -1
- package/dist/assets/{useAdminDeviceRemoval-DkVpT6r5.js → useAdminDeviceRemoval-Dfw_WOjy.js} +1 -1
- package/dist/assets/useEventInvalidation-DkSaYUyU.js +1 -0
- package/dist/assets/{useNodeUrlSelection--lZvqvct.js → useNodeUrlSelection-C7M0t1Bu.js} +1 -1
- package/dist/assets/useTemplateSave-BXH2v4XY.js +1 -0
- package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-T6WBMt1q.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-BZIvKvKs.js} +2 -2
- package/dist/index.html +8 -8
- package/dist/server/addon.js +404 -58
- package/package.json +2 -2
- package/dist/assets/Addons-CWDe2ysB.js +0 -5
- package/dist/assets/AdminSectionedPage-CSjSmB74.js +0 -1
- package/dist/assets/AiProfiles-DnluoNPk.js +0 -3
- package/dist/assets/Build-DMVoPRyS.js +0 -40
- package/dist/assets/CompositionBlockEditor-DudbSZVo.js +0 -2
- package/dist/assets/Data-DOpOAfYo.js +0 -2
- package/dist/assets/DeviceDetail-CIRWTBj8.js +0 -2
- package/dist/assets/History-y3xgB62I.js +0 -1
- package/dist/assets/Identity-Dfwm4Ys2.js +0 -1
- package/dist/assets/InstancesTable-DB74t0Si.js +0 -1
- package/dist/assets/IntegrationDetail-Bg4fgH_7.js +0 -1
- package/dist/assets/IntegrationWizard-B_hF-vL9.js +0 -1
- package/dist/assets/Integrations-BzHSRaCH.js +0 -1
- package/dist/assets/Library-IqKySZef.js +0 -1
- package/dist/assets/Locations-BzytI3mX.js +0 -3
- package/dist/assets/Logs-BQWbxkE0.js +0 -1
- package/dist/assets/MyAccess-t_EwSJ61.js +0 -2
- package/dist/assets/Network-w5dWUXr3.js +0 -1
- package/dist/assets/NodeAddonsSettingsPanel-Bd8yv-Cb.js +0 -2
- package/dist/assets/Notifications-BZPoCLb7.js +0 -1
- package/dist/assets/Pipeline-AOTD3jWE.js +0 -1
- package/dist/assets/Recordings-Ck1Xvyur.js +0 -1
- package/dist/assets/SessionsList-Cg0IcV2U.js +0 -2
- package/dist/assets/StorageLocationsTable-Bs0wRBcX.js +0 -1
- package/dist/assets/client-BkrADwlo.js +0 -951
- package/dist/assets/command-vocab-_m2oGZgY.js +0 -1
- package/dist/assets/create-composition-B8m0P0Ka.js +0 -1
- package/dist/assets/device-detail-G-NTu_Fh.js +0 -1
- package/dist/assets/device-picker-model-Crk-zo39.js +0 -1
- package/dist/assets/dist-DD36UXJv.js +0 -951
- package/dist/assets/i18n-BArP6ThS.js +0 -1
- package/dist/assets/icons-2IlNe3Rh.js +0 -1
- package/dist/assets/index-0ukvsxX5.css +0 -2
- package/dist/assets/index-B5lClYc_.js +0 -4
- package/dist/assets/mount-Crk-zo39.js +0 -1
- package/dist/assets/player-overlays-BGlMiuNC.js +0 -1
- package/dist/assets/remoteEntry-Oo10s4gX.js +0 -1
- package/dist/assets/src-BNDWAXGm.js +0 -230
- package/dist/assets/step-inspector-model-DXIzeAZ0.js +0 -1
- package/dist/assets/useEventInvalidation-Crk-zo39.js +0 -1
- package/dist/assets/useTemplateSave-NBDCe0sx.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{xo as e}from"./client-Dzzkm60X.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};
|
|
@@ -0,0 +1 @@
|
|
|
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-DpoShe47.js";import{Cn as l,Sn as u,Tn as d,_n as f,bn as p,ps as m,vn as h,wn as g,xn as _,yn as v}from"./client-Dzzkm60X.js";import{t as y}from"./boxes-k5PsZ3NR.js";import{$d as b,Ai as x,C as S,D as C,Di as w,Io as T,Q as E,S as D,Ud as O,Wa as k,Yd as A,dr as j,fr as M,g as N,lr as P,pr as F,sf as I,ur as L,w as ee}from"./src-CvlhNDJc.js";import{t as te}from"./i18n-DWUEvjgE.js";import{t as R}from"./useTranslation-BJr-n0es.js";import"./index-DKKQtgP2.js";import{Dt as z,Et as B,t as ne}from"./CompositionBlockEditor-xQIVx_j0.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-Dk_f6ivd.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||!d(o,i)?[r]:t.filter(e=>{let t=n(e);return t!==void 0&&d(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:f=!1,allowMultiSameFamily:m=!1,testId:y=`device-do-action`}){let{t:b}=R(),x=typeof r.deviceId!=`number`&&!Array.isArray(r.deviceId),S=_e(r.deviceId),w=t(()=>a.filter(e=>l(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(!m||S.length===0)return w;let e=T.get(S[0]);return e===void 0?w:w.filter(t=>{if(S.includes(t.id))return!0;let n=t.type!==void 0&&t.type!==null?String(t.type):void 0;return n!==void 0&&d(e,n)})},[m,S,w,T]),D=B(!m&&S.length===1?S[0]:0),O=z(m?S:[]),k=t(()=>x?_():S.length===0?[]:m?O.isLoading&&O.data===void 0?[]:p(S.map(e=>({boundCaps:O.data?.get(e),deviceType:T.get(e)}))):D.data===void 0&&D.isLoading?[]:v({boundCaps:D.data,deviceType:T.get(S[0])}),[x,S,m,O.data,O.isLoading,D.data,D.isLoading,T]),A=u(r.cap,r.method,r.args),j=g(r.cap,r.method,r.args),M=r.cap!==``&&r.method!==``&&j===null&&(x||S.length>0),N=m?O.isLoading:D.isLoading,P=m?O.isError:D.isError,F=e=>{if(e.startsWith(`custom:`))return;let t=h.find(t=>t.id===e);t!==void 0&&i(ve(x?r.deviceId:S.length>0?q(S):w[0]?.id??0,t))};return e(`div`,{className:`flex min-w-0 flex-1 flex-col gap-2`,"data-testid":y,children:[f&&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:x?`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`)})]})]}),!x&&e(`div`,{"data-testid":`${y}-device`,children:[n(`label`,{className:K,children:b(`deviceDoAction.deviceLabel`,{count:m?2:1})}),n(C,{devices:E,listState:o,...s===void 0?{}:{fleet:s},value:[...S],onChange:e=>{i({deviceId:q(m?ge(S,e,e=>T.get(e)):(()=>{let t=he(S,e);return t>0?[t]:[]})()),cap:``,method:``})},emptyLabel:m?`No devices selected`:`No device selected`,noun:`device`,testId:`${y}-device-picker`}),m&&S.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:!x&&(S.length===0||N),onChange:e=>F(e.target.value),children:[n(`option`,{value:``,children:!x&&S.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=[m.Container],xe=[m.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(A,{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(P,{open:u,onOpenChange:d,children:[n(M,{"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(L,{children:a.map(e=>n(j,{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(N,{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(D,{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}:S({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(),p=se(d.language),[m,h]=r(!1),g=le(i),_=g!==null,v=g??0,y=a.find(e=>e.id===v),S=B(_?v:0),C=c!==void 0&&ie(i),T=C?c:Fe,E=z(T),D=t(()=>{if(C){let e=E.data;return e===void 0?[]:re(T.map(t=>f(e.get(t)??[],a.find(e=>e.id===t)?.type)))}return S.data===void 0?[]:f(S.data,y?.type)},[C,E.data,T,a,S.data,y?.type]),k=t(()=>C?pe(D,i):ae(D,i),[C,D,i]),A=i.cap===``,j=C?T.length>0&&E.data===void 0&&!E.isError:_&&v>0&&S.data===void 0&&!S.isError,M=(_||C)&&!m&&(A||k!==null||j),N=C?W:v,P=u(`automation.repeat.itemHint`,`the device of this round`),I=C?P:y?.name??``,L=C?T.length===0:v===0;return M?e(`div`,{className:`space-y-2`,"data-testid":`command-step`,children:[e(`div`,{className:`flex flex-wrap items-center gap-2`,children:[!C&&y?.type!==void 0&&n(O,{variant:`neutral`,children:y.type}),c!==void 0&&n(F,{"data-testid":`command-step-round`,checked:C,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(b,{variant:`ghost`,size:`sm`,className:`ml-auto`,onClick:()=>h(!0),"data-testid":`command-step-advanced`,children:u(`flow.command.advanced`,`Advanced`)})]}),e(`div`,{className:`grid gap-2 sm:grid-cols-2`,children:[C?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(x,{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(w,{mode:`single`,singleDisplay:`field`,options:Le(D,p,I),value:k===null?``:V(k.action),placeholder:L?C?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||j,searchable:D.length>=8,emptyMessage:C?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=D.find(t=>V(t)===e);t!==void 0&&l(U(t,N,fe(t)))}})]}),C&&T.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`)}),C&&!j&&T.length>0&&D.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.`)}),k!==null&&n(ze,{action:k.action,deviceId:v,values:k.values,deviceName:I,locale:p,variables:s,onChange:e=>l(U(k.action,N,e))})]}):n(Be,{step:i,devices:a,devicesState:o,onChange:l,onBack:(_||C)&&!A&&k!==null?()=>h(!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(b,{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=T({projection:`slim`});return t(()=>{let t=new Map((e.data??[]).map(e=>[e.id,e.name]));return(e.data??[]).filter(e=>l(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 k()}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};
|
|
@@ -0,0 +1 @@
|
|
|
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{Aa as f,Ma as p,Wt as m,it as h,mt as g}from"./player-overlays-DpoShe47.js";import{$d as _,Eu as v,Gt as y,Hr as b,Jr as x,Mf as S,Ot as C,Rf as w,Su as T,Tu as E,Ur as D,Ut as O,Vd as k,Wd as A,Wr as j,Wt as ee,Yt as te,hd as ne,hf as M,kt as N,qr as P,wu as F,xu as I,yn as L}from"./src-CvlhNDJc.js";import{t as R}from"./i18n-DWUEvjgE.js";import{n as z,t as B}from"./useTranslation-BJr-n0es.js";import{C as V,q as H}from"./index-DKKQtgP2.js";import{n as U,r as W,t as G,v as K}from"./RemoteGrid-D9lQtkK4.js";c();function q({i18n:t,defaultNS:r,children:i}){let a=n(()=>({i18n:t,defaultNS:r}),[t,r]);return e(z.Provider,{value:a},i)}c();function J({deviceId:e,button:n,sources:r,current:a,placement:s}){let{t:c}=B(),l=v(),[u,p]=o(!1),[h,g]=o(null);if(r.length===0)return null;let y=a===``?c(`remote.sourceSelect.label`):a,S=r.filter(e=>e.kind===`digits`),C=r.filter(e=>e.kind!==`digits`),w=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(_,{type:`button`,size:`sm`,variant:`secondary`,"aria-label":y,title:y,"data-testid":`remote-grid-button-${n.id}`,"data-widget":`source_select`,className:f(`z-10 h-full min-w-0 overflow-hidden border border-border px-2`,U(n.shape),W(n.tone)),style:s,onClick:()=>{g(null),p(!0)},children:[i(m,{className:`h-4 w-4 shrink-0`,"aria-hidden":!0}),i(`span`,{className:`min-w-0 truncate text-xs`,children:y})]}),u&&i(b,{open:!0,onOpenChange:e=>!e&&p(!1),children:t(j,{width:`sm`,placement:`sheet-on-mobile`,scroll:`body`,children:[i(P,{children:i(x,{children:c(`remote.sourceSelect.title`)})}),t(D,{className:`space-y-3`,"data-testid":`source-picker`,children:[i(Y,{title:c(`remote.sourceSelect.channels`),sources:S,current:a,busy:l.isPending,onPick:e=>void w(e)}),i(Y,{title:c(`remote.sourceSelect.inputs`),sources:C,current:a,busy:l.isPending,onPick:e=>void w(e)}),h!==null&&i(`p`,{role:`alert`,className:`text-xs text-danger`,"data-testid":`source-picker-failure`,children:h})]})]})})]})}function Y({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(_,{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 X({deviceId:e,deviceName:n}){let{t:r}=B(),a=S(`remote`),s=F({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(_,{size:`sm`,variant:`outline`,onClick:()=>l(!0),"data-testid":`hero-remote`,children:[i(L,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),r(`remote.hero.open`)]}),c&&i(re,{deviceId:e,deviceName:n,onClose:()=>l(!1)})]})}function re({deviceId:e,deviceName:n,onClose:r}){let{t:a}=B(),s=T({deviceId:e}),c=ne({kind:`remote`}),l=F({deviceId:e}),u=E(),d=I({deviceId:e}),[f,p]=o(null),m=s.data?.layoutTemplateId??null,h=(c.data??[]).find(e=>e.id===m),g=h===void 0?null:K(h.payload),_=new Set((l.data?.commands??[]).map(e=>e.role)),v=async t=>{let n=g?.buttons.find(e=>e.id===t)?.role;if(!(n===void 0||!_.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(b,{open:!0,onOpenChange:e=>!e&&r(),children:t(j,{width:`md`,placement:`sheet-on-mobile`,scroll:`body`,children:[i(P,{children:i(x,{children:a(`remote.hero.title`,{name:n})})}),t(D,{className:`space-y-3`,children:[s.status===`error`?i(k,{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(G,{grid:g,label:a(`remote.hero.title`,{name:n}),boundRoles:_,onSelect:e=>void v(e),renderWidget:(t,n)=>i(J,{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 ie=l({});function ae({value:e,children:t}){return i(ie.Provider,{value:e,children:t})}c();var Z={"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`}},Q=e=>e===`off-while-running`?`deviceHero.model.confirmOff`:`deviceHero.model.confirm.${e}`;function oe(){let{t:e,i18n:t}=B(),r=t.language;return n(()=>{let t=t=>({title:e(`${Q(t)}.title`,Z[t].title),message:e(`${Q(t)}.message`,Z[t].message),confirm:e(`${Q(t)}.confirm`,Z[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 $(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=M();return a(()=>{r?.(!0)},[r]),i(`div`,{className:`flex justify-center`,children:i(O,{kind:t,deviceId:e,canActuate:n,orientation:s?`vertical`:`horizontal`,showName:o!==!1})})}function ce(e){let t=ee(e.deviceId);return t===`pending`?i(A,{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}=B(),p=oe(),[m,h]=o(c===!0),g=te(e),_=H(g.presence,g.list),v=r(()=>h(!0),[]);return t(d,{children:[i(C,{deviceId:e,canActuate:n,lang:N(f.language),labels:p,renderRemote:t=>i(X,{deviceId:e,deviceName:t}),fallback:a??null,showName:l!==!1,..._?{onOpenHistory:v}:{},...s===void 0?{}:{onDrawn:s}}),m?i(b,{open:!0,onOpenChange:e=>!e&&h(!1),children:t(j,{width:`xl`,scroll:`body`,children:[i(P,{children:i(x,{children:u(`deviceModule.history`,`History`)})}),i(D,{className:`mt-3`,children:i(y,{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:m,onClose:_,onNavigate:v,showName:y}){let b=$(c),x=n(()=>R.cloneInstance({lng:a}),[a]),S=n(()=>V(x.t.bind(x)),[x]),C=n(()=>({onOpenDevice:f,onOpenCamera:m,onClose:_,onNavigate:v}),[f,m,_,v]);return i(`div`,{className:r,"data-theme":r,"data-testid":`device-detail-module`,children:i(q,{i18n:x,children:i(p,{t:S,children:i(g,{client:t,children:i(w.Provider,{client:t,queryClient:b,children:i(u,{client:b,children:i(h,{children:i(ae,{value:C,children:i(ce,{deviceId:e,canActuate:o,fallback:l,onDrawn:d,defaultHistoryOpen:s,showName:y})})})})})})})})})}export{X as n,ue as t};
|
package/dist/assets/{device-integration-icon-dOu9Eloe.js → device-integration-icon-CzQF4KNa.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{W as t}from"./index-
|
|
1
|
+
import{S as e}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{W as t}from"./index-DKKQtgP2.js";function n(n,r){switch(r.kind){case`resolved`:return e(t,{type:r.integration.addonId,size:`sm`});case`orphan`:return e(t,{type:n.addonId,size:`sm`});case`unknown`:case`unlinked`:return null}}export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./src-CvlhNDJc.js";
|