@camstack/addon-admin-ui 1.2.727 → 1.2.728

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 (110) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/assets/{AccessSection-wSFaqyKS.js → AccessSection-fW6dmRnn.js} +1 -1
  3. package/dist/assets/Addons-CVWHgqG3.js +5 -0
  4. package/dist/assets/{AdminPage-LgScsiWj.js → AdminPage-fevCJmVh.js} +1 -1
  5. package/dist/assets/{AdminSectionedPage-Cx1I8W-T.js → AdminSectionedPage-D4DeupV0.js} +1 -1
  6. package/dist/assets/AiProfiles-r6CPaBVS.js +3 -0
  7. package/dist/assets/Archive-Cr4NQu4m.js +1 -0
  8. package/dist/assets/{BootstrapSettingsForm-DSKLOpRA.js → BootstrapSettingsForm-X-tZwGIg.js} +1 -1
  9. package/dist/assets/Build-DOIIWG1k.js +51 -0
  10. package/dist/assets/{Calendars-DMWhQakP.js → Calendars-CPOSocza.js} +1 -1
  11. package/dist/assets/Cluster-B60LJAof.js +1 -0
  12. package/dist/assets/CompositionBlockEditor-DPKbpSuE.js +2 -0
  13. package/dist/assets/{CompositionEditorPage-BqI1uHbZ.js → CompositionEditorPage-DqUx1Svq.js} +1 -1
  14. package/dist/assets/{Data-BofM8rpS.js → Data-Ba0hIx9z.js} +2 -2
  15. package/dist/assets/DeviceDetail-B7Zg3T4I.js +1 -0
  16. package/dist/assets/{Devices-xFP7Pnyh.js → Devices-CMZ7LCj5.js} +1 -1
  17. package/dist/assets/{EmbedDevicePage-CBgMZcYT.js → EmbedDevicePage-BYQacUxi.js} +1 -1
  18. package/dist/assets/{EmbedPlayerPage-BDWglQam.js → EmbedPlayerPage-DrdAbrri.js} +1 -1
  19. package/dist/assets/History-C9CXoWTK.js +1 -0
  20. package/dist/assets/Identity-iCopusSn.js +1 -0
  21. package/dist/assets/{InstancesTable-8sjRWeOv.js → InstancesTable-BcyxK5Cl.js} +1 -1
  22. package/dist/assets/IntegrationDetail-DRiFFHo4.js +1 -0
  23. package/dist/assets/{Integrations-BSoGHsDK.js → Integrations-DZKq4p7U.js} +1 -1
  24. package/dist/assets/{Integrations-BH-Sv4Mc.js → Integrations-DxstFlUA.js} +2 -2
  25. package/dist/assets/Library-Bz__2eFv.js +1 -0
  26. package/dist/assets/Locations-BTUB79la.js +3 -0
  27. package/dist/assets/Logs-DutaKF3j.js +1 -0
  28. package/dist/assets/{MaskShapeCanvas-DBtNWuSR.js → MaskShapeCanvas-BswXb6mq.js} +1 -1
  29. package/dist/assets/{MotionZonesSettings-Dw6l_P6h.js → MotionZonesSettings-D1D0t4y_.js} +1 -1
  30. package/dist/assets/{MyAccess-QO1xS7ju.js → MyAccess-B-j3XJth.js} +1 -1
  31. package/dist/assets/{Network-U7WpoWbE.js → Network-BcqiB4l2.js} +1 -1
  32. package/dist/assets/{NewExportModal-kUxB58Tr.js → NewExportModal-DPJu2Qsj.js} +1 -1
  33. package/dist/assets/{NodeAddonsSettingsPanel-CKYvBBXN.js → NodeAddonsSettingsPanel-DLhrPwrf.js} +1 -1
  34. package/dist/assets/Notifications-B-PXWcN0.js +1 -0
  35. package/dist/assets/{Pipeline-CdsdqxA2.js → Pipeline-PN2eMlBG.js} +1 -1
  36. package/dist/assets/{PrivacyMaskSettings-BNIQYYeH.js → PrivacyMaskSettings-CWotYr2C.js} +1 -1
  37. package/dist/assets/{SceneMonitorEditor-hDPVfhQo.js → SceneMonitorEditor-COuzdEY3.js} +1 -1
  38. package/dist/assets/SessionsList-DQWVLdQv.js +2 -0
  39. package/dist/assets/{Showroom-DeZA6KeF.js → Showroom-DI-zhGj-.js} +1 -1
  40. package/dist/assets/{StorageLocationsTable-CshKJzd9.js → StorageLocationsTable-DlOZCMRY.js} +1 -1
  41. package/dist/assets/System-187qYqYk.js +2 -0
  42. package/dist/assets/TemplateEditorDialog-BcMLkpLg.js +1 -0
  43. package/dist/assets/{Terminal-DfvAO2c4.js → Terminal--MG5XN8r.js} +4 -4
  44. package/dist/assets/{TrainingProviders-XsSj8iER.js → TrainingProviders-DYtuyaUc.js} +1 -1
  45. package/dist/assets/{Viewer-DEhNUn4i.js → Viewer-BFqv2KTn.js} +1 -1
  46. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-1GIjM1Xe.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-KMcCSeat.js} +1 -1
  47. package/dist/assets/{ai-page.helpers-BgaYtFZQ.js → ai-page.helpers-CwG2lNNM.js} +1 -1
  48. package/dist/assets/{assignment-candidates-wqee9Qzc.js → assignment-candidates-CdokBQeA.js} +1 -1
  49. package/dist/assets/{authed-media-BWbcdqJS.js → authed-media-DHva9b0l.js} +1 -1
  50. package/dist/assets/{board-model-B6IJyB8x.js → board-model-BsNkJMbQ.js} +1 -1
  51. package/dist/assets/{camera-block-model-5F2zk2Pj.js → camera-block-model-D5vbEewS.js} +1 -1
  52. package/dist/assets/{device-integration-icon-DqC6lcvp.js → device-integration-icon-lMKyNXQ9.js} +1 -1
  53. package/dist/assets/device-picker-model-BqDPaEks.js +1 -0
  54. package/dist/assets/dist-CBwl2AV3.js +1169 -0
  55. package/dist/assets/{dist-BhGq3bv6.js → dist-EjwEggLH.js} +1 -1
  56. package/dist/assets/{format-SD0TDX1L.js → format-CLPihZvL.js} +1 -1
  57. package/dist/assets/{hostInit-CBhnwuZa.js → hostInit-MQZuDlvV.js} +1 -1
  58. package/dist/assets/i18n-CtibbGCl.js +1 -0
  59. package/dist/assets/{icons-BHp7muWn.js → icons-ChXNiO64.js} +1 -1
  60. package/dist/assets/index-BeyJSXZT.js +7 -0
  61. package/dist/assets/index-DLoh28hg.css +2 -0
  62. package/dist/assets/{linked-devices-model-BuNSmVjC.js → linked-devices-model--I1EiM0r.js} +1 -1
  63. package/dist/assets/{mf-entry-bootstrap-0-e2dee46e.js → mf-entry-bootstrap-0-911e33b5.js} +2 -2
  64. package/dist/assets/mount-BqDPaEks.js +1 -0
  65. package/dist/assets/{notification-rule-status-B8kAY-MG.js → notification-rule-status-hb9jdt7P.js} +1 -1
  66. package/dist/assets/{player-overlays-KBeT29r4.js → player-overlays-Cp7Gj5VT.js} +1 -1
  67. package/dist/assets/remoteEntry-BM46eEaY.js +1 -0
  68. package/dist/assets/src-DXJ8BQFl.js +279 -0
  69. package/dist/assets/src-uL_wvvFJ.js +1169 -0
  70. package/dist/assets/{sso-popup-DKnk_YJe.js → sso-popup-CC_ZFBGO.js} +1 -1
  71. package/dist/assets/{step-inspector-model-Bnhm_mgp.js → step-inspector-model-DwK8gatr.js} +1 -1
  72. package/dist/assets/{use-scenes-feed-CgzVs07Q.js → use-scenes-feed-D7xlQUFj.js} +1 -1
  73. package/dist/assets/{useAdminDeviceRemoval-BxrEFLk_.js → useAdminDeviceRemoval-JSKfbRFC.js} +1 -1
  74. package/dist/assets/useDevice-CbDkHbCR.js +1 -0
  75. package/dist/assets/useEventInvalidation-BqDPaEks.js +1 -0
  76. package/dist/assets/useFaultTypeOptions-C0o6UICy.js +1 -0
  77. package/dist/assets/{useNodeUrlSelection-BumQLvYZ.js → useNodeUrlSelection-BCTRzpjJ.js} +1 -1
  78. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-DRAJCQxk.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-DRFyxqEq.js} +2 -2
  79. package/dist/index.html +10 -10
  80. package/dist/server/addon.js +1 -1
  81. package/package.json +2 -2
  82. package/dist/assets/Addons-bkr3ufUt.js +0 -5
  83. package/dist/assets/AiProfiles-DUsHvpUb.js +0 -3
  84. package/dist/assets/Archive-CFG6lM3C.js +0 -1
  85. package/dist/assets/Build-CcvdrbK9.js +0 -51
  86. package/dist/assets/Cluster-B2HBj67T.js +0 -1
  87. package/dist/assets/CompositionBlockEditor-BNTAxLhN.js +0 -2
  88. package/dist/assets/DeviceDetail-BGT5UzeM.js +0 -1
  89. package/dist/assets/History-C7h-Hba7.js +0 -1
  90. package/dist/assets/Identity-DrPBF_DD.js +0 -1
  91. package/dist/assets/IntegrationDetail-BGhbgQrH.js +0 -1
  92. package/dist/assets/Library-eOct7xul.js +0 -1
  93. package/dist/assets/Locations-HKA-wPxn.js +0 -3
  94. package/dist/assets/Logs-B_PJFZkB.js +0 -1
  95. package/dist/assets/Notifications-DChGPTCJ.js +0 -1
  96. package/dist/assets/SessionsList-CayNWY3N.js +0 -2
  97. package/dist/assets/System-CJnmLipz.js +0 -2
  98. package/dist/assets/TemplateEditorDialog-CMfo-woj.js +0 -1
  99. package/dist/assets/device-picker-model-OGGUkOts.js +0 -1
  100. package/dist/assets/dist-C6IgE-Fj.js +0 -1234
  101. package/dist/assets/i18n-CkHf1ol7.js +0 -1
  102. package/dist/assets/index-BVScunnp.css +0 -2
  103. package/dist/assets/index-PErHbELp.js +0 -7
  104. package/dist/assets/mount-OGGUkOts.js +0 -1
  105. package/dist/assets/remoteEntry-DVELx4S7.js +0 -1
  106. package/dist/assets/src-BL8KgH_H.js +0 -1234
  107. package/dist/assets/src-FszuUAOe.js +0 -279
  108. package/dist/assets/useDevice-4fOtWZjl.js +0 -1
  109. package/dist/assets/useEventInvalidation-OGGUkOts.js +0 -1
  110. package/dist/assets/useFaultTypeOptions-DskkOhna.js +0 -1
