@camera.ui/server 2.0.10 → 2.0.12

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 (381) hide show
  1. package/dist/interface/assets/{404-ChR2IVti.js → 404-Dfyzm8bF.js} +1 -1
  2. package/dist/interface/assets/{About-CDQ55crC.js → About-B4Y3WP7T.js} +1 -1
  3. package/dist/interface/assets/{Adminpanel-CiJGwx7_.js → Adminpanel-DSk1uh2x.js} +1 -1
  4. package/dist/interface/assets/Automation-CTSfLcmF.js +2 -0
  5. package/dist/interface/assets/AutomationImport-B1P0T0Pe.js +2 -0
  6. package/dist/interface/assets/AutomationStore-ZaaXPPbd.js +2 -0
  7. package/dist/interface/assets/AutomationStoreDetail-B2vc7mTZ.js +2 -0
  8. package/dist/interface/assets/Automations-Bvw-jTKi.js +2 -0
  9. package/dist/interface/assets/Camera-BxmJXk11.js +2 -0
  10. package/dist/interface/assets/{CameraConsole-dx9vB5ht.js → CameraConsole-CVqgED5u.js} +2 -2
  11. package/dist/interface/assets/Cameras-DT62fcZK.js +652 -0
  12. package/dist/interface/assets/Camview-CqSckgLr.js +1 -0
  13. package/dist/interface/assets/Config-p9t9zgly.js +2 -0
  14. package/dist/interface/assets/{ConfigActionCameraControl-CrWmGvdE.js → ConfigActionCameraControl-BLROOU0q.js} +1 -1
  15. package/dist/interface/assets/{ConfigActionDelay-1kd69ysm.js → ConfigActionDelay-q0pOTOzh.js} +1 -1
  16. package/dist/interface/assets/{ConfigActionHttp-XY-r_hEX.js → ConfigActionHttp-DiMXKRGz.js} +1 -1
  17. package/dist/interface/assets/ConfigActionImageInput-u5xX9t3-.js +1 -0
  18. package/dist/interface/assets/{ConfigActionMqtt-DsX-q9M_.js → ConfigActionMqtt-BkZl3uYq.js} +1 -1
  19. package/dist/interface/assets/ConfigActionNotification-DIkFNlKe.js +1 -0
  20. package/dist/interface/assets/{ConfigActionOutput-DMYPThT1.js → ConfigActionOutput-CJF0F4cT.js} +1 -1
  21. package/dist/interface/assets/{ConfigActionPlugin-rCaB0HjK.js → ConfigActionPlugin-rQeJ4umG.js} +1 -1
  22. package/dist/interface/assets/ConfigActionSensor-BWHpkoMs.js +1 -0
  23. package/dist/interface/assets/{ConfigActionSnapshot-8vrwtN10.js → ConfigActionSnapshot-BlvQZl1R.js} +1 -1
  24. package/dist/interface/assets/{ConfigActionVariable-Dy8ZnhCO.js → ConfigActionVariable-BMV-BDAk.js} +1 -1
  25. package/dist/interface/assets/{ConfigConditionIfElse-DK9Z6-kN.js → ConfigConditionIfElse-C5geCT1S.js} +1 -1
  26. package/dist/interface/assets/ConfigConditionSensorState-8bIGEhQd.js +1 -0
  27. package/dist/interface/assets/{ConfigConditionSwitch-_Gxu6OYc.js → ConfigConditionSwitch-PwrCSnTQ.js} +1 -1
  28. package/dist/interface/assets/{ConfigConditionTime-Ce8AortY.js → ConfigConditionTime-DUt_dsr9.js} +1 -1
  29. package/dist/interface/assets/{ConfigSensorValueInput-BIiQ8NN6.js → ConfigSensorValueInput-CgZWxOMu.js} +1 -1
  30. package/dist/interface/assets/{ConfigTriggerDetection-CCCi-Tof.js → ConfigTriggerDetection-D4UitpXI.js} +1 -1
  31. package/dist/interface/assets/ConfigTriggerGeofence-Ci-gkmjS.js +1 -0
  32. package/dist/interface/assets/{ConfigTriggerManual-DZPdLXoe.js → ConfigTriggerManual-_PAVLJxz.js} +1 -1
  33. package/dist/interface/assets/{ConfigTriggerMqtt-4Gp-qhCg.js → ConfigTriggerMqtt-BtfXQ_Bh.js} +1 -1
  34. package/dist/interface/assets/{ConfigTriggerSchedule-DQX6czW4.js → ConfigTriggerSchedule-CHyW4YQ1.js} +1 -1
  35. package/dist/interface/assets/{ConfigTriggerSensor-CLnC2yvE.js → ConfigTriggerSensor-CZMplCYs.js} +1 -1
  36. package/dist/interface/assets/{ConfigTriggerSystem-Gae5o59O.js → ConfigTriggerSystem-OOffe8rK.js} +1 -1
  37. package/dist/interface/assets/ConfigTriggerWebhook-Baul6M1Y.js +1 -0
  38. package/dist/interface/assets/Console-MXiL0z_X.js +1 -0
  39. package/dist/interface/assets/{CuiActionButton-BAlSwXzv.js → CuiActionButton-WFz5I80P.js} +1 -1
  40. package/dist/interface/assets/{CuiAvatar-DeBKq6dT.js → CuiAvatar-BUwQnIaI.js} +1 -1
  41. package/dist/interface/assets/{CuiBBoxPlayground-yYOBCXTq.js → CuiBBoxPlayground-J7_8dCvo.js} +1 -1
  42. package/dist/interface/assets/CuiBottomSheet-BA-u9UtN.js +1 -0
  43. package/dist/interface/assets/{CuiBottomSheet-udULz0wI.js → CuiBottomSheet-CzG0n4Oa.js} +1 -1
  44. package/dist/interface/assets/CuiCameraCard-GH-DR5_s.js +1 -0
  45. package/dist/interface/assets/{CuiCameraPipCard-BxbUK-93.js → CuiCameraPipCard-CL_wj05b.js} +1 -1
  46. package/dist/interface/assets/CuiCameraRecordings-BjErk9Gl.js +1 -0
  47. package/dist/interface/assets/CuiCameraShares-qrJhZMEt.js +1 -0
  48. package/dist/interface/assets/CuiCameraSnapshot-Dn1QSGrr.js +1 -0
  49. package/dist/interface/assets/CuiCameraTable-or8VpE34.js +2 -0
  50. package/dist/interface/assets/{CuiDataTable-CB7aMmp9.js → CuiDataTable-CjXiUFiJ.js} +1 -1
  51. package/dist/interface/assets/CuiFloatingButton-BjpU1EHv.js +1 -0
  52. package/dist/interface/assets/CuiImage-BM4g6edi.css +1 -0
  53. package/dist/interface/assets/CuiImage-Bq3bxOOL.js +1 -0
  54. package/dist/interface/assets/CuiMenu-DtnIPhcr.js +1 -0
  55. package/dist/interface/assets/CuiPluginCard-DKNWUFpR.js +2 -0
  56. package/dist/interface/assets/{CuiPluginCategoryChip-yMnZpSGr.js → CuiPluginCategoryChip-cmfKx-dU.js} +1 -1
  57. package/dist/interface/assets/CuiPluginOAuthButton-C6FQiVkt.js +2 -0
  58. package/dist/interface/assets/CuiPluginTrustBadge-PVZMP1rI.js +1 -0
  59. package/dist/interface/assets/{CuiQRCode-D9QNUEmx.js → CuiQRCode-uQygC1dP.js} +1 -1
  60. package/dist/interface/assets/CuiRecordingsGrid-Cuwd4L67.js +1 -0
  61. package/dist/interface/assets/CuiSchema-CH0GXMWV.js +1 -0
  62. package/dist/interface/assets/{CuiTopNavbarItem--MOi9UUw.js → CuiTopNavbarItem-nGcC2em4.js} +1 -1
  63. package/dist/interface/assets/{CuiTopbarSlot-Bcw46PzA.js → CuiTopbarSlot-B6UMqYZl.js} +1 -1
  64. package/dist/interface/assets/Faces-cpO5vJbp.js +1 -0
  65. package/dist/interface/assets/FirstSteps-BHTcbs9O.js +1 -0
  66. package/dist/interface/assets/Instances-BXiVG2Dm.js +1 -0
  67. package/dist/interface/assets/Logs-hMg2QOGj.js +6 -0
  68. package/dist/interface/assets/{Menu-GbuCaA_6.js → Menu-BiPBCi8Z.js} +1 -1
  69. package/dist/interface/assets/OAuthDeviceFlow-Bia9UA3I.js +1 -0
  70. package/dist/interface/assets/Plugin-DfRaHAsi.js +1 -0
  71. package/dist/interface/assets/{PluginConsole-CLGkDl1F.js → PluginConsole-CRw4zTRM.js} +2 -2
  72. package/dist/interface/assets/PluginDetail-BYqji8yN.css +1 -0
  73. package/dist/interface/assets/PluginDetail-BqRoLZc7.js +2 -0
  74. package/dist/interface/assets/{PluginSchema-Dy9kDPML.js → PluginSchema-TtBJPR_R.js} +1 -1
  75. package/dist/interface/assets/PluginSearch-B_NYpJi3.js +2 -0
  76. package/dist/interface/assets/{PluginSearch-NuKgD1r3.css → PluginSearch-Bbp8D7BJ.css} +1 -1
  77. package/dist/interface/assets/PluginSearch-DnJgg6-6.js +1 -0
  78. package/dist/interface/assets/Plugins-DVFEGtj3.js +1 -0
  79. package/dist/interface/assets/Recordings-dwm6lAoJ.js +1 -0
  80. package/dist/interface/assets/{Settings-is528I5i2.js → Settings-BpBmrGpS.js} +1 -1
  81. package/dist/interface/assets/SettingsAccount-8Kh1uQqn.js +1 -0
  82. package/dist/interface/assets/{SettingsAccount-Y7hpH8Y3.css → SettingsAccount-CBJ_h7eM.css} +1 -1
  83. package/dist/interface/assets/SettingsAccount-CjgYe5mF.js +1 -0
  84. package/dist/interface/assets/SettingsAppearance-3i3Ix7j-.js +1 -0
  85. package/dist/interface/assets/{SettingsAppearance-CGaG9lml.js → SettingsAppearance-EoBxclgt.js} +1 -1
  86. package/dist/interface/assets/SettingsBackup-Bpsbg6Pm.js +1 -0
  87. package/dist/interface/assets/SettingsMqtt-ZQolc9lR.js +1 -0
  88. package/dist/interface/assets/SettingsNotifications-BOoMt1Er.js +2 -0
  89. package/dist/interface/assets/SettingsRecordings-BQhxLCgM.js +1 -0
  90. package/dist/interface/assets/SettingsRemote-Cvcmpdgb.js +1 -0
  91. package/dist/interface/assets/SettingsRemote-DYld6-1F.css +1 -0
  92. package/dist/interface/assets/SettingsSystem-B-yhq40t.js +2 -0
  93. package/dist/interface/assets/SettingsUsers-CezygBk8.js +1 -0
  94. package/dist/interface/assets/Terminal-CDQJGwb_.js +4 -0
  95. package/dist/interface/assets/{VariableInput-DW39Zo4d.js → VariableInput-CnmqCHf7.js} +1 -1
  96. package/dist/interface/assets/{VariableSuggestions-DwhFBKzJ.js → VariableSuggestions-D6IlwBqV.js} +1 -1
  97. package/dist/interface/assets/VersionsHandler-BHR1k9zz.js +7 -0
  98. package/dist/interface/assets/Workers-Bv-bWBC-.js +2 -0
  99. package/dist/interface/assets/{Workers-E6LM_yAl.css → Workers-DmcQx0L8.css} +1 -1
  100. package/dist/interface/assets/{api-Br3Jmdj6.js → api-BhOwzvxK.js} +1 -1
  101. package/dist/interface/assets/api-Cea16mc8.js +2 -0
  102. package/dist/interface/assets/api-GMfqGYqQ.css +2 -0
  103. package/dist/interface/assets/auth-CNPkdTXX.js +1 -0
  104. package/dist/interface/assets/{automations-Dd-6vvka.js → automations-CHengR-B.js} +1 -1
  105. package/dist/interface/assets/automations-DhLADBhd.js +1 -0
  106. package/dist/interface/assets/bell-outline-CHhIZudN.js +1 -0
  107. package/dist/interface/assets/{cameras-DCMMwuui.js → cameras-DyF2T0be.js} +1 -1
  108. package/dist/interface/assets/{cameras.schema-99F6GE0u.js → cameras.schema-DBzgU4m6.js} +1 -1
  109. package/dist/interface/assets/cloudHandoff-LxdvSi1a.js +1 -0
  110. package/dist/interface/assets/{config-BiEjYldh.js → config-c7o4sJrQ.js} +1 -1
  111. package/dist/interface/assets/{circular-connection-Fq-Vqe3X.js → delete-outline-CbGU9XWz.js} +1 -1
  112. package/dist/interface/assets/{deviceId-sq3mLBKa.js → deviceId-BYu9Q8Ay.js} +1 -1
  113. package/dist/interface/assets/{hasPermission-Dm18Z17u.js → hasPermission-CgyWyOhQ.js} +1 -1
  114. package/dist/interface/assets/instances-CRYtaTQS.js +1 -0
  115. package/dist/interface/assets/main-CgXkx5UO.js +3 -0
  116. package/dist/interface/assets/nodeDefinitions-DUlwYSC1.js +1 -0
  117. package/dist/interface/assets/{notifications-D87Lhlir.js → notifications-sejZCb0L.js} +1 -1
  118. package/dist/interface/assets/plugins-CCLFcD4c.js +1 -0
  119. package/dist/interface/assets/round-restart-alt-PDSZur-0.js +1 -0
  120. package/dist/interface/assets/{router-qrIK2v9X.css → router-C7b6u3Zu.css} +1 -1
  121. package/dist/interface/assets/router-DkMUvvnP.js +2 -0
  122. package/dist/interface/assets/{routerState-B08WcvfU.js → routerState-BR88YV1H.js} +1 -1
  123. package/dist/interface/assets/{server-D7bl4wSy.js → server-C7SETTy9.js} +1 -1
  124. package/dist/interface/assets/shares-Cy1SLL98.js +1 -0
  125. package/dist/interface/assets/{theme-BG6n3TRA.js → theme-DqbhRu7y.js} +1 -1
  126. package/dist/interface/assets/transit-connection-variant-DfztpRMW.js +1 -0
  127. package/dist/interface/assets/types-v8L66UlA.js +1 -0
  128. package/dist/interface/assets/{ui-Cv0M3koY.js → ui-g5rCwxUE.js} +1 -1
  129. package/dist/interface/assets/{useAppVersion-DCmhFeIs.js → useAppVersion-WfdoG9Ji.js} +1 -1
  130. package/dist/interface/assets/useBackupRestore-ootsFhdF.js +1 -0
  131. package/dist/interface/assets/{useBiometricCredentials-Tq1nEG8V.js → useBiometricCredentials-Ca75xEru.js} +1 -1
  132. package/dist/interface/assets/useCameraOptions-BpL2zbfV.js +1 -0
  133. package/dist/interface/assets/{useCuiCameraDrawer-BcAYizqy.js → useCuiCameraDrawer-BHUHw6W6.js} +1 -1
  134. package/dist/interface/assets/useCuiDialog-yVh5UWKF.js +2 -0
  135. package/dist/interface/assets/{useFileDownload-C5quSdZR.js → useFileDownload-BcaNWndS.js} +1 -1
  136. package/dist/interface/assets/useLogsSocket-BRSsUNqv.js +5 -0
  137. package/dist/interface/assets/useLogsSocket-CoA-Nq-_.css +1 -0
  138. package/dist/interface/assets/{useServerRestart-DnT0ZOYm.js → useServerRestart-PZhND5H_.js} +1 -1
  139. package/dist/interface/assets/{useSharedComposables-ffwWlpSL.js → useSharedComposables-USqd05AG.js} +1 -1
  140. package/dist/interface/assets/{useStreamStatus-CD18kTqt.js → useStreamStatus-nCx5ux1-.js} +1 -1
  141. package/dist/interface/assets/{useUpdateChannel-DbBXpySY.js → useUpdateChannel-3eHk3KXZ.js} +1 -1
  142. package/dist/interface/assets/{useUserOptions-Bb0ACtxn.js → useUserOptions-DVC4k8Zs.js} +1 -1
  143. package/dist/interface/assets/{users.schema-BGeyXreN.js → users.schema-B4fEuoKZ.js} +1 -1
  144. package/dist/interface/assets/vendor-cameraui-QuTJKoXE.js +2039 -0
  145. package/dist/interface/assets/vendor-core-CCcu_nmz.js +1 -0
  146. package/dist/interface/assets/{vendor-primevue-DB14kOh6.js → vendor-primevue-BdB7McKg.js} +84 -145
  147. package/dist/interface/assets/view-grid-BWJS0bBD.js +1 -0
  148. package/dist/interface/index.html +49 -48
  149. package/dist/interface/sw.js +1 -1
  150. package/dist/server/package.json +10 -10
  151. package/dist/server/requirements.txt +1 -1
  152. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/__init__.py +2 -0
  153. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/detection.py +3 -0
  154. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/__init__.py +2 -0
  155. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/base.py +10 -2
  156. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/ptz.py +45 -2
  157. package/dist/server/src/api/controllers/instances.controller.d.ts +2 -2
  158. package/dist/server/src/api/controllers/instances.controller.js +7 -7
  159. package/dist/server/src/api/controllers/instances.controller.js.map +1 -1
  160. package/dist/server/src/api/controllers/plugins.controller.js +1 -1
  161. package/dist/server/src/api/controllers/plugins.controller.js.map +1 -1
  162. package/dist/server/src/api/database/backfill.d.ts +5 -0
  163. package/dist/server/src/api/database/backfill.js +89 -0
  164. package/dist/server/src/api/database/backfill.js.map +1 -0
  165. package/dist/server/src/api/database/index.d.ts +1 -0
  166. package/dist/server/src/api/database/index.js +29 -43
  167. package/dist/server/src/api/database/index.js.map +1 -1
  168. package/dist/server/src/api/database/record-schemas.d.ts +231 -0
  169. package/dist/server/src/api/database/record-schemas.js +194 -0
  170. package/dist/server/src/api/database/record-schemas.js.map +1 -0
  171. package/dist/server/src/api/database/types.d.ts +8 -0
  172. package/dist/server/src/api/routes/instances.routes.js +2 -1
  173. package/dist/server/src/api/routes/instances.routes.js.map +1 -1
  174. package/dist/server/src/api/schemas/cameras.schema.d.ts +265 -1
  175. package/dist/server/src/api/schemas/cameras.schema.js +10 -0
  176. package/dist/server/src/api/schemas/cameras.schema.js.map +1 -1
  177. package/dist/server/src/api/schemas/config.schema.d.ts +2 -0
  178. package/dist/server/src/api/schemas/config.schema.js +1 -0
  179. package/dist/server/src/api/schemas/config.schema.js.map +1 -1
  180. package/dist/server/src/api/schemas/instances.schema.d.ts +4 -0
  181. package/dist/server/src/api/schemas/instances.schema.js +5 -0
  182. package/dist/server/src/api/schemas/instances.schema.js.map +1 -1
  183. package/dist/server/src/api/schemas/remote.schema.d.ts +1 -1
  184. package/dist/server/src/api/services/backupScheduler.service.js +1 -1
  185. package/dist/server/src/api/services/backupScheduler.service.js.map +1 -1
  186. package/dist/server/src/api/services/cameras.service.d.ts +1 -0
  187. package/dist/server/src/api/services/cameras.service.js +18 -1
  188. package/dist/server/src/api/services/cameras.service.js.map +1 -1
  189. package/dist/server/src/api/services/instances.service.d.ts +12 -3
  190. package/dist/server/src/api/services/instances.service.js +123 -36
  191. package/dist/server/src/api/services/instances.service.js.map +1 -1
  192. package/dist/server/src/api/services/plugins.service.js +29 -6
  193. package/dist/server/src/api/services/plugins.service.js.map +1 -1
  194. package/dist/server/src/api/services/virtualsensors.service.js +2 -2
  195. package/dist/server/src/api/services/virtualsensors.service.js.map +1 -1
  196. package/dist/server/src/api/types/index.d.ts +4 -1
  197. package/dist/server/src/api/websocket/nsp/main.js +3 -0
  198. package/dist/server/src/api/websocket/nsp/main.js.map +1 -1
  199. package/dist/server/src/api/websocket/nsp/server.d.ts +1 -0
  200. package/dist/server/src/api/websocket/nsp/server.js +3 -1
  201. package/dist/server/src/api/websocket/nsp/server.js.map +1 -1
  202. package/dist/server/src/camera/controller.d.ts +2 -1
  203. package/dist/server/src/camera/controller.js +19 -16
  204. package/dist/server/src/camera/controller.js.map +1 -1
  205. package/dist/server/src/camera/decoder/audio-loop.d.ts +25 -0
  206. package/dist/server/src/camera/decoder/audio-loop.js +163 -0
  207. package/dist/server/src/camera/decoder/audio-loop.js.map +1 -0
  208. package/dist/server/src/camera/decoder/cascade-manager.js +1 -4
  209. package/dist/server/src/camera/decoder/cascade-manager.js.map +1 -1
  210. package/dist/server/src/camera/decoder/detection-coordinator.d.ts +37 -97
  211. package/dist/server/src/camera/decoder/detection-coordinator.js +492 -1369
  212. package/dist/server/src/camera/decoder/detection-coordinator.js.map +1 -1
  213. package/dist/server/src/camera/decoder/detection-pipeline.d.ts +4 -0
  214. package/dist/server/src/camera/decoder/detection-pipeline.js +14 -24
  215. package/dist/server/src/camera/decoder/detection-pipeline.js.map +1 -1
  216. package/dist/server/src/camera/decoder/dwell-manager.js +1 -1
  217. package/dist/server/src/camera/decoder/dwell-manager.js.map +1 -1
  218. package/dist/server/src/camera/decoder/event-manager.js +15 -28
  219. package/dist/server/src/camera/decoder/event-manager.js.map +1 -1
  220. package/dist/server/src/camera/decoder/event-thumbnailer.d.ts +38 -0
  221. package/dist/server/src/camera/decoder/event-thumbnailer.js +192 -0
  222. package/dist/server/src/camera/decoder/event-thumbnailer.js.map +1 -0
  223. package/dist/server/src/camera/decoder/plugin-registry.d.ts +31 -0
  224. package/dist/server/src/camera/decoder/plugin-registry.js +114 -0
  225. package/dist/server/src/camera/decoder/plugin-registry.js.map +1 -0
  226. package/dist/server/src/camera/decoder/{ptz-autotracker.d.ts → ptz/autotracker.d.ts} +19 -0
  227. package/dist/server/src/camera/decoder/ptz/autotracker.js +537 -0
  228. package/dist/server/src/camera/decoder/ptz/autotracker.js.map +1 -0
  229. package/dist/server/src/camera/decoder/reconnect-backoff.d.ts +6 -0
  230. package/dist/server/src/camera/decoder/reconnect-backoff.js +17 -0
  231. package/dist/server/src/camera/decoder/reconnect-backoff.js.map +1 -0
  232. package/dist/server/src/camera/decoder/secondary-stage.d.ts +37 -0
  233. package/dist/server/src/camera/decoder/secondary-stage.js +445 -0
  234. package/dist/server/src/camera/decoder/secondary-stage.js.map +1 -0
  235. package/dist/server/src/camera/decoder/{audio-source.js → sources/audio-source.js} +2 -2
  236. package/dist/server/src/camera/decoder/sources/audio-source.js.map +1 -0
  237. package/dist/server/src/camera/decoder/{frame-source.d.ts → sources/frame-source.d.ts} +4 -0
  238. package/dist/server/src/camera/decoder/{frame-source.js → sources/frame-source.js} +30 -12
  239. package/dist/server/src/camera/decoder/sources/frame-source.js.map +1 -0
  240. package/dist/server/src/camera/decoder/{snapshot-source.d.ts → sources/snapshot-source.d.ts} +2 -5
  241. package/dist/server/src/camera/decoder/{snapshot-source.js → sources/snapshot-source.js} +11 -15
  242. package/dist/server/src/camera/decoder/sources/snapshot-source.js.map +1 -0
  243. package/dist/server/src/camera/decoder/stationary-suppressor.d.ts +21 -0
  244. package/dist/server/src/camera/decoder/stationary-suppressor.js +141 -0
  245. package/dist/server/src/camera/decoder/stationary-suppressor.js.map +1 -0
  246. package/dist/server/src/camera/decoder/types.d.ts +6 -1
  247. package/dist/server/src/camera/decoder/types.js +1 -0
  248. package/dist/server/src/camera/decoder/types.js.map +1 -1
  249. package/dist/server/src/camera/decoder/worker.d.ts +1 -0
  250. package/dist/server/src/camera/decoder/worker.js +11 -7
  251. package/dist/server/src/camera/decoder/worker.js.map +1 -1
  252. package/dist/server/src/camera/index.d.ts +5 -1
  253. package/dist/server/src/camera/index.js.map +1 -1
  254. package/dist/server/src/camera/sensors/controller.js +4 -3
  255. package/dist/server/src/camera/sensors/controller.js.map +1 -1
  256. package/dist/server/src/go2rtc/api/routes/discover.js +2 -1
  257. package/dist/server/src/go2rtc/api/routes/discover.js.map +1 -1
  258. package/dist/server/src/go2rtc/api/routes/snapshot.d.ts +3 -3
  259. package/dist/server/src/go2rtc/api/routes/snapshot.js +1 -1
  260. package/dist/server/src/go2rtc/api/routes/snapshot.js.map +1 -1
  261. package/dist/server/src/go2rtc/types.d.ts +3 -0
  262. package/dist/server/src/go2rtc/types.js.map +1 -1
  263. package/dist/server/src/main.js +26 -3
  264. package/dist/server/src/main.js.map +1 -1
  265. package/dist/server/src/manager/downloadManager.js +0 -2
  266. package/dist/server/src/manager/downloadManager.js.map +1 -1
  267. package/dist/server/src/mqtt/bridge.js +1 -1
  268. package/dist/server/src/mqtt/bridge.js.map +1 -1
  269. package/dist/server/src/plugins/schema.js +1 -1
  270. package/dist/server/src/plugins/schema.js.map +1 -1
  271. package/dist/server/src/remote/services/cloudflare-managed.js +16 -5
  272. package/dist/server/src/remote/services/cloudflare-managed.js.map +1 -1
  273. package/dist/server/src/remote/services/cloudflare.d.ts +2 -2
  274. package/dist/server/src/remote/services/cloudflare.js +16 -17
  275. package/dist/server/src/remote/services/cloudflare.js.map +1 -1
  276. package/dist/server/src/remote/services/cloudflaredBinary.d.ts +2 -0
  277. package/dist/server/src/remote/services/cloudflaredBinary.js +20 -0
  278. package/dist/server/src/remote/services/cloudflaredBinary.js.map +1 -0
  279. package/dist/server/src/remote/services/index.d.ts +1 -0
  280. package/dist/server/src/remote/services/index.js +20 -5
  281. package/dist/server/src/remote/services/index.js.map +1 -1
  282. package/dist/server/src/remote/services/urlReadiness.d.ts +11 -0
  283. package/dist/server/src/remote/services/urlReadiness.js +129 -0
  284. package/dist/server/src/remote/services/urlReadiness.js.map +1 -0
  285. package/dist/server/src/rpc/interfaces/device.d.ts +6 -0
  286. package/dist/server/src/services/config/defaults.js +1 -0
  287. package/dist/server/src/services/config/defaults.js.map +1 -1
  288. package/dist/server/src/services/config/types.d.ts +1 -0
  289. package/dist/server/src/utils/npm/index.d.ts +11 -2
  290. package/dist/server/src/utils/npm/index.js +14 -4
  291. package/dist/server/src/utils/npm/index.js.map +1 -1
  292. package/dist/server/src/utils/pythonInstaller.js +3 -3
  293. package/dist/server/src/utils/pythonInstaller.js.map +1 -1
  294. package/dist/server/src/workers/capabilities/plugin-host.js +4 -1
  295. package/dist/server/src/workers/capabilities/plugin-host.js.map +1 -1
  296. package/package.json +10 -10
  297. package/dist/interface/assets/Automation-Kt6pl4MS.js +0 -2
  298. package/dist/interface/assets/AutomationImport-DWQkfeuR.js +0 -2
  299. package/dist/interface/assets/AutomationStore-FbQdggSq.js +0 -2
  300. package/dist/interface/assets/AutomationStoreDetail-D15G_MQy.js +0 -2
  301. package/dist/interface/assets/Automations-urwh-nzl.js +0 -2
  302. package/dist/interface/assets/Camera-Brp9vdg2.js +0 -2
  303. package/dist/interface/assets/Cameras-DDut77Xv.js +0 -652
  304. package/dist/interface/assets/Camview-ChimIRuL.js +0 -1
  305. package/dist/interface/assets/Config-Cy5j6yf_.js +0 -2
  306. package/dist/interface/assets/ConfigActionImageInput-DJovQd4V.js +0 -1
  307. package/dist/interface/assets/ConfigActionNotification-BM2X-K-D.js +0 -1
  308. package/dist/interface/assets/ConfigActionSensor-gxpOX2DC.js +0 -1
  309. package/dist/interface/assets/ConfigConditionSensorState-BaFj9WYl.js +0 -1
  310. package/dist/interface/assets/ConfigTriggerGeofence-DOxaQSWM.js +0 -1
  311. package/dist/interface/assets/ConfigTriggerWebhook-Czyo2Bs-.js +0 -1
  312. package/dist/interface/assets/Console-DBJHlPg2.js +0 -1
  313. package/dist/interface/assets/CuiBottomSheet-B1jcfI0o.js +0 -1
  314. package/dist/interface/assets/CuiCameraCard-HEi3Hoe-.js +0 -1
  315. package/dist/interface/assets/CuiCameraRecordings-C5bd4VAf.js +0 -1
  316. package/dist/interface/assets/CuiCameraShares-BNjnm9yr.js +0 -1
  317. package/dist/interface/assets/CuiCameraSnapshot-C-iPOB3g.js +0 -1
  318. package/dist/interface/assets/CuiCameraTable-CDpfm8fi.js +0 -2
  319. package/dist/interface/assets/CuiFloatingButton-DdI-E8dh.js +0 -1
  320. package/dist/interface/assets/CuiImage-Bxf7z2N4.css +0 -1
  321. package/dist/interface/assets/CuiImage-DBQAYfn1.js +0 -1
  322. package/dist/interface/assets/CuiMenu--tB8FqMF.js +0 -1
  323. package/dist/interface/assets/CuiPluginCard-Cb0XSLIr.js +0 -2
  324. package/dist/interface/assets/CuiPluginOAuthButton-CuppMPTq.js +0 -2
  325. package/dist/interface/assets/CuiPluginTrustBadge-Bcnptf84.js +0 -1
  326. package/dist/interface/assets/CuiRecordingsGrid-DlKUfbeS.js +0 -1
  327. package/dist/interface/assets/CuiSchema-B6q285jE.js +0 -1
  328. package/dist/interface/assets/Faces-DtJmIku2.js +0 -1
  329. package/dist/interface/assets/FirstSteps-CsMSK_YI.js +0 -1
  330. package/dist/interface/assets/Instances-BTNzUfGz.js +0 -1
  331. package/dist/interface/assets/Logs-Bic2YIta.js +0 -6
  332. package/dist/interface/assets/OAuthDeviceFlow-DwSJHrqc.js +0 -1
  333. package/dist/interface/assets/Plugin-B8656Gzo.js +0 -1
  334. package/dist/interface/assets/PluginDetail-BsIkPUY8.css +0 -1
  335. package/dist/interface/assets/PluginDetail-DS8wUbYr.js +0 -2
  336. package/dist/interface/assets/PluginSearch-DBdp5Ifo.js +0 -1
  337. package/dist/interface/assets/PluginSearch-DFtTwd_R.js +0 -2
  338. package/dist/interface/assets/Plugins-C_kdqAp4.js +0 -1
  339. package/dist/interface/assets/Recordings-Cz4uWsI9.js +0 -1
  340. package/dist/interface/assets/SettingsAccount-CALY2rH0.js +0 -1
  341. package/dist/interface/assets/SettingsAccount-_zSgGuBE.js +0 -1
  342. package/dist/interface/assets/SettingsAppearance-z9tBty3q.js +0 -1
  343. package/dist/interface/assets/SettingsBackup-JI_xqcVS.js +0 -1
  344. package/dist/interface/assets/SettingsMqtt-B_tzet_5.js +0 -1
  345. package/dist/interface/assets/SettingsNotifications-FWWveQMH.js +0 -2
  346. package/dist/interface/assets/SettingsRecordings-D-S7rofE.js +0 -1
  347. package/dist/interface/assets/SettingsRemote-CVuDUBMM.js +0 -1
  348. package/dist/interface/assets/SettingsRemote-T38YVHal.css +0 -1
  349. package/dist/interface/assets/SettingsSystem-J7ZT7oRr.js +0 -2
  350. package/dist/interface/assets/SettingsUsers-DvuiYjNg.js +0 -1
  351. package/dist/interface/assets/Terminal-CNzw8wk3.js +0 -4
  352. package/dist/interface/assets/VersionsHandler-CsXazSWK.js +0 -7
  353. package/dist/interface/assets/Workers-BXH8IccG.js +0 -2
  354. package/dist/interface/assets/api-C31uUd3g.css +0 -2
  355. package/dist/interface/assets/api-DR6W2XWy.js +0 -2
  356. package/dist/interface/assets/auth-BJf6VFls.js +0 -1
  357. package/dist/interface/assets/automations-Dt5J3kkY.js +0 -1
  358. package/dist/interface/assets/cloudHandoff-Yc4FJv_l.js +0 -1
  359. package/dist/interface/assets/instances-MscZjRfc.js +0 -1
  360. package/dist/interface/assets/main-4pJkMgxg.js +0 -3
  361. package/dist/interface/assets/nodeDefinitions-5BjF3SJ8.js +0 -1
  362. package/dist/interface/assets/plugins-VeCjoaEi.js +0 -1
  363. package/dist/interface/assets/round-restart-alt-CcJGggln.js +0 -1
  364. package/dist/interface/assets/router-BFG1ClJo.js +0 -2
  365. package/dist/interface/assets/shares-D5xo0sht.js +0 -1
  366. package/dist/interface/assets/transit-connection-variant-CXkATe8I.js +0 -1
  367. package/dist/interface/assets/types-Dyn_Sb2s.js +0 -1
  368. package/dist/interface/assets/useBackupRestore-B-yCV4DL.js +0 -1
  369. package/dist/interface/assets/useCameraOptions-B2lIc9JO.js +0 -1
  370. package/dist/interface/assets/useCuiDialog-DLoFzodG.js +0 -2
  371. package/dist/interface/assets/useLogsSocket-4F2-d9fa.css +0 -1
  372. package/dist/interface/assets/useLogsSocket-B1sCzRXK.js +0 -5
  373. package/dist/interface/assets/vendor-cameraui-DDdtrYBn.js +0 -1978
  374. package/dist/interface/assets/vendor-core-CZuWsjWr.js +0 -1
  375. package/dist/interface/assets/view-grid-DRwNJzxD.js +0 -1
  376. package/dist/server/src/camera/decoder/audio-source.js.map +0 -1
  377. package/dist/server/src/camera/decoder/frame-source.js.map +0 -1
  378. package/dist/server/src/camera/decoder/ptz-autotracker.js +0 -342
  379. package/dist/server/src/camera/decoder/ptz-autotracker.js.map +0 -1
  380. package/dist/server/src/camera/decoder/snapshot-source.js.map +0 -1
  381. /package/dist/server/src/camera/decoder/{audio-source.d.ts → sources/audio-source.d.ts} +0 -0
