@camera.ui/server 2.1.12 → 2.1.13

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 (627) hide show
  1. package/dist/interface/assets/{404-BDi1TzED.js → 404-CVkDpT0X.js} +1 -1
  2. package/dist/interface/assets/{About-DeHiJp3n.js → About-CUgIR2xi.js} +1 -1
  3. package/dist/interface/assets/Automation-BYRKp0AC.js +3 -0
  4. package/dist/interface/assets/{AutomationImport-B3bCE-yS.js → AutomationImport-L_OzZZgi.js} +2 -2
  5. package/dist/interface/assets/{AutomationStore-BoWd7IW9.js → AutomationStore-DaNQqJoT.js} +2 -2
  6. package/dist/interface/assets/AutomationStoreDetail-Seor4Ohh.js +2 -0
  7. package/dist/interface/assets/Automations-BMQIkpUa.js +2 -0
  8. package/dist/interface/assets/Camera-3umh2Xjc.js +2 -0
  9. package/dist/interface/assets/{CameraConsole-C8XSUr7X.js → CameraConsole-BLlgkKDp.js} +2 -2
  10. package/dist/interface/assets/Cameras-DvK8E1Vk.js +651 -0
  11. package/dist/interface/assets/{Camview-Lp3QU0de.css → Camview-DIEa8IRE.css} +1 -1
  12. package/dist/interface/assets/Camview-DSO2lWxT.js +1 -0
  13. package/dist/interface/assets/{CertificateUpload-Cg89m_cM.js → CertificateUpload-BsnlaxRS.js} +1 -1
  14. package/dist/interface/assets/{Config-BDa4dy1w.js → Config-BXj83-No.js} +1 -1
  15. package/dist/interface/assets/{ConfigActionCameraControl-DNmRpuPG.js → ConfigActionCameraControl-BGfvT6ME.js} +1 -1
  16. package/dist/interface/assets/{ConfigActionDelay-Reg_tEG_.js → ConfigActionDelay-D10_C6yo.js} +1 -1
  17. package/dist/interface/assets/{ConfigActionHttp-CqRBOSa3.js → ConfigActionHttp-DL4jh9Wz.js} +1 -1
  18. package/dist/interface/assets/{ConfigActionImageInput-GWECLY4I.js → ConfigActionImageInput-DVvMUzrT.js} +1 -1
  19. package/dist/interface/assets/{ConfigActionMqtt-Di4ZTig8.js → ConfigActionMqtt-BqK3q4cC.js} +1 -1
  20. package/dist/interface/assets/ConfigActionNotification-D_H5Q68D.js +1 -0
  21. package/dist/interface/assets/{ConfigActionNotificationControl-B_p8dnc4.js → ConfigActionNotificationControl-BnTJl4dr.js} +1 -1
  22. package/dist/interface/assets/{ConfigActionOutput-B31cj20h.js → ConfigActionOutput-udY95_rH.js} +1 -1
  23. package/dist/interface/assets/{ConfigActionPlugin-DCUhDIiJ.js → ConfigActionPlugin-C51LrkZb.js} +1 -1
  24. package/dist/interface/assets/{ConfigActionSensor-De63wYQU.js → ConfigActionSensor-B2tFf8x6.js} +1 -1
  25. package/dist/interface/assets/{ConfigActionSnapshot-DZJDjOMT.js → ConfigActionSnapshot-BzmeByH3.js} +1 -1
  26. package/dist/interface/assets/{ConfigActionVariable-Q3QXVMbR.js → ConfigActionVariable-BagC3lj5.js} +1 -1
  27. package/dist/interface/assets/{ConfigConditionIfElse-DKonPxli.js → ConfigConditionIfElse-CQOZJ19Y.js} +1 -1
  28. package/dist/interface/assets/{ConfigConditionSensorState-C_J6ERzt.js → ConfigConditionSensorState-SGYpkNP5.js} +1 -1
  29. package/dist/interface/assets/ConfigConditionSwitch-BXR6xUN8.js +1 -0
  30. package/dist/interface/assets/{ConfigConditionTime-CRDI58_P.js → ConfigConditionTime-BrEhw1R9.js} +1 -1
  31. package/dist/interface/assets/{ConfigSensorValueInput-C3ep90ds.js → ConfigSensorValueInput-DezTWtbA.js} +1 -1
  32. package/dist/interface/assets/{ConfigTriggerDetection-CbVFlyI8.js → ConfigTriggerDetection-xo0imE_3.js} +1 -1
  33. package/dist/interface/assets/ConfigTriggerGeofence-BmJpP4Ew.js +1 -0
  34. package/dist/interface/assets/{ConfigTriggerManual-7kAukUgk.js → ConfigTriggerManual-CmAdnZQK.js} +1 -1
  35. package/dist/interface/assets/{ConfigTriggerMqtt-DUCZZt2j.js → ConfigTriggerMqtt-F19dhVm1.js} +1 -1
  36. package/dist/interface/assets/{ConfigTriggerSchedule-lAiLdu1W.js → ConfigTriggerSchedule-BGci3Aed.js} +1 -1
  37. package/dist/interface/assets/{ConfigTriggerSensor-DIhCfhcN.js → ConfigTriggerSensor-DSEDGB2X.js} +1 -1
  38. package/dist/interface/assets/{ConfigTriggerSystem-DZu6Fp2j.js → ConfigTriggerSystem-DPy8Zir4.js} +1 -1
  39. package/dist/interface/assets/{ConfigTriggerWebhook-D3a5f6vl.js → ConfigTriggerWebhook-Dv0Kmwg8.js} +1 -1
  40. package/dist/interface/assets/Console-Cuh-Vc4u.js +1 -0
  41. package/dist/interface/assets/{CuiAutomationRunsDialog-CgzW_s6M.js → CuiAutomationRunsDialog-B1UeVC6Q.js} +1 -1
  42. package/dist/interface/assets/{CuiBottomSheet-C7UdIQu1.js → CuiBottomSheet-BjkDE7_9.js} +1 -1
  43. package/dist/interface/assets/CuiBottomSheet-C9G-NoMU.js +1 -0
  44. package/dist/interface/assets/CuiCameraPipCard-nrln9zp-.js +1 -0
  45. package/dist/interface/assets/CuiCameraRecordings-B7BhgPpP.css +1 -0
  46. package/dist/interface/assets/CuiCameraRecordings-HKwhFpea.js +1 -0
  47. package/dist/interface/assets/{CuiCameraShares-D3fAJNWF.js → CuiCameraShares-D-fhJCro.js} +1 -1
  48. package/dist/interface/assets/{CuiCameraTable-ApLSxeO4.js → CuiCameraTable-BTVfK-HY.js} +2 -2
  49. package/dist/interface/assets/CuiCameraTable-DGg4_c_u.js +1 -0
  50. package/dist/interface/assets/{CuiChartTable-BeEij8SL.js → CuiChartTable-DAUYP-EW.js} +1 -1
  51. package/dist/interface/assets/{CuiConsole-CMxpzZ51.js → CuiConsole-C7aZj4wK.js} +2 -2
  52. package/dist/interface/assets/{CuiDataTable-f_QVzRqq.js → CuiDataTable-1B8aaZQO.js} +1 -1
  53. package/dist/interface/assets/CuiLightControl-CSA1PYc8.js +1 -0
  54. package/dist/interface/assets/{CuiList-C3oJKyJC.js → CuiList-D-hOSNou.js} +1 -1
  55. package/dist/interface/assets/CuiPluginCard-D1Hkyiy4.js +2 -0
  56. package/dist/interface/assets/{CuiPluginCategoryChip-EJhup0nM.js → CuiPluginCategoryChip-qnn-HD6g.js} +1 -1
  57. package/dist/interface/assets/{CuiPluginOAuthButton-CbPU8trR.js → CuiPluginOAuthButton-CXextmBv.js} +2 -2
  58. package/dist/interface/assets/{CuiPluginTrustBadge-B4bxBl3A.js → CuiPluginTrustBadge-C-8MN2Qc.js} +1 -1
  59. package/dist/interface/assets/{CuiQRCode-CycvR5wz.js → CuiQRCode-D1qmU4qU.js} +1 -1
  60. package/dist/interface/assets/CuiSchema-DnHOpBg4.js +1 -0
  61. package/dist/interface/assets/{CuiTopNavbarItem-D4qP-WpK.js → CuiTopNavbarItem-Csb3O1-n.js} +1 -1
  62. package/dist/interface/assets/Faces-C0QpQxuF.js +1 -0
  63. package/dist/interface/assets/FirstSteps-BqZQovY7.js +1 -0
  64. package/dist/interface/assets/{Floorplan-Da5gt435.css → Floorplan-Bxhdg4C2.css} +1 -1
  65. package/dist/interface/assets/Floorplan-CW-W5ZkV.js +1 -0
  66. package/dist/interface/assets/Instances-VSkiqKKf.js +1 -0
  67. package/dist/interface/assets/{Logs-BBZMBN6a.js → Logs-DQFS2AUi.js} +2 -2
  68. package/dist/interface/assets/{Menu-CRLIo98F.js → Menu-COvvZ_vz.js} +1 -1
  69. package/dist/interface/assets/Metrics-cvbQzChA.js +9 -0
  70. package/dist/interface/assets/OAuthDeviceFlow-3ZC2QCAs.js +1 -0
  71. package/dist/interface/assets/Plugin-DjQd3Y9J.js +1 -0
  72. package/dist/interface/assets/{PluginConsole-D2SUwFDo.js → PluginConsole-BaUkghQD.js} +2 -2
  73. package/dist/interface/assets/PluginDetail-Ofj1hk2q.js +2 -0
  74. package/dist/interface/assets/{PluginSchema-U4q4c9ak.js → PluginSchema-f-ER7hlx.js} +1 -1
  75. package/dist/interface/assets/PluginSearch-Ce3S1HDv.js +1 -0
  76. package/dist/interface/assets/PluginSearch-D5eQsj5p.js +2 -0
  77. package/dist/interface/assets/{PluginUpdateProgress-DWcs6NlJ.js → PluginUpdateProgress-BfYNLvVX.js} +1 -1
  78. package/dist/interface/assets/Plugins-DtDN9z0k.js +1 -0
  79. package/dist/interface/assets/Recordings-CQGnTZFt.js +1 -0
  80. package/dist/interface/assets/SensorEdit-BZtiJyoI.js +1 -0
  81. package/dist/interface/assets/{SensorHistory-B16b4-Um.js → SensorHistory-BFkT3teu.js} +1 -1
  82. package/dist/interface/assets/{Sensors-BsLHVGqk.css → Sensors-CaKl4PQY.css} +1 -1
  83. package/dist/interface/assets/Sensors-DSR-AUqb.js +2 -0
  84. package/dist/interface/assets/{Settings-BOd4EPix.js → Settings-DV3JZFjc.js} +1 -1
  85. package/dist/interface/assets/SettingsAccount-Cd5JPsv2.js +1 -0
  86. package/dist/interface/assets/SettingsAccount-D4ib7Asi.js +1 -0
  87. package/dist/interface/assets/SettingsAppearance-BYsQmdyo.js +1 -0
  88. package/dist/interface/assets/{SettingsAppearance-DZGa_aiI.js → SettingsAppearance-CC6StMAi.js} +1 -1
  89. package/dist/interface/assets/{SettingsBackup-DyblUiF8.js → SettingsBackup-BcVFCbhB.js} +1 -1
  90. package/dist/interface/assets/{SettingsList-DM0yAFkS.js → SettingsList-04HiM3OT.js} +1 -1
  91. package/dist/interface/assets/SettingsMqtt-XaJdsYPn.js +1 -0
  92. package/dist/interface/assets/SettingsNotifications-CUoYMHwr.js +1 -0
  93. package/dist/interface/assets/{SettingsPermissions-w2ptf4wy.js → SettingsPermissions-gFDNSlTh.js} +1 -1
  94. package/dist/interface/assets/SettingsRecordings-Bw64UZWe.js +1 -0
  95. package/dist/interface/assets/SettingsRemote-BnFW-uT-.js +2 -0
  96. package/dist/interface/assets/{SettingsSystem-BsXkYsRC.js → SettingsSystem-Cdjg5GNY.js} +2 -2
  97. package/dist/interface/assets/{SettingsUsers-BSsmo6T0.js → SettingsUsers-DphPL78H.js} +1 -1
  98. package/dist/interface/assets/{Terminal-cU-8dVL_.js → Terminal-CrNjqzTs.js} +2 -2
  99. package/dist/interface/assets/{Updates-dw0MwgsN.js → Updates-V5B9LSD-.js} +1 -1
  100. package/dist/interface/assets/{VariableInput-JSpyezJa.js → VariableInput-n0TxKRqq.js} +1 -1
  101. package/dist/interface/assets/{VariableSuggestions-DZbWgsck.js → VariableSuggestions-C4LmaCAo.js} +1 -1
  102. package/dist/interface/assets/{VersionsHandler-C_mzsgfj.js → VersionsHandler-BPocJcb0.js} +2 -2
  103. package/dist/interface/assets/{VirtualSensorCreate-3mJ8c6Tl.js → VirtualSensorCreate-BPvbrzGS.js} +1 -1
  104. package/dist/interface/assets/Workers-DEvQNzUi.js +2 -0
  105. package/dist/interface/assets/{lightbulb-outline-BtraGBwO.js → alert-outline-DtiCgufF.js} +1 -1
  106. package/dist/interface/assets/{api-COPnjVh2.js → api-BXmkXIE8.js} +1 -1
  107. package/dist/interface/assets/api-DO5wBndX.css +2 -0
  108. package/dist/interface/assets/api-x8zXlvtm.js +4 -0
  109. package/dist/interface/assets/{auth-owqLfbdn.js → auth-BKJnreuu.js} +1 -1
  110. package/dist/interface/assets/{automations-Bql07EFx.js → automations-CVuIXlAQ.js} +1 -1
  111. package/dist/interface/assets/cameraSources-C3cl6FVD.js +1 -0
  112. package/dist/interface/assets/cloudHandoff-BZvvihwX.js +1 -0
  113. package/dist/interface/assets/{config-soN-D-nC.js → config-Sw94rZxF.js} +1 -1
  114. package/dist/interface/assets/{flowSchema-BFZ6n5Su.js → flowSchema-BOrDqdeG.js} +1 -1
  115. package/dist/interface/assets/{intercomService-Bjn0OsVT.js → intercomService-CfCIMUlA.js} +1 -1
  116. package/dist/interface/assets/main-Jl93jEZK.js +3 -0
  117. package/dist/interface/assets/{main-BF8Mg561.css → main-Qqk3RyYP.css} +1 -1
  118. package/dist/interface/assets/{mqtt-CMdU36uB.js → mqtt-BaCMJJk_.js} +1 -1
  119. package/dist/interface/assets/nodeDefinitions-a8iyp3yk.js +1 -0
  120. package/dist/interface/assets/{notifications-C_CbT9aA.js → notifications-l-x8vA4D.js} +1 -1
  121. package/dist/interface/assets/{plugins-CGDE1O2F.js → plugins-GA9v-eQx.js} +1 -1
  122. package/dist/interface/assets/{rooms-BnJo8QbU.js → rooms-DX7PBdpP.js} +1 -1
  123. package/dist/interface/assets/sensorIcons-BTgouEmX.js +1 -0
  124. package/dist/interface/assets/{sensors-Bshdwbki.js → sensors-LJkBCaMk.js} +1 -1
  125. package/dist/interface/assets/{server-CaRDiFTF.js → server-dOx3q8o1.js} +1 -1
  126. package/dist/interface/assets/theme-DgrclY58.js +1 -0
  127. package/dist/interface/assets/types-CSWXRySW.js +1 -0
  128. package/dist/interface/assets/{types-Dwu7_YVv.js → types-D19FOdYo.js} +1 -1
  129. package/dist/interface/assets/types-Yq0FH8fa.js +1 -0
  130. package/dist/interface/assets/ungrouped-B_u9a5wm.js +1 -0
  131. package/dist/interface/assets/{ungrouped-uv64nr5n.css → ungrouped-DTYy_Pud.css} +1 -1
  132. package/dist/interface/assets/{updates-DelnBMM3.js → updates-BVN6uGXy.js} +1 -1
  133. package/dist/interface/assets/{useAppVersion-DeQeb6UF.js → useAppVersion-BUDIkitU.js} +1 -1
  134. package/dist/interface/assets/useBackupRestore-CnSZNCC8.js +1 -0
  135. package/dist/interface/assets/{useCameraOptions-DgMpN00_.js → useCameraOptions-Cgb4eV2d.js} +1 -1
  136. package/dist/interface/assets/{useLogsSocket-BKPqNCOv.js → useLogsSocket-CGKtL049.js} +1 -1
  137. package/dist/interface/assets/{useNavLayout-BJhl8UVM.js → useNavLayout-Dcngcb73.js} +1 -1
  138. package/dist/interface/assets/{usePermissions-Eyt2t6_8.js → usePermissions-zJF4LCPm.js} +1 -1
  139. package/dist/interface/assets/{usePluginUpdates-wfckuNy_.js → usePluginUpdates-DP--lRxm.js} +1 -1
  140. package/dist/interface/assets/{usePushRegistration-jcfB8ujf.js → usePushRegistration-BhPBp28J.js} +1 -1
  141. package/dist/interface/assets/{useServerRestart-XnqHaTb7.js → useServerRestart-BpCDYbPH.js} +1 -1
  142. package/dist/interface/assets/{useStreamStatus-8bE5h_fQ.js → useStreamStatus-BoVMk6KT.js} +1 -1
  143. package/dist/interface/assets/{useTabSwipe-DxZfseQO.js → useTabSwipe--t-Qqa31.js} +1 -1
  144. package/dist/interface/assets/{useUpdateChannel-CjxdE3h1.js → useUpdateChannel-DAuhU-__.js} +1 -1
  145. package/dist/interface/assets/{useUpdatesSocket-DFt7_yr8.js → useUpdatesSocket-C-j3b3tU.js} +1 -1
  146. package/dist/interface/assets/{useUserOptions-DStio0f5.js → useUserOptions-CcLVC73O.js} +1 -1
  147. package/dist/interface/assets/vendor-cameraui-phsC2Mmi.js +2326 -0
  148. package/dist/interface/assets/vendor-core-C0ZWoGJD.js +1 -0
  149. package/dist/interface/assets/{vendor-primevue-DXXRO7Z5.js → vendor-primevue-nPess0JU.js} +76 -76
  150. package/dist/interface/assets/vendor-zod-CJ7LAMqQ.js +99 -0
  151. package/dist/interface/ha/404-PedrGUiq.js +60 -0
  152. package/dist/interface/ha/About-l5fkBqG7.js +55 -0
  153. package/dist/interface/ha/Automation-CaSlGjT4.js +2015 -0
  154. package/dist/interface/ha/AutomationImport-BNavtjDq.js +206 -0
  155. package/dist/interface/ha/AutomationStore-BVSW8TVt.js +335 -0
  156. package/dist/interface/ha/AutomationStoreDetail-DHZwlpz0.js +122 -0
  157. package/dist/interface/ha/Automations-CZ2jvH6d.js +437 -0
  158. package/dist/interface/ha/Camera-CggUrrPm.js +625 -0
  159. package/dist/interface/ha/CameraConsole-DpzF48TF.js +52 -0
  160. package/dist/interface/ha/Cameras-K-kQF5tG.js +1970 -0
  161. package/dist/interface/ha/Camview-zJVP7JwZ.js +1337 -0
  162. package/dist/interface/ha/CertificateUpload-DbBQ87OT.js +117 -0
  163. package/dist/interface/ha/Config-Bsud2DYI.js +356 -0
  164. package/dist/interface/ha/ConfigActionCameraControl-Czkfw_NO.js +152 -0
  165. package/dist/interface/ha/ConfigActionDelay-BHug57u7.js +61 -0
  166. package/dist/interface/ha/ConfigActionHttp-LfbxbfgG.js +134 -0
  167. package/dist/interface/ha/ConfigActionImageInput-Ce2GJzCm.js +171 -0
  168. package/dist/interface/ha/ConfigActionMqtt-KmCGcNZb.js +81 -0
  169. package/dist/interface/ha/ConfigActionNotification-DUMY_3IT.js +199 -0
  170. package/dist/interface/ha/ConfigActionNotificationControl-B9Z2i5WR.js +111 -0
  171. package/dist/interface/ha/ConfigActionOutput-CX-ZQjcs.js +98 -0
  172. package/dist/interface/ha/ConfigActionPlugin-y5PuPwdk.js +172 -0
  173. package/dist/interface/ha/ConfigActionSensor-CC39Rpxi.js +139 -0
  174. package/dist/interface/ha/ConfigActionSnapshot-CWyhx6rk.js +48 -0
  175. package/dist/interface/ha/ConfigActionVariable-BNRLCthd.js +88 -0
  176. package/dist/interface/ha/ConfigConditionIfElse-BayS5_Dr.js +124 -0
  177. package/dist/interface/ha/ConfigConditionSensorState-DLXNqL-R.js +192 -0
  178. package/dist/interface/ha/ConfigConditionSwitch-BBesQgWi.js +128 -0
  179. package/dist/interface/ha/ConfigConditionTime-aD8mk2aa.js +95 -0
  180. package/dist/interface/ha/ConfigSensorValueInput-5JzesEuD.js +169 -0
  181. package/dist/interface/ha/ConfigTriggerDetection--BcjPuyh.js +241 -0
  182. package/dist/interface/ha/ConfigTriggerGeofence-BZi5a2Yv.js +4896 -0
  183. package/dist/interface/ha/ConfigTriggerManual-ConxhgNx.js +14 -0
  184. package/dist/interface/ha/ConfigTriggerMqtt-B6C9injX.js +134 -0
  185. package/dist/interface/ha/ConfigTriggerSchedule-Vv5iNKL3.js +72 -0
  186. package/dist/interface/ha/ConfigTriggerSensor-beixHfSD.js +73 -0
  187. package/dist/interface/ha/ConfigTriggerSystem-BHDpn485.js +188 -0
  188. package/dist/interface/ha/ConfigTriggerWebhook-D9cuCU_p.js +94 -0
  189. package/dist/interface/ha/Console-CbQnrt6X.js +348 -0
  190. package/dist/interface/ha/CuiAutomationRunsDialog-CckgCRNS.js +130 -0
  191. package/dist/interface/ha/CuiBottomSheet-juhGdTsO.js +270 -0
  192. package/dist/interface/ha/CuiCameraRecordings-CLzZiXhk.js +552 -0
  193. package/dist/interface/ha/CuiCameraShares-Dzx1jZGE.js +121 -0
  194. package/dist/interface/ha/CuiCameraTable-ug0ik9N-.js +153 -0
  195. package/dist/interface/ha/CuiChartTable-7EnAA-WG.js +6784 -0
  196. package/dist/interface/ha/CuiConsole-DOnyBSL7.js +244 -0
  197. package/dist/interface/ha/CuiDataTable-Cx9GBqsV.js +8725 -0
  198. package/dist/interface/ha/CuiList-C45psxFZ.js +57 -0
  199. package/dist/interface/ha/CuiMarkdownContent-D7sCtnNQ.js +4716 -0
  200. package/dist/interface/ha/CuiPluginCard-ChLIfOms.js +769 -0
  201. package/dist/interface/ha/CuiPluginOAuthButton-B6vPOEx2.js +105 -0
  202. package/dist/interface/ha/CuiPluginTrustBadge-BvPV93D0.js +123 -0
  203. package/dist/interface/ha/CuiQRCode-Djr3z54t.js +86 -0
  204. package/dist/interface/ha/CuiSchema-dl7TXv-k.js +963 -0
  205. package/dist/interface/ha/CuiTopNavbarItem-BXoda5eM.js +141 -0
  206. package/dist/interface/ha/Faces-DnqWMGWW.js +1281 -0
  207. package/dist/interface/ha/FirstSteps-CFawb017.js +251 -0
  208. package/dist/interface/ha/Floorplan-Mv-Ootly.js +3677 -0
  209. package/dist/interface/ha/Instances-DJjZ3btI.js +680 -0
  210. package/dist/interface/ha/Logs-CLFhW1xq.js +418 -0
  211. package/dist/interface/ha/Menu-D7QTRqMJ.js +161 -0
  212. package/dist/interface/ha/Metrics-CCvFtezL.js +1330 -0
  213. package/dist/interface/ha/OAuthDeviceFlow-4YupTNsK.js +112 -0
  214. package/dist/interface/ha/Plugin-BHU0yhBa.js +1404 -0
  215. package/dist/interface/ha/PluginConsole-CNrLuFQM.js +56 -0
  216. package/dist/interface/ha/PluginDetail-Bm3X-xN4.js +230 -0
  217. package/dist/interface/ha/PluginSearch-C0be8cYD.js +475 -0
  218. package/dist/interface/ha/PluginUpdateProgress-DVvgYMLG.js +34 -0
  219. package/dist/interface/ha/Plugins-R-uz0Se-.js +705 -0
  220. package/dist/interface/ha/Recordings-DAwbihs8.js +1463 -0
  221. package/dist/interface/ha/SensorEdit-BxE1cRLR.js +1460 -0
  222. package/dist/interface/ha/SensorHistory-DUGlH2pU.js +54 -0
  223. package/dist/interface/ha/Sensors-Cax5RlPH.js +1358 -0
  224. package/dist/interface/ha/Settings-DKtlCoyz.js +218 -0
  225. package/dist/interface/ha/SettingsAccount-2e_Vjpev.js +970 -0
  226. package/dist/interface/ha/SettingsAppearance-DCm60FhX.js +220 -0
  227. package/dist/interface/ha/SettingsBackup-CiM_nNWt.js +556 -0
  228. package/dist/interface/ha/SettingsList-D4D3cmLo.js +40 -0
  229. package/dist/interface/ha/SettingsMqtt-CID4L0PD.js +526 -0
  230. package/dist/interface/ha/SettingsNotifications-DGJkhm8T.js +529 -0
  231. package/dist/interface/ha/SettingsPermissions-Cd0rtgli.js +84 -0
  232. package/dist/interface/ha/SettingsRecordings-pR4L0wgy.js +151 -0
  233. package/dist/interface/ha/SettingsRemote-CYg-LSQK.js +1810 -0
  234. package/dist/interface/ha/SettingsSystem-BeYJN1Ut.js +376 -0
  235. package/dist/interface/ha/SettingsUsers-F4CZggSR.js +379 -0
  236. package/dist/interface/ha/Terminal-iQahUx9P.js +631 -0
  237. package/dist/interface/ha/Updates-ClQ77p-o.js +356 -0
  238. package/dist/interface/ha/VariableInput-BOHBmNff.js +52 -0
  239. package/dist/interface/ha/VariableSuggestions-BE06z6SW.js +201 -0
  240. package/dist/interface/ha/VersionsHandler-Cx9u0oj8.js +211 -0
  241. package/dist/interface/ha/VirtualSensorCreate-CvSzLo4N.js +101 -0
  242. package/dist/interface/ha/Workers-CEJtdSu-.js +765 -0
  243. package/dist/interface/ha/accordion-BT2wHwK8.js +577 -0
  244. package/dist/interface/ha/account-B1xL2wxD.js +19 -0
  245. package/dist/interface/ha/ace-Dh61T4RV.js +13238 -0
  246. package/dist/interface/ha/ace.config-HyzcNHkM.js +1429 -0
  247. package/dist/interface/ha/alert-circle-CLRn5GAd.js +19 -0
  248. package/dist/interface/ha/alert-outline-CGTMAqXf.js +75 -0
  249. package/dist/interface/ha/api-BmNBy1ay.js +29 -0
  250. package/dist/interface/ha/api-CWJkvtnM.js +60866 -0
  251. package/dist/interface/ha/arrow-left-DkvcResi.js +19 -0
  252. package/dist/interface/ha/auth-X6tkVYJs.js +271 -0
  253. package/dist/interface/ha/autocomplete-L_jK3s3m.js +1373 -0
  254. package/dist/interface/ha/automationBlueprint-D1TiCF7R.js +249 -0
  255. package/dist/interface/ha/back-filled-Cxzg5vQg.js +20 -0
  256. package/dist/interface/ha/base-D_LAf3cS.js +26 -0
  257. package/dist/interface/ha/base-c1lsE5TW.js +125 -0
  258. package/dist/interface/ha/bell-ring-xrXdzNHW.js +19 -0
  259. package/dist/interface/ha/brain-DyOOk3m3.js +19 -0
  260. package/dist/interface/ha/browser-Bxx7joo_.js +1227 -0
  261. package/dist/interface/ha/browserconfig.xml +11 -0
  262. package/dist/interface/ha/button-BlYuI0Q7.js +406 -0
  263. package/dist/interface/ha/cameraui-cards.js +190 -0
  264. package/dist/interface/ha/cards-CNOyNWMA.js +13316 -0
  265. package/dist/interface/ha/cctv-Bz6BH0ns.js +19 -0
  266. package/dist/interface/ha/check-circle-D_wDxrLs.js +19 -0
  267. package/dist/interface/ha/chevron-down-P5MtUhJO.js +19 -0
  268. package/dist/interface/ha/chip-DxGABeun.js +149 -0
  269. package/dist/interface/ha/clock-outline-JxApewmA.js +19 -0
  270. package/dist/interface/ha/close-Eq3txTBS.js +19 -0
  271. package/dist/interface/ha/close-circle-C2nTtN_-.js +19 -0
  272. package/dist/interface/ha/config-E4Jkelkr.js +116 -0
  273. package/dist/interface/ha/content-copy-DpPXKtKE.js +19 -0
  274. package/dist/interface/ha/copy-C48Ur26H.js +22 -0
  275. package/dist/interface/ha/datepicker-BuvKhBWJ.js +3236 -0
  276. package/dist/interface/ha/definitions-E-sY7Cxg.js +23 -0
  277. package/dist/interface/ha/delete-D-m8mqly.js +19 -0
  278. package/dist/interface/ha/dist-B7lgvbyI.js +279 -0
  279. package/dist/interface/ha/dist-Ca9_5rzq.js +3457 -0
  280. package/dist/interface/ha/divider-jkWvVbPJ.js +110 -0
  281. package/dist/interface/ha/download-Cnr7IQKX.js +19 -0
  282. package/dist/interface/ha/esm-1sIZN4t7.js +6 -0
  283. package/dist/interface/ha/esm-6hnPZcZr.js +15 -0
  284. package/dist/interface/ha/esm-B72ViJ7F.js +5 -0
  285. package/dist/interface/ha/esm-BGlkcEes.js +156 -0
  286. package/dist/interface/ha/esm-BKPZuThK.js +5 -0
  287. package/dist/interface/ha/esm-BMx7MsZ_.js +15 -0
  288. package/dist/interface/ha/esm-CChFtwcx.js +21 -0
  289. package/dist/interface/ha/esm-CMTmAdHP.js +5 -0
  290. package/dist/interface/ha/esm-CkoEL9YX.js +7 -0
  291. package/dist/interface/ha/esm-CvxDASXR.js +23 -0
  292. package/dist/interface/ha/esm-Demxl4zQ.js +5 -0
  293. package/dist/interface/ha/esm-DiBhi9zp.js +5 -0
  294. package/dist/interface/ha/esm-XFPB9fYb.js +15 -0
  295. package/dist/interface/ha/eventLabels-B4C1_4vT.js +42 -0
  296. package/dist/interface/ha/eye-off-AdumIw0H.js +33 -0
  297. package/dist/interface/ha/eye-off-outline-DO3xfiua.js +19 -0
  298. package/dist/interface/ha/fonts/InterVariable.woff2 +0 -0
  299. package/dist/interface/ha/history-BoZc8mgf.js +19 -0
  300. package/dist/interface/ha/home-am0tRTsk.js +19 -0
  301. package/dist/interface/ha/information-outline-DIdNxPCN.js +19 -0
  302. package/dist/interface/ha/inputicon-6-vaPLbw.js +324 -0
  303. package/dist/interface/ha/inputnumber-B1Buq8Nc.js +1033 -0
  304. package/dist/interface/ha/inputtext-DGIESrd0.js +257 -0
  305. package/dist/interface/ha/intercomService-jB2mTgsn.js +1406 -0
  306. package/dist/interface/ha/message-C8U_kMBA.js +244 -0
  307. package/dist/interface/ha/minus-DKa9TXat.js +19 -0
  308. package/dist/interface/ha/minus-QyTgaT70.js +46 -0
  309. package/dist/interface/ha/mqtt-BmDCmG9h.js +56 -0
  310. package/dist/interface/ha/multiselect-BbgV_fPx.js +1492 -0
  311. package/dist/interface/ha/native-BaNeloQn.js +35 -0
  312. package/dist/interface/ha/native-C8PbNqsJ.js +29 -0
  313. package/dist/interface/ha/notifications-B51yvrGL.js +159 -0
  314. package/dist/interface/ha/og-share.png +0 -0
  315. package/dist/interface/ha/pencil-outline-BqfTDXIh.js +19 -0
  316. package/dist/interface/ha/pinia-3D39Do4a.js +6934 -0
  317. package/dist/interface/ha/platformLabels-C3d1PLg-.js +27 -0
  318. package/dist/interface/ha/plugin-DAGqBiG_.js +38 -0
  319. package/dist/interface/ha/plugins-dkWbXWVM.js +592 -0
  320. package/dist/interface/ha/plus-CNdrByQb.js +46 -0
  321. package/dist/interface/ha/plus-d_caPq5l.js +19 -0
  322. package/dist/interface/ha/progressbar-CIoPoMSe.js +95 -0
  323. package/dist/interface/ha/protocol-BB4jdtUC-K1r3LFCq.js +706 -0
  324. package/dist/interface/ha/pwa/apple-splash-landscape-dark-1136x640.png +0 -0
  325. package/dist/interface/ha/pwa/apple-splash-landscape-dark-1334x750.png +0 -0
  326. package/dist/interface/ha/pwa/apple-splash-landscape-dark-1792x828.png +0 -0
  327. package/dist/interface/ha/pwa/apple-splash-landscape-dark-2048x1536.png +0 -0
  328. package/dist/interface/ha/pwa/apple-splash-landscape-dark-2160x1620.png +0 -0
  329. package/dist/interface/ha/pwa/apple-splash-landscape-dark-2208x1242.png +0 -0
  330. package/dist/interface/ha/pwa/apple-splash-landscape-dark-2224x1668.png +0 -0
  331. package/dist/interface/ha/pwa/apple-splash-landscape-dark-2388x1668.png +0 -0
  332. package/dist/interface/ha/pwa/apple-splash-landscape-dark-2436x1125.png +0 -0
  333. package/dist/interface/ha/pwa/apple-splash-landscape-dark-2532x1170.png +0 -0
  334. package/dist/interface/ha/pwa/apple-splash-landscape-dark-2556x1179.png +0 -0
  335. package/dist/interface/ha/pwa/apple-splash-landscape-dark-2688x1242.png +0 -0
  336. package/dist/interface/ha/pwa/apple-splash-landscape-dark-2732x2048.png +0 -0
  337. package/dist/interface/ha/pwa/apple-splash-landscape-dark-2778x1284.png +0 -0
  338. package/dist/interface/ha/pwa/apple-splash-landscape-dark-2796x1290.png +0 -0
  339. package/dist/interface/ha/pwa/apple-splash-landscape-light-1136x640.png +0 -0
  340. package/dist/interface/ha/pwa/apple-splash-landscape-light-1334x750.png +0 -0
  341. package/dist/interface/ha/pwa/apple-splash-landscape-light-1792x828.png +0 -0
  342. package/dist/interface/ha/pwa/apple-splash-landscape-light-2048x1536.png +0 -0
  343. package/dist/interface/ha/pwa/apple-splash-landscape-light-2160x1620.png +0 -0
  344. package/dist/interface/ha/pwa/apple-splash-landscape-light-2208x1242.png +0 -0
  345. package/dist/interface/ha/pwa/apple-splash-landscape-light-2224x1668.png +0 -0
  346. package/dist/interface/ha/pwa/apple-splash-landscape-light-2388x1668.png +0 -0
  347. package/dist/interface/ha/pwa/apple-splash-landscape-light-2436x1125.png +0 -0
  348. package/dist/interface/ha/pwa/apple-splash-landscape-light-2532x1170.png +0 -0
  349. package/dist/interface/ha/pwa/apple-splash-landscape-light-2556x1179.png +0 -0
  350. package/dist/interface/ha/pwa/apple-splash-landscape-light-2688x1242.png +0 -0
  351. package/dist/interface/ha/pwa/apple-splash-landscape-light-2732x2048.png +0 -0
  352. package/dist/interface/ha/pwa/apple-splash-landscape-light-2778x1284.png +0 -0
  353. package/dist/interface/ha/pwa/apple-splash-landscape-light-2796x1290.png +0 -0
  354. package/dist/interface/ha/pwa/apple-splash-portrait-dark-1125x2436.png +0 -0
  355. package/dist/interface/ha/pwa/apple-splash-portrait-dark-1170x2532.png +0 -0
  356. package/dist/interface/ha/pwa/apple-splash-portrait-dark-1179x2556.png +0 -0
  357. package/dist/interface/ha/pwa/apple-splash-portrait-dark-1242x2208.png +0 -0
  358. package/dist/interface/ha/pwa/apple-splash-portrait-dark-1242x2688.png +0 -0
  359. package/dist/interface/ha/pwa/apple-splash-portrait-dark-1284x2778.png +0 -0
  360. package/dist/interface/ha/pwa/apple-splash-portrait-dark-1290x2796.png +0 -0
  361. package/dist/interface/ha/pwa/apple-splash-portrait-dark-1536x2048.png +0 -0
  362. package/dist/interface/ha/pwa/apple-splash-portrait-dark-1620x2160.png +0 -0
  363. package/dist/interface/ha/pwa/apple-splash-portrait-dark-1668x2224.png +0 -0
  364. package/dist/interface/ha/pwa/apple-splash-portrait-dark-1668x2388.png +0 -0
  365. package/dist/interface/ha/pwa/apple-splash-portrait-dark-2048x2732.png +0 -0
  366. package/dist/interface/ha/pwa/apple-splash-portrait-dark-640x1136.png +0 -0
  367. package/dist/interface/ha/pwa/apple-splash-portrait-dark-750x1334.png +0 -0
  368. package/dist/interface/ha/pwa/apple-splash-portrait-dark-828x1792.png +0 -0
  369. package/dist/interface/ha/pwa/apple-splash-portrait-light-1125x2436.png +0 -0
  370. package/dist/interface/ha/pwa/apple-splash-portrait-light-1170x2532.png +0 -0
  371. package/dist/interface/ha/pwa/apple-splash-portrait-light-1179x2556.png +0 -0
  372. package/dist/interface/ha/pwa/apple-splash-portrait-light-1242x2208.png +0 -0
  373. package/dist/interface/ha/pwa/apple-splash-portrait-light-1242x2688.png +0 -0
  374. package/dist/interface/ha/pwa/apple-splash-portrait-light-1284x2778.png +0 -0
  375. package/dist/interface/ha/pwa/apple-splash-portrait-light-1290x2796.png +0 -0
  376. package/dist/interface/ha/pwa/apple-splash-portrait-light-1536x2048.png +0 -0
  377. package/dist/interface/ha/pwa/apple-splash-portrait-light-1620x2160.png +0 -0
  378. package/dist/interface/ha/pwa/apple-splash-portrait-light-1668x2224.png +0 -0
  379. package/dist/interface/ha/pwa/apple-splash-portrait-light-1668x2388.png +0 -0
  380. package/dist/interface/ha/pwa/apple-splash-portrait-light-2048x2732.png +0 -0
  381. package/dist/interface/ha/pwa/apple-splash-portrait-light-640x1136.png +0 -0
  382. package/dist/interface/ha/pwa/apple-splash-portrait-light-750x1334.png +0 -0
  383. package/dist/interface/ha/pwa/apple-splash-portrait-light-828x1792.png +0 -0
  384. package/dist/interface/ha/pwa/apple-touch-icon-180x180.png +0 -0
  385. package/dist/interface/ha/pwa/favicon-16.ico +0 -0
  386. package/dist/interface/ha/pwa/favicon-32.ico +0 -0
  387. package/dist/interface/ha/pwa/favicon-48.ico +0 -0
  388. package/dist/interface/ha/pwa/favicon-64.ico +0 -0
  389. package/dist/interface/ha/pwa/logo.svg +1 -0
  390. package/dist/interface/ha/pwa/maskable-icon-1240x600.png +0 -0
  391. package/dist/interface/ha/pwa/maskable-icon-512x512.png +0 -0
  392. package/dist/interface/ha/pwa/maskable-icon-620x300.png +0 -0
  393. package/dist/interface/ha/pwa/pwa-1024x1024.png +0 -0
  394. package/dist/interface/ha/pwa/pwa-120x120.png +0 -0
  395. package/dist/interface/ha/pwa/pwa-144x144.png +0 -0
  396. package/dist/interface/ha/pwa/pwa-152x152.png +0 -0
  397. package/dist/interface/ha/pwa/pwa-167x167.png +0 -0
  398. package/dist/interface/ha/pwa/pwa-180x180.png +0 -0
  399. package/dist/interface/ha/pwa/pwa-192x192.png +0 -0
  400. package/dist/interface/ha/pwa/pwa-24x24.png +0 -0
  401. package/dist/interface/ha/pwa/pwa-300x300.png +0 -0
  402. package/dist/interface/ha/pwa/pwa-36x36.png +0 -0
  403. package/dist/interface/ha/pwa/pwa-48x48.png +0 -0
  404. package/dist/interface/ha/pwa/pwa-50x50.png +0 -0
  405. package/dist/interface/ha/pwa/pwa-64x64.png +0 -0
  406. package/dist/interface/ha/pwa/pwa-72x72.png +0 -0
  407. package/dist/interface/ha/pwa/pwa-88x88.png +0 -0
  408. package/dist/interface/ha/pwa/pwa-96x96.png +0 -0
  409. package/dist/interface/ha/radar-C7lI26j4.js +19 -0
  410. package/dist/interface/ha/refresh-BIhepekY.js +19 -0
  411. package/dist/interface/ha/ring-resize-VS4MSeBv.js +16 -0
  412. package/dist/interface/ha/ripple-BilzxWfY.js +2928 -0
  413. package/dist/interface/ha/robots.txt +2 -0
  414. package/dist/interface/ha/rolldown-runtime-CEFd7nDs.js +30 -0
  415. package/dist/interface/ha/rooms-B-FUXQ1p.js +45 -0
  416. package/dist/interface/ha/round-alt-arrow-left-bold-CWEg-ZLF.js +37 -0
  417. package/dist/interface/ha/runtime-core.esm-bundler-D8slQ3BU.js +3295 -0
  418. package/dist/interface/ha/search-CoOsbgeb.js +19 -0
  419. package/dist/interface/ha/select-DjWkRqsI.js +1382 -0
  420. package/dist/interface/ha/server-CKJKoFfg.js +239 -0
  421. package/dist/interface/ha/settings-EKkSQLzv.js +22 -0
  422. package/dist/interface/ha/source-branch-CZwSOrQA.js +19 -0
  423. package/dist/interface/ha/speeddial-Dv9txWte.js +682 -0
  424. package/dist/interface/ha/spinner-D6iUldg9.js +46 -0
  425. package/dist/interface/ha/synapse-CGrlyQDE.js +35 -0
  426. package/dist/interface/ha/tag-CXgC9OZ6.js +95 -0
  427. package/dist/interface/ha/textarea-DvLkfUX7.js +130 -0
  428. package/dist/interface/ha/tooltip-BIrD_hC8.js +277 -0
  429. package/dist/interface/ha/trash-2-C4zSCZfs.js +23 -0
  430. package/dist/interface/ha/trash-can-outline-DCqsCOd2.js +19 -0
  431. package/dist/interface/ha/trash-fill-BPsrwR8X.js +21 -0
  432. package/dist/interface/ha/types-C7MzwoQR.js +28 -0
  433. package/dist/interface/ha/types-J_J0HKlK.js +1032 -0
  434. package/dist/interface/ha/ungrouped-BpaM88Y-.js +1116 -0
  435. package/dist/interface/ha/updates-BdVmkKAa.js +341 -0
  436. package/dist/interface/ha/upload-2xJkVPZE.js +19 -0
  437. package/dist/interface/ha/upload-wQHBRZX_.js +23 -0
  438. package/dist/interface/ha/useAppVersion-DzDaOsKc.js +22 -0
  439. package/dist/interface/ha/useLogsSocket-CWUE-KXV.js +59 -0
  440. package/dist/interface/ha/useNavLayout-BqpyvD2F.js +125 -0
  441. package/dist/interface/ha/usePermissions-BIUeW4ef.js +72 -0
  442. package/dist/interface/ha/useServerRestart-0c4gA1fG.js +23 -0
  443. package/dist/interface/ha/useTabSwipe-C8LdKw23.js +45 -0
  444. package/dist/interface/ha/useUpdateChannel-CHVLthZB.js +22 -0
  445. package/dist/interface/ha/useUpdatesSocket-CaxEs511.js +34 -0
  446. package/dist/interface/ha/useUserOptions-Rk_71WAK.js +15 -0
  447. package/dist/interface/ha/utils-DYtBrGDz.js +7 -0
  448. package/dist/interface/ha/virtualscroller-s_gNqN5p.js +996 -0
  449. package/dist/interface/ha/vue-flow-background-B0Vu4-8M.js +6840 -0
  450. package/dist/interface/ha/vue-i18n-Dcb07o5U.js +2409 -0
  451. package/dist/interface/ha/web-0Kyq65na.js +78 -0
  452. package/dist/interface/ha/web-B7Dt2zZN.js +340 -0
  453. package/dist/interface/ha/web-BNdrPSpb.js +102 -0
  454. package/dist/interface/ha/web-BPBZBCtX.js +8 -0
  455. package/dist/interface/ha/web-BjKL51lK-qwJdIpM1.js +221 -0
  456. package/dist/interface/ha/web-C01i9qI1.js +57 -0
  457. package/dist/interface/ha/web-CH3JeXWa.js +211 -0
  458. package/dist/interface/ha/web-Cpm1-DVe.js +33 -0
  459. package/dist/interface/ha/web-DqRMXrnx.js +31 -0
  460. package/dist/interface/ha/web-DtVT7WYt.js +17 -0
  461. package/dist/interface/ha/web-DxJQZCiR.js +59 -0
  462. package/dist/interface/ha/web-I7Urp4AE.js +46 -0
  463. package/dist/interface/ha/web-aSaPk7kr.js +57 -0
  464. package/dist/interface/ha/web-pMey9p3Y.js +79 -0
  465. package/dist/interface/ha/xterm-B6xA6E5i.js +14833 -0
  466. package/dist/interface/ha/zoom-in-CNVB9H3D.js +41 -0
  467. package/dist/interface/index.html +29 -29
  468. package/dist/interface/sw.js +1 -1
  469. package/dist/server/package.json +8 -8
  470. package/dist/server/requirements.txt +3 -3
  471. package/dist/server/src/_camera_ui_tools/camera_ui_rpc/client.py +9 -6
  472. package/dist/server/src/_camera_ui_tools/camera_ui_rpc/types.py +2 -2
  473. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/__init__.py +4 -2
  474. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/config.py +8 -0
  475. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/device.py +4 -3
  476. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/internal/__init__.py +6 -0
  477. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/internal/sensor_rpc.py +17 -6
  478. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/manager/__init__.py +24 -70
  479. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/plugin/interfaces.py +46 -19
  480. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/__init__.py +2 -0
  481. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/base.py +65 -8
  482. package/dist/server/src/api/database/index.d.ts +1 -1
  483. package/dist/server/src/api/database/index.js +4 -32
  484. package/dist/server/src/api/database/index.js.map +1 -1
  485. package/dist/server/src/api/database/migrations/v2-1-18.d.ts +3 -0
  486. package/dist/server/src/api/database/migrations/v2-1-18.js +24 -0
  487. package/dist/server/src/api/database/migrations/v2-1-18.js.map +1 -0
  488. package/dist/server/src/api/database/record-schemas.d.ts +1 -0
  489. package/dist/server/src/api/database/types.d.ts +4 -3
  490. package/dist/server/src/api/schemas/cameras.schema.d.ts +53 -15
  491. package/dist/server/src/api/schemas/cameras.schema.js +5 -1
  492. package/dist/server/src/api/schemas/cameras.schema.js.map +1 -1
  493. package/dist/server/src/api/schemas/users.schema.d.ts +7 -0
  494. package/dist/server/src/api/schemas/users.schema.js +1 -1
  495. package/dist/server/src/api/schemas/users.schema.js.map +1 -1
  496. package/dist/server/src/api/services/cameras.service.js +14 -21
  497. package/dist/server/src/api/services/cameras.service.js.map +1 -1
  498. package/dist/server/src/api/services/sensors.service.d.ts +3 -3
  499. package/dist/server/src/api/services/sensors.service.js +3 -24
  500. package/dist/server/src/api/services/sensors.service.js.map +1 -1
  501. package/dist/server/src/api/utils/regex.d.ts +2 -0
  502. package/dist/server/src/api/utils/regex.js +2 -0
  503. package/dist/server/src/api/utils/regex.js.map +1 -1
  504. package/dist/server/src/api/websocket/nsp/sensors.d.ts +3 -1
  505. package/dist/server/src/api/websocket/nsp/sensors.js +13 -3
  506. package/dist/server/src/api/websocket/nsp/sensors.js.map +1 -1
  507. package/dist/server/src/camera/decoder/debug/detection-record.d.ts +3 -1
  508. package/dist/server/src/camera/decoder/debug/detection-record.js +6 -2
  509. package/dist/server/src/camera/decoder/debug/detection-record.js.map +1 -1
  510. package/dist/server/src/camera/decoder/detection-coordinator.d.ts +2 -0
  511. package/dist/server/src/camera/decoder/detection-coordinator.js +44 -25
  512. package/dist/server/src/camera/decoder/detection-coordinator.js.map +1 -1
  513. package/dist/server/src/camera/decoder/detection-pipeline.d.ts +3 -1
  514. package/dist/server/src/camera/decoder/detection-pipeline.js +3 -22
  515. package/dist/server/src/camera/decoder/detection-pipeline.js.map +1 -1
  516. package/dist/server/src/camera/decoder/event-manager.d.ts +4 -3
  517. package/dist/server/src/camera/decoder/event-manager.js +17 -5
  518. package/dist/server/src/camera/decoder/event-manager.js.map +1 -1
  519. package/dist/server/src/camera/decoder/event-thumbnailer.d.ts +3 -0
  520. package/dist/server/src/camera/decoder/event-thumbnailer.js +13 -8
  521. package/dist/server/src/camera/decoder/event-thumbnailer.js.map +1 -1
  522. package/dist/server/src/camera/decoder/event-trace.d.ts +58 -0
  523. package/dist/server/src/camera/decoder/event-trace.js +118 -0
  524. package/dist/server/src/camera/decoder/event-trace.js.map +1 -0
  525. package/dist/server/src/camera/decoder/nvr-sink.d.ts +2 -0
  526. package/dist/server/src/camera/decoder/nvr-sink.js.map +1 -1
  527. package/dist/server/src/camera/decoder/reconnect-backoff.js +1 -1
  528. package/dist/server/src/camera/decoder/reconnect-backoff.js.map +1 -1
  529. package/dist/server/src/camera/decoder/sources/analysis-source.d.ts +1 -0
  530. package/dist/server/src/camera/decoder/sources/buffered-source.d.ts +7 -1
  531. package/dist/server/src/camera/decoder/sources/buffered-source.js +27 -15
  532. package/dist/server/src/camera/decoder/sources/buffered-source.js.map +1 -1
  533. package/dist/server/src/camera/decoder/sources/frame-handle.d.ts +2 -1
  534. package/dist/server/src/camera/decoder/sources/frame-handle.js +5 -3
  535. package/dist/server/src/camera/decoder/sources/frame-handle.js.map +1 -1
  536. package/dist/server/src/camera/decoder/sources/frame-source.d.ts +1 -0
  537. package/dist/server/src/camera/decoder/sources/frame-source.js +7 -2
  538. package/dist/server/src/camera/decoder/sources/frame-source.js.map +1 -1
  539. package/dist/server/src/camera/decoder/sources/rtp-index.d.ts +9 -0
  540. package/dist/server/src/camera/decoder/sources/rtp-index.js +24 -0
  541. package/dist/server/src/camera/decoder/sources/rtp-index.js.map +1 -0
  542. package/dist/server/src/camera/decoder/worker.js +1 -0
  543. package/dist/server/src/camera/decoder/worker.js.map +1 -1
  544. package/dist/server/src/go2rtc/types.d.ts +1 -1
  545. package/dist/server/src/go2rtc/types.js +1 -1
  546. package/dist/server/src/go2rtc/types.js.map +1 -1
  547. package/dist/server/src/plugins/runtime/node/child.js +1 -0
  548. package/dist/server/src/plugins/runtime/node/child.js.map +1 -1
  549. package/dist/server/src/plugins/runtime/node/proxy/cameraDevice.js +3 -0
  550. package/dist/server/src/plugins/runtime/node/proxy/cameraDevice.js.map +1 -1
  551. package/dist/server/src/plugins/runtime/node/proxy/sensorManager.d.ts +2 -5
  552. package/dist/server/src/plugins/runtime/node/proxy/sensorManager.js +95 -24
  553. package/dist/server/src/plugins/runtime/node/proxy/sensorManager.js.map +1 -1
  554. package/dist/server/src/plugins/runtime/python/child.py +1 -0
  555. package/dist/server/src/plugins/runtime/python/proxy/camera_device.py +9 -0
  556. package/dist/server/src/plugins/runtime/python/proxy/sensor.py +2 -1
  557. package/dist/server/src/plugins/runtime/python/proxy/sensor_manager.py +185 -88
  558. package/dist/server/src/plugins/runtime/python/typings.py +18 -0
  559. package/dist/server/src/rpc/interfaces/sensor.d.ts +19 -4
  560. package/dist/server/src/sensors/discovery.d.ts +1 -1
  561. package/dist/server/src/sensors/discovery.js +10 -19
  562. package/dist/server/src/sensors/discovery.js.map +1 -1
  563. package/dist/server/src/sensors/registry.d.ts +6 -2
  564. package/dist/server/src/sensors/registry.js +75 -6
  565. package/dist/server/src/sensors/registry.js.map +1 -1
  566. package/dist/server/src/utils/camera.d.ts +12 -2
  567. package/dist/server/src/utils/camera.js +27 -1
  568. package/dist/server/src/utils/camera.js.map +1 -1
  569. package/dist/server/src/workers/pairing.js +17 -8
  570. package/dist/server/src/workers/pairing.js.map +1 -1
  571. package/package.json +8 -8
  572. package/dist/interface/assets/Automation-4HPAjq1i.js +0 -3
  573. package/dist/interface/assets/AutomationStoreDetail-C2ntfGP-.js +0 -2
  574. package/dist/interface/assets/Automations-CUUq9dxs.js +0 -2
  575. package/dist/interface/assets/Camera-DmrRrgqQ.js +0 -2
  576. package/dist/interface/assets/Cameras-B-aQUuPk.js +0 -652
  577. package/dist/interface/assets/Camview-B-W5jpCR.js +0 -1
  578. package/dist/interface/assets/ConfigActionNotification-Bq28CjsJ.js +0 -1
  579. package/dist/interface/assets/ConfigConditionSwitch-DYAlj5no.js +0 -1
  580. package/dist/interface/assets/ConfigTriggerGeofence-ClKyzb-x.js +0 -1
  581. package/dist/interface/assets/Console-ctbGFtCH.js +0 -1
  582. package/dist/interface/assets/CuiBottomSheet-Bo1wUyiN.js +0 -1
  583. package/dist/interface/assets/CuiCameraPipCard-BEAE44of.js +0 -1
  584. package/dist/interface/assets/CuiCameraRecordings-BzbwSK8-.css +0 -1
  585. package/dist/interface/assets/CuiCameraRecordings-C1evIMhc.js +0 -1
  586. package/dist/interface/assets/CuiCameraTable-BAjQ8h5H.js +0 -1
  587. package/dist/interface/assets/CuiLightControl-9OhT9YYt.js +0 -1
  588. package/dist/interface/assets/CuiPluginCard-DQgVasi7.js +0 -2
  589. package/dist/interface/assets/CuiSchema-juKEra_J.js +0 -1
  590. package/dist/interface/assets/Faces-Ce3mKYc7.js +0 -1
  591. package/dist/interface/assets/FirstSteps-BBLzX2bl.js +0 -1
  592. package/dist/interface/assets/Floorplan-B7BVj65t.js +0 -1
  593. package/dist/interface/assets/Instances-4VxGT2fm.js +0 -1
  594. package/dist/interface/assets/Metrics-DudHV8Ov.js +0 -9
  595. package/dist/interface/assets/OAuthDeviceFlow-Z3Cesvs9.js +0 -1
  596. package/dist/interface/assets/Plugin-DwadariU.js +0 -1
  597. package/dist/interface/assets/PluginDetail-C_XghvQz.js +0 -2
  598. package/dist/interface/assets/PluginSearch-11dsxfvW.js +0 -1
  599. package/dist/interface/assets/PluginSearch-DgQOryM2.js +0 -2
  600. package/dist/interface/assets/Plugins-QheVcYZB.js +0 -1
  601. package/dist/interface/assets/Recordings-DwPnYsd6.js +0 -1
  602. package/dist/interface/assets/SensorEdit-C9Ejdxaz.js +0 -1
  603. package/dist/interface/assets/Sensors-D4tY50d4.js +0 -2
  604. package/dist/interface/assets/SettingsAccount-DMvvar8D.js +0 -1
  605. package/dist/interface/assets/SettingsAccount-DYCCnjWY.js +0 -1
  606. package/dist/interface/assets/SettingsAppearance-vLBhLEag.js +0 -1
  607. package/dist/interface/assets/SettingsMqtt-Cj9ywnP2.js +0 -1
  608. package/dist/interface/assets/SettingsNotifications-flx3W4Uo.js +0 -1
  609. package/dist/interface/assets/SettingsRecordings-D3b6y2SX.js +0 -1
  610. package/dist/interface/assets/SettingsRemote-o01wgKPR.js +0 -2
  611. package/dist/interface/assets/Workers-CdaYj6Ap.js +0 -2
  612. package/dist/interface/assets/alert-outline-KxFvd3i6.js +0 -1
  613. package/dist/interface/assets/api-2VPaKkqc.js +0 -2
  614. package/dist/interface/assets/api-CEbDxsSY.css +0 -2
  615. package/dist/interface/assets/cameras.schema-CnSdfqqj.js +0 -1
  616. package/dist/interface/assets/cloudHandoff-B1z5dyPD.js +0 -1
  617. package/dist/interface/assets/main-BfL5CDS8.js +0 -3
  618. package/dist/interface/assets/nodeDefinitions-D6zhuw60.js +0 -1
  619. package/dist/interface/assets/sensorIcons-FPxm3pDg.js +0 -1
  620. package/dist/interface/assets/theme-CRQoJiuY.js +0 -1
  621. package/dist/interface/assets/types-BHgaZSm2.js +0 -1
  622. package/dist/interface/assets/types-CQpPteyx.js +0 -1
  623. package/dist/interface/assets/ungrouped-BbOtmmDD.js +0 -1
  624. package/dist/interface/assets/useBackupRestore-CT1PYJDW.js +0 -1
  625. package/dist/interface/assets/vendor-cameraui-ZyqPntQ7.js +0 -2326
  626. package/dist/interface/assets/vendor-core-DN-bpg68.js +0 -1
  627. package/dist/interface/assets/vendor-zod-B0ZFM2Pr.js +0 -127
