@camstack/addon-admin-ui 1.2.621 → 1.2.623

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 (139) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/assets/{Addons-D03BymGf.js → Addons-KzL11keT.js} +1 -1
  3. package/dist/assets/{AdminPage-i-Spu-Sm.js → AdminPage-CLrZRo9Q.js} +1 -1
  4. package/dist/assets/{AdminSectionedPage-4B2I3krV.js → AdminSectionedPage-QZujp_Rk.js} +1 -1
  5. package/dist/assets/{AiProfiles-BtxD6UCi.js → AiProfiles-CJymDhUN.js} +1 -1
  6. package/dist/assets/{Authentication-CbR408Np.js → Authentication-JPI5tNQR.js} +1 -1
  7. package/dist/assets/Build-JfcMscnG.js +39 -0
  8. package/dist/assets/{Calendars-04ow5LWV.js → Calendars-C9ZSLbHl.js} +1 -1
  9. package/dist/assets/{CameraGrids-DAxglM0u.js → CameraGrids-CPw3_tbn.js} +1 -1
  10. package/dist/assets/{Cluster-B4-o839q.js → Cluster-B5g_W7EV.js} +1 -1
  11. package/dist/assets/CompositionBlockEditor-DFvE9jtV.js +2 -0
  12. package/dist/assets/{CompositionEditorPage-B0BQUfRK.js → CompositionEditorPage-C4jc1B6k.js} +1 -1
  13. package/dist/assets/{Data-CUdCRkb4.js → Data-DUlmeoKU.js} +1 -1
  14. package/dist/assets/DeviceDetail-CWLf4l8q.js +2 -0
  15. package/dist/assets/{DeviceDoActionFields-CUBDFM2y.js → DeviceDoActionFields-xv3Yexk0.js} +1 -1
  16. package/dist/assets/{Devices-CGml-dVh.js → Devices-Bc4BHwpe.js} +1 -1
  17. package/dist/assets/{EditTemplateButton-CJAzjfis.js → EditTemplateButton-BqvyA5Pg.js} +1 -1
  18. package/dist/assets/{EmbedPlayerPage-D7SG2EiT.js → EmbedPlayerPage-D_hbiDn0.js} +1 -1
  19. package/dist/assets/{History-DcKS8Pqt.js → History-pMj6FeqQ.js} +1 -1
  20. package/dist/assets/{Identity-CSX5n8fe.js → Identity-DxoiP6P_.js} +1 -1
  21. package/dist/assets/{InstancesTable-fKOn5UOw.js → InstancesTable-CrMiPOFq.js} +1 -1
  22. package/dist/assets/{IntegrationDetail-DOS8P8lV.js → IntegrationDetail-CUUOhCzq.js} +1 -1
  23. package/dist/assets/{IntegrationHub-DHj2ddAb.js → IntegrationHub-vGZZvN9Y.js} +1 -1
  24. package/dist/assets/Integrations-DIgPCmCb.js +1 -0
  25. package/dist/assets/Integrations-NjDYWDHO.js +2 -0
  26. package/dist/assets/{Library-Cm591Y9v.js → Library-Bl_xkCam.js} +1 -1
  27. package/dist/assets/{Locations-Dbb_PBsp.js → Locations-CcTd8h93.js} +2 -2
  28. package/dist/assets/{Logs-wLf2rwe_.js → Logs-CdgFEAUx.js} +1 -1
  29. package/dist/assets/{MaskShapeCanvas-BzKhGv5g.js → MaskShapeCanvas-BLVQpjX5.js} +1 -1
  30. package/dist/assets/{MotionZonesSettings-Bfd2oPVI.js → MotionZonesSettings-4zZUDnfh.js} +1 -1
  31. package/dist/assets/{MyAccess-DWsYxabr.js → MyAccess-DAZSxq6w.js} +1 -1
  32. package/dist/assets/{Network-O9S27-AU.js → Network-LqpZJtlD.js} +1 -1
  33. package/dist/assets/{NodeAddonsSettingsPanel-DqIJD_Qv.js → NodeAddonsSettingsPanel-D9kXGkje.js} +1 -1
  34. package/dist/assets/Notifications-BtvOosgt.js +1 -0
  35. package/dist/assets/{Pipeline-DBcs2yNk.js → Pipeline-DdsVy_AV.js} +1 -1
  36. package/dist/assets/{PrivacyMaskSettings-DHdyfCxl.js → PrivacyMaskSettings-1aaAaXXs.js} +1 -1
  37. package/dist/assets/{Recordings-CpjBlQgb.js → Recordings-Qtccm3Yn.js} +1 -1
  38. package/dist/assets/{ScanSubnetEditor-BxUEjJED.js → ScanSubnetEditor-t8MFwLUw.js} +1 -1
  39. package/dist/assets/{SceneMonitorEditor-VUmHb_E7.js → SceneMonitorEditor-DQtQEj4e.js} +1 -1
  40. package/dist/assets/{SessionsList-S3gzW-Bs.js → SessionsList-B2cVisrj.js} +1 -1
  41. package/dist/assets/{Showroom-BopC4IyP.js → Showroom-TwupeRdK.js} +1 -1
  42. package/dist/assets/{StorageLocationsTable-B_Ab0uTI.js → StorageLocationsTable-CcXglcoI.js} +1 -1
  43. package/dist/assets/{System-0UIzVk6A.js → System-yvxoK1-C.js} +1 -1
  44. package/dist/assets/Templates-C4mFSZiC.js +1 -0
  45. package/dist/assets/{Terminal-BlujfO1N.js → Terminal-CCImGxuy.js} +1 -1
  46. package/dist/assets/{TrainingProviders-BDIe9V-m.js → TrainingProviders-B4mcZKfz.js} +1 -1
  47. package/dist/assets/{Viewer-DqaGs4bt.js → Viewer-B_9mn9kj.js} +1 -1
  48. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BOKWQVZm.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BLj3clZf.js} +1 -1
  49. package/dist/assets/{addon-icons-context-DXvgFgAk.js → addon-icons-context-C_8qaE3G.js} +1 -1
  50. package/dist/assets/{ai-page.helpers-CnzRKE0Z.js → ai-page.helpers-zhKHU1bv.js} +1 -1
  51. package/dist/assets/{archive-DTwUeQ3I.js → archive-C3vMcjeD.js} +1 -1
  52. package/dist/assets/{assignment-candidates-CY1alfSb.js → assignment-candidates-BuIx_7M-.js} +1 -1
  53. package/dist/assets/{authed-media-xhEK3DwN.js → authed-media-DMusU87j.js} +1 -1
  54. package/dist/assets/{bell-off-Crg3HkuQ.js → bell-off-CY2cs307.js} +1 -1
  55. package/dist/assets/{board-model-DhNDT4cH.js → board-model-D6ERqD8s.js} +1 -1
  56. package/dist/assets/{boxes-DLN5_QEP.js → boxes-DKifHkk7.js} +1 -1
  57. package/dist/assets/{calendar-clock-Bmzy84-G.js → calendar-clock-DDLq2ake.js} +1 -1
  58. package/dist/assets/circle-slash-D9aFPEN1.js +1 -0
  59. package/dist/assets/client-DRdJu8dM.js +809 -0
  60. package/dist/assets/{create-composition-EfBiEHTX.js → create-composition-SYDEmWRj.js} +1 -1
  61. package/dist/assets/crop-D1nLFU4t.js +1 -0
  62. package/dist/assets/{database-zap-BVMiC__a.js → database-zap-Dhs7epvK.js} +1 -1
  63. package/dist/assets/{device-integration-icon-B0NXEAF6.js → device-integration-icon-CQA-gqJ3.js} +1 -1
  64. package/dist/assets/device-picker-model-CgDeVP8s.js +1 -0
  65. package/dist/assets/{dist-BignPdVL.js → dist-DhVqbh46.js} +1 -1
  66. package/dist/assets/dist-UQng_ywA.js +809 -0
  67. package/dist/assets/{eraser-2cY7ECNx.js → eraser-BXrd43PO.js} +1 -1
  68. package/dist/assets/{file-up-DLkSKXl_.js → file-up-C4GXJyov.js} +1 -1
  69. package/dist/assets/{format-CUI2PogY.js → format-DAm6he6w.js} +1 -1
  70. package/dist/assets/{grip-vertical-DW7lfDYW.js → grip-vertical-C9DzhrBS.js} +1 -1
  71. package/dist/assets/{hard-drive-download-DgGwUiog.js → hard-drive-download-CZYdVqd_.js} +1 -1
  72. package/dist/assets/{hostInit-ugzaAWqe.js → hostInit-C49TaBck.js} +1 -1
  73. package/dist/assets/{i18n-CR0LVhCP.js → i18n-DFz3VmFc.js} +1 -1
  74. package/dist/assets/icons-Ud0oSLOy.js +1 -0
  75. package/dist/assets/{index-D4e2YUsw.js → index-BCCGVD9f.js} +3 -3
  76. package/dist/assets/{key-id_h-MS5.js → key-2bnMZjKx.js} +1 -1
  77. package/dist/assets/{key-square-CZ-BUBaz.js → key-square-DcGB0_0B.js} +1 -1
  78. package/dist/assets/{layers-VzWSphzP.js → layers-1dZdqzsn.js} +1 -1
  79. package/dist/assets/{link-2-off-BGS72ygx.js → link-2-off-DHNm-mat.js} +1 -1
  80. package/dist/assets/{linked-devices-model-DDQKKjq6.js → linked-devices-model-o0v4Bm2S.js} +1 -1
  81. package/dist/assets/{list-ordered-DrTv2zeo.js → list-ordered-DS1i0RJW.js} +1 -1
  82. package/dist/assets/{memory-stick-8fo589HI.js → memory-stick-uePzeBGn.js} +1 -1
  83. package/dist/assets/{message-square-plus-CxJNrcr2.js → message-square-plus-CCwZJhae.js} +1 -1
  84. package/dist/assets/{mf-entry-bootstrap-0-877fa96c.js → mf-entry-bootstrap-0-a9d1f756.js} +2 -2
  85. package/dist/assets/{mic-off-Bh_ho71S.js → mic-off-BCSgetxJ.js} +1 -1
  86. package/dist/assets/{monitor-off-D-qbNEjS.js → monitor-off-CS4v-A38.js} +1 -1
  87. package/dist/assets/{monitor-smartphone-D9TuFt2u.js → monitor-smartphone-Dd7prEi4.js} +1 -1
  88. package/dist/assets/mount-CgDeVP8s.js +1 -0
  89. package/dist/assets/{notification-rule-status-CU-CnTl3.js → notification-rule-status-hT9lSvAp.js} +1 -1
  90. package/dist/assets/{player-overlays-B6eb3pSD.js → player-overlays-oE7aPZdg.js} +1 -1
  91. package/dist/assets/remoteEntry-C7_kKwaq.js +1 -0
  92. package/dist/assets/{ruler-556BAwlH.js → ruler-BkEZ6CMq.js} +1 -1
  93. package/dist/assets/{scissors-D9URbBjJ.js → scissors-Dtc0iZPF.js} +1 -1
  94. package/dist/assets/{search-x-kqp6hLO3.js → search-x-C7zLOTi7.js} +1 -1
  95. package/dist/assets/{send-CrZfmqZz.js → send-BA_OtGrV.js} +1 -1
  96. package/dist/assets/{settings-2-BQNfk984.js → settings-2-BzcfNdMc.js} +1 -1
  97. package/dist/assets/{shapes-CSV4bLCs.js → shapes-CaybZ7kz.js} +1 -1
  98. package/dist/assets/{sigma-CHZCxy6u.js → sigma-DFDTfJlI.js} +1 -1
  99. package/dist/assets/{speaker-B9gW5YmZ.js → speaker-PGSeODKI.js} +1 -1
  100. package/dist/assets/{src-Ckl8V7Th.js → src-CCPnH3Vz.js} +13 -13
  101. package/dist/assets/{sso-popup-DOZiM8kh.js → sso-popup-Cs85_JEB.js} +1 -1
  102. package/dist/assets/{step-inspector-model-CenBI74c.js → step-inspector-model-B1Tuq6co.js} +1 -1
  103. package/dist/assets/{table-2-DYJX8UpF.js → table-2-B1IGjGV3.js} +1 -1
  104. package/dist/assets/{timer-reset-Ff2gZGPp.js → timer-reset-BePL4KnU.js} +1 -1
  105. package/dist/assets/tv-Be97KtJK.js +1 -0
  106. package/dist/assets/{unlink-CyyRT6oM.js → unlink-WMRglu7x.js} +1 -1
  107. package/dist/assets/{usb-PkJOLOft.js → usb-DELsHf1A.js} +1 -1
  108. package/dist/assets/{use-device-bound-caps-D43Nr5S2.js → use-device-bound-caps-Ci1qRqfj.js} +1 -1
  109. package/dist/assets/{use-scenes-feed-y2Z5EHD7.js → use-scenes-feed-CSRDiXlC.js} +1 -1
  110. package/dist/assets/{use-stationary-objects-C3cP9Fx7.js → use-stationary-objects-C4uhF0Lo.js} +1 -1
  111. package/dist/assets/{useAdminDeviceRemoval-D0BCW8rS.js → useAdminDeviceRemoval-C5k2S_qW.js} +1 -1
  112. package/dist/assets/useEventInvalidation-CgDeVP8s.js +1 -0
  113. package/dist/assets/{useNodeUrlSelection-Dh0FD4-f.js → useNodeUrlSelection-CgRrxNd2.js} +1 -1
  114. package/dist/assets/user-round-DJFBqcFq.js +1 -0
  115. package/dist/assets/{user-x-Dr8HaNhq.js → user-x-DARSMBU3.js} +1 -1
  116. package/dist/assets/{variable-CMB1YQKA.js → variable-BCL__P0T.js} +1 -1
  117. package/dist/assets/{video-CqjSiaxD.js → video-B38E1osq.js} +1 -1
  118. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-CAHw7KkE.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-Bkkm-53n.js} +2 -2
  119. package/dist/index.html +10 -10
  120. package/dist/server/addon.js +5888 -3427
  121. package/package.json +2 -2
  122. package/dist/assets/Build-D_CEILuw.js +0 -39
  123. package/dist/assets/CompositionBlockEditor-lXIySj_j.js +0 -2
  124. package/dist/assets/DeviceDetail-TiGGpszm.js +0 -2
  125. package/dist/assets/Integrations-DasA9TLi.js +0 -1
  126. package/dist/assets/Integrations-aHJdbfWs.js +0 -2
  127. package/dist/assets/Notifications-ByJXuko8.js +0 -1
  128. package/dist/assets/Templates-Dn1IT7mN.js +0 -1
  129. package/dist/assets/circle-slash-CYSHrTP5.js +0 -1
  130. package/dist/assets/client-DwEQr2ur.js +0 -809
  131. package/dist/assets/crop-DICAJgzI.js +0 -1
  132. package/dist/assets/device-picker-model-C9OvDYbX.js +0 -1
  133. package/dist/assets/dist-pzgQFJEL.js +0 -809
  134. package/dist/assets/icons-Dpx2Bb-A.js +0 -1
  135. package/dist/assets/mount-C9OvDYbX.js +0 -1
  136. package/dist/assets/remoteEntry-DkN3alIt.js +0 -1
  137. package/dist/assets/tv-DnxE4yEb.js +0 -1
  138. package/dist/assets/useEventInvalidation-C9OvDYbX.js +0 -1
  139. package/dist/assets/user-round-Dx791Sjg.js +0 -1
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-B6eb3pSD.js";var t=e(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]);export{t};
1
+ import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]);export{t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-B6eb3pSD.js";var t=e(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),n=e(`key-square`,[[`path`,{d:`M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z`,key:`165ttr`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814`,key:`1ubxi2`}]]);export{t as n,n as t};
1
+ import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),n=e(`key-square`,[[`path`,{d:`M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z`,key:`165ttr`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814`,key:`1ubxi2`}]]);export{t as n,n as t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-B6eb3pSD.js";var t=e(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]);export{t};
1
+ import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]);export{t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-B6eb3pSD.js";var t=e(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]);export{t};
1
+ import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]);export{t};
@@ -1 +1 @@
1
- import{bi as e,jo as t}from"./client-DwEQr2ur.js";import{t as n}from"./i18n-CR0LVhCP.js";import{t as r}from"./assignment-candidates-CY1alfSb.js";function i(n,r){let i=e[n];return i.hostDeviceTypes.some(e=>e===r)?`host`:i.descriptor.sourceCaps===`any`&&r!==t.Container?`guest`:null}function a(e){return e.slot===`linked-devices`}function o(e){if(e.status===`error`)return{kind:`unknown`,reason:e.error?.message??n.t(`helpers.customize.requestFailed`)};if(e.status===`pending`||e.data===void 0)return{kind:`pending`};for(let t of e.data)if(t.state===`ok`&&t.slot===`linked-devices`&&a(t.value))return{kind:`present`,slot:t,value:t.value};let t=e.data.find(e=>e.state===`unreachable`);return t!==void 0&&t.state===`unreachable`?{kind:`unknown`,reason:t.reason}:{kind:`absent`}}function s(e,t){let n=t.trackedDeviceIds??[],r=e=>t=>({deviceId:t.deviceId,name:t.name,health:t.health,implied:e,tracked:n.includes(t.deviceId)});return[...e.sources.map(r(!1)),...(e.impliedSources??[]).map(r(!0))]}function c(e,t){let n=new Set([...e.sources,...e.impliedSources??[]].map(e=>e.deviceId));return(t.trackedDeviceIds??[]).filter(e=>!n.has(e))}function l(e,t){return{...e,deviceIds:[...e.deviceIds,...t.filter(t=>!e.deviceIds.includes(t))]}}function u(e,t){return{...e,deviceIds:e.deviceIds.filter(e=>e!==t),...e.trackedDeviceIds===void 0?{}:{trackedDeviceIds:e.trackedDeviceIds.filter(e=>e!==t)}}}function d(e,t,n){let r=e.trackedDeviceIds??[],i=n?[...r.filter(e=>e!==t),t]:r.filter(e=>e!==t);return{...e,trackedDeviceIds:i}}function f(e,t,n){return e.flatMap(e=>{let i=t.get(e.deviceId);return n.has(e.deviceId)||i===void 0?[]:[{deviceId:e.deviceId,ref:{addonId:i.addonId,stableId:i.stableId},name:e.parentName===null?e.name:`${e.parentName} · ${e.name}`,detail:r(i.integration,e.location),meta:e.type,caps:[],value:null}]})}function p(e,t,n){return n?l(e,[t]):u(e,t)}function m(e,t,n){if(t.deviceIds.includes(n))return{linked:!0,implied:!1};let r=(e.impliedSources??[]).some(e=>e.deviceId===n);return{linked:r,implied:r}}export{c as a,l as c,m as i,d as l,s as n,i as o,o as r,p as s,f as t,u};
1
+ import{No as e,Si as t}from"./client-DRdJu8dM.js";import{t as n}from"./i18n-DFz3VmFc.js";import{t as r}from"./assignment-candidates-BuIx_7M-.js";function i(n,r){let i=t[n];return i.hostDeviceTypes.some(e=>e===r)?`host`:i.descriptor.sourceCaps===`any`&&r!==e.Container?`guest`:null}function a(e){return e.slot===`linked-devices`}function o(e){if(e.status===`error`)return{kind:`unknown`,reason:e.error?.message??n.t(`helpers.customize.requestFailed`)};if(e.status===`pending`||e.data===void 0)return{kind:`pending`};for(let t of e.data)if(t.state===`ok`&&t.slot===`linked-devices`&&a(t.value))return{kind:`present`,slot:t,value:t.value};let t=e.data.find(e=>e.state===`unreachable`);return t!==void 0&&t.state===`unreachable`?{kind:`unknown`,reason:t.reason}:{kind:`absent`}}function s(e,t){let n=t.trackedDeviceIds??[],r=e=>t=>({deviceId:t.deviceId,name:t.name,health:t.health,implied:e,tracked:n.includes(t.deviceId)});return[...e.sources.map(r(!1)),...(e.impliedSources??[]).map(r(!0))]}function c(e,t){let n=new Set([...e.sources,...e.impliedSources??[]].map(e=>e.deviceId));return(t.trackedDeviceIds??[]).filter(e=>!n.has(e))}function l(e,t){return{...e,deviceIds:[...e.deviceIds,...t.filter(t=>!e.deviceIds.includes(t))]}}function u(e,t){return{...e,deviceIds:e.deviceIds.filter(e=>e!==t),...e.trackedDeviceIds===void 0?{}:{trackedDeviceIds:e.trackedDeviceIds.filter(e=>e!==t)}}}function d(e,t,n){let r=e.trackedDeviceIds??[],i=n?[...r.filter(e=>e!==t),t]:r.filter(e=>e!==t);return{...e,trackedDeviceIds:i}}function f(e,t,n){return e.flatMap(e=>{let i=t.get(e.deviceId);return n.has(e.deviceId)||i===void 0?[]:[{deviceId:e.deviceId,ref:{addonId:i.addonId,stableId:i.stableId},name:e.parentName===null?e.name:`${e.parentName} · ${e.name}`,detail:r(i.integration,e.location),meta:e.type,caps:[],value:null}]})}function p(e,t,n){return n?l(e,[t]):u(e,t)}function m(e,t,n){if(t.deviceIds.includes(n))return{linked:!0,implied:!1};let r=(e.impliedSources??[]).some(e=>e.deviceId===n);return{linked:r,implied:r}}export{c as a,l as c,m as i,d as l,s as n,i as o,o as r,p as s,f as t,u};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-B6eb3pSD.js";var t=e(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),n=e(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),r=e(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]);export{n,t as r,r as t};
1
+ import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),n=e(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),r=e(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]);export{n,t as r,r as t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-B6eb3pSD.js";var t=e(`memory-stick`,[[`path`,{d:`M12 12v-2`,key:`fwoke6`}],[`path`,{d:`M12 18v-2`,key:`qj6yno`}],[`path`,{d:`M16 12v-2`,key:`heuere`}],[`path`,{d:`M16 18v-2`,key:`s1ct0w`}],[`path`,{d:`M2 11h1.5`,key:`15p63e`}],[`path`,{d:`M20 18v-2`,key:`12ehxp`}],[`path`,{d:`M20.5 11H22`,key:`khsy7a`}],[`path`,{d:`M4 18v-2`,key:`1c3oqr`}],[`path`,{d:`M8 12v-2`,key:`1mwtfd`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`rect`,{x:`2`,y:`6`,width:`20`,height:`10`,rx:`2`,key:`1qcswk`}]]);export{t};
1
+ import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`memory-stick`,[[`path`,{d:`M12 12v-2`,key:`fwoke6`}],[`path`,{d:`M12 18v-2`,key:`qj6yno`}],[`path`,{d:`M16 12v-2`,key:`heuere`}],[`path`,{d:`M16 18v-2`,key:`s1ct0w`}],[`path`,{d:`M2 11h1.5`,key:`15p63e`}],[`path`,{d:`M20 18v-2`,key:`12ehxp`}],[`path`,{d:`M20.5 11H22`,key:`khsy7a`}],[`path`,{d:`M4 18v-2`,key:`1c3oqr`}],[`path`,{d:`M8 12v-2`,key:`1mwtfd`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`rect`,{x:`2`,y:`6`,width:`20`,height:`10`,rx:`2`,key:`1qcswk`}]]);export{t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-B6eb3pSD.js";var t=e(`message-square-plus`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]);export{t};
1
+ import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`message-square-plus`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]);export{t};
@@ -12,8 +12,8 @@ const __mfImport = (src) =>
12
12
 
13
13
 
14
14
  (async () => {
15
- const __mfHostInit = await __mfImport("./hostInit-ugzaAWqe.js");
15
+ const __mfHostInit = await __mfImport("./hostInit-C49TaBck.js");
16
16
  await __mfHostInit.__tla;
17
17
  const { initHost } = __mfHostInit;
18
18
  await initHost();
19
- })().then(() => __mfImport("./index-D4e2YUsw.js"));
19
+ })().then(() => __mfImport("./index-BCCGVD9f.js"));
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-B6eb3pSD.js";var t=e(`hexagon`,[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}]]),n=e(`mic-off`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M15 9.34V5a3 3 0 0 0-5.68-1.33`,key:`1gzdoj`}],[`path`,{d:`M16.95 16.95A7 7 0 0 1 5 12v-2`,key:`cqa7eg`}],[`path`,{d:`M18.89 13.23A7 7 0 0 0 19 12v-2`,key:`16hl24`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v3a3 3 0 0 0 5.12 2.12`,key:`r2i35w`}]]);export{t as n,n as t};
1
+ import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`hexagon`,[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}]]),n=e(`mic-off`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M15 9.34V5a3 3 0 0 0-5.68-1.33`,key:`1gzdoj`}],[`path`,{d:`M16.95 16.95A7 7 0 0 1 5 12v-2`,key:`cqa7eg`}],[`path`,{d:`M18.89 13.23A7 7 0 0 0 19 12v-2`,key:`16hl24`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v3a3 3 0 0 0 5.12 2.12`,key:`r2i35w`}]]);export{t as n,n as t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-B6eb3pSD.js";var t=e(`monitor-off`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826`,key:`cv7jms`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`path`,{d:`M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042`,key:`z8ni2w`}]]);export{t};
1
+ import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`monitor-off`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826`,key:`cv7jms`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`path`,{d:`M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042`,key:`z8ni2w`}]]);export{t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-B6eb3pSD.js";var t=e(`monitor-smartphone`,[[`path`,{d:`M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8`,key:`10dyio`}],[`path`,{d:`M10 19v-3.96 3.15`,key:`1irgej`}],[`path`,{d:`M7 19h5`,key:`qswx4l`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`12`,rx:`2`,key:`1egngj`}]]);export{t};
1
+ import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`monitor-smartphone`,[[`path`,{d:`M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8`,key:`10dyio`}],[`path`,{d:`M10 19v-3.96 3.15`,key:`1irgej`}],[`path`,{d:`M7 19h5`,key:`qswx4l`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`12`,rx:`2`,key:`1egngj`}]]);export{t};
@@ -0,0 +1 @@
1
+ import"./src-CCPnH3Vz.js";
@@ -1 +1 @@
1
- import{t as e}from"./i18n-CR0LVhCP.js";var t=`pipeline-analytics`,n=`nc.getRuleStatus`,r=`nc.testRule`;function i(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function a(e,t){let n=e[t];return typeof n==`number`&&Number.isFinite(n)?n:void 0}function o(e,t){let n=e[t];return typeof n==`string`&&n.length>0?n:void 0}function s(e){if(!i(e))return;let t=o(e,`id`),n=o(e,`downloadPath`),r=a(e,`capturedAt`);if(!(t===void 0||n===void 0||r===void 0))return{id:t,mediaType:o(e,`mediaType`)??`video`,sizeBytes:a(e,`sizeBytes`)??0,capturedAt:r,downloadPath:n}}function c(e){if(!i(e))return;let t=a(e,`startMs`),n=a(e,`endMs`);if(!(t===void 0||n===void 0))return{startMs:t,endMs:n}}function l(e){if(!i(e))return null;let t=a(e,`deviceId`);if(t===void 0)return null;let n=a(e,`lastGeneratedAt`),r=s(e.lastArtifact),o=e.rendering,c=i(o)?{startedAt:a(o,`startedAt`)??0,windowStartMs:a(o,`windowStartMs`)??0,windowEndMs:a(o,`windowEndMs`)??0}:void 0;return{deviceId:t,...n===void 0?{}:{lastGeneratedAt:n},...r===void 0?{}:{lastArtifact:r},...c===void 0?{}:{rendering:c}}}function u(e){if(!i(e))return null;let t=a(e,`deviceId`),n=o(e,`windowKey`),r=a(e,`openedAt`),s=a(e,`closesAt`),c=a(e,`members`),l=a(e,`pending`);return t===void 0||n===void 0||r===void 0||s===void 0||c===void 0||l===void 0?null:{deviceId:t,windowKey:n,openedAt:r,closesAt:s,members:c,pending:l}}function d(e){if(!i(e))return null;let t=o(e,`kind`);if(t===`none`)return{kind:`none`,reason:o(e,`reason`)??``};if(t===`occupancy`){let t=a(e,`deviceId`),n=a(e,`threshold`),r=a(e,`sustainSeconds`);if(t===void 0||n===void 0||r===void 0)return null;let i=o(e,`unavailable`),s=i===`no-snapshot`||i===`zone-absent`?i:void 0,c=a(e,`count`),l=a(e,`observedAt`),u=a(e,`since`),d=o(e,`scope`),f=o(e,`className`),p=o(e,`warning`);return{kind:`occupancy`,deviceId:t,threshold:n,sustainSeconds:r,...d===void 0?{}:{scope:d},...f===void 0?{}:{className:f},...c===void 0?{}:{count:c},...typeof e.occupied==`boolean`?{occupied:e.occupied}:{},...l===void 0?{}:{observedAt:l},...u===void 0?{}:{since:u},...s===void 0?{}:{unavailable:s},...p===void 0?{}:{warning:p}}}if(t===`grouped`){let t=a(e,`groupingSec`);if(t===void 0)return null;if(e.openWindows===null){let n=o(e,`reason`);return{kind:`grouped`,groupingSec:t,openWindows:null,...n===void 0?{}:{reason:n}}}if(!Array.isArray(e.openWindows))return null;let n=[];for(let t of e.openWindows){let e=u(t);if(e===null)return null;n.push(e)}return{kind:`grouped`,groupingSec:t,openWindows:n}}if(t===`timelapse`){let t=Array.isArray(e.devices)?e.devices:[],n=[];for(let e of t){let t=l(e);t!==null&&n.push(t)}let r=c(e.lastWindow),o=e.nextWindow,s=i(o)?{startMs:a(o,`startMs`)??0,endMs:a(o,`endMs`)??null}:void 0;return{kind:`timelapse`,devices:n,...r===void 0?{}:{lastWindow:r},...s===void 0?{}:{nextWindow:s},settleMs:a(e,`settleMs`)??0}}return null}function f(t){let n=Math.max(0,Math.floor(t/6e4));if(n<1)return e.t(`helpers.notificationRuleStatus.lessThanMinute`);if(n<60)return e.t(`helpers.notificationRuleStatus.durMin`,{count:n});let r=Math.floor(n/60),i=n%60;if(r<24)return i===0?e.t(`helpers.notificationRuleStatus.durH`,{count:r}):e.t(`helpers.notificationRuleStatus.durHMin`,{hours:r,minutes:i});let a=Math.floor(r/24),o=r%24;return o===0?e.t(`helpers.notificationRuleStatus.durD`,{count:a}):e.t(`helpers.notificationRuleStatus.durDH`,{days:a,hours:o})}function p(t){if(t<1024)return`${String(t)} B`;let n=t/1024;if(n<1024)return e.t(`helpers.notificationRuleStatus.sizeKb`,{value:n.toFixed(0)});let r=n/1024;return r<1024?e.t(`helpers.notificationRuleStatus.sizeMb`,{value:r.toFixed(1)}):e.t(`helpers.notificationRuleStatus.sizeGb`,{value:(r/1024).toFixed(2)})}function m(e,t){let n=e.scope??`the whole frame`,r=e.className??`objects`;if(e.unavailable!==void 0){let t=e.unavailable===`no-snapshot`?`no live count for this camera yet — the condition fails closed until one arrives`:`“${n}” is not in this camera’s current snapshot — the condition fails closed (deleted zone?)`;return e.warning===void 0?t:`${e.warning} · ${t}`}let i=[`Now: ${String(e.count??0)}/${String(e.threshold)} ${r} in ${n}`,e.occupied===!0?`condition TRUE`:`condition false`];e.since!==void 0&&i.push(`for ${f(Math.max(0,t-e.since))}`),i.push(`holds ${String(e.sustainSeconds)} s before firing`);let a=i.join(` · `);return e.warning===void 0?a:`${e.warning} · ${a}`}function h(t,n,r){if(t.rendering!==void 0)return e.t(`helpers.notificationRuleStatus.tlRendering`,{camera:n,duration:f(Math.max(0,r-t.rendering.startedAt)),from:new Date(t.rendering.windowStartMs).toLocaleString(),to:new Date(t.rendering.windowEndMs).toLocaleString()});if(t.lastGeneratedAt===void 0)return e.t(`helpers.notificationRuleStatus.tlNever`,{camera:n});let i=new Date(t.lastGeneratedAt).toLocaleString(),a=t.lastArtifact;return a===void 0?e.t(`helpers.notificationRuleStatus.tlGone`,{camera:n,when:i}):e.t(`helpers.notificationRuleStatus.tlLast`,{camera:n,when:i,size:p(a.sizeBytes)})}function g(e){return{windows:e.length,waiting:e.reduce((e,t)=>e+t.pending,0)}}export{f as a,h as c,g as i,n,m as o,r,d as s,t};
1
+ import{t as e}from"./i18n-DFz3VmFc.js";var t=`pipeline-analytics`,n=`nc.getRuleStatus`,r=`nc.testRule`;function i(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function a(e,t){let n=e[t];return typeof n==`number`&&Number.isFinite(n)?n:void 0}function o(e,t){let n=e[t];return typeof n==`string`&&n.length>0?n:void 0}function s(e){if(!i(e))return;let t=o(e,`id`),n=o(e,`downloadPath`),r=a(e,`capturedAt`);if(!(t===void 0||n===void 0||r===void 0))return{id:t,mediaType:o(e,`mediaType`)??`video`,sizeBytes:a(e,`sizeBytes`)??0,capturedAt:r,downloadPath:n}}function c(e){if(!i(e))return;let t=a(e,`startMs`),n=a(e,`endMs`);if(!(t===void 0||n===void 0))return{startMs:t,endMs:n}}function l(e){if(!i(e))return null;let t=a(e,`deviceId`);if(t===void 0)return null;let n=a(e,`lastGeneratedAt`),r=s(e.lastArtifact),o=e.rendering,c=i(o)?{startedAt:a(o,`startedAt`)??0,windowStartMs:a(o,`windowStartMs`)??0,windowEndMs:a(o,`windowEndMs`)??0}:void 0;return{deviceId:t,...n===void 0?{}:{lastGeneratedAt:n},...r===void 0?{}:{lastArtifact:r},...c===void 0?{}:{rendering:c}}}function u(e){if(!i(e))return null;let t=a(e,`deviceId`),n=o(e,`windowKey`),r=a(e,`openedAt`),s=a(e,`closesAt`),c=a(e,`members`),l=a(e,`pending`);return t===void 0||n===void 0||r===void 0||s===void 0||c===void 0||l===void 0?null:{deviceId:t,windowKey:n,openedAt:r,closesAt:s,members:c,pending:l}}function d(e){if(!i(e))return null;let t=o(e,`kind`);if(t===`none`)return{kind:`none`,reason:o(e,`reason`)??``};if(t===`occupancy`){let t=a(e,`deviceId`),n=a(e,`threshold`),r=a(e,`sustainSeconds`);if(t===void 0||n===void 0||r===void 0)return null;let i=o(e,`unavailable`),s=i===`no-snapshot`||i===`zone-absent`?i:void 0,c=a(e,`count`),l=a(e,`observedAt`),u=a(e,`since`),d=o(e,`scope`),f=o(e,`className`),p=o(e,`warning`);return{kind:`occupancy`,deviceId:t,threshold:n,sustainSeconds:r,...d===void 0?{}:{scope:d},...f===void 0?{}:{className:f},...c===void 0?{}:{count:c},...typeof e.occupied==`boolean`?{occupied:e.occupied}:{},...l===void 0?{}:{observedAt:l},...u===void 0?{}:{since:u},...s===void 0?{}:{unavailable:s},...p===void 0?{}:{warning:p}}}if(t===`grouped`){let t=a(e,`groupingSec`);if(t===void 0)return null;if(e.openWindows===null){let n=o(e,`reason`);return{kind:`grouped`,groupingSec:t,openWindows:null,...n===void 0?{}:{reason:n}}}if(!Array.isArray(e.openWindows))return null;let n=[];for(let t of e.openWindows){let e=u(t);if(e===null)return null;n.push(e)}return{kind:`grouped`,groupingSec:t,openWindows:n}}if(t===`timelapse`){let t=Array.isArray(e.devices)?e.devices:[],n=[];for(let e of t){let t=l(e);t!==null&&n.push(t)}let r=c(e.lastWindow),o=e.nextWindow,s=i(o)?{startMs:a(o,`startMs`)??0,endMs:a(o,`endMs`)??null}:void 0;return{kind:`timelapse`,devices:n,...r===void 0?{}:{lastWindow:r},...s===void 0?{}:{nextWindow:s},settleMs:a(e,`settleMs`)??0}}return null}function f(t){let n=Math.max(0,Math.floor(t/6e4));if(n<1)return e.t(`helpers.notificationRuleStatus.lessThanMinute`);if(n<60)return e.t(`helpers.notificationRuleStatus.durMin`,{count:n});let r=Math.floor(n/60),i=n%60;if(r<24)return i===0?e.t(`helpers.notificationRuleStatus.durH`,{count:r}):e.t(`helpers.notificationRuleStatus.durHMin`,{hours:r,minutes:i});let a=Math.floor(r/24),o=r%24;return o===0?e.t(`helpers.notificationRuleStatus.durD`,{count:a}):e.t(`helpers.notificationRuleStatus.durDH`,{days:a,hours:o})}function p(t){if(t<1024)return`${String(t)} B`;let n=t/1024;if(n<1024)return e.t(`helpers.notificationRuleStatus.sizeKb`,{value:n.toFixed(0)});let r=n/1024;return r<1024?e.t(`helpers.notificationRuleStatus.sizeMb`,{value:r.toFixed(1)}):e.t(`helpers.notificationRuleStatus.sizeGb`,{value:(r/1024).toFixed(2)})}function m(e,t){let n=e.scope??`the whole frame`,r=e.className??`objects`;if(e.unavailable!==void 0){let t=e.unavailable===`no-snapshot`?`no live count for this camera yet — the condition fails closed until one arrives`:`“${n}” is not in this camera’s current snapshot — the condition fails closed (deleted zone?)`;return e.warning===void 0?t:`${e.warning} · ${t}`}let i=[`Now: ${String(e.count??0)}/${String(e.threshold)} ${r} in ${n}`,e.occupied===!0?`condition TRUE`:`condition false`];e.since!==void 0&&i.push(`for ${f(Math.max(0,t-e.since))}`),i.push(`holds ${String(e.sustainSeconds)} s before firing`);let a=i.join(` · `);return e.warning===void 0?a:`${e.warning} · ${a}`}function h(t,n,r){if(t.rendering!==void 0)return e.t(`helpers.notificationRuleStatus.tlRendering`,{camera:n,duration:f(Math.max(0,r-t.rendering.startedAt)),from:new Date(t.rendering.windowStartMs).toLocaleString(),to:new Date(t.rendering.windowEndMs).toLocaleString()});if(t.lastGeneratedAt===void 0)return e.t(`helpers.notificationRuleStatus.tlNever`,{camera:n});let i=new Date(t.lastGeneratedAt).toLocaleString(),a=t.lastArtifact;return a===void 0?e.t(`helpers.notificationRuleStatus.tlGone`,{camera:n,when:i}):e.t(`helpers.notificationRuleStatus.tlLast`,{camera:n,when:i,size:p(a.sizeBytes)})}function g(e){return{windows:e.length,waiting:e.reduce((e,t)=>e+t.pending,0)}}export{f as a,h as c,g as i,n,m as o,r,d as s,t};