@@ -1,3 +0,0 @@
1
- import{C as e,K as t,S as n,V as r,Y as i,et as a,o,x as s}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{Et as c,Fr as l,O as u,Ra as d,V as f,Wr as p,Xn as m,ar as h,ct as g,dr as _,ft as v,k as y,nn as b,sa as x,to as S,z as C}from"./player-overlays-KBeT29r4.js";import{Ac as w,qn as T,tc as E}from"./src-BL8KgH_H.js";import{t as D}from"./chevron-down-CBb-F8DT.js";import{$i as O,$p as k,Dc as A,Ds as j,Ec as M,Es as N,Fp as P,Ga as ee,Gr as F,Ha as I,Ia as L,M as R,Mc as te,Np as z,Oa as ne,Os as re,Pp as B,Si as V,Tc as ie,Tp as H,Ua as U,Xi as ae,Ya as oe,Yi as W,Zi as G,bc as se,dc as ce,ea as le,ic as ue,jn as de,jr as fe,js as pe,kr as me,lc as he,pc as ge,ta as _e,uc as ve,va as K,vc as ye,wc as be,xc as xe,xi as Se,yc as Ce}from"./src-FszuUAOe.js";import{t as q}from"./i18n-CkHf1ol7.js";import{t as J}from"./useTranslation-BJr-n0es.js";import{Ci as Y,Ei as we,Oi as Te,Q as X}from"./index-PErHbELp.js";import{t as Ee}from"./AdminSectionedPage-Cx1I8W-T.js";import{c as De,n as Oe,r as ke}from"./linked-devices-model-BuNSmVjC.js";a();function Z(e){return{id:e.id,name:e.name,type:e.type,stableId:e.stableId??``,parentDeviceId:e.parentDeviceId,location:e.location,...e.role!==void 0&&e.role!==null?{role:e.role}:{},...e.primaryChildEntityId!==void 0&&e.primaryChildEntityId!==null?{primaryChildEntityId:e.primaryChildEntityId}:{},...e.primaryChildPreference!==void 0&&e.primaryChildPreference!==null?{primaryChildPreference:e.primaryChildPreference}:{}}}function Q(e){if(e==null)return null;let t=e.trim();return t.length===0?null:t.toLowerCase()}function Ae(e,t){let n=Q(t);return n===null?[]:e.filter(e=>Q(e.location)===n)}function je(e,t){let n=Ae(e,t),r=new Set(n.map(e=>e.id));return n.filter(e=>e.parentDeviceId===null||!r.has(e.parentDeviceId))}function Me(e,t){let n=Q(e.location);return n===null||new Set(t.map(e=>Q(e))).has(n)?null:e.location?.trim()??null}function Ne(e,t){let n=Q(e.location);return n!==null&&t.has(n)}function Pe(e,t){let n=new Set(t.map(e=>Q(e))),r=new Set(e.filter(e=>Ne(e,n)).map(e=>e.id));return e.filter(e=>!(Ne(e,n)||e.parentDeviceId!==null&&r.has(e.parentDeviceId)))}function Fe(e,t){return Pe(e,t).filter(e=>e.parentDeviceId===null)}function Ie(e,t){let n=new Map;for(let t of e){if(t.parentDeviceId===null)continue;let e=n.get(t.parentDeviceId);e?e.push(t):n.set(t.parentDeviceId,[t])}let r=[],i=new Set([t]),a=[t];for(;a.length>0;){let e=[];for(let t of a)for(let a of n.get(t)??[])i.has(a.id)||(i.add(a.id),r.push(a),e.push(a.id));a=e}return r}function Le(e,t){return Ie(e,t).length}function Re(e,t){return e.filter(e=>!e.isCamera&&e.parentDeviceId===t)}function ze(e,t){return t.map(t=>({name:t,members:je(e,t)}))}function $({type:e,role:t,className:r}){return n(k(e,t),{"aria-hidden":`true`,className:r??`h-3.5 w-3.5 shrink-0 text-foreground-subtle`})}function Be({device:t}){let r=U(Z(t),`compact`);if(t.online)return n(`span`,{"aria-hidden":`true`,className:`inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-success`,"data-status":`online`});let i=q.t(`common.offline`);return e(`span`,{className:`flex items-center gap-1.5`,children:[n(`span`,{className:`inline-block h-1.5 w-1.5 shrink-0 rounded-full border border-foreground-subtle`,"data-status":`offline`,role:`img`,"aria-label":q.t(`locations.deviceGlyphs.aria`,{name:r,state:i}),title:i}),n(`span`,{className:`text-xs text-foreground-muted`,children:i})]})}function Ve({open:t,title:a,items:o,listState:s,lockedIds:c,lockedNote:l,suggestions:u=null,busy:d=!1,onConfirm:f,onClose:p}){let{t:m}=J(),[h,g]=i([]);r(()=>{t||g([])},[t]);let _=new Map(o.map(e=>[e.id,e.name])),v=(u?.ids??[]).filter(e=>_.has(e)&&!c.includes(e)),y=e=>g(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]);return n(W,{open:t,onOpenChange:e=>e?void 0:p(),children:e(G,{width:`lg`,placement:`sheet-on-mobile`,scroll:`body`,"aria-label":a,children:[n(le,{children:n(_e,{children:a})}),e(ae,{className:`flex flex-col gap-3 p-2 sm:p-4`,children:[t&&u!==null&&v.length>0&&e(`section`,{"aria-label":u.heading,className:`flex flex-col gap-1`,children:[n(`h3`,{className:`text-[10px] sm:text-[11px] font-semibold text-foreground uppercase tracking-wider`,children:u.heading}),n(`div`,{className:`flex flex-wrap gap-1`,children:v.map(e=>n(`button`,{type:`button`,"aria-pressed":h.includes(e),className:`inline-flex items-center gap-1 rounded-full border px-1.5 py-0.5 text-[10px] font-medium transition-colors ${h.includes(e)?`border-primary/50 bg-primary/15 text-primary`:`border-border bg-surface text-foreground-subtle hover:bg-surface-hover`}`,onClick:()=>y(e),children:_.get(e)},e))})]}),t&&n(R,{devices:o,listState:s,value:h,onChange:e=>g(e),noun:`device`,emptyLabel:m(`locations.addDialog.nonePicked`),showAll:!0,lockedIds:c,lockedNote:l,testId:`quick-add-picker`})]}),e(O,{children:[n(H,{variant:`ghost`,onClick:p,children:m(`locations.addDialog.cancel`)}),n(H,{disabled:h.length===0||d,onClick:()=>f(h),children:m(`locations.addDialog.confirm`,{count:h.length})})]})]})})}a();function He({room:e,cameras:r,fleet:i}){let{t:a}=J(),o=t(()=>new Map(i.map(e=>[e.id,e])),[i]);return e===null?n(`p`,{className:`text-xs text-foreground-subtle`,children:a(`locations.links.noRoom`)}):n(`div`,{className:`flex flex-col gap-3`,"data-testid":`camera-links-section`,children:r.length===0?n(`p`,{className:`text-xs text-foreground-subtle`,"data-testid":`camera-links-empty`,children:a(`locations.links.noCameras`,{room:e})}):r.map(e=>n(We,{camera:e,byId:o},e.id))})}function Ue(e){return{id:e.deviceId,name:e.name,type:e.type,location:e.location}}function We({camera:t,byId:r}){let{t:a}=J(),s=U(Z(t),`full`),c=o(),l=we(),[d,f]=i(!1),[m,h]=i(null),g=j({deviceId:t.id}),_=ke({status:g.status,data:g.data,error:g.error===null||g.error===void 0?null:g.error}),v=re(),b=_.kind===`present`?_:null,x=N({deviceId:t.id,slotRef:b?.slot.slotRef??``},{enabled:d&&b!==null}),S=b===null?[]:Oe(b.slot,b.value),C=S.map(e=>e.deviceId),w=(x.data?.candidates??[]).map(Ue),T=new Set(w.map(e=>e.id)),E=C.filter(e=>!T.has(e)).map(e=>{let t=r.get(e);return{id:e,name:t?.name??`#${String(e)}`,...t===void 0?{}:{type:t.type,location:t.location}}}),D=[...w,...E],O=(x.data?.candidates??[]).filter(e=>e.suggested).map(e=>e.deviceId),k=async e=>{if(b!==null){h(null);try{await v.mutateAsync({deviceId:t.id,slotRef:b.slot.slotRef,value:De(b.value,e)}),await g.refetch(),await c.invalidateQueries({queryKey:[[`deviceManager`]]}),f(!1)}catch(e){h(e instanceof Error?e.message:String(e))}}},A=[{key:`device`,header:a(`locations.columns.device`),notSortableReason:a(`locations.columns.noSort`),render:t=>{let i=r.get(t.deviceId),o=t.name??i?.name??`#${String(t.deviceId)}`;return e(`span`,{className:`flex items-center gap-1.5`,children:[i!==void 0&&n($,{type:i.type,role:i.role}),n(Y,{to:`/devices/${String(t.deviceId)}`,className:`min-w-0 truncate text-xs text-foreground hover:underline`,children:i===void 0?o:n(K,{device:Z(i),form:`compact`})}),t.implied&&n(`span`,{className:`text-[10px] text-foreground-subtle`,children:a(`locations.links.implied`)})]})}},{key:`type`,header:a(`locations.columns.type`),notSortableReason:a(`locations.columns.noSort`),render:e=>n(`span`,{className:`text-xs text-foreground-muted`,children:r.get(e.deviceId)?.type??`—`})},{key:`status`,header:a(`locations.columns.status`),notSortableReason:a(`locations.columns.noSort`),render:e=>{let t=r.get(e.deviceId);return t===void 0?n(`span`,{className:`text-xs text-foreground-subtle`,children:`—`}):n(Be,{device:t})}}];return e(`section`,{className:`min-w-0 ${u}`,"data-testid":`camera-links-${String(t.id)}`,children:[e(`header`,{className:`${y} flex min-h-9 items-center gap-1.5`,children:[n($,{type:t.type,role:t.role}),n(`h2`,{className:`min-w-0 flex-1 truncate text-sm font-semibold text-foreground`,children:n(K,{device:Z(t),form:`full`})}),e(H,{variant:`ghost`,size:`sm`,onClick:()=>l(X(t.id)),children:[n(p,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),a(`locations.links.edit`)]}),n(H,{variant:`outline`,size:`sm`,disabled:b===null,onClick:()=>f(!0),"aria-label":a(`locations.links.addNamed`,{camera:s}),children:a(`locations.room.add`)})]}),_.kind===`pending`&&n(`p`,{role:`status`,className:`px-3 py-3 text-xs text-foreground-subtle sm:px-4`,children:a(`locations.links.loading`)}),_.kind===`unknown`&&n(`p`,{role:`alert`,className:`px-3 py-3 text-xs text-warning sm:px-4`,children:a(`locations.links.unreadable`,{reason:_.reason})}),_.kind===`absent`&&n(`p`,{className:`px-3 py-3 text-xs text-foreground-subtle sm:px-4`,children:a(`locations.links.unsupported`)}),m!==null&&n(`p`,{role:`alert`,className:`px-3 pt-2 text-xs text-danger break-words sm:px-4`,children:m}),b!==null&&(S.length===0?n(`p`,{className:`px-3 py-3 text-xs text-foreground-subtle sm:px-4`,children:a(`locations.links.none`)}):n(F,{columns:A,rows:S,rowKey:e=>String(e.deviceId),bordered:!1,minWidthPx:360})),n(Ve,{open:d,title:a(`locations.links.pickTitle`,{camera:s}),items:D,listState:x.status===`error`?`failed`:x.data===void 0?`pending`:`answered`,lockedIds:C,lockedNote:a(`locations.links.alreadyLinked`),suggestions:t.location===null?null:{heading:a(`locations.links.suggested`,{room:t.location}),ids:O},busy:v.isPending,onConfirm:e=>void k(e),onClose:()=>f(!1)})]})}a();function Ge({name:t,description:a,busy:o,onSave:s}){let{t:c}=J(),[l,u]=i(a??``);return r(()=>{u(a??``)},[a]),e(`div`,{className:`border-t border-border px-3 py-2 sm:px-4`,children:[n(V,{htmlFor:`location-description-${t}`,className:`block`,children:c(`locations.locationDescriptionField.whatIsThere`,`What is there`)}),n(Se,{id:`location-description-${t}`,value:l,onChange:e=>u(e.target.value),onBlur:()=>{let e=l.trim();e!==(a??``)&&s(e.length===0?null:e)},disabled:o,rows:2,maxLength:400,placeholder:c(`locations.locationDescriptionField.surfacesBoundariesWhatIsNormally`,`Surfaces, boundaries, what is normally parked or stored here.`),className:`mt-1 w-full resize-y rounded-md border border-border bg-surface px-2.5 py-1.5 text-xs text-foreground placeholder:text-foreground-subtle focus:outline-none focus:ring-1 focus:ring-inset focus:ring-primary disabled:cursor-not-allowed disabled:opacity-50`}),n(`p`,{className:`mt-1 ${C}`,children:c(`locations.locationDescriptionField.givenToTheAiWith`,`Given to the AI with the pictures, so it knows what it is looking at. Describe the PLACE, not what happens in it — events change, the ground does not.`)})]})}function Ke(e,t){let n=e?.find(e=>e.locationKey===t);return n===void 0||n.description.length===0?null:n.description}var qe=` none`;function Je({name:t,zones:r,zoneKey:i,busy:a,onChange:o}){let{t:s}=J();if(r.length===0)return null;let c=[{value:qe,label:s(`locations.locationZoneField.none`,`— none —`)},...r.map(e=>({value:e.zoneKey,label:e.label}))];return e(`div`,{className:`flex items-center gap-2 border-t border-border px-3 py-1.5 sm:px-4 sm:py-2`,children:[n(V,{htmlFor:`location-zone-${t}`,children:s(`locations.locationZoneField.zone`,`Zone`)}),n(v,{id:`location-zone-${t}`,value:i??qe,disabled:a,onChange:e=>{let t=e.target.value;if(t===qe){o(null);return}let n=r.find(e=>e.zoneKey===t);n!==void 0&&o(n.label)},options:c})]})}function Ye(e,t){return e.find(e=>e.locationKeys.includes(t))?.zoneKey??null}function Xe({name:e,icon:t,busy:r,onPick:i}){return n(P,{value:t,onPick:i,fallbackGlyph:l,clearGlyph:d,labels:{trigger:`Change the icon of ${e}`,panel:`Icon for ${e}`,searchPlaceholder:`Search icons`,clear:`No icon`,noMatches:`No icon matches that`},disabled:r})}function Ze(e,t){let n=e?.find(e=>e.locationKey===t);return n===void 0?null:w(n.icon)??`map-pin`}function Qe(e){return`${e.kind}:${String(e.device.id)}`}function $e(e,t,n){return e.flatMap(e=>{let r=Re(t,e.id),i=n.has(e.id),a={kind:`member`,device:e,accessories:r,open:i};return!i||r.length===0?[a]:[a,...r.map(t=>({kind:`accessory`,device:t,parent:e}))]})}a();function et({name:r,members:a,devices:o,busy:l,icon:d,description:f,onRename:p,onDelete:h,onRebuildLinks:g,onAddDevices:v,onPickIcon:x,onSaveDescription:S,zones:C,zoneKey:w,onChangeZone:T}){let{t:E}=J(),[D,O]=i(!1),[k,A]=i(r),j=me(a,t(()=>({searchText:e=>[e.name,...Re(o,e.id).map(e=>e.name)],facetValue:e=>e.type}),[o])),[M,N]=i(()=>new Set),P=e=>N(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),ee=t(()=>$e(j.rows,o,M),[j.rows,o,M]),I=[{key:`name`,header:E(`locations.columns.device`),notSortableReason:E(`locations.columns.noSort`),render:e=>e.kind===`member`?n(tt,{row:e,onToggle:()=>P(e.device.id)}):n(nt,{row:e})},{key:`type`,header:E(`locations.columns.type`),notSortableReason:E(`locations.columns.noSort`),render:e=>n(`span`,{className:`text-xs text-foreground-muted`,children:e.device.type})},{key:`status`,header:E(`locations.columns.status`),notSortableReason:E(`locations.columns.noSort`),render:e=>n(Be,{device:e.device})}],L=()=>{A(r),O(!1)},R=async()=>{let e=k.trim();if(e.length===0||e===r){L();return}await p(e),O(!1)},te=[{id:`rename`,label:E(`locations.locationCard.rename`,`Rename`),icon:_,disabled:l,onClick:()=>{A(r),O(!0)}},{id:`rebuild-links`,label:E(`locations.locationCard.rebuildLinkedDevices`,`Rebuild linked devices`),icon:m,separatorBefore:!0,disabled:l,onClick:()=>void g()},{id:`delete`,label:E(`common.delete`,`Delete`),icon:b,danger:!0,separatorBefore:!0,disabled:l,onClick:()=>void h()}];return e(`section`,{className:`min-w-0 ${u}`,children:[e(`header`,{className:`${y} flex min-h-9 items-center gap-1.5`,children:[n(Xe,{name:r,icon:d,busy:l,onPick:x}),D?e(s,{children:[n(z,{value:k,onChange:e=>A(e.target.value),onKeyDown:e=>{e.key===`Enter`&&R(),e.key===`Escape`&&L()},"aria-label":E(`locations.locationCard.rename2`,`Rename {{name}}`,{name:r}),className:`min-w-0 flex-1`,autoFocus:!0}),n(H,{type:`button`,size:`sm`,onClick:()=>void R(),children:E(`common.save`,`Save`)}),n(B,{type:`button`,variant:`ghost`,icon:c,onClick:L,"aria-label":E(`locations.locationCard.cancelRename`,`Cancel rename`)})]}):e(s,{children:[n(`h2`,{className:`min-w-0 flex-1 truncate text-sm font-semibold text-foreground`,children:r}),n(H,{type:`button`,variant:`outline`,size:`sm`,disabled:l,onClick:v,"aria-label":E(`locations.room.addTo`,{room:r}),children:E(`locations.room.add`)}),n(de,{items:te,title:E(`locations.locationCard.actionsFor`,`Actions for {{name}}`,{name:r}),triggerClassName:`p-1`})]})]}),n(Je,{name:r,zones:C,zoneKey:w,busy:l,onChange:T}),n(Ge,{name:r,description:f,busy:l,onSave:S}),a.length>0&&n(`div`,{className:`border-b border-border px-3 py-1.5 sm:px-4 sm:py-2`,children:n(fe,{state:j.state,facets:j.facets,labels:{searchPlaceholder:E(`locations.filter.searchPlaceholder`),searchLabel:E(`locations.room.searchLabel`,{room:r}),facetsLabel:E(`locations.filter.typesLabel`),clearLabel:E(`locations.filter.clear`)},onSearch:j.setSearch,onToggleFacet:j.toggleFacet,onClear:j.clear})}),a.length===0?n(`p`,{className:`px-3 py-3 text-xs text-foreground-subtle sm:px-4`,children:E(`locations.locationCard.nothingHereYetAssignA`,`Nothing here yet — assign a device from the table below.`)}):n(F,{columns:I,rows:ee,rowKey:Qe,bordered:!1,minWidthPx:360,emptyMessage:E(`locations.filter.noMatch`)})]})}function tt({row:t,onToggle:r}){let{t:i}=J(),{device:a,accessories:o,open:s}=t,c=U(Z(a),`compact`),l=s?D:x;return e(`span`,{className:`flex items-center gap-1.5`,children:[o.length>0?e(H,{type:`button`,variant:`ghost`,onClick:r,"aria-expanded":s,"aria-label":i(s?`locations.locationCard.collapseAccessories`:`locations.locationCard.expandAccessories`,{count:o.length,name:c}),className:`h-auto shrink-0 gap-0.5 p-0.5 text-foreground-subtle hover:text-foreground`,children:[n(l,{className:`h-3 w-3`}),n(`span`,{className:`text-[10px] tabular-nums`,children:o.length})]}):n(`span`,{"aria-hidden":`true`,className:`w-[1.35rem] shrink-0`}),n($,{type:a.type,role:a.role}),n(Y,{to:`/devices/${String(a.id)}`,className:`min-w-0 truncate text-xs text-foreground hover:underline`,children:n(K,{device:Z(a),form:`compact`})})]})}function nt({row:t}){let{device:r,parent:i}=t;return e(`span`,{className:`flex items-center gap-1.5 pl-6`,children:[n(`span`,{"aria-hidden":`true`,className:`text-[10px] text-foreground-subtle`,children:`└`}),n($,{type:r.type,role:r.role,className:`h-3 w-3 shrink-0 text-foreground-subtle`}),n(Y,{to:`/devices/${String(r.id)}`,className:`min-w-0 truncate text-xs text-foreground-muted hover:underline`,children:n(K,{device:Z(r),form:`nested`,parent:Z(i)})})]})}a();function rt({zones:e,busy:t,onRename:r,onDelete:a,onPickIcon:o}){let{t:s}=J(),[c,l]=i(null),[u,d]=i(``),f=async e=>{let t=u.trim();l(null),!(t.length===0||t===e)&&await r(e,t)};return n(F,{columns:[{key:`icon`,header:s(`locations.siteZonesPanel.icon`,`Icon`),width:`w-12`,notSortableReason:`An icon has no order`,render:e=>n(Xe,{name:e.label,icon:e.icon,busy:t,onPick:t=>o(e.label,t)})},{key:`name`,header:s(`locations.siteZonesPanel.zone`,`Zone`),sortValue:e=>e.label.toLowerCase(),render:e=>c===e.label?n(z,{value:u,onChange:e=>d(e.target.value),onKeyDown:t=>{t.key===`Enter`&&f(e.label),t.key===`Escape`&&l(null)},onBlur:()=>void f(e.label),"aria-label":s(`locations.siteZonesPanel.rename`,`Rename {{label}}`,{label:e.label}),autoFocus:!0}):n(H,{type:`button`,variant:`ghost`,size:`sm`,className:`px-0`,onClick:()=>{d(e.label),l(e.label)},disabled:t,title:s(`locations.siteZonesPanel.renameTheZone`,`Rename the zone`),children:e.label})},{key:`rooms`,header:s(`locations.siteZonesPanel.rooms`,`Rooms`),align:`right`,sortValue:e=>e.locationKeys.length,render:e=>n(`span`,{className:`tabular-nums text-foreground-subtle`,children:e.locationKeys.length===0?s(`common.empty`):s(`common.rooms`,{count:e.locationKeys.length})})},{key:`actions`,header:s(`locations.siteZonesPanel.actions`,`Actions`),align:`right`,notSortableReason:`Actions have no order`,render:e=>n(H,{type:`button`,variant:`ghost`,size:`sm`,onClick:()=>void a(e.label),disabled:t,"aria-label":s(`locations.siteZonesPanel.delete`,`Delete {{label}}`,{label:e.label}),title:s(`locations.siteZonesPanel.deleteTheZoneTheRooms`,`Delete the zone — the rooms in it are kept`),children:n(b,{className:`h-3.5 w-3.5`})})}],rows:e,rowKey:e=>e.zoneKey,emptyMessage:s(`locations.siteZonesPanel.noZonesYetAZone`,`No zones yet. A zone groups rooms — “Night zone” for the bedrooms — and shows up before them in the app’s camera filter.`)})}a();function it({busy:t,onCreate:r}){let{t:a}=J(),[o,s]=i(!1),[l,u]=i(``),d=()=>{u(``),s(!1)},f=async()=>{let e=l.trim();e.length!==0&&(await r(e),d())};return o?e(`form`,{className:`flex flex-wrap items-center gap-2`,onSubmit:e=>{e.preventDefault(),f()},children:[n(z,{value:l,onChange:e=>u(e.target.value),onKeyDown:e=>{e.key===`Escape`&&d()},placeholder:a(`locations.newLocationButton.frontDoorHallKitchen`,`Front door, Hall, Kitchen…`),"aria-label":a(`locations.newLocationButton.newLocationName`,`New location name`),className:`min-w-[12rem] flex-1`,autoFocus:!0}),e(H,{size:`sm`,type:`submit`,disabled:l.trim().length===0||t,children:[n(h,{className:`h-3.5 w-3.5`}),a(`common.add`,`Add`)]}),n(H,{size:`sm`,variant:`ghost`,type:`button`,onClick:d,"aria-label":a(`locations.newLocationButton.cancelNewLocation`,`Cancel new location`),children:n(c,{className:`h-3.5 w-3.5`})})]}):e(H,{size:`sm`,type:`button`,onClick:()=>s(!0),"data-testid":`new-location-button`,children:[n(h,{className:`h-3.5 w-3.5`}),a(`locations.newLocationButton.newLocation`,`New location`)]})}a();function at({busy:t,onCreate:r}){let{t:a}=J(),[o,s]=i(!1),[l,u]=i(``),d=()=>{u(``),s(!1)},f=async()=>{let e=l.trim();e.length!==0&&(await r(e),d())};return o?e(`form`,{className:`flex flex-wrap items-center gap-2`,onSubmit:e=>{e.preventDefault(),f()},children:[n(z,{value:l,onChange:e=>u(e.target.value),onKeyDown:e=>{e.key===`Escape`&&d()},placeholder:a(`locations.newZoneButton.zonaGiornoZonaNotte`,`Zona giorno, Night zone…`),"aria-label":a(`locations.newZoneButton.newZoneName`,`New zone name`),className:`min-w-[12rem] flex-1`,autoFocus:!0}),e(H,{size:`sm`,type:`submit`,disabled:l.trim().length===0||t,children:[n(h,{className:`h-3.5 w-3.5`}),a(`common.add`,`Add`)]}),n(H,{size:`sm`,variant:`ghost`,type:`button`,onClick:d,"aria-label":a(`locations.newZoneButton.cancelNewZone`,`Cancel new zone`),children:n(c,{className:`h-3.5 w-3.5`})})]}):e(H,{size:`sm`,type:`button`,onClick:()=>s(!0),"data-testid":`new-zone-button`,children:[n(h,{className:`h-3.5 w-3.5`}),a(`locations.newZoneButton.newZone`,`New zone`)]})}a();function ot(e,t,n,r){let i=e.map(e=>({value:e.name,label:`${e.name} · ${String(e.count)}`}));return t===void 0?i:[...i,{value:n,label:`${r} · ${String(t)}`}]}function st({rooms:e,unassignedCount:r,value:i,unassignedValue:a,onChange:o}){let{t:s}=J(),c=t(()=>ot(e,r,a,s(`locations.roomPicker.unassigned`)),[e,r,a,s]);return n(`div`,{className:`max-w-sm`,"data-testid":`room-select`,children:n(ne,{mode:`single`,singleDisplay:`field`,label:s(`locations.roomPicker.label`),placeholder:s(`locations.roomPicker.placeholder`),options:c,value:i,onChange:o,searchable:!0,testId:`room-select-control`,optionTestIdPrefix:`room-option`})})}a();var ct={searchText:e=>[e.name],facetValue:e=>e.type};function lt({rows:r,fleet:a,locations:o,busy:s,emptyMessage:c,onAssign:l}){let{t:u}=J(),d=oe(),p=ee(),m=e=>d===null?e.name:I(Z(e),`compact`,d,p),[h,g]=i([]),[_,y]=i(``),b=me(r,ct),x=b.rows,w=t(()=>x.map(e=>e.id),[x]),T=t(()=>h.filter(e=>w.includes(e)),[h,w]),E=x.length>0&&T.length===x.length,D=t(()=>{let e=new Map;for(let t of r)e.set(t.id,Le(a,t.id));return e},[r,a]),O=T.reduce((e,t)=>e+(D.get(t)??0),0),k=e=>g(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),A=()=>g(E?[]:w),j=()=>{_.length===0||T.length===0||(l(T,_),g([]),y(``))},M=o.map(e=>({value:e,label:e})),N=[{key:`select`,width:`w-8`,headerRender:()=>n(S,{checked:E,onChange:A,"aria-label":E?u(`locations.unassignedTable.clearSelection`,`Clear selection`):u(`locations.unassignedTable.selectAllUnassignedDevices`,`Select all unassigned devices`)}),render:e=>n(S,{checked:T.includes(e.id),onChange:()=>k(e.id),"aria-label":u(`locations.unassignedTable.select`,`Select {{name}}`,{name:m(e)})})},{key:`name`,header:u(`locations.unassignedTable.device`,`Device`),sortValue:e=>e.name.toLowerCase(),render:t=>{let r=Me(t,o);return e(`span`,{className:`flex items-center gap-1.5`,children:[n($,{type:t.type,role:t.role}),n(Y,{to:`/devices/${String(t.id)}`,className:`truncate text-xs text-foreground hover:underline`,children:n(K,{device:Z(t),form:`compact`})}),r!==null&&n(L,{variant:`warning`,children:u(`locations.unassignedTable.unknownRoom`,{room:r})})]})}},{key:`type`,header:u(`locations.unassignedTable.type`,`Type`),sortValue:e=>e.type,render:e=>n(`span`,{className:`text-xs text-foreground-muted`,children:e.type})},{key:`status`,header:u(`locations.unassignedTable.status`,`Status`),sortValue:e=>+!!e.online,render:e=>n(Be,{device:e})},{key:`followers`,header:u(`locations.unassignedTable.accessoriesInTowCount`,`Accessories in tow`),align:`right`,sortValue:e=>D.get(e.id)??0,render:e=>n(`span`,{className:`tabular-nums text-xs text-foreground-muted`,children:D.get(e.id)??0})},{key:`assign`,header:u(`locations.unassignedTable.assignTo`,`Assign to`),align:`right`,notSortableReason:`This column is a control, not a value.`,render:e=>n(v,{"aria-label":u(`locations.unassignedTable.locationFor`,`Location for {{name}}`,{name:m(e)}),value:``,disabled:s||o.length===0,onChange:t=>{let n=t.target.value;n.length!==0&&l([e.id],n)},className:`max-w-[11rem]`,options:[{value:``,label:`—`},...M]})}];return e(`section`,{className:`space-y-2`,children:[e(`header`,{className:`flex flex-wrap items-baseline gap-2`,children:[n(`h2`,{className:f,children:u(`locations.unassignedTable.notInARoom`,`Not in a room`)}),n(`p`,{className:C,children:u(`locations.unassignedTable.topLevelDevicesOnlyAccessories`,`Top-level devices only — accessories move with their parent.`)})]}),r.length>0&&n(fe,{state:b.state,facets:b.facets,labels:{searchPlaceholder:u(`locations.filter.searchPlaceholder`),searchLabel:u(`locations.unassigned.searchLabel`),facetsLabel:u(`locations.filter.typesLabel`),clearLabel:u(`locations.filter.clear`)},onSearch:b.setSearch,onToggleFacet:b.toggleFacet,onClear:b.clear}),T.length>0&&e(`div`,{role:`group`,"aria-label":u(`locations.unassignedTable.bulkAssignment`,`Bulk assignment`),className:`flex flex-wrap items-center gap-2 rounded border border-primary/40 bg-primary/5 px-2 py-1.5`,children:[e(`span`,{className:`text-xs text-foreground`,children:[u(`locations.unassignedTable.selected`,{count:T.length}),O>0&&` · ${u(`locations.unassignedTable.accessoriesInTowCount`,{count:O})}`]}),n(v,{"aria-label":u(`locations.unassignedTable.assignSelectedDevicesTo`,`Assign selected devices to`),value:_,onChange:e=>y(e.target.value),className:`w-auto min-w-[10rem]`,options:[{value:``,label:u(`locations.unassignedTable.assignTo2`,`Assign to…`)},...M]}),n(H,{type:`button`,size:`sm`,onClick:j,disabled:s||_.length===0,children:u(`locations.unassignedTable.assign`,`Assign`)}),n(H,{type:`button`,size:`sm`,variant:`ghost`,onClick:()=>g([]),children:u(`locations.unassignedTable.clear`,`Clear`)})]}),n(F,{columns:N,rows:x,rowKey:e=>e.id,minWidthPx:720,emptyMessage:b.active?u(`locations.filter.noMatch`):c})]})}function ut(e){return{id:e.id,parentDeviceId:e.parentDeviceId,location:e.location,type:e.type,stableId:e.stableId??``,...e.primaryChildEntityId===void 0?{}:{primaryChildEntityId:e.primaryChildEntityId},...e.primaryChildPreference===void 0?{}:{primaryChildPreference:e.primaryChildPreference},...e.role!==void 0&&e.role!==null?{role:e.role}:{},name:e.name}}function dt(e,t){let n=t.map(ut),r=[];for(let i of t)i.isCamera&&i.location===e&&r.push({deviceId:i.id,name:i.name,ids:T({selfId:i.id,selfLocation:i.location,candidates:n})});return{entries:r}}var ft=`device-manager:linked-devices`;function pt(e){return{deviceId:e.deviceId,slotRef:ft,value:{slot:`linked-devices`,deviceIds:[...e.ids]}}}a();var mt=`__unassigned__`;function ht(){let{t:r}=J(),a=o(),s=g(),{data:c,isLoading:u}=ce(),{data:d}=ve(),{data:f}=he(),{data:p}=ge(),{data:m,isLoading:h}=ue({projection:`slim`}),_=()=>{a.invalidateQueries({queryKey:[[`deviceManager`,`listLocations`]]}),a.invalidateQueries({queryKey:[[`deviceManager`,`listAll`]]}),a.invalidateQueries({queryKey:[[`deviceManager`,`listLocationIcons`]]}),a.invalidateQueries({queryKey:[[`deviceManager`,`listLocationDescriptions`]]}),a.invalidateQueries({queryKey:[[`deviceManager`,`listSiteZones`]]})},v=pe({onSuccess:_}),y=ye({onSuccess:_}),b=be({onSuccess:_}),x=se({onSuccess:_}),S=M({onSuccess:_}),C=ie({onSuccess:_}),w=te({onSuccess:_}),T=Ce({onSuccess:_}),D=xe({onSuccess:_}),O=A({onSuccess:_}),k=re(),j=t(()=>(m??[]).map(e=>({id:e.id,name:e.name,location:e.location??null,type:String(e.type),isCamera:e.isCamera,parentDeviceId:e.parentDeviceId,online:e.online,role:e.role??null,stableId:e.stableId,primaryChildEntityId:e.primaryChildEntityId??null,primaryChildPreference:e.primaryChildPreference??null})),[m]),N=c??[],P=t(()=>ze(j,N),[j,N]),[ee,F]=Te(),I=ee.get(`tab`),L=I===`zones`||I===`camera-links`?I:`locations`,R=ee.get(`room`),z=t(()=>Fe(j,N),[j,N]),ne=R===mt,B=ne?null:R!==null&&P.some(e=>e.name===R)?R:P[0]?.name??null,V=B===null?null:P.find(e=>e.name===B)??null,H=ne?mt:B??`__unassigned__`,U=B??P[0]?.name??null,ae=t(()=>P.map(e=>({name:e.name,count:e.members.length})),[P]),oe=e=>{F(t=>{let n=new URLSearchParams(t);return n.set(`room`,e),n},{replace:!0})},W=u||h,G=b.isPending||y.isPending||v.isPending||S.isPending,le=async e=>{await v.mutateAsync({name:e})},de=async(e,t)=>{let n=t.trim();n.length===0||n===e||await x.mutateAsync({from:e,to:n})},fe=async e=>{let t=dt(e,j);if(t.entries.length===0){await s({title:r(`locations.rebuildLinkedDevices`,`Rebuild linked devices`),message:r(`locations.noCameraIsAssignedTo`,`No camera is assigned to “{{room}}”.`,{room:e}),confirmLabel:`OK`});return}let n=t.entries.map(e=>r(`locations.rebuildEntry`,{name:e.name,count:e.ids.length})).join(`
2
- `);if(!await s({title:r(`locations.rebuildLinkedDevices`,`Rebuild linked devices`),message:r(`locations.replaceTheLinkedDeviceList`,`Replace the linked-device list of every camera in “{{room}}” with what the room contains? {{lines}} Anything linked by hand that is not in this room is lost.`,{room:e,lines:n}),confirmLabel:r(`locations.rebuild`,`Rebuild`),variant:`danger`}))return;let i=[];for(let e of t.entries)try{await k.mutateAsync(pt(e))}catch(t){i.push(`• ${e.name}: ${t instanceof Error?t.message:String(t)}`)}_(),i.length>0&&await s({title:r(`locations.rebuildLinkedDevices`,`Rebuild linked devices`),message:r(`locations.notRebuilt`,`Not rebuilt: {{value1}}`,{value1:i.join(`
3
- `)}),confirmLabel:`OK`})},me=async(e,t)=>{let n=t>0?` ${String(t)} device(s) will become unassigned.`:``;await s({title:r(`locations.deleteLocation`,`Delete location`),message:r(`locations.deleteTheLocation`,`Delete the location “{{name}}”?{{extra}}`,{name:e,extra:n}),confirmLabel:r(`common.delete`,`Delete`),variant:`danger`})&&await y.mutateAsync({name:e,cascade:!0})},_e=async e=>{await s({title:r(`locations.deleteZone`,`Delete zone`),message:r(`locations.deleteTheZoneTheRooms`,`Delete the zone “{{name}}”? The rooms in it are kept.`,{name:e}),confirmLabel:r(`common.delete`,`Delete`),variant:`danger`})&&await T.mutateAsync({name:e})},K=async(e,t)=>{await S.mutateAsync({location:e,icon:t})},Se=async(e,t)=>{await C.mutateAsync({location:e,description:t})},q=p??[],Y=async(e,t)=>{await O.mutateAsync({location:e,zone:t})},we=(e,t)=>{for(let n of e)b.mutate({deviceId:n,location:t})},[X,De]=i(null),Oe=t(()=>j.filter(e=>e.parentDeviceId===null).map(e=>({id:e.id,name:e.name,type:e.type,location:e.location})),[j]),ke=n(st,{rooms:ae,...L===`locations`?{unassignedCount:z.length}:{},value:L===`locations`?H:U??``,unassignedValue:mt,onChange:oe}),Z=e(`div`,{className:`flex flex-col gap-3`,"data-testid":`locations-section`,children:[W&&n(`p`,{className:`text-xs text-foreground-subtle`,children:r(`locations.loadingLocationsAndDevices`,`Loading locations and devices…`)}),ke,ne||V===null?n(lt,{rows:z,fleet:j,locations:N,busy:G,emptyMessage:W?r(`common.loading`,`Loading…`):r(`locations.everyTopLevelDeviceHas`,`Every top-level device has a room.`),onAssign:we}):n(et,{name:V.name,members:V.members,devices:j,busy:G,icon:Ze(d,E(V.name)),onPickIcon:e=>K(V.name,e),description:Ke(f,E(V.name)),onSaveDescription:e=>Se(V.name,e),zones:q,zoneKey:Ye(q,E(V.name)),onChangeZone:e=>Y(V.name,e),onRename:e=>de(V.name,e),onDelete:()=>me(V.name,Ae(j,V.name).length),onRebuildLinks:()=>fe(V.name),onAddDevices:()=>De(V.name)},V.name),N.length===0&&!W&&n(`p`,{className:`text-xs text-foreground-subtle`,children:r(`locations.noLocationsYetAddFrontDoor`,`No locations yet. Add Front door, Hall, Kitchen…`)}),n(Ve,{open:X!==null,title:r(`locations.room.addDialogTitle`,{room:X??``}),items:Oe,listState:h?`pending`:`answered`,lockedIds:X===null?[]:(P.find(e=>e.name===X)?.members??[]).map(e=>e.id),lockedNote:r(`locations.room.alreadyHere`),suggestions:{heading:r(`locations.room.suggestedUnassigned`),ids:z.map(e=>e.id)},busy:b.isPending,onConfirm:e=>{X!==null&&we(e,X),De(null)},onClose:()=>De(null)})]}),Q=e(`div`,{className:`flex flex-col gap-3`,"data-testid":`camera-links-tab`,children:[ke,n(He,{room:U,cameras:U===null?[]:Ae(j,U).filter(e=>e.isCamera),fleet:j})]});return n(Ee,{icon:l,title:r(`locations.locations`,`Locations`),subtitle:r(`locations.roomsAndAreasOfThe`,`Rooms and areas of the site. Assign any device here — storage disks are under Data → Storage.`),defaultSection:`locations`,sectionsLabel:`Locations sections`,actions:L===`zones`?n(at,{busy:w.isPending,onCreate:e=>w.mutateAsync({name:e})}):n(it,{busy:v.isPending,onCreate:le}),sections:[{id:`locations`,label:r(`locations.locations`,`Locations`),content:Z},{id:`camera-links`,label:r(`locations.cameraLinks`,`Camera links`),content:Q},{id:`zones`,label:r(`locations.zones`,`Zones`),content:n(rt,{zones:q,busy:G,onRename:(e,t)=>D.mutateAsync({from:e,to:t}),onDelete:_e,onPickIcon:(e,t)=>w.mutateAsync({name:e,icon:t})})}]})}export{ht as LocationsPage};
@@ -1 +0,0 @@
1
- import{C as e,K as t,R as n,S as r,V as i,Y as a,et 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{Hn as s,Vr as c,eo as l,ft as u,hn as d,la as f,ma as p}from"./player-overlays-KBeT29r4.js";import{Hc as m,fc as h}from"./src-BL8KgH_H.js";import{t as g}from"./layers-BH9u1mrE.js";import{t as _}from"./timer-reset-5221y6Jb.js";import{Hr as v,Np as y,Rf as ee,Tp as b,Vf as x,Wf as S,_r as C,ia as w,im as T,ja as E,ra as D,vr as O}from"./src-FszuUAOe.js";import{t as k}from"./useTranslation-BJr-n0es.js";import{Oi as A,a as j,b as M,i as N}from"./index-PErHbELp.js";import{t as P}from"./AdminSectionedPage-Cx1I8W-T.js";import{t as F}from"./InstancesTable-8sjRWeOv.js";import{t as I}from"./AdminPage-LgScsiWj.js";o();function L(e){let t=Math.max(0,Math.round(e/1e3)),n=Math.floor(t/60),r=t%60;return n===0?`${r}s`:r===0?`${n}m`:`${n}m ${r}s`}function R(e,t){return{windowMs:Math.max(0,e.untilMs-t),capMs:Math.max(0,e.capAtMs-t)}}function te(e,t){let n=new Set(e.map(e=>e.channel));return t.filter(e=>n.has(e))}function z(e){let t=e.indexOf(`.`);return t===-1?e:e.slice(0,t)}function B(e){let t=new Map;for(let n of e){let e=z(n.name);t.set(e,[...t.get(e)??[],n])}return[...t.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({addon:e,channels:[...t].sort((e,t)=>e.name.localeCompare(t.name))}))}var V=[12e4,3e5,6e5,18e5],ne=[h.Camera],re=8,H=`rounded border border-border px-1.5 py-0.5 text-[10px] text-foreground-subtle`,U=`inline-flex items-center gap-1 rounded bg-warning/10 px-1.5 py-0.5 text-[10px] font-semibold text-warning`,W=`rounded border border-border px-2 py-1 text-[11px] text-foreground-subtle hover:text-foreground disabled:opacity-50`;function G(t){let{channel:n,armed:i,watch:o,nowMs:s,busy:c}=t,{t:l}=k(),[u,f]=a([]),m=n.kind===`debug`,h=i?.armed===!0,g=o===void 0?void 0:R(o,s);return e(`div`,{className:`flex flex-col gap-2 p-3 lg:flex-row lg:items-center lg:justify-between`,children:[e(`div`,{className:`min-w-0`,children:[e(`div`,{className:`flex flex-wrap items-center gap-2`,children:[r(`span`,{className:`text-sm font-medium text-foreground`,children:n.name}),r(`span`,{className:H,children:l(`logging.diagnostics.kind.${n.kind}`,n.kind)}),m&&g!==void 0&&e(`span`,{className:U,children:[r(_,{className:`h-3 w-3`}),l(`logging.diagnostics.endsIn`,{left:L(g.windowMs)})]}),!m&&h&&e(`span`,{className:U,children:[r(_,{className:`h-3 w-3`}),l(`logging.diagnostics.expiresIn`,{left:L(i?.remainingMs??0)})]}),!m&&!h&&r(`span`,{className:H,children:l(`logging.diagnostics.disarmed`,`disarmed`)}),!m&&h&&i?.deviceIds!=null&&e(`span`,{className:`inline-flex items-center gap-1 rounded bg-primary/10 px-1.5 py-0.5 text-[10px] font-semibold text-primary`,children:[r(p,{className:`h-3 w-3`}),i.deviceIds.join(`, `)]}),m&&o!==void 0&&e(`span`,{className:`text-[11px] text-foreground-subtle`,children:[`#`,o.deviceIds.join(`, #`),g!==void 0&&` · ${l(`logging.diagnostics.capIn`,{left:L(g.capMs)})}`]}),!n.perDevice&&r(`span`,{className:H,children:l(`logging.diagnostics.notPerCamera`,`not filterable per camera`)})]}),r(`p`,{className:`mt-0.5 max-w-2xl text-[11px] text-foreground-subtle`,children:n.description})]}),e(`div`,{className:`flex shrink-0 flex-col gap-1 lg:items-end`,children:[n.perDevice&&r(`div`,{className:`w-full lg:w-72`,children:r(E,{multiple:!0,pick:`device`,noun:`camera`,fixedTypes:ne,maxItems:re,recentKey:`log-channel-cameras`,testId:`log-channel-cameras-${n.name}`,value:w(u),onChange:e=>f(D(e))})}),m?e(`div`,{className:`flex flex-wrap items-center gap-1`,children:[r(b,{type:`button`,disabled:c||u.length===0,title:u.length===0?l(`logging.diagnostics.pickCamerasToWatch`,`Pick at least one camera to start a watch.`):void 0,onClick:()=>t.onStartWatch(u),children:l(`logging.diagnostics.watchStart`,`Start watching`)}),e(b,{type:`button`,variant:`secondary`,disabled:c||o===void 0,onClick:t.onStopWatch,children:[r(d,{className:`mr-1 h-3.5 w-3.5`}),l(`logging.diagnostics.watchStop`,`Stop`)]})]}):e(`div`,{className:`flex flex-wrap items-center gap-1`,children:[V.map(e=>r(b,{variant:`unstyled`,type:`button`,disabled:c,onClick:()=>t.onArm(e,u.length>0?u:null),className:W,children:L(e)},e)),r(b,{variant:`unstyled`,type:`button`,disabled:c||!h,onClick:()=>t.onArm(0,null),className:`rounded bg-primary px-2 py-1 text-[11px] font-medium text-primary-foreground disabled:opacity-40`,children:l(`logging.diagnostics.disarm`,`Disarm`)})]})]})]})}o();var K=1e3,q=15e3;function J(){let{t:o}=k(),s=x({},{refetchInterval:5e3}),u=S(),d=ee(),[f,p]=a(null),[h,g]=a([]),[_,y]=a([]),[b,C]=a([]),[w,T]=a(()=>Date.now()),E=(e,t)=>{p(e),u.mutate({patch:{diagnostics:[{id:e,armMs:t}]}},{onSettled:()=>{p(null),s.refetch()}})},D=(e,t,n)=>{p(e),u.mutate({patch:{channels:[{channel:e,armMs:t,deviceIds:n}]}},{onSettled:()=>{p(null),s.refetch()}})},A=n((e,t,n)=>{d.mutate({action:e,channels:t,deviceIds:n},{onSuccess:e=>{g(e.watches),C(e.lapsed)}})},[]);i(()=>{let e=setInterval(()=>T(Date.now()),K);return()=>clearInterval(e)},[]),i(()=>{A(`list`,[],[]);let e=setInterval(()=>A(`list`,[],[]),q);return()=>clearInterval(e)},[A]);let j=te(h,_).join(`|`);i(()=>{if(j===``)return;let e=setInterval(()=>A(`rearm`,j.split(`|`),[]),m);return()=>clearInterval(e)},[j,A]);let M=(e,t)=>{y(t=>t.includes(e)?t:[...t,e]),A(`start`,[e],t)},N=e=>{y(t=>t.filter(t=>t!==e)),A(`stop`,[e],[])},P=s.data?.activeWindows??[],F=s.data?.activeChannels??[],L=t(()=>B(s.data?.channels??[]),[s.data]),R=[...new Set(h.flatMap(e=>e.deviceIds))];return e(I,{embedded:!0,icon:l,title:o(`logging.diagnostics.title`,`Diagnostics`),subtitle:o(`logging.diagnostics.subtitle`,`Windows and channels are armed for a limited time, never switched on. Each carries a deadline and expires by itself — one left running is an incident of its own.`),children:[s.isLoading?e(`div`,{className:`flex items-center gap-2 text-xs text-foreground-subtle`,children:[r(c,{className:`h-3.5 w-3.5 animate-spin`}),o(`common.loading`,`Loading…`)]}):r(`div`,{className:`rounded-lg border border-border bg-surface divide-y divide-border`,children:P.map(e=>r(Y,{window:e,busy:f===e.id,onArm:t=>E(e.id,t)},e.id))}),r(`h3`,{className:`mt-6 text-sm font-medium text-foreground`,children:o(`logging.diagnostics.channels`,`Log channels`)}),r(`p`,{className:`mb-2 max-w-3xl text-[11px] text-foreground-subtle`,children:o(`logging.diagnostics.channelsSubtitle`,`Declared by the addons that own them, grouped by addon. A diagnostic channel opens a window with a deadline; a debug channel starts a live watch that this page keeps renewed while it stays open.`)}),L.length===0?r(`p`,{className:`text-[11px] text-foreground-subtle`,children:o(`logging.diagnostics.noChannels`,`No addon on this cluster declares a log channel, or none could be reached right now.`)}):r(`div`,{className:`space-y-4`,children:L.map(t=>e(`section`,{"aria-label":t.addon,children:[r(`h4`,{className:`mb-1 text-xs font-medium text-foreground-muted`,children:t.addon}),r(`div`,{className:`rounded-lg border border-border bg-surface divide-y divide-border`,children:t.channels.map(e=>r(G,{channel:e,armed:F.find(t=>t.channel===e.name),watch:h.find(t=>t.channel===e.name),nowMs:w,busy:f===e.name||d.isPending,onArm:(t,n)=>D(e.name,t,n),onStartWatch:t=>M(e.name,t),onStopWatch:()=>N(e.name)},e.name))})]},t.addon))}),d.isError&&r(`p`,{className:`mt-2 text-[11px] text-danger`,children:d.error.message}),b.length>0&&r(`p`,{className:`mt-2 text-[11px] text-warning`,children:o(`logging.diagnostics.lapsed`,`Already ended, not renewed: {{names}}. Start again to continue.`,{names:b.join(`, `)})}),R.length>0&&r(v,{headingId:`log-diagnostics-live`,title:o(`logging.diagnostics.live`,`Live`),children:R.map(e=>r(`div`,{className:`border-t border-border first:border-t-0`,children:r(O,{deviceId:e,limit:200,maxHeight:`max-h-80`,showScope:!0,showFilters:!1})},e))})]})}function Y({window:t,busy:n,onArm:i}){let{t:a}=k();return e(`div`,{className:`flex flex-col gap-2 p-3 lg:flex-row lg:items-center lg:justify-between`,children:[e(`div`,{className:`min-w-0`,children:[e(`div`,{className:`flex items-center gap-2`,children:[r(`span`,{className:`text-sm font-medium text-foreground`,children:t.id}),t.armed?e(`span`,{className:`inline-flex items-center gap-1 rounded bg-warning/10 px-1.5 py-0.5 text-[10px] font-semibold text-warning`,children:[r(_,{className:`h-3 w-3`}),a(`logging.diagnostics.expiresIn`,`expires in {{left}}`,{left:L(t.remainingMs)})]}):r(`span`,{className:`rounded border border-border px-1.5 py-0.5 text-[10px] text-foreground-subtle`,children:a(`logging.diagnostics.disarmed`,`disarmed`)}),t.armed&&!t.persisted&&r(`span`,{className:`text-[10px] text-warning`,children:a(`logging.diagnostics.notPersisted`,`not persisted — will not survive a restart`)})]}),r(`p`,{className:`mt-0.5 max-w-2xl text-[11px] text-foreground-subtle`,children:a(`logging.diagnostics.caption.${t.id}`,{defaultValue:``})})]}),e(`div`,{className:`flex shrink-0 flex-wrap items-center gap-1`,children:[V.map(e=>r(b,{variant:`unstyled`,type:`button`,disabled:n,onClick:()=>i(e),className:W,children:L(e)},e)),r(b,{variant:`unstyled`,type:`button`,disabled:n||!t.armed,onClick:()=>i(0),className:`rounded bg-primary px-2 py-1 text-[11px] font-medium text-primary-foreground disabled:opacity-40`,children:a(`logging.diagnostics.disarm`,`Disarm`)})]})]})}o();var X=`categories`;function ie(e){let t=(e??``).split(`,`).map(e=>e.trim()).filter(e=>e!==``);return t.length>0?t:void 0}function Z(){let[e,t]=A(),[i]=a(()=>ie(e.get(X))),o=n(e=>{t(t=>{let n=new URLSearchParams(t);return e.length>0?n.set(X,e.join(`,`)):n.delete(X),n},{replace:!0})},[t]);return r(I,{embedded:!0,children:r(`div`,{className:`rounded-lg border border-border bg-surface`,children:r(C,{...i?{defaultCategories:i}:{},limit:200,maxHeight:`max-h-[calc(100vh-310px)]`,onCategoriesChange:o})})})}function ae(){let{t:e}=k();return r(F,{functionCap:`log-destination`,icon:s,title:e(`system.logging.destinations`,`Destinations`),subtitle:e(`system.logging.everyRegisteredLogDestinationEntries`,`Every registered log destination. Entries are fanned to all enabled destinations at once — enabling one does not disable another.`),emptyTitle:e(`system.logging.noLogDestinationsRegistered`,`No log destinations registered`),emptyDescription:e(`system.logging.thisShouldNotHappenThe`,`This should not happen — the console and rotated-file destinations are builtins. If the list is empty, the node is still booting.`),defaultKindLabel:e(`system.logging.kindDestination`,`Log destination`),addLabel:e(`system.logging.addDestination`,`Add destination`),install:{capability:`log-destination`,label:e(`system.logging.installDestination`,`Install a destination`)}})}o();var oe=[`debug`,`info`,`warn`,`error`],Q=``,$=``;function se(){let{t:n}=k(),[i,o]=a(Q),[s,l]=a($),{nodes:d}=T(),f=t(()=>d.map(e=>({id:e.id,label:e.name||e.id})),[d]),p=x({...i===Q?{}:{scopeNodeId:i},...s===$?{}:{scopeComponent:s}},{refetchInterval:15e3}),m=S(),h=p.data,_=m.isPending||p.isFetching,v=(h?.channels??[]).filter(e=>e.kind!==`debug`),y=(e,t)=>{m.mutate({...e.nodeId===null?{}:{scopeNodeId:e.nodeId},...e.component===null?{}:{scopeComponent:e.component},patch:{level:t}},{onSuccess:()=>void p.refetch()})};return r(I,{embedded:!0,icon:g,title:n(`logging.levels.title`,`Levels`),subtitle:n(`logging.levels.subtitle`,`Cluster → node, most specific wins. The floor gates what reaches the log destinations; the in-memory viewer keeps every line either way.`),actions:e(`div`,{className:`flex flex-wrap items-center gap-3`,children:[e(`label`,{className:`flex items-center gap-2 text-xs text-foreground-subtle`,children:[n(`logging.levels.scope`,`Scope`),e(u,{wrapperClassName:`inline-block w-auto`,value:i,disabled:s!==$,onChange:e=>o(e.target.value),children:[r(`option`,{value:Q,children:n(`logging.levels.cluster`,`Cluster`)}),f.map(e=>r(`option`,{value:e.id,children:e.label},e.id))]})]}),e(`label`,{className:`flex items-center gap-2 text-xs text-foreground-subtle`,children:[n(`logging.levels.component`,`Component`),e(u,{wrapperClassName:`inline-block w-auto`,value:s,onChange:e=>l(e.target.value),children:[r(`option`,{value:$,children:n(`logging.levels.noComponent`,`None`)}),v.map(e=>r(`option`,{value:e.name,children:e.name},e.name))]})]})]}),children:p.isLoading||h===void 0?e(`div`,{className:`flex items-center gap-2 text-xs text-foreground-subtle`,children:[r(c,{className:`h-3.5 w-3.5 animate-spin`}),n(`common.loading`,`Loading…`)]}):e(`div`,{className:`space-y-3`,children:[r(le,{level:h.effective.level,source:h.effective.levelSource,persisted:h.persisted}),r(`div`,{className:`rounded-lg border border-border bg-surface divide-y divide-border`,children:h.explicit.layers.map(e=>r(ue,{layer:e,inForce:e.scope===h.effective.levelSource,busy:_,onSet:t=>y(e,t),onClear:()=>y(e,null)},`${e.scope}:${e.nodeId??e.component??`cluster`}`))}),s!==$&&r(`p`,{className:`text-[11px] text-foreground-subtle`,children:v.find(e=>e.name===s)?.description??``}),r(`p`,{className:`text-[11px] text-foreground-subtle`,children:n(`logging.levels.componentNote`,`A component is a log channel an addon declared. Its level is cluster-wide and beats both the node and the cluster layer.`)}),r(ce,{days:h.opsLogRetentionDays,busy:_,onSet:e=>m.mutate({patch:{opsLogRetentionDays:e}},{onSuccess:()=>void p.refetch()})})]})})}function ce({days:t,busy:n,onSet:i}){let{t:a}=k();return e(`div`,{className:`rounded-lg border border-border bg-surface p-3 space-y-1`,children:[e(`label`,{className:`flex items-center justify-between gap-3`,children:[r(`span`,{className:`text-xs font-medium`,children:a(`logging.levels.opsLogRetention`,`Retention audit trail`)}),e(`span`,{className:`flex items-center gap-1.5`,children:[r(y,{type:`number`,min:0,max:3650,step:1,defaultValue:t,disabled:n,onBlur:e=>{let n=Number.parseInt(e.target.value,10);Number.isFinite(n)&&n!==t&&i(n)},className:`w-20 rounded border border-border bg-surface px-2 py-1 text-xs`}),r(`span`,{className:`text-[11px] text-foreground-subtle`,children:a(`common.days`,`days`)})]})]}),r(`p`,{className:`text-[11px] text-foreground-subtle`,children:a(`logging.levels.opsLogRetentionNote`,`How long the record of what retention deleted is kept. Cluster-wide, and deliberately longer than any camera window — it is the history of the sweep, not of the camera, and it is what makes a storage leak explainable after the fact. 0 keeps it forever.`)})]})}function le({level:t,source:n,persisted:i}){let{t:a}=k();return e(`div`,{className:`rounded-lg border border-border bg-surface p-3`,children:[e(`div`,{className:`flex items-center gap-2`,children:[r(`span`,{className:`text-xs text-foreground-subtle`,children:a(`logging.levels.effective`,`In force here`)}),r(`span`,{className:`rounded bg-primary/10 px-2 py-0.5 text-xs font-semibold text-primary`,children:t}),r(`span`,{className:`text-[11px] text-foreground-subtle`,children:n==="default"?a(`logging.levels.fromDefault`,`nothing is set anywhere — this is the default`):a(`logging.levels.fromLayer`,`decided by the {{source}} layer`,{source:n})})]}),!i&&r(`p`,{className:`mt-1 text-[11px] text-warning`,children:a(`logging.levels.notPersisted`,`The settings store could not be read or written — what you see is live, but it would not survive a restart.`)})]})}function ue({layer:t,inForce:n,busy:i,onSet:a,onClear:o}){let{t:s}=k();return e(`div`,{className:`flex flex-col gap-2 p-3 sm:flex-row sm:items-center sm:justify-between`,children:[e(`div`,{className:`min-w-0`,children:[e(`div`,{className:`flex items-center gap-2`,children:[r(`span`,{className:`text-sm font-medium text-foreground`,children:t.scope===`cluster`?s(`logging.levels.cluster`,`Cluster`):t.scope===`component`?t.component??``:t.nodeId??``}),n&&e(`span`,{className:`inline-flex items-center gap-1 rounded bg-primary/10 px-1.5 py-0.5 text-[10px] font-semibold text-primary`,children:[r(f,{className:`h-3 w-3`}),s(`logging.levels.inForce`,`in force`)]})]}),r(`p`,{className:`mt-0.5 text-[11px] text-foreground-subtle`,children:t.level===null?s(`logging.levels.inherits`,`inherits — nothing set at this layer`):s(`logging.levels.setHere`,`set here: {{level}}`,{level:t.level})})]}),e(`div`,{className:`flex shrink-0 items-center gap-1`,children:[oe.map(e=>r(b,{variant:`unstyled`,type:`button`,disabled:i,onClick:()=>a(e),className:`rounded px-2 py-1 text-[11px] font-medium transition-colors disabled:opacity-50 ${t.level===e?`bg-primary text-primary-foreground`:`border border-border text-foreground-subtle hover:text-foreground`}`,children:e},e)),r(b,{variant:`unstyled`,type:`button`,disabled:i||t.level===null,onClick:o,className:`rounded border border-border px-2 py-1 text-[11px] text-foreground-subtle hover:text-foreground disabled:opacity-40`,children:s(`logging.levels.clear`,`Clear`)})]})]})}function de(){let[e]=A(),t=e.get(`deviceId`),n=t===null?void 0:Number(t);return r(I,{embedded:!0,children:r(`div`,{className:`rounded-lg border border-border bg-surface overflow-hidden`,children:r(O,{deviceId:n!==void 0&&Number.isFinite(n)?n:void 0,limit:500,maxHeight:`max-h-[calc(100vh-310px)]`,showFilters:!0,showOriginFilter:!0,columns:{available:[`integration`,`device`],defaultVisible:[`integration`,`device`]}})})})}function fe(){let{t:e}=k(),t=M(`/system/logs`,{t:e,isAdmin:!0})??{icon:s,title:e(`system.logs`,`Logs`)};return r(P,{icon:t.icon,title:t.title,defaultSection:`viewer`,sectionsLabel:`${t.title} sections`,sections:[{id:`viewer`,label:e(`admin.system.logs.viewer`,`Viewer`),content:r(de,{})},{id:`events`,label:e(`admin.system.logs.events`,`Events`),content:r(Z,{}),ownedParams:[X]},{id:j.logging.tab,label:e(`admin.system.logs.destinations`,`Destinations`),content:r(ae,{}),ownedParams:N},{id:`levels`,label:e(`admin.system.logs.levels`,`Levels`),content:r(se,{})},{id:`diagnostics`,label:e(`admin.system.logs.diagnostics`,`Diagnostics`),content:r(J,{})}]})}export{fe as LogsPage};