@@ -0,0 +1,1116 @@
1
+ import { Et as e, et as t, f as n, gt as r, i, m as a, rt as o } from "./ripple-BilzxWfY.js";
2
+ import { n as s } from "./virtualscroller-s_gNqN5p.js";
3
+ import { D as c, G as l, H as u, Jt as d, K as f, M as p, N as m, Wt as h, Y as g, d as _, f as v, kt as y, l as b, lt as x, ot as S, p as C, q as w, qt as T, r as E, rt as D, u as O, ut as k, x as A, xt as j, y as M, z as ee } from "./runtime-core.esm-bundler-D8slQ3BU.js";
4
+ import { t as te } from "./tooltip-BIrD_hC8.js";
5
+ import { Bn as ne, J as N, Nn as re, Pn as ie, Qn as ae, Un as oe, Y as se, Zn as P, _r as ce, at as le, fr as ue, gi as de, hr as fe, ia as pe, ir as me, jn as he, lt as ge, o as _e, or as ve, ot as ye, sr as be, ut as xe, vr as F, yr as Se, zn as Ce } from "./api-CWJkvtnM.js";
6
+ import { _ as we, o as Te } from "./intercomService-jB2mTgsn.js";
7
+ import { n as Ee } from "./vue-i18n-Dcb07o5U.js";
8
+ import { M as De } from "./dist-Ca9_5rzq.js";
9
+ import { t as I } from "./spinner-D6iUldg9.js";
10
+ import { t as Oe } from "./button-BlYuI0Q7.js";
11
+ //#region src/components/CuiRecordings/RecordingCard.vue?vue&type=script&setup=true&lang.ts
12
+ var ke = ["src"], Ae = {
13
+ key: 2,
14
+ class: "w-full h-full flex items-center justify-center bg-neutral-800/80"
15
+ }, je = { class: "absolute top-0 left-0 right-0 p-2 bg-gradient-to-b from-black/80 to-transparent z-[3]" }, Me = { class: "flex items-center gap-1.5" }, Ne = { class: "text-xs font-semibold text-white truncate min-w-0 flex-1" }, Pe = {
16
+ key: 1,
17
+ class: "text-[10px] font-semibold text-white/80 bg-black/60 px-1.5 py-0.5 rounded-md shrink-0"
18
+ }, Fe = { class: "text-[10px] text-white/70" }, Ie = { class: "block text-[11px] text-white font-medium truncate bg-black/50 rounded-md px-2 py-0.5" }, Le = { class: "flex items-center gap-1 min-w-0" }, Re = ["title"], ze = {
19
+ key: 0,
20
+ class: "flex items-center gap-0.5 shrink-0 opacity-85 group-hover:opacity-100 transition-opacity duration-200"
21
+ }, Be = ["onClick"], Ve = ["src", "alt"], He = {
22
+ key: 0,
23
+ class: "text-[10px] text-white/60 font-medium"
24
+ }, Ue = {
25
+ key: 6,
26
+ class: "absolute inset-0 z-[4] flex items-center justify-center pointer-events-none"
27
+ }, We = {
28
+ key: 7,
29
+ class: "absolute bottom-10 left-1/2 -translate-x-1/2 z-[4] pointer-events-none"
30
+ }, Ge = {
31
+ class: "text-[10px] font-semibold text-white bg-black/60 px-1.5 py-0.5 rounded-md whitespace-nowrap",
32
+ style: { "font-variant-numeric": "tabular-nums" }
33
+ }, Ke = 24, qe = 30, Je = 22, Ye = 28, Xe = 8, L = /*#__PURE__*/ F(/* @__PURE__ */ A({
34
+ __name: "RecordingCard",
35
+ props: {
36
+ event: {},
37
+ cameraName: {},
38
+ camera: {},
39
+ loadThumbnails: { type: Function },
40
+ semanticScore: {},
41
+ segIndex: {},
42
+ hideSegmentBadge: { type: Boolean },
43
+ selectionMode: { type: Boolean },
44
+ selected: { type: Boolean },
45
+ siblingActive: { type: Boolean }
46
+ },
47
+ emits: [
48
+ "scrollToEvent",
49
+ "select",
50
+ "openTrace"
51
+ ],
52
+ setup(e, { emit: t }) {
53
+ let r = e, i = t, o = Te(), s = de(), { t: f } = Ee(), p = ae("@camera.ui/camera-ui-nvr"), { plugin: m } = De("@camera.ui/camera-ui-nvr"), { icons: w } = se(), T = p.getCachedThumbnails(r.event.id), A = T ? P(T, r.event, "card", r.segIndex).url ? "loaded" : "empty" : "loading", F = c(re, void 0), I = D("rootRef"), L = D("previewCanvasRef"), R = D("footerRef"), z = j(!1), B = N(I, () => xt(), () => $()), V = j(!1), H = j(T ?? null), U = j(A), W = j(!1), G = j(0), { width: Ze } = we(R), Qe = b(() => (p.storeVersion.value, r.event.segments?.find((e) => e?.description)?.description?.title)), K = b(() => {
54
+ if (r.semanticScore == null) return;
55
+ let e = Math.max(0, Math.min(1, r.semanticScore));
56
+ return {
57
+ pct: e,
58
+ label: `${(e * 100).toFixed(0)}%`,
59
+ color: e >= .5 ? "bg-green-500/80" : e >= .25 ? "bg-yellow-500/80" : "bg-red-400/80"
60
+ };
61
+ }), q = b(() => H.value ? P(H.value, r.event, "card", r.segIndex) : null), $e = b(() => {
62
+ let e = r.segIndex ?? q.value?.segIndex;
63
+ return e === void 0 ? void 0 : r.event.segments?.[e];
64
+ }), et = b(() => q.value?.url), tt = b(() => q.value?.label), nt = b(() => q.value?.type ?? r.event.types[0] ?? "motion"), rt = b(() => {
65
+ if (r.hideSegmentBadge) return;
66
+ let e = r.event.segments?.length ?? 0;
67
+ return r.segIndex !== void 0 && e > 1 ? `${r.segIndex + 1}/${e}` : void 0;
68
+ }), J = b(() => {
69
+ let e = H.value, t = q.value?.url;
70
+ if (!e || !t) return [];
71
+ let n = [{
72
+ url: t,
73
+ label: q.value?.label,
74
+ type: nt.value,
75
+ crop: !1
76
+ }];
77
+ for (let t of he(e, r.segIndex)) n.some((e) => e.url === t.url) || n.push({
78
+ url: t.url,
79
+ label: t.label,
80
+ type: t.type,
81
+ crop: !0
82
+ });
83
+ if (r.segIndex === void 0) for (let t of Object.keys(e.cards ?? e.strips ?? {}).sort((e, t) => Number(e) - Number(t))) {
84
+ let i = Ce(e.cards?.[t] ?? e.strips?.[t]);
85
+ if (!i || n.some((e) => e.url === i)) continue;
86
+ let a = ye(r.event, t);
87
+ n.push({
88
+ url: i,
89
+ label: a,
90
+ type: a,
91
+ crop: !1
92
+ });
93
+ }
94
+ return n.length > 1 ? n : [];
95
+ }), it = b(() => J.value.length > 1), Y = b(() => J.value.length ? Math.min(G.value, J.value.length - 1) : 0), at = b(() => it.value ? J.value[Y.value] : void 0), ot = b(() => !!at.value?.crop), st = b(() => at.value?.url ?? et.value), ct = b(() => at.value?.label ?? tt.value), X = b(() => {
96
+ let e = $e.value;
97
+ return (e ? oe(r.event, e) : [...new Set(r.event.types)]).filter((e) => e !== "motion" && e !== "audio");
98
+ }), lt = b(() => r.cameraName ?? r.event.cameraId), Z = b(() => J.value.map((e) => ({
99
+ url: e.url,
100
+ type: e.type
101
+ }))), ut = b(() => X.value.slice(0, Q.value.icons)), Q = b(() => {
102
+ let e = Ze.value;
103
+ if (!e) return {
104
+ icons: 2,
105
+ tiles: 2
106
+ };
107
+ let t = e - Xe;
108
+ r.selectionMode && (t -= Ye);
109
+ let n = Z.value.length > 0 ? 52 : 0, i = _t(X.value.length, Math.max(0, t - n), Ke), a = X.value.length > 0 ? Math.max(1, i) : 0, o = a * Ke + (a < X.value.length ? Je : 0);
110
+ return {
111
+ icons: a,
112
+ tiles: _t(Z.value.length, Math.max(0, t - o), qe)
113
+ };
114
+ }), dt = b(() => X.value.slice(Q.value.icons)), ft = b(() => Z.value.slice(0, Q.value.tiles)), pt = b(() => Z.value.length - Q.value.tiles), mt = b(() => {
115
+ let e = r.segIndex === void 0 ? void 0 : r.event.segments?.[r.segIndex]?.firstSeen, t = new Date(e ?? r.event.thumbnailAt ?? r.event.startTime), n = /* @__PURE__ */ new Date(), i = t.toDateString() === n.toDateString(), a = t.toLocaleTimeString([], {
116
+ hour: "2-digit",
117
+ minute: "2-digit"
118
+ });
119
+ return i ? a : `${t.toLocaleDateString([], {
120
+ month: "short",
121
+ day: "numeric"
122
+ })} ${a}`;
123
+ }), ht = b(() => !!(m.value && r.event.endTime && r.event.hasRecording !== !1)), gt = b(() => F ? z.value ? f("views.recordings.no_preview") : V.value ? F.status.value === "unavailable" ? f("views.recordings.no_preview") : F.status.value === "playing" && F.previewTimeMs.value ? bt(F.previewTimeMs.value) : "" : "" : "");
124
+ function _t(e, t, n) {
125
+ return e === 0 || t < n ? 0 : e * n <= t ? e : Math.max(0, Math.floor((t - Je) / n));
126
+ }
127
+ function vt(e) {
128
+ let t = J.value.length;
129
+ t && ($(), G.value = (Y.value + e + t) % t);
130
+ }
131
+ function yt(e, t) {
132
+ it.value && (t.stopPropagation(), $(), G.value = e);
133
+ }
134
+ function $() {
135
+ z.value = !1, !(!F || !V.value) && (V.value = !1, F.onHoverEnd());
136
+ }
137
+ function bt(e) {
138
+ let t = new Date(e);
139
+ return `${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}:${String(t.getSeconds()).padStart(2, "0")}`;
140
+ }
141
+ function xt() {
142
+ if (!F || Y.value > 0) return;
143
+ let e = L.value;
144
+ if (!e) return;
145
+ let t = ne(r.event);
146
+ if (r.event.hasRecording === !1 || !t) {
147
+ z.value = !0;
148
+ return;
149
+ }
150
+ V.value = !0, F.onHoverStart(e, r.event.cameraId, r.event.id, r.event.startTime, t, r.camera?.zones?.privacy, ie(r.event));
151
+ }
152
+ function St() {
153
+ B.blocksMouseEnter() || xt();
154
+ }
155
+ function Ct() {
156
+ z.value = !1, F && (V.value = !1, F.onHoverEnd());
157
+ }
158
+ async function wt(e = 2) {
159
+ let t = await r.loadThumbnails(r.event.id, r.event.startTime);
160
+ if (t) {
161
+ H.value = t;
162
+ let e = P(t, r.event, "card");
163
+ U.value = e.url ? "loaded" : "empty";
164
+ } else if (e > 0) return await new Promise((e) => setTimeout(e, 500)), wt(e - 1);
165
+ else U.value = r.event.state === "active" ? "loading" : "empty";
166
+ }
167
+ function Tt() {
168
+ if (!B.consumesClick()) {
169
+ if (r.selectionMode) {
170
+ i("select");
171
+ return;
172
+ }
173
+ i("scrollToEvent", $e.value?.firstSeen ?? le(r.event));
174
+ }
175
+ }
176
+ async function Et() {
177
+ if (W.value) return;
178
+ let e = m.value;
179
+ if (!(!e?.nvrExport || !r.event.endTime)) {
180
+ W.value = !0;
181
+ try {
182
+ let t = await e.nvrExport(r.event.cameraId, r.event.startTime * 1e3, r.event.endTime * 1e3);
183
+ await fe({
184
+ url: t.url,
185
+ filename: t.filename
186
+ });
187
+ } catch (e) {
188
+ o.error("Download failed:", e), s.add({
189
+ severity: "error",
190
+ summary: f("views.recordings.download_failed"),
191
+ detail: _e(e),
192
+ life: 5e3
193
+ });
194
+ } finally {
195
+ W.value = !1;
196
+ }
197
+ }
198
+ }
199
+ return S(() => p.storeVersion.value, () => {
200
+ let e = p.getCachedThumbnails(r.event.id);
201
+ e && (H.value = e, P(e, r.event, "card").url && (U.value = "loaded"));
202
+ }), ee(() => {
203
+ A === "loading" && wt();
204
+ }), (t, r) => {
205
+ let o = pe, s = ce, c = me, f = ge, p = Oe, m = xe, b = ve, S = be, T = ue, D = Se, A = te;
206
+ return u(), C("div", {
207
+ ref_key: "rootRef",
208
+ ref: I,
209
+ class: "recording-card relative group cursor-pointer",
210
+ onClick: Tt,
211
+ onMouseenter: St,
212
+ onMouseleave: Ct
213
+ }, [O("div", {
214
+ class: h(["bg-neutral-900 w-full rounded-xl overflow-hidden relative transition-shadow duration-200", { "ring-2 ring-inset ring-primary/70": e.siblingActive }]),
215
+ style: { "aspect-ratio": "1/1" }
216
+ }, [
217
+ y(U) === "loading" ? (u(), _(o, {
218
+ key: 0,
219
+ width: "100%",
220
+ height: "100%",
221
+ class: "rounded-xl"
222
+ })) : y(st) ? (u(), C(E, { key: 1 }, [y(ot) ? (u(), C("img", {
223
+ key: 0,
224
+ src: y(st),
225
+ "aria-hidden": "true",
226
+ class: "absolute inset-0 w-full h-full object-cover blur-xl scale-110 opacity-50 pointer-events-none"
227
+ }, null, 8, ke)) : v("", !0), M(s, {
228
+ src: y(st),
229
+ alt: y(lt),
230
+ class: "pointer-events-none w-full h-full transition-transform duration-300 group-hover:scale-105",
231
+ "image-style": { objectFit: y(ot) ? "contain" : "cover" },
232
+ "image-container-class": "w-full h-full"
233
+ }, null, 8, [
234
+ "src",
235
+ "alt",
236
+ "image-style"
237
+ ])], 64)) : (u(), C("div", Ae, [(u(), _(g(y(w)[y(nt)] ?? y(w).motion), { class: "w-10 h-10 text-white/20" }))])),
238
+ y(F) ? k((u(), C("canvas", {
239
+ key: 3,
240
+ ref_key: "previewCanvasRef",
241
+ ref: L,
242
+ class: "absolute inset-0 w-full h-full object-cover pointer-events-none z-[1]"
243
+ }, null, 512)), [[n, y(V)]]) : v("", !0),
244
+ r[3] ||= O("div", { class: "absolute inset-0 bg-transparent group-hover:bg-black/30 pointer-events-none transition-colors duration-200 z-[2]" }, null, -1),
245
+ O("div", je, [O("div", Me, [
246
+ y(Qe) ? (u(), _(c, {
247
+ key: 0,
248
+ position: "inline"
249
+ })) : v("", !0),
250
+ O("p", Ne, d(y(lt)), 1),
251
+ y(rt) ? (u(), C("span", Pe, d(y(rt)), 1)) : v("", !0),
252
+ y(K) ? (u(), C("span", {
253
+ key: 2,
254
+ class: h(["text-[10px] font-bold text-white px-1.5 py-0.5 rounded-md shrink-0", y(K).color])
255
+ }, d(y(K).label), 3)) : v("", !0),
256
+ e.camera && !e.selectionMode ? k((u(), _(p, {
257
+ key: 3,
258
+ rounded: "",
259
+ text: "",
260
+ severity: "secondary",
261
+ class: "!w-5 !h-5 !p-0 shrink-0 bg-black/60 hover:!bg-black/80",
262
+ onClick: r[0] ||= a((e) => i("openTrace"), ["stop"]),
263
+ onMouseenter: $
264
+ }, {
265
+ icon: x(() => [M(f, { class: "w-3 h-3 text-white" })]),
266
+ _: 1
267
+ })), [[
268
+ A,
269
+ { value: t.$t("views.recordings.open_trace") },
270
+ void 0,
271
+ { left: !0 }
272
+ ]]) : v("", !0),
273
+ y(ht) && !e.selectionMode ? k((u(), _(p, {
274
+ key: 4,
275
+ rounded: "",
276
+ text: "",
277
+ severity: "secondary",
278
+ loading: y(W),
279
+ class: "!w-5 !h-5 !p-0 shrink-0 bg-black/60 hover:!bg-black/80",
280
+ onClick: a(Et, ["stop"]),
281
+ onMouseenter: $
282
+ }, {
283
+ icon: x(() => [M(m, { class: "w-3 h-3 text-white" })]),
284
+ _: 1
285
+ }, 8, ["loading"])), [[
286
+ A,
287
+ { value: t.$t("views.recordings.download") },
288
+ void 0,
289
+ { left: !0 }
290
+ ]]) : v("", !0)
291
+ ]), O("p", Fe, d(y(mt)), 1)]),
292
+ y(J).length > 1 ? (u(), C(E, { key: 4 }, [M(p, {
293
+ rounded: "",
294
+ text: "",
295
+ severity: "secondary",
296
+ class: "carousel-nav !absolute left-1 top-1/2 -translate-y-1/2 z-[3] !w-7 !h-7 !p-0 bg-black/40 hover:!bg-black/60 transition-opacity duration-200",
297
+ "aria-label": t.$t("views.recordings.prev_image"),
298
+ onClick: r[1] ||= a((e) => vt(-1), ["stop"]),
299
+ onMouseenter: $
300
+ }, {
301
+ icon: x(() => [M(b, { class: "w-5 h-5 text-white" })]),
302
+ _: 1
303
+ }, 8, ["aria-label"]), M(p, {
304
+ rounded: "",
305
+ text: "",
306
+ severity: "secondary",
307
+ class: "carousel-nav !absolute right-1 top-1/2 -translate-y-1/2 z-[3] !w-7 !h-7 !p-0 bg-black/40 hover:!bg-black/60 transition-opacity duration-200",
308
+ "aria-label": t.$t("views.recordings.next_image"),
309
+ onClick: r[2] ||= a((e) => vt(1), ["stop"]),
310
+ onMouseenter: $
311
+ }, {
312
+ icon: x(() => [M(S, { class: "w-5 h-5 text-white" })]),
313
+ _: 1
314
+ }, 8, ["aria-label"])], 64)) : v("", !0),
315
+ y(ct) ? (u(), C("div", {
316
+ key: 5,
317
+ class: h(["absolute left-1/2 -translate-x-1/2 z-[3] max-w-[85%] pointer-events-none transition-all duration-200", y(gt) ? "bottom-16" : "bottom-10"])
318
+ }, [O("span", Ie, d(y(ct)), 1)], 2)) : v("", !0),
319
+ O("div", {
320
+ ref_key: "footerRef",
321
+ ref: R,
322
+ class: "absolute bottom-2 left-2 right-2 flex items-center justify-between gap-2 z-[3]"
323
+ }, [O("div", Le, [
324
+ e.selectionMode ? (u(), C("div", {
325
+ key: 0,
326
+ class: h(["w-6 h-6 rounded-full border-2 flex items-center justify-center transition-colors shrink-0", e.selected ? "bg-primary border-primary" : "bg-black/40 border-white/80"])
327
+ }, [e.selected ? (u(), _(T, {
328
+ key: 0,
329
+ class: "w-4 h-4 text-white"
330
+ })) : v("", !0)], 2)) : v("", !0),
331
+ (u(!0), C(E, null, l(y(ut), (e) => (u(), C("div", {
332
+ key: e,
333
+ class: "flex items-center justify-center w-5 h-5 rounded-md bg-black/60 shrink-0"
334
+ }, [(u(), _(g(y(w)[e] ?? y(w).motion), { class: "w-3 h-3 text-white/80" }))]))), 128)),
335
+ y(dt).length > 0 ? (u(), C("span", {
336
+ key: 1,
337
+ title: y(dt).join(", "),
338
+ class: "text-[10px] text-white/60 font-medium shrink-0"
339
+ }, " +" + d(y(dt).length), 9, Re)) : v("", !0)
340
+ ]), y(ft).length > 0 || y(pt) > 0 ? (u(), C("div", ze, [(u(!0), C(E, null, l(y(ft), (e, t) => (u(), C("div", {
341
+ key: t,
342
+ class: h(["w-7 h-7 rounded overflow-hidden border bg-neutral-800 cursor-pointer", t === y(Y) ? "border-primary/80" : "border-white/20"]),
343
+ onClick: (e) => yt(t, e)
344
+ }, [O("img", {
345
+ src: e.url,
346
+ alt: e.type,
347
+ decoding: "async",
348
+ loading: "lazy",
349
+ class: "w-full h-full object-cover"
350
+ }, null, 8, Ve)], 10, Be))), 128)), y(pt) > 0 ? (u(), C("span", He, "+" + d(y(pt)), 1)) : v("", !0)])) : v("", !0)], 512),
351
+ y(F) && y(V) && y(F).isLoading.value ? (u(), C("div", Ue, [M(D, {
352
+ class: "w-[28px] h-[28px] m-0",
353
+ "stroke-width": "6"
354
+ })])) : v("", !0),
355
+ y(gt) ? (u(), C("div", We, [O("span", Ge, d(y(gt)), 1)])) : v("", !0)
356
+ ], 2)], 544);
357
+ };
358
+ }
359
+ }), [["__scopeId", "data-v-97ad8176"]]), R = {
360
+ name: "VirtualScroller",
361
+ components: { SpinnerIcon: I },
362
+ extends: {
363
+ name: "BaseVirtualScroller",
364
+ extends: i,
365
+ provide() {
366
+ return {
367
+ $pcVirtualScroller: this,
368
+ $parentInstance: this
369
+ };
370
+ },
371
+ props: {
372
+ id: {
373
+ type: String,
374
+ default: null
375
+ },
376
+ style: null,
377
+ class: null,
378
+ items: {
379
+ type: Array,
380
+ default: null
381
+ },
382
+ itemSize: {
383
+ type: [Number, Array],
384
+ default: 0
385
+ },
386
+ scrollHeight: null,
387
+ scrollWidth: null,
388
+ orientation: {
389
+ type: String,
390
+ default: "vertical"
391
+ },
392
+ rtl: {
393
+ type: Boolean,
394
+ default: !1
395
+ },
396
+ numToleratedItems: {
397
+ type: Number,
398
+ default: null
399
+ },
400
+ delay: {
401
+ type: Number,
402
+ default: 0
403
+ },
404
+ resizeDelay: {
405
+ type: Number,
406
+ default: 10
407
+ },
408
+ lazy: {
409
+ type: Boolean,
410
+ default: !1
411
+ },
412
+ disabled: {
413
+ type: Boolean,
414
+ default: !1
415
+ },
416
+ loaderDisabled: {
417
+ type: Boolean,
418
+ default: !1
419
+ },
420
+ columns: {
421
+ type: Array,
422
+ default: null
423
+ },
424
+ loading: {
425
+ type: Boolean,
426
+ default: !1
427
+ },
428
+ showSpacer: {
429
+ type: Boolean,
430
+ default: !0
431
+ },
432
+ showLoader: {
433
+ type: Boolean,
434
+ default: !1
435
+ },
436
+ tabindex: {
437
+ type: Number,
438
+ default: 0
439
+ },
440
+ inline: {
441
+ type: Boolean,
442
+ default: !1
443
+ },
444
+ step: {
445
+ type: Number,
446
+ default: 0
447
+ },
448
+ appendOnly: {
449
+ type: Boolean,
450
+ default: !1
451
+ },
452
+ autoSize: {
453
+ type: Boolean,
454
+ default: !1
455
+ },
456
+ itemKey: {
457
+ type: [String, Function],
458
+ default: null
459
+ }
460
+ },
461
+ style: s,
462
+ beforeMount() {
463
+ s.loadCSS({ nonce: this.$primevueConfig?.csp?.nonce });
464
+ }
465
+ },
466
+ inheritAttrs: !1,
467
+ emits: [
468
+ "update:numToleratedItems",
469
+ "scroll",
470
+ "scroll-index-change",
471
+ "lazy-load"
472
+ ],
473
+ data() {
474
+ let e = this.isBoth();
475
+ return {
476
+ first: e ? {
477
+ rows: 0,
478
+ cols: 0
479
+ } : 0,
480
+ last: e ? {
481
+ rows: 0,
482
+ cols: 0
483
+ } : 0,
484
+ page: e ? {
485
+ rows: 0,
486
+ cols: 0
487
+ } : 0,
488
+ numItemsInViewport: e ? {
489
+ rows: 0,
490
+ cols: 0
491
+ } : 0,
492
+ lastScrollPos: e ? {
493
+ top: 0,
494
+ left: 0
495
+ } : 0,
496
+ d_numToleratedItems: this.numToleratedItems,
497
+ d_loading: this.loading,
498
+ loaderArr: [],
499
+ spacerStyle: {},
500
+ contentStyle: {}
501
+ };
502
+ },
503
+ element: null,
504
+ content: null,
505
+ lastScrollPos: null,
506
+ scrollTimeout: null,
507
+ resizeTimeout: null,
508
+ defaultWidth: 0,
509
+ defaultHeight: 0,
510
+ defaultContentWidth: 0,
511
+ defaultContentHeight: 0,
512
+ isRangeChanged: !1,
513
+ lazyLoadState: {},
514
+ resizeListener: null,
515
+ initialized: !1,
516
+ computed: {
517
+ containerClass() {
518
+ return [
519
+ "p-virtualscroller",
520
+ this.class,
521
+ {
522
+ "p-virtualscroller-inline": this.inline,
523
+ "p-virtualscroller-both p-both-scroll": this.isBoth(),
524
+ "p-virtualscroller-horizontal p-horizontal-scroll": this.isHorizontal(),
525
+ "p-virtualscroller-rtl": this.rtl && this.isHorizontal()
526
+ }
527
+ ];
528
+ },
529
+ contentClass() {
530
+ return ["p-virtualscroller-content", { "p-virtualscroller-loading": this.d_loading }];
531
+ },
532
+ loaderClass() {
533
+ return ["p-virtualscroller-loader", { "p-virtualscroller-loader-mask": !this.$slots.loader }];
534
+ },
535
+ loadedItems() {
536
+ return this.items && !this.d_loading ? this.isBoth() ? this.items.slice(this.appendOnly ? 0 : this.first.rows, this.last.rows).map((e) => this.columns ? e : e.slice(this.appendOnly ? 0 : this.first.cols, this.last.cols)) : this.isHorizontal() && this.columns ? this.items : this.items.slice(this.appendOnly ? 0 : this.first, this.last) : [];
537
+ },
538
+ loadedRows() {
539
+ return this.d_loading ? this.loaderDisabled ? this.loaderArr : [] : this.loadedItems;
540
+ },
541
+ loadedColumns() {
542
+ if (this.columns) {
543
+ let e = this.isBoth(), t = this.isHorizontal();
544
+ if (e || t) return this.d_loading && this.loaderDisabled ? e ? this.loaderArr[0] : this.loaderArr : this.columns.slice(e ? this.first.cols : this.first, e ? this.last.cols : this.last);
545
+ }
546
+ return this.columns;
547
+ }
548
+ },
549
+ watch: {
550
+ numToleratedItems(e) {
551
+ this.d_numToleratedItems = e;
552
+ },
553
+ loading(e, t) {
554
+ this.lazy && e !== t && e !== this.d_loading && (this.d_loading = e);
555
+ },
556
+ items(e, t) {
557
+ (!t || t.length !== (e || []).length) && this.scheduleInit();
558
+ },
559
+ itemSize() {
560
+ this.scheduleInit();
561
+ },
562
+ orientation() {
563
+ this.lastScrollPos = this.isBoth() ? {
564
+ top: 0,
565
+ left: 0
566
+ } : 0;
567
+ },
568
+ scrollHeight() {
569
+ this.scheduleInit();
570
+ },
571
+ scrollWidth() {
572
+ this.scheduleInit();
573
+ }
574
+ },
575
+ mounted() {
576
+ this.viewInit(), this.lastScrollPos = this.isBoth() ? {
577
+ top: 0,
578
+ left: 0
579
+ } : 0, this.lazyLoadState = this.lazyLoadState || {};
580
+ },
581
+ updated() {
582
+ !this.initialized && this.viewInit();
583
+ },
584
+ unmounted() {
585
+ this.unbindResizeListener(), this.initialized = !1;
586
+ },
587
+ methods: {
588
+ resolveItemKey(e, t) {
589
+ let n = this.itemKey;
590
+ return typeof n == "function" ? n(e, t) ?? t : typeof n == "string" && typeof e == "object" && e ? e[n] ?? t : t;
591
+ },
592
+ viewInit() {
593
+ r(this.element) && (this.setContentEl(this.content), this.init(), this.calculateAutoSize(), this.bindResizeListener(), this.defaultWidth = t(this.element), this.defaultHeight = o(this.element), this.defaultContentWidth = t(this.content), this.defaultContentHeight = o(this.content), this.initialized = !0);
594
+ },
595
+ init() {
596
+ this.disabled || (this.setSize(), this.calculateOptions(), this.setSpacerSize());
597
+ },
598
+ scheduleInit() {
599
+ this._initScheduled || (this._initScheduled = !0, Promise.resolve().then(() => {
600
+ this._initScheduled = !1, this.init(), this.calculateAutoSize();
601
+ }));
602
+ },
603
+ isVertical() {
604
+ return this.orientation === "vertical";
605
+ },
606
+ isHorizontal() {
607
+ return this.orientation === "horizontal";
608
+ },
609
+ isBoth() {
610
+ return this.orientation === "both";
611
+ },
612
+ scrollTo(e) {
613
+ this.element && this.element.scrollTo(e);
614
+ },
615
+ scrollToIndex(e, t = "auto") {
616
+ let n = this.isBoth(), r = this.isHorizontal(), i = this.rtl && r;
617
+ if (n ? e.every((e) => e > -1) : e > -1) {
618
+ let a = this.first, { scrollTop: o = 0, scrollLeft: s = 0 } = this.element, { numToleratedItems: c } = this.calculateNumItems(), l = this.getContentPosition(), u = this.itemSize, d = (e = 0, t) => e <= t ? 0 : e, f = (e, t, n) => e * t + n, p = (e = 0, n = 0) => {
619
+ i && (e = this.element.scrollWidth - this.element.clientWidth - e), this.scrollTo({
620
+ left: e,
621
+ top: n,
622
+ behavior: t
623
+ });
624
+ }, m = n ? {
625
+ rows: 0,
626
+ cols: 0
627
+ } : 0, h = !1, g = !1;
628
+ n ? (m = {
629
+ rows: d(e[0], c[0]),
630
+ cols: d(e[1], c[1])
631
+ }, p(f(m.cols, u[1], l.left), f(m.rows, u[0], l.top)), g = this.lastScrollPos.top !== o || this.lastScrollPos.left !== s, h = m.rows !== a.rows || m.cols !== a.cols) : (m = d(e, c), r ? p(f(m, u, l.left), o) : p(s, f(m, u, l.top)), g = this.lastScrollPos !== (r ? s : o), h = m !== a), this.isRangeChanged = h, g && (this.first = m);
632
+ }
633
+ },
634
+ scrollInView(e, t, n = "auto") {
635
+ if (t) {
636
+ let r = this.isBoth(), i = this.isHorizontal();
637
+ if (r ? e.every((e) => e > -1) : e > -1) {
638
+ let { first: a, viewport: o } = this.getRenderedRange(), s = (e = 0, t = 0) => this.scrollTo({
639
+ left: e,
640
+ top: t,
641
+ behavior: n
642
+ }), c = t === "to-start", l = t === "to-end";
643
+ if (c) {
644
+ if (r) o.first.rows - a.rows > e[0] ? s(o.first.cols * this.itemSize[1], (o.first.rows - 1) * this.itemSize[0]) : o.first.cols - a.cols > e[1] && s((o.first.cols - 1) * this.itemSize[1], o.first.rows * this.itemSize[0]);
645
+ else if (o.first - a > e) {
646
+ let e = (o.first - 1) * this.itemSize;
647
+ i ? s(e, 0) : s(0, e);
648
+ }
649
+ } else if (l) {
650
+ if (r) o.last.rows - a.rows <= e[0] + 1 ? s(o.first.cols * this.itemSize[1], (o.first.rows + 1) * this.itemSize[0]) : o.last.cols - a.cols <= e[1] + 1 && s((o.first.cols + 1) * this.itemSize[1], o.first.rows * this.itemSize[0]);
651
+ else if (o.last - a <= e + 1) {
652
+ let e = (o.first + 1) * this.itemSize;
653
+ i ? s(e, 0) : s(0, e);
654
+ }
655
+ }
656
+ }
657
+ } else this.scrollToIndex(e, n);
658
+ },
659
+ getRenderedRange() {
660
+ let e = (e, t) => Math.floor(e / (t || e)), t = this.first, n = 0;
661
+ if (this.element) {
662
+ let r = this.isBoth(), i = this.isHorizontal(), { scrollTop: a, scrollLeft: o } = this.element;
663
+ r ? (t = {
664
+ rows: e(a, this.itemSize[0]),
665
+ cols: e(o, this.itemSize[1])
666
+ }, n = {
667
+ rows: t.rows + this.numItemsInViewport.rows,
668
+ cols: t.cols + this.numItemsInViewport.cols
669
+ }) : (t = e(i ? o : a, this.itemSize), n = t + this.numItemsInViewport);
670
+ }
671
+ return {
672
+ first: this.first,
673
+ last: this.last,
674
+ viewport: {
675
+ first: t,
676
+ last: n
677
+ }
678
+ };
679
+ },
680
+ calculateNumItems() {
681
+ let e = this.isBoth(), t = this.isHorizontal(), n = this.itemSize, r = this.getContentPosition(), i = this.element ? this.element.offsetWidth - r.left : 0, a = this.element ? this.element.offsetHeight - r.top : 0, o = (e, t) => Math.ceil(e / (t || e)), s = (e) => Math.ceil(e / 2), c = e ? {
682
+ rows: o(a, n[0]),
683
+ cols: o(i, n[1])
684
+ } : o(t ? i : a, n);
685
+ return {
686
+ numItemsInViewport: c,
687
+ numToleratedItems: this.d_numToleratedItems || (e ? [s(c.rows), s(c.cols)] : s(c))
688
+ };
689
+ },
690
+ calculateOptions() {
691
+ let e = this.isBoth(), t = this.first, { numItemsInViewport: n, numToleratedItems: r } = this.calculateNumItems(), i = (e, t, n, r = !1) => this.getLast(e + t + (e < n ? 2 : 3) * n, r), a = e ? {
692
+ rows: i(t.rows, n.rows, r[0]),
693
+ cols: i(t.cols, n.cols, r[1], !0)
694
+ } : i(t, n, r);
695
+ this.last = a, this.numItemsInViewport = n, this.d_numToleratedItems = r, this.$emit("update:numToleratedItems", this.d_numToleratedItems), this.showLoader && (this.loaderArr = e ? Array.from({ length: n.rows }).map(() => Array.from({ length: n.cols })) : Array.from({ length: n })), this.lazy && Promise.resolve().then(() => {
696
+ this.lazyLoadState = {
697
+ first: this.step ? e ? {
698
+ rows: 0,
699
+ cols: t.cols
700
+ } : 0 : t,
701
+ last: Math.min(this.step ? this.step : a, this.items?.length - 1 || 0)
702
+ }, this.$emit("lazy-load", this.lazyLoadState);
703
+ });
704
+ },
705
+ calculateAutoSize() {
706
+ this.autoSize && !this.d_loading && Promise.resolve().then(() => {
707
+ if (this.content) {
708
+ let e = this.isBoth(), n = this.isHorizontal(), r = this.isVertical();
709
+ this.content.style.minHeight = this.content.style.minWidth = "auto", this.content.style.position = "relative", this.element.style.contain = "none";
710
+ let [i, a] = [t(this.element), o(this.element)];
711
+ (e || n) && (this.element.style.width = i < this.defaultWidth ? i + "px" : this.scrollWidth || this.defaultWidth + "px"), (e || r) && (this.element.style.height = a < this.defaultHeight ? a + "px" : this.scrollHeight || this.defaultHeight + "px"), this.content.style.minHeight = this.content.style.minWidth = "", this.content.style.position = "", this.element.style.contain = "";
712
+ }
713
+ });
714
+ },
715
+ getLast(e = 0, t) {
716
+ return this.items ? Math.min(t ? (this.columns || this.items[0])?.length || 0 : this.items?.length || 0, e) : 0;
717
+ },
718
+ getContentPosition() {
719
+ if (this.content) {
720
+ let e = getComputedStyle(this.content), t = parseFloat(e.paddingLeft) + Math.max(parseFloat(e.left) || 0, 0), n = parseFloat(e.paddingRight) + Math.max(parseFloat(e.right) || 0, 0), r = parseFloat(e.paddingTop) + Math.max(parseFloat(e.top) || 0, 0), i = parseFloat(e.paddingBottom) + Math.max(parseFloat(e.bottom) || 0, 0);
721
+ return {
722
+ left: t,
723
+ right: n,
724
+ top: r,
725
+ bottom: i,
726
+ x: t + n,
727
+ y: r + i
728
+ };
729
+ }
730
+ return {
731
+ left: 0,
732
+ right: 0,
733
+ top: 0,
734
+ bottom: 0,
735
+ x: 0,
736
+ y: 0
737
+ };
738
+ },
739
+ setSize() {
740
+ if (this.element) {
741
+ let e = this.isBoth(), t = this.isHorizontal(), n = this.element.parentElement, r = this.scrollWidth || `${this.element.offsetWidth || n.offsetWidth}px`, i = this.scrollHeight || `${this.element.offsetHeight || n.offsetHeight}px`, a = (e, t) => this.element.style[e] = t;
742
+ e || t ? (a("height", i), a("width", r)) : a("height", i);
743
+ }
744
+ },
745
+ setSpacerSize() {
746
+ let e = this.items;
747
+ if (e) {
748
+ let t = this.isBoth(), n = this.isHorizontal(), r = this.getContentPosition(), i = (e, t, n, r = 0) => this.spacerStyle = {
749
+ ...this.spacerStyle,
750
+ [`${e}`]: (t || []).length * n + r + "px"
751
+ };
752
+ t ? (i("height", e, this.itemSize[0], r.y), i("width", this.columns || e[1], this.itemSize[1], r.x)) : n ? i("width", this.columns || e, this.itemSize, r.x) : i("height", e, this.itemSize, r.y);
753
+ }
754
+ },
755
+ setContentPosition(e) {
756
+ if (this.content && !this.appendOnly) {
757
+ let t = this.isBoth(), n = this.isHorizontal(), r = this.rtl && n, i = e ? e.first : this.first, a = (e, t) => e * t, o = (e = 0, t = 0) => {
758
+ let n = r ? -e : e;
759
+ this.contentStyle = {
760
+ ...this.contentStyle,
761
+ transform: `translate3d(${n}px, ${t}px, 0)`
762
+ };
763
+ };
764
+ if (t) {
765
+ let e = i.rows, t = i.cols, n = this.itemSize;
766
+ o(a(t, n[1]), a(e, n[0]));
767
+ } else {
768
+ let e = i, t = this.itemSize, r = a(e, t);
769
+ n ? o(r, 0) : o(0, r);
770
+ }
771
+ }
772
+ },
773
+ onScrollPositionChange(e) {
774
+ let t = e.target, n = this.isBoth(), r = this.isHorizontal(), i = this.rtl && r, a = this.getContentPosition(), o = (e, t) => e ? e > t ? e - t : e : 0, s = (e, t) => Math.floor(e / (t || e)), c = o(t.scrollTop, a.top), l = o(t.scrollLeft, a.left);
775
+ i && l < 0 && (l = Math.abs(l));
776
+ let u = n ? {
777
+ rows: 0,
778
+ cols: 0
779
+ } : 0, d = this.last, f = !1, p = this.lastScrollPos;
780
+ if (n) {
781
+ let e = this.lastScrollPos.top <= c, n = this.lastScrollPos.left <= l;
782
+ if (!this.appendOnly || this.appendOnly && (e || n)) {
783
+ let r = {
784
+ rows: s(c, this.itemSize[0]),
785
+ cols: s(l, this.itemSize[1])
786
+ }, i = {
787
+ rows: this.calculateTriggerIndex(r.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], e),
788
+ cols: this.calculateTriggerIndex(r.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], n)
789
+ };
790
+ u = {
791
+ rows: this.calculateFirst(r.rows, i.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], e),
792
+ cols: this.calculateFirst(r.cols, i.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], n, !0)
793
+ }, d = {
794
+ rows: this.calculateLast(r.rows, u.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0]),
795
+ cols: this.calculateLast(r.cols, u.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], !0)
796
+ }, f = u.rows !== this.first.rows || d.rows !== this.last.rows || u.cols !== this.first.cols || d.cols !== this.last.cols || this.isRangeChanged, p = {
797
+ top: c,
798
+ left: t.scrollLeft
799
+ };
800
+ }
801
+ } else {
802
+ let e = r ? l : c, t = this.lastScrollPos <= e;
803
+ if (!this.appendOnly || this.appendOnly && t) {
804
+ let n = s(e, this.itemSize), r = this.calculateTriggerIndex(n, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, t);
805
+ u = this.calculateFirst(n, r, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, t), d = this.calculateLast(n, u, this.last, this.numItemsInViewport, this.d_numToleratedItems), f = u !== this.first || d !== this.last || this.isRangeChanged, p = e;
806
+ }
807
+ }
808
+ return {
809
+ first: u,
810
+ last: d,
811
+ isRangeChanged: f,
812
+ scrollPos: p
813
+ };
814
+ },
815
+ calculateTriggerIndex(e, t, n, r, i, a) {
816
+ return e <= i ? i : a ? n - r - i : t + i - 1;
817
+ },
818
+ calculateFirst(e, t, n, r, i, a, o, s = !1) {
819
+ if (e <= a) return 0;
820
+ let c = Math.max(0, o ? e < t ? n : e - a : e > t ? n : e - 2 * a), l = this.getLast(c, s);
821
+ return c > l ? l - i : c;
822
+ },
823
+ calculateLast(e, t, n, r, i, a = !1) {
824
+ let o = t + r + 2 * i;
825
+ return e >= i && (o += i + 1), this.getLast(o, a);
826
+ },
827
+ onScrollChange(e) {
828
+ let { first: t, last: n, isRangeChanged: r, scrollPos: i } = this.onScrollPositionChange(e);
829
+ if (r) {
830
+ let e = {
831
+ first: t,
832
+ last: n
833
+ };
834
+ if (this.setContentPosition(e), this.first = t, this.last = n, this.lastScrollPos = i, this.$emit("scroll-index-change", e), this.lazy && this.isPageChanged(t)) {
835
+ let e = {
836
+ first: this.step ? Math.min(this.getPageByFirst(t) * this.step, (this.items?.length || 0) - this.step) : t,
837
+ last: Math.min(this.step ? (this.getPageByFirst(t) + 1) * this.step : n, this.items?.length - 1 || 0)
838
+ };
839
+ (this.lazyLoadState.first !== e.first || this.lazyLoadState.last !== e.last) && this.$emit("lazy-load", e), this.lazyLoadState = e;
840
+ }
841
+ }
842
+ },
843
+ onScroll(e) {
844
+ if (this.$emit("scroll", e), this.delay) {
845
+ if (this.scrollTimeout && clearTimeout(this.scrollTimeout), this.isPageChanged()) {
846
+ if (!this.d_loading && this.showLoader) {
847
+ let { isRangeChanged: t } = this.onScrollPositionChange(e);
848
+ (t || this.step && this.isPageChanged()) && (this.d_loading = !0);
849
+ }
850
+ this.scrollTimeout = setTimeout(() => {
851
+ this.onScrollChange(e), this.d_loading && this.showLoader && (!this.lazy || this.loading === void 0) && (this.d_loading = !1, this.page = this.getPageByFirst());
852
+ }, this.delay);
853
+ }
854
+ } else this.onScrollChange(e);
855
+ },
856
+ onResize() {
857
+ this.resizeTimeout && clearTimeout(this.resizeTimeout), this.resizeTimeout = setTimeout(() => {
858
+ if (r(this.element)) {
859
+ let e = this.isBoth(), n = this.isVertical(), r = this.isHorizontal(), [i, a] = [t(this.element), o(this.element)], [s, c] = [i !== this.defaultWidth, a !== this.defaultHeight];
860
+ (e ? s || c : r ? s : n && c) && (this.d_numToleratedItems = this.numToleratedItems, this.defaultWidth = i, this.defaultHeight = a, this.defaultContentWidth = t(this.content), this.defaultContentHeight = o(this.content), this.init());
861
+ }
862
+ }, this.resizeDelay);
863
+ },
864
+ bindResizeListener() {
865
+ this.resizeListener || (this.resizeListener = this.onResize.bind(this), window.addEventListener("resize", this.resizeListener), window.addEventListener("orientationchange", this.resizeListener));
866
+ },
867
+ unbindResizeListener() {
868
+ this.resizeListener &&= (window.removeEventListener("resize", this.resizeListener), window.removeEventListener("orientationchange", this.resizeListener), null);
869
+ },
870
+ getOptions(e) {
871
+ let t = (this.items || []).length, n = this.isBoth() ? this.first.rows + e : this.first + e;
872
+ return {
873
+ index: n,
874
+ count: t,
875
+ first: n === 0,
876
+ last: n === t - 1,
877
+ even: n % 2 == 0,
878
+ odd: n % 2 != 0
879
+ };
880
+ },
881
+ getLoaderOptions(e, t) {
882
+ let n = this.loaderArr.length;
883
+ return {
884
+ index: e,
885
+ count: n,
886
+ first: e === 0,
887
+ last: e === n - 1,
888
+ even: e % 2 == 0,
889
+ odd: e % 2 != 0,
890
+ ...t
891
+ };
892
+ },
893
+ getPageByFirst(e) {
894
+ return Math.floor(((e ?? this.first) + this.d_numToleratedItems * 4) / (this.step || 1));
895
+ },
896
+ isPageChanged(e) {
897
+ return this.step && !this.lazy ? this.page !== this.getPageByFirst(e ?? this.first) : !0;
898
+ },
899
+ setContentEl(t) {
900
+ this.content = t || this.content || e(this.element, "[data-pc-section=\"content\"]");
901
+ },
902
+ elementRef(e) {
903
+ this.element = e;
904
+ },
905
+ contentRef(e) {
906
+ this.content = e;
907
+ }
908
+ }
909
+ }, z = ["tabindex"];
910
+ function B(e, t, n, r, i, a) {
911
+ let o = w("SpinnerIcon");
912
+ return e.disabled ? (u(), C(E, { key: 1 }, [f(e.$slots, "default"), f(e.$slots, "content", {
913
+ items: e.items,
914
+ rows: e.items,
915
+ columns: a.loadedColumns
916
+ })], 64)) : (u(), C("div", p({
917
+ key: 0,
918
+ ref: a.elementRef,
919
+ class: a.containerClass,
920
+ tabindex: e.tabindex,
921
+ style: e.style
922
+ }, e.ptmi("root"), { onScroll: t[0] ||= (...e) => a.onScroll && a.onScroll(...e) }), [
923
+ f(e.$slots, "content", {
924
+ styleClass: a.contentClass,
925
+ items: a.loadedItems,
926
+ getItemOptions: a.getOptions,
927
+ loading: i.d_loading,
928
+ getLoaderOptions: a.getLoaderOptions,
929
+ itemSize: e.itemSize,
930
+ rows: a.loadedRows,
931
+ columns: a.loadedColumns,
932
+ contentRef: a.contentRef,
933
+ spacerStyle: i.spacerStyle,
934
+ contentStyle: i.contentStyle,
935
+ vertical: a.isVertical(),
936
+ horizontal: a.isHorizontal(),
937
+ both: a.isBoth()
938
+ }, () => [O("div", p({
939
+ ref: a.contentRef,
940
+ class: a.contentClass,
941
+ style: i.contentStyle
942
+ }, e.ptm("content")), [(u(!0), C(E, null, l(a.loadedItems, (t, n) => f(e.$slots, "item", {
943
+ item: t,
944
+ options: a.getOptions(n)
945
+ }, void 0, void 0, a.resolveItemKey(t, n))), 128))], 16)]),
946
+ e.showSpacer ? (u(), C("div", p({
947
+ key: 0,
948
+ class: "p-virtualscroller-spacer",
949
+ style: i.spacerStyle
950
+ }, e.ptm("spacer")), null, 16)) : v("", !0),
951
+ !e.loaderDisabled && e.showLoader && i.d_loading ? (u(), C("div", p({
952
+ key: 1,
953
+ class: a.loaderClass
954
+ }, e.ptm("loader")), [e.$slots && e.$slots.loader ? (u(!0), C(E, { key: 0 }, l(i.loaderArr, (t, n) => f(e.$slots, "loader", { options: a.getLoaderOptions(n, a.isBoth() && { numCols: e.d_numItemsInViewport.cols }) }, void 0, void 0, n)), 128)) : v("", !0), f(e.$slots, "loadingicon", {}, () => [M(o, p({
955
+ spin: "",
956
+ class: "p-virtualscroller-loading-icon"
957
+ }, e.ptm("loadingIcon")), null, 16)])], 16)) : v("", !0)
958
+ ], 16, z));
959
+ }
960
+ var V = /*#__PURE__*/ F(R, [["render", B]]), H = /*#__PURE__*/ F(/* @__PURE__ */ A({
961
+ __name: "CuiRecordingsGrid",
962
+ props: {
963
+ items: {},
964
+ minItemWidth: {},
965
+ aspectRatio: { default: 1 },
966
+ gap: { default: 8 },
967
+ hasMore: {
968
+ type: Boolean,
969
+ default: !1
970
+ },
971
+ loadMore: {
972
+ type: Function,
973
+ default: void 0
974
+ },
975
+ itemKey: {
976
+ type: Function,
977
+ default: void 0
978
+ }
979
+ },
980
+ setup(e, { expose: t }) {
981
+ let n = e, r = D("containerRef"), { width: i, height: a } = we(r), o = b(() => a.value > 0 ? `${a.value}px` : void 0), s = b(() => {
982
+ let e = i.value;
983
+ if (!e) return 0;
984
+ let t = n.gap;
985
+ return Math.max(1, Math.floor((e + t) / (n.minItemWidth + t)));
986
+ }), c = b(() => {
987
+ let e = i.value, t = s.value;
988
+ return !e || !t ? 0 : Math.floor((e - (t - 1) * n.gap) / t);
989
+ }), d = b(() => c.value ? Math.floor(c.value / n.aspectRatio) : 0), p = b(() => d.value ? d.value + n.gap : 0), h = b(() => {
990
+ let e = s.value;
991
+ if (!e) return [];
992
+ let t = [];
993
+ for (let r = 0; r < n.items.length; r += e) t.push(n.items.slice(r, r + e));
994
+ return t;
995
+ });
996
+ function g(e) {
997
+ if (n.itemKey) return n.itemKey(e);
998
+ let t = e;
999
+ return t.id ?? t.key ?? JSON.stringify(e);
1000
+ }
1001
+ function w(e) {
1002
+ let t = e;
1003
+ if (!(!t || t.length === 0)) return g(t[0]);
1004
+ }
1005
+ let k = !1, A = null;
1006
+ async function M() {
1007
+ if (k || !n.hasMore || !n.loadMore || A !== null && n.items.length === A) return;
1008
+ k = !0;
1009
+ let e = n.items.length;
1010
+ try {
1011
+ await Promise.resolve(n.loadMore());
1012
+ } finally {
1013
+ k = !1, A = n.items.length === e ? e : null;
1014
+ }
1015
+ }
1016
+ let ee = j(0);
1017
+ function te(e) {
1018
+ let t = e.target;
1019
+ if (!t) return;
1020
+ ee.value = t.scrollTop;
1021
+ let n = p.value * 3;
1022
+ t.scrollTop + t.clientHeight >= t.scrollHeight - n && M();
1023
+ }
1024
+ function ne() {
1025
+ (r.value?.querySelector(".recordings-scroll"))?.scrollTo({
1026
+ top: 0,
1027
+ behavior: "smooth"
1028
+ });
1029
+ }
1030
+ let N = !1;
1031
+ return S([
1032
+ () => n.items.length,
1033
+ a,
1034
+ p,
1035
+ () => n.hasMore
1036
+ ], () => {
1037
+ N || (N = !0, m(() => {
1038
+ if (N = !1, !n.hasMore) return;
1039
+ let e = a.value, t = h.value.length * p.value;
1040
+ e > 0 && p.value > 0 && t < e + p.value && M();
1041
+ }));
1042
+ }, { flush: "post" }), t({
1043
+ scrollToTop: ne,
1044
+ scrollY: ee
1045
+ }), (t, n) => {
1046
+ let i = V;
1047
+ return u(), C("div", {
1048
+ ref_key: "containerRef",
1049
+ ref: r,
1050
+ class: "recordings-grid-root"
1051
+ }, [y(h).length > 0 && y(c) > 0 ? (u(), _(i, {
1052
+ key: 0,
1053
+ items: y(h),
1054
+ "item-size": y(p),
1055
+ "scroll-height": y(o),
1056
+ orientation: "vertical",
1057
+ class: "recordings-scroll",
1058
+ "num-tolerated-items": 2,
1059
+ "item-key": w,
1060
+ onScroll: te
1061
+ }, {
1062
+ item: x(({ item: n }) => [O("div", {
1063
+ class: "recordings-row",
1064
+ style: T({
1065
+ height: `${y(p)}px`,
1066
+ gap: `${e.gap}px`
1067
+ })
1068
+ }, [(u(!0), C(E, null, l(n, (e) => (u(), C("div", {
1069
+ key: g(e),
1070
+ style: T({
1071
+ width: `${y(c)}px`,
1072
+ height: `${y(d)}px`
1073
+ })
1074
+ }, [f(t.$slots, "item", { item: e }, void 0, !0)], 4))), 128))], 4)]),
1075
+ _: 3
1076
+ }, 8, [
1077
+ "items",
1078
+ "item-size",
1079
+ "scroll-height"
1080
+ ])) : v("", !0)], 512);
1081
+ };
1082
+ }
1083
+ }), [["__scopeId", "data-v-e61b8b84"]]);
1084
+ //#endregion
1085
+ //#region src/components/CuiRecordings/ungrouped.ts
1086
+ function U(e) {
1087
+ if (e.episode) return e.episode.endTime;
1088
+ if (e.segIndex !== void 0) {
1089
+ let t = e.event.segments?.[e.segIndex];
1090
+ if (t) return t.firstSeen;
1091
+ }
1092
+ return e.event.thumbnailAt ?? e.event.startTime;
1093
+ }
1094
+ function W(e) {
1095
+ let t = [];
1096
+ for (let n of e) {
1097
+ let e = n.segments ?? [];
1098
+ if (e.length <= 1) {
1099
+ t.push({
1100
+ event: n,
1101
+ key: n.id
1102
+ });
1103
+ continue;
1104
+ }
1105
+ e.forEach((e, r) => {
1106
+ e && t.push({
1107
+ event: n,
1108
+ key: `${n.id}:seg:${r}`,
1109
+ segIndex: r
1110
+ });
1111
+ });
1112
+ }
1113
+ return t.sort((e, t) => U(t) - U(e)), t;
1114
+ }
1115
+ //#endregion
1116
+ export { L as i, U as n, H as r, W as t };