@@ -1 +0,0 @@
1
- import{dn as e,mn as t,ur as n,zn as r}from"./vendor-ClrOISZp.js";import{n as i,t as a}from"./transit-connection-variant-CXkATe8I.js";import{t as o}from"./cog-outline-CXjehRoX.js";import{t as s}from"./lightbulb-outline-DPjpJn5F.js";import{t as c}from"./variable-C2Yu30iz.js";import{t as l}from"./clock-outline-CqPKrGj2.js";import{n as u,t as d}from"./webhook-BCBlzc3z.js";import{t as f}from"./source-branch-Dv9Du0bc.js";var p={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function m(n,i){return r(),t(`svg`,p,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M4.93 4.93A9.97 9.97 0 0 0 2 12c0 2.76 1.12 5.26 2.93 7.07l1.41-1.41A7.94 7.94 0 0 1 4 12c0-2.21.89-4.22 2.34-5.66zm14.14 0l-1.41 1.41A7.96 7.96 0 0 1 20 12c0 2.22-.89 4.22-2.34 5.66l1.41 1.41A9.97 9.97 0 0 0 22 12c0-2.76-1.12-5.26-2.93-7.07M7.76 7.76A5.98 5.98 0 0 0 6 12c0 1.65.67 3.15 1.76 4.24l1.41-1.41A4 4 0 0 1 8 12c0-1.11.45-2.11 1.17-2.83zm8.48 0l-1.41 1.41A4 4 0 0 1 16 12c0 1.11-.45 2.11-1.17 2.83l1.41 1.41A5.98 5.98 0 0 0 18 12c0-1.65-.67-3.15-1.76-4.24M12 10a2 2 0 0 0-2 2a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2`},null,-1)]])}var h=n({name:`mdi-access-point`,render:m}),g={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function _(n,i){return r(),t(`svg`,g,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M4 4h3l2-2h6l2 2h3a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2m8 3a5 5 0 0 0-5 5a5 5 0 0 0 5 5a5 5 0 0 0 5-5a5 5 0 0 0-5-5m0 2a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3`},null,-1)]])}var v=n({name:`mdi-camera`,render:_}),y={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function b(n,i){return r(),t(`svg`,y,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M9 12c0-.81.3-1.5.89-2.11C10.5 9.3 11.19 9 12 9s1.5.3 2.11.89c.59.61.89 1.3.89 2.11s-.3 1.5-.89 2.11c-.61.59-1.3.89-2.11.89s-1.5-.3-2.11-.89C9.3 13.5 9 12.81 9 12M5.53 8.44l1.78 1.78L5.53 12l1.78 1.78l-1.78 1.78L2 12zm2.91 10.03l1.78-1.78L12 18.47l1.78-1.78l1.78 1.78L12 22zm10.03-2.91l-1.78-1.78L18.47 12l-1.78-1.78l1.78-1.78L22 12zM15.56 5.53l-1.78 1.78L12 5.53l-1.78 1.78l-1.78-1.78L12 2z`},null,-1)]])}var x=n({name:`mdi-camera-control`,render:b}),S={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function C(n,i){return r(),t(`svg`,S,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`m23.5 17l-5 5l-3.5-3.5l1.5-1.5l2 2l3.5-3.5zm-10.4 2.9c-.4.1-.7.1-1.1.1c-4.4 0-8-3.6-8-8s3.6-8 8-8s8 3.6 8 8c0 .4 0 .7-.1 1.1c.7.1 1.3.3 1.9.6c.1-.6.2-1.1.2-1.7c0-5.5-4.5-10-10-10S2 6.5 2 12s4.5 10 10 10c.6 0 1.2-.1 1.7-.2c-.3-.5-.5-1.2-.6-1.9m2.5-5.8l-3.1-1.8V7H11v6l3.5 2.1c.3-.4.7-.7 1.1-1`},null,-1)]])}var w=n({name:`mdi-clock-check-outline`,render:C}),T={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function E(n,i){return r(),t(`svg`,T,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M8 3a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2H3v2h1a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h2v-2H8v-5a2 2 0 0 0-2-2a2 2 0 0 0 2-2V5h2V3m6 0a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h1v2h-1a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-2v-2h2v-5a2 2 0 0 1 2-2a2 2 0 0 1-2-2V5h-2V3z`},null,-1)]])}var D=n({name:`mdi-code-braces`,render:E}),O={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function k(n,i){return r(),t(`svg`,O,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M12 1L8 5h3v9h2V5h3m2 18H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h3v2H6v12h12V9h-3V7h3a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2`},null,-1)]])}var A=n({name:`mdi-export-variant`,render:k}),j={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function M(n,i){return r(),t(`svg`,j,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M7 2v11h3v9l7-12h-4l4-8z`},null,-1)]])}var N=n({name:`mdi-flash`,render:M}),P={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function F(n,i){return r(),t(`svg`,P,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M10 9a1 1 0 0 1 1-1a1 1 0 0 1 1 1v4.47l1.21.13l4.94 2.19c.53.24.85.77.85 1.35v4.36c-.03.82-.68 1.47-1.5 1.5H11c-.38 0-.74-.15-1-.43l-4.9-4.2l.74-.77c.19-.21.46-.32.74-.32h.22L10 19zm1-4a4 4 0 0 1 4 4c0 1.5-.8 2.77-2 3.46v-1.22c.61-.55 1-1.35 1-2.24a3 3 0 0 0-3-3a3 3 0 0 0-3 3c0 .89.39 1.69 1 2.24v1.22C7.8 11.77 7 10.5 7 9a4 4 0 0 1 4-4`},null,-1)]])}var I=n({name:`mdi-gesture-tap`,render:F}),L={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function R(n,i){return r(),t(`svg`,L,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M19 19H5V5h14m0-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-5.04 9.29l-2.75 3.54l-1.96-2.36L6.5 17h11z`},null,-1)]])}var z=n({name:`mdi-image-outline`,render:R}),B={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function V(n,i){return r(),t(`svg`,B,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M22 13.5c0 1.76-1.3 3.22-3 3.46V20a2 2 0 0 1-2 2h-3.8v-.3a2.7 2.7 0 0 0-2.7-2.7c-1.5 0-2.7 1.21-2.7 2.7v.3H4a2 2 0 0 1-2-2v-3.8h.3C3.79 16.2 5 15 5 13.5s-1.21-2.7-2.7-2.7H2V7a2 2 0 0 1 2-2h3.04c.24-1.7 1.7-3 3.46-3s3.22 1.3 3.46 3H17a2 2 0 0 1 2 2v3.04c1.7.24 3 1.7 3 3.46M17 15h1.5a1.5 1.5 0 0 0 1.5-1.5a1.5 1.5 0 0 0-1.5-1.5H17V7h-5V5.5A1.5 1.5 0 0 0 10.5 4A1.5 1.5 0 0 0 9 5.5V7H4v2.12c1.76.68 3 2.38 3 4.38s-1.25 3.7-3 4.38V20h2.12a4.7 4.7 0 0 1 4.38-3c2 0 3.7 1.25 4.38 3H17z`},null,-1)]])}var H=n({name:`mdi-puzzle-outline`,render:V}),U={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function W(n,i){return r(),t(`svg`,U,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M6 2h12v6l-4 4l4 4v6H6v-6l4-4l-4-4zm10 14.5l-4-4l-4 4V20h8zm-4-5l4-4V4H8v3.5zM10 6h4v.75l-2 2l-2-2z`},null,-1)]])}var G=n({name:`mdi-timer-sand`,render:W}),K={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function q(n,i){return r(),t(`svg`,K,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2m-5.15 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56M14.34 14H9.66c-.1-.66-.16-1.32-.16-2s.06-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2M12 19.96c-.83-1.2-1.5-2.53-1.91-3.96h3.82c-.41 1.43-1.08 2.76-1.91 3.96M8 8H5.08A7.92 7.92 0 0 1 9.4 4.44C8.8 5.55 8.35 6.75 8 8m-2.92 8H8c.35 1.25.8 2.45 1.4 3.56A8 8 0 0 1 5.08 16m-.82-2C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2M12 4.03c.83 1.2 1.5 2.54 1.91 3.97h-3.82c.41-1.43 1.08-2.77 1.91-3.97M18.92 8h-2.95a15.7 15.7 0 0 0-1.38-3.56c1.84.63 3.37 1.9 4.33 3.56M12 2C6.47 2 2 6.5 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2`},null,-1)]])}var J=n({name:`mdi-web`,render:q}),Y=[{type:`trigger-detection`,category:`trigger`,labelKey:`components.automation_nodes.trigger_detection`,descriptionKey:`components.automation_nodes.trigger_detection_desc`,icon:N,color:`#22c55e`,defaults:{type:`trigger-detection`,cameraId:``,eventPhase:[`start`],detectionLabels:[],confidenceThreshold:0,audioLabels:[],faceFilter:[],licensePlateFilter:[]}},{type:`trigger-sensor`,category:`trigger`,labelKey:`components.automation_nodes.trigger_sensor`,descriptionKey:`components.automation_nodes.trigger_sensor_desc`,icon:h,color:`#22c55e`,defaults:{type:`trigger-sensor`,cameraId:``,sensorType:``,sensorName:``,sensorPluginId:``,properties:[]}},{type:`trigger-schedule`,category:`trigger`,labelKey:`components.automation_nodes.trigger_schedule`,descriptionKey:`components.automation_nodes.trigger_schedule_desc`,icon:l,color:`#22c55e`,defaults:{type:`trigger-schedule`,cron:`0 * * * *`}},{type:`trigger-webhook`,category:`trigger`,labelKey:`components.automation_nodes.trigger_webhook`,descriptionKey:`components.automation_nodes.trigger_webhook_desc`,icon:d,color:`#22c55e`,defaults:{type:`trigger-webhook`,webhookId:``}},{type:`trigger-mqtt`,category:`trigger`,labelKey:`components.automation_nodes.trigger_mqtt`,descriptionKey:`components.automation_nodes.trigger_mqtt_desc`,icon:a,color:`#22c55e`,defaults:{type:`trigger-mqtt`,topic:``,matchMode:`any`,payloadFilter:``,jsonPath:``,jsonValue:``}},{type:`trigger-system`,category:`trigger`,labelKey:`components.automation_nodes.trigger_system`,descriptionKey:`components.automation_nodes.trigger_system_desc`,icon:o,color:`#22c55e`,defaults:{type:`trigger-system`,category:`system`,eventType:``,targetId:``}},{type:`trigger-manual`,category:`trigger`,labelKey:`components.automation_nodes.trigger_manual`,descriptionKey:`components.automation_nodes.trigger_manual_desc`,icon:I,color:`#22c55e`,defaults:{type:`trigger-manual`}},{type:`trigger-geofence`,category:`trigger`,labelKey:`components.automation_nodes.trigger_geofence`,descriptionKey:`components.automation_nodes.trigger_geofence_desc`,icon:u,color:`#22c55e`,defaults:{type:`trigger-geofence`,geofenceId:``,zoneName:``,latitude:0,longitude:0,radius:200,event:`both`,users:[]}},{type:`condition-ifelse`,category:`condition`,labelKey:`components.automation_nodes.condition_ifelse`,descriptionKey:`components.automation_nodes.condition_ifelse_desc`,icon:f,color:`#f59e0b`,defaults:{type:`condition-ifelse`,leftOperand:``,operator:`==`,rightOperand:``}},{type:`condition-switch`,category:`condition`,labelKey:`components.automation_nodes.condition_switch`,descriptionKey:`components.automation_nodes.condition_switch_desc`,icon:D,color:`#f59e0b`,defaults:{type:`condition-switch`,variable:``,cases:[]}},{type:`condition-sensorstate`,category:`condition`,labelKey:`components.automation_nodes.condition_sensorstate`,descriptionKey:`components.automation_nodes.condition_sensorstate_desc`,icon:h,color:`#f59e0b`,defaults:{type:`condition-sensorstate`,cameraId:``,sensorType:``,sensorName:``,sensorPluginId:``,conditions:[],logic:`AND`}},{type:`condition-time`,category:`condition`,labelKey:`components.automation_nodes.condition_time`,descriptionKey:`components.automation_nodes.condition_time_desc`,icon:w,color:`#f59e0b`,defaults:{type:`condition-time`,startTime:`08:00`,endTime:`18:00`,days:[]}},{type:`action-snapshot`,category:`action`,labelKey:`components.automation_nodes.action_snapshot`,descriptionKey:`components.automation_nodes.action_snapshot_desc`,icon:v,color:`#3b82f6`,defaults:{type:`action-snapshot`,cameraId:``,forceNew:!0},supportsRepeat:!0},{type:`action-sensor`,category:`action`,labelKey:`components.automation_nodes.action_sensor`,descriptionKey:`components.automation_nodes.action_sensor_desc`,icon:s,color:`#3b82f6`,defaults:{type:`action-sensor`,cameraId:``,sensorType:``,sensorName:``,sensorPluginId:``,properties:[]}},{type:`action-notification`,category:`action`,labelKey:`components.automation_nodes.action_notification`,descriptionKey:`components.automation_nodes.action_notification_desc`,icon:i,color:`#3b82f6`,defaults:{type:`action-notification`,title:``,body:``,severity:`info`,deepLink:``,targets:[]}},{type:`action-http`,category:`action`,labelKey:`components.automation_nodes.action_http`,descriptionKey:`components.automation_nodes.action_http_desc`,icon:J,color:`#3b82f6`,defaults:{type:`action-http`,url:``,method:`POST`,headers:{},body:``},supportsRepeat:!0},{type:`action-mqtt`,category:`action`,labelKey:`components.automation_nodes.action_mqtt`,descriptionKey:`components.automation_nodes.action_mqtt_desc`,icon:a,color:`#3b82f6`,defaults:{type:`action-mqtt`,topic:``,payload:``,retain:!1},supportsRepeat:!0},{type:`action-delay`,category:`action`,labelKey:`components.automation_nodes.action_delay`,descriptionKey:`components.automation_nodes.action_delay_desc`,icon:G,color:`#3b82f6`,defaults:{type:`action-delay`,duration:5,unit:`seconds`}},{type:`action-variable`,category:`action`,labelKey:`components.automation_nodes.action_variable`,descriptionKey:`components.automation_nodes.action_variable_desc`,icon:c,color:`#3b82f6`,defaults:{type:`action-variable`,variableName:``,operator:`=`,value:``}},{type:`action-plugin`,category:`action`,labelKey:`components.automation_nodes.action_plugin`,descriptionKey:`components.automation_nodes.action_plugin_desc`,icon:H,color:`#3b82f6`,defaults:{type:`action-plugin`,pluginName:``,pluginInterface:``,method:``,params:{},config:{}},supportsRepeat:!0},{type:`action-camera-control`,category:`action`,labelKey:`components.automation_nodes.action_camera_control`,descriptionKey:`components.automation_nodes.action_camera_control_desc`,icon:x,color:`#3b82f6`,defaults:{type:`action-camera-control`,cameraId:``,properties:[]}},{type:`action-image-input`,category:`utility`,labelKey:`components.automation_nodes.action_image_input`,descriptionKey:`components.automation_nodes.action_image_input_desc`,icon:z,color:`#8b5cf6`,defaults:{type:`action-image-input`,source:``,variableName:`image`}},{type:`action-output`,category:`utility`,labelKey:`components.automation_nodes.action_output`,descriptionKey:`components.automation_nodes.action_output_desc`,icon:A,color:`#8b5cf6`,defaults:{type:`action-output`,variables:[]}}];function X(e){return Y.find(t=>t.type===e)}function Z(e){return Y.filter(t=>t.category===e)}export{Z as n,X as t};
@@ -1 +0,0 @@
1
- import{C as e,Dt as t,E as n,T as r}from"./api-DR6W2XWy.js";import{J as i,Q as a,Sr as o,mr as s}from"./vendor-ClrOISZp.js";async function c({pluginData:e}){return(await t.post(`/plugins`,e)).data}async function l({pluginName:e,signal:n}){return(await t.get(`/plugins/${e}`,{signal:n})).data}async function u({pluginname:e,signal:n}){return(await t.get(`/plugins/${e}/versions`,{signal:n})).data}async function d({pluginName:e,signal:n}){return(await t.get(`/plugins/${e}/update`,{signal:n})).data}async function f({pluginName:e,signal:n}){return(await t.get(`/plugins/${e}/logo`,{signal:n})).data}async function p({pluginName:e,signal:n}){return(await t.get(`/plugins/${e}/config`,{signal:n})).data}async function m({pluginName:e,signal:n}){return(await t.get(`/plugins/${e}/contract`,{signal:n})).data}async function h({pluginName:e,signal:n}){return(await t.get(`/plugins/${e}/readme`,{signal:n})).data}async function g({pluginName:e,query:n,signal:r}){return(await t.get(`/plugins/${e}/changelog`,{params:n,signal:r})).data}async function _({pluginName:e,query:n,signal:r}){return(await t.get(`/plugins/${e}/compat`,{params:n,signal:r})).data}async function v({pluginName:e,signal:n}){return(await t.get(`/plugins/${e}/interface`,{signal:n})).data}async function y({parameter:e,signal:n}){return(await t.get(`/plugins`,{params:e,signal:n})).data}async function b({parameter:e,signal:n}){return(await t.get(`/plugins/extensions`,{params:e,signal:n})).data}async function x({pluginName:e}){return(await t.delete(`/plugins/${e}/log`)).data}async function S({pluginName:e,signal:n}){return(await t.get(`/plugins/${e}/log/download`,{signal:n})).data}async function C({parameter:e,signal:n}){return(await t.get(`/plugins/progress`,{params:e,signal:n})).data}async function w({query:e,parameter:n,refresh:r,signal:i}){return(await t.get(`/plugins/search`,{params:{...e,...n,...r?{refresh:!0}:{}},signal:i})).data}async function T({pluginName:e}){return(await t.put(`/plugins/${e}/enable`)).data}async function E({pluginName:e,configData:n}){return(await t.patch(`/plugins/${e}/config`,n)).data}async function D({pluginname:e,configData:n}){return(await t.put(`/plugins/${e}/config`,n)).data}async function O({pluginname:e,configData:n}){return(await t.post(`/plugins/${e}/config`,n)).data}async function k({pluginName:e}){return(await t.put(`/plugins/${e}/disable`)).data}async function A({pluginName:e}){return(await t.put(`/plugins/${e}/start`)).data}async function j({pluginName:e}){return(await t.put(`/plugins/${e}/stop`)).data}async function M({pluginName:e}){return(await t.put(`/plugins/${e}/restart`)).data}async function N({pluginName:e,removeStorage:n}){return(await t.delete(`/plugins/${e}`,{params:{removeStorage:n}})).data}async function P(){return(await t.delete(`/plugins`)).data}var F=class{_queryClient=a();t=n.global.t;toast=r();queryActivator=s([{name:`getPluginQuery`,enabled:!0},{name:`getPluginsQuery`,enabled:!0},{name:`getPluginsExtensionsQuery`,enabled:!0},{name:`searchPluginsQuery`,enabled:!0},{name:`getPluginVersionsQuery`,enabled:!0},{name:`getPluginUpdateQuery`,enabled:!0},{name:`getPluginLogoQuery`,enabled:!0},{name:`getPluginConfigQuery`,enabled:!0},{name:`getPluginContractQuery`,enabled:!0},{name:`getPluginReadmeQuery`,enabled:!0},{name:`getPluginInterfaceQuery`,enabled:!0},{name:`getPluginChangelogQuery`,enabled:!0},{name:`getPluginCompatQuery`,enabled:!0},{name:`getPluginsProgressQuery`,enabled:!0},{name:`installPluginQuery`,enabled:!0},{name:`enablePluginQuery`,enabled:!0},{name:`disablePluginQuery`,enabled:!0},{name:`patchPluginConfigQuery`,enabled:!0},{name:`setPluginConfigQuery`,enabled:!0},{name:`submitPluginConfigQuery`,enabled:!0},{name:`startPluginQuery`,enabled:!0},{name:`stopPluginQuery`,enabled:!0},{name:`restartPluginQuery`,enabled:!0},{name:`uninstallPluginQuery`,enabled:!0},{name:`uninstallPluginsQuery`,enabled:!0},{name:`downloadLogQuery`,enabled:!0}]);get queryClient(){return this._queryClient}installPluginQuery(){return i({mutationFn:c,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`pluginsList`]}),await this._queryClient.refetchQueries({queryKey:[`plugins`]}),await this._queryClient.refetchQueries({queryKey:[`pluginsSearch`]}),await this._queryClient.refetchQueries({queryKey:[`pluginsProgress`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.plugin_installed`),life:3e3})}})}getPluginQuery(t){return e({queryKey:[`plugins`,t],queryFn:({signal:e})=>l({pluginName:o(t),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getPluginQuery`&&e.enabled)})}getPluginsQuery(t){return e({queryKey:[`pluginsList`,t],queryFn:({signal:e})=>y({parameter:o(t),signal:e}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name===`getPluginsQuery`&&e.enabled)})}getPluginsExtensionsQuery(t){return e({queryKey:[`extensionsList`,t],queryFn:({signal:e})=>b({parameter:o(t),signal:e}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name===`getPluginsExtensionsQuery`&&e.enabled)})}getPluginsProgressQuery(t){return e({queryKey:[`pluginsProgress`,t],queryFn:({signal:e})=>C({parameter:o(t),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getPluginsProgressQuery`&&e.enabled)})}searchPluginsQuery(t,n,r){return e({queryKey:[`pluginsSearch`,t,n],queryFn:({signal:e})=>w({query:o(t),parameter:o(n),refresh:o(r),signal:e}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name===`searchPluginsQuery`&&e.enabled)})}getPluginVersionsQuery(t){return e({queryKey:[`plugins`,t,`versions`],queryFn:({signal:e})=>u({pluginname:o(t),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getPluginVersionsQuery`&&e.enabled)})}getPluginUpdateQuery(t){return e({queryKey:[`plugins`,t,`update`],queryFn:({signal:e})=>d({pluginName:o(t),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getPluginUpdateQuery`&&e.enabled)})}getPluginLogoQuery(t){return e({queryKey:[`plugins`,t,`logo`],queryFn:({signal:e})=>f({pluginName:o(t),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getPluginLogoQuery`&&e.enabled)})}getPluginConfigQuery(t){return e({queryKey:[`plugins`,t,`config`],queryFn:({signal:e})=>p({pluginName:o(t),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getPluginConfigQuery`&&e.enabled)})}getPluginContractQuery(t){return e({queryKey:[`plugins`,t,`contract`],queryFn:({signal:e})=>m({pluginName:o(t),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getPluginContractQuery`&&e.enabled)})}getPluginReadmeQuery(t){return e({queryKey:[`plugins`,t,`readme`],queryFn:({signal:e})=>h({pluginName:o(t),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getPluginReadmeQuery`&&e.enabled),retry:(e,t)=>t instanceof Error&&t.message.includes(`404`)?!1:e<3})}getPluginInterfaceQuery(t){return e({queryKey:[`plugins`,t,`interface`],queryFn:({signal:e})=>v({pluginName:o(t),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getPluginInterfaceQuery`&&e.enabled)})}getPluginChangelogQuery(t,n){return e({queryKey:[`plugins`,t,`changelog`],queryFn:({signal:e})=>g({pluginName:o(t),query:o(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getPluginChangelogQuery`&&e.enabled),retry:(e,t)=>t instanceof Error&&t.message.includes(`404`)?!1:e<3})}getPluginCompatQuery(t,n){return e({queryKey:[`plugins`,t,`compat`],queryFn:({signal:e})=>_({pluginName:o(t),query:o(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getPluginCompatQuery`&&e.enabled)})}patchPluginConfigQuery(){return i({mutationFn:E,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`plugins`,t.pluginName]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.plugin_config_updated`),life:3e3})}})}startPluginQuery(){return i({mutationFn:A,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`plugins`,t.pluginName]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.plugin_started`),life:3e3})}})}stopPluginQuery(){return i({mutationFn:j,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`plugins`,t.pluginName]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.plugin_stopped`),life:3e3})}})}restartPluginQuery(){return i({mutationFn:M,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`plugins`,t.pluginName]}),await this._queryClient.refetchQueries({queryKey:[`pluginsList`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.plugin_restarted`),life:3e3})}})}setPluginConfigQuery(){return i({mutationFn:D,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`plugins`,t.pluginname,t.configData]})}})}submitPluginConfigQuery(){return i({mutationFn:O,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`plugins`,t.pluginname,t.configData]})}})}enablePluginQuery(){return i({mutationFn:T,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`pluginsList`]}),await this._queryClient.refetchQueries({queryKey:[`plugins`,t.pluginName]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.plugin_enabled`),life:3e3})}})}disablePluginQuery(){return i({mutationFn:k,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`pluginsList`]}),await this._queryClient.refetchQueries({queryKey:[`plugins`,t.pluginName]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.plugin_disabled`),life:3e3})}})}uninstallPluginQuery(){return i({mutationFn:N,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`pluginsList`]}),await this._queryClient.refetchQueries({queryKey:[`pluginsSearch`]}),await this._queryClient.refetchQueries({queryKey:[`pluginsProgress`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.plugin_removed`),life:3e3})}})}uninstallPluginsQuery(){return i({mutationFn:P,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`pluginsList`]}),await this._queryClient.refetchQueries({queryKey:[`pluginsSearch`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.plugins_removed`),life:3e3})}})}downloadLogQuery(t){return e({queryKey:[`logs`,t],queryFn:({signal:e})=>S({pluginName:o(t),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name===`downloadLogQuery`&&e.enabled)})}clearLogQuery(){return i({mutationFn:x,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`logs`,t.pluginName],exact:!0}),this.toast.add({severity:`success`,detail:this.t(`components.toast.log_cleared`),life:3e3})}})}toggleQueryActivator(e,t){let n=this.queryActivator.value.find(t=>t.name===e);return n&&(n.enabled=t),this}};export{x as n,S as r,F as t};
@@ -1 +0,0 @@
1
- import{F as e,_n as t,bi as n,bn as r,gn as i}from"./vendor-cameraui-DDdtrYBn.js";import{$t as a,An as o,Cr as s,Er as c,Gn as l,On as u,Sr as d,Tr as f,Vn as p,Zn as m,br as h,dn as g,fn as _,mn as v,nr as y,on as b,pn as x,rr as ee,un as S,ur as C,xn as w,yn as T,zn as E}from"./vendor-ClrOISZp.js";import{f as D}from"./vendor-core-CZuWsjWr.js";import{S as te,W as ne}from"./vendor-primevue-DB14kOh6.js";import{t as O}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as k}from"./theme-BG6n3TRA.js";import{t as A}from"./arrow-right-outline-CvgD4nuT.js";import{a as j,c as M,i as N,l as P,o as F,t as I}from"./vendor-chart-Cn72DQnu.js";import{t as L}from"./chevron-right-90_Zn7fJ.js";var R={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function z(e,t){return E(),v(`svg`,R,[...t[0]||=[g(`path`,{fill:`currentColor`,d:`M5.59 7.41L7 6l6 6l-6 6l-1.41-1.41L10.17 12zm6 0L13 6l6 6l-6 6l-1.41-1.41L16.17 12z`},null,-1)]])}var re=C({name:`mdi-chevron-double-right`,render:z}),B={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function V(e,t){return E(),v(`svg`,B,[...t[0]||=[g(`path`,{fill:`currentColor`,d:`M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6z`},null,-1)]])}var ie=C({name:`mdi-chevron-left`,render:V}),H={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function U(e,t){return E(),v(`svg`,H,[...t[0]||=[g(`path`,{fill:`currentColor`,d:`M18.41 7.41L17 6l-6 6l6 6l1.41-1.41L13.83 12zm-6 0L11 6l-6 6l6 6l1.41-1.41L7.83 12z`},null,-1)]])}var W=C({name:`mdi-chevron-double-left`,render:U}),G=e=>e.type===`category`,K=e=>e.type===`action`,q=e=>e.type===`chart`,J=e=>e.type===`indicator`,Y={width:200,height:25},X={key:0,class:`text-muted`},ae=O(w({__name:`ChartWrapper`,props:u({data:{},options:{},width:{},height:{}},Y),setup(e){F.register(j,M,N,P);let{data:t,options:n,width:r,height:i}=h(e),a=m(`barRef`),o=S(()=>t.value.datasets?.[0].data??[]);function s(){let e=a.value?.chart;e&&(e.options.events=[`mousemove`,`mouseout`],e.options.plugins.tooltip.enabled=!0,e.update(`none`))}function l(){let e=a.value?.chart;e&&(e.options.events=[],e.options.plugins.tooltip.enabled=!1,e.update(`none`))}return(e,u)=>d(o).length?(E(),_(d(I),{key:1,ref_key:`barRef`,ref:a,data:d(t),options:d(n),height:d(i),width:d(r),style:f({contain:`strict`,contentVisibility:`auto`,containIntrinsicSize:`${d(r)}px ${d(i)}px`,maxWidth:`${d(r)}px`,minWidth:`${d(r)}px`,minHeight:`${d(i)}px`,maxHeight:`${d(i)}px`}),onMouseenter:s,onMouseleave:l},null,8,[`data`,`options`,`height`,`width`,`style`])):(E(),v(`span`,X,c(e.$t(`components.charts.no_data`)),1))}}),[[`__scopeId`,`data-v-71d295c5`]]),oe={key:0,class:`absolute right-[20px] top-[5px] z-2`},se={key:0,class:`flex justify-center p-8`},ce={key:1,class:`cui-chart-table w-full`},le={key:0,class:`text-sm text-secondary`},ue=[`colspan`],de={key:0},fe={key:1},pe={key:0},me={key:2,class:`flex items-center justify-center gap-1 p-2 border-t border-surface`},he={class:`text-xs text-muted px-2`},Z=O(w({__name:`CuiChartTable`,props:{headers:{},items:{},loading:{type:Boolean},paginator:{type:Boolean},totalRecords:{},rows:{default:5},pagination:{},chartData:{},emptyMessage:{}},emits:[`update:page`],setup(u,{emit:C}){let w=u,O=C,{theme:j}=D(k()),{headers:M,items:N,loading:P,chartData:F,paginator:I,pagination:R,totalRecords:z,rows:B}=h(w),V=m(`endMarker`),H=m(`scrollTarget`),U=n(V,{scrollTarget:H}),Y=S(()=>R.value?.page??1),X=S(()=>!z.value||!B.value?1:Math.max(1,Math.ceil(z.value/B.value))),Z=S(()=>{if(!N.value)return[];if(!I.value)return N.value;let e=B.value??5,t=Y.value-1;return N.value.slice(t*e,(t+1)*e)});function Q(e){let t=B.value??5;O(`update:page`,{page:e-1,rows:t,first:(e-1)*t})}function $(e,t){let n=`${t.name}_${e.for}`,r=(F.value?.[n])?.datasets?.[0]?.data??[],i=Math.max(...r.map(e=>Number(e)||0)),a=Math.ceil(i/10)*10;return{responsive:!1,maintainAspectRatio:!1,devicePixelRatio:1,animation:!1,events:[],plugins:{legend:{display:!1},tooltip:{enabled:!1,mode:`point`,intersect:!1,backgroundColor:j.value===`dark`?`#2e2e2e`:`#f1f5f9`,titleColor:j.value===`dark`?`#ffffff`:`#000000`,bodyColor:j.value===`dark`?`#ffffff`:`#000000`,displayColors:!1,padding:8,callbacks:{title:e=>{let t=e[0].label;if(t&&!isNaN(Number(t))){let n=new Date(Number(t)).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`}),r=e[0].raw;return[`${n}`,`${r.toFixed(2)}%`].join(` - `)}return``}}}},scales:{x:{display:!1,grid:{display:!1}},y:{display:!1,min:0,max:a||100,grid:{display:!1}}}}}return(n,m)=>{let h=A,S=i,C=r,w=te,D=ae,O=t,k=W,j=ie,N=L,R=re,z=e,B=ne;return E(),v(`div`,null,[T(z,{class:`cui-card`},{content:y(()=>[T(a,{name:`fade`},{default:y(()=>[d(U)?x(``,!0):(E(),v(`div`,oe,[T(h,{width:`20px`,height:`20px`,class:`opacity-15`})]))]),_:1}),g(`div`,{ref_key:`scrollTarget`,ref:H,class:`overflow-x-auto relative`},[d(P)?(E(),v(`div`,se,[T(S,{class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})])):(E(),v(`table`,ce,[g(`thead`,null,[g(`tr`,null,[(E(!0),v(b,null,p(d(M),(e,t)=>(E(),v(`th`,{key:t,class:s([e.columnProps?.headerClass,`p-2 h-7 min-h-7 max-h-7 text-sm`])},c(e.name??``),3))),128)),g(`th`,{ref_key:`endMarker`,ref:V,class:`w-0 p-0 m-0`},null,512)])]),g(`tbody`,null,[d(Z).length?(E(!0),v(b,{key:1},p(d(Z),(e,t)=>(E(),v(`tr`,{key:t,class:`text-sm text-secondary`},[(E(!0),v(b,null,p(d(M),(t,n)=>(E(),v(`td`,{key:n,class:s([t.columnProps?.class,`p-2 h-7 min-h-7 max-h-7`])},[d(J)(t)?(E(),v(`div`,o({key:0,ref_for:!0},t.props),[ee(T(C,{style:f({background:t.color?.(e)??`gray`})},null,8,[`style`]),[[B,{value:t.tooltip?.(e)}]])],16)):d(G)(t)?(E(),v(`div`,o({key:1,ref_for:!0},t.props),[t.asChip?(E(),_(w,o({key:0,ref_for:!0},t.chipProps),{default:y(()=>[g(`span`,null,c(t.altName?t.altName:typeof t.field==`string`?e[t.field]:t.field(e)),1),t.suffix?(E(),v(`span`,de,c(t.suffix),1)):x(``,!0)]),_:2},1040)):(E(),v(`span`,fe,[g(`span`,null,c(t.altName?t.altName:typeof t.field==`string`?e[t.field]:t.field(e)),1),t.suffix?(E(),v(`span`,pe,c(t.suffix),1)):x(``,!0)]))],16)):d(q)(t)&&d(F)&&d(F)[`${e.name}_${t.for}`]?(E(),v(`div`,o({key:2,ref_for:!0},t.props),[T(D,{data:d(F)[`${e.name}_${t.for}`],options:$(t,e),height:25},null,8,[`data`,`options`])],16)):d(K)(t)?(E(),v(`div`,o({key:3,ref_for:!0},t.props,{class:`flex items-center justify-end gap-1`}),[t.buttons?.length?(E(!0),v(b,{key:0},p(t.buttons,(t,n)=>(E(),v(b,{key:n},[t.disabled?.(e)?x(``,!0):(E(),_(O,o({key:0,rounded:``,loading:t.loading?.(e)},{ref_for:!0},t.buttonProps,{class:`text-white cui-icon-md`,onClick:n=>t.action(e)}),{icon:y(()=>[(E(),_(l(t.icon)))]),_:2},1040,[`loading`,`onClick`]))],64))),128)):t.disabled?.(e)?x(``,!0):(E(),_(O,o({key:1,rounded:``,loading:t.loading?.(e)},{ref_for:!0},t.buttonProps,{class:`text-white cui-icon-md`,onClick:n=>t.action?.(e)}),{icon:y(()=>[(E(),_(l(t.icon)))]),_:2},1040,[`loading`,`onClick`]))],16)):x(``,!0)],2))),128)),m[4]||=g(`td`,{class:`w-0 p-0 m-0`},null,-1)]))),128)):(E(),v(`tr`,le,[g(`td`,{colspan:d(M).length+1,class:`p-4 text-center text-muted`},c(u.emptyMessage??n.$t(`components.process_table.empty`)),9,ue)]))])])),d(I)&&d(X)>1?(E(),v(`div`,me,[T(O,{text:``,rounded:``,class:`cui-icon-sm`,disabled:d(Y)<=1,onClick:m[0]||=e=>Q(1)},{icon:y(()=>[T(k,{width:`100%`,height:`100%`})]),_:1},8,[`disabled`]),T(O,{text:``,rounded:``,class:`cui-icon-sm`,disabled:d(Y)<=1,onClick:m[1]||=e=>Q(d(Y)-1)},{icon:y(()=>[T(j,{width:`100%`,height:`100%`})]),_:1},8,[`disabled`]),g(`span`,he,c(d(Y))+` / `+c(d(X)),1),T(O,{text:``,rounded:``,class:`cui-icon-sm`,disabled:d(Y)>=d(X),onClick:m[2]||=e=>Q(d(Y)+1)},{icon:y(()=>[T(N,{width:`100%`,height:`100%`})]),_:1},8,[`disabled`]),T(O,{text:``,rounded:``,class:`cui-icon-sm`,disabled:d(Y)>=d(X),onClick:m[3]||=e=>Q(d(X))},{icon:y(()=>[T(R,{width:`100%`,height:`100%`})]),_:1},8,[`disabled`])])):x(``,!0)],512)]),_:1})])}}}),[[`__scopeId`,`data-v-0b0bd4a5`]]),Q={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function $(e,t){return E(),v(`svg`,Q,[...t[0]||=[g(`path`,{fill:`currentColor`,d:`M12 5V3.21c0-.45-.54-.67-.85-.35l-2.8 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.32.31.86.09.86-.36V7c3.31 0 6 2.69 6 6c0 2.72-1.83 5.02-4.31 5.75c-.42.12-.69.52-.69.95c0 .65.62 1.16 1.25.97A7.99 7.99 0 0 0 20 13c0-4.42-3.58-8-8-8m-6 8c0-1.34.44-2.58 1.19-3.59c.3-.4.26-.95-.09-1.31c-.42-.42-1.14-.38-1.5.1a7.99 7.99 0 0 0 4.15 12.47c.63.19 1.25-.32 1.25-.97c0-.43-.27-.83-.69-.95C7.83 18.02 6 15.72 6 13`},null,-1)]])}var ge=C({name:`ic-round-restart-alt`,render:$});export{Z as n,q as r,ge as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/workbox-window.prod.es5-CQTy-jf8.js","assets/vendor-ClrOISZp.js","assets/rolldown-runtime-DAXXjFlN.js","assets/CameraConsole-dx9vB5ht.js","assets/useSharedComposables-ffwWlpSL.js","assets/vendor-cameraui-DDdtrYBn.js","assets/vendor-core-CZuWsjWr.js","assets/ui-Cv0M3koY.js","assets/useFileDownload-C5quSdZR.js","assets/api-DR6W2XWy.js","assets/vendor-zod-XsuaxHRY.js","assets/vendor-primevue-DB14kOh6.js","assets/api-C31uUd3g.css","assets/cameras-DCMMwuui.js","assets/useLogsSocket-B1sCzRXK.js","assets/_plugin-vue_export-helper-BDNMzG2s.js","assets/vendor-xterm-IIYDrBG1.js","assets/vendor-xterm-BrP-ENHg.css","assets/useLogsSocket-4F2-d9fa.css","assets/404-ChR2IVti.js","assets/home-DTNk2yog.js","assets/FirstSteps-CsMSK_YI.js","assets/useBackupRestore-B-yCV4DL.js","assets/server-D7bl4wSy.js","assets/useServerRestart-DnT0ZOYm.js","assets/hasPermission-Dm18Z17u.js","assets/useCuiDialog-DLoFzodG.js","assets/close-BTPBtoEq.js","assets/CuiImage-DBQAYfn1.js","assets/CuiImage-Bxf7z2N4.css","assets/SettingsAccount-CALY2rH0.js","assets/CuiAvatar-DeBKq6dT.js","assets/CuiAvatar-BtMXnhxd.css","assets/face-recognition-CPwwcApe.js","assets/shield-check-0hUJRszq.js","assets/CuiActionButton-BAlSwXzv.js","assets/copy-16-filled-DfOe7jyi.js","assets/useBiometricCredentials-Tq1nEG8V.js","assets/users.schema-BGeyXreN.js","assets/CuiDataTable-CB7aMmp9.js","assets/arrow-right-outline-CvgD4nuT.js","assets/CuiDataTable-W68cyoLf.css","assets/CuiQRCode-D9QNUEmx.js","assets/theme-BG6n3TRA.js","assets/CuiQRCode-BtErH65J.css","assets/auth-BJf6VFls.js","assets/SettingsAccount-Y7hpH8Y3.css","assets/SettingsAppearance-CGaG9lml.js","assets/Cameras-DDut77Xv.js","assets/cctv-DbFrrwEm.js","assets/CuiFloatingButton-DdI-E8dh.js","assets/useCuiCameraDrawer-BcAYizqy.js","assets/CuiSchema-B6q285jE.js","assets/check-COWE52r_.js","assets/CuiSchema--yMBD996.css","assets/plus-CJzoaVfR.js","assets/cameras.schema-99F6GE0u.js","assets/ring-resize-QxO72Hs5.js","assets/plus-CJ2GnX_q.js","assets/Cameras-2kM76WUB.css","assets/Camera-Brp9vdg2.js","assets/CuiCameraCard-HEi3Hoe-.js","assets/cog-BOiZ8Brk.js","assets/cog-outline-CXjehRoX.js","assets/CuiCameraSnapshot-C-iPOB3g.js","assets/types-BpBkaZ8S.js","assets/CuiMenu--tB8FqMF.js","assets/CuiMenu-BWUfWLQP.css","assets/play-solid-cginGSgT.js","assets/CuiBBoxPlayground-yYOBCXTq.js","assets/CuiBBoxPlayground-EFkdOBvq.css","assets/motion-sensor-D9ErhY-p.js","assets/lightbulb-outline-DPjpJn5F.js","assets/vendor-draggabilly-CPB8E5_r.js","assets/shares-D5xo0sht.js","assets/CuiCameraCard-BxGmxXxZ.css","assets/download-DLRWZxWu.js","assets/routerState-B08WcvfU.js","assets/zoom-in-CKM5nWQX.js","assets/CuiCameraPipCard-BxbUK-93.js","assets/CuiCameraPipCard-D3o29_wc.css","assets/Camera-Da5zEitE.css","assets/Camview-ChimIRuL.js","assets/grid-fill-DepYpY1i.js","assets/vendor-dnd-B9-e5xxH.js","assets/microphone-DJsihw9n.js","assets/delete-BEupTYe7.js","assets/CuiTopNavbarItem--MOi9UUw.js","assets/chevron-down-Bu7d-Y9N.js","assets/CuiTopNavbarItem-CJqOqVMt.css","assets/vendor-gridstack-DD5uGA3X.js","assets/vendor-gridstack-Rg2RhwAc.css","assets/Camview-CS2a2okQ.css","assets/Recordings-Cz4uWsI9.js","assets/view-grid-DRwNJzxD.js","assets/view-grid-CWZLWCco.css","assets/eventIcons-OxuOsPp8.js","assets/eventIcons-2hVCNchU.css","assets/CuiTopbarSlot-Bcw46PzA.js","assets/CuiRecordingsGrid-DlKUfbeS.js","assets/CuiRecordingsGrid-COHg3ZCT.css","assets/round-alt-arrow-left-bold-C57m543l.js","assets/Recordings-DO1BPBKp.css","assets/Faces-DtJmIku2.js","assets/plugins-VeCjoaEi.js","assets/back-filled-LVLhJP7G.js","assets/Plugins-C_kdqAp4.js","assets/puzzle-filled-BsJvAZrD.js","assets/search-BgYt2zqA.js","assets/PluginSearch-DFtTwd_R.js","assets/refresh-rounded-D9PcUR6I.js","assets/github-CWr5rTTh.js","assets/clock-outline-CqPKrGj2.js","assets/CuiPluginTrustBadge-Bcnptf84.js","assets/CuiPluginTrustBadge-QHTLaN1n.css","assets/CuiPluginCategoryChip-yMnZpSGr.js","assets/cctv-BZIDJlxZ.js","assets/bell-ring-DgLkBDcU.js","assets/CuiPluginCategoryChip-CdGrTCxH.css","assets/download-BKGJ_BFg.js","assets/PluginSearch-NuKgD1r3.css","assets/settings-DHy64jsU.js","assets/config-BiEjYldh.js","assets/CuiPluginCard-Cb0XSLIr.js","assets/terminal-CNEjR0aR.js","assets/CuiPluginOAuthButton-CuppMPTq.js","assets/cloud-outline-BooRVJGO.js","assets/cloud-check-C2zK34QI.js","assets/trash-fill-Br00Vept.js","assets/CuiPluginCard-C9zsmIaC.css","assets/Plugin-B8656Gzo.js","assets/bell-_E2Lq4ub.js","assets/PluginSchema-Dy9kDPML.js","assets/information-outline-BaVRQ1WL.js","assets/close-circle-BAE2M1UZ.js","assets/vendor-markdown-D7EhExwE.js","assets/vendor-markdown-DtOhvyRx.css","assets/Plugin-DbSiTjYn.css","assets/Adminpanel-CiJGwx7_.js","assets/round-restart-alt-CcJGggln.js","assets/vendor-chart-Cn72DQnu.js","assets/chevron-right-90_Zn7fJ.js","assets/round-restart-alt-BhSxsPhN.css","assets/Config-Cy5j6yf_.js","assets/Config-JgftUZFe.css","assets/Logs-Bic2YIta.js","assets/arrow-left-DroMCfOc.js","assets/trash-2-CAa4rD_d.js","assets/Terminal-CNzw8wk3.js","assets/Terminal-CrOfQJ-O.css","assets/Automations-urwh-nzl.js","assets/automation-BjZc8WL7.js","assets/types-BxFyoO54.js","assets/automations-Dt5J3kkY.js","assets/nodeDefinitions-5BjF3SJ8.js","assets/transit-connection-variant-CXkATe8I.js","assets/variable-C2Yu30iz.js","assets/webhook-BCBlzc3z.js","assets/source-branch-Dv9Du0bc.js","assets/alert-circle-DeKKKwiu.js","assets/Automation-Kt6pl4MS.js","assets/deviceId-sq3mLBKa.js","assets/automations-Dd-6vvka.js","assets/CuiBottomSheet-udULz0wI.js","assets/CuiBottomSheet-DsjZEdig.css","assets/automationBlueprint-DMjszOs4.js","assets/vendor-vueflow-Ci6VMxDa.js","assets/Automation-Cm62xfWQ.css","assets/Instances-BTNzUfGz.js","assets/instances-MscZjRfc.js","assets/Workers-BXH8IccG.js","assets/circular-connection-Fq-Vqe3X.js","assets/Workers-E6LM_yAl.css","assets/Settings-is528I5i2.js","assets/Settings-bwLTNAxX.css","assets/Menu-GbuCaA_6.js","assets/power-CH_DVgfm.js","assets/About-CDQ55crC.js","assets/api-Br3Jmdj6.js","assets/useAppVersion-DCmhFeIs.js","assets/Console-DBJHlPg2.js","assets/bug-Eq4PDwA4.js","assets/trash2-tuK9V5bO.js","assets/SettingsAccount-_zSgGuBE.js","assets/SettingsAppearance-z9tBty3q.js","assets/SettingsBackup-JI_xqcVS.js","assets/trash-can-outline-gVM4WyHG.js","assets/SettingsBackup-CX0rT0QJ.css","assets/SettingsRecordings-D-S7rofE.js","assets/alert-outline-C4_42ECn.js","assets/SettingsRemote-CVuDUBMM.js","assets/cloud-outline-64fdhdhh.js","assets/SettingsRemote-T38YVHal.css","assets/SettingsMqtt-B_tzet_5.js","assets/SettingsSystem-J7ZT7oRr.js","assets/useUpdateChannel-DbBXpySY.js","assets/SettingsUsers-DvuiYjNg.js","assets/SettingsNotifications-FWWveQMH.js","assets/notifications-D87Lhlir.js"])))=>i.map(i=>d[i]);
2
- import{Ai as e,Ci as t,Et as n,I as r,Ir as i,Ki as a,Ni as o,O as s,Si as c,Ui as l,_n as u,c as d,dn as f,gn as p,i as m,l as h,r as g,t as _,wi as v,yi as y}from"./vendor-cameraui-DDdtrYBn.js";import{Ct as b,E as x,T as S,a as C,c as ee,p as w,r as T,wt as E,xt as D}from"./api-DR6W2XWy.js";import{$n as O,$t as k,An as A,Bn as te,Cr as ne,En as re,Er as j,F as M,G as ie,Gn as N,Hn as P,I as ae,Ln as oe,P as se,Pn as ce,Q as le,Rn as ue,Sr as F,Tr as I,U as de,Vn as L,Wt as R,Zn as fe,_n as z,_r as pe,an as B,br as me,dn as V,en as he,fn as H,gn as ge,jn as _e,lr as ve,mn as U,mr as W,nr as G,on as K,pn as q,rn as ye,rr as be,un as J,ur as Y,vn as xe,xn as X,yn as Z,zn as Q}from"./vendor-ClrOISZp.js";import{f as Se,i as Ce,o as we}from"./vendor-core-CZuWsjWr.js";import{P as Te,W as Ee,b as De,s as Oe,u as ke,z as Ae}from"./vendor-primevue-DB14kOh6.js";import{F as je,I as Me,L as Ne,R as Pe}from"./CuiCameraCard-HEi3Hoe-.js";import{t as Fe}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{a as Ie,i as Le,n as Re,r as ze,t as Be}from"./useSharedComposables-ffwWlpSL.js";import{n as Ve}from"./ui-Cv0M3koY.js";import"./useUpdateChannel-DbBXpySY.js";import{t as He}from"./cloud-outline-BooRVJGO.js";import{t as Ue}from"./CuiImage-DBQAYfn1.js";import{i as We,r as Ge,t as Ke}from"./instances-MscZjRfc.js";import{t as qe}from"./cctv-DbFrrwEm.js";import{t as Je}from"./terminal-CNEjR0aR.js";import{t as Ye}from"./circular-connection-Fq-Vqe3X.js";import{t as Xe}from"./automation-BjZc8WL7.js";import{n as Ze,t as Qe}from"./cloud-outline-64fdhdhh.js";import{t as $e}from"./bell-_E2Lq4ub.js";import{n as et,t as tt}from"./transit-connection-variant-CXkATe8I.js";import{t as nt}from"./bug-Eq4PDwA4.js";import{t as rt}from"./cog-BOiZ8Brk.js";import{t as it}from"./cog-outline-CXjehRoX.js";import{t as at}from"./face-recognition-CPwwcApe.js";import{t as ot}from"./grid-fill-DepYpY1i.js";import{n as st,r as ct,t as lt}from"./view-grid-DRwNJzxD.js";import{n as ut,r as dt,t as ft}from"./eventIcons-OxuOsPp8.js";import{t as pt}from"./puzzle-filled-BsJvAZrD.js";import{t as mt}from"./CuiFloatingButton-DdI-E8dh.js";import{t as ht}from"./CuiCameraSnapshot-C-iPOB3g.js";import{t as gt}from"./refresh-rounded-D9PcUR6I.js";import{t as _t}from"./hasPermission-Dm18Z17u.js";import{a as vt,i as yt,n as bt,r as xt,t as St}from"./vendor-dnd-B9-e5xxH.js";import{n as Ct}from"./types-BpBkaZ8S.js";import{t as wt}from"./cameras-DCMMwuui.js";import{n as Tt}from"./useCuiCameraDrawer-BcAYizqy.js";import{n as Et,t as Dt}from"./useCuiDialog-DLoFzodG.js";import{t as Ot}from"./CuiTopbarSlot-Bcw46PzA.js";import{t as kt}from"./github-CWr5rTTh.js";import{a as At,n as jt}from"./useBiometricCredentials-Tq1nEG8V.js";import{t as Mt}from"./deviceId-sq3mLBKa.js";import{t as Nt}from"./users.schema-BGeyXreN.js";import{t as Pt}from"./routerState-B08WcvfU.js";var Ft=`false`,It=`false`,Lt=Ft===`true`,Rt=It===`true`;function zt(e={}){let{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:a,onRegisteredSW:o,onRegisterError:s}=e,c,l,u,d=async(e=!0)=>{await l,Lt||u?.()};async function f(){if(`serviceWorker`in navigator){if(c=await R(async()=>{let{Workbox:e}=await import(`./workbox-window.prod.es5-CQTy-jf8.js`);return{Workbox:e}},__vite__mapDeps([0,1,2])).then(({Workbox:e})=>new e(`/sw.js`,{scope:`/`,type:`classic`})).catch(e=>{s?.(e)}),!c)return;if(u=()=>{c?.messageSkipWaiting()},!Rt)if(Lt)c.addEventListener(`activated`,e=>{(e.isUpdate||e.isExternal)&&(n?n():window.location.reload())}),c.addEventListener(`installed`,e=>{e.isUpdate||i?.()});else{let e=!1,t=()=>{e=!0,c?.addEventListener(`controlling`,e=>{e.isUpdate&&(n?n():window.location.reload())}),r?.()};c.addEventListener(`installed`,n=>{n.isUpdate===void 0?n.isExternal===void 0?!e&&i?.():n.isExternal?t():!e&&i?.():n.isUpdate||i?.()}),c.addEventListener(`waiting`,t)}c.register({immediate:t}).then(e=>{o?o(`/sw.js`,e):a?.(e)}).catch(e=>{s?.(e)})}}return l=f(),d}function Bt(e={}){let{immediate:t=!0,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:a,onRegisteredSW:o,onRegisterError:s}=e,c=W(!1),l=W(!1);return{updateServiceWorker:zt({immediate:t,onNeedReload:n,onNeedRefresh(){c.value=!0,r?.()},onOfflineReady(){l.value=!0,i?.()},onRegistered:a,onRegisteredSW:o,onRegisterError:s}),offlineReady:l,needRefresh:c}}var Vt=b(`AppUpdate`),Ht=3600*1e3,Ut=`cui-sw-updated`,Wt=W(!1),Gt=W(!1),Kt=async()=>{},qt;async function Jt(){if(!(!qt||qt.installing||!navigator.onLine))try{await qt.update()}catch{}}async function Yt(){if(!(Gt.value||!Wt.value)){Gt.value=!0;try{await Kt()}catch(e){Vt.error(`apply failed`,e),Gt.value=!1}}}function Xt(){return{updateAvailable:Wt,isApplying:Gt,applyUpdate:Yt}}function Zt(){!Wt.value||Gt.value||Yt()}function Qt(){$t()}function $t(){let{t:e}=x.global,t=S(),{needRefresh:n,updateServiceWorker:r}=Bt({immediate:!0,onRegisteredSW(e,t){qt=t,qt&&setInterval(()=>Jt(),Ht)}});c(document,`visibilitychange`,()=>{document.visibilityState===`visible`&&Jt()});let i=D();if(O(()=>i.isOnline.value,(e,t)=>{e&&!t&&Jt()}),O(n,e=>{e&&(Kt=async()=>{sessionStorage.setItem(Ut,`1`);let e=!1,t=()=>{e||(e=!0,window.location.reload())};navigator.serviceWorker?.addEventListener(`controllerchange`,t,{once:!0}),await r(!1),setTimeout(t,2e4)},Wt.value=!0)}),sessionStorage.getItem(Ut)){sessionStorage.removeItem(Ut);let n=new MutationObserver(()=>{document.querySelector(`[data-sonner-toaster]`)&&(n.disconnect(),t.add({severity:`success`,summary:e(`components.toast.title_success`),detail:e(`components.toast.update_installed_detail`),life:3e3}))});n.observe(document.body,{childList:!0,subtree:!0})}}var en={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function tn(e,t){return Q(),U(`svg`,en,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M20 3H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2M4 9V5h16v4zm16 4H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2M4 19v-4h16v4z`},null,-1),V(`path`,{fill:`currentColor`,d:`M17 6h2v2h-2zm-3 0h2v2h-2zm3 10h2v2h-2zm-3 0h2v2h-2z`},null,-1)]])}var nn=Y({name:`bx-server`,render:tn}),rn={viewBox:`0 0 36 36`,width:`1.2em`,height:`1.2em`};function an(e,t){return Q(),U(`svg`,rn,[...t[0]||=[z(`<path fill="currentColor" d="M6 22h24v2H6z" class="clr-i-outline clr-i-outline-path-1"></path><path fill="currentColor" d="M26 26h4v2h-4z" class="clr-i-outline clr-i-outline-path-2"></path><path fill="currentColor" d="M13 9.92L17 6v13a1 1 0 1 0 2 0V6l4 3.95a1 1 0 1 0 1.38-1.45L18 2.16L11.61 8.5A1 1 0 0 0 13 9.92" class="clr-i-outline clr-i-outline-path-3"></path><path fill="currentColor" d="M30.84 13.37A1.94 1.94 0 0 0 28.93 12H21v2h7.95c1.05 2.94 2.77 7.65 3.05 8.48V30H4v-7.52C4.28 21.65 7.05 14 7.05 14H15v-2H7.07a1.92 1.92 0 0 0-1.9 1.32C2 22 2 22.1 2 22.33V30a2 2 0 0 0 2 2h28a2 2 0 0 0 2-2v-7.67c0-.23 0-.33-3.16-8.96" class="clr-i-outline clr-i-outline-path-4"></path><path fill="none" d="M0 0h36v36H0z"></path>`,5)]])}var on=Y({name:`clarity-backup-restore-line`,render:an}),sn={viewBox:`0 0 36 36`,width:`1.2em`,height:`1.2em`};function cn(e,t){return Q(),U(`svg`,sn,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M2 24v6a2 2 0 0 0 2 2h28a2 2 0 0 0 2-2v-6Zm28 5h-4v-2h4Z`,class:`clr-i-solid clr-i-solid-path-1`},null,-1),V(`path`,{fill:`currentColor`,d:`M30.84 13.37A1.94 1.94 0 0 0 28.93 12H21v6a3 3 0 1 1-6 0v-6H7.07a1.92 1.92 0 0 0-1.9 1.32c-2.31 6.36-2.93 8.11-3.1 8.68h31.86c-.16-.57-.79-2.31-3.09-8.63`,class:`clr-i-solid clr-i-solid-path-2`},null,-1),V(`path`,{fill:`currentColor`,d:`M13 9.92L17 6v12a1 1 0 1 0 2 0V6l4 3.95a1 1 0 1 0 1.38-1.45L18 2.16L11.61 8.5A1 1 0 0 0 13 9.92`,class:`clr-i-solid clr-i-solid-path-3`},null,-1),V(`path`,{fill:`none`,d:`M0 0h36v36H0z`},null,-1)]])}var ln=Y({name:`clarity-backup-restore-solid`,render:cn}),un={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function dn(e,t){return Q(),U(`svg`,un,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M20.97 7.27a.996.996 0 0 0 0-1.41l-2.83-2.83a.996.996 0 0 0-1.41 0l-4.49 4.49l-3.89-3.89c-.78-.78-2.05-.78-2.83 0l-1.9 1.9c-.78.78-.78 2.05 0 2.83l3.89 3.89L3 16.76V21h4.24l4.52-4.52l3.89 3.89c.95.95 2.23.6 2.83 0l1.9-1.9c.78-.78.78-2.05 0-2.83l-3.89-3.89zM5.04 6.94l1.89-1.9L8.2 6.31L7.02 7.5l1.41 1.41l1.19-1.19l1.2 1.2l-1.9 1.9zm11.23 7.44l-1.19 1.19l1.41 1.41l1.19-1.19l1.27 1.27l-1.9 1.9l-3.89-3.89l1.9-1.9zM6.41 19H5v-1.41l9.61-9.61l1.3 1.3l.11.11zm9.61-12.44l1.41-1.41l1.41 1.41l-1.41 1.41z`},null,-1)]])}var fn=Y({name:`ic-outline-design-services`,render:dn}),pn={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function mn(e,t){return Q(),U(`svg`,pn,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`m16.24 11.51l1.57-1.57l-3.75-3.75l-1.57 1.57l-4.14-4.13c-.78-.78-2.05-.78-2.83 0l-1.9 1.9c-.78.78-.78 2.05 0 2.83l4.13 4.13l-4.6 4.61q-.15.15-.15.36v3.04c0 .28.22.5.5.5h3.04c.13 0 .26-.05.35-.15l4.62-4.62l4.13 4.13c1.32 1.32 2.76.07 2.83 0l1.9-1.9c.78-.78.78-2.05 0-2.83zm-7.06-.44L5.04 6.94l1.89-1.9L8.2 6.31l-.47.49a.996.996 0 1 0 1.41 1.41l.48-.48l1.45 1.45zm7.88 7.89l-4.13-4.13l1.9-1.9l1.45 1.45l-.48.48a.996.996 0 1 0 1.41 1.41l.48-.48l1.27 1.27zm3.65-11.92a.996.996 0 0 0 0-1.41l-2.34-2.34c-.47-.47-1.12-.29-1.41 0l-1.83 1.83l3.75 3.75z`},null,-1)]])}var hn=Y({name:`ic-round-design-services`,render:mn}),gn={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`};function _n(e,t){return Q(),U(`svg`,gn,[...t[0]||=[V(`g`,{fill:`none`,stroke:`currentColor`,"stroke-width":`4`},[V(`path`,{d:`M13.5 39.37A16.93 16.93 0 0 0 24 43c3.963 0 7.61-1.356 10.5-3.63M19 9.747C12.051 11.882 7 18.351 7 26c0 1.925.32 3.775.91 5.5M29 9.747C35.949 11.882 41 18.351 41 26c0 1.925-.32 3.775-.91 5.5`}),V(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M43 36c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 43 36m-28 0c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 15 36M29 9c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 29 9`})],-1)]])}var vn=Y({name:`icon-park-outline-circular-connection`,render:_n}),yn={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`};function bn(e,t){return Q(),U(`svg`,yn,[...t[0]||=[V(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linejoin":`round`,"stroke-width":`4`},[V(`path`,{d:`M13 10h28v34H13z`}),V(`path`,{"stroke-linecap":`round`,d:`M35 10V4H8a1 1 0 0 0-1 1v33h6m8-16h12m-12 8h12`})],-1)]])}var xn=Y({name:`icon-park-outline-log`,render:bn}),Sn={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`},Cn=[`id`],wn=[`mask`];function Tn(e,t){return Q(),U(`svg`,Sn,[V(`defs`,null,[V(`mask`,{id:e.idMap.SVGzmZ6hexT},[...t[0]||=[V(`g`,{fill:`none`,"stroke-linejoin":`round`,"stroke-width":`4`},[V(`path`,{fill:`#fff`,stroke:`#fff`,d:`M13 10h28v34H13z`}),V(`path`,{stroke:`#fff`,"stroke-linecap":`round`,d:`M35 10V4H8a1 1 0 0 0-1 1v33h6`}),V(`path`,{stroke:`#000`,"stroke-linecap":`round`,d:`M21 22h12m-12 8h12`})],-1)]],8,Cn)]),V(`path`,{fill:`currentColor`,d:`M0 0h48v48H0z`,mask:`url(#`+e.idMap.SVGzmZ6hexT+`)`},null,8,wn)])}var En=Y({name:`icon-park-solid-log`,render:Tn,setup(){return{idMap:{SVGzmZ6hexT:`uicons-`+Math.random().toString(36).substr(2,10)}}}}),Dn={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`},On=[`id`],kn=[`mask`];function An(e,t){return Q(),U(`svg`,Dn,[V(`defs`,null,[V(`mask`,{id:e.idMap.SVGXE6zpcEE},[...t[0]||=[V(`g`,{fill:`none`,"stroke-linejoin":`round`,"stroke-width":`4`},[V(`rect`,{width:`40`,height:`32`,x:`4`,y:`8`,fill:`#fff`,stroke:`#fff`,rx:`2`}),V(`path`,{stroke:`#000`,"stroke-linecap":`round`,d:`m12 18l7 6l-7 6m11 2h13`})],-1)]],8,On)]),V(`path`,{fill:`currentColor`,d:`M0 0h48v48H0z`,mask:`url(#`+e.idMap.SVGXE6zpcEE+`)`},null,8,kn)])}var jn=Y({name:`icon-park-solid-terminal`,render:An,setup(){return{idMap:{SVGXE6zpcEE:`uicons-`+Math.random().toString(36).substr(2,10)}}}}),Mn={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Nn(e,t){return Q(),U(`svg`,Mn,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M7.4 17.25q-1.05.875-2.187.8t-1.988-.775t-1.162-1.837t.412-2.338L4.35 10q-.625-.55-.987-1.325T3 7q0-1.65 1.175-2.825T7 3t2.825 1.175T11 7T9.825 9.825T7 11q-.225 0-.45-.025t-.425-.075L4.2 14.15q-.275.45-.175.888t.425.712t.775.313t.875-.313l10.5-9.025q1.05-.875 2.2-.788t2 .788t1.15 1.838t-.425 2.337L19.65 14q.625.55.988 1.325T21 17q0 1.65-1.175 2.825T17 21t-2.825-1.175T13 17t1.175-2.825T17 13q.225 0 .438.025t.412.075l1.95-3.25q.275-.45.175-.888t-.425-.712t-.775-.312t-.875.312zm1.013-8.837Q9 7.825 9 7t-.587-1.412T7 5t-1.412.588T5 7t.588 1.413T7 9t1.413-.587m10 10Q19 17.825 19 17t-.587-1.412T17 15t-1.412.588T15 17t.588 1.413T17 19t1.413-.587M17 17`},null,-1)]])}var Pn=Y({name:`material-symbols-automation-outline`,render:Nn}),Fn={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function In(e,t){return Q(),U(`svg`,Fn,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M6 19h3v-5q0-.425.288-.712T10 13h4q.425 0 .713.288T15 14v5h3v-9l-6-4.5L6 10zm-2 0v-9q0-.475.213-.9t.587-.7l6-4.5q.525-.4 1.2-.4t1.2.4l6 4.5q.375.275.588.7T20 10v9q0 .825-.588 1.413T18 21h-4q-.425 0-.712-.288T13 20v-5h-2v5q0 .425-.288.713T10 21H6q-.825 0-1.412-.587T4 19m8-6.75`},null,-1)]])}var Ln=Y({name:`material-symbols-home-outline-rounded`,render:In}),Rn={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function zn(e,t){return Q(),U(`svg`,Rn,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M12 19.2c-2.5 0-4.71-1.28-6-3.2c.03-2 4-3.1 6-3.1s5.97 1.1 6 3.1a7.23 7.23 0 0 1-6 3.2M12 5a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m0-3A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10c0-5.53-4.5-10-10-10`},null,-1)]])}var Bn=Y({name:`mdi-account-circle`,render:zn}),Vn={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Hn(e,t){return Q(),U(`svg`,Vn,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2M7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.5.88 4.93 1.78A7.9 7.9 0 0 1 12 20c-1.86 0-3.57-.64-4.93-1.72m11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.93 7.93 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.5-1.64 4.83M12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6m0 5a1.5 1.5 0 0 1-1.5-1.5A1.5 1.5 0 0 1 12 8a1.5 1.5 0 0 1 1.5 1.5A1.5 1.5 0 0 1 12 11`},null,-1)]])}var Un=Y({name:`mdi-account-circle-outline`,render:Hn}),Wn={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Gn(e,t){return Q(),U(`svg`,Wn,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M20 8h-2.81c-.45-.8-1.07-1.5-1.82-2L17 4.41L15.59 3l-2.17 2.17a6 6 0 0 0-2.83 0L8.41 3L7 4.41L8.62 6c-.75.5-1.36 1.21-1.81 2H4v2h2.09c-.06.33-.09.66-.09 1v1H4v2h2v1c0 .34.03.67.09 1H4v2h2.81A5.99 5.99 0 0 0 15 20.18c.91-.52 1.67-1.28 2.19-2.18H20v-2h-2.09c.06-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.03-.67-.09-1H20zm-4 7a4 4 0 0 1-4 4a4 4 0 0 1-4-4v-4a4 4 0 0 1 4-4a4 4 0 0 1 4 4zm-2-5v2h-4v-2zm-4 4h4v2h-4z`},null,-1)]])}var Kn=Y({name:`mdi-bug-outline`,render:Gn}),qn={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Jn(e,t){return Q(),U(`svg`,qn,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M21 10V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h6v-1.87l8.39-8.39c.44-.44 1-.68 1.61-.74m-7-5.5l5.5 5.5H14zm8.85 9.69l-.98.98l-2.04-2.04l.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72m-3.72-.36l2.04 2.04L15.04 22H13v-2.04z`},null,-1)]])}var Yn=Y({name:`mdi-note-edit`,render:Jn}),Xn={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Zn(e,t){return Q(),U(`svg`,Xn,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`m18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h6v-1.87l.13-.13H5V5h7v7zM14 4.5l5.5 5.5H14zm5.13 9.33l2.04 2.04L15.04 22H13v-2.04zm3.72.36l-.98.98l-2.04-2.04l.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72`},null,-1)]])}var Qn=Y({name:`mdi-note-edit-outline`,render:Zn}),$n={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function er(e,t){return Q(),U(`svg`,$n,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M16 17v2H2v-2s0-4 7-4s7 4 7 4m-3.5-9.5A3.5 3.5 0 1 0 9 11a3.5 3.5 0 0 0 3.5-3.5m3.44 5.5A5.32 5.32 0 0 1 18 17v2h4v-2s0-3.63-6.06-4M15 4a3.4 3.4 0 0 0-1.93.59a5 5 0 0 1 0 5.82A3.4 3.4 0 0 0 15 11a3.5 3.5 0 0 0 0-7`},null,-1)]])}var tr=Y({name:`mdi-users`,render:er}),nr={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function rr(e,t){return Q(),U(`svg`,nr,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M13.07 10.41a5 5 0 0 0 0-5.82A3.4 3.4 0 0 1 15 4a3.5 3.5 0 0 1 0 7a3.4 3.4 0 0 1-1.93-.59M5.5 7.5A3.5 3.5 0 1 1 9 11a3.5 3.5 0 0 1-3.5-3.5m2 0A1.5 1.5 0 1 0 9 6a1.5 1.5 0 0 0-1.5 1.5M16 17v2H2v-2s0-4 7-4s7 4 7 4m-2 0c-.14-.78-1.33-2-5-2s-4.93 1.31-5 2m11.95-4A5.32 5.32 0 0 1 18 17v2h4v-2s0-3.63-6.06-4Z`},null,-1)]])}var ir=Y({name:`mdi-users-outline`,render:rr}),ar={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function or(e,t){return Q(),U(`svg`,ar,[...t[0]||=[V(`g`,{fill:`none`,"fill-rule":`evenodd`},[V(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),V(`path`,{fill:`currentColor`,d:`M9 13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2zm10 0a2 2 0 0 1 1.995 1.85L21 15v4a2 2 0 0 1-1.85 1.995L19 21h-4a2 2 0 0 1-1.995-1.85L13 19v-4a2 2 0 0 1 1.85-1.995L15 13zM9 15H5v4h4zm10 0h-4v4h4zm0-12a2 2 0 0 1 1.995 1.85L21 5v4a2 2 0 0 1-1.85 1.995L19 11h-4a2 2 0 0 1-1.995-1.85L13 9V5a2 2 0 0 1 1.85-1.995L15 3zM9 3a2 2 0 0 1 1.995 1.85L11 5v4a2 2 0 0 1-1.85 1.995L9 11H5a2 2 0 0 1-1.995-1.85L3 9V5a2 2 0 0 1 1.85-1.995L5 3zm10 2h-4v4h4zM9 5H5v4h4z`})],-1)]])}var sr=Y({name:`mingcute-grid-line`,render:or}),cr={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function lr(e,t){return Q(),U(`svg`,cr,[...t[0]||=[V(`g`,{fill:`none`},[V(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),V(`path`,{fill:`currentColor`,d:`M20 6a2 2 0 0 1 2 2v11.333a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zm-8.268 7.944L7.136 18.54l-.066.06l-.07.054v.68h13v-.68l-.07-.053l-.066-.06l-2.24-2.24l-.353.354l.055.055a1 1 0 0 1-1.32 1.497l-.094-.083zM17 3a2 2 0 0 1 1.995 1.85L19 5H5a1 1 0 0 0-.993.883L4 6v12a2 2 0 0 1-1.995-1.85L2 16V6a3 3 0 0 1 2.824-2.995L5 3zm3 5H7v7.848L10.848 12a1.25 1.25 0 0 1 1.768 0l3.241 3.24l.884-.883a1.25 1.25 0 0 1 1.768 0L20 15.848zm-3.5 1.5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3`})],-1)]])}var ur=Y({name:`mingcute-photo-album-line`,render:lr}),dr={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function fr(e,t){return Q(),U(`svg`,dr,[...t[0]||=[V(`g`,{fill:`none`,"fill-rule":`evenodd`},[V(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),V(`path`,{fill:`currentColor`,d:`M18.5 4a1.5 1.5 0 0 0-3 0v.5H4a1.5 1.5 0 1 0 0 3h11.5V8a1.5 1.5 0 0 0 3 0v-.5H20a1.5 1.5 0 0 0 0-3h-1.5zM4 10.5a1.5 1.5 0 0 0 0 3h1.5v.5a1.5 1.5 0 0 0 3 0v-.5H20a1.5 1.5 0 0 0 0-3H8.5V10a1.5 1.5 0 1 0-3 0v.5zM2.5 18A1.5 1.5 0 0 1 4 16.5h11.5V16a1.5 1.5 0 0 1 3 0v.5H20a1.5 1.5 0 0 1 0 3h-1.5v.5a1.5 1.5 0 0 1-3 0v-.5H4A1.5 1.5 0 0 1 2.5 18`})],-1)]])}var pr=Y({name:`mingcute-settings-2-fill`,render:fr}),mr={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function hr(e,t){return Q(),U(`svg`,mr,[...t[0]||=[V(`g`,{fill:`none`,"fill-rule":`evenodd`},[V(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),V(`path`,{fill:`currentColor`,d:`M18 4a1 1 0 1 0-2 0v1H4a1 1 0 0 0 0 2h12v1a1 1 0 1 0 2 0V7h2a1 1 0 1 0 0-2h-2zM4 11a1 1 0 1 0 0 2h2v1a1 1 0 1 0 2 0v-1h12a1 1 0 1 0 0-2H8v-1a1 1 0 0 0-2 0v1zm-1 7a1 1 0 0 1 1-1h12v-1a1 1 0 1 1 2 0v1h2a1 1 0 1 1 0 2h-2v1a1 1 0 1 1-2 0v-1H4a1 1 0 0 1-1-1`})],-1)]])}var gr=Y({name:`mingcute-settings-2-line`,render:hr}),_r={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function vr(e,t){return Q(),U(`svg`,_r,[...t[0]||=[z(`<g fill="currentColor"><circle cx="5" cy="5" r="1.5"></circle><circle cx="12" cy="5" r="1.5"></circle><circle cx="19" cy="5" r="1.5"></circle><circle cx="5" cy="12" r="1.5"></circle><circle cx="12" cy="12" r="1.5"></circle><circle cx="19" cy="12" r="1.5"></circle><circle cx="5" cy="19" r="1.5"></circle><circle cx="12" cy="19" r="1.5"></circle><circle cx="19" cy="19" r="1.5"></circle></g>`,1)]])}var yr=Y({name:`proicons-grid-dots`,render:vr}),br={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function xr(e,t){return Q(),U(`svg`,br,[...t[0]||=[V(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,d:`M3.464 3.464C2 4.93 2 7.286 2 12s0 7.071 1.464 8.535C4.93 22 7.286 22 12 22s7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536C19.072 2 16.714 2 12 2S4.929 2 3.464 3.464m14.112 7.016a.75.75 0 0 0-1.152-.96l-1.797 2.156c-.37.445-.599.716-.786.885a.8.8 0 0 1-.163.122l-.011.005l-.008-.004l-.003-.001a.8.8 0 0 1-.164-.122c-.187-.17-.415-.44-.786-.885l-.292-.35c-.328-.395-.625-.75-.901-1c-.301-.272-.68-.514-1.18-.514s-.878.242-1.18.514c-.276.25-.572.605-.9 1l-1.83 2.194a.75.75 0 1 0 1.153.96l1.797-2.156c.37-.445.599-.716.786-.885a.8.8 0 0 1 .163-.122l.007-.003l.004-.002l.011.005a.8.8 0 0 1 .164.122c.187.17.415.44.786.885l.292.35c.329.395.625.75.901 1c.301.272.68.514 1.18.514s.878-.242 1.18-.514c.276-.25.572-.605.9-1z`,"clip-rule":`evenodd`},null,-1)]])}var Sr=Y({name:`solar-graph-bold`,render:xr}),Cr={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function wr(e,t){return Q(),U(`svg`,Cr,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M17.576 10.48a.75.75 0 0 0-1.152-.96l-1.797 2.156c-.37.445-.599.716-.786.885a.8.8 0 0 1-.163.122l-.011.005l-.011-.005a.8.8 0 0 1-.164-.122c-.187-.17-.415-.44-.786-.885l-.292-.35c-.328-.395-.625-.75-.901-1c-.301-.272-.68-.514-1.18-.514s-.878.242-1.18.514c-.276.25-.572.605-.9 1l-1.83 2.194a.75.75 0 1 0 1.153.96l1.797-2.156c.37-.445.599-.716.786-.885a.8.8 0 0 1 .163-.122l.011-.005l.011.005a.8.8 0 0 1 .164.122c.187.17.415.44.786.885l.292.35c.329.395.625.75.901 1c.301.272.68.514 1.18.514s.878-.242 1.18-.514c.276-.25.572-.605.9-1z`},null,-1),V(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,d:`M11.943 1.25c-2.309 0-4.118 0-5.53.19c-1.444.194-2.584.6-3.479 1.494c-.895.895-1.3 2.035-1.494 3.48c-.19 1.411-.19 3.22-.19 5.529v.114c0 2.309 0 4.118.19 5.53c.194 1.444.6 2.584 1.494 3.479c.895.895 2.035 1.3 3.48 1.494c1.411.19 3.22.19 5.529.19h.114c2.309 0 4.118 0 5.53-.19c1.444-.194 2.584-.6 3.479-1.494c.895-.895 1.3-2.035 1.494-3.48c.19-1.411.19-3.22.19-5.529v-.114c0-2.309 0-4.118-.19-5.53c-.194-1.444-.6-2.584-1.494-3.479c-.895-.895-2.035-1.3-3.48-1.494c-1.411-.19-3.22-.19-5.529-.19zM3.995 3.995c.57-.57 1.34-.897 2.619-1.069c1.3-.174 3.008-.176 5.386-.176s4.086.002 5.386.176c1.279.172 2.05.5 2.62 1.069c.569.57.896 1.34 1.068 2.619c.174 1.3.176 3.008.176 5.386s-.002 4.086-.176 5.386c-.172 1.279-.5 2.05-1.069 2.62c-.57.569-1.34.896-2.619 1.068c-1.3.174-3.008.176-5.386.176s-4.086-.002-5.386-.176c-1.279-.172-2.05-.5-2.62-1.069c-.569-.57-.896-1.34-1.068-2.619c-.174-1.3-.176-3.008-.176-5.386s.002-4.086.176-5.386c.172-1.279.5-2.05 1.069-2.62`,"clip-rule":`evenodd`},null,-1)]])}var Tr=Y({name:`solar-graph-outline`,render:wr}),Er=X({__name:`CuiFloatingButtonGroup`,props:{direction:{default:`vertical`},right:{}},setup(e){let t=e,{bottombarHeight:n}=Re(),{direction:r}=me(t),{y:i}=o(window,{throttle:100});return(t,a)=>(Q(),U(`div`,{class:ne([`fixed z-10 flex transition-all duration-200 ease-in-out`,{"right-safe-offset-5":!e.right,"flex-col":F(r)===`vertical`,"flex-row":F(r)===`horizontal`,"scale-0 opacity-0":F(i)>10,"scale-100 opacity-100":F(i)<=10}]),style:I({bottom:`calc(${F(n)}px + 1.25rem + env(safe-area-inset-bottom, 0px))`,right:e.right||void 0})},[P(t.$slots,`default`)],6))}}),Dr=[`draggable`],Or={key:0,class:`absolute inset-0 z-2 flex items-center justify-center bg-black/80 pointer-events-none`},kr={class:`w-full h-[60px] p-4 absolute bottom-0 z-3 flex items-center gap-1 justify-between pointer-events-none`},Ar={class:`text-xs font-semibold p-2 bg-black/60 rounded-full text-white flex items-center gap-1`},jr=300,Mr=Fe(X({__name:`CuiDraggableCameraCard`,props:{camera:{},noDrag:{type:Boolean},viewTransition:{type:Boolean},findCard:{type:Function},moveCard:{type:Function},snapshotRef:{type:Function}},emits:[`refresh-snapshot`,`open-console`,`open-settings`,`click`],setup(e){let t=e,{x:n,y:r,sourceType:i}=Le(),{camera:a,noDrag:o,viewTransition:s}=me(t),c=fe(`boxRef`),l=pe(),d=pe(null),f=W(0),p=W(0),m=W(!1),h=null,g=0,_=J(()=>!o.value),v=J(()=>t.findCard(a.value._id).index),[y,b]=yt(()=>({type:`camera-card`,canDrag(){return _.value},item:()=>(h=null,g=0,{id:a.value._id,originalIndex:v.value}),collect:e=>({isDragging:e.isDragging()}),end:(e,n)=>{let{id:r,originalIndex:i}=e;n.didDrop()||t.moveCard(r,i)}})),[,x]=xt(()=>({accept:`camera-card`,hover({id:e}){if(e!==a.value._id){let n=Date.now();if(h===a.value._id&&n-g<jr)return;let{index:r}=t.findCard(a.value._id),{index:i}=t.findCard(e);i!==r&&(h=a.value._id,g=n,t.moveCard(e,r))}}})),S=J(()=>y.value.isDragging),C=J(()=>S.value&&i.value===`touch`);function ee(){w(),m.value=!0;let e=c.value?.getBoundingClientRect();e&&(f.value=n.value-e.left,p.value=r.value-e.top,T())}function w(){m.value=!1,E(),f.value=0,p.value=0}function T(){if(E(),!c.value)return;let e=c.value.cloneNode(!0),t=c.value.getBoundingClientRect();e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.classList.add(`drag-preview`),document.body.appendChild(e),d.value=e}function E(){d.value&&document.body.contains(d.value)&&document.body.removeChild(d.value),d.value=null}function D(){!d.value||!m.value||requestAnimationFrame(()=>{if(!d.value)return;let e=n.value-f.value,t=r.value-p.value;d.value.style.left=`${e}px`,d.value.style.top=`${t}px`})}function k(e){l.value=b(x(e))}return O(C,e=>{e?ee():w()}),O([n,r],()=>{D()},{flush:`sync`}),ce(()=>{w()}),(t,n)=>{let r=je,i=Me,o=gt,l=u,d=Je,f=rt,p=ht,m=Ee;return Q(),U(`div`,{ref_key:`boxRef`,ref:c,class:`camera-wrapper`},[V(`div`,{ref:k,class:ne([`rounded-xl overflow-hidden border-[1px] border-color relative`,{"cursor-move":F(_)&&!F(S)}]),style:I({opacity:+!F(S),viewTransitionName:F(s)?`camera-card-${F(a).name.replace(/[^a-zA-Z0-9-_]/g,`-`)}`:void 0}),draggable:F(_)},[F(a).disabled?(Q(),U(`div`,Or,[Z(r,{class:`w-8 h-8 text-white/60`})])):q(``,!0),V(`div`,kr,[V(`span`,Ar,[xe(j(F(a).name)+` `,1),F(a).disabled?(Q(),H(r,{key:0,class:`w-3 h-3 text-red-400`})):F(a).detectionSettings?.snooze?(Q(),H(i,{key:1,class:`w-3 h-3 text-amber-400`})):q(``,!0)]),F(a).disabled?q(``,!0):(Q(),U(K,{key:0},[be((Q(),H(l,{severity:`secondary`,rounded:``,class:`dark-mode cui-icon-md pointer-events-auto ml-auto`,onClick:n[0]||=B(e=>t.$emit(`refresh-snapshot`),[`stop`])},{icon:G(()=>[Z(o,{width:`100%`,height:`100%`})]),_:1})),[[m,{value:t.$t(`components.player.refresh_snapshot`)},void 0,{top:!0}]]),(`hasPermission`in t?t.hasPermission:F(_t))(void 0,`admin`)?be((Q(),H(l,{key:0,severity:`secondary`,rounded:``,class:`dark-mode cui-icon-md pointer-events-auto`,onClick:n[1]||=B(e=>t.$emit(`open-console`),[`stop`])},{icon:G(()=>[Z(d,{width:`100%`,height:`100%`})]),_:1})),[[m,{value:t.$t(`components.player.log`)},void 0,{top:!0}]]):q(``,!0)],64)),(`hasPermission`in t?t.hasPermission:F(_t))(void 0,`admin`)?be((Q(),H(l,{key:1,rounded:``,severity:`secondary`,class:ne([`dark-mode cui-icon-md pointer-events-auto`,{"ml-auto":F(a).disabled}]),onClick:n[2]||=B(e=>t.$emit(`open-settings`),[`stop`])},{icon:G(()=>[Z(f,{width:`100%`,height:`100%`})]),_:1},8,[`class`])),[[m,{value:t.$t(`components.player.settings`)},void 0,{top:!0}]]):q(``,!0)]),Z(p,{ref:e.snapshotRef,camera:F(a),class:`cursor-pointer`,onClick:n[3]||=e=>t.$emit(`click`)},null,8,[`camera`])],14,Dr)],512)}}}),[[`__scopeId`,`data-v-b7360c58`]]),Nr={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Pr(e,t){return Q(),U(`svg`,Nr,[...t[0]||=[V(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 5v14m-7-7h14`},null,-1)]])}var Fr=Y({name:`tabler-plus`,render:Pr}),Ir={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Lr(e,t){return Q(),U(`svg`,Ir,[...t[0]||=[V(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m15 6l-6 6l6 6`},null,-1)]])}var Rr=Y({name:`tabler-chevron-left`,render:Lr}),zr={class:`bg-neutral-900 w-[140px] h-[140px] rounded-xl overflow-hidden relative`},Br={key:2,class:`w-full h-full flex items-center justify-center bg-neutral-800/80`},Vr={key:4,class:`absolute inset-0 z-[3] flex items-center justify-center pointer-events-none`},Hr={key:5,class:`absolute top-1.5 left-1.5 z-[3] flex items-center gap-1`},Ur={key:6,class:`absolute inset-0 bg-black/0 group-hover:bg-black/30 transition-colors duration-200 flex flex-col items-center justify-end pb-2 gap-1 z-[2] pointer-events-none`},Wr={class:`flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200`},Gr={key:0,class:`text-[10px] text-white/50 font-medium truncate max-w-[100px]`},Kr={class:`text-xs text-white font-medium opacity-0 group-hover:opacity-100 transition-opacity duration-200 truncate max-w-[130px] px-1`},qr={class:`mt-2 text-center`},Jr={class:`text-xs text-muted`},Yr=1e4,Xr=Fe(X({__name:`CameraEvent`,props:{event:{},cameraName:{},camera:{},loadThumbnails:{type:Function},clickDisabled:{type:Boolean}},setup(e){let t=e,n=Dt(),i=re(d,void 0),a=fe(`previewCanvasRef`),o=fe(`cardRef`),s=W(!1),c=W(void 0),l=W(void 0),u=W(g(t.event)),f=W(`loading`),h,_=!1,{icons:y,generic:b}=ft(),x=J(()=>y[u.value]??b),S=J(()=>new Date(t.event.startTime).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})),C=J(()=>t.event.state===`active`),ee=J(()=>!C.value&&t.event.segments?.some(e=>e?.description)),w=J(()=>t.event.segments?.find(e=>e?.description)?.description?.title);function T(){if(!i||!t.event.endTime)return;let e=a.value;e&&(s.value=!0,i.onHoverStart(e,t.event.cameraId,t.event.id,t.event.startTime,t.event.endTime))}function E(){i&&(s.value=!1,i.onHoverEnd())}async function D(e=2){let n=await t.loadThumbnails(t.event.id,t.event.startTime);if(n){let e=m(n,t.event);if(e.url){c.value=e.url,l.value=e.label,u.value=e.type,f.value=`loaded`;return}}if(e>0)return await new Promise(e=>setTimeout(e,500)),D(e-1);f.value=`empty`}function k(){if(t.clickDisabled||!t.camera)return;let e=C.value&&Date.now()-t.event.startTime<Yr,r=t.event.segments?.find(e=>e?.description)?.description,i=[{icon:Ct,toggle:!0,onClick:()=>{}}];h=n.openComponentDialog(st,{data:{title:t.camera.name,stayActive:!0,hideCancelButton:!0,hideConfirmButton:!0,contentProps:{camera:t.camera,eventTimestamp:e?void 0:t.event.startTime},headerActions:r?i:void 0,draggable:!0,blockDragOnSelectors:[`.p-dialog-body`],dismissableMask:!1,modal:!1,dialogContentClass:`!px-0 h-full`,goTo:`/cameras/${t.camera.name}${e?``:`?startTs=${t.event.startTime}`}`},dialogSize:{desktop:{maxWidth:`800px`,maxHeight:`calc(100vh - max(1rem, env(safe-area-inset-top, 0px)) - max(1rem, env(safe-area-inset-bottom, 0px)))`,width:`50vw`}}})}let{stop:A}=v(o,([e])=>{e.isIntersecting&&!_&&(_=!0,A(),D())},{threshold:.1});return O(()=>t.event.state,(e,t)=>{t===`active`&&e===`ended`&&D()}),O(()=>t.event.lastUpdate,()=>{C.value&&_&&D()}),oe(()=>{requestAnimationFrame(()=>{if(!_&&o.value){let e=o.value.getBoundingClientRect();e.right>0&&e.left<window.innerWidth&&e.bottom>0&&e.top<window.innerHeight&&(_=!0,A(),D())}})}),ue(()=>{A(),h?.close()}),(e,n)=>{let u=ut,d=r,m=Ue,h=p;return Q(),U(`div`,{ref_key:`cardRef`,ref:o,class:`camera-event-card relative group cursor-pointer`,onClick:k,onMouseenter:T,onMouseleave:E},[F(w)?(Q(),H(u,{key:0})):q(``,!0),V(`div`,zr,[F(f)===`loading`?(Q(),H(d,{key:0,class:`w-full h-full rounded-xl`,width:`140px`,height:`140px`})):F(c)?(Q(),H(m,{key:1,src:F(c),alt:t.cameraName,class:`pointer-events-none w-full h-full transition-transform duration-300 group-hover:scale-105`,"image-style":{objectFit:`cover`},width:`140px`,height:`140px`,"image-container-class":`w-full h-full`},null,8,[`src`,`alt`])):(Q(),U(`div`,Br,[(Q(),H(N(F(x)),{class:`w-8 h-8 text-white/20`}))])),F(i)?be((Q(),U(`canvas`,{key:3,ref_key:`previewCanvasRef`,ref:a,class:`absolute inset-0 w-full h-full object-cover pointer-events-none z-[1]`},null,512)),[[ye,F(s)]]):q(``,!0),F(i)&&F(s)&&F(i).isLoading.value&&!F(ee)?(Q(),U(`div`,Vr,[Z(h,{class:`w-[24px] h-[24px] m-0`,"stroke-width":`3`})])):q(``,!0),F(C)?(Q(),U(`div`,Hr,[...n[0]||=[V(`span`,{class:`relative flex h-2.5 w-2.5`},[V(`span`,{class:`animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75`}),V(`span`,{class:`relative inline-flex rounded-full h-2.5 w-2.5 bg-green-500`})],-1)]])):q(``,!0),F(c)?(Q(),U(`div`,Ur,[V(`div`,Wr,[(Q(),H(N(F(x)),{class:`w-3.5 h-3.5 text-white/50`})),F(l)?(Q(),U(`span`,Gr,j(F(l)),1)):q(``,!0)]),V(`span`,Kr,j(t.cameraName),1)])):q(``,!0)]),V(`div`,qr,[V(`p`,Jr,j(F(S)),1)])],544)}}}),[[`__scopeId`,`data-v-9b0b497e`]]),Zr={key:0,class:`absolute top-[50px] left-[50%] translate-x-[-50%] z-2 px-3 py-2 text-shadow-md`},Qr={class:`text-sm text-color font-medium`},$=152,$r=172,ei=5,ti=X({__name:`CuiCameraEvents`,props:{cameras:{}},setup(n){let i=n,{isTouch:o}=ze();if(!o.value&&typeof VideoDecoder<`u`){let e=_({cacheSize:20});te(d,e),l(()=>e.dispose())}let s,{cameras:f}=me(i),p=fe(`containerRef`),m=fe(`scrollContainerRef`),g=W(!0),v=W(!1),b=W({left:0,right:0}),x=W(0),{width:S}=y(p),C=J(()=>{let e=new Map;if(f.value)for(let t of f.value)e.set(t._id,t.name);return e}),ee=J(()=>{let e=new Map;if(f.value)for(let t of f.value)e.set(t._id,t);return e}),{events:w,isLoading:T,hasMore:E,loadMore:D,loadThumbnails:A}=h({availableCameraIds:J(()=>f.value?.map(e=>e._id)??[]),realtime:!0,pageSize:J(()=>{let e=S.value||800;return Math.ceil(e/$)+10}).value,filter:{hasDetections:!0}}),{start:re}=a(()=>{v.value=!1},100,{immediate:!1}),M=J(()=>w.value),ie=J(()=>Math.ceil((S.value||800)/$)),N=J(()=>M.value.length<ie.value&&E.value),P=J(()=>!T.value&&M.value.length===0&&!E.value),ae=J(()=>M.value.length===0?15:5),se=J(()=>{let{left:e}=b.value;return{left:`${-e}px`,width:`100dvw`,paddingLeft:`${e}px`}}),ce=J(()=>{let e=b.value.left+50,t=Math.min(Math.round(45/e*100),100),n=Math.min(Math.round(58/e*100),100);return{top:`-10px`,height:`calc(100% + 20px)`,left:`${-b.value.left}px`,width:`${e}px`,background:`linear-gradient(270deg, transparent 0%, rgba(var(--ground-background-val), 0.8) ${t}%, rgba(var(--ground-background-val), 0.9) ${n}%, rgba(var(--ground-background-val), 0.95) 100%)`}}),le=J(()=>Math.max(0,Math.floor(x.value/$)-ei)),ue=J(()=>{let e=ie.value;return Math.min(M.value.length,Math.ceil(x.value/$)+e+ei)}),de=J(()=>M.value.slice(le.value,ue.value)),R=J(()=>le.value*$);function z(){let e=p.value;if(!e)return;let t=e.getBoundingClientRect();b.value={left:t.left,right:window.innerWidth-t.right}}function pe(){let e=m.value;e&&(x.value=0,_e(()=>{e.scrollTo({left:0,behavior:`smooth`})}))}function B(){let e=m.value;e&&(x.value=e.scrollLeft,g.value=e.scrollLeft<5)}function he(){e(m,{disableTextSelect:!0,threshold:10,onSwipe:e=>{M.value.length===0&&(T.value||N.value||P.value)||(v.value=!0,m.value?.classList.add(`cursor-grabbing`),m.value?.scrollBy({left:-e.movementX,behavior:`smooth`}))},onSwipeEnd:()=>{m.value?.classList.remove(`cursor-grabbing`),re()}})}return c(window,`resize`,z),c(m,`scroll`,B,{passive:!0}),c(m,`wheel`,e=>{M.value.length===0&&(T.value||N.value||P.value)||Math.abs(e.deltaY)>Math.abs(e.deltaX)&&(e.preventDefault(),m.value?.scrollBy({left:e.deltaY}))},{passive:!1}),t(m,D,{distance:300,direction:`right`,canLoadMore:()=>E.value}),O(S,()=>z()),O(()=>M.value[0]?.id,e=>{if(!e||e===s)return;let t=s===void 0;if(s=e,t)return;let n=m.value,r=n?.scrollLeft||0;_e(r<5?()=>{m.value?.scrollTo({left:0,behavior:`smooth`})}:()=>{n&&(n.scrollLeft=r+$)})}),O([N,()=>T.value],([e,t])=>{e&&!t&&D()}),oe(()=>{z();let e=document.getElementById(`container`);e&&c(e,`transitionend`,z),o.value||he()}),(e,t)=>{let n=r,i=Xr,a=Rr,o=u;return Q(),U(`div`,{ref_key:`containerRef`,ref:p,class:`relative min-w-0`,style:I({height:`${$r}px`})},[V(`div`,{ref_key:`scrollContainerRef`,ref:m,class:ne([`absolute top-0 overflow-x-auto overflow-y-hidden hide-scrollbar overscroll-x-contain`,{"overflow-x-hidden!":F(M).length===0&&(F(T)||F(N)||F(P))}]),style:I(F(se))},[V(`div`,{class:`relative`,style:I({width:`${F(M).length*$}px`,height:`${$r}px`})},[V(`div`,{class:`absolute top-0 left-0 flex`,style:I({transform:`translateX(${F(R)}px)`})},[F(M).length===0&&(F(T)||F(N)||F(P))?(Q(!0),U(K,{key:0},L(F(ae),e=>(Q(),U(`div`,{key:`skeleton-${e}`,class:`event-card flex flex-col items-center justify-center w-[140px] mr-3`},[Z(n,{class:`rounded-xl`,width:`140px`,height:`140px`,animation:F(P)?`none`:`wave`},null,8,[`animation`]),Z(n,{class:`mt-2`,width:`50px`,height:`16px`,animation:F(P)?`none`:`wave`},null,8,[`animation`])]))),128)):(Q(!0),U(K,{key:1},L(F(de),e=>(Q(),U(`div`,{key:e.id,class:`event-card flex-none w-[140px] mr-3`},[Z(i,{event:e,"camera-name":F(C).get(e.cameraId),camera:F(ee).get(e.cameraId),"load-thumbnails":F(A),"click-disabled":F(v)},null,8,[`event`,`camera-name`,`camera`,`load-thumbnails`,`click-disabled`])]))),128))],4)],4)],6),F(P)&&!F(T)&&!F(N)?(Q(),U(`div`,Zr,[V(`span`,Qr,j(e.$t(`components.camera_events.no_events`)),1)])):q(``,!0),!F(g)&&F(b).left>0?(Q(),U(`div`,{key:1,class:`absolute pointer-events-none z-1`,style:I(F(ce))},null,4)):q(``,!0),Z(k,{name:`fade-2`},{default:G(()=>[!F(g)&&F(M).length>0?(Q(),H(o,{key:0,rounded:``,severity:`secondary`,class:`absolute left-1 cui-icon-md shadow-md z-2 opacity-70 hover:opacity-100 transition-opacity`,style:{top:`70px`,transform:`translateY(-50%)`},onClick:pe},{icon:G(()=>[Z(a,{width:`100%`,height:`100%`})]),_:1})):q(``,!0)]),_:1})],4)}}}),ni={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ri(e,t){return Q(),U(`svg`,ni,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M18 8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h9V6a3 3 0 0 0-3-3a3 3 0 0 0-3 3H7a5 5 0 0 1 5-5a5 5 0 0 1 5 5v2zm-6 9a2 2 0 0 0 2-2a2 2 0 0 0-2-2a2 2 0 0 0-2 2a2 2 0 0 0 2 2`},null,-1)]])}var ii=Y({name:`mdi-lock-open`,render:ri}),ai={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function oi(e,t){return Q(),U(`svg`,ai,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M21 3H3c-.6 0-1 .4-1 1v6c0 .6.4 1 1 1h18c.6 0 1-.4 1-1V4c0-.6-.4-1-1-1m0 10H3c-.6 0-1 .4-1 1v6c0 .6.4 1 1 1h18c.6 0 1-.4 1-1v-6c0-.6-.4-1-1-1`},null,-1)]])}var si=Y({name:`mdi-view-agenda`,render:oi}),ci={class:`flex flex-col`},li={class:`flex flex-row items-center justify-center gap-2`},ui={key:0,class:`events-section mb-4`},di={key:0,class:`page-title mb-2`},fi={class:`flex flex-col flex-1 overflow-x-hidden`},pi={key:0,class:`page-title`},mi={class:`flex flex-1 min-h-0 flex-col items-center justify-center w-full gap-4 py-16`,key:`no-cameras`},hi={class:`w-16 h-16 rounded-full bg-primary-500/10 flex items-center justify-center`},gi={class:`flex flex-col items-center gap-1 max-w-[400px] text-center`},_i={class:`text-color font-semibold text-base`},vi={class:`text-muted text-sm`},yi={key:`defaultView`},bi={key:`groupedView`,class:`flex flex-col gap-6`},xi={class:`text-sm font-semibold text-muted uppercase tracking-wide mb-2`},Si=Fe(X({__name:`Home`,setup(e){let t=Et(()=>R(()=>import(`./CameraConsole-dx9vB5ht.js`),__vite__mapDeps([3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]))),n=new wt,a=Tt(),o=Dt(),{t:s}=i(),{smBreakpoint:c}=Be(),{isTouch:l}=ze(),{width:d,height:f}=Ie(),{uiSettings:p}=Se(Ve()),{data:m,isLoading:h}=n.getCamerasQuery({page:1,pageSize:-1}),g=pe({}),_=J(()=>h.value),v=J(()=>_t(void 0,`admin`)),y=J(()=>l.value?St:bt),b=J(()=>p.value.cameras.viewMode??`default`),x=J(()=>`repeat(auto-fill, minmax(${c.value?`100%`:`300px`}, 1fr))`),S=J(()=>{let e=x.value;return w.value.length<2?`${e} 50%`:e}),C=J(()=>{let e=c.value?1:Math.max(1,Math.floor(d.value/300)),t=d.value/e*9/16+8;return e*Math.max(1,Math.ceil(f.value/t))}),w=J(()=>m.value?.result?E(m.value.result,p.value.cameras.order||[]):[]),T=J(()=>{if(!m.value?.result)return[];let e=p.value.cameras.groupOrder||{},t=new Map;for(let e of m.value.result){let n=e.room||`Default`;t.has(n)||t.set(n,[]),t.get(n).push(e)}let n=[];for(let[r,i]of t){let t=e[r]||[];n.push({room:r,cameras:E(i,t)})}return n.sort((e,t)=>e.room===`Default`?-1:t.room===`Default`?1:e.room.localeCompare(t.room)),n});function E(e,t){return[...e].sort((e,n)=>{let r=t.indexOf(e._id),i=t.indexOf(n._id);return r!==-1&&i!==-1?r-i:r===-1?i===-1?e.name.localeCompare(n.name):1:-1})}function D(){p.value.cameras.viewMode=b.value==="default"?`grouped`:`default`}function O(e){let t=w.value.find(t=>t._id===e);return{camera:t,index:t?w.value.indexOf(t):-1}}function A(e,t){let{index:n}=O(e);if(n===-1||n===t)return;let r=w.value.map(e=>e._id),[i]=r.splice(n,1);r.splice(t,0,i),p.value.cameras.order=r}function te(e,t){let n=T.value.find(t=>t.room===e);if(!n)return{camera:void 0,index:-1};let r=n.cameras.find(e=>e._id===t);return{camera:r,index:r?n.cameras.indexOf(r):-1}}function ne(e,t,n){let{index:r}=te(e,t);if(r===-1||r===n)return;let i=T.value.find(t=>t.room===e);if(!i)return;let a=i.cameras.map(e=>e._id),[o]=a.splice(r,1);a.splice(n,0,o);let s={...p.value.cameras.groupOrder||{}};s[e]=a,p.value.cameras.groupOrder=s}function re(e){o.openComponentDialog(t,{data:{title:s(`components.dialog.title.log`),confirmText:s(`components.form.button.download`),loading:_,stayActive:!0,contentProps:{cameraName:e},dialogContentClass:`not-md:px-0 h-full md:h-[50vh]`}})}return(e,t)=>{let n=Ot,i=ti,o=r,s=qe,l=Fr,d=u,f=Mr,h=mt,E=Er;return Q(),U(`div`,ci,[Z(n,{position:`center`},{default:G(()=>[V(`div`,li,[Z(F(ie),{src:F(ee)(`logo_animated.svg`),width:`18px`,height:`18px`,title:`camera.ui`,"aria-label":`camera.ui`},null,8,[`src`]),t[2]||=V(`span`,{class:`font-semibold text-xl truncate`},`camera.ui`,-1)])]),_:1}),F(p).cameras.showEvents&&(F(_)||F(w).length)?(Q(),U(`div`,ui,[F(c)?q(``,!0):(Q(),U(`h1`,di,j(e.$t(`components.camera_events.title`)),1)),Z(i,{cameras:F(m)?.result},null,8,[`cameras`])])):q(``,!0),V(`div`,fi,[F(_)||F(w).length?(Q(),U(`h1`,pi,j(e.$t(`views.cameras.title`)),1)):q(``,!0),Z(k,{name:`fade-2`,mode:`out-in`},{default:G(()=>[F(_)?(Q(),U(`div`,{key:`loading`,class:`grid w-full gap-2`,style:I({gridTemplateColumns:F(x)})},[(Q(!0),U(K,null,L(F(C),e=>(Q(),H(o,{key:e,class:`aspect-video !h-auto cui-card`}))),128))],4)):F(w).length?F(b)==="default"?(Q(),U(`div`,yi,[V(`div`,{class:`grid w-full gap-1`,style:I({gridTemplateColumns:F(S)})},[Z(F(vt),{backend:F(y)},{default:G(()=>[Z(he,{name:`list`},{default:G(()=>[(Q(!0),U(K,null,L(F(w),t=>(Q(),H(f,{key:t._id,camera:t,"find-card":O,"move-card":A,"no-drag":F(p).cameras.dragDisabled,"snapshot-ref":e=>F(g)[t.name]=e,class:`shadow-lg rounded-xl transition-transform`,"view-transition":``,onRefreshSnapshot:e=>F(g)[t.name]?.refresh(),onOpenConsole:e=>re(t.name),onOpenSettings:e=>F(a).open({cameraName:t.name}),onClick:n=>e.$router.push(`/cameras/${t.name}`)},null,8,[`camera`,`no-drag`,`snapshot-ref`,`onRefreshSnapshot`,`onOpenConsole`,`onOpenSettings`,`onClick`]))),128))]),_:1})]),_:1},8,[`backend`])],4)])):(Q(),U(`div`,bi,[(Q(!0),U(K,null,L(F(T),t=>(Q(),U(`div`,{key:t.room},[V(`h2`,xi,j(t.room===`Default`?e.$t(`components.form.label.room_default`):t.room),1),V(`div`,{class:`grid w-full gap-1`,style:I({gridTemplateColumns:F(S)})},[Z(F(vt),{backend:F(y)},{default:G(()=>[Z(he,{name:`list`},{default:G(()=>[(Q(!0),U(K,null,L(t.cameras,n=>(Q(),H(f,{key:n._id,camera:n,"find-card":e=>te(t.room,e),"move-card":(e,n)=>ne(t.room,e,n),"no-drag":F(p).cameras.dragDisabled,"snapshot-ref":e=>F(g)[n.name]=e,class:`shadow-lg rounded-xl transition-transform`,"view-transition":``,onRefreshSnapshot:e=>F(g)[n.name]?.refresh(),onOpenConsole:e=>re(n.name),onOpenSettings:e=>F(a).open({cameraName:n.name}),onClick:t=>e.$router.push(`/cameras/${n.name}`)},null,8,[`camera`,`find-card`,`move-card`,`no-drag`,`snapshot-ref`,`onRefreshSnapshot`,`onOpenConsole`,`onOpenSettings`,`onClick`]))),128))]),_:2},1024)]),_:2},1032,[`backend`])],4)]))),128))])):(Q(),U(`div`,mi,[V(`div`,hi,[Z(s,{class:`w-8 h-8 text-primary-500`})]),V(`div`,gi,[V(`span`,_i,j(e.$t(`views.cameras.no_cameras`)),1),V(`span`,vi,j(e.$t(`views.cameras.no_cameras_hint`)),1)]),F(v)?(Q(),H(d,{key:0,class:`cui-button-medium mt-2`,label:e.$t(`views.cameras.get_started`),onClick:t[0]||=t=>e.$router.push(`/cameras`)},{icon:G(()=>[Z(l,{class:`w-4 h-4`})]),_:1},8,[`label`])):q(``,!0)]))]),_:1})]),F(w).length>1?(Q(),H(E,{key:1},{default:G(()=>[Z(h,{grouped:``,"tooltip-props":{value:F(b)==="default"?e.$t(`components.form.tooltip.view_grouped`):e.$t(`components.form.tooltip.view_default`)},"button-props":{severity:F(b)==="default"?`secondary`:`primary`},icon:F(b)==="default"?F(lt):F(si),"icon-props":{width:`100%`,height:`100%`},onClick:D},null,8,[`tooltip-props`,`button-props`,`icon`]),Z(h,{grouped:``,"tooltip-props":{value:F(p).cameras.dragDisabled?e.$t(`components.form.tooltip.enable_drag`):e.$t(`components.form.tooltip.disable_drag`)},"button-props":{severity:F(p).cameras.dragDisabled?`secondary`:`success`},icon:F(p).cameras.dragDisabled?F(Pe):F(ii),"icon-props":{width:`100%`,height:`100%`},onClick:t[1]||=e=>F(p).cameras.dragDisabled=!F(p).cameras.dragDisabled},null,8,[`tooltip-props`,`button-props`,`icon`])]),_:1})):q(``,!0)])}}}),[[`__scopeId`,`data-v-6e795f3f`]]),Ci={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function wi(e,t){return Q(),U(`svg`,Ci,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M20 11v2H8l5.5 5.5l-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5L8 11z`},null,-1)]])}var Ti=Y({name:`mdi-arrow-left`,render:wi}),Ei={viewBox:`0 0 25 24`,width:`1.26em`,height:`1.2em`};function Di(e,t){return Q(),U(`svg`,Ei,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M25.418 12v.03c0 .543-.156 1.05-.425 1.479l.007-.012a2.77 2.77 0 0 1-1.112 1.021l-.016.007c.108.403.17.865.17 1.343v.018v-.001a6.33 6.33 0 0 1-1.518 4.08l.007-.009a10.2 10.2 0 0 1-4.052 2.936l-.069.024c-1.635.686-3.535 1.085-5.529 1.085L12.728 24h.008l-.146.001c-1.991 0-3.888-.399-5.617-1.121l.096.036a10.26 10.26 0 0 1-4.101-2.944l-.013-.016a6.3 6.3 0 0 1-1.51-4.069v-.007q.002-.707.161-1.366l-.008.04a2.86 2.86 0 0 1-1.156-1.029l-.007-.011a2.8 2.8 0 0 1-.44-1.512c0-.777.314-1.481.823-1.991a2.7 2.7 0 0 1 1.952-.83h.05h-.003h.039c.799 0 1.519.343 2.019.889l.002.002a13.14 13.14 0 0 1 7.296-2.298h.008l1.646-7.39a.48.48 0 0 1 .211-.296l.002-.001a.46.46 0 0 1 .372-.071l-.003-.001l5.234 1.149c.174-.353.435-.639.757-.838l.009-.005c.319-.2.707-.319 1.123-.319c.585 0 1.116.235 1.501.617c.385.369.624.888.624 1.463v.036v-.002v.03c0 .578-.239 1.1-.624 1.472l-.001.001a2.1 2.1 0 0 1-1.504.624a2.12 2.12 0 0 1-1.497-.617a2.03 2.03 0 0 1-.617-1.461v-.038v.002l-4.738-1.05l-1.475 6.694c2.747.02 5.293.865 7.407 2.3l-.047-.03a2.8 2.8 0 0 1 2.031-.865c.78 0 1.486.317 1.997.83c.509.496.825 1.189.825 1.955v.039V12zM5.929 14.822v.032c0 .576.236 1.097.617 1.471a2.02 2.02 0 0 0 1.463.624h.036h-.002a2.13 2.13 0 0 0 2.128-2.128v-.034c0-.575-.239-1.094-.624-1.462l-.001-.001a2.06 2.06 0 0 0-1.471-.617h-.034h.002a2.13 2.13 0 0 0-2.114 2.113v.001zm11.489 5.036a.513.513 0 0 0 0-.738a.48.48 0 0 0-.341-.142h-.014h.001h-.008a.53.53 0 0 0-.361.142a3.54 3.54 0 0 1-1.694.876l-.023.004a9.26 9.26 0 0 1-4.604-.014l.064.014a3.55 3.55 0 0 1-1.721-.882l.002.002a.53.53 0 0 0-.361-.142h-.019a.48.48 0 0 0-.341.142a.47.47 0 0 0-.16.352v.014c0 .146.061.278.16.372a4.2 4.2 0 0 0 1.65.957l.03.008a8 8 0 0 0 1.695.414l.043.005q.666.064 1.29.064t1.29-.064a8.4 8.4 0 0 0 1.796-.437l-.058.019a4.2 4.2 0 0 0 1.685-.966l-.002.002zm-.042-2.908h.034c.575 0 1.094-.239 1.462-.624l.001-.001c.381-.374.617-.895.617-1.471v-.034v.002a2.13 2.13 0 0 0-2.113-2.114h-.033c-.576 0-1.097.236-1.471.617a2.02 2.02 0 0 0-.624 1.463v.036v-.002a2.13 2.13 0 0 0 2.128 2.128z`},null,-1)]])}var Oi=Y({name:`fontisto-reddit`,render:Di}),ki={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ai(e,t){return Q(),U(`svg`,ki,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12`},null,-1)]])}var ji=Y({name:`ic-baseline-discord`,render:Ai}),Mi={class:`flex justify-center items-center draggable-region`},Ni={class:`card-background border-color relative w-full sm:w-[400px] sm:rounded-2xl sm:border-[1px] shadow-none sm:shadow-xl h-full sm:h-auto sm:my-4`},Pi={class:`flex flex-col h-full p-10 non-draggable-region`},Fi={class:`flex flex-col items-center justify-center mb-10`},Ii={class:`flex justify-between items-center`},Li={class:`flex items-center gap-1 ml-auto`},Ri=X({__name:`CuiAuthCard`,props:{logoUrl:{}},setup(e){return(t,n)=>{let r=Ae,i=kt,a=u,o=ji,s=Oi;return Q(),U(`div`,Mi,[V(`div`,Ni,[V(`div`,Pi,[V(`div`,Fi,[Z(F(ie),{src:e.logoUrl,height:`60px`,title:`camera.ui`,"aria-label":`camera.ui`,class:`hover:scale-105 active:scale-105 focus:scale-105 transition-all`},null,8,[`src`]),n[3]||=V(`span`,{class:`text-2xl ml-3 mt-2 font-bold text-color`},`camera.ui`,-1)]),P(t.$slots,`default`),Z(r,{class:`mt-15`}),V(`div`,Ii,[P(t.$slots,`footer-left`),V(`div`,Li,[Z(a,{severity:`secondary`,class:`cui-icon-md`,text:``,rounded:``,onClick:n[0]||=e=>t.$router.absUrl(`https://github.com/cameraui/camera.ui`,!0)},{icon:G(()=>[Z(i,{class:`text-muted`,width:`100%`,height:`100%`})]),_:1}),Z(a,{severity:`secondary`,class:`cui-icon-md`,text:``,rounded:``,onClick:n[1]||=e=>t.$router.absUrl(`https://discord.gg/bBGnGcbz8N`,!0)},{icon:G(()=>[Z(o,{class:`text-muted`,width:`100%`,height:`100%`})]),_:1}),Z(a,{severity:`secondary`,class:`cui-icon-md`,text:``,rounded:``,onClick:n[2]||=e=>t.$router.absUrl(`https://reddit.com/r/cameraui/`,!0)},{icon:G(()=>[Z(s,{class:`text-muted`,width:`100%`,height:`100%`})]),_:1})])])]),n[4]||=V(`div`,{class:`bg-primary-500 opacity-0 sm:opacity-100 absolute blur-[20px] w-[200px] h-[30px] left-[50%] -translate-x-[50%] bottom-[25px] -z-1`},null,-1)])])}}}),zi=`cui_device_id`,Bi=null,Vi=null;async function Hi(){if(Bi)return Bi;let e=localStorage.getItem(zi);if(e)return Bi=e,e;let t=Mt();return localStorage.setItem(zi,t),Bi=t,t}async function Ui(){return Vi||(Vi=Wi(navigator.userAgent),Vi)}function Wi(e){let t=/Edg\//.test(e)?`Edge`:/OPR\//.test(e)||/Opera/.test(e)?`Opera`:/Firefox\//.test(e)?`Firefox`:/Chrome\//.test(e)&&!/Chromium/.test(e)?`Chrome`:/Safari\//.test(e)&&!/Chrome\//.test(e)?`Safari`:`Browser`,n=/Windows NT/.test(e)?`Windows`:/Mac OS X/.test(e)?`macOS`:/Android/.test(e)?`Android`:/iPhone|iPad|iPod/.test(e)?`iOS`:/Linux/.test(e)?`Linux`:``;return n?`${t} on ${n}`:t}var Gi={key:`connecting`,class:`flex flex-col items-center justify-center h-full gap-4`},Ki={class:`text-muted text-sm text-center`},qi={class:`flex flex-col gap-10 sm:gap-6 w-full mt-10 sm:mt-0`},Ji={for:`username`,class:`cui-label`},Yi={for:`password`,class:`cui-label`},Xi={class:`flex flex-col gap-6 mt-10`},Zi={class:`flex items-center field-checkbox-gap`},Qi={for:`rememberMe`,class:`cui-label-checkbox`},$i={key:`2fa`,class:`flex flex-col h-full`},ea={class:`flex flex-col items-center text-center mt-10 sm:mt-0`},ta={class:`text-lg font-semibold mb-2`},na={class:`text-muted text-sm`},ra={class:`flex flex-col items-center mt-10`},ia={class:`mt-4 text-xs text-muted text-center`},aa={class:`flex flex-col gap-3 mt-auto pt-10`},oa=Fe(X({__name:`Login`,setup(e){b();let t=S();Dt();let{t:n}=i(),r=T(),a=D(),{isNeedsAuth:o,isOnline:c,inTrouble:l}=a,d=w(),{loginLoading:m,requires2FA:h}=Se(d),g=Ke(),_=fe(`formRef`),v=W(``),y=W(``),x=W(!1),O=W(``),te=W(!1),ne=W(!1);W(!1);let re=J(()=>!g.isHomeActive||g.redirectInfo!==null),ie=J(()=>r===`cloud`&&g.isHomeActive),N=J(()=>!c.value&&!o.value&&!m.value&&!h.value),P=J(()=>l.value?n(`connection.unreachable`):n(`connection.connecting_remote`)),ce=J(()=>!1);function le(){a.retry()}function ue(){if(g.redirectInfo){let e=g.redirectInfo.sourceUrl;g.redirectInfo=null,window.location.href=e;return}g.switchInstance(null)}async function I(e){try{let[t,n]=await Promise.all([Hi(),Ui()]);return await d.login({username:e.username,password:e.password,kind:`web`,persistent:x.value,device:{id:t,name:n}}),!0}catch(e){return t.add({severity:`error`,detail:e,life:3e3}),!1}}async function de(){await I({username:v.value,password:y.value})&&await z({username:v.value,password:y.value})}async function L(){let e=await R();if(e){te.value=!0;try{let t=await At(e,n(`views.login.biometric_reason`));if(!t)return;v.value=t.username,y.value=t.password,await I(t)||(await jt(e),ne.value=!1)}finally{te.value=!1}}}async function R(){return null}async function z(e){}async function pe(){window.location.href=E}async function B(){if(!(O.value.length<6))try{await d.verify2FA(O.value)}catch(e){t.add({severity:`error`,detail:C(e)??n(`views.login.2fa_invalid_code`),life:3e3}),O.value=``}}function me(){d.cancel2FA(),O.value=``}return oe(async()=>{}),(e,t)=>{let n=Ti,r=u,i=He,a=p,o=s,c=Te,d=Oe,g=De,b=at,S=ke,C=f;return Q(),H(Ri,{"logo-url":F(ee)(`logo_animated.svg`)},ge({default:G(()=>[Z(k,{name:`slide-fade`,mode:`out-in`},{default:G(()=>[F(N)?(Q(),U(`div`,Gi,[Z(a,{"stroke-width":`4`,class:`!w-12 !h-12`}),V(`p`,Ki,j(F(P)),1),F(l)?(Q(),H(r,{key:0,size:`small`,severity:`secondary`,label:e.$t(`connection.retry`),onClick:le},null,8,[`label`])):q(``,!0)])):F(h)?be((Q(),U(`div`,$i,[V(`div`,ea,[V(`h2`,ta,j(e.$t(`views.login.2fa_title`)),1),V(`p`,na,j(e.$t(`views.login.2fa_description`)),1)]),V(`div`,ra,[Z(S,{modelValue:F(O),"onUpdate:modelValue":t[3]||=e=>ve(O)?O.value=e:null,length:6,"integer-only":``,size:`large`,onComplete:B},null,8,[`modelValue`]),V(`p`,ia,j(e.$t(`views.login.2fa_backup_hint`)),1)]),V(`div`,aa,[Z(r,{class:`text-white font-semibold cui-button-large`,loading:F(m),disabled:F(O).length<6,label:e.$t(`views.login.2fa_verify`),fluid:``,onClick:B},null,8,[`loading`,`disabled`,`label`]),Z(r,{severity:`secondary`,class:`cui-button-large`,text:``,label:e.$t(`components.form.button.cancel`),fluid:``,onClick:me},null,8,[`label`])])])),[[C]]):(Q(),H(F(ae),{key:`login`,ref_key:`formRef`,ref:_,"validation-schema":F(Nt),class:`flex flex-col h-full`,onSubmit:de},{default:G(()=>[V(`div`,qi,[Z(F(M),{modelValue:F(v),"onUpdate:modelValue":t[0]||=e=>ve(v)?v.value=e:null,modelModifiers:{trim:!0},name:`username`,as:`div`,class:`flex flex-col field-gap`},{default:G(({field:t,errors:n})=>[V(`label`,Ji,j(e.$t(`components.form.label.username`)),1),Z(c,null,{default:G(()=>[Z(o,A({invalid:n.length>0,type:`text`,size:`large`,loading:F(m)},t),null,16,[`invalid`,`loading`])]),_:2},1024),Z(k,{name:`fade`},{default:G(()=>[Z(F(se),{name:`username`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),Z(F(M),{modelValue:F(y),"onUpdate:modelValue":t[1]||=e=>ve(y)?y.value=e:null,name:`password`,as:`div`,class:`flex flex-col field-gap`},{default:G(({field:t,errors:n})=>[V(`label`,Yi,j(e.$t(`components.form.label.password`)),1),Z(c,null,{default:G(()=>[Z(d,A({invalid:n.length>0,size:`large`,loading:F(m),feedback:!1,"toggle-mask":``},t),null,16,[`invalid`,`loading`])]),_:2},1024),Z(k,{name:`fade`},{default:G(()=>[Z(F(se),{name:`password`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`])]),V(`div`,Xi,[F(!1)?q(``,!0):(Q(),H(F(M),{key:0,"model-value":F(x),name:`rememberMe`,type:`checkbox`,"checked-value":!0,"unchecked-value":!1,as:`div`,class:`flex flex-col field-gap`},{default:G(({field:n,errors:r})=>[V(`div`,Zi,[Z(g,A({"model-value":F(x)},n,{invalid:r.length>0,class:`mr-2`,binary:``,loading:F(m),onValueChange:t[2]||=e=>x.value=e}),null,16,[`model-value`,`invalid`,`loading`]),V(`label`,Qi,j(e.$t(`components.form.label.remember_me`)),1)]),Z(k,{name:`fade`},{default:G(()=>[Z(F(se),{name:`rememberMe`,class:`cui-input-checkbox-error`})]),_:1})]),_:1},8,[`model-value`])),Z(r,{type:`submit`,class:`text-white font-semibold cui-button-large`,loading:F(m),label:e.$t(`components.form.button.login`),fluid:``},null,8,[`loading`,`label`]),F(ce)?(Q(),H(r,{key:1,type:`button`,severity:`secondary`,class:`cui-button-large`,text:``,loading:F(te),label:e.$t(`components.form.button.biometric_login`),fluid:``,onClick:L},{icon:G(()=>[Z(b,{class:`w-5 h-5 mr-2`})]),_:1},8,[`loading`,`label`])):q(``,!0)])]),_:1},8,[`validation-schema`]))]),_:1})]),_:2},[F(re)||F(ie)?{name:`footer-left`,fn:G(()=>[F(re)?(Q(),H(r,{key:0,severity:`secondary`,text:``,size:`small`,class:`text-muted`,label:e.$t(`components.instance_switcher.go_back`),onClick:ue},{icon:G(()=>[Z(n,{class:`w-4 h-4`})]),_:1},8,[`label`])):(Q(),H(r,{key:1,severity:`secondary`,text:``,size:`small`,class:`text-muted`,label:e.$t(`views.login.pick_server`),onClick:pe},{icon:G(()=>[Z(i,{class:`w-4 h-4`})]),_:1},8,[`label`]))]),key:`0`}:void 0]),1032,[`logo-url`])}}}),[[`__scopeId`,`data-v-e5e5069d`]]),sa=()=>R(()=>import(`./404-ChR2IVti.js`),__vite__mapDeps([19,5,2,1,9,10,6,11,12,20])),ca=()=>R(()=>import(`./FirstSteps-CsMSK_YI.js`),__vite__mapDeps([21,5,2,1,9,10,6,11,12,22,23,24,25,26,4,7,27,28,15,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),la=()=>R(()=>import(`./Cameras-DDut77Xv.js`),__vite__mapDeps([48,5,2,1,9,10,6,11,12,15,4,7,27,49,50,25,13,51,26,28,29,52,43,53,54,55,56,39,40,41,57,58,59])),ua=()=>R(()=>import(`./Camera-Brp9vdg2.js`),__vite__mapDeps([60,5,2,1,9,10,6,11,12,61,15,4,7,27,62,63,8,64,28,29,25,65,66,31,32,67,68,69,33,70,34,71,72,73,13,35,36,74,51,26,75,76,77,78,79,80,81])),da=()=>R(()=>import(`./Camview-ChimIRuL.js`),__vite__mapDeps([82,5,2,1,9,10,6,11,12,61,15,4,7,27,62,63,8,64,28,29,25,65,66,31,32,67,68,69,33,70,34,71,72,73,13,35,36,74,51,26,75,83,84,38,77,53,85,55,86,79,80,87,88,57,89,90,91,92])),fa=()=>R(()=>import(`./Recordings-Cz4uWsI9.js`),__vite__mapDeps([93,5,2,1,9,10,6,11,12,61,15,4,7,27,62,63,8,64,28,29,25,65,66,31,32,67,68,69,33,70,34,71,72,73,13,35,36,74,51,26,75,94,76,95,96,97,50,98,57,99,100,101,102])),pa=()=>R(()=>import(`./Faces-DtJmIku2.js`),__vite__mapDeps([103,5,2,1,9,10,6,11,12,4,7,27,33,50,26,28,15,29,98,104,86,105,58])),ma=()=>R(()=>import(`./Plugins-C_kdqAp4.js`),__vite__mapDeps([106,5,2,1,11,4,6,7,107,50,25,9,10,12,66,15,31,28,29,32,67,26,27,98,104,108,109,110,111,112,113,34,114,115,71,116,117,118,119,120,105,58,121,122,123,124,62,125,126,127,128,129])),ha=()=>R(()=>import(`./Plugin-B8656Gzo.js`),__vite__mapDeps([130,5,2,1,9,10,6,11,12,15,4,7,49,131,62,63,25,66,31,28,29,32,67,69,33,70,13,51,26,27,98,52,43,53,54,104,132,133,55,134,135,136,105,123,124,125,126,127,128,129,137])),ga=()=>R(()=>import(`./Adminpanel-CiJGwx7_.js`),__vite__mapDeps([138,5,2,1,9,10,6,11,12,23,24,4,7,98,104,45,105,139,15,43,40,140,141,142])),_a=()=>R(()=>import(`./Config-Cy5j6yf_.js`),__vite__mapDeps([143,2,5,1,9,10,6,11,12,23,24,4,7,26,27,28,15,29,98,43,105,78,87,88,57,89,122,144])),va=()=>R(()=>import(`./Logs-Bic2YIta.js`),__vite__mapDeps([145,5,2,1,9,10,6,11,12,23,7,8,66,15,31,28,29,32,67,13,26,4,27,98,104,108,14,16,17,18,105,78,87,88,57,89,146,147])),ya=()=>R(()=>import(`./Terminal-CNzw8wk3.js`),__vite__mapDeps([148,5,2,1,9,10,6,11,12,15,4,7,98,16,17,105,121,78,87,27,88,57,89,147,149])),ba=()=>R(()=>import(`./Automations-urwh-nzl.js`),__vite__mapDeps([150,5,2,1,9,10,6,11,12,4,7,151,50,25,26,27,28,15,29,98,86,152,153,154,155,63,72,156,112,157,158,108,159,105,58])),xa=()=>R(()=>import(`./Automation-Kt6pl4MS.js`),__vite__mapDeps([160,5,2,1,9,10,6,11,12,15,4,7,27,66,31,28,29,32,67,68,26,98,161,152,162,153,154,155,63,72,156,112,157,158,163,164,165,105,58,166,121,167])),Sa=()=>R(()=>import(`./Instances-BTNzUfGz.js`),__vite__mapDeps([168,5,2,1,9,10,6,11,12,4,7,169,25,26,27,28,15,29,50,66,31,32,67,98,108,105,58,128])),Ca=()=>R(()=>import(`./Workers-BXH8IccG.js`),__vite__mapDeps([170,5,2,1,9,10,6,11,12,15,4,7,171,13,35,36,26,27,28,29,98,104,39,40,41,105,139,43,140,141,142,172])),wa=()=>R(()=>import(`./Settings-is528I5i2.js`),__vite__mapDeps([173,5,2,1,6,15,4,7,25,9,10,11,12,98,77,101,174])),Ta=()=>R(()=>import(`./Menu-GbuCaA_6.js`),__vite__mapDeps([175,5,2,1,9,10,6,11,12,176,31,15,28,29,32,25,66,67,133,141])),Ea=()=>R(()=>import(`./About-CDQ55crC.js`),__vite__mapDeps([177,5,2,1,11,4,6,7,178,9,10,12,98,179,105])),Da=()=>R(()=>import(`./Console-DBJHlPg2.js`),__vite__mapDeps([180,5,2,1,9,10,6,11,12,181,8,66,15,31,28,29,32,67,98,4,7,182,108,105,87,27,88,57,89,146])),Oa=()=>R(()=>import(`./SettingsAccount-_zSgGuBE.js`),__vite__mapDeps([183,30,5,2,1,9,10,6,11,12,15,31,28,29,32,33,34,35,36,26,4,7,27,37,38,39,40,41,42,43,44,45,46])),ka=()=>R(()=>import(`./SettingsAppearance-z9tBty3q.js`),__vite__mapDeps([184,47,5,2,1,9,10,6,11,12,7,25,43])),Aa=()=>R(()=>import(`./SettingsBackup-JI_xqcVS.js`),__vite__mapDeps([185,5,2,1,9,10,6,11,12,22,23,24,8,26,4,7,27,28,15,29,186,134,119,187])),ja=()=>R(()=>import(`./SettingsRecordings-D-S7rofE.js`),__vite__mapDeps([188,5,2,1,9,10,6,11,12,13,52,15,27,28,29,43,53,54,39,40,41,189,140,125,126,26,4,7,127])),Ma=()=>R(()=>import(`./SettingsRemote-CVuDUBMM.js`),__vite__mapDeps([190,5,2,1,9,10,6,11,12,15,23,191,35,36,26,4,7,27,28,29,42,43,44,192])),Na=()=>R(()=>import(`./SettingsMqtt-B_tzet_5.js`),__vite__mapDeps([193,5,2,1,9,10,6,11,12,35,36])),Pa=()=>R(()=>import(`./SettingsSystem-J7ZT7oRr.js`),__vite__mapDeps([194,5,2,1,9,10,6,11,12,23,24,195,178,8,25,26,4,7,27,28,15,29,179])),Fa=()=>R(()=>import(`./SettingsUsers-DvuiYjNg.js`),__vite__mapDeps([196,5,2,1,9,10,6,11,12,4,7,31,15,28,29,32,66,67,26,27,38,86,39,40,41])),Ia=()=>R(()=>import(`./SettingsNotifications-FWWveQMH.js`),__vite__mapDeps([197,5,2,1,9,10,6,11,12,25,161,198,86,39,15,40,41])),{smBreakpoint:La}=Be(),Ra=[{name:`NotFound`,path:`/:pathMatch(.*)*`,component:sa,meta:{name:`notfound`,auth:{requiresAuth:!1,role:`none`}}},{name:`Login`,path:`/login`,alias:`/`,component:oa,meta:{name:`login`,auth:{requiresAuth:!1,role:`none`},ui:{background:J(()=>La.value?`var(--card-background)`:void 0)}}},{name:`FirstSteps`,path:`/first-steps`,component:ca,meta:{name:`firststeps`,auth:{requiresAuth:!0,role:`user`}}},{name:`Home`,path:`/home`,component:Si,meta:{name:`home`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{showTitle:!0,padding:!0,allowOverflowX:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:Ln,active:Ne}},bottombar:{icon:{default:Ln,active:Ne}}}},{name:`Cameras`,path:`/cameras`,component:la,meta:{name:`cameras`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:We,active:qe}},bottombar:{icon:{default:We,active:qe}}}},{name:`Camera`,path:`/cameras/:cameraname`,component:ua,meta:{name:`camera`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{disableScroll:!0,ignoreSafeAreaBottom:J(()=>La.value),noExtraPadding:J(()=>La.value)},showNavbar:!0,showTopbar:J(()=>!La.value),showBottombar:J(()=>!La.value),showRouterLoading:!0}}},{name:`Camview`,path:`/camview`,component:da,meta:{name:`camview`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{disableScroll:!0},background:`#000000`,showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:sr,active:ot}},bottombar:{icon:{default:sr,active:ot}}}},{name:`Recordings`,path:`/recordings`,component:fa,meta:{name:`recordings`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{showTitle:!1,padding:!1},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:ur,active:ct}},bottombar:{icon:{default:ur,active:ct}}}},{name:`About`,path:`/about`,component:Ea,meta:{name:`about`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0}}},{name:`Faces`,path:`/faces`,component:pa,meta:{name:`faces`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},menu:{icon:{default:at,active:at}},navbar:{position:`top`,icon:{default:at,active:at}}}},{name:`Plugins`,path:`/plugins`,component:ma,meta:{name:`plugins`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:dt,active:pt}},menu:{icon:{default:dt,active:pt}}}},{name:`ScopedPlugin`,path:`/plugins/:scope/:pluginname`,component:ha,meta:{name:`plugin`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0}}},{name:`Plugin`,path:`/plugins/:pluginname`,component:ha,meta:{name:`plugin`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0}}},{name:`Adminpanel`,path:`/admin`,component:ga,meta:{name:`adminpanel`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:Tr,active:Sr}},menu:{icon:{default:Tr,active:Sr}}}},{name:`Config`,path:`/config`,component:_a,meta:{name:`config`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{disableScroll:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:Qn,active:Yn}},menu:{icon:{default:Qn,active:Yn}}}},{name:`Logs`,path:`/logs`,component:va,meta:{name:`logs`,auth:{requiresAuth:!0,role:`admin`},ui:{background:`#000000`,containerSettings:{disableScroll:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:xn,active:En}},menu:{icon:{default:xn,active:En}}}},{name:`Console`,path:`/console`,component:Da,meta:{name:`console`,auth:{requiresAuth:!0,role:`user`},ui:{background:`#000000`,containerSettings:{disableScroll:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:Kn,active:nt}},menu:{icon:{default:Kn,active:nt}}}},{name:`Terminal`,path:`/terminal`,component:ya,meta:{name:`terminal`,disabledInElectron:!0,auth:{requiresAuth:!0,role:`admin`},ui:{background:`#000000`,containerSettings:{disableScroll:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:Je,active:jn}},menu:{icon:{default:Je,active:jn}}}},{name:`Automations`,path:`/automations`,component:ba,meta:{name:`automations`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:Pn,active:Xe}},menu:{icon:{default:Pn,active:Xe}}}},{name:`Automation`,path:`/automations/:id`,component:xa,meta:{name:`automation`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{disableScroll:!0,paddingBottom:!1},showNavbar:!0,showTopbar:!0,showBottombar:!0}}},{name:`Instances`,path:`/instances`,component:Sa,meta:{name:`instances`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:nn,active:Ge}},menu:{icon:{default:nn,active:Ge}}}},{name:`Workers`,path:`/workers`,component:Ca,meta:{name:`workers`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:vn,active:Ye}},menu:{icon:{default:vn,active:Ye}}}},{name:`Menu`,path:`/menu`,component:Ta,meta:{name:`menu`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{padding:!1},showNavbar:!1,showTopbar:!0,showBottombar:!0,showRouterLoading:!0,minifiedTopbar:!0},bottombar:{icon:{default:yr,active:yr}}}},{name:`Settings`,path:`/settings`,component:wa,meta:{name:`settings`,path:`/settings/account`,auth:{requiresAuth:!0,role:`user`},navbar:{position:`bottom`,icon:{default:it,active:rt}},menu:{icon:{default:it,active:rt}}},children:[{name:`SettingsAccount`,path:`account`,component:Oa,meta:{name:`account`,description:`account_description`,auth:{requiresAuth:!0,role:`user`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:Un,active:Bn}}}},{name:`SettingsAppearance`,path:`appearance`,component:ka,meta:{name:`appearance`,description:`appearance_description`,auth:{requiresAuth:!0,role:`user`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:fn,active:hn}}}},{name:`SettingsUsers`,path:`user`,component:Fa,meta:{name:`user`,description:`user_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:ir,active:tr}}}},{name:`SettingsNotifications`,path:`notifications`,component:Ia,meta:{name:`notifications`,description:`notifications_description`,auth:{requiresAuth:!0,role:`user`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:et,active:$e}}}},{name:`SettingsRecordings`,path:`recordings`,component:ja,meta:{name:`recordings`,description:`recordings_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:ur,active:ct}}}},{name:`SettingsRemote`,path:`remote`,component:Ma,meta:{name:`remote`,description:`remote_access_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:Qe,active:Ze}}}},{name:`SettingsMqtt`,path:`mqtt`,component:Na,meta:{name:`mqtt`,description:`mqtt_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:tt,active:tt}}}},{name:`SettingsBackup`,path:`backup`,component:Aa,meta:{name:`backup`,description:`backup_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:on,active:ln}}}},{name:`SettingsSystem`,path:`system`,component:Pa,meta:{name:`system`,description:`system_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:gr,active:pr}}}}]}];function za(e){let t=e.toLowerCase();return t===`/home`?{group:`main`,key:`home`,ignore:`camview`}:t===`/camview`?{group:`main`,key:`camview`,ignore:`home`}:t.startsWith(`/cameras/`)?{group:`main`,key:`cameras`}:t===`/menu`?{group:`menu`,key:`menu`,depth:0}:t===`/faces`?{group:`menu`,key:`faces`,depth:1}:t===`/plugins`?{group:`menu`,key:`plugins`,depth:1}:t.startsWith(`/plugins/`)?{group:`menu`,key:`plugin-detail`,depth:2}:t.startsWith(`/settings`)?{group:`menu`,key:`settings`,depth:1}:t===`/admin`?{group:`menu`,key:`admin`,depth:1}:t===`/config`?{group:`menu`,key:`config`,depth:1}:t===`/console`?{group:`menu`,key:`console`,depth:1}:t===`/terminal`?{group:`menu`,key:`terminal`,depth:1}:t===`/instances`?{group:`menu`,key:`instances`,depth:1}:t===`/workers`?{group:`menu`,key:`workers`,depth:1}:t===`/automations`?{group:`menu`,key:`automations`,depth:1}:t===`/about`?{group:`menu`,key:`about`,depth:1}:t.startsWith(`/automations/`)?{group:`menu`,key:`automation-detail`,depth:2}:null}var Ba=new Map,Va=Ce({history:we(`/`),routes:Ra,scrollBehavior:async(e,t,r)=>{if(r)return r;if(t.path===e.path||e.path===`/`)return{top:0,left:0};await n(10);let i=Ba.get(e.path);return i===void 0?{top:0,left:0,behavior:`smooth`}:(Ba.delete(e.path),{top:i,left:0})}});Va.absUrl=(e=`#`,t=!0)=>{let n=document.createElement(`a`);n.href=e,n.target=t&&e!==`#`?`_blank`:``,t&&(n.rel=`noopener noreferrer`),n.click()},Va.beforeEach(async(e,t)=>{let n=le(),r=w(),i=Pt();if(e.meta.disabledInElectron&&n.getQueryData([`api`])?.electron)return`/home`;let a=e.name.toLowerCase();if(i.routerLoading=!0,i.setRoutes(t.fullPath,e.fullPath),Ba.set(t.path,window.scrollY),r.user){if(n.cancelQueries(void 0,{revert:!1}),r.user.firstLogin&&e.path!==`/first-steps`)return`/first-steps`;if(!r.user.firstLogin&&e.path===`/first-steps`||e.meta.auth?.requiresAuth&&e.meta.auth.role&&r.user.role!==e.meta.auth.role&&r.user.role!==`admin`&&r.user.role!==`master`||a===`login`)return`/home`;if(e.path===`/settings`)return`/settings/account`}else if(a!==`login`)return`/`}),Va.beforeResolve(async(e,t)=>{let n=za(t.path),r=za(e.path);if(!n||!r||n.group!==r.group||n.key===r.key||n.ignore===r.key||r.ignore===n.key)return;if(n.group===`menu`&&n.depth!==void 0&&r.depth!==void 0){if(window.innerWidth>640||n.depth===r.depth)return;let e=r.depth>n.depth?`forward`:`back`;document.documentElement.dataset.menuDirection=e}if(e.path===`/home`&&!le().getQueriesData({queryKey:[`camerasList`]}).some(([,e])=>e!=null))return;let i=!!document.documentElement.dataset.menuDirection,a=Pt();a.isTransitioning=!0;let o=de();await o.captured,o.finished.finally(()=>{a.isTransitioning=!1,i&&delete document.documentElement.dataset.menuDirection})});var Ha=`cui-chunk-reload`;function Ua(e){let t=e instanceof Error?e.message:String(e);return/dynamically imported module|importing a module script failed|failed to (load|fetch) module script|expected a javascript|chunkloaderror|loading( css)? chunk/i.test(t)}Va.afterEach(()=>{let e=Pt();e.routerLoading=!1,sessionStorage.removeItem(Ha),D().bannerMode.value===null&&Zt()}),Va.onError((e,t)=>{let n=Pt();n.routerLoading=!1,Ua(e)&&!sessionStorage.getItem(Ha)&&(sessionStorage.setItem(Ha,`1`),window.location.assign(t.fullPath))});export{Qt as a,nn as i,Ra as n,Xt as o,Ti as r,Va as t};
@@ -1 +0,0 @@
1
- import{C as e,Dt as t,E as n,T as r}from"./api-DR6W2XWy.js";import{J as i,Q as a,Sr as o}from"./vendor-ClrOISZp.js";async function s({shareData:e}){return(await t.post(`/shares`,e)).data}async function c({camera:e,signal:n}){return(await t.get(`/shares`,{params:{camera:e},signal:n})).data}async function l({token:e}){return(await t.delete(`/shares/${e}`)).data}var u=class{_queryClient=a();t=n.global.t;toast=r();get queryClient(){return this._queryClient}getSharesQuery(t){return e({queryKey:[`shares`,t],queryFn:({signal:e})=>c({camera:o(t),signal:e})})}createShareQuery(){return i({mutationFn:s,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`shares`]}),this.toast.add({severity:`success`,detail:this.t(`shares.share_created`),life:3e3})}})}revokeShareQuery(){return i({mutationFn:l,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`shares`]}),this.toast.add({severity:`success`,detail:this.t(`shares.share_revoked`),life:3e3})}})}};export{u as t};
@@ -1 +0,0 @@
1
- import{dn as e,mn as t,ur as n,zn as r}from"./vendor-ClrOISZp.js";var i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),t(`svg`,i,[...a[0]||=[e(`path`,{fill:`currentColor`,d:`M10 21h4c0 1.1-.9 2-2 2s-2-.9-2-2m11-2v1H3v-1l2-2v-6c0-3.1 2-5.8 5-6.7V4c0-1.1.9-2 2-2s2 .9 2 2v.3c3 .9 5 3.6 5 6.7v6zm-4-8c0-2.8-2.2-5-5-5s-5 2.2-5 5v7h10z`},null,-1)]])}var o=n({name:`mdi-bell-outline`,render:a}),s={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function c(n,i){return r(),t(`svg`,s,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M18 11h-3.18C14.4 9.84 13.3 9 12 9s-2.4.84-2.82 2H6c-.33 0-2-.1-2-2V8c0-1.83 1.54-2 2-2h10.18C16.6 7.16 17.7 8 19 8a3 3 0 0 0 3-3a3 3 0 0 0-3-3c-1.3 0-2.4.84-2.82 2H6C4.39 4 2 5.06 2 8v1c0 2.94 2.39 4 4 4h3.18c.42 1.16 1.52 2 2.82 2s2.4-.84 2.82-2H18c.33 0 2 .1 2 2v1c0 1.83-1.54 2-2 2H7.82C7.4 16.84 6.3 16 5 16a3 3 0 0 0-3 3a3 3 0 0 0 3 3c1.3 0 2.4-.84 2.82-2H18c1.61 0 4-1.07 4-4v-1c0-2.93-2.39-4-4-4m1-7a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1M5 20a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1a1 1 0 0 1-1 1`},null,-1)]])}var l=n({name:`mdi-transit-connection-variant`,render:c});export{o as n,l as t};
@@ -1 +0,0 @@
1
- import{Er as e,Gn as t,Sr as n,dn as r,fn as i,mn as a,pn as o,un as s,ur as c,xn as l,zn as u}from"./vendor-ClrOISZp.js";import{t as d}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as f}from"./motion-sensor-D9ErhY-p.js";import{t as p}from"./bell-ring-DgLkBDcU.js";import{n as m,t as h}from"./webhook-BCBlzc3z.js";import{i as g,n as _,r as v}from"./CuiPluginTrustBadge-Bcnptf84.js";var y={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function b(e,t){return u(),a(`svg`,y,[...t[0]||=[r(`path`,{fill:`currentColor`,d:`M15 13h1.5v2.82l2.44 1.41l-.75 1.3L15 16.69zm4-5H5v11h4.67c-.43-.91-.67-1.93-.67-3a7 7 0 0 1 7-7c1.07 0 2.09.24 3 .67zM5 21a2 2 0 0 1-2-2V5c0-1.11.89-2 2-2h1V1h2v2h8V1h2v2h1a2 2 0 0 1 2 2v6.1c1.24 1.26 2 2.99 2 4.9a7 7 0 0 1-7 7c-1.91 0-3.64-.76-4.9-2zm11-9.85A4.85 4.85 0 0 0 11.15 16c0 2.68 2.17 4.85 4.85 4.85A4.85 4.85 0 0 0 20.85 16c0-2.68-2.17-4.85-4.85-4.85`},null,-1)]])}var x=c({name:`mdi-calendar-clock`,render:b}),S={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function C(e,t){return u(),a(`svg`,S,[...t[0]||=[r(`path`,{fill:`currentColor`,d:`m20.84 2.18l-3.93.78l2.74 3.54l1.97-.4zm-6.87 1.36L12 3.93l2.75 3.53l1.96-.39zm-4.9.96l-1.97.41l2.75 3.53l1.96-.39zm-4.91 1l-.98.19a2 2 0 0 0-1.57 2.35L2 10l4.9-.97zM2 10v10a2 2 0 0 0 2 2h16c1.11 0 2-.89 2-2V10z`},null,-1)]])}var w=c({name:`mdi-movie-open`,render:C}),T={notification:{icon:p,labelKey:`components.automation_store.category_notification`},recording:{icon:v,labelKey:`components.automation_store.category_recording`},presence:{icon:m,labelKey:`components.automation_store.category_presence`},detection:{icon:f,labelKey:`components.automation_store.category_detection`},schedule:{icon:x,labelKey:`components.automation_store.category_schedule`},webhook:{icon:h,labelKey:`components.automation_store.category_webhook`},scene:{icon:w,labelKey:`components.automation_store.category_scene`},utility:{icon:_,labelKey:`components.automation_store.category_utility`},other:{icon:g,labelKey:`components.automation_store.category_other`}},E=[`notification`,`recording`,`presence`,`detection`,`schedule`,`webhook`,`scene`,`utility`,`other`];function D(e){return e&&e in T?T[e]:T.other}var O={key:0,class:`cui-category-chip`},k={class:`cui-category-chip-label`},A=d(l({__name:`CuiAutomationCategoryChip`,props:{category:{}},setup(c){let l=c,d=s(()=>D(l.category));return(s,l)=>c.category?(u(),a(`span`,O,[(u(),i(t(n(d).icon),{class:`cui-category-chip-icon`})),r(`span`,k,e(s.$t(n(d).labelKey)),1)])):o(``,!0)}}),[[`__scopeId`,`data-v-ea2e312f`]]),j={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function M(e,t){return u(),a(`svg`,j,[...t[0]||=[r(`path`,{fill:`currentColor`,d:`M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2L9.19 8.62L2 9.24l5.45 4.73L5.82 21z`},null,-1)]])}var N=c({name:`mdi-star`,render:M}),P={camera:`components.automation_store.input_camera`,plugin:`components.automation_store.input_plugin`,sensor:`components.automation_store.input_sensor`,"notification-targets":`components.automation_store.input_notification_targets`,"system-target":`components.automation_store.input_system_target`};function F(e,t){return e?.length?e.map(e=>t(P[e.type],{count:e.count??1})):[]}export{E as a,T as i,N as n,A as r,F as t};
@@ -1 +0,0 @@
1
- import{Dt as e,T as t,a as n,p as r}from"./api-DR6W2XWy.js";import{mr as i}from"./vendor-ClrOISZp.js";import{a}from"./server-D7bl4wSy.js";import{n as o}from"./useServerRestart-DnT0ZOYm.js";var s=3e5;async function c(t){return(await e.post(`/backup/download`,{localStorage:t},{responseType:`arraybuffer`,timeout:s})).data}async function l(t,n){return(await e.post(`/backup/restore`,t,{timeout:s,onUploadProgress:e=>{e.total&&n?.(Math.round(e.loaded/e.total*100))}})).data}async function u(){return(await e.get(`/backup/scheduler`)).data}async function d(t){return(await e.patch(`/backup/scheduler`,t)).data}async function f(){return(await e.post(`/backup/scheduler/run`)).data}async function p(t){return(await e.get(`/backup/scheduler/backups/${encodeURIComponent(t)}`,{responseType:`arraybuffer`,timeout:s})).data}async function m(t){await e.delete(`/backup/scheduler/backups/${encodeURIComponent(t)}`)}var h=i(!1),g=i(`idle`),_=i(0),v=h;function y(e){e.theme&&localStorage.setItem(`theme`,JSON.stringify(e.theme)),e.language&&localStorage.setItem(`language`,e.language),e.ui&&localStorage.setItem(`ui`,JSON.stringify(e.ui))}function b(){async function e(e){let i=t();h.value=!0,g.value=`uploading`,_.value=0;try{let t=new FormData;t.append(`upload`,e),y(await l(t,e=>{_.value=e,e>=100&&(g.value=`restoring`)}))}catch(e){return h.value=!1,g.value=`idle`,i.add({severity:`error`,detail:n(e),life:3e3}),!1}g.value=`restarting`;let{beginServerRestart:s}=o();return s(),await a().catch(()=>{}),await r().logout(),h.value=!1,g.value=`idle`,!0}return{active:h,phase:g,uploadPercent:_,restoreLocalStorage:y,run:e}}export{p as a,f as c,c as i,b as n,u as o,m as r,d as s,v as t};
@@ -1 +0,0 @@
1
- import{Ir as e,bt as t,nn as n}from"./vendor-cameraui-DDdtrYBn.js";import{$ as r,K as i,X as a}from"./api-DR6W2XWy.js";import{un as o}from"./vendor-ClrOISZp.js";import{t as s}from"./cameras-DCMMwuui.js";function c(){let c=new s,{t:l}=e(),{data:u}=c.getCamerasQuery({page:1,pageSize:-1}),d=o(()=>u.value?.result??[]),f=o(()=>d.value.map(e=>({label:e.name,value:e._id})));function p(e){let t=d.value.find(t=>t._id===e);return t?.assignments?Object.values(n).filter(e=>{let n=a(e),r=t.assignments[n];return r?!Array.isArray(r)||r.length>0:!1}).map(e=>{let n=a(e),r=t.assignments[n];return{label:e,value:e,meta:i[e],hasVirtual:Array.isArray(r)&&r.some(e=>e.id===`cameraui.virtual`)}}):[]}function m(e,n){let{sensors:r,isLoading:i}=t(e,n);return{instanceOptions:o(()=>r.value.map(e=>({label:e.displayName.value||e.name,sensorName:e.name,pluginId:e.pluginId}))),isLoading:i}}function h(e){return r(e).map(e=>({label:l(`components.automation_nodes.sensor_property_${e}`),value:e}))}return{cameras:d,cameraOptions:f,getSensorTypes:p,useSensorInstances:m,getPropertiesForSensor:h}}export{c as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CuiMarkdownContent-CMPFzD-0.js","assets/CuiMarkdownContent-B4fVlO8h.js","assets/vendor-ClrOISZp.js","assets/rolldown-runtime-DAXXjFlN.js","assets/vendor-markdown-D7EhExwE.js","assets/vendor-markdown-DtOhvyRx.css"])))=>i.map(i=>d[i]);
2
- import{Ir as e,Tt as t,_n as n,gi as r,gn as i,yi as a}from"./vendor-cameraui-DDdtrYBn.js";import{T as o,d as s,h as c}from"./api-DR6W2XWy.js";import{$n as l,$t as u,An as d,Bn as f,Cr as p,En as m,Er as h,Gn as g,Kn as _,Ln as v,Rn as ee,Sr as y,Tr as te,Vn as ne,Wt as re,Zn as ie,bn as b,br as ae,dn as x,fn as S,fr as C,mn as w,mr as T,nr as E,on as oe,pn as D,rr as se,un as O,ur as k,wn as A,xn as j,xr as ce,yn as M,zn as N}from"./vendor-ClrOISZp.js";import{l as le}from"./vendor-core-CZuWsjWr.js";import{D as P,W as ue}from"./vendor-primevue-DB14kOh6.js";import{a as de,t as fe}from"./useSharedComposables-ffwWlpSL.js";import{t as pe}from"./close-BTPBtoEq.js";import{t as me}from"./CuiImage-DBQAYfn1.js";var he={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function F(e,t){return N(),w(`svg`,he,[...t[0]||=[x(`path`,{fill:`currentColor`,d:`M4.75 3.5c-.69 0-1.25.56-1.25 1.25v6.5c0 .69.56 1.25 1.25 1.25h6.5c.69 0 1.25-.56 1.25-1.25v-1.5a.75.75 0 0 1 1.5 0v1.5A2.75 2.75 0 0 1 11.25 14h-6.5A2.75 2.75 0 0 1 2 11.25v-6.5A2.75 2.75 0 0 1 4.75 2h1.5a.75.75 0 0 1 0 1.5zM8 2.75A.75.75 0 0 1 8.75 2h4.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0V4.561l-3.22 3.22A.75.75 0 1 1 8.22 6.72l3.22-3.22H8.75A.75.75 0 0 1 8 2.75`},null,-1)]])}var I=k({name:`fluent-open16-filled`,render:F}),L={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function R(e,t){return N(),w(`svg`,L,[...t[0]||=[x(`path`,{fill:`currentColor`,d:`M9.78 12.78a.75.75 0 0 1-1.06 0L4.47 8.53a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.042.018a.75.75 0 0 1 .018 1.042L6.06 8l3.72 3.72a.75.75 0 0 1 0 1.06`},null,-1)]])}var ge=k({name:`octicon-chevron-left16`,render:R}),z=j({render(){return A(`div`,{class:`flex items-center justify-center w-full h-full min-h-[100px]`},[A(i,{class:`w-[24px] h-[24px] m-0`,strokeWidth:`5`})])}});function _e(e,t){return b({loader:e,loadingComponent:z,delay:t?.delay??150})}var ve=Symbol(`DialogStepper`);function ye(e){let t=T(e),n=T(void 0),r={},i=(e,t)=>{r[e]||(r[e]=[]),r[e].push(t)},a=(e,t)=>{let n=r[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}},o=(e,t)=>{let n=r[e];n&&n.forEach(e=>{e(t)})},s={currentTab:n,tabs:t,isMainTab:O(()=>!n.value),goToTab:e=>{let r=t.value.find(t=>t.id===e);r&&(n.value=e,o(`tabChange`,r))},goToMainTab:()=>{n.value=void 0,o(`tabChange`,void 0)},registerTab:e=>{t.value.some(t=>t.id===e.id)||t.value.push(e)},updateTabConfig:(e,n)=>{let r=t.value.findIndex(t=>t.id===e);r!==-1&&(t.value[r]={...t.value[r],...n},n.title&&o(`updateTabTitle`,{tabId:e,title:n.title}))},on:i,off:a,emit:o};return f(ve,s),s}var be={class:`p-dialog-content non-draggable-region`},xe={key:0,class:`p-dialog-header-actions`},Se={class:`p-dialog-title truncate min-w-0 flex-1`},Ce={class:`p-dialog-header-actions ml-auto gap-2`},we={key:0,class:`text-wrap`},Te={key:0,class:`flex items-center justify-center shrink-0 w-full p-5 pb-safe-offset-5 mt-5 self-end`,style:{background:`var(--border-color)`}},Ee=j({__name:`CuiDialog`,setup(t){let i=_e(()=>re(()=>import(`./CuiMarkdownContent-CMPFzD-0.js`),__vite__mapDeps([0,1,2,3,4,5]))),s=le(),b=o(),{t:k}=e(),{mdBreakpoint:A}=fe(),{width:j,height:P}=de(),{isElectronApp:he}=c(),F=m(`dialogRef`),L=ie(`dialogHeader`),R=ae(F.value.data),{contentText:z,contentProps:ve,loading:Ee,disabled:B,cancelButtonProps:V,confirmButtonProps:H,hideCancelButton:U,hideConfirmButton:W,dialogContentClass:De,dialogContentStyle:Oe,cancelText:ke,confirmText:Ae,stayActive:je,src:Me,title:G,fullscreen:Ne,tabs:K,goTo:Pe,draggable:Fe,rootId:q,markdown:Ie,headerActions:Le}=R;f(`dialogRefProps`,R);let J=C({});f(`dialogHeaderToggles`,J);let Re=F.value.options.templates,ze=a(document.getElementById(`app`)),Y=T(!1),X=T(null),Be=T(!1),Z=T(G.value),Ve=T(!1),Q,{style:He,x:Ue,y:We}=r(L,{disabled:!Fe?.value,containerElement(){return document.getElementById(`app`)},onStart(){Ve.value=!0}}),Ge=O(()=>{let e=document.getElementById(q?.value||``);if(!e)return 1/0;let t=e.offsetWidth;return ze.width.value-t}),Ke=O(()=>{let e=document.getElementById(q?.value||``);if(!e)return 1/0;let t=e.offsetHeight;return ze.height.value-t}),qe=O(()=>!!(Y.value||Ee?.value||ce(X.value?.isLoading))),Je=O(()=>K.value!==void 0&&K.value.length>0),Ye=O(()=>ke?.value?ke.value:k(`components.form.button.close`)),Xe=O(()=>Ae?.value?Ae.value:k(`components.form.button.save`)),Ze=O(()=>({...V?.value,label:Ye.value,loading:void 0,size:`small`,severity:V?.value&&`severity`in V.value?V.value.severity:`secondary`,class:void 0})),Qe=O(()=>({...H?.value,label:Xe.value,loading:void 0,size:`small`,severity:H?.value&&`severity`in H.value?H.value.severity:`success`,class:`ml-auto`,disabled:B.value}));function $e(e){let t=X.value?.resolveGoTo?.();F.value.close(),s.push(t??e)}async function et(){try{Y.value=!0;let e=await X.value?.onCancel?.();F.value.close({status:`cancel`,data:e})}catch(e){b.add({severity:`error`,detail:e,life:3e3})}finally{Y.value=!1}}async function tt(){try{Y.value=!0;let e=await X.value?.onConfirm?.();if(e===null)return;je?.value?F.value.options.onConfirm?.(e):F.value.close({status:`confirm`,data:e})}catch(e){b.add({severity:`error`,detail:e,life:3e3})}finally{Y.value=!1}}function $(){let e=document.getElementById(q?.value||``)?.closest(`.p-dialog-mask`);if(!e)return;let t=Array.from(document.querySelectorAll(`.p-dialog-mask`)),n=0;for(let e of t){let t=parseInt(e.style.zIndex,10)||0;t>n&&(n=t)}(parseInt(e.style.zIndex,10)||0)<n&&(e.style.zIndex=String(n+1))}return Je.value&&(Q=ye(K.value??[]),l(Q.isMainTab,e=>{Be.value=!e},{immediate:!0}),Q.on(`updateTabTitle`,({tabId:e,title:t})=>{Q?.currentTab.value===e&&G?.value&&(Z.value=t)}),Q.on(`tabChange`,e=>{Z.value=e?.title??G.value})),l([He,j,P],()=>{if(!Ve.value)return;let e=document.getElementById(q?.value||``);if(e){let t=Math.max(0,Math.min(Ue.value,Ge.value)),n=Math.max(0,Math.min(We.value,Ke.value));e.style.left=`${t}px`,e.style.top=`${n}px`}}),v(()=>{let e=document.getElementById(q?.value||``)?.closest(`.p-dialog-mask`);e&&(e.addEventListener(`pointerdown`,$),$())}),ee(()=>{let e=document.getElementById(q?.value||``)?.closest(`.p-dialog-mask`);e&&e.removeEventListener(`pointerdown`,$)}),(e,t)=>{let r=ge,a=n,o=I,s=pe,c=me,l=ue;return N(),w(`div`,be,[x(`div`,{ref_key:`dialogHeader`,ref:L,class:p([`p-dialog-header justify-start gap-1`,{"cursor-move":y(Fe),"pt-6!":y(he)&&(y(Ne)||y(A))}])},[M(u,{name:`slide-left`},{default:E(()=>[y(Be)?(N(),w(`div`,xe,[M(a,{severity:`secondary`,text:``,rounded:``,class:`p-dialog-back-button`,onClick:y(Q)?.goToMainTab},{icon:E(()=>[M(r,{width:`100%`,height:`100%`})]),_:1},8,[`onClick`])])):D(``,!0)]),_:1}),x(`span`,Se,h(y(Z)),1),x(`div`,Ce,[(N(!0),w(oe,null,ne(y(Le)??[],(e,t)=>se((N(),S(a,{key:t,severity:`secondary`,text:``,rounded:``,loading:e.loading,class:p([`p-dialog-close-button`,{"!text-primary":e.toggle&&y(J)[t]}]),onClick:()=>{e.toggle&&(y(J)[t]=!y(J)[t]),e.onClick()}},{icon:E(()=>[(N(),S(g(e.icon),{width:`100%`,height:`100%`}))]),_:2},1032,[`loading`,`class`,`onClick`])),[[l,e.tooltip?{value:e.tooltip}:void 0,void 0,{bottom:!0}]])),128)),y(Pe)?se((N(),S(a,{key:0,severity:`secondary`,text:``,rounded:``,class:`p-dialog-close-button`,onClick:t[0]||=e=>$e(y(Pe))},{icon:E(()=>[M(o,{width:`100%`,height:`100%`})]),_:1})),[[l,{value:e.$t(`components.dialog.open`)},void 0,{bottom:!0}]]):D(``,!0),M(a,{severity:`secondary`,text:``,rounded:``,class:`p-dialog-close-button`,onClick:y(F).close},{icon:E(()=>[M(s,{width:`100%`,height:`100%`})]),_:1},8,[`onClick`])])],2),x(`div`,{class:p([`p-dialog-body flex justify-center w-full overflow-y-auto px-5 py-1 text-balance`,{"h-full":y(Ne)},y(De)]),style:te(y(Oe))},[y(z)&&!y(Ie)?(N(),w(`span`,we,h(y(z)),1)):y(z)&&y(Ie)?(N(),S(y(i),{key:1,content:y(z)},null,8,[`content`])):y(Me)?(N(),S(c,{key:2,src:y(Me),"image-container-class":`w-full h-full`},null,8,[`src`])):(N(),S(g(y(Re)?.content),d({key:3,ref_key:`componentRef`,ref:X,class:`w-full h-full relative`},y(ve),_(y(F).options.events||{})),null,16))],6),t[2]||=x(`div`,{class:`mt-auto`},null,-1),!y(U)||!y(W)?(N(),w(`div`,Te,[y(U)?D(``,!0):(N(),S(a,d({key:0},y(Ze),{class:`cui-button-medium`,onClick:et}),null,16)),t[1]||=x(`div`,{class:`ml-auto`},null,-1),y(W)?D(``,!0):(N(),S(a,d({key:1},y(Qe),{loading:y(qe),disabled:y(B),class:`cui-button-medium`,onClick:tt}),null,16,[`loading`,`disabled`]))])):D(``,!0)])}}}),B={modal:!0,closable:!0,blockScroll:!0,draggable:!1,dismissableMask:!0,baseZIndex:1100,showHeader:!1},V={pt:{root:{class:`p-dialog-maximized pt-safe border-none`}}},H={pt:{root:{class:`shadow-xl shadow-black/30 overflow-hidden`}}},U={mobile:{textDialog:{style:{maxWidth:`none`,maxHeight:`100vh`},...V},imageDialog:{style:{maxWidth:`none`,maxHeight:`100vh`},...V},componentDialog:{style:{maxWidth:`none`,maxHeight:`100vh`},...V},stepperDialog:{style:{maxWidth:`none`,maxHeight:`100vh`},...V}},desktop:{textDialog:{style:{maxWidth:`1000px`,maxHeight:`90vh`,width:`auto`},...H},imageDialog:{style:{maxWidth:`1000px`,maxHeight:`90vh`,width:`70vw`},...H},componentDialog:{style:{maxWidth:`1000px`,maxHeight:`90vh`,width:`70vw`},...H},stepperDialog:{style:{maxWidth:`1000px`,maxHeight:`90vh`,width:`70vw`},...H}}};function W(){return{open:(e,t)=>{let n={content:e&&k(e),options:t||{},data:t&&t.data,close:e=>{P.emit(`close`,{instance:n,params:e})}};return P.emit(`open`,{instance:n}),n}}}function De(){let e=W(),{mdBreakpoint:n}=fe(),r=(e,n,r)=>{let i=C({...e});r&&(n.pt.root.class=(n.pt.root.class?n.pt.root.class+` `:``)+`fixed mt-0`),t(i.options.props,n)},i=(e,t,i,a)=>{let o={mobile:a?.mobile?{style:{...a.mobile},...V}:void 0,desktop:a?.desktop?{style:{...a.desktop},...H}:void 0};return l(n,n=>{if(n)switch(t){case`text`:r(e,o.mobile??U.mobile.textDialog,i);break;case`image`:r(e,o.mobile??U.mobile.imageDialog,i);break;case`component`:r(e,o.mobile??U.mobile.componentDialog,i);break;case`stepper`:r(e,o.mobile??U.mobile.stepperDialog,i);break;default:break}else switch(t){case`text`:r(e,o.desktop??U.desktop.textDialog,i);break;case`image`:r(e,o.desktop??U.desktop.imageDialog,i);break;case`component`:r(e,o.desktop??U.desktop.componentDialog,i);break;case`stepper`:r(e,o.desktop??U.desktop.stepperDialog,i);break;default:break}},{immediate:!0}),e};function a(t,n,r){let{component:a,data:o,onConfirm:c,onCancel:l,onSettled:u,events:d,...f}=n,p={content:a?k(a):void 0};r?.pt||(r={...r,pt:{root:{}}});let m=y(o.draggable)??!1;m&&(r.draggable=!0);let h=y(o.dismissableMask);h!==void 0&&(r.dismissableMask=h);let g=y(o.modal);g!==void 0&&(r.modal=g);let _=o.rootId??s(10);r.pt.root.id=_;let v=e.open(Ee,{data:ae(C({confirmText:o.confirmText??void 0,cancelText:o.cancelText??void 0,hideConfirmButton:o.hideConfirmButton??!1,hideCancelButton:o.hideCancelButton??!1,loading:o.loading??!1,disabled:o.disabled??!1,confirmButtonProps:o.confirmButtonProps??void 0,cancelButtonProps:o.cancelButtonProps??void 0,dialogContentClass:o.dialogContentClass??void 0,dialogContentStyle:o.dialogContentStyle??void 0,stayActive:o.stayActive??!1,fullscreen:o.fullscreen??!1,contentText:o.contentText??void 0,src:o.src??void 0,markdown:o.markdown??!1,contentProps:o.contentProps??void 0,tabs:o.tabs??void 0,rootId:_,...o})),props:r,templates:p,events:d,onConfirm:c,onCancel:l,onClose:e=>{if(e?.data?.status===`confirm`){let{status:t,...n}=e.data;c?.(n?.data??n)}else l?.();u?.(e?.data?.data??e?.data)}});return o.fullscreen?v:i(v,t,m,f?.dialogSize)}function o(e){let{data:t,...n}=e,r=structuredClone(B);return r.style={...B.style,width:`auto`,minWidth:`400px`},t.fullscreen&&(r.style={...r.style,maxWidth:`none`,maxHeight:`100vh`},r.pt={root:{class:`p-dialog-maximized pt-safe border-none`}}),a(`text`,{data:t,...n},r)}function c(e){let{data:t,...n}=e,r=structuredClone(B);return t.fullscreen&&(r.style={...r.style,maxWidth:`none`,maxHeight:`100vh`},r.pt={root:{class:`p-dialog-maximized pt-safe border-none`}}),a(`image`,{data:t,...n},r)}function u(e,t){let{data:n,...r}=t,i=structuredClone(B);return n.fullscreen&&(i.style={...i.style,maxWidth:`none`,maxHeight:`100vh`},i.pt={root:{class:`p-dialog-maximized pt-safe border-none`}}),a(`component`,{component:e,data:n,...r},i)}function d(e,t){let{data:n,...r}=t,i=structuredClone(B);return n.fullscreen&&(i.style={...i.style,maxWidth:`none`,maxHeight:`100vh`},i.pt={root:{class:`p-dialog-maximized pt-safe border-none`}}),a(`stepper`,{component:e,data:n,...r},i)}return{openTextDialog:o,openImageDialog:c,openComponentDialog:u,openStepperDialog:d}}export{_e as n,I as r,De as t};
@@ -1 +0,0 @@
1
- [data-v-a2db7b94] .scrollbar{z-index:10!important}[data-v-a2db7b94] .terminal{will-change:transform;transform:translateZ(0);height:100%!important}div[data-v-a2db7b94] .xterm-scrollable-element,div[data-v-a2db7b94] .xterm-screen,div[data-v-a2db7b94] .xterm-screen canvas{width:100%!important;height:100%!important}div[data-v-a2db7b94] .xterm-scrollable-element .scrollbar{height:100%!important}div[data-v-a2db7b94] .xterm-scrollable-element .scrollbar .slider{margin-top:-.425rem!important}@media screen and (width>=640px){div[data-v-a2db7b94] .xterm-scrollable-element .scrollbar .slider{margin-top:0!important}}
@@ -1,5 +0,0 @@
1
- import{Ir as e,Ki as t,Si as n,Wi as r,hi as i,yi as a}from"./vendor-cameraui-DDdtrYBn.js";import{T as o,x as s}from"./api-DR6W2XWy.js";import{$n as c,Cr as l,Ln as u,Rn as d,Sr as f,Zn as p,_r as m,br as h,mn as g,mr as _,un as v,xn as y,zn as b}from"./vendor-ClrOISZp.js";import{t as x}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as ee}from"./useSharedComposables-ffwWlpSL.js";import{a as te,i as S,n as C,r as w,t as T}from"./vendor-xterm-IIYDrBG1.js";var E=x(y({__name:`CuiConsole`,props:{options:{default:()=>({fontSize:14})},ignoreBreakpoint:{type:Boolean}},emits:[`resize`],setup(s,{expose:y,emit:x}){let E=s,D=x,{smBreakpoint:ne}=ee(),{t:re}=e(),ie=o(),{copy:ae}=i({legacy:!0}),{options:O,ignoreBreakpoint:k}=h(E),A={fontSize:14,scrollback:5e3,allowTransparency:!1,smoothScrollDuration:0,disableStdin:!0,allowProposedApi:!0},j=p(`terminalContainerRef`),M=_(0),N=m(null),P=_(!1),F=null,I=null,L=null,R=null,z,B=``,V=!1,H=!0,U=a(j),W=v(()=>{if(!N.value)return!0;let e=N.value.buffer.active.length-N.value.rows;return M.value>=e});function G(){N.value&&(M.value=N.value.buffer.active.viewportY)}function K(){!N.value||!F||(F.fit(),G(),N.value.cols&&D(`resize`,N.value.cols))}function q(){K(),N.value?.scrollToBottom(),G()}let J=r(G,16),Y=r(q,100),{start:oe,stop:se,isPending:ce}=t(()=>{N.value&&B&&(N.value.write(B),B=``,J())},16,{immediate:!1});function le(e){if(H){if(e=e.replace(/^[\r\n]+/,``),!e)return;H=!1}V&&=(B+=`
2
- `,!1),e.endsWith(`
3
- `)?(B+=e.slice(0,-1),V=!0):e.endsWith(`\r
4
- `)?(B+=e.slice(0,-2),V=!0):B+=e,ce.value||oe()}function X(){requestAnimationFrame(()=>{N.value?.scrollToBottom(),J()})}function ue(){se(),B=``,V=!1,H=!0,N.value?.reset(),J()}function de(){if(!N.value)return``;let e=N.value.buffer.active,t=[];for(let n=0;n<e.length;n++)t.push(e.getLine(n)?.translateToString(!0)??``);return t.join(`
5
- `).replace(/\s+$/,``)}async function Z(e){return e?(await ae(e),ie.add({severity:`success`,detail:re(`components.toast.copied`),life:1500}),!0):!1}function Q(){let e=N.value?.getSelection()??``;return e?(Z(e),!0):!1}function fe(){Z(de())}function pe(e){!(e.metaKey||e.ctrlKey)||e.key.toLowerCase()!==`c`||!P.value||!N.value?.hasSelection()||(e.preventDefault(),Q())}function me(e){N.value?.hasSelection()&&(e.preventDefault(),Q())}function he(){let e=N.value?.element;if(!e)return;let t=0,n=0,r=0,i=0,a=!1;function o(){z&&clearInterval(z)}function s(e){o(),t=e.touches[0].clientY,n=t,r=0,i=Date.now(),a=!1}function c(e){e.preventDefault();let t=e.touches[0].clientY,o=Date.now(),s=t-n,c=Math.max(o-i,1);if(i=o,n=t,r=Math.max(-1.2,Math.min(s/c,1.2)),N.value&&c>0){let e=-Math.round(s/20);N.value.scrollLines(e),a=!0,J()}}function l(){if(a&&Math.abs(r)>.2){let e=r;z=setInterval(()=>{if(!N.value||Math.abs(e)<.05){o();return}let t=-Math.round(e*12);N.value.scrollLines(t),e*=.92,J()},16)}}e.addEventListener(`touchstart`,s,{passive:!0}),e.addEventListener(`touchmove`,c,{passive:!1}),e.addEventListener(`touchend`,l,{passive:!0}),d(()=>{e.removeEventListener(`touchstart`,s),e.removeEventListener(`touchmove`,c),e.removeEventListener(`touchend`,l),o()})}function $(e){if(e)try{e.dispose()}catch{}}return c(O,()=>{N.value&&(N.value.options=O.value,Y())},{deep:!0}),c([U.height,U.width],()=>{Y()}),n(j,`pointerenter`,()=>P.value=!0),n(j,`pointerleave`,()=>P.value=!1),n(j,`contextmenu`,me),n(document,`keydown`,pe),u(()=>{N.value=new T({...A,...O.value}),F=new te,R=new C,I=new S,L=new w,N.value.loadAddon(I),N.value.loadAddon(L),N.value.loadAddon(R),N.value.loadAddon(F),N.value.open(j.value);let e=j.value.querySelector(`textarea`);e&&(e.disabled=!0,e.tabIndex=-1),N.value.onScroll(()=>{G()}),q(),he(),R.onContextLoss(()=>{$(R)})}),d(()=>{$(F),$(R),$(I),$(L),$(N.value)}),y({clearTerminal:ue,writeTerminal:le,resizeHandler:q,scrollToBottom:X,copySelection:Q,copyAll:fe,atBottom:W}),(e,t)=>(b(),g(`div`,{ref_key:`terminalContainerRef`,ref:j,class:l([`w-full h-full bg-none z-1 overflow-hidden p-2 min-w-0`,{"pb-0":!f(ne)&&!f(k)}])},null,2))}}),[[`__scopeId`,`data-v-a2db7b94`]]);function D(e={}){let{target:t,onStdout:n,onDisconnect:r,onClearLog:i,onReconnected:a}=e,o=s(`/logs`),l=null,u=null,d=t,f=!1;t&&o.on(`stdout/${t}`,e=>n?.(e)),o.on(`clear-log`,e=>i?.(e??`all`)),o.onReady(()=>{f&&a?.(),f=!0,l?.()}),c(o.connected,(e,t)=>{!e&&t&&r?.()});function p(){}function m(){}function h(e){d&&e>0&&o.emit(`term-size`,{target:d,cols:e})}function g(e){return e.kind===`all`?`stdout`:e.kind===`system`?`stdout/system/${e.id}`:`stdout/${e.id}`}function _(e,t){u?.(),u=o.on(g(e),e=>n?.(e)),d=e.kind===`all`?void 0:e.id,l=()=>{switch(e.kind){case`all`:o.emit(`get-all-logs`);break;case`system`:o.emit(`get-system-log`,e.id,t);break;case`camera`:o.emit(`get-camera-log`,e.id,t);break;case`plugin`:o.emit(`get-plugin-log`,e.id,t);break}},l()}function v(){l=()=>o.emit(`get-all-logs`),l()}function y(e,t){l=()=>o.emit(`get-camera-log`,e,t),l()}function b(e,t){l=()=>o.emit(`get-plugin-log`,e,t),l()}return{isConnected:o.connected,connect:p,disconnect:m,reportSize:h,switchSource:_,requestAllLogs:v,requestCameraLog:y,requestPluginLog:b}}export{E as n,D as t};