@camera.ui/server 0.0.103 → 0.0.105

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 (284) hide show
  1. package/dist/interface/assets/{404-C4HBXE9H.js → 404-dD7prz4d.js} +1 -1
  2. package/dist/interface/assets/{About-BB65Lzts.js → About-4w_Ij32a.js} +1 -1
  3. package/dist/interface/assets/{Adminpanel-DksrdOX6.js → Adminpanel-BgxU0Yh6.js} +1 -1
  4. package/dist/interface/assets/{Automation-DSyCezSx.js → Automation-CYsN1p2P.js} +2 -2
  5. package/dist/interface/assets/{Automations-BqHoiN9D.js → Automations-CRd6MuM2.js} +1 -1
  6. package/dist/interface/assets/{Camera-BUkNxSX8.js → Camera-DCqFhkAt.js} +2 -2
  7. package/dist/interface/assets/{CameraConsole-B5tlzPMf.js → CameraConsole-DfIBG8ZV.js} +1 -1
  8. package/dist/interface/assets/{Cameras-DnMkOoQ-.js → Cameras-BK67w1OJ.js} +1 -1
  9. package/dist/interface/assets/{Camview-pqMzyAGd.js → Camview-B0go1EMt.js} +1 -1
  10. package/dist/interface/assets/{Config-BXraGGzy.js → Config-CeEi3tKd.js} +1 -1
  11. package/dist/interface/assets/{ConfigActionCameraControl-BW8EcAmD.js → ConfigActionCameraControl-rP-oa_3f.js} +1 -1
  12. package/dist/interface/assets/{ConfigActionDelay-Cv1Jc4Af.js → ConfigActionDelay-BJeC4VAJ.js} +1 -1
  13. package/dist/interface/assets/{ConfigActionHttp-Exr4qXgr.js → ConfigActionHttp-F8Mpo56C.js} +1 -1
  14. package/dist/interface/assets/{ConfigActionImageInput-C_blNA7l.js → ConfigActionImageInput-Drtv5ElC.js} +1 -1
  15. package/dist/interface/assets/{ConfigActionNotification-c82sNKGj.js → ConfigActionNotification-DR8c22Y1.js} +1 -1
  16. package/dist/interface/assets/{ConfigActionOutput-BWWI1I05.js → ConfigActionOutput-CbT2-VnU.js} +1 -1
  17. package/dist/interface/assets/{ConfigActionPlugin-C-ssa_L8.js → ConfigActionPlugin-DE-S6S0y.js} +1 -1
  18. package/dist/interface/assets/{ConfigActionSensor-D84c6MGM.js → ConfigActionSensor-Dw_V9cYY.js} +1 -1
  19. package/dist/interface/assets/{ConfigActionSnapshot-gVinlxno.js → ConfigActionSnapshot-5xUvGsae.js} +1 -1
  20. package/dist/interface/assets/{ConfigActionVariable-BSQEmP0j.js → ConfigActionVariable-Bub1V_a3.js} +1 -1
  21. package/dist/interface/assets/{ConfigConditionIfElse-C9741PPm.js → ConfigConditionIfElse-CAt9ubD2.js} +1 -1
  22. package/dist/interface/assets/{ConfigConditionSensorState-BaTq_Nw9.js → ConfigConditionSensorState-DhP32uo8.js} +1 -1
  23. package/dist/interface/assets/{ConfigConditionSwitch-BlGjAB9K.js → ConfigConditionSwitch-DB2r6i-I.js} +1 -1
  24. package/dist/interface/assets/{ConfigConditionTime-Drt82ljn.js → ConfigConditionTime-zqIQQ-tD.js} +1 -1
  25. package/dist/interface/assets/{ConfigTriggerDetection-CsMfvz0e.js → ConfigTriggerDetection-CVW5HXeG.js} +1 -1
  26. package/dist/interface/assets/ConfigTriggerGeofence-BsPsPO4j.js +1 -0
  27. package/dist/interface/assets/{ConfigTriggerManual-Bq8BSgf-.js → ConfigTriggerManual-DhafkyQd.js} +1 -1
  28. package/dist/interface/assets/{ConfigTriggerSchedule-BBH8-VaZ.js → ConfigTriggerSchedule-Bx3qlITv.js} +1 -1
  29. package/dist/interface/assets/{ConfigTriggerSensor-DqT2GK2o.js → ConfigTriggerSensor-FVgMXGty.js} +1 -1
  30. package/dist/interface/assets/{ConfigTriggerSystem-wbIuPI0Y.js → ConfigTriggerSystem-BJo-wIMS.js} +1 -1
  31. package/dist/interface/assets/{ConfigTriggerWebhook-B-8yle9W.js → ConfigTriggerWebhook-BaUrOAZB.js} +1 -1
  32. package/dist/interface/assets/{Console-CI1H4Qzv.js → Console-B23nM1WG.js} +1 -1
  33. package/dist/interface/assets/{CuiActionButton-DGHrQXSc.js → CuiActionButton-Dywht3_D.js} +1 -1
  34. package/dist/interface/assets/{CuiAvatar-BNZbtuaI.js → CuiAvatar-CdoyvPP1.js} +1 -1
  35. package/dist/interface/assets/{CuiBBoxPlayground-_SGm4cz1.js → CuiBBoxPlayground-DcAhwW8k.js} +1 -1
  36. package/dist/interface/assets/CuiBottomSheet-CU8irFoy.js +1 -0
  37. package/dist/interface/assets/{CuiBottomSheet-VX6AuCso.js → CuiBottomSheet-CvkbklC_.js} +1 -1
  38. package/dist/interface/assets/CuiCameraCard-BxWf13Ct.js +1 -0
  39. package/dist/interface/assets/{CuiCameraPipCard-DpAujrhA.js → CuiCameraPipCard-CR5a-MkM.js} +1 -1
  40. package/dist/interface/assets/CuiCameraRecordings-BXfAlbHm.js +1 -0
  41. package/dist/interface/assets/{CuiCameraShares-dY9bxWdp.js → CuiCameraShares-CJpSVfdl.js} +1 -1
  42. package/dist/interface/assets/{CuiCameraSnapshot-DvIhxEdj.js → CuiCameraSnapshot-Cg8Vjve3.js} +1 -1
  43. package/dist/interface/assets/{CuiCameraTable-Ykb8p1Tt.js → CuiCameraTable-CfJNlsEQ.js} +1 -1
  44. package/dist/interface/assets/{CuiDataTable-DyzBmfqA.js → CuiDataTable-C9mtC73b.js} +1 -1
  45. package/dist/interface/assets/{CuiFloatingButton-B4byvsOs.js → CuiFloatingButton-Bi1jS25U.js} +1 -1
  46. package/dist/interface/assets/{CuiImage-C0GGnNA9.js → CuiImage-DJcQfDpa.js} +1 -1
  47. package/dist/interface/assets/{CuiMarkdownContent-C6-rAxQO.js → CuiMarkdownContent-DL3Xnrg7.js} +1 -1
  48. package/dist/interface/assets/CuiMenu-150v0xB6.js +1 -0
  49. package/dist/interface/assets/{CuiPluginCard-DpllCJXe.js → CuiPluginCard-CHLd5hzA.js} +2 -2
  50. package/dist/interface/assets/{CuiPluginOAuthButton--Jp3Q0A3.js → CuiPluginOAuthButton-B7JHhElr.js} +2 -2
  51. package/dist/interface/assets/{CuiQRCode-D2hEZT9L.js → CuiQRCode-ZbDxg42W.js} +1 -1
  52. package/dist/interface/assets/{CuiRecordingsGrid-BdcRMu0G.js → CuiRecordingsGrid-Bl0vRmPG.js} +1 -1
  53. package/dist/interface/assets/{CuiSchema-CkgT_tmr.js → CuiSchema-DvWek91_.js} +1 -1
  54. package/dist/interface/assets/{CuiTopNavbarItem-DdZ2xZLa.js → CuiTopNavbarItem-Dwm5c6so.js} +1 -1
  55. package/dist/interface/assets/{CuiTopbarSlot-BlbZqDDn.js → CuiTopbarSlot-DE7fTsSm.js} +1 -1
  56. package/dist/interface/assets/{Faces-BkETqRJ6.js → Faces-6nDCr24_.js} +1 -1
  57. package/dist/interface/assets/{FirstSteps-BilLeQ5G.js → FirstSteps-DB7hnFYh.js} +1 -1
  58. package/dist/interface/assets/{Instances-BdSaPTUA.js → Instances-KpdnZAmV.js} +1 -1
  59. package/dist/interface/assets/Logs-Cq2AF2x-.js +6 -0
  60. package/dist/interface/assets/Menu-CeDR7bvT.js +1 -0
  61. package/dist/interface/assets/{OAuthDeviceFlow-CX8VE9Op.js → OAuthDeviceFlow-BVOHNDTs.js} +1 -1
  62. package/dist/interface/assets/{Plugin-DiJY8ovk.js → Plugin-BB6k9AtE.js} +1 -1
  63. package/dist/interface/assets/{PluginConsole-B6YqeO05.js → PluginConsole-Cbo8LA6t.js} +1 -1
  64. package/dist/interface/assets/{PluginSchema-g4Srx0FS.js → PluginSchema-CCfTSjTD.js} +1 -1
  65. package/dist/interface/assets/{Plugins-CMvoQGbI.js → Plugins-DpTVWC5S.js} +2 -2
  66. package/dist/interface/assets/Recordings-B0_4e1tu.js +1 -0
  67. package/dist/interface/assets/{Settings-B5CPx04W.js → Settings-Wz10iv8b.js} +1 -1
  68. package/dist/interface/assets/{SettingsAccount-BfZ8sdKS.js → SettingsAccount-BNSg5Wx5.js} +1 -1
  69. package/dist/interface/assets/SettingsAccount-DlGKfeGf.js +1 -0
  70. package/dist/interface/assets/SettingsAppearance-N4r7TCgr.js +1 -0
  71. package/dist/interface/assets/{SettingsAppearance-CI7FpIXv.js → SettingsAppearance-VHR3IVCx.js} +1 -1
  72. package/dist/interface/assets/{SettingsBackup-BybcQ1Qu.js → SettingsBackup-DGhqvHHm.js} +1 -1
  73. package/dist/interface/assets/{SettingsNotifications-wtu6QB4B.js → SettingsNotifications-BHcRDJAp.js} +2 -2
  74. package/dist/interface/assets/{SettingsRecordings-CUAdt-gW.js → SettingsRecordings-CrMGLPfU.js} +1 -1
  75. package/dist/interface/assets/SettingsRemote-B1m3_4lr.js +1 -0
  76. package/dist/interface/assets/SettingsRemote-D9COJF4m.css +1 -0
  77. package/dist/interface/assets/{SettingsSystem-uDcUCmqx.js → SettingsSystem-z5r89MJJ.js} +2 -2
  78. package/dist/interface/assets/{SettingsUsers-DQD7uvLD.js → SettingsUsers-yReLqEQ1.js} +1 -1
  79. package/dist/interface/assets/{Terminal-BCqT206D.js → Terminal-BAiV8ZVj.js} +1 -1
  80. package/dist/interface/assets/{VariableInput-B6XB9GPi.js → VariableInput-Dw0KbkD9.js} +1 -1
  81. package/dist/interface/assets/{VariableSuggestions-Bz3FsUVi.js → VariableSuggestions-D5_Zu_un.js} +1 -1
  82. package/dist/interface/assets/{VersionsHandler-XIP-8qdF.js → VersionsHandler-BDWjtbp0.js} +1 -1
  83. package/dist/interface/assets/{Workers-n0R8LJrp.js → Workers-DbnD_Bpy.js} +1 -1
  84. package/dist/interface/assets/{alert-outline-C1wLiv_z.js → alert-outline-CQlVMOxC.js} +1 -1
  85. package/dist/interface/assets/api-BB9AG_h5.css +2 -0
  86. package/dist/interface/assets/api-C-NlYhuP.js +2 -0
  87. package/dist/interface/assets/{api-CPYyBUl4.js → api-D6SjwBWd.js} +1 -1
  88. package/dist/interface/assets/{arrow-left-CGyu-P3h.js → arrow-left-YsUvJVC6.js} +1 -1
  89. package/dist/interface/assets/{arrow-right-outline-DQ_SaRc3.js → arrow-right-outline-DKHopCcO.js} +1 -1
  90. package/dist/interface/assets/{auth-BQz6cI2B.js → auth-dyUBxkxf.js} +1 -1
  91. package/dist/interface/assets/{automation-B4F575nU.js → automation-JqGk69ZM.js} +1 -1
  92. package/dist/interface/assets/{automations-Cz8XYNjF.js → automations-BH3C3DOU.js} +1 -1
  93. package/dist/interface/assets/{automations-DuP9VcsG.js → automations-CrRSdJyJ.js} +1 -1
  94. package/dist/interface/assets/{back-filled-DVeRsKmt.js → back-filled-2dVfzfd3.js} +1 -1
  95. package/dist/interface/assets/{backup-CHJcbko5.js → backup-C2-2-LD2.js} +1 -1
  96. package/dist/interface/assets/{bell-D6XTudrP.js → bell-DAJo7K-Y.js} +1 -1
  97. package/dist/interface/assets/{bell-outline-k9_tJysZ.js → bell-outline-6UpM5pQx.js} +1 -1
  98. package/dist/interface/assets/{cameras-BOHWrQm2.js → cameras-Co3xGKAG.js} +1 -1
  99. package/dist/interface/assets/{cameras.schema-DGaqX6vz.js → cameras.schema-y2YP50-k.js} +1 -1
  100. package/dist/interface/assets/{cctv-C9H_8mDb.js → cctv-BLn_0bJ6.js} +1 -1
  101. package/dist/interface/assets/{check-HQ9W_dro.js → check-DoWZir_S.js} +1 -1
  102. package/dist/interface/assets/{chevron-down-BFDmLtMX.js → chevron-down-Bzr6VWQF.js} +1 -1
  103. package/dist/interface/assets/{chevron-right-C1Rdu1sM.js → chevron-right-HArXFSSz.js} +1 -1
  104. package/dist/interface/assets/{circular-connection-CaaBP9U6.js → circular-connection-DLItZj68.js} +1 -1
  105. package/dist/interface/assets/{close-CEZvWyN1.js → close-BlkMdXhr.js} +1 -1
  106. package/dist/interface/assets/{close-circle-BtZFk77i.js → close-circle-J1rQOUEG.js} +1 -1
  107. package/dist/interface/assets/{cloud-check-C0emdjhh.js → cloud-check-DqBwzaPC.js} +1 -1
  108. package/dist/interface/assets/{cloud-outline-U1SKfuPN.js → cloud-outline-9JADkpxw.js} +1 -1
  109. package/dist/interface/assets/{cloud-outline-a06O-YjU.js → cloud-outline-BEXrgKM1.js} +1 -1
  110. package/dist/interface/assets/cloudHandoff-C9HXr7Oq.js +1 -0
  111. package/dist/interface/assets/{cog-OzsdLKVr.js → cog-CWyAfGhY.js} +1 -1
  112. package/dist/interface/assets/{copy-16-filled-BcFxEpOL.js → copy-16-filled-BvGFaW1f.js} +1 -1
  113. package/dist/interface/assets/{copy-BYDiYBqr.js → copy-CEGSZQjo.js} +1 -1
  114. package/dist/interface/assets/{delete-C4Qcsafo.js → delete-CVqAtfTw.js} +1 -1
  115. package/dist/interface/assets/{deviceId-B9H0nPQf.js → deviceId-CiXrj9Di.js} +1 -1
  116. package/dist/interface/assets/{dist-ew0paqIa.js → dist-DDpgYwYa.js} +1 -1
  117. package/dist/interface/assets/{download-CkCfeLe7.js → download-7RwLjvMX.js} +1 -1
  118. package/dist/interface/assets/esm-BA2sVcC5.js +1 -0
  119. package/dist/interface/assets/esm-BABYdz4G.js +1 -0
  120. package/dist/interface/assets/esm-BChmgDDk.js +1 -0
  121. package/dist/interface/assets/esm-BgpyzSA5.js +1 -0
  122. package/dist/interface/assets/esm-BhMVOOUn2.js +1 -0
  123. package/dist/interface/assets/esm-BwSW-2xH.js +1 -0
  124. package/dist/interface/assets/esm-C4QiEuND.js +1 -0
  125. package/dist/interface/assets/esm-CydVduuF.js +1 -0
  126. package/dist/interface/assets/esm-DCbdltvd.js +1 -0
  127. package/dist/interface/assets/esm-DYq0vy7A.js +1 -0
  128. package/dist/interface/assets/esm-DfZgCbxC.js +1 -0
  129. package/dist/interface/assets/esm-SjVG7wXH.js +1 -0
  130. package/dist/interface/assets/esm-ir2psFWa.js +1 -0
  131. package/dist/interface/assets/{eventIcons-3Ey2FdFX.js → eventIcons-BMaAnQWe.js} +1 -1
  132. package/dist/interface/assets/{face-recognition-K0AJVYWA.js → face-recognition-Bx4cPKgu.js} +1 -1
  133. package/dist/interface/assets/{github-xiZ7fokg.js → github--PDCVHbp.js} +1 -1
  134. package/dist/interface/assets/{grid-fill-D0IgCOgV.js → grid-fill-8exr_unf.js} +1 -1
  135. package/dist/interface/assets/{hasPermission-BHM3xbrG.js → hasPermission-DKTmzAJw.js} +1 -1
  136. package/dist/interface/assets/{home-DNvuy9WS.js → home-y0BuJeID.js} +1 -1
  137. package/dist/interface/assets/{information-outline-C4BW3Gje.js → information-outline-CGFN6gSy.js} +1 -1
  138. package/dist/interface/assets/{instances-8zX84KmH.js → instances-BgFvZ06K.js} +1 -1
  139. package/dist/interface/assets/{lightbulb-outline-B7AbCNpH.js → lightbulb-outline-BKhaucU3.js} +1 -1
  140. package/dist/interface/assets/locale-CH0o3x5d.js +1 -0
  141. package/dist/interface/assets/main-DZb_R3L7.js +3 -0
  142. package/dist/interface/assets/{microphone-lTCBD-us.js → microphone-DZUScXOm.js} +1 -1
  143. package/dist/interface/assets/native-B5ps1ru1.js +1 -0
  144. package/dist/interface/assets/native-CBhIZ6td.js +1 -0
  145. package/dist/interface/assets/{nodeDefinitions-Cs4Hqoah.js → nodeDefinitions-nL8hz16a.js} +1 -1
  146. package/dist/interface/assets/{notifications-DpmIWiCl.js → notifications-DEU1TXne.js} +1 -1
  147. package/dist/interface/assets/{play-solid-DhbA9x56.js → play-solid-D7ZnjJiZ.js} +1 -1
  148. package/dist/interface/assets/plugin-Z96u0Zx7.js +1 -0
  149. package/dist/interface/assets/{plugins-BWlFg8TN.js → plugins-Bj4_KCp7.js} +1 -1
  150. package/dist/interface/assets/{plus-iXo1T1is.js → plus-Dxy9-axc.js} +1 -1
  151. package/dist/interface/assets/{plus-CuWXW2I0.js → plus-mhsNCxIy.js} +1 -1
  152. package/dist/interface/assets/{power-DvDhRSv2.js → power-CQJ3md0z.js} +1 -1
  153. package/dist/interface/assets/{ring-resize-5EO1Mgq-.js → ring-resize-BseE4cGi.js} +1 -1
  154. package/dist/interface/assets/{round-alt-arrow-left-bold-B9Q0L9Pk.js → round-alt-arrow-left-bold-pJUhUxdP.js} +1 -1
  155. package/dist/interface/assets/{round-restart-alt-CRc-4ova.js → round-restart-alt-BMdTt76H.js} +1 -1
  156. package/dist/interface/assets/router-CIvI3oge.js +2 -0
  157. package/dist/interface/assets/{routerState-BIdUnXLb.js → routerState-cQknQxNw.js} +1 -1
  158. package/dist/interface/assets/{search-Bl5hzTQq.js → search-BN5ng-N8.js} +1 -1
  159. package/dist/interface/assets/server-DeMUCrCz.js +1 -0
  160. package/dist/interface/assets/{settings-CJt70Wkh.js → settings-Bme_5kdU.js} +1 -1
  161. package/dist/interface/assets/{shares-DgzHTM68.js → shares-B5r7Nr5g.js} +1 -1
  162. package/dist/interface/assets/{shield-check-BziCMoN8.js → shield-check-COlnpzrA.js} +1 -1
  163. package/dist/interface/assets/{terminal-BjLzhOKN.js → terminal-wNcO8uZM.js} +1 -1
  164. package/dist/interface/assets/{theme-BDv_45d8.js → theme-kssRfqyJ.js} +1 -1
  165. package/dist/interface/assets/{trash-2-BAlrGkbt.js → trash-2-C8brLIvo.js} +1 -1
  166. package/dist/interface/assets/{trash-fill-PLsykzhy.js → trash-fill-DRtvsGbK.js} +1 -1
  167. package/dist/interface/assets/{trash2-Cme16a25.js → trash2-D3jwZOwR.js} +1 -1
  168. package/dist/interface/assets/{types-DZNoDDGr.js → types-BK05hngw.js} +1 -1
  169. package/dist/interface/assets/{types-CRVH38bx.js → types-DenR6qD2.js} +1 -1
  170. package/dist/interface/assets/{ui-DSOnsqS6.js → ui-B2i8B4yr.js} +1 -1
  171. package/dist/interface/assets/{upload-BqDLVQPw.js → upload-Cdmv3bqg.js} +1 -1
  172. package/dist/interface/assets/{useBiometricCredentials-CIfX40Td.js → useBiometricCredentials-I52MbNzM.js} +1 -1
  173. package/dist/interface/assets/{useCameraOptions-C_h2n9yn.js → useCameraOptions-uXN6hbSO.js} +1 -1
  174. package/dist/interface/assets/{useCuiCameraDrawer-Ca6U-GzM.js → useCuiCameraDrawer-BuIrXxOt.js} +1 -1
  175. package/dist/interface/assets/{useCuiDialog-C-2PMjxH.js → useCuiDialog-C4xS4vrs.js} +2 -2
  176. package/dist/interface/assets/{useFileDownload-DntU1WW7.js → useFileDownload-C_Am2BRz.js} +1 -1
  177. package/dist/interface/assets/useLogsSocket-4F2-d9fa.css +1 -0
  178. package/dist/interface/assets/useLogsSocket-PUFDb8MH.js +5 -0
  179. package/dist/interface/assets/{useSharedComposables-CzkF-tst.js → useSharedComposables-Ca_A3w0h.js} +1 -1
  180. package/dist/interface/assets/{useStreamStatus-DFQPLtc1.js → useStreamStatus-CIPBILoa.js} +1 -1
  181. package/dist/interface/assets/{users.schema-Oy4QkALa.js → users.schema-DGYmUjqk.js} +1 -1
  182. package/dist/interface/assets/vendor-cameraui-BABuGvhg.js +1978 -0
  183. package/dist/interface/assets/{vendor-capacitor-Dj-v5ogO.js → vendor-capacitor-BtNHOGrF.js} +2 -2
  184. package/dist/interface/assets/{vendor-chart-DmAusBrV.js → vendor-chart-BKRjkkso.js} +1 -1
  185. package/dist/interface/assets/{vendor-core-CWeZebhd.js → vendor-core-C6lCucBy.js} +1 -1
  186. package/dist/interface/assets/{vendor-dnd-UYEE071j.js → vendor-dnd-CQ6Y84Ed.js} +1 -1
  187. package/dist/interface/assets/{vendor-draggabilly-CH8RjBxh.js → vendor-draggabilly-H80KiwVT.js} +1 -1
  188. package/dist/interface/assets/{vendor-markdown-e7bfD1d7.js → vendor-markdown-BrmS8cUD.js} +2 -2
  189. package/dist/interface/assets/{vendor-primevue-01WhBsPb.js → vendor-primevue-CsC6U_Xu.js} +1 -1
  190. package/dist/interface/assets/{vendor-vueflow-DiKHypYV.js → vendor-vueflow-CqLtXe5N.js} +1 -1
  191. package/dist/interface/assets/{vendor-CUsAwmr-.js → vendor-zxCOTbSj.js} +1 -1
  192. package/dist/interface/assets/{view-grid-RH-li4l6.js → view-grid-DM5fFhOq.js} +1 -1
  193. package/dist/interface/assets/web-7w3f7aLi.js +1 -0
  194. package/dist/interface/assets/web-BT5MaR7n.js +1 -0
  195. package/dist/interface/assets/web-BjKL51lK-BwIR9ZcW.js +1 -0
  196. package/dist/interface/assets/web-BlYmxOdT.js +1 -0
  197. package/dist/interface/assets/web-BwTMYkra.js +1 -0
  198. package/dist/interface/assets/web-C5ViZ_bO.js +1 -0
  199. package/dist/interface/assets/web-CLRw5PqE.js +1 -0
  200. package/dist/interface/assets/web-CXQ5ccCW.js +1 -0
  201. package/dist/interface/assets/web-CiGVMr2P.js +1 -0
  202. package/dist/interface/assets/web-D3RZyuLX.js +1 -0
  203. package/dist/interface/assets/web-RrW-c6nL.js +1 -0
  204. package/dist/interface/assets/web-mXYIlRZX.js +1 -0
  205. package/dist/interface/assets/workbox-window.prod.es5-b0JqyqHz.js +1 -0
  206. package/dist/interface/assets/{zoom-in-fuKu2une.js → zoom-in-BxhkL8eQ.js} +1 -1
  207. package/dist/interface/index.html +74 -74
  208. package/dist/interface/sw.js +1 -1
  209. package/dist/server/package.json +5 -5
  210. package/dist/server/requirements.txt +1 -1
  211. package/dist/server/src/api/controllers/server.controller.d.ts +3 -2
  212. package/dist/server/src/api/controllers/server.controller.js +19 -6
  213. package/dist/server/src/api/controllers/server.controller.js.map +1 -1
  214. package/dist/server/src/api/plugins/natsSubFirewall.d.ts +1 -0
  215. package/dist/server/src/api/plugins/natsSubFirewall.js +15 -1
  216. package/dist/server/src/api/plugins/natsSubFirewall.js.map +1 -1
  217. package/dist/server/src/api/websocket/nsp/logs.d.ts +4 -0
  218. package/dist/server/src/api/websocket/nsp/logs.js +12 -0
  219. package/dist/server/src/api/websocket/nsp/logs.js.map +1 -1
  220. package/dist/server/src/go2rtc/index.js +1 -2
  221. package/dist/server/src/go2rtc/index.js.map +1 -1
  222. package/dist/server/src/remote/tunnel/client.js +1 -1
  223. package/dist/server/src/remote/tunnel/client.js.map +1 -1
  224. package/dist/server/src/rpc/server.js +1 -1
  225. package/dist/server/src/rpc/server.js.map +1 -1
  226. package/dist/server/src/services/logger/index.d.ts +2 -1
  227. package/dist/server/src/services/logger/index.js +7 -4
  228. package/dist/server/src/services/logger/index.js.map +1 -1
  229. package/dist/server/src/services/logger/logManager.d.ts +3 -1
  230. package/dist/server/src/services/logger/logManager.js +24 -2
  231. package/dist/server/src/services/logger/logManager.js.map +1 -1
  232. package/package.json +5 -5
  233. package/dist/interface/assets/ConfigTriggerGeofence-BDw4zW_P.js +0 -1
  234. package/dist/interface/assets/CuiBottomSheet-BcfVSQXw.js +0 -1
  235. package/dist/interface/assets/CuiCameraCard-BEGdNbhj.js +0 -1
  236. package/dist/interface/assets/CuiCameraRecordings-BRVbZCzz.js +0 -1
  237. package/dist/interface/assets/CuiMenu-KizSc3du.js +0 -1
  238. package/dist/interface/assets/Logs-Dgi4WIz_.js +0 -6
  239. package/dist/interface/assets/Menu-CaUSuqY2.js +0 -1
  240. package/dist/interface/assets/Recordings-CRZXMXeZ.js +0 -1
  241. package/dist/interface/assets/SettingsAccount-6i4VetmY.js +0 -1
  242. package/dist/interface/assets/SettingsAppearance-wh2bqft_.js +0 -1
  243. package/dist/interface/assets/SettingsRemote-CfMbi4U2.js +0 -1
  244. package/dist/interface/assets/SettingsRemote-PB1t8pgR.css +0 -1
  245. package/dist/interface/assets/api-CLcqLYO9.js +0 -2
  246. package/dist/interface/assets/api-Dbhyyb4d.css +0 -2
  247. package/dist/interface/assets/cloudHandoff-9LBU5i-Q.js +0 -1
  248. package/dist/interface/assets/esm-2lnAOjHs.js +0 -1
  249. package/dist/interface/assets/esm-BBV5a7C0.js +0 -1
  250. package/dist/interface/assets/esm-CZOTQSZO.js +0 -1
  251. package/dist/interface/assets/esm-CbRXoZZM.js +0 -1
  252. package/dist/interface/assets/esm-CeRrRtlf.js +0 -1
  253. package/dist/interface/assets/esm-Cj8JODrf.js +0 -1
  254. package/dist/interface/assets/esm-CqGR4fjd.js +0 -1
  255. package/dist/interface/assets/esm-CvywvXhO.js +0 -1
  256. package/dist/interface/assets/esm-DTSMvfe9.js +0 -1
  257. package/dist/interface/assets/esm-DiLxU9l9.js +0 -1
  258. package/dist/interface/assets/esm-DiyVK5c52.js +0 -1
  259. package/dist/interface/assets/esm-DnSyZMrH.js +0 -1
  260. package/dist/interface/assets/esm-iGk1166L.js +0 -1
  261. package/dist/interface/assets/locale-DXhDcKlE.js +0 -1
  262. package/dist/interface/assets/main-CZoUmEEu.js +0 -3
  263. package/dist/interface/assets/native-BAsSaSk8.js +0 -1
  264. package/dist/interface/assets/native-BPwfZDv_.js +0 -1
  265. package/dist/interface/assets/plugin-C2TEafc4.js +0 -1
  266. package/dist/interface/assets/router-CYuS11OS.js +0 -2
  267. package/dist/interface/assets/server-B3_iwGek.js +0 -1
  268. package/dist/interface/assets/useLogsSocket-DZ93-C8L.css +0 -1
  269. package/dist/interface/assets/useLogsSocket-R2SaD_bg.js +0 -5
  270. package/dist/interface/assets/vendor-cameraui-D-WYtlxb.js +0 -1978
  271. package/dist/interface/assets/web-43SKbD9K.js +0 -1
  272. package/dist/interface/assets/web-6w38of5K.js +0 -1
  273. package/dist/interface/assets/web-B-fOQXlB.js +0 -1
  274. package/dist/interface/assets/web-B8gAW1fJ.js +0 -1
  275. package/dist/interface/assets/web-BgY6GJTP.js +0 -1
  276. package/dist/interface/assets/web-BjKL51lK-CiovASye.js +0 -1
  277. package/dist/interface/assets/web-Bk5Tkroa.js +0 -1
  278. package/dist/interface/assets/web-D12Zinjs.js +0 -1
  279. package/dist/interface/assets/web-DGU3UU0v.js +0 -1
  280. package/dist/interface/assets/web-DMdJ4AXp.js +0 -1
  281. package/dist/interface/assets/web-KoJsMQg4.js +0 -1
  282. package/dist/interface/assets/web-dOswKNeM.js +0 -1
  283. package/dist/interface/assets/workbox-window.prod.es5-DBcE1m83.js +0 -1
  284. /package/dist/interface/assets/{logo-512-DLKVOU2S.png → error-256-DLKVOU2S.png} +0 -0
@@ -0,0 +1,3 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/cloudHandoff-C9HXr7Oq.js","assets/api-C-NlYhuP.js","assets/rolldown-runtime-DAXXjFlN.js","assets/vendor-cameraui-BABuGvhg.js","assets/vendor-zxCOTbSj.js","assets/vendor-core-C6lCucBy.js","assets/api-BB9AG_h5.css"])))=>i.map(i=>d[i]);
2
+ import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{An as t,Bi as n,Ct as r,Dn as i,Dt as a,Et as o,Gt as s,Hn as c,In as l,Ji as u,Ki as d,Kn as f,Kt as p,Mn as m,Mt as h,Ni as g,On as _,Ot as v,Pi as y,Q as b,Si as x,Sn as S,St as C,Tt as w,Vn as ee,X as T,Yi as E,Z as te,_a as ne,_n as D,_t as re,ba as ie,bn as ae,bt as oe,cn as O,dn as k,dt as se,en as A,fi as ce,fn as le,ft as ue,gn as de,gt as fe,hi as pe,hn as me,ht as he,in as ge,jt as j,k as _e,kn as ve,kt as ye,ln as be,mn as xe,mt as Se,nn as Ce,pn as we,pt as Te,qi as Ee,rn as De,tn as Oe,tt as ke,un as Ae,ut as je,vi as Me,vn as Ne,vt as Pe,wn as Fe,wt as Ie,xa as Le,xn as Re,xt as ze,ya as Be,yt as Ve,zi as He}from"./vendor-cameraui-BABuGvhg.js";import{C as Ue,E as We,F as Ge,L as Ke,O as qe,P as Je,S as Ye,T as Xe,a as Ze,c as Qe,f as $e,i as et,l as tt,n as nt,r as rt,s as it,t as at,v as ot,y as st}from"./api-C-NlYhuP.js";import{$t as M,At as ct,C as N,Cn as lt,Dn as P,Fn as ut,Gn as dt,Gt as ft,Hn as F,Jt as pt,Kt as I,Ln as mt,N as ht,P as gt,Qn as _t,Qt as L,R as vt,T as yt,Tn as R,Un as bt,Ut as xt,Vt as St,Xn as z,Xt as B,Yn as Ct,Zt as V,_n as wt,an as H,b as Tt,bn as Et,cr as U,dr as W,en as G,er as K,fn as Dt,fr as q,gn as Ot,hn as kt,in as J,jn as At,kn as jt,lr as Y,mn as Mt,or as Nt,rr as Pt,sn as X,w as Z,wn as Ft,y as It,yn as Lt,z as Rt,zn as Q,zt as $}from"./vendor-zxCOTbSj.js";import{c as zt,f as Bt,l as Vt,n as Ht,t as Ut,u as Wt}from"./vendor-core-C6lCucBy.js";import{I as Gt,L as Kt,_ as qt,a as Jt,b as Yt,c as Xt,d as Zt,f as Qt,g as $t,h as en,i as tn,l as nn,m as rn,o as an,p as on,r as sn,s as cn,t as ln,u as un,v as dn,x as fn,y as pn,z as mn}from"./CuiCameraCard-BxWf13Ct.js";import{t as hn}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as gn,o as _n,r as vn,s as yn,t as bn}from"./useSharedComposables-Ca_A3w0h.js";import{n as xn}from"./ui-B2i8B4yr.js";import{a as Sn,i as Cn,n as wn,o as Tn,r as En,t as Dn}from"./router-CIvI3oge.js";import{t as On}from"./cloud-outline-9JADkpxw.js";import{t as kn}from"./close-BlkMdXhr.js";import{t as An}from"./useElectron-mh8HQUAI.js";import{t as jn}from"./chevron-down-Bzr6VWQF.js";import{B as Mn,D as Nn,E as Pn,G as Fn,H as In,J as Ln,K as Rn,L as zn,O as Bn,R as Vn,S as Hn,U as Un,V as Wn,W as Gn,_ as Kn,a as qn,f as Jn,g as Yn,j as Xn,k as Zn,m as Qn,n as $n,p as er,r as tr,t as nr,u as rr,v as ir,x as ar,y as or,z as sr}from"./vendor-primevue-CsC6U_Xu.js";import{t as cr}from"./power-CQJ3md0z.js";import{t as lr}from"./CuiAvatar-CdoyvPP1.js";import{t as ur}from"./api-D6SjwBWd.js";import{t as dr}from"./instances-BgFvZ06K.js";import{t as fr}from"./cctv-BLn_0bJ6.js";import{t as pr}from"./cog-CWyAfGhY.js";import{t as mr}from"./lightbulb-outline-BKhaucU3.js";import{t as hr}from"./face-recognition-Bx4cPKgu.js";import{r as gr}from"./github--PDCVHbp.js";import{t as _r}from"./CuiCameraSnapshot-Cg8Vjve3.js";import{t as vr}from"./hasPermission-DKTmzAJw.js";import{n as yr,t as br}from"./CuiMenu-150v0xB6.js";import{t as xr}from"./shield-check-COlnpzrA.js";import{t as Sr}from"./vendor-draggabilly-H80KiwVT.js";import{a as Cr,t as wr}from"./cameras-Co3xGKAG.js";import{t as Tr}from"./CuiActionButton-Dywht3_D.js";import{t as Er}from"./copy-16-filled-BvGFaW1f.js";import{n as Dr,t as Or}from"./useCuiCameraDrawer-BuIrXxOt.js";import{t as kr}from"./useCuiDialog-C4xS4vrs.js";import{n as Ar}from"./CuiTopbarSlot-DE7fTsSm.js";import{A as jr,M as Mr,P as Nr,j as Pr,k as Fr}from"./types-BK05hngw.js";import{t as Ir}from"./theme-kssRfqyJ.js";import{t as Lr}from"./trash2-D3jwZOwR.js";import{t as Rr}from"./notifications-DEU1TXne.js";import{n as zr,t as Br}from"./microphone-DZUScXOm.js";import{a as Vr,i as Hr,r as Ur,t as Wr}from"./CuiSchema-DvWek91_.js";import{t as Gr}from"./check-DoWZir_S.js";import{t as Kr}from"./plugins-Bj4_KCp7.js";import{t as qr}from"./PluginSchema-CCfTSjTD.js";import{t as Jr}from"./information-outline-CGFN6gSy.js";import{t as Yr}from"./plus-Dxy9-axc.js";import{a as Xr,i as Zr,n as Qr,t as $r}from"./cameras.schema-y2YP50-k.js";import{t as ei}from"./delete-CVqAtfTw.js";import{t as ti}from"./useStreamStatus-CIPBILoa.js";import{t as ni}from"./home-y0BuJeID.js";import{t as ri}from"./CuiDataTable-C9mtC73b.js";import{t as ii}from"./locale-CH0o3x5d.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),ne(localStorage),Le(),typeof window<`u`&&window.addEventListener(`pagehide`,Be);var ai={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function oi(e,t){return R(),G(`svg`,ai,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12 3c-1.97 0-3.85.47-5.56 1.41c-.24.13-.54.04-.68-.2a.506.506 0 0 1 .2-.68C7.82 2.5 9.86 2 12 2s4 .47 6.04 1.5c.25.15.34.45.21.69a.48.48 0 0 1-.44.28M3.5 9.72c-.1 0-.2-.03-.29-.09a.517.517 0 0 1-.12-.7c.99-1.4 2.25-2.5 3.75-3.27C10 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.85 3.75 3.25c.16.22.1.54-.12.7c-.23.16-.54.11-.7-.1a9.26 9.26 0 0 0-3.39-2.96c-2.87-1.47-6.54-1.47-9.4.01c-1.36.7-2.5 1.7-3.4 2.95c-.08.15-.23.22-.39.22m6.25 12.07c-.13 0-.25-.05-.35-.15c-.87-.87-1.34-1.43-2.01-2.64c-.69-1.23-1.05-2.73-1.05-4.34c0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39a.5.5 0 0 1-.5.5a.5.5 0 0 1-.5-.5c0-2.42-2.09-4.39-4.66-4.39s-4.66 1.97-4.66 4.39c0 1.44.32 2.77.93 3.84c.64 1.16 1.08 1.65 1.85 2.43c.19.2.19.51 0 .71c-.12.1-.24.15-.37.15m7.17-1.85c-1.19 0-2.24-.3-3.1-.89c-1.49-1.01-2.38-2.65-2.38-4.39a.5.5 0 0 1 .5-.5a.5.5 0 0 1 .5.5c0 1.41.72 2.74 1.94 3.56c.71.48 1.54.71 2.54.71c.24 0 .64-.03 1.04-.1c.27-.05.54.13.58.41c.05.26-.13.53-.41.58c-.57.11-1.07.12-1.21.12M14.91 22h-.13c-1.59-.46-2.63-1.05-3.72-2.12a7.28 7.28 0 0 1-2.17-5.22c0-1.62 1.38-2.94 3.08-2.94s3.08 1.32 3.08 2.94c0 1.07.95 1.94 2.08 1.94c1.15 0 2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83c-2.84 0-5.46 1.58-6.61 4.03c-.39.81-.59 1.76-.59 2.8c0 .78.07 2.01.67 3.61c.1.26-.03.55-.29.64a.504.504 0 0 1-.64-.29c-.5-1.31-.73-2.62-.73-3.96c0-1.2.23-2.29.68-3.24c1.33-2.79 4.28-4.6 7.51-4.6c4.54 0 8.25 3.51 8.25 7.83c0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51c.95.94 1.86 1.46 3.27 1.84c.27.08.42.36.35.62c-.05.23-.26.38-.47.38`},null,-1)]])}var si=z({name:`mdi-fingerprint`,render:oi}),ci=`cameraui:unlocked`;function li(){try{sessionStorage.setItem(ci,`1`)}catch{}}var ui=K(!1),di=K(!1);function fi(){return{isLocked:ui,isAvailable:di,unlock:pi,init:mi}}async function pi(){return ui.value=!1,li(),!0}async function mi(){}var hi={key:0,class:`app-lock-overlay`},gi={class:`flex flex-col items-center gap-6 p-8`},_i={class:`text-center`},vi={class:`text-lg font-semibold`},yi={class:`text-sm text-muted mt-2`},bi=hn(X({__name:`CuiAppLockOverlay`,setup(e){let{isLocked:t,unlock:n}=fi(),r=K(!1);async function i(){r.value=!0;try{await n()}finally{r.value=!1}}return Q(t,async e=>{e&&(await wt(),await i())},{immediate:!0}),(e,n)=>{let a=mn,o=si,s=c;return U(t)?(R(),G(`div`,hi,[V(`div`,gi,[H(a,{class:`w-16 h-16 text-muted`}),V(`div`,_i,[V(`h2`,vi,q(e.$t(`views.app_lock.title`)),1),V(`p`,yi,q(e.$t(`views.app_lock.subtitle`)),1)]),H(s,{label:e.$t(`views.app_lock.unlock`),loading:U(r),fluid:``,class:`cui-button-medium`,onClick:i},{icon:F(()=>[H(o,{class:`mr-2`})]),_:1},8,[`label`,`loading`])])])):M(``,!0)}}}),[[`__scopeId`,`data-v-baef4383`]]),xi={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Si(e,t){return R(),G(`svg`,xi,[...t[0]||=[V(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M6 20h12M12 4v12m0 0l3.5-3.5M12 16l-3.5-3.5`},null,-1)]])}var Ci=z({name:`iconoir-download`,render:Si}),wi={class:`cui-update-indicator__content`},Ti={class:`cui-update-indicator__text`},Ei=hn(X({__name:`CuiUpdateIndicator`,setup(e){let{t}=ce(),{bottombarHeight:n}=gn(),{updateAvailable:r,isApplying:i,applyUpdate:a}=Tn(),{isLoggedIn:o}=Bt($e()),s=We(),l=B(()=>o.value&&r.value&&s.bannerMode.value===null),u=B(()=>`calc(${n.value}px + 1rem + env(safe-area-inset-bottom, 0px))`);function d(){a()}return(e,n)=>{let r=ee,a=Ci,o=c;return R(),L($,{name:`fade`},{default:F(()=>[U(l)?(R(),G(`div`,{key:0,class:`cui-update-indicator shadow-xl`,style:W({bottom:U(u)})},[V(`div`,wi,[U(i)?(R(),L(r,{key:0,class:`cui-update-indicator__spinner`,"stroke-width":`5`})):(R(),L(a,{key:1,class:`cui-update-indicator__icon`})),V(`span`,Ti,q(U(i)?U(t)(`components.toast.update_applying`):U(t)(`components.toast.update_available_title`)),1),U(i)?M(``,!0):(R(),L(o,{key:2,size:`small`,class:`cui-update-indicator__button`,label:U(t)(`components.toast.update_now`),onClick:d},null,8,[`label`]))])],4)):M(``,!0)]),_:1})}}}),[[`__scopeId`,`data-v-8ce1000d`]]),Di={class:`cui-connection-indicator__content`},Oi={class:`cui-connection-indicator__text`},ki=hn(X({__name:`CuiConnectionIndicator`,setup(e){let{t}=ce(),{bottombarHeight:n}=gn(),{bannerMode:r,inTrouble:i}=We(),a=et(),{isLoggedIn:o}=Bt($e()),s=B(()=>`calc(${n.value}px + 1rem + env(safe-area-inset-bottom, 0px))`),l=B(()=>o.value&&r.value!==null),u=B(()=>r.value===`connecting`?t(`connection.connecting_remote`):t(`connection.reconnecting`)),d=B(()=>i.value&&a===`cloud`);async function f(){let{bounceToCloudFrontend:e}=await ct(async()=>{let{bounceToCloudFrontend:e}=await import(`./cloudHandoff-C9HXr7Oq.js`);return{bounceToCloudFrontend:e}},__vite__mapDeps([0,1,2,3,4,5,6]));await e()}return(e,n)=>{let r=ee,i=On,a=c;return R(),L($,{name:`fade`},{default:F(()=>[U(l)?(R(),G(`div`,{key:0,class:`cui-connection-indicator shadow-xl`,style:W({bottom:U(s)})},[V(`div`,Di,[H(r,{class:`!w-5 !h-5 shrink-0`,"stroke-width":`5`}),V(`span`,Oi,q(U(u)),1),U(d)?(R(),L(a,{key:0,size:`small`,rounded:``,class:`cui-connection-indicator__button`,"aria-label":U(t)(`connection.pick_server`),onClick:f},{default:F(()=>[H(i,{class:`w-4 h-4`})]),_:1},8,[`aria-label`])):M(``,!0)])],4)):M(``,!0)]),_:1})}}}),[[`__scopeId`,`data-v-89935ae5`]]),Ai={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ji(e,t){return R(),G(`svg`,Ai,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M5.41 7.41L10 12l-4.59 4.59L4 15.17L7.17 12L4 8.83zm13.18 9.18L14 12l4.59-4.58L20 8.83L16.83 12L20 15.17z`},null,-1)]])}var Mi=z({name:`mdi-unfold-less-vertical`,render:ji}),Ni={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Pi(e,t){return R(),G(`svg`,Ni,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M12 18.17L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15M12 5.83L15.17 9l1.41-1.41L12 3L7.41 7.59L8.83 9z`},null,-1)]])}var Fi=z({name:`mdi-unfold-more-horizontal`,render:Pi}),Ii={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Li(e,t){return R(),G(`svg`,Ii,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M19 13H5v-2h14z`},null,-1)]])}var Ri=z({name:`mdi-minus`,render:Li}),zi={class:`fixed flex flex-row items-center z-[99999] top-0 left-[7px] gap-2 p-2 pl-[0.4rem]! non-draggable-region`},Bi=hn(X({__name:`CuiWindowButtons`,setup(e){let{electron:t}=An(),n=K(!1),r=K(!1);function i(){r.value||t?.send(`change-window`,`minify`)}function a(){t?.send(`change-window`,`close`)}function o(){t?.send(`change-window`,`expand`)}function s(e,t){r.value=t}return lt(()=>{t?.on(`fullscreen`,s)}),Et(()=>{t?.removeListener(`fullscreen`,s)}),(e,t)=>{let s=kn,c=Ri,l=Fi,u=Mi;return bt((R(),G(`div`,zi,[V(`div`,{class:`close-button`,onClick:a},[H(s,{color:`#7f050a`,width:`100%`,height:`100%`,class:Y([`transition-opacity opacity-0`,{"opacity-100":U(n)}])},null,8,[`class`])]),V(`div`,{class:Y({"disabled-button":U(r),"minify-button":!U(r)}),onClick:i},[U(r)?M(``,!0):(R(),L(c,{key:0,color:`#995712`,width:`100%`,height:`100%`,class:Y([`transition-opacity opacity-0`,{"opacity-100":U(n)}])},null,8,[`class`]))],2),V(`div`,{class:`expand-button`,style:W(`${U(r)?`transform: rotate(45deg)`:`transform: rotate(-45deg)`}`),onClick:o},[U(r)?(R(),L(u,{key:1,color:`#0d650d`,width:`100%`,height:`100%`,class:Y([`transition-opacity opacity-0`,{"opacity-100":U(n)}])},null,8,[`class`])):(R(),L(l,{key:0,color:`#0d650d`,width:`100%`,height:`100%`,class:Y([`transition-opacity opacity-0`,{"opacity-100":U(n)}])},null,8,[`class`]))],4)])),[[U(Ut),e=>n.value=e]])}}}),[[`__scopeId`,`data-v-d1e31a06`]]),Vi={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Hi(e,t){return R(),G(`svg`,Vi,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z`},null,-1)]])}var Ui=z({name:`mdi-chevron-up`,render:Hi}),Wi={key:0,class:`shrink-0 relative left-[-9px]`},Gi={key:1,class:`shrink-0`},Ki={key:2,class:`shrink-0`},qi={key:0,class:`overflow-hidden flex-1 ml-10`},Ji={class:`flex flex-row items-center justify-between`},Yi={class:`text-start flex-1`},Xi={key:0,class:`text-xs text-muted`},Zi=hn(X({__name:`CuiNavItem`,props:{label:{},to:{},expanded:{type:Boolean},description:{},icon:{},iconSize:{default:24},iconClass:{},labelClass:{},activeIcon:{},avatar:{},avatarSize:{default:24},showLogout:{type:Boolean},darkMode:{type:Boolean},buttonProps:{},showTooltip:{type:Boolean},fallbackActivePath:{},activeColor:{},activeIconColor:{},bottomBar:{type:Boolean}},setup(e){let t=e,n=zt(),r=$e(),{icon:i,iconSize:a,iconClass:o,activeIcon:s,avatarSize:l,avatar:u,labelClass:d,label:f,description:p,expanded:m,to:h,showLogout:g,darkMode:_,buttonProps:v,showTooltip:y,fallbackActivePath:b,activeColor:x,activeIconColor:S,bottomBar:C}=Nt(t),w=B(()=>n.path===h.value||h.value!==`/`&&(n.path.startsWith(h.value+`/`)||n.path.startsWith((b.value??h.value)+`/`)));function ee(){r.logout()}return(e,t)=>{let n=lr,r=cr,b=c,T=jt(`RouterLink`),E=Ln;return R(),L(T,{to:U(h)},{default:F(({isActive:e})=>[bt((R(),L(b,Ot({text:``,severity:`secondary`,class:[`cui-button navitem-button w-full h-full flex items-center relative`,{"dark-mode":U(_),"!text-white navitem-active":(e||U(w))&&!U(u),"hover:!text-color active:!text-color focus:!text-color":!e&&!U(w),"navitem-inactive":!e&&!U(w)}],style:U(x)&&(e||U(w))?{"--navitem-active-color":U(x)}:void 0,fluid:``},U(v)),{default:F(()=>[V(`div`,{class:Y([`flex items-center justify-center h-full`,{"absolute left-[14px]":!U(C)}])},[U(u)?(R(),G(`div`,Wi,[H(n,{src:U(u),size:U(l),style:W({width:`${U(l)}px`,height:`${U(l)}px`})},null,8,[`src`,`size`,`style`])])):U(i)&&!e&&!U(w)||!U(s)?(R(),G(`div`,Gi,[H(U(i),{class:Y(U(o)),style:W({width:`${U(a)}px`,height:`${U(a)}px`,color:(e||U(w))&&U(S)?U(S):void 0})},null,8,[`class`,`style`])])):U(s)&&(e||U(w))?(R(),G(`div`,Ki,[H(U(s),{style:W({width:`${U(a)}px`,height:`${U(a)}px`,color:U(S)})},null,8,[`style`])])):M(``,!0)],2),H($,{name:`fade`},{default:F(()=>[U(m)?(R(),G(`div`,qi,[V(`div`,Ji,[V(`div`,Yi,[V(`div`,{class:Y([`text-sm max-w-100 truncate font-semibold`,[U(d),{"text-color font-bold":U(u)}]])},q(U(f)),3),U(p)?(R(),G(`div`,Xi,q(U(p)),1)):M(``,!0)]),U(g)?(R(),L(b,{key:0,text:``,rounded:``,class:`dark-mode cui-icon-md`,onClick:ft(ee,[`stop`,`prevent`])},{icon:F(()=>[H(r,{width:`100%`,height:`100%`})]),_:1})):M(``,!0)])])):M(``,!0)]),_:1})]),_:2},1040,[`class`,`style`])),[[E,{value:U(y)&&!U(m)?U(f):``,pt:{root:{class:`dark-mode`}}}]])]),_:1},8,[`to`])}}}),[[`__scopeId`,`data-v-9e0c467b`]]),{isElectronApp:Qi}=An(),$i=Qi?25:0,ea={CLOSED:0,MINIFIED:60,EXPANDED:288},ta=_t({serverUpdateAvailable:!1,pluginUpdateAvailable:!1,serverUpdate:null,pluginUpdates:[]}),na=null,ra=null;async function ia(){if(ra?.ready.value)try{let e=await ra.request(`get-updates`);ta.pluginUpdates=e.plugins,ta.pluginUpdateAvailable=e.plugins.length>0,ta.serverUpdate=e.server,ta.serverUpdateAvailable=e.server.updateAvailable||e.server.betaUpdateAvailable||!1}catch{}}function aa(){return ra||(na=dt(!0),na.run(()=>{let e=ot(`/server`);ra=e,e.on(`plugin-updates`,e=>{ta.pluginUpdates=e,ta.pluginUpdateAvailable=e.length>0}),e.on(`server-updates`,e=>{ta.serverUpdate=e,ta.serverUpdateAvailable=e.updateAvailable||e.betaUpdateAvailable||!1}),e.onReady(()=>{ia()})}),ra)}function oa(){function e(){aa()}function t(){}return{isConnected:B(()=>ra?.connected.value??!1),serverUpdateAvailable:B(()=>ta.serverUpdateAvailable),pluginUpdateAvailable:B(()=>ta.pluginUpdateAvailable),serverUpdate:B(()=>ta.serverUpdate),pluginUpdates:B(()=>ta.pluginUpdates),connect:e,disconnect:t,fetchUpdates:ia}}var sa={class:`h-full flex flex-col overflow-y-scroll`},ca={class:`w-full flex items-center shrink-0 h-[60px]`},la={class:`overflow-hidden w-full pr-4`},ua={key:0,class:`ml-2 w-full flex flex-row items-center`},da={class:`flex flex-col flex-1 my-4 px-1`},fa={class:`flex flex-col space-y-1`},pa={class:`flex flex-col space-y-1`},ma={class:`w-full h-[50px]`},ha={class:`flex items-center justify-center h-full absolute left-[14px]`},ga={key:0,class:`flex flex-col space-y-1 overflow-hidden`},_a={class:`w-full h-[50px] relative`},va=hn(X({__name:`CuiNavbar`,setup(e,{expose:t}){let n=Vt(),{bus:r}=_n(),{mdBreakpoint:i,xlBreakpoint:a}=bn(),{navbarState:o}=gn(),{isElectronApp:s,electron:l}=An(),{user:u}=Bt($e()),{uiSettings:d}=Bt(xn()),p=oa(),{data:m}=new ur().apiInfoQuery(),h=mt(`navbarRef`),g=K(`closed`),_=K(!1),v=K(!1),b=K(!1),x=B(()=>m.value?.electron??!1),S=B(()=>s&&x.value),C=B(()=>d.value.interface.selectedSettingsView),w=e=>x.value&&!!e.meta?.disabledInElectron,ee=B(()=>wn.filter(e=>e.meta?.navbar?.position===`top`&&e.meta&&vr(e)&&!w(e))),T=B(()=>wn.filter(e=>e.meta?.navbar?.position===`bottom`&&vr(e)&&!w(e))),E=B(()=>T.value.filter(e=>!e.meta?.navbar?.group)),te=B(()=>T.value.filter(e=>e.meta?.navbar?.group===`more`)),ne=B(()=>te.value.some(e=>n.currentRoute.value.path===e.path||n.currentRoute.value.path.startsWith(e.path+`/`))),D=B(()=>d.value.interface.navbarStayCollapsed&&g.value!==`opened`?`closed`:a.value?`opened`:g.value),re=B(()=>D.value===`closed`?i.value?ea.CLOSED:ea.MINIFIED:ea.EXPANDED);function ie(){b.value=!b.value,b.value?setTimeout(()=>{let e=h.value?.firstElementChild;e&&e.scrollTo({top:e.scrollHeight,behavior:`smooth`})},250):setTimeout(()=>k(),250)}function ae(){r.emit({navbarState:`closed`})}function oe(e,t){S.value&&t.channel===`update-check`&&t.status===`available`&&(_.value=!0)}async function O(){if(S.value){l.removeListener(`app-status`,oe),l.on(`app-status`,oe),l.send(`check-for-updates`);try{_.value=(await l.invoke(`get-update-available`)).isUpdateAvailable}catch{}}}function k(){wt(()=>{let e=h.value?.querySelector(`.navitem-active`);e&&e.scrollIntoView({block:`center`,behavior:`smooth`})})}let se=Ee(k,100);return pe(h,e=>{if(D.value!==`opened`)return;let t=e.target,n=t.closest(`#menu-icon`),r=t.closest(`#submenu-icon`),i=t.closest(`#navbar-icon`);!n&&!r&&!i&&ae()}),y(h,()=>{se()}),Q(ne,e=>{e&&(b.value=!0)},{immediate:!0}),Q(p.serverUpdateAvailable,e=>{S.value||(_.value=e)},{immediate:!0}),Q(S,e=>{e&&O()},{immediate:!0}),Q(p.pluginUpdateAvailable,e=>{v.value=e}),Q(o,e=>{e&&e!==g.value&&(g.value=e===`minified`||e===`closed`?`closed`:`opened`)}),Q(n.currentRoute,(e,t)=>{e.path!==t.path&&ae()}),Q(u,()=>{u.value?.role===`admin`||u.value?.role===`master`?p.connect():p.disconnect()},{deep:!0,immediate:!0}),lt(()=>{k()}),Ft(()=>{l?.removeListener(`app-status`,oe)}),t({navbarState:D}),(e,t)=>{let n=jt(`RouterLink`),r=f,a=Zi,o=jn,s=Ui,l=c;return R(),G(`nav`,{ref_key:`navbarRef`,ref:h,class:Y([`navbar-background fixed transition-[width,left] duration-200 overflow-x-hidden overflow-y-scroll shadow shadow-black/20 overflow-hidden border-[1px] border-base-color rounded-[15px] [clip-path:inset(0_round_15px)] before:content-[''] before:absolute before:top-0 before:left-0 before:right-0 before:h-[20px] before:blur-2xl before:opacity-70 before:bg-primary-500 before:-z-1`,{"shadow-xl":U(i)&&U(re)===U(ea).EXPANDED}]),style:W({top:`calc(max(8px, env(safe-area-inset-top, 0px)) + ${U($i)}px)`,left:U(re)===U(ea).CLOSED?`-2px`:`max(8px, env(safe-area-inset-left, 0px))`,width:`${U(re)}px`,height:`calc(100dvh - max(8px, env(safe-area-inset-top, 0px)) - max(8px, env(safe-area-inset-bottom, 0px)) - ${U($i)}px)`,viewTransitionName:`cui-navbar`})},[V(`div`,sa,[V(`div`,ca,[H(n,{to:`/home`,class:`pl-[13px]`},{default:F(()=>[H(U(gt),{src:U(it)(`logo_animated.svg`),width:`32px`,height:`32px`,title:`camera.ui`,"aria-label":`camera.ui`,class:`hover:scale-105 active:scale-105 focus:scale-105 transition-all non-draggable-region`},null,8,[`src`])]),_:1}),V(`div`,la,[H($,{name:`fade`},{default:F(()=>[U(re)===U(ea).EXPANDED?(R(),G(`div`,ua,[H(n,{to:`/home`,class:`text-white font-bold text-lg text-shadow`},{default:F(()=>[...t[0]||=[J(`camera.ui`,-1)]]),_:1})])):M(``,!0)]),_:1})])]),V(`div`,da,[V(`div`,fa,[(R(!0),G(I,null,P(U(ee),t=>(R(),G(`div`,{key:t.name,class:`w-full h-[50px] relative`},[U(v)&&t.name===`Plugins`?(R(),L(r,{key:0,class:`absolute min-w-[8px] w-[8px] h-[8px] left-[31px] top-[10px] z-1`})):M(``,!0),H(a,{icon:t.meta.navbar.icon.default,"active-icon":t.meta.navbar.icon.active,to:t.path,label:e.$t(`navigation.${t.name.toLowerCase()}`),expanded:U(re)===U(ea).EXPANDED,"dark-mode":``,"show-tooltip":``,"icon-size":22,"button-props":{style:{color:`#a4a4a4`}},class:Y([`w-[50px] h-[50px]`,{"w-full":U(re)===U(ea).EXPANDED}])},null,8,[`icon`,`active-icon`,`to`,`label`,`expanded`,`class`])]))),128))]),t[2]||=V(`div`,{class:`flex-1 mt-10`},null,-1),V(`div`,pa,[U(te).length?(R(),G(I,{key:0},[V(`div`,ma,[H(l,{text:``,severity:`secondary`,class:Y([`cui-button navitem-button w-full h-full flex items-center justify-center dark-mode`,{"!text-white navitem-active":U(b)||U(ne),"hover:!text-color active:!text-color focus:!text-color navitem-inactive":!U(b)&&!U(ne)}]),style:{color:`#a4a4a4`},onClick:ie},{default:F(()=>[V(`div`,ha,[U(b)?(R(),L(o,{key:0,class:`w-[22px] h-[22px]`})):(R(),L(s,{key:1,class:`w-[22px] h-[22px]`}))])]),_:1},8,[`class`])]),H($,{name:`navbar-group`},{default:F(()=>[U(b)?(R(),G(`div`,ga,[(R(!0),G(I,null,P(U(te),t=>(R(),G(`div`,{key:t.name,class:`w-full h-[50px] relative`},[H(a,{icon:t.meta.navbar.icon.default,"active-icon":t.meta.navbar.icon.active,to:t.path,label:e.$t(`navigation.${t.name.toLowerCase()}`),expanded:U(re)===U(ea).EXPANDED,"dark-mode":``,"show-tooltip":``,"icon-size":22,"button-props":{style:{color:`#a4a4a4`}},class:Y([`w-[50px] h-[50px]`,{"w-full":U(re)===U(ea).EXPANDED}])},null,8,[`icon`,`active-icon`,`to`,`label`,`expanded`,`class`])]))),128))])):M(``,!0)]),_:1})],64)):M(``,!0),(R(!0),G(I,null,P(U(E),t=>(R(),G(`div`,{key:t.name,class:`w-full h-[50px] relative`},[U(_)&&t.name===`Settings`?(R(),L(r,{key:0,class:`absolute min-w-[8px] w-[8px] h-[8px] left-[31px] top-[10px] z-1`})):M(``,!0),H(a,{icon:t.meta.navbar.icon.default,"active-icon":t.meta.navbar.icon.active,to:t.path===`/settings`?`/settings/${U(C)}`:t.path,"fallback-active-path":t.path,label:e.$t(`navigation.${t.name.toLowerCase()}`),expanded:U(re)===U(ea).EXPANDED,"dark-mode":``,"show-tooltip":``,"icon-size":22,"button-props":{style:{color:`#a4a4a4`}},class:Y([`w-[50px] h-[50px]`,{"w-full":U(re)===U(ea).EXPANDED}])},null,8,[`icon`,`active-icon`,`to`,`fallback-active-path`,`label`,`expanded`,`class`])]))),128)),t[1]||=V(`div`,{class:`mb-4 mt-2`,style:{borderTop:`1px solid #313131`}},null,-1),V(`div`,_a,[H(a,{avatar:`avatar`,label:U(u)?.username??`unknown`,description:U(u)?.role??`unknown`,expanded:U(re)===U(ea).EXPANDED,"show-logout":``,to:`/settings/account`,"dark-mode":``,"avatar-size":38,class:Y([`w-[50px] h-[50px]`,{"w-full":U(re)===U(ea).EXPANDED}])},null,8,[`label`,`description`,`expanded`,`class`])])])])])],6)}}}),[[`__scopeId`,`data-v-6870cf26`]]),ya={class:`px-2 h-full flex items-center justify-around`,style:{paddingBottom:`calc(max(8px, env(safe-area-inset-bottom, 0px)))`}},ba=hn(X({__name:`CuiBottombar`,setup(e,{expose:t}){let{bottombarHeight:n}=gn(),r=mt(`bottombarRef`),i=B(()=>wn.filter(e=>e.meta?.bottombar&&e.meta.auth&&vr(e)));return t({bottombarRef:r}),(e,t)=>{let a=Zi;return R(),G(`nav`,{ref_key:`bottombarRef`,ref:r,class:`cui-bottombar bottombar-background fixed bottom-0 left-0 right-0 border-t-[1px] border-color bottombar-background`,style:W({height:`calc(${U(n)}px + env(safe-area-inset-bottom, 0px))`,viewTransitionName:`cui-bottombar`})},[V(`div`,ya,[(R(!0),G(I,null,P(U(i),e=>(R(),L(a,{key:e.name,icon:e.meta.bottombar.icon.default,"active-icon":e.meta.bottombar.icon.active,"active-icon-color":`var(--p-primary-color)`,to:e.path,label:``,expanded:!1,"icon-class":`text-color`,class:`w-[50px] h-[50px] transition-all duration-300`,"bottom-bar":``},null,8,[`icon`,`active-icon`,`to`]))),128))])],4)}}}),[[`__scopeId`,`data-v-b0d768aa`]]),xa={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Sa(e,t){return R(),G(`svg`,xa,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M8.463 15.538Q7 14.075 7 12t1.463-3.537T12 7t3.538 1.463T17 12t-1.463 3.538T12 17t-3.537-1.463M2 13q-.425 0-.712-.288T1 12t.288-.712T2 11h2q.425 0 .713.288T5 12t-.288.713T4 13zm18 0q-.425 0-.712-.288T19 12t.288-.712T20 11h2q.425 0 .713.288T23 12t-.288.713T22 13zm-8.712-8.287Q11 4.425 11 4V2q0-.425.288-.712T12 1t.713.288T13 2v2q0 .425-.288.713T12 5t-.712-.288m0 18Q11 22.426 11 22v-2q0-.425.288-.712T12 19t.713.288T13 20v2q0 .425-.288.713T12 23t-.712-.288M5.65 7.05L4.575 6q-.3-.275-.288-.7t.288-.725q.3-.3.725-.3t.7.3L7.05 5.65q.275.3.275.7t-.275.7t-.687.288t-.713-.288M18 19.425l-1.05-1.075q-.275-.3-.275-.712t.275-.688q.275-.3.688-.287t.712.287L19.425 18q.3.275.288.7t-.288.725q-.3.3-.725.3t-.7-.3M16.95 7.05q-.3-.275-.288-.687t.288-.713L18 4.575q.275-.3.7-.288t.725.288q.3.3.3.725t-.3.7L18.35 7.05q-.3.275-.7.275t-.7-.275M4.575 19.425q-.3-.3-.3-.725t.3-.7l1.075-1.05q.3-.275.712-.275t.688.275q.3.275.288.688t-.288.712L6 19.425q-.275.3-.7.288t-.725-.288`},null,-1)]])}var Ca=z({name:`material-symbols-light-mode-rounded`,render:Sa}),wa={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ta(e,t){return R(),G(`svg`,wa,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M12 21q-3.75 0-6.375-2.625T3 12t2.625-6.375T12 3q.35 0 .688.025t.662.075q-1.025.725-1.638 1.888T11.1 7.5q0 2.25 1.575 3.825T16.5 12.9q1.375 0 2.525-.613T20.9 10.65q.05.325.075.662T21 12q0 3.75-2.625 6.375T12 21`},null,-1)]])}var Ea=z({name:`material-symbols-dark-mode`,render:Ta}),Da={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`},Oa=[`id`],ka=[`mask`];function Aa(e,t){return R(),G(`svg`,Da,[V(`defs`,null,[V(`mask`,{id:e.idMap.SVGh8KaKdEb},[...t[0]||=[V(`g`,{fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`4`},[V(`path`,{fill:`#fff`,stroke:`#fff`,d:`m24.003 4l5.27 5.27h9.457v9.456l5.27 5.27l-5.27 5.278v9.456h-9.456L24.004 44l-5.278-5.27H9.27v-9.456L4 23.997l5.27-5.27V9.27h9.456z`}),V(`path`,{fill:`#000`,stroke:`#000`,d:`M27 17c0 8-5 9-10 9c0 4 6.5 8 12 4s2-13-2-13`})],-1)]],8,Oa)]),V(`path`,{fill:`currentColor`,d:`M0 0h48v48H0z`,mask:`url(#`+e.idMap.SVGh8KaKdEb+`)`},null,8,ka)])}var ja=z({name:`icon-park-solid-dark-mode`,render:Aa,setup(){return{idMap:{SVGh8KaKdEb:`uicons-`+Math.random().toString(36).substr(2,10)}}}}),Ma=X({__name:`CuiThemeSwitch`,setup(e){let t=Ir(),{theme:n,autoMode:r}=Bt(t);function i(){t.toggleTheme()}return(e,t)=>{let a=ja,o=Ea,s=Ca,l=c;return R(),L(l,{severity:`secondary`,text:``,class:`cui-button p-2 text-color`,onClick:i},{default:F(()=>[U(r)?(R(),L(a,{key:0,class:`w-6 h-6`})):U(n)===`dark`?(R(),L(o,{key:1,class:`w-6 h-6`})):U(n)===`light`?(R(),L(s,{key:2,class:`w-6 h-6`})):M(``,!0)]),_:1})}}}),Na={class:`relative flex overflow-hidden items-center justify-center w-5 h-5`},Pa={class:`flex flex-col justify-between w-4 h-3 transform transition-all duration-100 origin-center overflow-hidden`},Fa=X({__name:`CuiNavbarToggle`,setup(e){let{bus:t}=_n(),{navbarState:n}=gn(),{xlBreakpoint:r}=bn(),{uiSettings:i}=Bt(xn()),a=K(`closed`),o=B(()=>a.value===`opened`);function s(){t.emit({navbarState:a.value===`opened`?`closed`:`opened`})}return Q(n,e=>{e&&e!==a.value&&(a.value=e===`minified`||e===`closed`?`closed`:`opened`)}),(e,t)=>{let n=c;return!U(r)||U(i).interface.navbarStayCollapsed?(R(),L(n,{key:0,id:`menu-icon`,class:`cui-button relative group p-2 transition-colors duration-100`,severity:`secondary`,text:``,onClick:s},{default:F(()=>[V(`div`,Na,[V(`div`,Pa,[V(`div`,{class:Y([`h-0.5 w-2 transform transition-all duration-100 origin-center`,{"w-4 rotate-45 translate-y-[5px]":U(o)}]),style:{backgroundColor:`var(--text-color)`}},null,2),V(`div`,{class:Y([`h-0.5 w-4 rounded transform transition-all duration-100`,{"opacity-0":U(o)}]),style:{backgroundColor:`var(--text-color)`}},null,2),V(`div`,{class:Y([`h-0.5 w-3 transform transition-all duration-100 origin-center`,{"w-4 -rotate-45 -translate-y-[5px]":U(o)}]),style:{backgroundColor:`var(--text-color)`}},null,2)])])]),_:1})):M(``,!0)}}}),Ia={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function La(e,t){return R(),G(`svg`,Ia,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M22.11 21.46L2.39 1.73L1.11 3l4.72 4.72A7 7 0 0 0 5 11v6l-2 2v1h15.11l2.73 2.73zM7 18v-7c0-.61.11-1.21.34-1.77L16.11 18zm3 3h4a2 2 0 0 1-2 2a2 2 0 0 1-2-2M8.29 5.09c.53-.34 1.11-.59 1.71-.8V4a2 2 0 0 1 2-2a2 2 0 0 1 2 2v.29c2.97.88 5 3.61 5 6.71v4.8l-2-2V11a5 5 0 0 0-5-5c-.78 0-1.55.2-2.24.56z`},null,-1)]])}var Ra=z({name:`mdi-bell-off-outline`,render:La}),za={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ba(e,t){return R(),G(`svg`,za,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M8.352 20.242A4.63 4.63 0 0 0 12 22a4.63 4.63 0 0 0 3.648-1.758a27.2 27.2 0 0 1-7.296 0M18.75 9v.704c0 .845.24 1.671.692 2.374l1.108 1.723c1.011 1.574.239 3.713-1.52 4.21a25.8 25.8 0 0 1-14.06 0c-1.759-.497-2.531-2.636-1.52-4.21l1.108-1.723a4.4 4.4 0 0 0 .693-2.374V9c0-3.866 3.022-7 6.749-7s6.75 3.134 6.75 7`},null,-1)]])}var Va=z({name:`solar-bell-bold`,render:Ba}),Ha=100,Ua=_t({notifications:[]}),Wa=null,Ga=null;function Ka(){return Ga||(Wa=dt(!0),Wa.run(()=>{let e=ot(`/notifications`);Ga=e,e.on(`notification`,e=>{if(e.tag){let t=Ua.notifications.findIndex(t=>t.tag===e.tag);t!==-1&&Ua.notifications.splice(t,1)}Ua.notifications.unshift(e),Ua.notifications.length>Ha&&(Ua.notifications.length=Ha),qa(e)}),e.on(`history`,e=>{Ua.notifications=e}),e.onReady(()=>{Ja()})}),Ga)}function qa(e){let{isElectronApp:t,electron:n}=An();!t||!n||n.send(`show-notification`,{id:e.id,title:e.title,subtitle:e.subtitle,body:e.body,deepLink:e.deepLink,tag:e.tag,severity:e.severity})}async function Ja(){if(Ga?.ready.value)try{Ua.notifications=await Ga.request(`get-notifications`)}catch{}}function Ya(){function e(){Ka()}function t(){}function n(e){let t=Ua.notifications.findIndex(t=>t.id===e.id);t!==-1&&Ua.notifications.splice(t,1),e.tag&&Ga?.emit(`remove-notification`,e.tag)}function r(){Ua.notifications.splice(0,Ua.notifications.length),Ga?.emit(`clear-notifications`)}function i(e){Ua.notifications.find(t=>t.id===e.id)||Ua.notifications.unshift(e)}return{isConnected:B(()=>Ga?.connected.value??!1),notifications:B(()=>Ua.notifications),notificationCount:B(()=>Ua.notifications.length),connect:e,disconnect:t,fetchNotifications:Ja,removeNotification:n,clearNotifications:r,addLocalNotification:i}}function Xa(){Wa?.stop(),Wa=null,Ga=null,Ua.notifications=[]}var Za={key:0,class:`flex items-center justify-center py-8`},Qa={key:1,class:`flex flex-col items-center text-center gap-3 py-6 px-2`},$a={class:`text-sm font-semibold text-color`},eo={class:`text-xs text-muted mt-1`},to={class:`flex justify-between items-center mb-4 h-9`},no={class:`flex items-center gap-2`},ro={class:`text-base font-semibold`},io={class:`overflow-y-auto`,style:{maxHeight:`234px`}},ao={class:`flex gap-3`},oo={class:`flex-1 min-w-0`},so={class:`flex justify-between items-center`},co={class:`font-semibold text-sm text-color truncate max-w-[200px]`},lo={class:`text-xs text-muted shrink-0`},uo={class:`text-xs text-muted mt-1 text-left line-clamp-2 overflow-hidden`},fo={key:0,class:`text-center py-8 text-muted text-sm`},po=X({__name:`CuiNotificationMenu`,setup(e){let t=Vt(),n=kr(),{t:r}=ce(),{isTouch:i}=vn(),{isElectronApp:a,electron:o}=An(),s=new Rr,l=Ya(),{data:u,isLoading:d}=s.getSettingsQuery(),p=mt(`notificationsMenuRef`),m=K({}),h=B(()=>l.notifications.value),v=B(()=>u.value?.enabled??!1),y=B(()=>!d.value||u.value!==void 0);function x(e,[t]){if(!t.isIntersecting){m.value[e]?.resetFn(),m.value[e]?.stopFn(),delete m.value[e];return}if(m.value[e])return;let n=t.target;if(!n.parentElement)return;let r=pe(n,()=>{m.value[e]&&m.value[e].resetFn()}),a,{direction:o,stop:s}=(i.value?He:g)(n,{threshold:10,disableTextSelect:!0,onSwipe(){for(let t in m.value)t!==e&&m.value[t]?.resetFn();o.value===`left`?m.value[e]={left:`-75px`,opacity:1,deleteOpacity:1,isSwiping:!0,resetFn(){this.left=`0`,this.opacity=1,this.deleteOpacity=0},stopFn:()=>{delete m.value[e],s(),r(),clearTimeout(a)}}:m.value[e]?.resetFn()},onSwipeEnd(){clearTimeout(a),a=setTimeout(()=>{m.value[e]&&(m.value[e].isSwiping=!1)},10)}})}function S(e){p.value?.toggle(e)}function C(){p.value?.hide(),t.push({path:`/settings/notifications`})}function w(e){let t=Date.now()-e,n=Math.floor(t/(1e3*60)),i=Math.floor(t/(1e3*60*60)),a=Math.floor(t/(1e3*60*60*24));return n<60?`${n}${r(`components.notification_menu.short_minutes`)}`:i<24?`${i}${r(`components.notification_menu.short_hours`)}`:a<7?`${a}${r(`components.notification_menu.short_days`)}`:a<30?`${Math.floor(a/7)}${r(`components.notification_menu.short_weeks`)}`:a<365?`${Math.floor(a/30)}${r(`components.notification_menu.short_months`)}`:`${Math.floor(a/365)}${r(`components.notification_menu.short_years`)}`}function T(e){let n=e.deepLink;p.value?.hide(),E(e),n&&t.push(n)}function E(e){e&&(m.value[e.id]?.stopFn(),l.removeNotification(e))}function te(){for(let e in m.value)m.value[e]?.stopFn();l.clearNotifications()}function ne(e){switch(e){case _.Info:return`rgb(33, 150, 243)`;case _.Warn:return`rgb(251, 140, 0)`;case _.Error:case _.Critical:return`rgb(176, 0, 32)`;default:return`rgb(69, 69, 69)`}}function D(e){if(m.value[e.id]?.isSwiping)return;let t=[e.subtitle,e.body].filter(Boolean).join(`
3
+ `);n.openTextDialog({data:{title:e.title,contentText:t,confirmText:e?.deepLink?r(`components.form.button.go_to_message`):r(`components.form.button.mark_as_read`)},onConfirm:()=>T(e),onCancel:()=>E(e)})}function re(){for(let e in m.value)m.value[e]?.resetFn(),m.value[e]?.stopFn()}function ie(){return{id:`electron-update`,title:`Update`,body:`New camera.ui app update available`,severity:_.Info,deepLink:`/settings/system`,tag:`electron-update`,createdAt:Date.now(),source:{kind:`system`,id:`system.electron.update_available`}}}function ae(e,t){a&&t.channel===`update-check`&&t.status===`available`&&l.addLocalNotification(ie())}async function oe(){if(a){o.removeListener(`app-status`,ae),o.on(`app-status`,ae),o.send(`check-for-updates`);try{(await o.invoke(`get-update-available`)).isUpdateAvailable&&l.addLocalNotification(ie())}catch{}}}return Q(v,e=>{e?l.connect():Xa()},{immediate:!0}),lt(()=>{a&&oe()}),Ft(()=>{o?.removeListener(`app-status`,ae)}),(e,t)=>{let n=Va,r=f,i=c,a=ee,o=Ra,s=Lr,l=Un,u=b;return R(),G(`div`,null,[H(i,{severity:`secondary`,text:``,class:`cui-button p-2 text-color`,onClick:S},{icon:F(()=>[H(n,{class:`w-6 h-6`}),U(v)&&U(h).length?(R(),L(r,{key:0,class:`absolute min-w-[8px] w-[8px] h-[8px] right-[10px] top-[7px]`})):M(``,!0)]),_:1}),H(u,{ref_key:`notificationsMenuRef`,ref:p,"append-to":`self`,class:`w-[20rem] shadow-lg cui-rounded-corner notification-menu isolate overscroll-contain non-draggable-region`,onHide:re},{default:F(()=>[U(y)?U(v)?(R(),G(I,{key:2},[V(`div`,to,[V(`div`,no,[V(`h3`,ro,q(e.$t(`components.notification_menu.notifications`)),1),H(r,{class:`rounded-full text-xs p-1`,value:U(h).length>99?`99+`:String(U(h).length)},null,8,[`value`])]),U(h).length?(R(),L(i,{key:0,severity:`danger`,text:``,rounded:``,class:`p-2 cui-icon-md`,onClick:te},{icon:F(()=>[H(s,{width:`100%`,height:`100%`})]),_:1})):M(``,!0)]),V(`div`,io,[(R(!0),G(I,null,P(U(h),e=>(R(),G(`div`,{key:e.id,class:`relative overflow-hidden`},[bt((R(),G(`div`,{class:`relative transition-all duration-200`,style:W({left:U(m)[e.id]?.left||`0`,opacity:U(m)[e.id]?.opacity||1})},[H(i,{severity:`secondary`,text:``,class:`cui-button p-2 block w-full`,onClick:t=>D(e)},{default:F(()=>[V(`div`,ao,[V(`div`,{class:`w-2 h-2 rounded-full mt-2`,style:W({backgroundColor:ne(e.severity)})},null,4),V(`div`,oo,[V(`div`,so,[V(`h4`,co,q(e.title),1),V(`span`,lo,q(w(e.createdAt)),1)]),V(`p`,uo,q(e.subtitle||e.body),1)])])]),_:2},1032,[`onClick`])],4)),[[U(Ht),t=>x(e.id,t)]]),V(`div`,{class:`absolute right-0 top-0 h-full flex items-center pr-4`,style:W({opacity:U(m)[e.id]?.deleteOpacity||0})},[H(i,{severity:`danger`,class:`cui-icon-sm`,text:``,rounded:``,onClick:t=>E(e)},{icon:F(()=>[H(s,{width:`100%`,height:`100%`})]),_:1},8,[`onClick`])],4),U(h).indexOf(e)===U(h).length-1?M(``,!0):(R(),L(l,{key:0,class:`my-0 py-1`}))]))),128))]),U(h).length===0?(R(),G(`div`,fo,q(e.$t(`components.notification_menu.no_notifications`)),1)):M(``,!0)],64)):(R(),G(`div`,Qa,[H(o,{class:`w-8 h-8 text-muted`}),V(`div`,null,[V(`h3`,$a,q(e.$t(`components.notification_menu.disabled`)),1),V(`p`,eo,q(e.$t(`components.notification_menu.disabled_hint`)),1)]),H(i,{class:`cui-button-small`,label:e.$t(`components.notification_menu.open_settings`),onClick:C},null,8,[`label`])])):(R(),G(`div`,Za,[H(a,{class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})]))]),_:1},512)])}}}),mo={key:0},ho={class:`text-sm font-medium truncate max-w-40 pointer-events-none`},go=X({__name:`CuiInstanceSwitcher`,setup(e){let{t}=ce(),{smBreakpoint:n}=bn(),r=dr(),i={style:`background: color-mix(in srgb,var(--p-red-500),transparent 84%); color: var(--p-red-400);`},a=mt(`menuRef`),o=_t({}),s=null,l=B(()=>{let e=r.activeInstance,n=!r.isHomeActive||r.redirectInfo,a={label:e.name,position:`header`,active:!0},s=r.favoriteInstances.filter(e=>e.id!==r.activeId).map(e=>{let t=o[e.id],n=e.hasCredentials&&t===`checking`,a=e.hasCredentials&&t===`offline`,s,c;return a&&(s=`Offline`,c=i),{label:e.name,badge:s,badgeProps:c,loading:n,disabled:n||a,onClick:()=>r.switchInstance(e.id)}}),c=n?[{label:t(`components.instance_switcher.go_back`),icon:En,position:`footer`,onClick:()=>{let e=r.redirectInfo;e?window.location.href=e.sourceUrl:r.switchInstance(null)}}]:[],l={label:t(`components.instance_switcher.manage`),icon:pr,position:`footer`,to:`/instances`};return[a,...s,...c,l]});function u(){s?.abort(),s=new AbortController;let{signal:e}=s,t=r.favoriteInstances.filter(e=>e.id!==r.activeId&&e.hasCredentials);for(let e of t)o[e.id]=`checking`;for(let n of t)r.probeInstance(n.id,e).then(t=>{e.aborted||(o[n.id]=t?`online`:`offline`)}).catch(()=>{e.aborted||(o[n.id]=`offline`)})}return(e,t)=>{let i=Cn,o=c,s=jn,d=Ui,f=br;return U(r).isMultiInstance?(R(),G(`div`,mo,[U(n)?(R(),L(o,{key:0,severity:`secondary`,text:``,class:`cui-button p-2 text-color non-draggable-region`,onClick:U(a)?.toggleMenu},{icon:F(()=>[H(i,{class:`w-6 h-6`})]),_:1},8,[`onClick`])):(R(),L(o,{key:1,severity:`secondary`,text:``,class:`cui-button p-2 text-color non-draggable-region`,onClick:U(a)?.toggleMenu},{default:F(()=>[H(i,{class:`w-5 h-5 shrink-0 pointer-events-none`}),V(`span`,ho,q(U(r).activeInstance?.name??`Local`),1),U(a)?.isOpen?U(a)?.isOpen?(R(),L(d,{key:1,class:`w-4 h-4 opacity-60 shrink-0 pointer-events-none`})):M(``,!0):(R(),L(s,{key:0,class:`w-4 h-4 opacity-60 shrink-0 pointer-events-none`}))]),_:1},8,[`onClick`])),H(f,{ref_key:`menuRef`,ref:a,items:U(l),popover:{appendTo:`body`,pt:{root:{class:`w-[18rem]`},content:{class:`p-0! rounded-xl! overflow-hidden!`}}},onShow:u,dividers:`sections`},null,8,[`items`])])):M(``,!0)}}}),_o={key:0,class:`flex flex-row items-center flex-1 p-2 gap-1`},vo={class:`flex-1 flex items-center justify-start min-w-0`},yo={key:0,class:`cui-topbar-default font-semibold text-xl truncate`},bo={class:`flex-1 flex items-center justify-end min-w-0`},xo={key:0,class:`cui-topbar-default`},So=hn(X({__name:`CuiTopbar`,props:{offsetLeft:{},animate:{type:Boolean},background:{}},setup(e){let t=e,n=Vt(),{smBreakpoint:r}=bn(),{hasSlot:i,scrollToTop:a}=Ar(),{minifiedTopbar:o}=yn(),{topbarHeight:s}=gn(),{isElectronApp:c}=An(),{isMultiInstance:l}=Bt(dr()),{offsetLeft:u,animate:d}=Nt(t);return(e,t)=>{let f=go,p=po,m=Fa,h=Ma;return R(),G(`header`,{class:Y([`cui-topbar fixed flex flex-row items-center top-0 left-0 right-0 pt-safe pr-safe draggable-region`,{"!border-none":U(r)}]),style:W({height:`calc(${U(s)}px + env(safe-area-inset-top, 0px) + ${U(c)?`30px`:`0px`})`,viewTransitionName:`cui-topbar`,background:U(r)?`var(--ground-background)`:void 0,paddingTop:U(c)?`calc(30px + env(safe-area-inset-top, 0px))`:void 0})},[U(r)&&!U(o)?(R(),G(`div`,_o,[V(`div`,vo,[!U(i)(`left`)&&(`hasPermission`in e?e.hasPermission:U(vr))(void 0,`admin`)&&U(n).currentRoute.value.name===`Home`&&U(l)?(R(),L(f,{key:0,class:`cui-topbar-default non-draggable-region`})):M(``,!0),t[1]||=V(`div`,{id:`cui-topbar-left`,class:`cui-topbar-slot non-draggable-region`},null,-1)]),V(`div`,{class:`shrink-0 flex items-center justify-center min-w-0 cursor-pointer`,onClick:t[0]||=(...e)=>U(a)&&U(a)(...e)},[t[2]||=V(`div`,{id:`cui-topbar-center`,class:`cui-topbar-slot truncate non-draggable-region`},null,-1),U(i)(`center`)?M(``,!0):(R(),G(`span`,yo,q(e.$t(`views.${String(e.$route.name).toLowerCase()}.title`)),1))]),V(`div`,bo,[t[3]||=V(`div`,{id:`cui-topbar-right`,class:`cui-topbar-slot non-draggable-region`},null,-1),(`hasPermission`in e?e.hasPermission:U(vr))(void 0,`admin`)?(R(),G(`div`,xo,[H(p,{class:`non-draggable-region`})])):M(``,!0)])])):U(o)?M(``,!0):(R(),G(`div`,{key:1,class:`flex flex-row items-center flex-1 p-2`,style:W({"margin-left":`calc(${U(u)}px + max(8px, env(safe-area-inset-left, 0px)))`,transition:U(d)?`margin-left 200ms`:void 0})},[H(m,{class:`non-draggable-region`}),(`hasPermission`in e?e.hasPermission:U(vr))(void 0,`admin`)&&U(l)?(R(),L(f,{key:0,class:`non-draggable-region`})):M(``,!0),H(h,{class:`ml-auto non-draggable-region`}),(`hasPermission`in e?e.hasPermission:U(vr))(void 0,`admin`)?(R(),L(p,{key:1,class:`non-draggable-region`})):M(``,!0)],4))],6)}}}),[[`__scopeId`,`data-v-052ebc62`]]),Co={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function wo(e,t){return R(),G(`svg`,Co,[...t[0]||=[V(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4m-8-2l8-8m0 0v5m0-5h-5`},null,-1)]])}var To=z({name:`majesticons-open`,render:wo}),Eo={class:`flex flex-col gap-2 w-full`},Do={for:`sensorDisplayName`,class:`cui-label`},Oo=X({__name:`RenameSensor`,props:{currentDisplayName:{}},setup(e,{expose:t}){let n=K(e.currentDisplayName);return t({onConfirm:async()=>n.value.trim()||null}),(e,t)=>{let r=ke;return R(),G(`div`,Eo,[V(`label`,Do,q(e.$t(`components.camera_options.sensor_display_name`)),1),H(r,{id:`sensorDisplayName`,modelValue:U(n),"onUpdate:modelValue":t[0]||=e=>Ct(n)?n.value=e:null,class:`w-full`,autofocus:``},null,8,[`modelValue`])])}}}),ko={class:`p-4 flex flex-col gap-2`},Ao={class:`cui-label`},jo={key:0,class:`flex flex-col gap-2`},Mo={class:`cui-label`},No={class:`text-sm text-muted text-center min-h-[30px]`},Po={class:`cui-label`},Fo={class:`cui-label`},Io={key:0,class:`w-full flex items-center justify-center my-5`},Lo={key:1,class:`text-sm text-muted text-center`},Ro={key:1,class:`flex flex-col gap-2`},zo={class:`cui-label`},Bo={class:`text-sm text-muted text-center min-h-[30px]`},Vo={class:`cui-label`},Ho={class:`cui-label`},Uo={key:0,class:`w-full flex items-center justify-center my-5`},Wo={key:1,class:`text-sm text-muted text-center`},Go={key:2,class:`flex flex-col gap-2`},Ko={class:`cui-label`},qo={class:`text-sm text-muted text-center min-h-[30px]`},Jo={class:`cui-label`},Yo={class:`cui-label`},Xo={class:`cui-label`},Zo={key:0,class:`w-full flex items-center justify-center my-5`},Qo={key:1,class:`text-sm text-muted text-center`},$o={class:`cui-label`},es={key:2,class:`text-sm text-muted text-center min-h-[30px]`},ts={class:`cui-label`},ns={key:0,class:`w-full flex items-center justify-center my-5`},rs={key:1,class:`text-sm text-muted text-center`},is={key:3,class:`flex flex-col gap-2`},as={class:`cui-label`},os={class:`text-sm text-muted text-center min-h-[30px]`},ss={class:`cui-label`},cs={class:`cui-label`},ls={class:`cui-label`},us={key:0,class:`w-full flex items-center justify-center my-5`},ds={key:1,class:`text-sm text-muted text-center`},fs={class:`cui-label`},ps={key:2,class:`text-sm text-muted text-center min-h-[30px]`},ms={class:`cui-label`},hs={key:0,class:`w-full flex items-center justify-center my-5`},gs={key:1,class:`text-sm text-muted text-center`},_s={key:4,class:`flex flex-col gap-2`},vs={class:`cui-label`},ys={class:`text-sm text-muted text-center min-h-[30px]`},bs={class:`cui-label`},xs={class:`cui-label`},Ss={class:`cui-label`},Cs={key:0,class:`w-full flex items-center justify-center my-5`},ws={key:1,class:`text-sm text-muted text-center`},Ts={class:`cui-label`},Es={key:2,class:`text-sm text-muted text-center min-h-[30px]`},Ds={class:`cui-label`},Os={key:0,class:`w-full flex items-center justify-center my-5`},ks={key:1,class:`text-sm text-muted text-center`},As={key:5,class:`flex flex-col gap-2`},js={class:`cui-label`},Ms={key:0,class:`w-full flex items-center justify-center`},Ns={key:1,class:`text-sm text-muted text-center`},Ps={key:1,class:`w-full h-full`},Fs={class:`cui-list-item`},Is=X({__name:`Plugins`,props:{camera:{},cameraDevice:{},loading:{type:Boolean},latestSnapshotSrc:{}},emits:[`close`],setup(e){let n=Mr(),r=Pr(),i=Fr(),a=new wr,o=new Kr,l=e,u=Ue(),d=kr(),{t:f}=ce(),{camera:g,cameraDevice:_,loading:v}=Nt(l),{data:y}=o.getPluginsQuery({page:1,pageSize:-1}),{data:b,isBusy:x,suspense:S}=a.getCameraExtensionsQuery(g.value.name),{data:C,isBusy:w}=o.getPluginsExtensionsQuery({page:1,pageSize:-1}),{mutateAsync:T,isPending:E}=a.enableCameraExtensionQuery(),{mutateAsync:te,isPending:ne}=a.disableCameraExtensionQuery(),{mutateAsync:D,isPending:re}=a.activateCameraExtensionQuery(),{mutateAsync:ie,isPending:ae}=a.deactivateCameraExtensionQuery(),{sensors:oe}=p(_),O=mt(`schemaRef`),k=K(`hub`),se=K([`hub`,`detection`,`core`,`accessories`,`more`]),A=K(``),le=K(),ue=K(),de=K(),fe=K(),pe=K(),me=K(),he=K(),ge=K(),j=K(),_e=K(),ye=B(()=>{if(!he.value)return``;let e=Ee.value.find(e=>e.id===he.value);return e?.pluginId&&ht(e.pluginId)||``}),be=B(()=>he.value&&Ee.value.find(e=>e.id===he.value)?.pluginId||``),xe=B(()=>b.value?.filter(e=>i.some(t=>e.contract.provides.includes(t)))||[]),Se=B(()=>{let e=new Set;for(let t of xe.value)for(let n of i)t.contract.provides.includes(n)&&e.add(n);return Array.from(e).sort((e,t)=>{let n=f(`components.camera_options.sensor_type_${e}`),r=f(`components.camera_options.sensor_type_${t}`);return n.localeCompare(r)})}),Ce=B(()=>{let e=me.value;return e?_t(b.value?.filter(t=>t.contract.provides.includes(e))||[]):[]}),we=B(()=>me.value?Nr(me.value):!1),Te=B(()=>{if(!me.value)return[];let e=jr(me.value),t=g.value.assignments[e],n=[];Array.isArray(t)?n=t.map(e=>e.name):t&&typeof t==`object`&&`name`in t&&(n=[t.name]);let r=Ce.value.map(e=>e.pluginName);return n.sort((e,t)=>r.indexOf(e)-r.indexOf(t))}),Ee=B(()=>oe.value.filter(e=>e.type===me.value).sort((e,t)=>e.displayName.value.localeCompare(t.displayName.value))),De=h(_,A),Oe=De.config,ke=De.isLoading,Ae=s(_,he,be),je=Ae.config,Me=Ae.isLoading,Ne=B(()=>x.value||w.value||E.value||ne.value||re.value||ae.value),Pe=B(()=>Ne.value||v.value||De.isLoading.value||Ae.isLoading.value||Ze.isLoading.value||et.isLoading.value||it.isLoading.value||st.isLoading.value||lt.isLoading.value),Fe=B(()=>(C.value?.result.filter(e=>ve(e.contract)&&e.pluginName===g.value.pluginInfo?.name)||[])[0]),Ie=B(()=>_t(b.value?.filter(e=>m(e.contract))||[])),Le=B(()=>Fe.value&&gt(Fe.value.pluginName)?[Fe.value]:[]),Re=B(()=>b.value?.filter(e=>n.some(t=>e.contract.provides.includes(t)))||[]),ze=B(()=>{let e=new Set;for(let t of Re.value)for(let r of n)t.contract.provides.includes(r)&&e.add(r);return Array.from(e).sort((e,t)=>{let n=f(`components.camera_options.sensor_type_${e}`),r=f(`components.camera_options.sensor_type_${t}`);return n.localeCompare(r)})}),Be=B(()=>{let e=ue.value;return e?_t(b.value?.filter(t=>t.contract.provides.includes(e))||[]):[]}),Ve=B(()=>oe.value.filter(e=>e.type===ue.value).sort((e,t)=>e.displayName.value.localeCompare(t.displayName.value))),He=B(()=>{if(!ge.value)return``;let e=Ve.value.find(e=>e.id===ge.value);return e?.pluginId&&ht(e.pluginId)||``}),We=B(()=>ge.value&&Ve.value.find(e=>e.id===ge.value)?.pluginId||``),Ge=B(()=>b.value?.filter(e=>r.some(t=>e.contract.provides.includes(t)))||[]),Ke=B(()=>{let e=new Set;for(let t of Ge.value)for(let n of r)t.contract.provides.includes(n)&&e.add(n);return Array.from(e).sort((e,t)=>{let n=f(`components.camera_options.sensor_type_${e}`),r=f(`components.camera_options.sensor_type_${t}`);return n.localeCompare(r)})}),qe=B(()=>{let e=fe.value;return e?_t(b.value?.filter(t=>t.contract.provides.includes(e))||[]):[]}),Je=B(()=>oe.value.filter(e=>e.type===fe.value).sort((e,t)=>e.displayName.value.localeCompare(t.displayName.value))),Ye=B(()=>{if(!j.value)return``;let e=Je.value.find(e=>e.id===j.value);return e?.pluginId&&ht(e.pluginId)||``}),Xe=B(()=>j.value&&Je.value.find(e=>e.id===j.value)?.pluginId||``),Ze=h(_,B(()=>de.value??``)),Qe=Ze.config,$e=Ze.isLoading,et=s(_,ge,We),nt=et.config,rt=et.isLoading,it=h(_,B(()=>pe.value??``)),at=it.config,ot=it.isLoading,st=s(_,j,Xe),ct=st.config,N=st.isLoading,lt=h(_,B(()=>_e.value??``)),ut=lt.config,dt=lt.isLoading,pt=B(()=>{let e=y.value?.result||[];return(C.value?.result||[]).filter(n=>{let r=e.find(e=>e.pluginName===n.pluginName),i=n.contract.provides.length>0,a=n.contract.consumes.length>0;return g.value.pluginInfo?.name===n.pluginName||ve(n.contract)&&!t(n.contract)?!1:r&&(i||a||m(n.contract))})});function ht(e){return g.value.plugins.find(t=>t.id===e)?.name}function gt(e){let t=typeof e==`string`?e:e?.name;if(t&&y.value&&y.value.result.some(e=>e.pluginName===t&&!e.disabled))return t}function _t(e){return e.sort((e,t)=>!gt(e.pluginName)&&gt(t.pluginName)?1:gt(e.pluginName)&&!gt(t.pluginName)?-1:e.displayName.localeCompare(t.displayName))}function vt(e){let t=jr(e),n=g.value.assignments[t];return Array.isArray(n)?void 0:n}function yt(e){let t=jr(e),n=g.value.assignments[t];return Array.isArray(n)?void 0:n}async function xt(e){if(e!==void 0)A.value=e;else switch(k.value){case`cameraController`:A.value=gt(Fe.value?.pluginName)||``;break;case`hub`:A.value=gt(Ie.value[0]?.pluginName)||``;break;case`detection`:{let e=gt(ue.value?vt(ue.value):void 0);A.value=e||``,de.value=e||void 0;break}case`core`:{let e=gt(fe.value?yt(fe.value):void 0);A.value=e||``,pe.value=e||void 0;break}case`accessories`:A.value=``;break;default:A.value=``;break}A.value&&k.value!==`accessories`&&gt(A.value)&&await De.getConfig()}function St(){switch(k.value){case`cameraController`:Le.value.length&&!A.value&&(A.value=Le.value[0].pluginName);break;case`hub`:Ie.value.length&&(le.value=Ie.value.find(e=>gt(e.pluginName))?.pluginName);break;case`detection`:{ze.value.length&&(!ue.value||!ze.value.includes(ue.value))&&(ue.value=ze.value[0]);let e=ue.value?vt(ue.value):void 0;e&&gt(e.name)?de.value=e.name:de.value=void 0,wt(()=>{Ve.value.length&&!ge.value&&(ge.value=Ve.value[0].id)});break}case`core`:{Ke.value.length&&(!fe.value||!Ke.value.includes(fe.value))&&(fe.value=Ke.value[0]);let e=fe.value?yt(fe.value):void 0;e&&gt(e.name)?pe.value=e.name:pe.value=void 0,wt(()=>{Je.value.length&&!j.value&&(j.value=Je.value[0].id)});break}case`accessories`:Se.value.length&&(!me.value||!Se.value.includes(me.value))&&(me.value=Se.value[0]),wt(()=>{Te.value.length&&!_e.value&&(_e.value=Te.value[0])}),wt(()=>{Ee.value.length&&!he.value&&(he.value=Ee.value[0].id)});break}}async function z(e){b.value&&(b.value.some(t=>t.pluginName===e.pluginName)?(await ie({cameraname:g.value.name,pluginname:e.pluginName}),O.value?.reset()):await D({cameraname:g.value.name,pluginname:e.pluginName}))}async function Tt(e){if(!me.value)return;let t=Te.value;if(we.value){let n=e,r=t[0];if(n===r)return;r&&(await te({cameraname:g.value.name,pluginname:r,type:me.value}),he.value=void 0),n?(await T({cameraname:g.value.name,pluginname:n,type:me.value}),_e.value=n):_e.value=void 0;return}let n=e||[],r=n.filter(e=>!t.includes(e)),i=t.filter(e=>!n.includes(e));for(let e of r)await T({cameraname:g.value.name,pluginname:e,type:me.value});for(let e of i){if(await te({cameraname:g.value.name,pluginname:e,type:me.value}),he.value){let t=Ee.value.find(e=>e.id===he.value);t&&ht(t.pluginId||``)===e&&(he.value=void 0)}_e.value===e&&(_e.value=void 0)}r.length&&!_e.value?_e.value=r[0]:n.length&&!_e.value&&(_e.value=n[0])}async function Et(e,t){try{await De.setValue(e.key,void 0),u.add({severity:`success`,detail:f(`components.toast.config_updated`),life:3e3})}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function W(e,t){try{let n=await De.submitValue(e.key,e.payload);if(n?.toast){let e=tt(n.toast.type);u.add({severity:e,detail:n.toast.message,life:3e3})}n?.schema&&n.schema.length&&d.openComponentDialog(qr,{data:{title:f(`components.dialog.title.config`),hideConfirmButton:!0,contentProps:{schemaConfig:{schema:n.schema,config:e.payload},pluginName:t,cameraName:g.value.name,buttonKey:e.key}}})}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function Dt(e,t){try{await De.setConfig(t),u.add({severity:`success`,detail:f(`components.toast.config_updated`),life:3e3})}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function Ot(e){if(!(!We.value||!ge.value))try{await et.setValue(e.key,void 0),u.add({severity:`success`,detail:f(`components.toast.config_updated`),life:3e3})}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function kt(e){if(!(!We.value||!ge.value))try{let t=await et.submitValue(e.key,e.payload);if(t?.toast){let e=tt(t.toast.type);u.add({severity:e,detail:t.toast.message,life:3e3})}}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function At(e){if(!(!We.value||!ge.value))try{await et.setConfig(e),u.add({severity:`success`,detail:f(`components.toast.config_updated`),life:3e3})}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function jt(e){if(!(!Xe.value||!j.value))try{await st.setValue(e.key,void 0),u.add({severity:`success`,detail:f(`components.toast.config_updated`),life:3e3})}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function Y(e){if(!(!Xe.value||!j.value))try{let t=await st.submitValue(e.key,e.payload);if(t?.toast){let e=tt(t.toast.type);u.add({severity:e,detail:t.toast.message,life:3e3})}}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function Mt(e){if(!(!Xe.value||!j.value))try{await st.setConfig(e),u.add({severity:`success`,detail:f(`components.toast.config_updated`),life:3e3})}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function Pt(e){if(!(!be.value||!he.value))try{await Ae.setValue(e.key,void 0),u.add({severity:`success`,detail:f(`components.toast.config_updated`),life:3e3})}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function X(e){if(!(!be.value||!he.value))try{let t=await Ae.submitValue(e.key,e.payload);if(t?.toast){let e=tt(t.toast.type);u.add({severity:e,detail:t.toast.message,life:3e3})}t?.schema&&t.schema.length&&d.openComponentDialog(qr,{data:{title:f(`components.dialog.title.config`),hideConfirmButton:!0,contentProps:{schemaConfig:{schema:t.schema,config:e.payload},pluginName:ye.value,cameraName:g.value.name,buttonKey:e.key,sensorId:he.value,pluginId:be.value}}})}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function Z(e){if(!(!be.value||!he.value))try{await Ae.setConfig(e),u.add({severity:`success`,detail:f(`components.toast.config_updated`),life:3e3})}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function Ft(e){de.value&&await Ze.setValue(e.key,void 0)}async function It(e){if(de.value)try{let t=await Ze.submitValue(e.key,e.payload);if(t?.toast){let e=tt(t.toast.type);u.add({severity:e,detail:t.toast.message,life:3e3})}t?.schema&&t.schema.length&&d.openComponentDialog(qr,{data:{title:f(`components.dialog.title.config`),hideConfirmButton:!0,contentProps:{schemaConfig:{schema:t.schema,config:e.payload},pluginName:de.value,cameraName:g.value.name,buttonKey:e.key}}})}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function Rt(e){de.value&&await Ze.setConfig(e)}async function $(e){pe.value&&await it.setValue(e.key,void 0)}async function zt(e){if(pe.value)try{let t=await it.submitValue(e.key,e.payload);if(t?.toast){let e=tt(t.toast.type);u.add({severity:e,detail:t.toast.message,life:3e3})}t?.schema&&t.schema.length&&d.openComponentDialog(qr,{data:{title:f(`components.dialog.title.config`),hideConfirmButton:!0,contentProps:{schemaConfig:{schema:t.schema,config:e.payload},pluginName:pe.value,cameraName:g.value.name,buttonKey:e.key}}})}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function Bt(e){pe.value&&await it.setConfig(e)}async function Vt(e){_e.value&&await lt.setValue(e.key,void 0)}async function Ht(e){if(_e.value)try{let t=await lt.submitValue(e.key,e.payload);if(t?.toast){let e=tt(t.toast.type);u.add({severity:e,detail:t.toast.message,life:3e3})}t?.schema&&t.schema.length&&d.openComponentDialog(qr,{data:{title:f(`components.dialog.title.config`),hideConfirmButton:!0,contentProps:{schemaConfig:{schema:t.schema,config:e.payload},pluginName:_e.value,cameraName:g.value.name,buttonKey:e.key}}})}catch(e){u.add({severity:`error`,detail:e,life:3e3})}}async function Ut(e){_e.value&&await lt.setConfig(e)}function Wt(e){e&&d.openComponentDialog(Oo,{data:{title:f(`components.camera_options.sensor_display_name`),confirmText:f(`components.form.button.save`),contentProps:{currentDisplayName:e.displayName.value}},onConfirm:async t=>{t&&t!==e.displayName.value&&await e.setDisplayName(t)}})}return Q(k,()=>{wt(()=>{St(),xt()})},{immediate:!0}),Q([Ie,y],async([e,t])=>{if(k.value===`hub`&&e.length&&t?.result&&!le.value){let t=e.find(e=>gt(e.pluginName));t&&(le.value=t.pluginName,A.value=t.pluginName,await De.getConfig())}},{immediate:!0}),Q([Le,()=>k.value],async([e,t])=>{t===`cameraController`&&e.length&&!A.value&&(A.value=e[0].pluginName,await De.getConfig())},{immediate:!0}),Q(()=>A.value,async(e,t)=>{k.value===`cameraController`&&e&&e!==t&&await De.getConfig()}),Q(le,async(e,t)=>{e&&e!==t&&gt(e)&&(A.value=e,await De.getConfig())}),Q(ue,()=>{if(ge.value=void 0,ue.value){let e=vt(ue.value);e&&gt(e.name)?de.value=e.name:de.value=void 0}else de.value=void 0;xt(),wt(()=>{Ve.value.length&&(ge.value=Ve.value[0].id)})}),Q(de,async(e,t)=>{if(e!==t&&ue.value){let n=vt(ue.value);!e&&t?(await te({cameraname:g.value.name,pluginname:t,type:ue.value}),O.value?.reset(),ge.value=void 0):e&&(n?.name!==e&&await T({cameraname:g.value.name,pluginname:e,type:ue.value}),await Ze.getConfig()),wt(()=>xt(e)),wt(()=>{Ve.value.length&&(ge.value=Ve.value[0].id)})}}),Q(fe,()=>{if(j.value=void 0,fe.value){let e=yt(fe.value);e&&gt(e.name)?pe.value=e.name:pe.value=void 0}else pe.value=void 0;xt(),wt(()=>{Je.value.length&&(j.value=Je.value[0].id)})}),Q(pe,async(e,t)=>{if(e!==t&&fe.value){let n=yt(fe.value);!e&&t?(await te({cameraname:g.value.name,pluginname:t,type:fe.value}),O.value?.reset(),j.value=void 0):e&&(n?.name!==e&&await T({cameraname:g.value.name,pluginname:e,type:fe.value}),await it.getConfig()),wt(()=>xt(e)),wt(()=>{Je.value.length&&(j.value=Je.value[0].id)})}}),Q([ge,We],async([e,t])=>{e&&t&&await et.getConfig()}),Q([j,Xe],async([e,t])=>{e&&t&&await st.getConfig()}),Q(me,()=>{he.value=void 0,Te.value.length?_e.value=Te.value[0]:_e.value=void 0,Ee.value.length&&(he.value=Ee.value[0].id)}),Q(_e,async e=>{e&&await lt.getConfig()}),Q(he,async e=>{e&&be.value&&await Ae.getConfig()}),Q(Le,e=>{let t=se.value.indexOf(`cameraController`)!==-1;e.length&&!t?(se.value.unshift(`cameraController`),(!k.value||k.value===`hub`)&&(k.value=`cameraController`,e.length&&!A.value&&(A.value=e[0].pluginName))):!e.length&&t&&(se.value=se.value.filter(e=>e!==`cameraController`),k.value===`cameraController`&&(k.value=`hub`))},{immediate:!0}),Lt(async()=>{await S(),St(),xt()}),(e,t)=>{let n=Hr,r=Vr,i=Un,a=ee,o=zr,s=c,l=Rn,u=yr,d=To,f=Ln;return R(),G(`div`,ko,[V(`span`,Ao,q(e.$t(`components.camera_options.categories`)),1),H(r,{modelValue:U(k),"onUpdate:modelValue":[t[0]||=e=>Ct(k)?k.value=e:null,t[1]||=e=>xt()],disabled:U(Ne),mandatory:``},{default:F(()=>[(R(!0),G(I,null,P(U(se),t=>(R(),L(n,{key:t,size:`small`,disabled:U(Pe),value:t},{default:F(()=>[J(q(e.$t(`components.camera_options.chip_${t}`)),1)]),_:2},1032,[`disabled`,`value`]))),128))]),_:1},8,[`modelValue`,`disabled`]),H(i,{class:`m-0 py-3`}),U(k)===`cameraController`?(R(),G(`div`,jo,[U(Le).length?(R(),G(I,{key:1},[V(`span`,Po,q(e.$t(`components.camera_options.chip_plugins`)),1),H(r,{modelValue:U(A),"onUpdate:modelValue":t[2]||=e=>Ct(A)?A.value=e:null,disabled:U(Ne),mandatory:``,class:`min-h-[30px]`},{default:F(()=>[(R(!0),G(I,null,P(U(Le),e=>(R(),L(n,{key:e.pluginName,size:`small`,disabled:!gt(e.pluginName)||U(Pe),value:e.pluginName},{default:F(()=>[J(q(e.displayName),1)]),_:2},1032,[`disabled`,`value`]))),128))]),_:1},8,[`modelValue`,`disabled`]),H(i,{class:`m-0 py-3`}),V(`span`,Fo,q(e.$t(`components.camera_options.plugin_settings`)),1),!U(A)||!U(Oe)?.schema?.length?(R(),G(`div`,Io,[U(ke)?(R(),L(a,{key:0,class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})):(R(),G(`span`,Lo,q(e.$t(`components.camera_options.no_config`)),1))])):(R(),L(Wr,{ref_key:`schemaRef`,ref:O,key:U(A),"schema-form":{schema:U(Oe).schema,config:U(Oe).config},loading:U(Pe),onOnFormSubmit:t[3]||=e=>Dt(U(A),e),onOnSubmit:t[4]||=e=>W(e,U(A)),onOnAction:t[5]||=e=>Et(e,U(A))},null,8,[`schema-form`,`loading`]))],64)):(R(),G(I,{key:0},[V(`span`,Mo,q(e.$t(`components.camera_options.chip_plugins`)),1),V(`span`,No,q(e.$t(`components.camera_options.no_plugins_enabled`)),1)],64))])):U(k)===`hub`?(R(),G(`div`,Ro,[U(Ie).length?(R(),G(I,{key:1},[V(`span`,Vo,q(e.$t(`components.camera_options.chip_plugins`)),1),H(r,{modelValue:U(le),"onUpdate:modelValue":t[6]||=e=>Ct(le)?le.value=e:null,disabled:U(Ne),mandatory:``,class:`min-h-[30px]`},{default:F(()=>[(R(!0),G(I,null,P(U(Ie),e=>(R(),L(n,{key:e.pluginName,size:`small`,disabled:!gt(e.pluginName)||U(Pe),value:e.pluginName},{default:F(()=>[J(q(e.displayName),1)]),_:2},1032,[`disabled`,`value`]))),128))]),_:1},8,[`modelValue`,`disabled`]),H(i,{class:`m-0 py-3`}),V(`span`,Ho,q(e.$t(`components.camera_options.plugin_settings`)),1),!U(A)||!U(Oe)?.schema?.length?(R(),G(`div`,Uo,[U(ke)?(R(),L(a,{key:0,class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})):(R(),G(`span`,Wo,q(e.$t(`components.camera_options.no_config`)),1))])):(R(),L(Wr,{ref_key:`schemaRef`,ref:O,key:U(A),"schema-form":{schema:U(Oe).schema,config:U(Oe).config},loading:U(Pe),onOnFormSubmit:t[7]||=e=>Dt(U(A),e),onOnSubmit:t[8]||=e=>W(e,U(A)),onOnAction:t[9]||=e=>Et(e,U(A))},null,8,[`schema-form`,`loading`]))],64)):(R(),G(I,{key:0},[V(`span`,zo,q(e.$t(`components.camera_options.chip_plugins`)),1),V(`span`,Bo,q(e.$t(`components.camera_options.no_plugins_enabled`)),1)],64))])):U(k)===`detection`?(R(),G(`div`,Go,[U(ze).length?(R(),G(I,{key:1},[V(`span`,Jo,q(e.$t(`components.camera_options.sensor_types`)),1),H(r,{modelValue:U(ue),"onUpdate:modelValue":t[10]||=e=>Ct(ue)?ue.value=e:null,disabled:U(Ne),mandatory:``,class:`min-h-[30px]`},{default:F(()=>[(R(!0),G(I,null,P(U(ze),t=>(R(),L(n,{key:t,size:`small`,disabled:U(Pe),value:t},{default:F(()=>[J(q(e.$t(`components.camera_options.sensor_type_${t}`)),1)]),_:2},1032,[`disabled`,`value`]))),128))]),_:1},8,[`modelValue`,`disabled`]),U(Be).length?(R(),G(I,{key:0},[H(i,{class:`m-0 py-3`}),V(`span`,Yo,q(e.$t(`components.camera_options.chip_plugins`)),1),H(r,{modelValue:U(de),"onUpdate:modelValue":t[11]||=e=>Ct(de)?de.value=e:null,disabled:U(Ne),class:`min-h-[30px]`},{default:F(()=>[(R(!0),G(I,null,P(U(Be),e=>(R(),L(n,{key:e.pluginName,size:`small`,filter:``,disabled:!gt(e.pluginName)||U(Pe),value:e.pluginName},{default:F(()=>[J(q(e.displayName),1)]),_:2},1032,[`disabled`,`value`]))),128))]),_:1},8,[`modelValue`,`disabled`]),U(de)&&U(de)!==U(g).pluginInfo?.name?(R(),G(I,{key:0},[H(i,{class:`m-0 py-3`}),V(`span`,Xo,q(e.$t(`components.camera_options.plugin_settings`)),1),U(Qe)?.schema?.length?(R(),L(Wr,{key:`detection-plugin-${U(de)}`,"schema-form":{schema:U(Qe).schema,config:U(Qe).config},loading:U(Pe),onOnFormSubmit:t[12]||=e=>Rt(e),onOnSubmit:t[13]||=e=>It(e),onOnAction:t[14]||=e=>Ft(e)},null,8,[`schema-form`,`loading`])):(R(),G(`div`,Zo,[U($e)?(R(),L(a,{key:0,class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})):(R(),G(`span`,Qo,q(e.$t(`components.camera_options.no_config`)),1))]))],64)):M(``,!0),H(i,{class:`m-0 py-3`}),V(`span`,$o,q(e.$t(`components.camera_options.sensors`)),1),U(Ve).length?(R(),L(r,{key:1,modelValue:U(ge),"onUpdate:modelValue":t[15]||=e=>Ct(ge)?ge.value=e:null,disabled:U(Ne),mandatory:``,class:`min-h-[30px]`},{default:F(()=>[(R(!0),G(I,null,P(U(Ve),e=>(R(),L(n,{key:e.id,size:`small`,disabled:U(Pe),value:e.id},{append:F(()=>[H(s,{text:U(he)!==e.id,rounded:``,severity:U(he)===e.id?`primary`:`secondary`,class:`cui-icon-sm text-white`,onClick:ft(t=>Wt(e),[`stop`])},{icon:F(()=>[H(o,{width:`100%`,height:`100%`})]),_:1},8,[`text`,`severity`,`onClick`])]),default:F(()=>[J(q(e.displayName.value)+` `,1)]),_:2},1032,[`disabled`,`value`]))),128))]),_:1},8,[`modelValue`,`disabled`])):(R(),G(`span`,es,q(e.$t(`components.camera_options.no_sensors`)),1)),U(ge)?(R(),G(I,{key:3},[H(i,{class:`m-0 py-3`}),V(`span`,ts,q(e.$t(`components.camera_options.sensor_settings`)),1),!U(He)||!U(nt)?.schema?.length?(R(),G(`div`,ns,[U(rt)?(R(),L(a,{key:0,class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})):(R(),G(`span`,rs,q(e.$t(`components.camera_options.no_config`)),1))])):(R(),L(Wr,{key:`sensor-${U(ge)}`,"schema-form":{schema:U(nt).schema,config:U(nt).config},loading:U(Pe),onOnFormSubmit:t[16]||=e=>At(e),onOnSubmit:t[17]||=e=>kt(e),onOnAction:t[18]||=e=>Ot(e)},null,8,[`schema-form`,`loading`]))],64)):M(``,!0)],64)):M(``,!0)],64)):(R(),G(I,{key:0},[V(`span`,Ko,q(e.$t(`components.camera_options.sensor_types`)),1),V(`span`,qo,q(e.$t(`components.camera_options.no_plugins_enabled`)),1)],64))])):U(k)===`core`?(R(),G(`div`,is,[U(Ke).length?(R(),G(I,{key:1},[V(`span`,ss,q(e.$t(`components.camera_options.sensor_types`)),1),H(r,{modelValue:U(fe),"onUpdate:modelValue":t[19]||=e=>Ct(fe)?fe.value=e:null,disabled:U(Ne),mandatory:``,class:`min-h-[30px]`},{default:F(()=>[(R(!0),G(I,null,P(U(Ke),t=>(R(),L(n,{key:t,size:`small`,disabled:U(Pe),value:t},{default:F(()=>[J(q(e.$t(`components.camera_options.sensor_type_${t}`)),1)]),_:2},1032,[`disabled`,`value`]))),128))]),_:1},8,[`modelValue`,`disabled`]),U(qe).length?(R(),G(I,{key:0},[H(i,{class:`m-0 py-3`}),V(`span`,cs,q(e.$t(`components.camera_options.chip_plugins`)),1),H(r,{modelValue:U(pe),"onUpdate:modelValue":t[20]||=e=>Ct(pe)?pe.value=e:null,disabled:U(Ne),class:`min-h-[30px]`},{default:F(()=>[(R(!0),G(I,null,P(U(qe),e=>(R(),L(n,{key:e.pluginName,size:`small`,filter:``,disabled:!gt(e.pluginName)||U(Pe),value:e.pluginName},{default:F(()=>[J(q(e.displayName),1)]),_:2},1032,[`disabled`,`value`]))),128))]),_:1},8,[`modelValue`,`disabled`]),U(pe)&&U(pe)!==U(g).pluginInfo?.name?(R(),G(I,{key:0},[H(i,{class:`m-0 py-3`}),V(`span`,ls,q(e.$t(`components.camera_options.plugin_settings`)),1),U(at)?.schema?.length?(R(),L(Wr,{key:`core-plugin-${U(pe)}`,"schema-form":{schema:U(at).schema,config:U(at).config},loading:U(Pe),onOnFormSubmit:t[21]||=e=>Bt(e),onOnSubmit:t[22]||=e=>zt(e),onOnAction:t[23]||=e=>$(e)},null,8,[`schema-form`,`loading`])):(R(),G(`div`,us,[U(ot)?(R(),L(a,{key:0,class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})):(R(),G(`span`,ds,q(e.$t(`components.camera_options.no_config`)),1))]))],64)):M(``,!0),H(i,{class:`m-0 py-3`}),V(`span`,fs,q(e.$t(`components.camera_options.sensors`)),1),U(Je).length?(R(),L(r,{key:1,modelValue:U(j),"onUpdate:modelValue":t[24]||=e=>Ct(j)?j.value=e:null,disabled:U(Ne),mandatory:``,class:`min-h-[30px]`},{default:F(()=>[(R(!0),G(I,null,P(U(Je),e=>(R(),L(n,{key:e.id,size:`small`,disabled:U(Pe),value:e.id},{append:F(()=>[H(s,{text:U(he)!==e.id,rounded:``,severity:U(he)===e.id?`primary`:`secondary`,class:`cui-icon-sm text-white`,onClick:ft(t=>Wt(e),[`stop`])},{icon:F(()=>[H(o,{width:`100%`,height:`100%`})]),_:1},8,[`text`,`severity`,`onClick`])]),default:F(()=>[J(q(e.displayName.value)+` `,1)]),_:2},1032,[`disabled`,`value`]))),128))]),_:1},8,[`modelValue`,`disabled`])):(R(),G(`span`,ps,q(e.$t(`components.camera_options.no_sensors`)),1)),U(j)?(R(),G(I,{key:3},[H(i,{class:`m-0 py-3`}),V(`span`,ms,q(e.$t(`components.camera_options.sensor_settings`)),1),!U(Ye)||!U(ct)?.schema?.length?(R(),G(`div`,hs,[U(N)?(R(),L(a,{key:0,class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})):(R(),G(`span`,gs,q(e.$t(`components.camera_options.no_config`)),1))])):(R(),L(Wr,{key:`sensor-${U(j)}`,"schema-form":{schema:U(ct).schema,config:U(ct).config},loading:U(Pe),onOnFormSubmit:t[25]||=e=>Mt(e),onOnSubmit:t[26]||=e=>Y(e),onOnAction:t[27]||=e=>jt(e)},null,8,[`schema-form`,`loading`]))],64)):M(``,!0)],64)):M(``,!0)],64)):(R(),G(I,{key:0},[V(`span`,as,q(e.$t(`components.camera_options.sensor_types`)),1),V(`span`,os,q(e.$t(`components.camera_options.no_plugins_enabled`)),1)],64))])):U(k)===`accessories`?(R(),G(`div`,_s,[U(Se).length?(R(),G(I,{key:1},[V(`span`,bs,q(e.$t(`components.camera_options.sensor_types`)),1),H(r,{modelValue:U(me),"onUpdate:modelValue":t[28]||=e=>Ct(me)?me.value=e:null,disabled:U(Ne),mandatory:``,class:`min-h-[30px]`},{default:F(()=>[(R(!0),G(I,null,P(U(Se),t=>(R(),L(n,{key:t,size:`small`,disabled:U(Pe),value:t},{default:F(()=>[J(q(e.$t(`components.camera_options.sensor_type_${t}`)),1)]),_:2},1032,[`disabled`,`value`]))),128))]),_:1},8,[`modelValue`,`disabled`]),U(Ce).length?(R(),G(I,{key:0},[H(i,{class:`m-0 py-3`}),V(`span`,xs,q(e.$t(`components.camera_options.chip_plugins`)),1),H(r,{"model-value":U(we)?U(Te)[0]:U(Te),disabled:U(Ne),multiple:!U(we),class:`min-h-[30px]`,"onUpdate:modelValue":Tt},{default:F(()=>[(R(!0),G(I,null,P(U(Ce),e=>(R(),L(n,{key:e.pluginName,size:`small`,filter:``,disabled:!gt(e.pluginName)||U(Pe),value:e.pluginName},{default:F(()=>[J(q(e.displayName),1)]),_:2},1032,[`disabled`,`value`]))),128))]),_:1},8,[`model-value`,`disabled`,`multiple`]),U(_e)&&U(_e)!==U(g).pluginInfo?.name?(R(),G(I,{key:0},[H(i,{class:`m-0 py-3`}),V(`span`,Ss,q(e.$t(`components.camera_options.plugin_settings`)),1),U(ut)?.schema?.length?(R(),L(Wr,{key:`accessory-plugin-${U(_e)}`,"schema-form":{schema:U(ut).schema,config:U(ut).config},loading:U(Pe),onOnFormSubmit:t[29]||=e=>Ut(e),onOnSubmit:t[30]||=e=>Ht(e),onOnAction:t[31]||=e=>Vt(e)},null,8,[`schema-form`,`loading`])):(R(),G(`div`,Cs,[U(dt)?(R(),L(a,{key:0,class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})):(R(),G(`span`,ws,q(e.$t(`components.camera_options.no_config`)),1))]))],64)):M(``,!0)],64)):M(``,!0),H(i,{class:`m-0 py-3`}),V(`span`,Ts,q(e.$t(`components.camera_options.sensors`)),1),U(Ee).length?(R(),L(r,{key:1,modelValue:U(he),"onUpdate:modelValue":t[32]||=e=>Ct(he)?he.value=e:null,disabled:U(Ne),mandatory:``,class:`min-h-[30px]`},{default:F(()=>[(R(!0),G(I,null,P(U(Ee),e=>(R(),L(n,{key:e.id,size:`small`,disabled:U(Pe),value:e.id},{append:F(()=>[H(s,{text:U(he)!==e.id,rounded:``,severity:U(he)===e.id?`primary`:`secondary`,class:`cui-icon-sm text-white`,onClick:ft(t=>Wt(e),[`stop`])},{icon:F(()=>[H(o,{width:`100%`,height:`100%`})]),_:1},8,[`text`,`severity`,`onClick`])]),default:F(()=>[J(q(e.displayName.value)+` `,1)]),_:2},1032,[`disabled`,`value`]))),128))]),_:1},8,[`modelValue`,`disabled`])):(R(),G(`span`,Es,q(e.$t(`components.camera_options.no_sensors`)),1)),U(he)?(R(),G(I,{key:3},[H(i,{class:`m-0 py-3`}),V(`span`,Ds,q(e.$t(`components.camera_options.sensor_settings`)),1),!U(ye)||!U(je)?.schema?.length?(R(),G(`div`,Os,[U(Me)?(R(),L(a,{key:0,class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})):(R(),G(`span`,ks,q(e.$t(`components.camera_options.no_config`)),1))])):(R(),L(Wr,{key:`sensor-${U(he)}`,"schema-form":{schema:U(je).schema,config:U(je).config},loading:U(Pe),onOnFormSubmit:t[33]||=e=>Z(e),onOnSubmit:t[34]||=e=>X(e),onOnAction:t[35]||=e=>Pt(e)},null,8,[`schema-form`,`loading`]))],64)):M(``,!0)],64)):(R(),G(I,{key:0},[V(`span`,vs,q(e.$t(`components.camera_options.sensor_types`)),1),V(`span`,ys,q(e.$t(`components.camera_options.no_plugins_enabled`)),1)],64))])):U(k)===`more`?(R(),G(`div`,As,[V(`span`,js,q(e.$t(`components.camera_options.manage_plugins`)),1),U(w)||!U(pt).length?(R(),G(`div`,Ms,[U(w)?(R(),L(a,{key:0,class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})):(R(),G(`span`,Ns,q(e.$t(`components.camera_options.no_plugins_found`)),1))])):(R(),G(`div`,Ps,[(R(!0),G(I,null,P(U(pt),t=>bt((R(),G(`div`,{key:t.pluginName,class:`cui-list-item`},[H(u,{disabled:U(Ne)||!gt(t.pluginName),class:`h-14`,onClick:n=>e.$router.push(`/plugins/${t.pluginName}`)},{append:F(()=>[H(l,{"model-value":U(b)?.some(e=>e.pluginName===t.pluginName),disabled:U(Ne)||!gt(t.pluginName),"onUpdate:modelValue":e=>z(t)},null,8,[`model-value`,`disabled`,`onUpdate:modelValue`])]),default:F(()=>[V(`span`,null,q(t.displayName),1)]),_:2},1032,[`disabled`,`onClick`])])),[[f,{value:gt(t.pluginName)===void 0?e.$t(`components.form.tooltip.disabled`):``},void 0,{top:!0}]])),128))])),V(`div`,Fs,[H(u,{class:`h-14`,onClick:t[36]||=t=>e.$router.push(`/plugins`)},{append:F(()=>[H(s,{text:``,rounded:``,severity:`secondary`,class:`cui-icon-md`},{icon:F(()=>[H(d,{width:`100%`,height:`100%`})]),_:1})]),default:F(()=>[V(`span`,null,q(e.$t(`components.camera_options.more_plugins`)),1)]),_:1})])])):M(``,!0)])}}}),Ls={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Rs(e,t){return R(),G(`svg`,Ls,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 16H5V5h14zm-2-2H7V7h10z`},null,-1)]])}var zs=z({name:`mdi-checkbox-intermediate`,render:Rs}),Bs={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Vs(e,t){return R(),G(`svg`,Bs,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M3.14 1A2.14 2.14 0 0 0 1 3.14V5h2V3h2V1zM7 1v2h3V1zm5 0v2h2v2h2V3.14C16 1.96 15.04 1 13.86 1zM1 7v3h2V7zm8 0c-1.11 0-2 .89-2 2v7h6.86A2.14 2.14 0 0 0 16 13.86V7zm9 0v2h2v2h2V9c0-1.11-.89-2-2-2zM9 9h5v5H9zm-8 3v1.86C1 15.04 1.96 16 3.14 16H5v-2H3v-2zm19 1v3h2v-3zM7 18v2c0 1.11.89 2 2 2h2v-2H9v-2zm13 0v2h-2v2h2c1.11 0 2-.89 2-2v-2zm-7 2v2h3v-2z`},null,-1)]])}var Hs=z({name:`mdi-vector-intersection`,render:Vs}),Us={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ws(e,t){return R(),G(`svg`,Us,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M4 6v13h16V6zm14 11H6V8h12z`},null,-1)]])}var Gs=z({name:`mdi-rectangle-outline`,render:Ws}),Ks={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function qs(e,t){return R(),G(`svg`,Ks,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M4 6v13h16V6z`},null,-1)]])}var Js=z({name:`mdi-rectangle`,render:qs}),Ys={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Xs(e,t){return R(),G(`svg`,Ys,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`m6.03 12.03l2 3.47l-2.53 3.18L2 12.62zM17 18v-2.71c.88-.39 1.5-1.26 1.5-2.29c0-.57-.2-1.1-.53-1.5l1.97-1.15c1.01-.59 1.36-1.88.77-2.89l-1.38-2.4a2.125 2.125 0 0 0-2.89-.78L8.31 9c-.95.53-1.28 1.75-.73 2.71l1.5 2.6c.55.95 1.78 1.28 2.73.73l1.88-1.08c.25.59.72 1.07 1.31 1.33V18c0 1.1.9 2 2 2h5v-2z`},null,-1)]])}var Zs=z({name:`mdi-cctv`,render:Xs}),Qs={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function $s(e,t){return R(),G(`svg`,Qs,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M20.84 22.73L18.11 20H17c-1.1 0-2-.9-2-2v-1.11l-2.34-2.34l-.85.49c-.95.55-2.18.22-2.73-.73l-1.5-2.6c-.4-.71-.33-1.53.1-2.14L1.11 3l1.28-1.27l19.72 19.73zM18.5 13c0-.57-.2-1.1-.53-1.5l1.97-1.15c1.01-.59 1.36-1.88.77-2.89l-1.38-2.4a2.125 2.125 0 0 0-2.89-.78l-5.67 3.29l7.09 7.09c.4-.44.64-1.02.64-1.66M2 12.62l3.5 6.06l2.53-3.18l-2-3.47z`},null,-1)]])}var ec=z({name:`mdi-cctv-off`,render:$s}),tc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function nc(e,t){return R(),G(`svg`,tc,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M12 2c5.5 0 10 4.5 10 10s-4.5 10-10 10S2 17.5 2 12S6.5 2 12 2m0 2c-1.9 0-3.6.6-4.9 1.7l11.2 11.2c1-1.4 1.7-3.1 1.7-4.9c0-4.4-3.6-8-8-8m4.9 14.3L5.7 7.1C4.6 8.4 4 10.1 4 12c0 4.4 3.6 8 8 8c1.9 0 3.6-.6 4.9-1.7`},null,-1)]])}var rc=z({name:`mdi-cancel`,render:nc}),ic={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ac(e,t){return R(),G(`svg`,ic,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88c3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`},null,-1)]])}var oc=z({name:`mdi-undo`,render:ac}),sc=e(Sr(),1),cc=[`audio`],lc=[`audio`,`motion`],uc={ref:`container`,class:`w-full h-full relative min-w-0`},dc={class:`flex flex-col justify-center items-center`},fc={class:`relative w-full`},pc={class:`relative w-full flex flex-col items-center justify-center`},mc={class:`absolute top-0 left-0 right-0 bottom-0`},hc={class:`sandbox w-full h-full`},gc={class:`handles`},_c=[`data-id`,`data-point`,`data-point-index`,`data-zone-index`,`onDblclick`],vc={class:`clipboard`},yc={width:`100%`,height:`100%`,class:`polygon-container`},bc=[`d`,`onClick`,`onDblclick`,`onMousedown`,`onTouchstart`],xc=[`id`],Sc=[`fill`],Cc=[`id`],wc=[`fill`],Tc=[`x1`,`y1`,`x2`,`y2`,`stroke`],Ec=[`x1`,`y1`,`x2`,`y2`,`stroke`,`stroke-opacity`,`marker-end`,`marker-start`,`onClick`],Dc=[`x`,`y`,`fill`],Oc=[`x`,`y`],kc=[`x`,`y`,`fill`],Ac=[`x`,`y`],jc=[`cx`,`cy`,`fill`,`stroke`,`onMousedown`,`onTouchstart`],Mc=[`cx`,`cy`,`fill`,`stroke`,`onMousedown`,`onTouchstart`],Nc={class:`w-full h-full flex flex-col items-center justify-center min-w-0`,style:{width:`calc(100% - 20px)`,"margin-top":`10px`,"margin-bottom":`10px`}},Pc={class:`flex flex-col field-gap w-full`},Fc=[`for`],Ic={key:0,class:`cui-input-error`},Lc={class:`flex flex-col field-gap w-full`},Rc=[`for`],zc={class:`flex flex-col field-gap w-full`},Bc=[`for`],Vc={class:`flex flex-row h-[50px] rounded-full overflow-hidden justify-self-center max-w-max border-[1px] border-color-inner mt-auto`},Hc={class:`flex flex-row h-[50px] rounded-full overflow-hidden justify-self-center max-w-max border-[1px] border-color-inner`},Uc={class:`flex flex-col field-gap w-full`},Wc=[`for`],Gc={key:0,class:`cui-input-error`},Kc={class:`flex flex-col field-gap w-full`},qc=[`for`],Jc={class:`flex flex-col field-gap w-full`},Yc=[`for`],Xc={class:`flex flex-row h-[50px] rounded-full overflow-hidden justify-self-center max-w-max border-[1px] border-color-inner mt-auto`},Zc={class:`flex flex-row h-[50px] rounded-full overflow-hidden justify-self-center max-w-max border-[1px] border-color-inner`},Qc=hn(X({__name:`ZoneEditor`,props:{cameraName:{},zones:{},lines:{}},setup(e,{expose:t}){let n=new wr,r=e,i=Ue(),{t:a}=ce(),o=Dt(`dialogRefProps`),{mutateAsync:s,isPending:l}=n.patchZonesQuery(),{mutateAsync:u,isPending:d}=n.patchLinesQuery(),{cameraName:f,zones:p}=Nt(r),m=mt(`cameraCardRef`),h=mt(`container`),g=mt(`draggablesRef`),_=mt(`outsideRef`),v=mt(`playgroundContainerRef`),y=K(`zones`),b=Pt([]),S=K([]),C=K([]),w=K(!1),ee=K([]),T=K(void 0),E=K(-1),ne=K(-1),D=K(-1),re={x:0,y:0},ie=!1,oe=null,O=x(h),k=x(v),se=Qr.element.shape.name,A=$r.element.shape.name,le=B(()=>{if(E.value<0)return``;let e=S.value[E.value];if(!e||e.isPrivacyMask)return``;let t=se.safeParse(e.name);return t.success?``:t.error.issues[0]?.message??``}),ue=B(()=>{if(D.value<0)return``;let e=C.value[D.value];if(!e)return``;let t=A.safeParse(e.name);return t.success?``:t.error.issues[0]?.message??``}),de=B(()=>Math.max(0,k.width.value-20)),fe=B(()=>Math.max(0,k.height.value-20)),me=B(()=>[{label:a(`components.zone_editor.tab_zones`),value:`zones`},{label:a(`components.zone_editor.tab_lines`),value:`lines`}]),he=B(()=>{let e=ae.filter(e=>!cc.includes(e));return e.length===0?[]:[{label:a(`components.zone_editor.base_labels`),items:e.map(e=>({label:e,value:e}))}]}),ge=B(()=>{let e=ae.filter(e=>!lc.includes(e));return e.length===0?[]:[{label:a(`components.zone_editor.base_labels`),items:e.map(e=>({label:e,value:e}))}]}),j=B(()=>!!(o.loading?.value||l.value||d.value)),_e=B(()=>{let e=[];return w.value&&e.push(`customizing`),S.value?.length||e.push(`start`),e.join(` `)});function ve(){if(S.value){if(S.value.length===0){ee.value=[];return}ee.value=S.value.flatMap((e,t)=>e.points.map((e,n)=>({_id:`z${t}-p${n}`,zoneIndex:t,pointIndex:n,point:[e[0],e[1]]})))}}function ye(e){if(`touches`in e){let t=e.touches[0];return{x:t.clientX,y:t.clientY}}return{x:e.clientX,y:e.clientY}}function be(e,t){if(e.stopPropagation(),!v.value)return;je(w.value),ie=!0,E.value=t;let n=v.value.getBoundingClientRect(),{x:r,y:i}=ye(e),a=de.value,o=fe.value;re.x=(r-n.left-10)/a*100,re.y=(i-n.top-10)/o*100}function xe(e){if(!ie||!v.value||E.value===-1||!S.value.length)return;let t=v.value.getBoundingClientRect(),{x:n,y:r}=ye(e),i=de.value,a=fe.value,o=(n-t.left-10)/i*100,s=(r-t.top-10)/a*100,c=o-re.x,l=s-re.y,u=S.value[E.value].points,d=!1;for(let e=0;e<u.length;e++){let t=u[e][0]+c,n=u[e][1]+l;if(t<0||t>100||n<0||n>100){d=!0;break}}if(!d)for(let e=0;e<u.length;e++){u[e][0]+=c,u[e][1]+=l,u[e][0]=Math.max(0,Math.min(100,u[e][0])),u[e][1]=Math.max(0,Math.min(100,u[e][1]));let t=u[e][0]/100*i,n=u[e][1]/100*a;b.value.find(t=>t.id===`z${E.value}-p${e}`)?.setPosition(t,n)}re.x=o,re.y=s}function Se(){setTimeout(()=>{ie=!1},100)}function Ce(){!S.value.length||E.value===-1||(S.value[E.value].isPrivacyMask=!S.value[E.value].isPrivacyMask)}function we(){S.value[E.value]&&(S.value[E.value].filter=S.value[E.value].filter===`include`?`exclude`:`include`)}function Te(){S.value[E.value]&&(S.value[E.value].type=S.value[E.value].type===`intersect`?`contain`:`intersect`)}function Ee(e){if(!w.value||ie)return;let t=T.value===void 0?S.value.length:T.value,n=Math.min(Math.max(Math.round((e.offsetX-10)/de.value*100),0),100),r=Math.min(Math.max(Math.round((e.offsetY-10)/fe.value*100),0),100);if(T.value===void 0){let e=`zone-${Date.now()}`;S.value.push({name:e,points:[],filter:`include`,type:`contain`,labels:[`motion`,`person`,`vehicle`,`animal`],isPrivacyMask:!1,color:Ie()}),T.value=S.value.length-1}S.value[t].points.push([n,r]),ve(),wt(()=>{let e=S.value[t].points.length-1;De({_id:`z${t}-p${e}`,zoneIndex:t,pointIndex:e,point:[n,r]})})}function De(e){if(e.zoneIndex===void 0||e.pointIndex===void 0)return;let t=g.value?.filter(t=>t.dataset.pointIndex===e.pointIndex.toString()&&t.dataset.zoneIndex===e.zoneIndex.toString());!t||t.length===0||He(t[0],e.point)}function Oe(e){if(!S.value.length)return;let t=Math.round(e.point[0]/de.value*100),n=Math.round(e.point[1]/fe.value*100);S.value[e.zoneIndex].points[e.pointIndex]=[t,n]}function Ae(){w.value=!0,T.value=void 0}function je(e){if(T.value===void 0){w.value=!1;return}w.value=e||!1;let t=T.value;!S.value[t]||!S.value[t].points||(S.value[t].points.length<3?(S.value.splice(t,1),ve()):(g.value?.forEach(e=>Ge(e)),E.value=t),T.value=void 0)}function Me(){w.value=!0,T.value=E.value}function Ne(){E.value===-1||!S.value.length||(S.value.splice(E.value,1),E.value=Math.max(-1,E.value-1),ve(),wt(()=>{ze()}))}function Pe(){if(S.value?.length){if(w.value&&T.value!==void 0){let e=S.value[T.value];e.points.length&&(e.points.pop(),e.points.length===0&&(S.value.splice(T.value,1),T.value=void 0),ve());return}S.value.length>0&&(S.value.pop(),ve(),wt(()=>{ze()}))}}function Fe(){ie=!1,w.value=!1,T.value=void 0,S.value&&(S.value.length=0,ee.value=[],wt(()=>{Be()}))}function Ie(){return`#`+[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}function Le(e){if(!e||!e.length)return``;let t=e.map(e=>{let t=Math.round(e[0]/100*de.value),n=Math.round(e[1]/100*fe.value);return`${t+10},${n+10}`});if(t.length===0)return``;let n=`M ${t[0]}`;for(let e=1;e<t.length;e++)n+=` L ${t[e]}`;return n+=` Z`,n}function Re(e){w.value||(E.value=e)}function ze(){Be(),g.value?.forEach(e=>{if(!e.dataset.zoneIndex||!e.dataset.pointIndex)return;let t=parseInt(e.dataset.zoneIndex),n=parseInt(e.dataset.pointIndex);if(!S.value[t]||!S.value[t].points[n])return;let r=S.value[t].points[n];r&&(He(e,r),Ge(e))})}function Be(){b.value.forEach(e=>e.destroy()),b.value=[]}function Ve(e){!S.value.length||!S.value[e.zoneIndex]||S.value[e.zoneIndex].points.length<4||(S.value[e.zoneIndex].points.splice(e.pointIndex,1),ve(),wt(()=>{ze()}))}function He(e,t){Object.assign(e.style,We(t))}function We(e){return{left:Math.round(e[0]/100*de.value)+`px`,top:Math.round(e[1]/100*fe.value)+`px`}}function Ge(e){e.classList.add(`draggable`);let t=new sc.default(e,{containment:!0,grid:[0,0]}).on(`pointerDown`,()=>{document.querySelectorAll(`[data-point="${e.dataset.zoneIndex}-${e.dataset.pointIndex}"]`)[0]?.classList.add(`changing`)}).on(`dragMove`,()=>{if(!e.dataset.zoneIndex||!e.dataset.pointIndex||!e.dataset.id)return;let n=t.position.x,r=t.position.y;Oe({_id:e.dataset.id,point:[n,r],pointIndex:parseInt(e.dataset.pointIndex),zoneIndex:parseInt(e.dataset.zoneIndex)})}).on(`pointerUp`,()=>{document.querySelectorAll(`.point`).forEach(e=>e.classList.remove(`changing`))});t.id=e.dataset.id,b.value.push(t)}function Ke(e,t,n){e.preventDefault(),D.value=t,oe={lineIndex:t,pointIndex:n};let r=e=>{if(!oe||!v.value)return;let t=v.value.getBoundingClientRect(),{x:n,y:r}=ye(e),i=Math.min(Math.max((n-t.left-10)/de.value*100,0),100),a=Math.min(Math.max((r-t.top-10)/fe.value*100,0),100);C.value[oe.lineIndex].points[oe.pointIndex]=[Math.round(i),Math.round(a)]},i=()=>{oe=null,document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i),document.removeEventListener(`touchmove`,r),document.removeEventListener(`touchend`,i)};document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i),document.addEventListener(`touchmove`,r),document.addEventListener(`touchend`,i)}function qe(){C.value.push({name:`line-${Date.now()}`,points:[[40,30],[60,70]],direction:`both`,labels:[`person`,`vehicle`,`animal`,`package`],color:Ie()}),D.value=C.value.length-1}function Je(){D.value<0||!C.value.length||(C.value.splice(D.value,1),D.value=Math.max(-1,D.value-1))}function Ye(){if(D.value<0)return;let e=C.value[D.value];if(!e)return;let t=[`both`,`a-to-b`,`b-to-a`];e.direction=t[(t.indexOf(e.direction)+1)%t.length]}function Xe(e){let t=de.value,n=fe.value,r=e.points[0][0]/100*t+10,i=e.points[0][1]/100*n+10,a=e.points[1][0]/100*t+10,o=e.points[1][1]/100*n+10,s=(r+a)/2,c=(i+o)/2,l=a-r,u=o-i,d=Math.sqrt(l*l+u*u)||1,f=-u,p=l,m=s-f/2,h=c-p/2,g=s+f/2,_=c+p/2,v=f/d,y=p/d,b=10+t,x=10+n,S=(e,t)=>({x:Math.max(19,Math.min(b-9,e)),y:Math.max(19,Math.min(x-9,t))}),C=S(m-v*21,h-y*21),w=S(g+v*21,_+y*21);return{h1x:r,h1y:i,h2x:a,h2y:o,ax:C.x+v*15,ay:C.y+y*15,bx:w.x-v*15,by:w.y-y*15,labelAx:C.x,labelAy:C.y,labelBx:w.x,labelBy:w.y}}async function Qe(){try{let e=[];e.push(s({cameraname:f.value,zoneData:S.value})),e.push(u({cameraname:f.value,lineData:C.value})),await Promise.all(e)}catch(e){return i.add({severity:`error`,detail:e,life:3e3}),null}}return pe(_,e=>{let t=e.target,n=t.closest(`.polygon`),r=t.closest(`.edit-button`),i=t.closest(`.remove-button`),a=t.closest(`.handle`),o=t.closest(`.zone-buttons`),s=t.closest(`.p-multiselect-list`),c=t.closest(`.p-colorpicker-panel`);!n&&!r&&!i&&!a&&!w.value&&!o&&!s&&!c&&(E.value=-1)}),Q(ne,()=>{ne.value=-1}),Q(E,(e,t)=>{if(e===-1&&S.value?.length&&S.value[t]){E.value=t;return}e===-1&&S.value?.length&&(ne.value=0)}),Q(p,()=>{S.value=Ze(p.value),ve()},{deep:!0,immediate:!0}),Q(()=>r.lines,()=>{C.value=Ze(r.lines)},{deep:!0,immediate:!0}),Q(y,e=>{e===`zones`?S.value.length&&(E.value<0||E.value>=S.value.length)&&(E.value=0):C.value.length&&(D.value<0||D.value>=C.value.length)&&(D.value=0)},{immediate:!0}),Q([k.width,k.height],()=>{ze()}),lt(async()=>{setTimeout(()=>{ze()})}),t({isLoading:j,onConfirm:Qe}),(e,t)=>{let n=ln,r=te,i=ke,a=Vn,o=rr,s=Hn,l=zn,u=Yr,d=c,p=ei,h=Gr,b=zr,x=oc,ne=rc,re=ec,ie=Zs,ae=Js,oe=Gs,k=Hs,se=zs,A=Ln;return R(),G(`div`,uc,[V(`div`,dc,[V(`div`,fc,[V(`div`,{ref_key:`outsideRef`,ref:_},null,512),V(`div`,{class:Y([`w-full flex justify-center gap-3`,{"flex-row items-stretch":U(O).width.value>740,"flex-col":U(O).width.value<=740}])},[V(`div`,pc,[V(`div`,mc,[V(`div`,{ref_key:`playgroundContainerRef`,ref:v,class:`playground-container flex w-full h-full min-w-0`},[V(`section`,{class:Y([`playground w-full h-full`,U(_e)]),onClick:Ee},[V(`div`,hc,[V(`div`,gc,[(R(!0),G(I,null,P(U(ee),e=>bt((R(),G(`div`,{key:e._id,ref_for:!0,ref_key:`draggablesRef`,ref:g,class:`handle`,"data-id":e._id,"data-point":`${e.zoneIndex}-${e.pointIndex}`,"data-point-index":e.pointIndex,"data-zone-index":e.zoneIndex,onDblclick:ft(t=>Ve(e),[`prevent`])},[...t[8]||=[V(`div`,{class:`delete-point`},null,-1)]],40,_c)),[[xt,U(y)===`zones`]])),128)),V(`div`,vc,[(R(),G(`svg`,yc,[U(y)===`zones`?(R(!0),G(I,{key:0},P(U(S),(e,t)=>(R(),G(`path`,{key:`zone-${t}`,d:Le(e.points),class:Y([`cursor-pointer`,{dash:e.type===`intersect`&&!e.isPrivacyMask,selected:U(E)===t}]),style:W({fill:e.isPrivacyMask?`rgba(16, 16, 16, 0.9)`:e.filter===`exclude`?`transparent`:`${e.color}4D`,stroke:e.isPrivacyMask?`#333333`:e.color,"stroke-width":`2`}),onClick:e=>Re(t),onDblclick:()=>e.isPrivacyMask=!e.isPrivacyMask,onMousedown:e=>be(e,t),onMousemove:xe,onMouseup:Se,onTouchstart:e=>be(e,t),onTouchmove:xe,onTouchend:Se},null,46,bc))),128)):M(``,!0),U(y)===`lines`?(R(),G(I,{key:1},[V(`defs`,null,[(R(!0),G(I,null,P(U(C),(e,t)=>(R(),G(`marker`,{id:`editor-arrow-ab-${t}`,key:`marker-ab-${t}`,markerWidth:`6`,markerHeight:`5`,refX:`5`,refY:`2.5`,orient:`auto`,markerUnits:`strokeWidth`},[V(`path`,{d:`M0,0 L6,2.5 L0,5 Z`,fill:e.color},null,8,Sc)],8,xc))),128)),(R(!0),G(I,null,P(U(C),(e,t)=>(R(),G(`marker`,{id:`editor-arrow-ba-${t}`,key:`marker-ba-${t}`,markerWidth:`6`,markerHeight:`5`,refX:`1`,refY:`2.5`,orient:`auto`,markerUnits:`strokeWidth`},[V(`path`,{d:`M6,0 L0,2.5 L6,5 Z`,fill:e.color},null,8,wc)],8,Cc))),128))]),(R(!0),G(I,null,P(U(C),(e,t)=>(R(),G(I,{key:`line-${t}`},[V(`line`,{x1:Xe(e).h1x,y1:Xe(e).h1y,x2:Xe(e).h2x,y2:Xe(e).h2y,stroke:e.color,"stroke-width":`2`,"stroke-dasharray":`6,4`,opacity:`0.6`},null,8,Tc),V(`line`,{x1:Xe(e).ax,y1:Xe(e).ay,x2:Xe(e).bx,y2:Xe(e).by,stroke:e.color,"stroke-width":`3`,class:`cursor-pointer`,"stroke-opacity":U(D)===t?1:.7,"marker-end":e.direction===`b-to-a`?void 0:`url(#editor-arrow-ab-${t})`,"marker-start":e.direction===`a-to-b`?void 0:`url(#editor-arrow-ba-${t})`,onClick:e=>D.value=t},null,8,Ec),V(`rect`,{x:Xe(e).labelAx-9,y:Xe(e).labelAy-9,width:`18`,height:`18`,rx:`4`,fill:e.color},null,8,Dc),V(`text`,{x:Xe(e).labelAx,y:Xe(e).labelAy,fill:`#fff`,"font-size":`11`,"font-weight":`bold`,"text-anchor":`middle`,"dominant-baseline":`central`},` A `,8,Oc),V(`rect`,{x:Xe(e).labelBx-9,y:Xe(e).labelBy-9,width:`18`,height:`18`,rx:`4`,fill:e.color},null,8,kc),V(`text`,{x:Xe(e).labelBx,y:Xe(e).labelBy,fill:`#fff`,"font-size":`11`,"font-weight":`bold`,"text-anchor":`middle`,"dominant-baseline":`central`},` B `,8,Ac),V(`circle`,{cx:Xe(e).h1x,cy:Xe(e).h1y,r:`8`,fill:e.color,stroke:U(D)===t?`#fff`:e.color,"stroke-width":`2`,class:`cursor-grab`,onMousedown:ft(e=>Ke(e,t,0),[`stop`]),onTouchstart:ft(e=>Ke(e,t,0),[`stop`])},null,40,jc),V(`circle`,{cx:Xe(e).h2x,cy:Xe(e).h2y,r:`8`,fill:e.color,stroke:U(D)===t?`#fff`:e.color,"stroke-width":`2`,class:`cursor-grab`,onMousedown:ft(e=>Ke(e,t,1),[`stop`]),onTouchstart:ft(e=>Ke(e,t,1),[`stop`])},null,40,Mc)],64))),128))],64)):M(``,!0)]))])]),t[9]||=V(`div`,{class:`shadowboard on`},null,-1)])],2)],512)]),V(`div`,Nc,[H(n,{ref_key:`cameraCardRef`,ref:m,"camera-info":U(f),"source-role":`low-resolution`,"streaming-mode":`webrtc`,toolbar:!1,control:!1,subcontrol:!1,"flat-card":``,class:`w-full h-full border-[1px] border-color-inner`,"card-background-color":`#000`},null,8,[`camera-info`])])]),V(`div`,{class:Y([`w-full flex flex-col gap-6 zone-buttons items-center self-stretch`,{"!gap-3":U(O).width.value>740}]),style:W({"max-width":U(O).width.value>740?`300px`:void 0})},[H(r,{modelValue:U(y),"onUpdate:modelValue":t[0]||=e=>Ct(y)?y.value=e:null,options:U(me),"option-label":`label`,"option-value":`value`,class:`w-full`,pt:{root:{class:`flex w-full`},pcToggleButton:{root:{class:`flex-1 !text-sm`}}}},null,8,[`modelValue`,`options`]),U(y)===`lines`?(R(),G(I,{key:0},[V(`div`,Pc,[V(`label`,{for:`line[${U(D)}].name`,class:`cui-label`},q(e.$t(`components.form.label.name`)),9,Fc),H(a,null,{default:F(()=>[H(i,{"model-value":U(C)[U(D)]?.name,invalid:!!U(ue),loading:U(j),disabled:U(D)<0,type:`text`,onValueChange:t[1]||=e=>{U(C)[U(D)]&&(U(C)[U(D)].name=e??``)}},null,8,[`model-value`,`invalid`,`loading`,`disabled`])]),_:1}),H($,{name:`fade`},{default:F(()=>[U(ue)?(R(),G(`span`,Ic,q(U(ue)),1)):M(``,!0)]),_:1})]),V(`div`,Lc,[V(`label`,{for:`line[${U(D)}].labels`,class:`cui-label`},q(e.$t(`components.form.label.labels`)),9,Rc),H(a,null,{default:F(()=>[H(o,{"model-value":U(C)[U(D)]?.labels,options:U(ge),loading:U(j),"max-selected-labels":2,"show-toggle-all":!1,"option-label":`label`,"option-value":`value`,"option-group-label":`label`,"option-group-children":`items`,"show-clear":``,type:`text`,onValueChange:t[2]||=e=>{U(C)[U(D)]&&(U(C)[U(D)].labels=e)}},null,8,[`model-value`,`options`,`loading`])]),_:1})]),V(`div`,zc,[V(`label`,{for:`line[${U(D)}].color`,class:`cui-label`},q(e.$t(`components.form.label.color`)),9,Bc),H(a,null,{default:F(()=>[H(i,{"model-value":U(C)[U(D)]?.color,loading:U(j),readonly:``,type:`text`},null,8,[`model-value`,`loading`]),H(l,null,{default:F(()=>[(R(),L(s,{key:U(D),"model-value":U(C)[U(D)]?.color,format:`hex`,onValueChange:t[3]||=e=>e&&U(C)[U(D)]?U(C)[U(D)].color=`#${e}`:null},null,8,[`model-value`]))]),_:1})]),_:1})]),V(`div`,Vc,[bt((R(),L(d,{loading:U(j),severity:`secondary`,class:`!rounded-none !h-full w-[60px]`,onClick:qe},{icon:F(()=>[H(u,{width:`20px`,height:`20px`})]),_:1},8,[`loading`])),[[A,{value:e.$t(`components.form.tooltip.new`)},void 0,{top:!0}]]),bt((R(),L(d,{loading:U(j),disabled:!U(C).length||U(D)<0,severity:`secondary`,class:`!rounded-none !h-full w-[60px]`,onClick:Je},{icon:F(()=>[H(p,{width:`20px`,height:`20px`})]),_:1},8,[`loading`,`disabled`])),[[A,{value:e.$t(`components.form.tooltip.delete`)},void 0,{top:!0}]])]),V(`div`,Hc,[bt((R(),L(d,{loading:U(j),disabled:U(D)<0,severity:`secondary`,class:`!rounded-none !h-full w-[80px] text-sm`,onClick:Ye},{default:F(()=>[J(q(U(C)[U(D)]?.direction===`both`?`A ↔ B`:U(C)[U(D)]?.direction===`a-to-b`?`A → B`:`B → A`),1)]),_:1},8,[`loading`,`disabled`])),[[A,{value:U(C)[U(D)]?.direction===`both`?`A ↔ B`:U(C)[U(D)]?.direction===`a-to-b`?`A → B`:`B → A`},void 0,{top:!0}]])])],64)):M(``,!0),U(y)===`zones`?(R(),G(I,{key:1},[V(`div`,Uc,[V(`label`,{for:`zone[${U(E)}].name`,class:`cui-label`},q(e.$t(`components.form.label.name`)),9,Wc),H(a,null,{default:F(()=>[H(i,{"model-value":U(S)[U(E)]?.name,invalid:!!U(le),loading:U(j),disabled:U(E)<0||U(S)[U(E)]?.isPrivacyMask,type:`text`,onValueChange:t[4]||=e=>{U(S)[U(E)]&&(U(S)[U(E)].name=e??``)}},null,8,[`model-value`,`invalid`,`loading`,`disabled`])]),_:1}),H($,{name:`fade`},{default:F(()=>[U(le)?(R(),G(`span`,Gc,q(U(le)),1)):M(``,!0)]),_:1})]),V(`div`,Kc,[V(`label`,{for:`zone[${U(E)}].labels`,class:`cui-label`},q(e.$t(`components.form.label.labels`)),9,qc),H(a,null,{default:F(()=>[H(o,{"model-value":U(S)[U(E)]?.labels,options:U(he),disabled:U(S)[U(E)]?.isPrivacyMask,loading:U(j),"max-selected-labels":2,"show-toggle-all":!1,"option-label":`label`,"option-value":`value`,"option-group-label":`label`,"option-group-children":`items`,"show-clear":``,type:`text`,onValueChange:t[5]||=e=>U(S)[U(E)].labels=e},null,8,[`model-value`,`options`,`disabled`,`loading`])]),_:1})]),V(`div`,Jc,[V(`label`,{for:`zone[${U(E)}].color`,class:`cui-label`},q(e.$t(`components.form.label.color`)),9,Yc),H(a,null,{default:F(()=>[H(i,{"model-value":U(S)[U(E)]?.color,disabled:U(S)[U(E)]?.isPrivacyMask,loading:U(j),readonly:``,type:`text`},null,8,[`model-value`,`disabled`,`loading`]),H(l,null,{default:F(()=>[(R(),L(s,{key:U(E),"model-value":U(S)[U(E)]?.color,format:`hex`,disabled:U(S)[U(E)]?.isPrivacyMask,onValueChange:t[6]||=e=>e?U(S)[U(E)].color=`#${e}`:null},null,8,[`model-value`,`disabled`]))]),_:1})]),_:1})]),V(`div`,Xc,[U(w)?bt((R(),L(d,{key:1,disabled:U(T)!==void 0&&U(S)[U(T)]?.points?.length<3,loading:U(j),severity:`secondary`,class:`!rounded-none !h-full w-[60px]`,onClick:t[7]||=e=>je(!1)},{icon:F(()=>[H(h,{width:`20px`,height:`20px`})]),_:1},8,[`disabled`,`loading`])),[[A,{value:e.$t(`components.form.tooltip.finish`)},void 0,{top:!0}]]):bt((R(),L(d,{key:0,loading:U(j),severity:`secondary`,class:`!rounded-none !h-full w-[60px]`,onClick:Ae},{icon:F(()=>[H(u,{width:`20px`,height:`20px`})]),_:1},8,[`loading`])),[[A,{value:e.$t(`components.form.tooltip.new`)},void 0,{top:!0}]]),bt((R(),L(d,{loading:U(j),disabled:!U(S).length||U(E)<0||U(w),severity:`secondary`,class:`!rounded-none !h-full w-[60px]`,onClick:Me},{icon:F(()=>[H(b,{width:`20px`,height:`20px`})]),_:1},8,[`loading`,`disabled`])),[[A,{value:e.$t(`components.form.tooltip.edit`)},void 0,{top:!0}]]),bt((R(),L(d,{loading:U(j),disabled:!U(S).length||U(E)<0,severity:`secondary`,class:`!rounded-none !h-full w-[60px]`,onClick:Ne},{icon:F(()=>[H(p,{width:`20px`,height:`20px`})]),_:1},8,[`loading`,`disabled`])),[[A,{value:e.$t(`components.form.tooltip.delete`)},void 0,{top:!0}]]),bt((R(),L(d,{loading:U(j),disabled:!U(S).length,severity:`secondary`,class:`!rounded-none !h-full w-[60px]`,onClick:Pe},{icon:F(()=>[H(x,{width:`20px`,height:`20px`})]),_:1},8,[`loading`,`disabled`])),[[A,{value:e.$t(`components.form.tooltip.undo`)},void 0,{top:!0}]]),bt((R(),L(d,{loading:U(j),disabled:!U(S).length,severity:`secondary`,class:`!rounded-none !h-full w-[60px]`,onClick:Fe},{icon:F(()=>[H(ne,{width:`20px`,height:`20px`})]),_:1},8,[`loading`,`disabled`])),[[A,{value:e.$t(`components.form.tooltip.clear`)},void 0,{top:!0}]])]),V(`div`,Zc,[bt((R(),L(d,{loading:U(j),disabled:!(U(S).length&&U(E)>=0&&U(S)[U(E)]),severity:`secondary`,class:`!rounded-none !h-full w-[60px]`,onClick:Ce},{icon:F(()=>[U(S)[U(E)]?.isPrivacyMask?(R(),L(re,{key:0,width:`20px`,height:`20px`})):(R(),L(ie,{key:1,width:`20px`,height:`20px`}))]),_:1},8,[`loading`,`disabled`])),[[A,{value:U(S)[U(E)]?.isPrivacyMask?e.$t(`components.form.tooltip.privacy_mask`):e.$t(`components.form.tooltip.public_mask`)},void 0,{top:!0}]]),bt((R(),L(d,{loading:U(j),disabled:U(S)[U(E)]?.isPrivacyMask,severity:`secondary`,class:`!rounded-none !h-full w-[60px]`,onClick:we},{icon:F(()=>[U(S)[U(E)]?.filter===`include`?(R(),L(ae,{key:0,width:`20px`,height:`20px`})):(R(),L(oe,{key:1,width:`20px`,height:`20px`}))]),_:1},8,[`loading`,`disabled`])),[[A,{value:U(S)[U(E)]?.filter===`include`?e.$t(`components.form.tooltip.include`):e.$t(`components.form.tooltip.exclude`)},void 0,{top:!0}]]),bt((R(),L(d,{loading:U(j),disabled:U(S)[U(E)]?.isPrivacyMask,severity:`secondary`,class:`!rounded-none !h-full w-[60px]`,onClick:Te},{icon:F(()=>[U(S)[U(E)]?.type===`intersect`?(R(),L(k,{key:0,width:`20px`,height:`20px`})):(R(),L(se,{key:1,width:`20px`,height:`20px`}))]),_:1},8,[`loading`,`disabled`])),[[A,{value:U(S)[U(E)]?.type===`intersect`?e.$t(`components.form.tooltip.intersect`):e.$t(`components.form.tooltip.contain`)},void 0,{top:!0}]])])],64)):M(``,!0)],6)],2)])])],512)}}}),[[`__scopeId`,`data-v-e02167ca`]]),$c={class:`text-color font-normal`},el={class:`flex flex-col gap-6`},tl={for:`name`,class:`cui-label`},nl={for:`room`,class:`cui-label`},rl={class:`flex gap-2`},il={for:`type`,class:`cui-label`},al={class:`w-full flex flex-col gap-2`},ol={class:`flex items-center gap-4`},sl={class:`flex flex-col field-switch-gap`},cl={for:`disabled`,class:`cui-label-switch`},ll={class:`text-color font-normal`},ul={class:`flex flex-col gap-6`},dl={for:`info.manufacturer`,class:`cui-label`},fl={for:`info.model`,class:`cui-label`},pl={for:`info.hardware`,class:`cui-label`},ml={for:`info.serialNumber`,class:`cui-label`},hl={for:`info.firmwareVersion`,class:`cui-label`},gl={for:`info.supportUrl`,class:`cui-label`},_l={class:`text-color font-normal`},vl={class:`flex flex-col gap-6`},yl={for:`interfaceSettings.streamingMode`,class:`cui-label`},bl={for:`interfaceSettings.streamingSource`,class:`cui-label`},xl={for:`interfaceSettings.aspectRatio`,class:`cui-label`},Sl={class:`text-color font-normal`},Cl={class:`flex flex-col gap-6`},wl={class:`w-full flex flex-col gap-2`},Tl={class:`flex items-center gap-4`},El={class:`flex flex-col field-switch-gap`},Dl={for:`detectionSettings.snooze`,class:`cui-label-switch`},Ol={for:`detectionSettings.motion.resolution`,class:`cui-label`},kl={for:`detectionSettings.motion.timeout`,class:`cui-label`},Al={for:`detectionSettings.object.confidence`,class:`cui-label`},jl={for:`detectionSettings.audio.minDecibels`,class:`cui-label`},Ml={for:`detectionSettings.audio.timeout`,class:`cui-label`},Nl={for:`detectionSettings.sensor.timeout`,class:`cui-label`},Pl={for:`detectionSettings.sensor.triggers`,class:`cui-label`},Fl={class:`text-color font-normal`},Il={class:`w-full flex flex-col gap-4`},Ll={class:`flex items-center gap-4`},Rl={class:`flex flex-col field-switch-gap`},zl={for:`ptzAutotrack.enabled`,class:`cui-label-switch`},Bl={class:`cui-label`},Vl={class:`cui-label`},Hl={class:`cui-label`},Ul={class:`flex items-center gap-4`},Wl={class:`flex flex-col field-switch-gap`},Gl={for:`ptzAutotrack.returnToHome`,class:`cui-label-switch`},Kl={class:`cui-label`},ql={class:`text-color font-normal`},Jl={class:`flex flex-col gap-6 w-full items-center justify-center`},Yl={class:`text-color font-normal`},Xl={class:`flex flex-col gap-6`},Zl={class:`w-full flex flex-col gap-2`},Ql={class:`flex items-center gap-4`},$l={class:`flex flex-col field-switch-gap`},eu={for:`snapshotSettings.autoRefresh`,class:`cui-label-switch`},tu={for:`snapshotSettings.ttl`,class:`cui-label`},nu={for:`snapshotSettings.interval`,class:`cui-label`},ru={class:`text-color font-normal`},iu={class:`flex flex-col gap-6`},au={for:`frameWorkerSettings.fps`,class:`cui-label`},ou=X({__name:`Settings`,props:kt({camera:{},cameraDevice:{},loading:{type:Boolean},latestSnapshotSrc:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:kt([`close`],[`update:modelValue`]),setup(e,{emit:t}){let n=new Set([i.Contact,i.Occupancy,i.Smoke,i.Leak,i.Doorbell,i.Switch,i.Light,i.Siren,i.Lock,i.Garage,i.SecuritySystem]),r=new wr,a=new wr,o=e,s=t,l=ut(e,`modelValue`),u=zt(),d=Vt(),f=kr(),{t:m}=ce(),{camera:h,cameraDevice:g,loading:_}=Nt(o),{sensors:v}=p(g),{data:y,isBusy:b}=a.getRoomsQuery(),{mutateAsync:x,isPending:S}=r.removeCameraQuery(),C=K([`camera`,`doorbell`]),w=K([`auto`,`mse`,`webrtc`,`webrtc/tcp`]),ee=K([`high-resolution`,`mid-resolution`,`low-resolution`]),T=K([`16:9`,`9:16`,`8:3`,`4:3`,`1:1`]),E=K([`low`,`medium`,`high`]),te=K([]),ne=B(()=>v.value.some(e=>e.type===i.PTZ)),D=B(()=>[{label:m(`components.automation_nodes.label_person`),value:`person`},{label:m(`components.automation_nodes.label_vehicle`),value:`vehicle`},{label:m(`components.automation_nodes.label_animal`),value:`animal`},{label:m(`components.automation_nodes.label_package`),value:`package`}]),re=B(()=>v.value.filter(e=>n.has(e.type)).map(e=>({label:e.displayName.value,value:k(e.type,e.name,e.pluginId)}))),ie=B(()=>new Set(re.value.map(e=>e.value))),ae=B(()=>(l.value.detectionSettings.sensor?.triggers??[]).map(e=>k(e.sensorType,e.sensorName,e.pluginId)).filter(e=>ie.value.has(e))),oe=B(()=>{let e=y.value??[`Default`],t=new Set(e.map(e=>e.toLowerCase()));return[...e,...te.value.filter(e=>!t.has(e.toLowerCase()))].map(e=>({label:e===`Default`?m(`components.form.label.room_default`):e,value:e}))}),O=B(()=>_.value||S.value);function k(e,t,n){return`${e}::${t}::${n}`}function se(e){let t=(l.value.detectionSettings.sensor?.triggers??[]).filter(e=>!ie.value.has(k(e.sensorType,e.sensorName,e.pluginId))),n=e.map(e=>{let[t,n,r]=e.split(`::`);return{sensorType:t,sensorName:n,pluginId:r}});l.value.detectionSettings.sensor||(l.value.detectionSettings.sensor={timeout:30,triggers:[]}),l.value.detectionSettings.sensor.triggers=[...t,...n]}function A(){f.openComponentDialog(Xr,{data:{title:m(`components.dialog.title.create_room`),confirmText:m(`components.form.button.add`),contentProps:{}},onConfirm:e=>{if(!e)return;let t=oe.value.find(t=>t.value.toLowerCase()===e.toLowerCase()),n=t?.value??e;t||te.value.push(n),l.value.room=n}})}function le(){f.openTextDialog({data:{title:m(`components.dialog.title.confirm`),confirmText:m(`components.form.button.remove`),contentText:m(`components.dialog.message.confirm_remove`),confirmButtonProps:{severity:`danger`}},onConfirm:async()=>{try{await x({cameraname:h.value.name}),u.path.includes(h.value.name)&&d.push({path:`/home`}),s(`close`)}catch{}}})}function ue(e=[]){f.openComponentDialog(Qc,{data:{title:m(`components.zone_editor.edit_zones`),loading:O,contentProps:{cameraName:h.value.name,zones:e,lines:h.value.detectionLines??[]}}})}return(e,t)=>{let n=Bn,r=ke,i=Vn,a=Xn,o=Yr,s=c,u=sr,d=Rn,f=Zn,p=Nn,m=Yn,g=rr,_=Jr,v=Pn,y=Ln;return R(),L(v,{multiple:``,class:`p-4`},{default:F(()=>[H(p,{value:`general`},{default:F(()=>[H(n,{class:`px-0 pt-0`},{default:F(()=>[V(`span`,$c,q(e.$t(`components.camera_options.general`)),1)]),_:1}),H(f,{pt:{content:{class:`px-0`}}},{default:F(()=>[V(`div`,el,[H(U(Z),{modelValue:l.value.name,"onUpdate:modelValue":t[0]||=e=>l.value.name=e,modelModifiers:{trim:!0},name:`name`,as:`div`,class:`flex flex-col field-gap`},{default:F(({field:t,errors:n})=>[V(`label`,tl,q(e.$t(`components.form.label.name`)),1),H(i,null,{default:F(()=>[H(r,Ot(t,{invalid:n.length>0,loading:U(O),type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`name`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),H(U(Z),{"model-value":l.value.room,name:`room`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,nl,q(e.$t(`components.form.label.room`)),1),V(`div`,rl,[H(a,{"model-value":l.value.room,options:U(oe),"option-label":`label`,"option-value":`value`,invalid:n.length>0,loading:U(b),class:`w-full`,"onUpdate:modelValue":t[1]||=e=>l.value.room=e},null,8,[`model-value`,`options`,`invalid`,`loading`]),bt((R(),L(s,{severity:`secondary`,outlined:``,class:`shrink-0 h-[42px] w-[42px] p-0`,onClick:A},{icon:F(()=>[H(o,{class:`w-4 h-4`})]),_:1})),[[y,e.$t(`components.form.button.create_room`),void 0,{top:!0}]])]),n.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.room`)),1)]),_:1}))]),_:1},8,[`model-value`]),H(U(Z),{"model-value":l.value.type,name:`type`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,il,q(e.$t(`components.form.label.type`)),1),H(i,null,{default:F(()=>[H(a,{"model-value":l.value.type,options:U(C),invalid:n.length>0,loading:U(O),type:`text`,onValueChange:t[2]||=e=>l.value.type=e},null,8,[`model-value`,`options`,`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`type`,class:`cui-input-error`})]),_:1})]),_:1},8,[`model-value`]),V(`div`,al,[H(U(Z),{"model-value":l.value.disabled,value:!0,"unchecked-value":!1,type:`checkbox`,name:`disabled`,as:`div`,class:`flex flex-col field-gap cui-toggle-switch`},{default:F(({field:n,errors:r})=>[V(`div`,ol,[V(`div`,sl,[V(`label`,cl,q(e.$t(`components.form.label.disabled`)),1),H(u,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-switch-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.disable_camera`)),1)]),_:1}),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`disabled`,class:`cui-input-switch-error`})]),_:1})]),H(d,Ot({"model-value":l.value.disabled},n,{invalid:r.length>0,loading:U(O),class:`ml-auto shrink-0`,onValueChange:t[3]||=e=>l.value.disabled=e}),null,16,[`model-value`,`invalid`,`loading`])])]),_:1},8,[`model-value`])]),H(s,{fluid:``,severity:`danger`,loading:U(O),class:`cui-button-medium`,label:e.$t(`components.form.button.remove`),onClick:t[4]||=e=>le()},null,8,[`loading`,`label`])])]),_:1})]),_:1}),H(p,{value:`branding`},{default:F(()=>[H(n,{class:`px-0`},{default:F(()=>[V(`span`,ll,q(e.$t(`components.camera_options.branding`)),1)]),_:1}),H(f,{pt:{content:{class:`px-0`}}},{default:F(()=>[V(`div`,ul,[H(U(Z),{modelValue:l.value.info.manufacturer,"onUpdate:modelValue":t[5]||=e=>l.value.info.manufacturer=e,modelModifiers:{trim:!0},name:`info.manufacturer`,as:`div`,class:`flex flex-col field-gap`},{default:F(({field:t,errors:n})=>[V(`label`,dl,q(e.$t(`components.form.label.manufacturer`)),1),H(i,null,{default:F(()=>[H(r,Ot(t,{invalid:n.length>0,loading:U(O),type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`info.manufacturer`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),H(U(Z),{modelValue:l.value.info.model,"onUpdate:modelValue":t[6]||=e=>l.value.info.model=e,modelModifiers:{trim:!0},name:`info.model`,as:`div`,class:`flex flex-col field-gap`},{default:F(({field:t,errors:n})=>[V(`label`,fl,q(e.$t(`components.form.label.model`)),1),H(i,null,{default:F(()=>[H(r,Ot(t,{invalid:n.length>0,loading:U(O),type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`info.model`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),H(U(Z),{modelValue:l.value.info.hardware,"onUpdate:modelValue":t[7]||=e=>l.value.info.hardware=e,modelModifiers:{trim:!0},name:`info.hardware`,as:`div`,class:`flex flex-col field-gap`},{default:F(({field:t,errors:n})=>[V(`label`,pl,q(e.$t(`components.form.label.hardware_version`)),1),H(i,null,{default:F(()=>[H(r,Ot(t,{invalid:n.length>0,loading:U(O),type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`info.hardware`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),H(U(Z),{modelValue:l.value.info.serialNumber,"onUpdate:modelValue":t[8]||=e=>l.value.info.serialNumber=e,modelModifiers:{trim:!0},name:`info.serialNumber`,as:`div`,class:`flex flex-col field-gap`},{default:F(({field:t,errors:n})=>[V(`label`,ml,q(e.$t(`components.form.label.serial_number`)),1),H(i,null,{default:F(()=>[H(r,Ot(t,{invalid:n.length>0,loading:U(O),type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`info.serialNumber`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),H(U(Z),{modelValue:l.value.info.firmwareVersion,"onUpdate:modelValue":t[9]||=e=>l.value.info.firmwareVersion=e,modelModifiers:{trim:!0},name:`info.firmwareVersion`,as:`div`,class:`flex flex-col field-gap`},{default:F(({field:t,errors:n})=>[V(`label`,hl,q(e.$t(`components.form.label.firmware_version`)),1),H(i,null,{default:F(()=>[H(r,Ot(t,{invalid:n.length>0,loading:U(O),type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`info.firmwareVersion`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),H(U(Z),{modelValue:l.value.info.supportUrl,"onUpdate:modelValue":t[10]||=e=>l.value.info.supportUrl=e,modelModifiers:{trim:!0},name:`info.supportUrl`,as:`div`,class:`flex flex-col field-gap`},{default:F(({field:t,errors:n})=>[V(`label`,gl,q(e.$t(`components.form.label.support_url`)),1),H(i,null,{default:F(()=>[H(r,Ot(t,{invalid:n.length>0,loading:U(O),type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`info.supportUrl`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`])])]),_:1})]),_:1}),H(p,{value:`interface`},{default:F(()=>[H(n,{class:`px-0`},{default:F(()=>[V(`span`,_l,q(e.$t(`components.camera_options.interface`)),1)]),_:1}),H(f,{pt:{content:{class:`px-0`}}},{default:F(()=>[V(`div`,vl,[H(U(Z),{"model-value":l.value.interfaceSettings.streamingMode,name:`interfaceSettings.streamingMode`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,yl,q(e.$t(`components.form.label.streaming_mode`)),1),H(i,null,{default:F(()=>[H(a,{"model-value":l.value.interfaceSettings.streamingMode,options:U(w),invalid:n.length>0,loading:U(O),type:`text`,onValueChange:t[11]||=e=>l.value.interfaceSettings.streamingMode=e},null,8,[`model-value`,`options`,`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`interfaceSettings.streamingMode`,class:`cui-input-error`})]),_:1}),n.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.streaming_mode`)),1)]),_:1}))]),_:1},8,[`model-value`]),H(U(Z),{"model-value":l.value.interfaceSettings.streamingSource,name:`interfaceSettings.streamingSource`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,bl,q(e.$t(`components.form.label.streaming_source`)),1),H(i,null,{default:F(()=>[H(a,{"model-value":l.value.interfaceSettings.streamingSource,options:U(ee),invalid:n.length>0,loading:U(O),type:`text`,onValueChange:t[12]||=e=>l.value.interfaceSettings.streamingSource=e},null,8,[`model-value`,`options`,`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`interfaceSettings.streamingSource`,class:`cui-input-error`})]),_:1}),n.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.streaming_source`)),1)]),_:1}))]),_:1},8,[`model-value`]),H(U(Z),{"model-value":l.value.interfaceSettings.aspectRatio,name:`interfaceSettings.aspectRatio`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,xl,q(e.$t(`components.form.label.aspect_ratio`)),1),H(i,null,{default:F(()=>[H(a,{"model-value":l.value.interfaceSettings.aspectRatio,options:U(T),invalid:n.length>0,loading:U(O),type:`text`,onValueChange:t[13]||=e=>l.value.interfaceSettings.aspectRatio=e},null,8,[`model-value`,`options`,`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`interfaceSettings.aspectRatio`,class:`cui-input-error`})]),_:1}),n.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.aspect_ratio`)),1)]),_:1}))]),_:1},8,[`model-value`])])]),_:1})]),_:1}),H(p,{value:`detection`},{default:F(()=>[H(n,{class:`px-0`},{default:F(()=>[V(`span`,Sl,q(e.$t(`components.camera_options.detection`)),1)]),_:1}),H(f,{pt:{content:{class:`px-0`}}},{default:F(()=>[V(`div`,Cl,[V(`div`,wl,[H(U(Z),{"model-value":l.value.detectionSettings?.snooze,value:!0,"unchecked-value":!1,type:`checkbox`,name:`detectionSettings.snooze`,as:`div`,class:`flex flex-col field-gap cui-toggle-switch`},{default:F(({field:n,errors:r})=>[V(`div`,Tl,[V(`div`,El,[V(`label`,Dl,q(e.$t(`components.form.label.snooze`)),1),H(u,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-switch-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.snooze_camera`)),1)]),_:1}),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`detectionSettings.snooze`,class:`cui-input-switch-error`})]),_:1})]),H(d,Ot({"model-value":l.value.detectionSettings?.snooze},n,{invalid:r.length>0,loading:U(O),class:`ml-auto shrink-0`,onValueChange:t[14]||=e=>{l.value.detectionSettings&&(l.value.detectionSettings.snooze=e)}}),null,16,[`model-value`,`invalid`,`loading`])])]),_:1},8,[`model-value`])]),H(U(Z),{"model-value":l.value.detectionSettings.motion.resolution,name:`detectionSettings.motion.resolution`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,Ol,q(e.$t(`components.form.label.motion_resolution`)),1),H(i,null,{default:F(()=>[H(a,{"model-value":l.value.detectionSettings.motion.resolution,options:U(E),invalid:n.length>0,loading:U(O),type:`text`,onValueChange:t[15]||=e=>l.value.detectionSettings.motion.resolution=e},null,8,[`model-value`,`options`,`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`detectionSettings.motion.resolution`,class:`cui-input-error`})]),_:1}),n.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.motion_resolution`)),1)]),_:1}))]),_:1},8,[`model-value`]),H(U(Z),{"model-value":l.value.detectionSettings.motion.timeout,name:`detectionSettings.motion.timeout`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,kl,q(e.$t(`components.form.label.motion_timeout`)),1),H(i,null,{default:F(()=>[H(m,{"model-value":l.value.detectionSettings.motion.timeout,invalid:n.length>0,loading:U(O),"show-buttons":``,min:10,"use-grouping":!1,onValueChange:t[16]||=e=>l.value.detectionSettings.motion.timeout=e??void 0,onInput:t[17]||=e=>l.value.detectionSettings.motion.timeout=e.value??void 0},null,8,[`model-value`,`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`detectionSettings.motion.timeout`,class:`cui-input-error`})]),_:1}),n.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.motion_timeout`)),1)]),_:1}))]),_:1},8,[`model-value`]),H(U(Z),{"model-value":l.value.detectionSettings.object.confidence,name:`detectionSettings.object.confidence`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,Al,q(e.$t(`components.form.label.confidence`)),1),H(i,null,{default:F(()=>[H(m,{"model-value":l.value.detectionSettings.object.confidence,invalid:n.length>0,loading:U(O),"show-buttons":``,step:.01,max:1,mode:`decimal`,"use-grouping":!1,onValueChange:t[18]||=e=>l.value.detectionSettings.object.confidence=e??void 0,onInput:t[19]||=e=>l.value.detectionSettings.object.confidence=e.value??void 0},null,8,[`model-value`,`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`detectionSettings.object.confidence`,class:`cui-input-error`})]),_:1}),n.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.confidence`)),1)]),_:1}))]),_:1},8,[`model-value`]),H(U(Z),{"model-value":l.value.detectionSettings.audio.minDecibels,name:`detectionSettings.audio.minDecibels`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,jl,q(e.$t(`components.form.label.audio_min_decibels`)),1),H(i,null,{default:F(()=>[H(m,{"model-value":l.value.detectionSettings.audio.minDecibels,invalid:n.length>0,loading:U(O),"show-buttons":``,step:1,min:-100,max:0,mode:`decimal`,"use-grouping":!1,onValueChange:t[20]||=e=>l.value.detectionSettings.audio.minDecibels=e??void 0,onInput:t[21]||=e=>l.value.detectionSettings.audio.minDecibels=e.value??void 0},null,8,[`model-value`,`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`detectionSettings.audio.minDecibels`,class:`cui-input-error`})]),_:1}),n.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.audio_min_decibels`)),1)]),_:1}))]),_:1},8,[`model-value`]),H(U(Z),{"model-value":l.value.detectionSettings.audio.timeout,name:`detectionSettings.audio.timeout`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,Ml,q(e.$t(`components.form.label.audio_timeout`)),1),H(i,null,{default:F(()=>[H(m,{"model-value":l.value.detectionSettings.audio.timeout,invalid:n.length>0,loading:U(O),"show-buttons":``,min:10,"use-grouping":!1,onValueChange:t[22]||=e=>l.value.detectionSettings.audio.timeout=e??void 0,onInput:t[23]||=e=>l.value.detectionSettings.audio.timeout=e.value??void 0},null,8,[`model-value`,`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`detectionSettings.audio.timeout`,class:`cui-input-error`})]),_:1}),n.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.audio_timeout`)),1)]),_:1}))]),_:1},8,[`model-value`]),H(U(Z),{"model-value":l.value.detectionSettings.sensor?.timeout,name:`detectionSettings.sensor.timeout`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,Nl,q(e.$t(`components.form.label.sensor_timeout`)),1),H(i,null,{default:F(()=>[H(m,{"model-value":l.value.detectionSettings.sensor?.timeout,invalid:n.length>0,loading:U(O),"show-buttons":``,min:10,"use-grouping":!1,onValueChange:t[24]||=e=>{l.value.detectionSettings.sensor||(l.value.detectionSettings.sensor={timeout:30,triggers:[]}),l.value.detectionSettings.sensor.timeout=e??30},onInput:t[25]||=e=>{l.value.detectionSettings.sensor||(l.value.detectionSettings.sensor={timeout:30,triggers:[]}),l.value.detectionSettings.sensor.timeout=e.value??30}},null,8,[`model-value`,`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`detectionSettings.sensor.timeout`,class:`cui-input-error`})]),_:1}),n.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.sensor_timeout`)),1)]),_:1}))]),_:1},8,[`model-value`]),H(U(Z),{"model-value":l.value.detectionSettings.sensor?.triggers??[],name:`detectionSettings.sensor.triggers`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:t})=>[V(`label`,Pl,q(e.$t(`components.form.label.sensor_triggers`)),1),H(g,{"model-value":U(ae),invalid:t.length>0,options:U(re),"option-label":`label`,"option-value":`value`,placeholder:e.$t(`components.form.hint.sensor_triggers_placeholder`),class:`w-full`,"show-toggle-all":!1,"onUpdate:modelValue":se},null,8,[`model-value`,`invalid`,`options`,`placeholder`]),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`detectionSettings.sensor.triggers`,class:`cui-input-error`})]),_:1}),t.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.sensor_triggers`)),1)]),_:1}))]),_:1},8,[`model-value`])])]),_:1})]),_:1}),H(p,{value:`ptzAutotrack`},{default:F(()=>[H(n,{class:`px-0`},{default:F(()=>[V(`span`,Fl,q(e.$t(`components.camera_options.ptz_autotrack`)),1)]),_:1}),H(f,{pt:{content:{class:`px-0`}}},{default:F(()=>[V(`div`,Il,[U(ne)?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-banner cui-banner-warn`},{default:F(()=>[H(_,{class:`w-4 h-4 shrink-0 inline-block mr-1`}),J(` `+q(e.$t(`components.form.hint.ptz_autotrack_requires`)),1)]),_:1})),H(U(Z),{"model-value":l.value.ptzAutotrack?.enabled,value:!0,"unchecked-value":!1,type:`checkbox`,name:`ptzAutotrack.enabled`,as:`div`,class:`flex flex-col field-gap cui-toggle-switch`},{default:F(({field:n,errors:r})=>[V(`div`,Ll,[V(`div`,Rl,[V(`label`,zl,q(e.$t(`components.form.label.ptz_autotrack_enabled`)),1),H(u,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-switch-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.ptz_autotrack`)),1)]),_:1}),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`ptzAutotrack.enabled`,class:`cui-input-switch-error`})]),_:1})]),H(d,Ot({"model-value":l.value.ptzAutotrack?.enabled},n,{invalid:r.length>0,loading:U(O),disabled:!U(ne),class:`ml-auto shrink-0`,onValueChange:t[26]||=e=>{l.value.ptzAutotrack&&(l.value.ptzAutotrack.enabled=e)}}),null,16,[`model-value`,`invalid`,`loading`,`disabled`])])]),_:1},8,[`model-value`]),l.value.ptzAutotrack?.enabled&&U(ne)?(R(),G(I,{key:1},[H(U(Z),{"model-value":l.value.ptzAutotrack?.targetLabels,name:`ptzAutotrack.targetLabels`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,Bl,q(e.$t(`components.form.label.ptz_autotrack_target_labels`)),1),H(g,{"model-value":l.value.ptzAutotrack?.targetLabels,options:U(D),"option-label":`label`,"option-value":`value`,invalid:n.length>0,loading:U(O),class:`w-full`,onValueChange:t[27]||=e=>{l.value.ptzAutotrack&&(l.value.ptzAutotrack.targetLabels=e)}},null,8,[`model-value`,`options`,`invalid`,`loading`]),H(u,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.ptz_autotrack_target_labels`)),1)]),_:1})]),_:1},8,[`model-value`]),H(U(Z),{"model-value":l.value.ptzAutotrack?.minConfidence,name:`ptzAutotrack.minConfidence`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,Vl,q(e.$t(`components.form.label.ptz_autotrack_min_confidence`)),1),H(m,{"model-value":l.value.ptzAutotrack?.minConfidence,min:.3,max:1,step:.05,"min-fraction-digits":2,"max-fraction-digits":2,invalid:n.length>0,loading:U(O),class:`w-full`,onValueChange:t[28]||=e=>{l.value.ptzAutotrack&&e!=null&&(l.value.ptzAutotrack.minConfidence=e)}},null,8,[`model-value`,`invalid`,`loading`]),H(u,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.ptz_autotrack_min_confidence`)),1)]),_:1})]),_:1},8,[`model-value`]),H(U(Z),{"model-value":l.value.ptzAutotrack?.triggerDeadZone,name:`ptzAutotrack.triggerDeadZone`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,Hl,q(e.$t(`components.form.label.ptz_autotrack_trigger_dead_zone`)),1),H(m,{"model-value":l.value.ptzAutotrack?.triggerDeadZone,min:0,max:.3,step:.01,"min-fraction-digits":2,"max-fraction-digits":2,invalid:n.length>0,loading:U(O),class:`w-full`,onValueChange:t[29]||=e=>{l.value.ptzAutotrack&&e!=null&&(l.value.ptzAutotrack.triggerDeadZone=e)}},null,8,[`model-value`,`invalid`,`loading`]),H(u,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.ptz_autotrack_trigger_dead_zone`)),1)]),_:1})]),_:1},8,[`model-value`]),H(U(Z),{"model-value":l.value.ptzAutotrack?.returnToHome,value:!0,"unchecked-value":!1,type:`checkbox`,name:`ptzAutotrack.returnToHome`,as:`div`,class:`flex flex-col field-gap cui-toggle-switch`},{default:F(({field:n,errors:r})=>[V(`div`,Ul,[V(`div`,Wl,[V(`label`,Gl,q(e.$t(`components.form.label.ptz_autotrack_return_home`)),1),H(u,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-switch-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.ptz_autotrack_return_home`)),1)]),_:1}),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`ptzAutotrack.returnToHome`,class:`cui-input-switch-error`})]),_:1})]),H(d,Ot({"model-value":l.value.ptzAutotrack?.returnToHome},n,{invalid:r.length>0,loading:U(O),class:`ml-auto shrink-0`,onValueChange:t[30]||=e=>{l.value.ptzAutotrack&&(l.value.ptzAutotrack.returnToHome=e)}}),null,16,[`model-value`,`invalid`,`loading`])])]),_:1},8,[`model-value`]),l.value.ptzAutotrack?.returnToHome?(R(),L(U(Z),{key:0,"model-value":l.value.ptzAutotrack?.homeWaitMs,name:`ptzAutotrack.homeWaitMs`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,Kl,q(e.$t(`components.form.label.ptz_autotrack_home_wait`)),1),H(m,{"model-value":(l.value.ptzAutotrack?.homeWaitMs??0)/1e3,min:1,max:60,step:1,suffix:` s`,invalid:n.length>0,loading:U(O),class:`w-full`,onValueChange:t[31]||=e=>{l.value.ptzAutotrack&&e!=null&&(l.value.ptzAutotrack.homeWaitMs=e*1e3)}},null,8,[`model-value`,`invalid`,`loading`]),H(u,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.ptz_autotrack_home_wait`)),1)]),_:1})]),_:1},8,[`model-value`])):M(``,!0)],64)):M(``,!0)])]),_:1})]),_:1}),H(p,{value:`zones`},{default:F(()=>[H(n,{class:`px-0`},{default:F(()=>[V(`span`,ql,q(e.$t(`components.camera_options.zones`)),1)]),_:1}),H(f,{pt:{content:{class:`px-0`}}},{default:F(()=>[V(`div`,Jl,[H(s,{fluid:``,class:`cui-button-medium`,loading:U(O),label:e.$t(`components.form.button.edit_zones`),onClick:t[32]||=e=>ue(U(h).detectionZones)},null,8,[`loading`,`label`])])]),_:1})]),_:1}),H(p,{value:`snapshot`},{default:F(()=>[H(n,{class:`px-0`},{default:F(()=>[V(`span`,Yl,q(e.$t(`components.camera_options.snapshot`)),1)]),_:1}),H(f,{pt:{content:{class:`px-0`}}},{default:F(()=>[V(`div`,Xl,[V(`div`,Zl,[H(U(Z),{"model-value":l.value.snapshotSettings.autoRefresh,value:!0,"unchecked-value":!1,type:`checkbox`,name:`snapshotSettings.autoRefresh`,as:`div`,class:`flex flex-col field-gap cui-toggle-switch`},{default:F(({field:n,errors:r})=>[V(`div`,Ql,[V(`div`,$l,[V(`label`,eu,q(e.$t(`components.form.label.auto_refresh`)),1),H(u,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-switch-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.auto_refresh`)),1)]),_:1}),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`snapshotSettings.autoRefresh`,class:`cui-input-switch-error`})]),_:1})]),H(d,Ot({"model-value":l.value.snapshotSettings.autoRefresh},n,{invalid:r.length>0,loading:U(O),class:`ml-auto shrink-0`,onValueChange:t[33]||=e=>l.value.snapshotSettings.autoRefresh=e}),null,16,[`model-value`,`invalid`,`loading`])])]),_:1},8,[`model-value`])]),H(U(Z),{"model-value":l.value.snapshotSettings.ttl,name:`snapshotSettings.ttl`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,tu,q(e.$t(`components.form.label.cache_time`)),1),H(i,null,{default:F(()=>[H(m,{"model-value":l.value.snapshotSettings.ttl,invalid:n.length>0,loading:U(O),min:10,"show-buttons":``,"use-grouping":!1,onValueChange:t[34]||=e=>l.value.snapshotSettings.ttl=e??10,onInput:t[35]||=e=>l.value.snapshotSettings.ttl=e.value??10},null,8,[`model-value`,`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`snapshotSettings.ttl`,class:`cui-input-error`})]),_:1}),n.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.cache_time`)),1)]),_:1}))]),_:1},8,[`model-value`]),H(U(Z),{"model-value":l.value.snapshotSettings.interval,name:`snapshotSettings.interval`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,nu,q(e.$t(`components.form.label.refresh_interval`)),1),H(i,null,{default:F(()=>[H(m,{"model-value":l.value.snapshotSettings.interval,invalid:n.length>0,loading:U(O),min:10,max:60,"show-buttons":``,"use-grouping":!1,onValueChange:t[36]||=e=>l.value.snapshotSettings.interval=e??30,onInput:t[37]||=e=>l.value.snapshotSettings.interval=e.value??30},null,8,[`model-value`,`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`snapshotSettings.interval`,class:`cui-input-error`})]),_:1}),n.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.refresh_interval`)),1)]),_:1}))]),_:1},8,[`model-value`])])]),_:1})]),_:1}),H(p,{value:`frameworker`},{default:F(()=>[H(n,{class:`px-0`},{default:F(()=>[V(`span`,ru,q(e.$t(`components.camera_options.frame_worker`)),1)]),_:1}),H(f,{pt:{content:{class:`px-0`}}},{default:F(()=>[V(`div`,iu,[H(U(Z),{"model-value":l.value.frameWorkerSettings.fps,name:`frameWorkerSettings.fps`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:n})=>[V(`label`,au,q(e.$t(`components.form.label.fps`)),1),H(i,null,{default:F(()=>[H(m,{"model-value":l.value.frameWorkerSettings.fps,invalid:n.length>0,loading:U(O),min:0,"show-buttons":``,"use-grouping":!1,onValueChange:t[38]||=e=>l.value.frameWorkerSettings.fps=e??void 0,onInput:t[39]||=e=>l.value.frameWorkerSettings.fps=e.value??void 0},null,8,[`model-value`,`invalid`,`loading`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`frameWorkerSettings.fps`,class:`cui-input-error`})]),_:1}),n.length?M(``,!0):(R(),L(u,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.frameworker_fps`)),1)]),_:1}))]),_:1},8,[`model-value`])])]),_:1})]),_:1})]),_:1})}}}),su={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function cu(e,t){return R(),G(`svg`,su,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M6.97.47a.75.75 0 0 1 1.06 0l1.75 1.75a.75.75 0 0 1 0 1.06L8.03 5.03a.75.75 0 0 1-1.06-1.06l.43-.43a4.5 4.5 0 0 0-2.28 7.918a.75.75 0 0 1-.961 1.152A6 6 0 0 1 7.463 2.024L6.97 1.53a.75.75 0 0 1 0-1.06m3.815 3.016a.75.75 0 0 1 1.056-.096a6 6 0 0 1-3.304 10.586l.493.494a.75.75 0 1 1-1.06 1.06l-1.75-1.75a.75.75 0 0 1 0-1.06l1.75-1.75a.75.75 0 0 1 1.06 1.06l-.43.43a4.5 4.5 0 0 0 2.28-7.918a.75.75 0 0 1-.095-1.056`},null,-1)]])}var lu=z({name:`fluent-arrow-sync-16-filled`,render:cu}),uu={class:`flex items-center justify-between`},du={class:`cui-label`},fu={class:`flex flex-col field-gap`},pu={class:`cui-label`},mu={class:`cui-label`},hu={class:`cui-label`},gu={key:0,class:`flex flex-col field-gap`},_u={class:`cui-label`},vu={key:1,class:`flex flex-col field-gap`},yu={class:`cui-label`},bu=X({__name:`CameraSource`,props:{cameraId:{},cameraName:{},source:{},loading:{type:Boolean}},setup(e){let t=new wr,n=e,{t:r}=ce(),{getSourceStatus:i,connect:a}=ti(),{copy:o}=Me({legacy:!0}),s=Rt(),l=Ue(),u=[`probe`,`preload`],{cameraId:d,cameraName:f,source:p,loading:m}=Nt(n),h=K(!1),{data:g,isBusy:_}=t.probeCameraSourceQuery(f.value,p.value.name,{video:!0,audio:!0,microphone:!0});a();let v=B(()=>i(d.value,p.value.name)),y=B(()=>{switch(v.value){case`connected`:return`success`;case`connecting`:return`warn`;case`error`:return`danger`;default:return`secondary`}}),b=B(()=>{switch(v.value){case`connected`:return r(`components.camera_table.online`);case`connecting`:return r(`components.camera_table.connecting`);case`error`:return r(`components.camera_table.error`);default:return r(`components.camera_table.idle`)}}),x=B(()=>!!(m.value||_.value)),S=B(()=>g.value?.probe.consumers.filter(e=>!u.includes(e.format_name)).length||0),C=B(()=>ee(`video`)),w=B(()=>ee(`audio`));function ee(e){let t=(g.value?.probe.producers??[]).flatMap(e=>e.receivers??[]).filter(t=>t.codec.codec_type===e).map(e=>e.codec.codec_name);return[...new Set(t)]}async function T(){if(!h.value){h.value=!0;try{let e=await Cr({cameraname:f.value,sourcename:p.value.name,probeConfig:{video:!0,audio:!0,microphone:!0},force:!0});s.setQueryData([`cameras`,f.value,`probe`,p.value.name],e)}catch{l.add({severity:`error`,detail:r(`components.toast.probe_failed`),life:3e3})}finally{h.value=!1}}}return(e,t)=>{let n=qn,r=ke,i=c,a=zn,s=Vn,l=sr,u=Tr,d=Ln;return R(),G(I,null,[V(`div`,uu,[V(`label`,du,q(e.$t(`components.form.label.stream_status`)),1),H(n,{severity:U(y),value:U(b)},null,8,[`severity`,`value`])]),V(`div`,fu,[V(`label`,pu,q(e.$t(`components.form.label.connections`)),1),H(s,null,{default:F(()=>[H(r,{value:U(S),loading:U(x),readonly:``,type:`text`},null,8,[`value`,`loading`]),H(a,null,{default:F(()=>[bt((R(),L(i,{severity:`secondary`,text:``,loading:U(h),disabled:U(x),onClick:T},{icon:F(()=>[H(U(lu),{class:`w-4 h-4`})]),_:1},8,[`loading`,`disabled`])),[[d,e.$t(`components.form.button.reload`),void 0,{left:!0}]])]),_:1})]),_:1}),H(l,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.connections`)),1)]),_:1})]),(R(!0),G(I,null,P(U(C),(t,n)=>(R(),G(`div`,{key:n,class:`flex flex-col field-gap`},[V(`label`,mu,q(e.$t(`components.form.label.video_codec`)),1),H(s,null,{default:F(()=>[H(r,{"model-value":t,loading:U(x),readonly:``,type:`text`},null,8,[`model-value`,`loading`])]),_:2},1024),n===U(C).length-1?(R(),L(l,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.video_codec`)),1)]),_:1})):M(``,!0)]))),128)),(R(!0),G(I,null,P(U(w),(t,n)=>(R(),G(`div`,{key:n,class:`flex flex-col field-gap`},[V(`label`,hu,q(e.$t(`components.form.label.audio_codec`)),1),H(s,null,{default:F(()=>[H(r,{"model-value":t,loading:U(x),readonly:``,type:`text`},null,8,[`model-value`,`loading`])]),_:2},1024),n===U(w).length-1?(R(),L(l,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.audio_codec`)),1)]),_:1})):M(``,!0)]))),128)),U(p).role===`snapshot`?M(``,!0):(R(),G(`div`,gu,[V(`label`,_u,q(e.$t(`components.form.label.rtsp_url`)),1),H(s,null,{default:F(()=>[H(r,{"model-value":U(g)?.rtspUrl,loading:U(x),readonly:``,type:`text`},null,8,[`model-value`,`loading`]),H(a,null,{default:F(()=>[H(u,{"action-text":e.$t(`components.form.tooltip.copied`),icon:U(Er),"button-props":{severity:`secondary`,disabled:!U(g)?.rtspUrl,loading:U(x),text:!0},onAction:t[0]||=e=>U(o)(U(g).rtspUrl)},null,8,[`action-text`,`icon`,`button-props`])]),_:1})]),_:1}),H(l,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.rtsp_url`)),1)]),_:1})])),U(p).role===`snapshot`?M(``,!0):(R(),G(`div`,vu,[V(`label`,yu,q(e.$t(`components.form.label.onvif_url`)),1),H(s,null,{default:F(()=>[H(r,{"model-value":U(g)?.onvifUrl,loading:U(x),readonly:``,type:`text`},null,8,[`model-value`,`loading`]),H(a,null,{default:F(()=>[H(u,{"action-text":e.$t(`components.form.tooltip.copied`),icon:U(Er),"button-props":{severity:`secondary`,disabled:!U(g)?.onvifUrl,loading:U(x),text:!0},onAction:t[1]||=e=>U(o)(U(g).onvifUrl)},null,8,[`action-text`,`icon`,`button-props`])]),_:1})]),_:1}),H(l,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.onvif_url`)),1)]),_:1})]))],64)}}}),xu={class:`flex gap-2 items-center w-full`},Su={class:`text-color font-normal`},Cu={class:`flex flex-col gap-6`},wu=[`for`],Tu=[`for`],Eu={class:`w-full flex flex-col gap-2`},Du={class:`flex items-center gap-4`},Ou={class:`flex flex-col field-switch-gap`},ku=[`for`],Au={class:`flex items-center gap-4`},ju={class:`flex flex-col field-switch-gap`},Mu=[`for`],Nu={class:`flex items-center gap-4`},Pu={class:`flex flex-col field-switch-gap`},Fu=[`for`],Iu=[`for`],Lu={class:`flex flex-col gap-6`},Ru={class:`flex flex-col field-gap`},zu=[`for`],Bu={class:`w-full flex items-center justify-center my-3`},Vu=X({__name:`Sources`,props:kt({camera:{},cameraDevice:{},loading:{type:Boolean},latestSnapshotSrc:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:kt([`close`],[`update:modelValue`]),setup(e){let t=e,n=ut(e,`modelValue`),{t:r}=ce(),{camera:i,loading:a}=Nt(t),o=K([`high-resolution`,`mid-resolution`,`low-resolution`,`snapshot`]);function s(e){return e.name.replace(/ /g,`_`).toLowerCase()}function l(e){let t=[{label:r(`components.form.label.none`),value:void 0}],i=n.value.sources[e],a=n.value;for(let e of a.sources)e.role!==`snapshot`&&e._id!==i._id&&(!e.name||!e._id||t.push({label:e.name,value:e._id}));return t}function u(e){return n.value.sources[e].childSourceId}function d(e,t){t==null?n.value.sources[e].childSourceId=null:n.value.sources[e].childSourceId=t}function f(e){n.value.sources[e].urls.push(``)}function p(e){n.value.sources.splice(e,1)}function m(e,t){n.value.sources[e].urls.splice(t,1)}function h(){n.value&&n.value.sources.push({_id:``,name:``,role:null,urls:[],useForSnapshot:!1,hotMode:!0,preload:!0})}return(e,t)=>{let r=kn,g=c,_=Bn,v=ke,y=Vn,b=sr,x=bu,S=Xn,C=Rn,w=zn,ee=Zn,T=Nn,E=Pn,te=Ur;return R(),G(I,null,[H(E,{multiple:``,class:`p-4`},{default:F(()=>[(R(!0),G(I,null,P(n.value.sources,(t,c)=>(R(),L(T,{key:c,value:c},{default:F(()=>[H(_,{class:Y({"px-0 pt-0":c===0,"px-0":c!==0})},{default:F(()=>[V(`div`,xu,[V(`span`,Su,q(e.$t(`components.camera_options.source`)+`: `+s(t)),1),H(g,{text:``,rounded:``,loading:U(a),disabled:n.value.sources.length<2,severity:`danger`,class:`cui-icon-md ml-auto mr-2`,onClick:e=>p(c)},{icon:F(()=>[H(r,{width:`100%`,height:`100%`})]),_:1},8,[`loading`,`disabled`,`onClick`])])]),_:2},1032,[`class`]),H(ee,{pt:{content:{class:`px-0`}}},{default:F(()=>[V(`div`,Cu,[H(U(Z),{modelValue:t.name,"onUpdate:modelValue":e=>t.name=e,modelModifiers:{trim:!0},name:`sources[${c}].name`,as:`div`,class:`flex flex-col field-gap`},{default:F(({field:n,errors:r})=>[V(`label`,{for:`sources[${c}].name`,class:`cui-label`},q(e.$t(`components.form.label.source_name`)),9,wu),H(y,null,{default:F(()=>[H(v,Ot({ref_for:!0},n,{invalid:r.length>0,loading:U(a),readonly:U(i).sources.some(e=>e.name===t.name),type:`text`}),null,16,[`invalid`,`loading`,`readonly`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`sources[${c}].name`,class:`cui-input-error`},null,8,[`name`])]),_:2},1024),r.length?M(``,!0):(R(),L(b,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.source_name`)),1)]),_:1}))]),_:2},1032,[`modelValue`,`onUpdate:modelValue`,`name`]),t._id?(R(),L(x,{key:0,"camera-id":U(i)._id,"camera-name":U(i).name,source:t,loading:U(a)},null,8,[`camera-id`,`camera-name`,`source`,`loading`])):M(``,!0),H(U(Z),{"model-value":t.role,name:`sources[${c}].role`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:r})=>[V(`label`,{for:`sources[${c}].role`,class:`cui-label`},q(e.$t(`components.form.label.source_role`)),9,Tu),H(y,null,{default:F(()=>[H(S,{"model-value":t.role,options:U(o).filter(e=>!n.value.sources.some(n=>n.role===e&&n._id!==t._id)),invalid:r.length>0,loading:U(a),onValueChange:e=>t.role=e},null,8,[`model-value`,`options`,`invalid`,`loading`,`onValueChange`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`sources[${c}].role`,class:`cui-input-error`},null,8,[`name`])]),_:2},1024),r.length?M(``,!0):(R(),L(b,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.source_role`)),1)]),_:1}))]),_:2},1032,[`model-value`,`name`]),V(`div`,Eu,[t.role!==`snapshot`&&n.value.sources.length>1?(R(),L(U(Z),{key:0,"model-value":t.useForSnapshot,value:!0,"unchecked-value":!1,type:`checkbox`,name:`sources[${c}].useForSnapshot`,as:`div`,class:`flex flex-col field-gap cui-toggle-switch`},{default:F(({field:r,errors:i})=>[V(`div`,Du,[V(`div`,Ou,[V(`label`,{for:`sources[${c}].useForSnapshot`,class:`cui-label-switch`},q(e.$t(`components.form.label.use_for_snapshot`)),9,ku),H(b,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-switch-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.use_for_snapshot`)),1)]),_:1}),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`sources[${c}].useForSnapshot`,class:`cui-input-switch-error`},null,8,[`name`])]),_:2},1024)]),H(C,Ot({"model-value":t.useForSnapshot},{ref_for:!0},r,{invalid:i.length>0,loading:U(a),disabled:n.value.sources.some(e=>(e.useForSnapshot||e.role===`snapshot`)&&e._id!==t._id),class:`ml-auto shrink-0`,onValueChange:e=>t.useForSnapshot=e}),null,16,[`model-value`,`invalid`,`loading`,`disabled`,`onValueChange`])])]),_:2},1032,[`model-value`,`name`])):M(``,!0),t.role===`snapshot`?M(``,!0):(R(),L(U(Z),{key:1,"model-value":t.hotMode,value:!0,"unchecked-value":!1,type:`checkbox`,name:`sources[${c}].hotMode`,as:`div`,class:`flex flex-col field-gap cui-toggle-switch`},{default:F(({field:n,errors:r})=>[V(`div`,Au,[V(`div`,ju,[V(`label`,{for:`sources[${c}].hotMode`,class:`cui-label-switch`},q(e.$t(`components.form.label.hot_mode`)),9,Mu),H(b,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-switch-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.hot_mode`)),1)]),_:1}),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`sources[${c}].hotMode`,class:`cui-input-switch-error`},null,8,[`name`])]),_:2},1024)]),H(C,Ot({"model-value":t.hotMode},{ref_for:!0},n,{invalid:r.length>0,loading:U(a),class:`ml-auto shrink-0`,onValueChange:e=>t.hotMode=e}),null,16,[`model-value`,`invalid`,`loading`,`onValueChange`])])]),_:2},1032,[`model-value`,`name`])),t.role===`snapshot`?M(``,!0):(R(),L(U(Z),{key:2,"model-value":t.preload,value:!0,"unchecked-value":!1,type:`checkbox`,name:`sources[${c}].preload`,as:`div`,class:`flex flex-col field-gap cui-toggle-switch`},{default:F(({field:n,errors:r})=>[V(`div`,Nu,[V(`div`,Pu,[V(`label`,{for:`sources[${c}].preload`,class:`cui-label-switch`},q(e.$t(`components.form.label.preload`)),9,Fu),H(b,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-switch-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.preload`)),1)]),_:1}),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`sources[${c}].preload`,class:`cui-input-switch-error`},null,8,[`name`])]),_:2},1024)]),H(C,Ot({"model-value":t.preload},{ref_for:!0},n,{invalid:r.length>0,loading:U(a),class:`ml-auto shrink-0`,onValueChange:e=>t.preload=e}),null,16,[`model-value`,`invalid`,`loading`,`onValueChange`])])]),_:2},1032,[`model-value`,`name`]))]),t.role===`snapshot`?M(``,!0):(R(),L(U(Z),{key:1,"model-value":u(c),name:`sources[${c}].childSourceId`,as:`div`,class:`flex flex-col field-gap`},{default:F(({errors:t})=>[V(`label`,{for:`sources[${c}].childSourceId`,class:`cui-label`},q(e.$t(`components.form.label.pip_source`)),9,Iu),H(y,null,{default:F(()=>[H(S,{"model-value":u(c),options:l(c),"option-label":`label`,"option-value":`value`,invalid:t.length>0,loading:U(a),placeholder:e.$t(`components.form.label.none`),"show-clear":``,onValueChange:e=>d(c,e)},null,8,[`model-value`,`options`,`invalid`,`loading`,`placeholder`,`onValueChange`])]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`sources[${c}].childSourceId`,class:`cui-input-error`},null,8,[`name`])]),_:2},1024),t.length?M(``,!0):(R(),L(b,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.pip_source`)),1)]),_:1}))]),_:2},1032,[`model-value`,`name`])),V(`div`,Lu,[V(`div`,Ru,[V(`label`,{for:`sources[${c}].urls[]`,class:`cui-label`},q(e.$t(`components.form.label.sources`)),9,zu),H(b,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:F(()=>[J(q(e.$t(`components.form.hint.source_urls`)),1)]),_:1})]),(R(!0),G(I,null,P(t.urls,(e,n)=>(R(),L(U(Z),{key:n,modelValue:t.urls[n],"onUpdate:modelValue":e=>t.urls[n]=e,modelModifiers:{trim:!0},name:`sources[${c}].urls[${n}]`,as:`div`,class:`flex flex-col field-gap`},{default:F(({field:e,errors:i})=>[H(y,null,{default:F(()=>[H(v,Ot({ref_for:!0},e,{invalid:i.length>0,loading:U(a),type:`text`}),null,16,[`invalid`,`loading`]),t.urls.length>1?(R(),L(w,{key:0},{default:F(()=>[H(g,{text:``,severity:`secondary`,loading:U(a),class:`cui-icon-md`,onClick:e=>m(c,n)},{icon:F(()=>[H(r,{width:`100%`,height:`100%`})]),_:1},8,[`loading`,`onClick`])]),_:2},1024)):M(``,!0)]),_:2},1024),H($,{name:`fade`},{default:F(()=>[H(U(N),{name:`sources[${c}].urls[${n}]`,class:`cui-input-error`},null,8,[`name`])]),_:2},1024)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`,`name`]))),128)),H(g,{loading:U(a),label:e.$t(`components.form.button.add_source`),class:`ml-auto cui-button-medium`,onClick:e=>f(c)},null,8,[`loading`,`label`,`onClick`])])])]),_:2},1024)]),_:2},1032,[`value`]))),128))]),_:1}),V(`div`,Bu,[H(g,{text:``,rounded:``,loading:U(a),class:`cui-icon-xl`,onClick:h},{icon:F(()=>[H(te,{width:`100%`,height:`100%`})]),_:1},8,[`loading`])])],64)}}}),Hu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Uu(e,t){return R(),G(`svg`,Hu,[...t[0]||=[V(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M10 17h.01M10 7v6m4-7h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2m8-4v-4M6 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2`},null,-1)]])}var Wu=z({name:`lucide-battery-warning`,render:Uu}),Gu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ku(e,t){return R(),G(`svg`,Gu,[...t[0]||=[V(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[V(`path`,{d:`M22 14v-4M6 14v-4`}),V(`rect`,{width:`16`,height:`12`,x:`2`,y:`6`,rx:`2`})],-1)]])}var qu=z({name:`lucide-battery-low`,render:Ku}),Ju={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Yu(e,t){return R(),G(`svg`,Ju,[...t[0]||=[V(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[V(`path`,{d:`M10 14v-4m12 4v-4M6 14v-4`}),V(`rect`,{width:`16`,height:`12`,x:`2`,y:`6`,rx:`2`})],-1)]])}var Xu=z({name:`lucide-battery-medium`,render:Yu}),Zu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Qu(e,t){return R(),G(`svg`,Zu,[...t[0]||=[V(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[V(`path`,{d:`M10 10v4m4-4v4m8 0v-4M6 10v4`}),V(`rect`,{width:`16`,height:`12`,x:`2`,y:`6`,rx:`2`})],-1)]])}var $u=z({name:`lucide-battery-full`,render:Qu}),ed={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function td(e,t){return R(),G(`svg`,ed,[...t[0]||=[V(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m11 7l-3 5h4l-3 5m5.856-11H16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.935M22 14v-4M5.14 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2.936`},null,-1)]])}var nd=z({name:`lucide-battery-charging`,render:td}),rd={class:`cui-battery-info__header`},id={class:`cui-battery-info__icon`},ad={class:`cui-battery-info__info`},od={key:0,class:`cui-battery-info__label`},sd={class:`cui-battery-info__bar`},cd=hn(X({__name:`CuiBatteryInfo`,props:{level:{default:100},charging:{default:`NOT_CHARGING`},low:{type:Boolean,default:!1},label:{},disabled:{type:Boolean,default:!1},size:{default:`medium`}},setup(e){let t=e,{t:n}=ce(),{level:r,label:i,disabled:a,size:o,charging:s,low:c}=Nt(t),l=B(()=>s.value===`CHARGING`),u=B(()=>s.value===`FULL`||r.value===100),d=B(()=>c.value||r.value<=20),f=B(()=>s.value===`CHARGING`?n(`components.battery_info.charging`):s.value===`FULL`?n(`components.battery_info.fully_charged`):s.value===`NOT_CHARGEABLE`?n(`components.battery_info.not_chargeable`):r.value<=10?n(`components.battery_info.critically_low`):r.value<=20?n(`components.battery_info.low`):n(`components.battery_info.ready`)),p=B(()=>l.value?`cui-battery-info__status--charging`:u.value?`cui-battery-info__status--full`:r.value<=10?`cui-battery-info__status--critical`:d.value?`cui-battery-info__status--low`:``),m=B(()=>l.value?`cui-battery-info__level--charging`:u.value?`cui-battery-info__level--full`:r.value<=10?`cui-battery-info__level--critical`:d.value?`cui-battery-info__level--low`:``),h=B(()=>({color:`rgb(59, 130, 246)`,filter:`drop-shadow(0 0 6px rgba(59, 130, 246, 0.5))`})),g=B(()=>({color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 6px rgba(34, 197, 94, 0.5))`})),_=B(()=>({color:`rgb(34, 197, 94)`})),v=B(()=>({color:`rgb(234, 179, 8)`})),y=B(()=>({color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 6px rgba(239, 68, 68, 0.5))`})),b=B(()=>{let e=`rgb(34, 197, 94)`;return l.value?e=`rgb(59, 130, 246)`:r.value<=10?e=`rgb(239, 68, 68)`:r.value<=20&&(e=`rgb(234, 179, 8)`),{width:`${r.value}%`,backgroundColor:e}});return(e,t)=>{let n=nd,s=$u,c=Xu,u=qu,x=Wu;return R(),G(`div`,{class:Y([`cui-battery-info`,[`cui-battery-info--${U(o)}`,{"cui-battery-info--disabled":U(a),"cui-battery-info--low":U(d),"cui-battery-info--charging":U(l)}]])},[V(`div`,rd,[V(`div`,id,[U(l)?(R(),L(n,{key:0,class:`cui-battery-info__icon-svg`,style:W(U(h))},null,8,[`style`])):U(r)>=90?(R(),L(s,{key:1,class:`cui-battery-info__icon-svg`,style:W(U(g))},null,8,[`style`])):U(r)>=50?(R(),L(c,{key:2,class:`cui-battery-info__icon-svg`,style:W(U(_))},null,8,[`style`])):U(r)>=20?(R(),L(u,{key:3,class:`cui-battery-info__icon-svg`,style:W(U(v))},null,8,[`style`])):(R(),L(x,{key:4,class:`cui-battery-info__icon-svg cui-battery-info__icon-svg--critical`,style:W(U(y))},null,8,[`style`]))]),V(`div`,ad,[U(i)?(R(),G(`span`,od,q(U(i)),1)):M(``,!0),V(`span`,{class:Y([`cui-battery-info__status`,U(p)])},q(U(f)),3)]),V(`div`,{class:Y([`cui-battery-info__level`,U(m)])},q(U(r))+`%`,3)]),V(`div`,sd,[V(`div`,{class:`cui-battery-info__bar-fill`,style:W(U(b))},null,4)])],2)}}}),[[`__scopeId`,`data-v-c181f3d4`]]),ld={class:`cui-humidity-info__header`},ud={class:`cui-humidity-info__icon`},dd={class:`cui-humidity-info__info`},fd={key:0,class:`cui-humidity-info__label`},pd=hn(X({__name:`CuiHumidityInfo`,props:{current:{},label:{},disabled:{type:Boolean,default:!1},size:{default:`medium`}},setup(e){let{label:t,current:n,disabled:r,size:i}=Nt(e),a=B(()=>n.value==null?`rgb(156, 163, 175)`:n.value<30?`rgb(251, 146, 60)`:n.value<=60?`rgb(34, 197, 94)`:`rgb(59, 130, 246)`),o=B(()=>({color:a.value,filter:`drop-shadow(0 0 6px ${a.value.replace(`rgb`,`rgba`).replace(`)`,`, 0.5)`)})`})),s=B(()=>({color:a.value}));return(e,c)=>{let l=un;return R(),G(`div`,{class:Y([`cui-humidity-info`,[`cui-humidity-info--${U(i)}`,{"cui-humidity-info--disabled":U(r)}]])},[V(`div`,ld,[V(`div`,ud,[H(l,{class:`cui-humidity-info__icon-svg`,style:W(U(o))},null,8,[`style`])]),V(`div`,dd,[U(t)?(R(),G(`span`,fd,q(U(t)),1)):M(``,!0),V(`span`,{class:`cui-humidity-info__status`,style:W({color:U(a)})},q(U(n)==null?`--`:`${U(n)}%`),5)]),V(`div`,{class:`cui-humidity-info__value`,style:W(U(s))},q(U(n)==null?`--`:`${U(n)}%`),5)])],2)}}}),[[`__scopeId`,`data-v-1f41d794`]]),md={class:`cui-temperature-info__header`},hd={class:`cui-temperature-info__icon`},gd={class:`cui-temperature-info__info`},_d={key:0,class:`cui-temperature-info__label`},vd=hn(X({__name:`CuiTemperatureInfo`,props:{current:{},label:{},disabled:{type:Boolean,default:!1},size:{default:`medium`}},setup(e){let{label:t,current:n,disabled:r,size:i}=Nt(e),a=B(()=>n.value==null?`rgb(156, 163, 175)`:n.value<5?`rgb(59, 130, 246)`:n.value<15?`rgb(6, 182, 212)`:n.value<25?`rgb(34, 197, 94)`:n.value<35?`rgb(251, 146, 60)`:`rgb(239, 68, 68)`),o=B(()=>({color:a.value,filter:`drop-shadow(0 0 6px ${a.value.replace(`rgb`,`rgba`).replace(`)`,`, 0.5)`)})`})),s=B(()=>({color:a.value}));return(e,c)=>{let l=nn;return R(),G(`div`,{class:Y([`cui-temperature-info`,[`cui-temperature-info--${U(i)}`,{"cui-temperature-info--disabled":U(r)}]])},[V(`div`,md,[V(`div`,hd,[H(l,{class:`cui-temperature-info__icon-svg`,style:W(U(o))},null,8,[`style`])]),V(`div`,gd,[U(t)?(R(),G(`span`,_d,q(U(t)),1)):M(``,!0),V(`span`,{class:`cui-temperature-info__status`,style:W({color:U(a)})},q(U(n)==null?`--`:`${U(n)}°C`),5)]),V(`div`,{class:`cui-temperature-info__value`,style:W(U(s))},q(U(n)==null?`--`:`${U(n)}°C`),5)])],2)}}}),[[`__scopeId`,`data-v-0edddec9`]]),yd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function bd(e,t){return R(),G(`svg`,yd,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M20 9v11h-2v-9H2v9H0V9l10-4zm-3 3H3v2h14zm0 3H3v2h14zm5 0v-5h2v5zm0 4v-2h2v2z`},null,-1)]])}var xd=z({name:`mdi-garage-alert-variant`,render:bd}),Sd=function(e){return e[e.Open=0]=`Open`,e[e.Closed=1]=`Closed`,e[e.Opening=2]=`Opening`,e[e.Closing=3]=`Closing`,e[e.Stopped=4]=`Stopped`,e}({}),Cd=function(e){return e[e.Open=0]=`Open`,e[e.Closed=1]=`Closed`,e}({}),wd={currentState:1,targetState:1,obstructionDetected:!1,disabled:!1,size:`medium`},Td={class:`cui-garage-control__header`},Ed={class:`cui-garage-control__icon`},Dd={key:3,class:`cui-garage-control__obstruction`},Od={class:`cui-garage-control__info`},kd={key:0,class:`cui-garage-control__label`},Ad=hn(X({__name:`CuiGarageControl`,props:Mt({currentState:{},targetState:{},obstructionDetected:{type:Boolean},label:{},disabled:{type:Boolean},size:{}},wd),emits:[`update:targetState`],setup(e,{emit:t}){let n=e,r=t,{t:i}=ce(),{currentState:a}=Nt(n),o=B(()=>a.value===Sd.Open||a.value===Sd.Opening),s=B(()=>{switch(a.value){case Sd.Open:return i(`components.garage_control.open`);case Sd.Closed:return i(`components.garage_control.closed`);case Sd.Opening:return i(`components.garage_control.opening`);case Sd.Closing:return i(`components.garage_control.closing`);case Sd.Stopped:return i(`components.garage_control.stopped`);default:return``}}),c=B(()=>{switch(a.value){case Sd.Open:return`cui-garage-control__status--open`;case Sd.Opening:case Sd.Closing:return`cui-garage-control__status--transitioning`;case Sd.Stopped:return`cui-garage-control__status--stopped`;default:return``}}),l=B(()=>({color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 8px rgba(34, 197, 94, 0.5))`})),u=B(()=>({color:`rgb(250, 204, 21)`,filter:`drop-shadow(0 0 8px rgba(250, 204, 21, 0.5))`})),d=B(()=>({color:`rgb(251, 146, 60)`}));function f(e){r(`update:targetState`,e?Cd.Open:Cd.Closed)}return(t,n)=>{let r=xd,i=qt,p=dn,m=Rn;return R(),G(`div`,{class:Y([`cui-garage-control`,[`cui-garage-control--${e.size}`,{"cui-garage-control--disabled":e.disabled}]])},[V(`div`,Td,[V(`div`,Ed,[U(a)===U(Sd).Stopped?(R(),L(r,{key:0,class:`cui-garage-control__icon-svg`,style:W(U(d))},null,8,[`style`])):U(a)===U(Sd).Open||U(a)===U(Sd).Opening?(R(),L(i,{key:1,class:`cui-garage-control__icon-svg`,style:W(U(a)===U(Sd).Open?U(l):U(u))},null,8,[`style`])):(R(),L(p,{key:2,class:`cui-garage-control__icon-svg`,style:W(U(a)===U(Sd).Closing?U(u):void 0)},null,8,[`style`])),e.obstructionDetected?(R(),G(`span`,Dd)):M(``,!0)]),V(`div`,Od,[e.label?(R(),G(`span`,kd,q(e.label),1)):M(``,!0),V(`span`,{class:Y([`cui-garage-control__status`,U(c)])},q(U(s)),3)]),H(m,{"model-value":U(o),disabled:e.disabled,class:`ml-auto shrink-0`,"onUpdate:modelValue":f},null,8,[`model-value`,`disabled`])])],2)}}}),[[`__scopeId`,`data-v-4c6505c2`]]),jd={detected:!1,disabled:!1,size:`medium`},Md={class:`cui-leak-sensor__header`},Nd={class:`cui-leak-sensor__icon`},Pd={class:`cui-leak-sensor__info`},Fd={key:0,class:`cui-leak-sensor__label`},Id=hn(X({__name:`CuiLeakSensor`,props:Mt({detected:{type:Boolean},label:{},disabled:{type:Boolean},size:{}},jd),setup(e){let t=e,{t:n}=ce(),{detected:r}=Nt(t),i=B(()=>({color:`rgb(59, 130, 246)`,filter:`drop-shadow(0 0 6px rgba(59, 130, 246, 0.5))`})),a=B(()=>({color:`var(--text-secondary-color)`})),o=B(()=>r.value?`cui-leak-sensor__status--detected`:`cui-leak-sensor__status--clear`),s=B(()=>r.value?`cui-leak-sensor__indicator--detected`:`cui-leak-sensor__indicator--clear`);return(t,c)=>{let l=en,u=$t;return R(),G(`div`,{class:Y([`cui-leak-sensor`,[`cui-leak-sensor--${e.size}`,{"cui-leak-sensor--disabled":e.disabled,"cui-leak-sensor--clear":!U(r),"cui-leak-sensor--detected":U(r)}]])},[V(`div`,Md,[V(`div`,Nd,[U(r)?(R(),L(l,{key:0,class:`cui-leak-sensor__icon-svg`,style:W(U(i))},null,8,[`style`])):(R(),L(u,{key:1,class:`cui-leak-sensor__icon-svg`,style:W(U(a))},null,8,[`style`]))]),V(`div`,Pd,[e.label?(R(),G(`span`,Fd,q(e.label),1)):M(``,!0),V(`span`,{class:Y([`cui-leak-sensor__status`,U(o)])},q(U(r)?U(n)(`components.leak_sensor.detected`):U(n)(`components.leak_sensor.clear`)),3)]),V(`div`,{class:Y([`cui-leak-sensor__indicator`,U(s)])},null,2)])],2)}}}),[[`__scopeId`,`data-v-14a46a3f`]]),Ld={detected:!1,disabled:!1,size:`medium`},Rd={class:`cui-smoke-sensor__header`},zd={class:`cui-smoke-sensor__icon`},Bd={class:`cui-smoke-sensor__info`},Vd={key:0,class:`cui-smoke-sensor__label`},Hd=hn(X({__name:`CuiSmokeSensor`,props:Mt({detected:{type:Boolean},label:{},disabled:{type:Boolean},size:{}},Ld),setup(e){let t=e,{t:n}=ce(),{detected:r}=Nt(t),i=B(()=>({color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 6px rgba(239, 68, 68, 0.5))`})),a=B(()=>({color:`var(--text-secondary-color)`})),o=B(()=>r.value?`cui-smoke-sensor__status--detected`:`cui-smoke-sensor__status--clear`),s=B(()=>r.value?`cui-smoke-sensor__indicator--detected`:`cui-smoke-sensor__indicator--clear`);return(t,c)=>{let l=on,u=rn;return R(),G(`div`,{class:Y([`cui-smoke-sensor`,[`cui-smoke-sensor--${e.size}`,{"cui-smoke-sensor--disabled":e.disabled,"cui-smoke-sensor--clear":!U(r),"cui-smoke-sensor--detected":U(r)}]])},[V(`div`,Rd,[V(`div`,zd,[U(r)?(R(),L(l,{key:0,class:`cui-smoke-sensor__icon-svg`,style:W(U(i))},null,8,[`style`])):(R(),L(u,{key:1,class:`cui-smoke-sensor__icon-svg`,style:W(U(a))},null,8,[`style`]))]),V(`div`,Bd,[e.label?(R(),G(`span`,Vd,q(e.label),1)):M(``,!0),V(`span`,{class:Y([`cui-smoke-sensor__status`,U(o)])},q(U(r)?U(n)(`components.smoke_sensor.detected`):U(n)(`components.smoke_sensor.clear`)),3)]),V(`div`,{class:Y([`cui-smoke-sensor__indicator`,U(s)])},null,2)])],2)}}}),[[`__scopeId`,`data-v-4db50b68`]]),Ud={detected:!1,disabled:!1,size:`medium`},Wd={class:`cui-occupancy-sensor__header`},Gd={class:`cui-occupancy-sensor__icon`},Kd={class:`cui-occupancy-sensor__info`},qd={key:0,class:`cui-occupancy-sensor__label`},Jd=hn(X({__name:`CuiOccupancySensor`,props:Mt({detected:{type:Boolean},label:{},disabled:{type:Boolean},size:{}},Ud),setup(e){let t=e,{t:n}=ce(),{detected:r}=Nt(t),i=B(()=>({color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 6px rgba(34, 197, 94, 0.5))`})),a=B(()=>({color:`var(--text-secondary-color)`})),o=B(()=>r.value?`cui-occupancy-sensor__status--occupied`:`cui-occupancy-sensor__status--empty`),s=B(()=>r.value?`cui-occupancy-sensor__indicator--occupied`:`cui-occupancy-sensor__indicator--empty`);return(t,c)=>{let l=Zt,u=Qt;return R(),G(`div`,{class:Y([`cui-occupancy-sensor`,[`cui-occupancy-sensor--${e.size}`,{"cui-occupancy-sensor--disabled":e.disabled,"cui-occupancy-sensor--empty":!U(r),"cui-occupancy-sensor--occupied":U(r)}]])},[V(`div`,Wd,[V(`div`,Gd,[U(r)?(R(),L(l,{key:0,class:`cui-occupancy-sensor__icon-svg`,style:W(U(i))},null,8,[`style`])):(R(),L(u,{key:1,class:`cui-occupancy-sensor__icon-svg`,style:W(U(a))},null,8,[`style`]))]),V(`div`,Kd,[e.label?(R(),G(`span`,qd,q(e.label),1)):M(``,!0),V(`span`,{class:Y([`cui-occupancy-sensor__status`,U(o)])},q(U(r)?U(n)(`components.occupancy_sensor.occupied`):U(n)(`components.occupancy_sensor.empty`)),3)]),V(`div`,{class:Y([`cui-occupancy-sensor__indicator`,U(s)])},null,2)])],2)}}}),[[`__scopeId`,`data-v-8ca5a1ce`]]),Yd={detected:!1,disabled:!1,size:`medium`},Xd={class:`cui-contact-sensor__header`},Zd={class:`cui-contact-sensor__icon`},Qd={class:`cui-contact-sensor__info`},$d={key:0,class:`cui-contact-sensor__label`},ef=hn(X({__name:`CuiContactSensor`,props:Mt({detected:{type:Boolean},label:{},disabled:{type:Boolean},size:{}},Yd),setup(e){let t=e,{t:n}=ce(),{detected:r}=Nt(t),i=B(()=>({color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 6px rgba(34, 197, 94, 0.5))`})),a=B(()=>({color:`rgb(251, 146, 60)`,filter:`drop-shadow(0 0 8px rgba(251, 146, 60, 0.6))`})),o=B(()=>r.value?`cui-contact-sensor__status--closed`:`cui-contact-sensor__status--open`),s=B(()=>r.value?`cui-contact-sensor__indicator--closed`:`cui-contact-sensor__indicator--open`);return(t,c)=>{let l=tn,u=sn;return R(),G(`div`,{class:Y([`cui-contact-sensor`,[`cui-contact-sensor--${e.size}`,{"cui-contact-sensor--disabled":e.disabled,"cui-contact-sensor--open":!U(r),"cui-contact-sensor--closed":U(r)}]])},[V(`div`,Xd,[V(`div`,Zd,[U(r)?(R(),L(l,{key:0,class:`cui-contact-sensor__icon-svg`,style:W(U(i))},null,8,[`style`])):(R(),L(u,{key:1,class:`cui-contact-sensor__icon-svg`,style:W(U(a))},null,8,[`style`]))]),V(`div`,Qd,[e.label?(R(),G(`span`,$d,q(e.label),1)):M(``,!0),V(`span`,{class:Y([`cui-contact-sensor__status`,U(o)])},q(U(r)?U(n)(`components.contact_sensor.closed`):U(n)(`components.contact_sensor.open`)),3)]),V(`div`,{class:Y([`cui-contact-sensor__indicator`,U(s)])},null,2)])],2)}}}),[[`__scopeId`,`data-v-0cc50676`]]),tf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function nf(e,t){return R(),G(`svg`,tf,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M21 19v1H3v-1l2-2v-6c0-3.1 2.03-5.83 5-6.71V4a2 2 0 0 1 2-2a2 2 0 0 1 2 2v.29c2.97.88 5 3.61 5 6.71v6zm-7 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2m9.75-17.81l-1.42 1.42A8.98 8.98 0 0 1 21 11h2c0-2.93-1.16-5.75-3.25-7.81M1 11h2c0-2.4.96-4.7 2.67-6.39L4.25 3.19A10.96 10.96 0 0 0 1 11`},null,-1)]])}var rf=z({name:`mdi-bell-ring`,render:nf}),af={ring:!1,disabled:!1,size:`medium`},of={class:`cui-doorbell__header`},sf={class:`cui-doorbell__icon`},cf={class:`cui-doorbell__info`},lf={key:0,class:`cui-doorbell__label`},uf=hn(X({__name:`CuiDoorbellTrigger`,props:Mt({ring:{type:Boolean},label:{},disabled:{type:Boolean},size:{}},af),emits:[`update:ring`,`trigger`],setup(e,{emit:t}){let n=e,r=t,{t:i}=ce(),{ring:a}=Nt(n),o=B(()=>a.value),s=B(()=>({color:`rgb(234, 179, 8)`,filter:`drop-shadow(0 0 10px rgba(234, 179, 8, 0.8))`}));function l(){r(`update:ring`,!0),r(`trigger`),setTimeout(()=>{r(`update:ring`,!1)},2e3)}return(t,n)=>{let r=pn,a=rf,u=c;return R(),G(`div`,{class:Y([`cui-doorbell`,[`cui-doorbell--${e.size}`,{"cui-doorbell--disabled":e.disabled,"cui-doorbell--ringing":U(o)}]])},[V(`div`,of,[V(`div`,sf,[U(o)?(R(),L(r,{key:0,class:`cui-doorbell__icon-svg cui-doorbell__icon-svg--ringing`,style:W(U(s))},null,8,[`style`])):(R(),L(r,{key:1,class:`cui-doorbell__icon-svg`}))]),V(`div`,cf,[e.label?(R(),G(`span`,lf,q(e.label),1)):M(``,!0),V(`span`,{class:Y([`cui-doorbell__status`,{"cui-doorbell__status--ringing":U(o)}])},q(U(o)?U(i)(`components.doorbell_trigger.ringing`):U(i)(`components.doorbell_trigger.ready`)),3)]),H(u,{disabled:e.disabled||U(o),size:`small`,severity:`warn`,class:`cui-doorbell__button`,onClick:l},{icon:F(()=>[H(a,{class:`cui-doorbell__button-icon`})]),_:1},8,[`disabled`])])],2)}}}),[[`__scopeId`,`data-v-b227d18a`]]),df={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ff(e,t){return R(),G(`svg`,df,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`m17.75 4.09l-2.53 1.94l.91 3.06l-2.63-1.81l-2.63 1.81l.91-3.06l-2.53-1.94L12.44 4l1.06-3l1.06 3zm3.5 6.91l-1.64 1.25l.59 1.98l-1.7-1.17l-1.7 1.17l.59-1.98L15.75 11l2.06-.05L18.5 9l.69 1.95zm-2.28 4.95c.83-.08 1.72 1.1 1.19 1.85c-.32.45-.66.87-1.08 1.27C15.17 23 8.84 23 4.94 19.07c-3.91-3.9-3.91-10.24 0-14.14c.4-.4.82-.76 1.27-1.08c.75-.53 1.93.36 1.85 1.19c-.27 2.86.69 5.83 2.89 8.02a9.96 9.96 0 0 0 8.02 2.89m-1.64 2.02a12.08 12.08 0 0 1-7.8-3.47c-2.17-2.19-3.33-5-3.49-7.82c-2.81 3.14-2.7 7.96.31 10.98c3.02 3.01 7.84 3.12 10.98.31`},null,-1)]])}var pf=z({name:`mdi-weather-night`,render:ff}),mf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function hf(e,t){return R(),G(`svg`,mf,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M13.34 8.17c-.93 0-1.69-.77-1.69-1.7a1.69 1.69 0 0 1 1.69-1.69c.94 0 1.7.76 1.7 1.69s-.76 1.7-1.7 1.7M10.3 19.93l-5.93-1.18l.34-1.7l4.15.85l1.35-6.86l-1.52.6v2.86H7v-3.96l4.4-1.87l.67-.08c.6 0 1.1.34 1.43.85l.86 1.35c.68 1.21 2.03 2.03 3.64 2.03v1.68c-1.86 0-3.56-.83-4.66-2.1l-.5 2.54l1.77 1.69V23h-1.69v-5.1l-1.78-1.69zM21 23h-2V3H6v13.11l-2-.42V1h17zM6 23H4v-3.22l2 .42z`},null,-1)]])}var gf=z({name:`mdi-exit-run`,render:hf}),_f=function(e){return e[e.StayArm=0]=`StayArm`,e[e.AwayArm=1]=`AwayArm`,e[e.NightArm=2]=`NightArm`,e[e.Disarmed=3]=`Disarmed`,e[e.AlarmTriggered=4]=`AlarmTriggered`,e}({}),vf={class:`cui-security-system__header`},yf={class:`cui-security-system__icon`},bf={class:`cui-security-system__info`},xf={key:0,class:`cui-security-system__label`},Sf={key:0,class:`cui-security-system__alarm`},Cf={class:`cui-security-system__modes`},wf=[`disabled`],Tf=[`disabled`],Ef=[`disabled`],Df=[`disabled`],Of=hn(X({__name:`CuiSecuritySystem`,props:{currentState:{default:_f.Disarmed},targetState:{default:_f.Disarmed},label:{},disabled:{type:Boolean,default:!1},size:{default:`medium`}},emits:[`update:currentState`,`update:targetState`],setup(e,{emit:t}){let n=e,r=t,{t:i}=ce(),{currentState:a,targetState:o}=Nt(n),s=B({get:()=>a.value,set:e=>r(`update:currentState`,e)}),l=B({get:()=>o.value,set:e=>r(`update:targetState`,e)}),u=B(()=>s.value===_f.AlarmTriggered),d=B(()=>s.value===_f.StayArm||s.value===_f.AwayArm||s.value===_f.NightArm),f=B(()=>!u.value&&l.value!==s.value),p=B(()=>{if(f.value)return l.value===_f.Disarmed?i(`components.security_system.status_disarming`):i(`components.security_system.status_arming`);switch(s.value){case _f.StayArm:return i(`components.security_system.status_home_armed`);case _f.AwayArm:return i(`components.security_system.status_away_armed`);case _f.NightArm:return i(`components.security_system.status_night_armed`);case _f.Disarmed:return i(`components.security_system.status_disarmed`);case _f.AlarmTriggered:return i(`components.security_system.status_alarm`);default:return i(`components.security_system.status_unknown`)}}),m=B(()=>u.value?`cui-security-system__status--alarm`:f.value?`cui-security-system__status--transitioning`:d.value?`cui-security-system__status--armed`:`cui-security-system__status--disarmed`),h=B(()=>({color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 12px rgba(239, 68, 68, 0.8))`,animation:`pulse 0.5s ease-in-out infinite alternate`})),g=B(()=>({color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 8px rgba(34, 197, 94, 0.5))`}));function _(e){l.value=e}function v(){s.value=l.value}return(t,n)=>{let r=Yt,a=xr,o=fn,s=cn,f=c,y=ni,b=gf,x=pf;return R(),G(`div`,{class:Y([`cui-security-system`,[`cui-security-system--${e.size}`,{"cui-security-system--disabled":e.disabled}]])},[V(`div`,vf,[V(`div`,yf,[U(u)?(R(),L(r,{key:0,class:`cui-security-system__icon-svg`,style:W(U(h))},null,8,[`style`])):U(d)?(R(),L(a,{key:1,class:`cui-security-system__icon-svg`,style:W(U(g))},null,8,[`style`])):(R(),L(o,{key:2,class:`cui-security-system__icon-svg`}))]),V(`div`,bf,[e.label?(R(),G(`span`,xf,q(e.label),1)):M(``,!0),V(`span`,{class:Y([`cui-security-system__status`,U(m)])},q(U(p)),3)])]),U(u)?(R(),G(`div`,Sf,[H(s,{class:`cui-security-system__alarm-icon`}),V(`span`,null,q(U(i)(`components.security_system.alarm_triggered`)),1),H(f,{size:`small`,severity:`danger`,label:U(i)(`components.security_system.reset`),onClick:v},null,8,[`label`])])):M(``,!0),V(`div`,Cf,[V(`button`,{type:`button`,class:Y([`cui-security-system__mode`,{"cui-security-system__mode--active":U(l)===U(_f).Disarmed}]),disabled:e.disabled||U(u),onClick:n[0]||=e=>_(U(_f).Disarmed)},[H(o,{class:`cui-security-system__mode-icon`}),V(`span`,null,q(U(i)(`components.security_system.off`)),1)],10,wf),V(`button`,{type:`button`,class:Y([`cui-security-system__mode`,{"cui-security-system__mode--active":U(l)===U(_f).StayArm}]),disabled:e.disabled||U(u),onClick:n[1]||=e=>_(U(_f).StayArm)},[H(y,{class:`cui-security-system__mode-icon`}),V(`span`,null,q(U(i)(`components.security_system.home`)),1)],10,Tf),V(`button`,{type:`button`,class:Y([`cui-security-system__mode`,{"cui-security-system__mode--active":U(l)===U(_f).AwayArm}]),disabled:e.disabled||U(u),onClick:n[2]||=e=>_(U(_f).AwayArm)},[H(b,{class:`cui-security-system__mode-icon`}),V(`span`,null,q(U(i)(`components.security_system.away`)),1)],10,Ef),V(`button`,{type:`button`,class:Y([`cui-security-system__mode`,{"cui-security-system__mode--active":U(l)===U(_f).NightArm}]),disabled:e.disabled||U(u),onClick:n[3]||=e=>_(U(_f).NightArm)},[H(x,{class:`cui-security-system__mode-icon`}),V(`span`,null,q(U(i)(`components.security_system.night`)),1)],10,Df)])],2)}}}),[[`__scopeId`,`data-v-67cacde3`]]),kf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Af(e,t){return R(),G(`svg`,kf,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.84-5 6.7v2.07c4-.91 7-4.49 7-8.77s-3-7.86-7-8.77M16.5 12c0-1.77-1-3.29-2.5-4.03V16c1.5-.71 2.5-2.24 2.5-4M3 9v6h4l5 5V4L7 9z`},null,-1)]])}var jf=z({name:`mdi-volume-high`,render:Af}),Mf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Nf(e,t){return R(),G(`svg`,Mf,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M6 6.9L3.87 4.78l1.41-1.41L7.4 5.5zM13 1v3h-2V1zm7.13 3.78L18 6.9l-1.4-1.4l2.12-2.13zM4.5 10.5v2h-3v-2zm15 0h3v2h-3zM6 20h12a2 2 0 0 1 2 2H4a2 2 0 0 1 2-2m6-15a6 6 0 0 1 6 6v8H6v-8a6 6 0 0 1 6-6m0 2a4 4 0 0 0-4 4v6h8v-6a4 4 0 0 0-4-4`},null,-1)]])}var Pf=z({name:`mdi-alarm-light-outline`,render:Nf}),Ff={active:!1,volume:100,hasVolume:!1,disabled:!1,size:`medium`},If={class:`cui-siren-control__header`},Lf={class:`cui-siren-control__icon`},Rf={key:0,class:`cui-siren-control__label`},zf={key:0,class:`cui-siren-control__volume`},Bf={class:`cui-siren-control__volume-header`},Vf={class:`cui-siren-control__volume-value`},Hf=hn(X({__name:`CuiSirenControl`,props:Mt({active:{type:Boolean},volume:{},hasVolume:{type:Boolean},label:{},disabled:{type:Boolean},size:{}},Ff),emits:[`update:active`,`update:volume`],setup(e,{emit:t}){let n=e,r=t,{active:i,volume:a,hasVolume:o}=Nt(n),s=B({get:()=>i.value,set:e=>r(`update:active`,e)}),c=B({get:()=>a.value,set:e=>r(`update:volume`,e)}),l=B(()=>{let e=(o.value?a.value:100)/100;return{color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 ${4+e*12}px rgba(239, 68, 68, ${.3+e*.7}))`,opacity:.4+e*.6}});return(t,n)=>{let r=cn,i=Pf,a=Rn,u=jf,d=T;return R(),G(`div`,{class:Y([`cui-siren-control`,[`cui-siren-control--${e.size}`,{"cui-siren-control--disabled":e.disabled}]])},[V(`div`,If,[V(`div`,Lf,[U(s)?(R(),L(r,{key:0,class:`cui-siren-control__icon-svg cui-siren-control__icon-svg--active`,style:W(U(l))},null,8,[`style`])):(R(),L(i,{key:1,class:`cui-siren-control__icon-svg`}))]),e.label?(R(),G(`span`,Rf,q(e.label),1)):M(``,!0),H(a,{modelValue:U(s),"onUpdate:modelValue":n[0]||=e=>Ct(s)?s.value=e:null,disabled:e.disabled,class:`cui-siren-control__toggle`},null,8,[`modelValue`,`disabled`])]),U(o)?(R(),G(`div`,zf,[V(`div`,Bf,[H(u,{class:`cui-siren-control__volume-icon`}),V(`span`,Vf,q(U(c))+`%`,1)]),H(d,{modelValue:U(c),"onUpdate:modelValue":n[1]||=e=>Ct(c)?c.value=e:null,min:0,max:100,step:1,disabled:e.disabled,class:`cui-siren-control__slider`},null,8,[`modelValue`,`disabled`])])):M(``,!0)],2)}}}),[[`__scopeId`,`data-v-7f88e563`]]),Uf=function(e){return e[e.Secured=0]=`Secured`,e[e.Unsecured=1]=`Unsecured`,e[e.Unknown=2]=`Unknown`,e}({}),Wf={currentState:2,targetState:0,disabled:!1,size:`medium`},Gf={class:`cui-lock-control__header`},Kf={class:`cui-lock-control__icon`},qf={class:`cui-lock-control__info`},Jf={key:0,class:`cui-lock-control__label`},Yf=hn(X({__name:`CuiLockControl`,props:Mt({currentState:{},targetState:{},label:{},disabled:{type:Boolean},size:{}},Wf),emits:[`update:targetState`],setup(e,{emit:t}){let n=e,r=t,{t:i}=ce(),{currentState:a,targetState:o}=Nt(n),s=B(()=>o.value===Uf.Secured),c=B(()=>a.value!==o.value&&a.value!==Uf.Unknown),l=B(()=>{if(c.value)return o.value===Uf.Secured?i(`components.lock.status_locking`):i(`components.lock.status_unlocking`);switch(a.value){case Uf.Secured:return i(`components.lock.status_locked`);case Uf.Unsecured:return i(`components.lock.status_unlocked`);default:return i(`components.lock.status_unknown`)}}),u=B(()=>c.value?`cui-lock-control__status--transitioning`:a.value===Uf.Secured?`cui-lock-control__status--secured`:a.value===Uf.Unsecured?`cui-lock-control__status--unsecured`:``),d=B(()=>({color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 8px rgba(34, 197, 94, 0.5))`}));function f(e){r(`update:targetState`,e?Uf.Secured:Uf.Unsecured)}return(t,n)=>{let r=mn,i=Xt,a=Rn;return R(),G(`div`,{class:Y([`cui-lock-control`,[`cui-lock-control--${e.size}`,{"cui-lock-control--disabled":e.disabled}]])},[V(`div`,Gf,[V(`div`,Kf,[U(s)?(R(),L(r,{key:0,class:`cui-lock-control__icon-svg`,style:W(U(d))},null,8,[`style`])):(R(),L(i,{key:1,class:`cui-lock-control__icon-svg`}))]),V(`div`,qf,[e.label?(R(),G(`span`,Jf,q(e.label),1)):M(``,!0),V(`span`,{class:Y([`cui-lock-control__status`,U(u)])},q(U(l)),3)]),H(a,{"model-value":U(s),disabled:e.disabled,class:`ml-auto shrink-0`,"onUpdate:modelValue":f},null,8,[`model-value`,`disabled`])])],2)}}}),[[`__scopeId`,`data-v-4b2a60ff`]]),Xf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Zf(e,t){return R(),G(`svg`,Xf,[...t[0]||=[V(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M18.36 6.64A9 9 0 0 1 20.77 15M6.16 6.16a9 9 0 1 0 12.68 12.68M12 2v4M2 2l20 20`},null,-1)]])}var Qf=z({name:`lucide-power-off`,render:Zf}),$f={class:`cui-switch-control__header`},ep={class:`cui-switch-control__icon`},tp={key:0,class:`cui-switch-control__label`},np=hn(X({__name:`CuiSwitchControl`,props:{on:{type:Boolean,default:!1},label:{},disabled:{type:Boolean,default:!1},size:{default:`medium`}},emits:[`update:on`],setup(e,{emit:t}){let n=e,r=t,{on:i,size:a}=Nt(n),o=B({get:()=>i.value,set:e=>r(`update:on`,e)}),s=B(()=>({color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 10px rgba(34, 197, 94, 0.7))`}));return(t,n)=>{let r=an,i=Qf,c=Rn;return R(),G(`div`,{class:Y([`cui-switch-control`,[`cui-switch-control--${U(a)}`,{"cui-switch-control--disabled":e.disabled}]])},[V(`div`,$f,[V(`div`,ep,[U(o)?(R(),L(r,{key:0,class:`cui-switch-control__icon-svg cui-switch-control__icon-svg--on`,style:W(U(s))},null,8,[`style`])):(R(),L(i,{key:1,class:`cui-switch-control__icon-svg`}))]),e.label?(R(),G(`span`,tp,q(e.label),1)):M(``,!0),H(c,{modelValue:U(o),"onUpdate:modelValue":n[0]||=e=>Ct(o)?o.value=e:null,disabled:e.disabled,class:`cui-switch-control__toggle`},null,8,[`modelValue`,`disabled`])])],2)}}}),[[`__scopeId`,`data-v-86992927`]]),rp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ip(e,t){return R(),G(`svg`,rp,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M12 18V6a6 6 0 0 1 6 6a6 6 0 0 1-6 6m8-2.69L23.31 12L20 8.69V4h-4.69L12 .69L8.69 4H4v4.69L.69 12L4 15.31V20h4.69L12 23.31L15.31 20H20z`},null,-1)]])}var ap=z({name:`mdi-brightness6`,render:ip}),op={on:!1,brightness:100,hasBrightness:!1,disabled:!1,size:`medium`},sp={class:`cui-light-control__header`},cp={class:`cui-light-control__icon`},lp={key:0,class:`cui-light-control__label`},up={key:0,class:`cui-light-control__brightness`},dp={class:`cui-light-control__brightness-header`},fp={class:`cui-light-control__brightness-value`},pp=hn(X({__name:`CuiLightControl`,props:Mt({on:{type:Boolean},brightness:{},hasBrightness:{type:Boolean},label:{},disabled:{type:Boolean},size:{}},op),emits:[`update:on`,`update:brightness`],setup(e,{emit:t}){let n=e,r=t,{on:i,brightness:a,hasBrightness:o}=Nt(n),s=K(a.value>0?a.value:100),c=B({get:()=>i.value,set:e=>{r(`update:on`,e),e&&a.value===0&&r(`update:brightness`,s.value)}}),l=B({get:()=>a.value,set:e=>{e>0&&(s.value=e),r(`update:brightness`,e),e===0&&i.value?r(`update:on`,!1):e>0&&!i.value&&r(`update:on`,!0)}}),u=B(()=>{let e=(o.value?a.value:100)/100;return{color:`rgb(250, 204, 21)`,filter:`drop-shadow(0 0 ${4+e*12}px rgba(250, 204, 21, ${.3+e*.7}))`,opacity:.4+e*.6}});return(t,n)=>{let r=Jt,i=mr,a=Rn,s=ap,d=T;return R(),G(`div`,{class:Y([`cui-light-control`,[`cui-light-control--${e.size}`,{"cui-light-control--disabled":e.disabled}]])},[V(`div`,sp,[V(`div`,cp,[U(c)?(R(),L(r,{key:0,class:`cui-light-control__icon-svg cui-light-control__icon-svg--on`,style:W(U(u))},null,8,[`style`])):(R(),L(i,{key:1,class:`cui-light-control__icon-svg`}))]),e.label?(R(),G(`span`,lp,q(e.label),1)):M(``,!0),H(a,{modelValue:U(c),"onUpdate:modelValue":n[0]||=e=>Ct(c)?c.value=e:null,disabled:e.disabled,class:`cui-light-control__toggle`},null,8,[`modelValue`,`disabled`])]),U(o)?(R(),G(`div`,up,[V(`div`,dp,[H(s,{class:`cui-light-control__brightness-icon`}),V(`span`,fp,q(U(l))+`%`,1)]),H(d,{modelValue:U(l),"onUpdate:modelValue":n[1]||=e=>Ct(l)?l.value=e:null,min:0,max:100,step:1,disabled:e.disabled,class:`cui-light-control__slider`},null,8,[`modelValue`,`disabled`])])):M(``,!0)],2)}}}),[[`__scopeId`,`data-v-231e0be1`]]),mp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function hp(e,t){return R(),G(`svg`,mp,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`m5 11l1.5-4.5h11L19 11m-1.5 5a1.5 1.5 0 0 1-1.5-1.5a1.5 1.5 0 0 1 1.5-1.5a1.5 1.5 0 0 1 1.5 1.5a1.5 1.5 0 0 1-1.5 1.5m-11 0A1.5 1.5 0 0 1 5 14.5A1.5 1.5 0 0 1 6.5 13A1.5 1.5 0 0 1 8 14.5A1.5 1.5 0 0 1 6.5 16M18.92 6c-.2-.58-.76-1-1.42-1h-11c-.66 0-1.22.42-1.42 1L3 12v8a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1h12v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-8z`},null,-1)]])}var gp=z({name:`mdi-car`,render:hp}),_p={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function vp(e,t){return R(),G(`svg`,_p,[...t[0]||=[V(`path`,{fill:`currentColor`,d:`M17 22v-2h3v-3h2v3.5c0 .39-.16.74-.46 1.04s-.65.46-1.04.46zM7 22H3.5c-.39 0-.74-.16-1.04-.46S2 20.89 2 20.5V17h2v3h3zM17 2h3.5c.39 0 .74.16 1.04.46s.46.65.46 1.04V7h-2V4h-3zM7 2v2H4v3H2V3.5c0-.39.16-.74.46-1.04S3.11 2 3.5 2zm6 15.25l4-2.3v-4.59l-4 2.3zm-1-6.33l4-2.29l-4-2.35l-4 2.35zm-5 4.03l4 2.3v-4.59l-4-2.3zm11.23-7.36c.5.32.77.75.77 1.32v6.32c0 .57-.27 1-.77 1.32l-5.48 3.18q-.75.48-1.5 0l-5.48-3.18c-.5-.32-.77-.75-.77-1.32V8.91c0-.57.27-1 .77-1.32l5.48-3.18c.25-.13.5-.19.75-.19s.5.06.75.19z`},null,-1)]])}var yp=z({name:`mdi-cube-scan`,render:vp}),bp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function xp(e,t){return R(),G(`svg`,bp,[...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:`M13 2a3 3 0 0 1 .64 5.932l-.171.032l1.436 2.297l1.724-.69a1 1 0 0 1 .848 1.808l-.106.05l-1.723.689a2 2 0 0 1-2.343-.657l-.096-.14l-.163-.26l-.606 2.424a2 2 0 0 1-.256.595l-.09.13l1.653 1.228a2 2 0 0 1 .766 1.202l.029.182l.353 3.178H15a1 1 0 0 1 .117 1.993L15 22h-.91a1.1 1.1 0 0 1-1.074-.861l-.02-.117l-.442-3.979l-3.15-2.34a1 1 0 0 1-.154-.14a2 2 0 0 1-.723-1.891l.033-.157l.794-3.177l-1.57.47l-.835 2.508a1 1 0 0 1-1.928-.52l.03-.112l.836-2.508a2 2 0 0 1 1.17-1.23l.153-.053l3.437-1.031A3 3 0 0 1 13 2M9.6 15.2a1 1 0 0 1 .2 1.4l-1.216 1.622a1.5 1.5 0 0 1-2.032.348l-1.93-1.287a1 1 0 0 1-1.33-1.49l.495-.494a1.01 1.01 0 0 1 1.275-.127l2.206 1.471L8.2 15.4a1 1 0 0 1 1.4-.2`})],-1)]])}var Sp=z({name:`mingcute-run-fill`,render:xp}),Cp={detected:!1,disabled:!1,size:`medium`},wp={class:`cui-detection__header`},Tp={class:`cui-detection__info`},Ep={key:0,class:`cui-detection__label`},Dp={key:0,class:`cui-detection__detections`},Op=hn(X({__name:`CuiDetection`,props:Mt({type:{},label:{},detected:{type:Boolean},detections:{},size:{},disabled:{type:Boolean}},Cp),setup(e){let t=e,{t:n}=ce(),{detected:r}=Nt(t),i=B(()=>r.value?n(`components.detection.detected`):n(`components.detection.idle`));return(t,n)=>{let a=Sp,o=yp,s=Br,c=hr,l=gp;return R(),G(`div`,{class:Y([`cui-detection`,[`cui-detection--${e.size}`,`cui-detection--${e.type}`,{"cui-detection--disabled":e.disabled,"cui-detection--detected":U(r)}]])},[V(`div`,wp,[V(`div`,{class:Y([`cui-detection__icon`,{"cui-detection__icon--detected":U(r)}])},[e.type===`motion`?(R(),L(a,{key:0,class:`cui-detection__icon-svg`})):e.type===`object`?(R(),L(o,{key:1,class:`cui-detection__icon-svg`})):e.type===`audio`?(R(),L(s,{key:2,class:`cui-detection__icon-svg`})):e.type===`face`?(R(),L(c,{key:3,class:`cui-detection__icon-svg`})):e.type===`licensePlate`?(R(),L(l,{key:4,class:`cui-detection__icon-svg`})):M(``,!0)],2),V(`div`,Tp,[e.label?(R(),G(`span`,Ep,q(e.label),1)):M(``,!0),V(`span`,{class:Y([`cui-detection__status`,{"cui-detection__status--detected":U(r)}])},q(U(i)),3)]),V(`div`,{class:Y([`cui-detection__indicator`,{"cui-detection__indicator--detected":U(r)}])},null,2)]),e.detections&&e.detections.length>0?(R(),G(`div`,Dp,[(R(!0),G(I,null,P(e.detections,(e,t)=>(R(),G(`span`,{key:t,class:`cui-detection__detection-tag`},q(e),1))),128))])):M(``,!0)],2)}}}),[[`__scopeId`,`data-v-4bdc871b`]]),kp={key:0,class:`flex items-center justify-center h-full`},Ap={key:1,class:`overview-container`},jp={class:`relative`},Mp={key:0,class:`absolute inset-0 z-2 flex items-center justify-center bg-black/80 pointer-events-none`},Np={key:1,class:`absolute top-2 right-2 z-3 flex items-center gap-1 px-2 py-1 bg-black/60 rounded-full pointer-events-none`},Pp={class:`text-xs text-white/80`},Fp={key:2,class:`absolute top-2 right-2 z-2 flex items-center gap-1 px-2 py-1 bg-black/60 rounded-full pointer-events-none`},Ip={class:`text-xs text-white/80`},Lp={class:`overview-section`},Rp={class:`overview-section-title`},zp={key:1},Bp={key:0,class:`overview-section`},Vp={class:`overview-section-title`},Hp={class:`flex flex-col gap-2`},Up={key:1,class:`overview-section`},Wp={class:`overview-section-title`},Gp={class:`flex flex-col gap-2`},Kp={key:2,class:`overview-section`},qp={class:`overview-section-title`},Jp={class:`flex flex-col gap-2`},Yp={key:3,class:`overview-section`},Xp={class:`overview-section-title`},Zp={class:`flex flex-col gap-2`},Qp={key:4,class:`overview-section`},$p={class:`overview-section-title`},em={class:`flex flex-col gap-2`},tm={key:5,class:`overview-section`},nm={class:`overview-section-title`},rm={class:`flex flex-col gap-2`},im={key:6,class:`overview-section`},am={class:`overview-section-title`},om={class:`flex flex-col gap-2`},sm={key:7,class:`overview-section`},cm={class:`overview-section-title`},lm={class:`flex flex-col gap-2`},um={key:8,class:`overview-section`},dm={class:`overview-section-title`},fm={class:`flex flex-col gap-2`},pm={key:9,class:`overview-section`},mm={class:`overview-section-title`},hm={class:`flex flex-col gap-2`},gm={key:10,class:`overview-section`},_m={class:`overview-section-title`},vm={class:`flex flex-col gap-2`},ym={key:11,class:`overview-section`},bm={class:`overview-section-title`},xm={class:`flex flex-col gap-2`},Sm={key:12,class:`overview-section`},Cm={class:`overview-section-title`},wm={class:`flex flex-col gap-2`},Tm={key:13,class:`overview-section`},Em={class:`overview-section-title`},Dm={class:`flex flex-col gap-2`},Om={key:14,class:`overview-section`},km={class:`overview-section-title`},Am={class:`flex flex-col gap-2`},jm={key:15,class:`overview-section`},Mm={class:`no-sensors`},Nm=hn(X({__name:`Overview`,props:{camera:{},cameraDevice:{},loading:{type:Boolean},latestSnapshotSrc:{}},setup(e){let t=e,{t:i}=ce(),{getCameraStatus:s,connect:c}=ti(),{cameraDevice:l,latestSnapshotSrc:u}=Nt(t),{sensors:d}=p(l);c();let f=B(()=>l.value?.camera.value),m=B(()=>s(f.value?._id)),h=B(()=>{switch(m.value){case`connected`:return`success`;case`connecting`:return`warn`;case`error`:return`danger`;case`partial`:return`contrast`;default:return`secondary`}}),g=B(()=>{switch(m.value){case`connected`:return i(`components.camera_table.online`);case`connecting`:return i(`components.camera_table.connecting`);case`error`:return i(`components.camera_table.error`);case`partial`:return i(`components.camera_table.partial`);default:return i(`components.camera_table.idle`)}}),_=B(()=>d.value.filter(C)),y=B(()=>d.value.filter(r)),b=B(()=>d.value.filter(se)),x=B(()=>d.value.filter(he)),T=B(()=>d.value.filter(Ve)),E=B(()=>d.value.filter(ue)),te=B(()=>d.value.filter(oe)),ne=B(()=>d.value.filter(o)),ie=B(()=>d.value.filter(v)),ae=B(()=>d.value.filter(ze)),pe=B(()=>d.value.filter(Se)),j=B(()=>d.value.filter(Te)),_e=B(()=>d.value.filter(ye)),ve=B(()=>d.value.filter(re)),Ee=B(()=>d.value.filter(Ie)),ke=B(()=>d.value.filter(a)),je=B(()=>d.value.filter(Pe)),Me=B(()=>d.value.filter(fe)),Le=B(()=>d.value.filter(w)),Be=B(()=>_.value.some(e=>e.getProperty(Ae.Detected))),He=B(()=>{let e;for(let t of _.value){let n=t.getProperty(Ae.LastTriggered);n&&(!e||n>e)&&(e=n)}return e}),Ue=n(B(()=>new Date(He.value??0))),We=B(()=>{let e=[{label:i(`components.camera_options.overview_status`),value:g.value,tag:!0,tagSeverity:h.value},{label:i(`components.camera_options.overview_sources`),value:String(f.value?.sources.length??0)}],t=f.value?.info;return t?.manufacturer&&e.push({label:i(`components.form.label.manufacturer`),value:t.manufacturer}),t?.model&&e.push({label:i(`components.camera_options.model`),value:t.model}),t?.hardware&&e.push({label:i(`components.form.label.hardware_version`),value:t.hardware}),t?.serialNumber&&e.push({label:i(`components.form.label.serial_number`),value:t.serialNumber}),t?.firmwareVersion&&e.push({label:i(`components.form.label.firmware_version`),value:t.firmwareVersion}),t?.supportUrl&&e.push({label:i(`components.form.label.support_url`),value:t.supportUrl}),_.value.length>0&&(Be.value?e.push({label:i(`components.camera_options.overview_last_motion`),value:i(`components.camera_options.overview_motion_active`),tag:!0,tagSeverity:`danger`}):He.value?e.push({label:i(`components.camera_options.overview_last_motion`),value:Ue.value}):e.push({label:i(`components.camera_options.overview_last_motion`),value:i(`components.camera_options.overview_no_motion`)})),e}),Ge=B(()=>_.value.length>0||y.value.length>0||b.value.length>0||x.value.length>0||T.value.length>0),Ke=B(()=>E.value.length>0||_e.value.length>0||ve.value.length>0||Ee.value.length>0||ke.value.length>0||je.value.length>0||te.value.length>0||ae.value.length>0||Me.value.length>0||ne.value.length>0||ie.value.length>0||pe.value.length>0||j.value.length>0||Le.value.length>0);return(e,t)=>{let n=ee,r=Gt,i=Kt,a=_r,o=ar,s=qn,c=ri,l=pp,d=np,p=Yf,m=Hf,h=Of,g=uf,v=ef,C=Jd,w=Hd,re=Id,oe=Ad,se=vd,ce=pd,ue=cd;return U(f)?(R(),G(`div`,Ap,[V(`div`,jp,[U(f)?.disabled?(R(),G(`div`,Mp,[H(r,{class:`w-8 h-8 text-white/60`})])):M(``,!0),U(f)?.disabled?(R(),G(`div`,Np,[H(r,{class:`w-3.5 h-3.5 text-red-400`}),V(`span`,Pp,q(e.$t(`views.camera.camera_disabled`)),1)])):U(f)?.detectionSettings?.snooze?(R(),G(`div`,Fp,[H(i,{class:`w-3.5 h-3.5 text-amber-400`}),V(`span`,Ip,q(e.$t(`views.camera.camera_snoozed`)),1)])):M(``,!0),H(a,{camera:U(f),src:U(u)},null,8,[`camera`,`src`])]),V(`div`,Lp,[V(`h3`,Rp,q(e.$t(`components.camera_options.overview`)),1),H(c,{value:U(We),"striped-rows":``,"show-headers":!1,class:`card-border rounded-lg overflow-hidden`},{default:F(()=>[H(o,{field:`label`,class:`p-2 font-medium text-sm`}),H(o,{field:`value`,class:`p-2 text-muted text-sm text-right`},{body:F(({data:e})=>[e.tag?(R(),L(s,{key:0,severity:e.tagSeverity,value:e.value},null,8,[`severity`,`value`])):(R(),G(`span`,zp,q(e.value),1))]),_:1})]),_:1},8,[`value`])]),U(Ge)?(R(),G(`div`,Bp,[V(`h3`,Vp,q(e.$t(`components.camera_options.detection`)),1),V(`div`,Hp,[(R(!0),G(I,null,P(U(_),e=>(R(),L(Op,{key:e.id,type:`motion`,label:e.displayName.value,detected:e.getProperty(U(Ae).Detected)??!1,size:`small`,class:`card-border`},null,8,[`label`,`detected`]))),128)),(R(!0),G(I,null,P(U(y),e=>(R(),L(Op,{key:e.id,type:`object`,label:e.displayName.value,detected:(e.getProperty(U(be).Detections)?.length??0)>0,detections:e.getProperty(U(be).Detections)?.map(e=>e.label??e.class??`unknown`),size:`small`,class:`card-border`},null,8,[`label`,`detected`,`detections`]))),128)),(R(!0),G(I,null,P(U(b),e=>(R(),L(Op,{key:e.id,type:`audio`,label:e.displayName.value,detected:e.getProperty(U(Fe).Detected)??!1,size:`small`,class:`card-border`},null,8,[`label`,`detected`]))),128)),(R(!0),G(I,null,P(U(x),e=>(R(),L(Op,{key:e.id,type:`face`,label:e.displayName.value,detected:e.getProperty(U(D).Detected)??!1,detections:e.getProperty(U(D).Detections)?.map(e=>e.identity??`unknown`),size:`small`,class:`card-border`},null,8,[`label`,`detected`,`detections`]))),128)),(R(!0),G(I,null,P(U(T),e=>(R(),L(Op,{key:e.id,type:`licensePlate`,label:e.displayName.value,detected:e.getProperty(U(we).Detected)??!1,detections:e.getProperty(U(we).Detections)?.map(e=>e.plateText??`unknown`),size:`small`,class:`card-border`},null,8,[`label`,`detected`,`detections`]))),128))])])):M(``,!0),U(te).length?(R(),G(`div`,Up,[V(`h3`,Wp,q(e.$t(`components.camera_options.sensor_type_light`)),1),V(`div`,Gp,[(R(!0),G(I,null,P(U(te),e=>(R(),L(l,{key:e.id,label:e.displayName.value,on:e.getProperty(U(le).On)??!1,brightness:e.getProperty(U(le).Brightness)??100,"has-brightness":e.hasCapability(`brightness`),size:`small`,class:`card-border`,"onUpdate:on":t=>e.setProperty(U(le).On,t),"onUpdate:brightness":t=>e.setProperty(U(le).Brightness,t)},null,8,[`label`,`on`,`brightness`,`has-brightness`,`onUpdate:on`,`onUpdate:brightness`]))),128))])])):M(``,!0),U(ie).length?(R(),G(`div`,Kp,[V(`h3`,qp,q(e.$t(`components.camera_options.sensor_type_switch`)),1),V(`div`,Jp,[(R(!0),G(I,null,P(U(ie),e=>(R(),L(d,{key:e.id,label:e.displayName.value,on:e.getProperty(U(Oe).On)??!1,size:`small`,class:`card-border`,"onUpdate:on":t=>e.setProperty(U(Oe).On,t)},null,8,[`label`,`on`,`onUpdate:on`]))),128))])])):M(``,!0),U(ae).length?(R(),G(`div`,Yp,[V(`h3`,Xp,q(e.$t(`components.camera_options.sensor_type_lock`)),1),V(`div`,Zp,[(R(!0),G(I,null,P(U(ae),e=>(R(),L(p,{key:e.id,label:e.displayName.value,"current-state":e.getProperty(U(k).CurrentState)??2,"target-state":e.getProperty(U(k).TargetState)??0,size:`small`,class:`card-border`,"onUpdate:targetState":t=>e.setProperty(U(k).TargetState,t)},null,8,[`label`,`current-state`,`target-state`,`onUpdate:targetState`]))),128))])])):M(``,!0),U(ne).length?(R(),G(`div`,Qp,[V(`h3`,$p,q(e.$t(`components.camera_options.sensor_type_siren`)),1),V(`div`,em,[(R(!0),G(I,null,P(U(ne),e=>(R(),L(m,{key:e.id,label:e.displayName.value,active:e.getProperty(U(De).Active)??!1,volume:e.getProperty(U(De).Volume)??100,"has-volume":e.hasCapability(`volume`),size:`small`,class:`card-border`,"onUpdate:active":t=>e.setProperty(U(De).Active,t),"onUpdate:volume":t=>e.setProperty(U(De).Volume,t)},null,8,[`label`,`active`,`volume`,`has-volume`,`onUpdate:active`,`onUpdate:volume`]))),128))])])):M(``,!0),U(Le).length?(R(),G(`div`,tm,[V(`h3`,nm,q(e.$t(`components.camera_options.sensor_type_securitySystem`)),1),V(`div`,rm,[(R(!0),G(I,null,P(U(Le),e=>(R(),L(h,{key:e.id,label:e.displayName.value,"current-state":e.getProperty(U(ge).CurrentState)??3,"target-state":e.getProperty(U(ge).TargetState)??3,size:`small`,class:`card-border`,"onUpdate:targetState":t=>e.setProperty(U(ge).TargetState,t)},null,8,[`label`,`current-state`,`target-state`,`onUpdate:targetState`]))),128))])])):M(``,!0),U(pe).length?(R(),G(`div`,im,[V(`h3`,am,q(e.$t(`components.camera_options.sensor_type_doorbell`)),1),V(`div`,om,[(R(!0),G(I,null,P(U(pe),e=>(R(),L(g,{key:e.id,label:e.displayName.value,ring:e.getProperty(U(Ne).Ring)??!1,size:`small`,class:`card-border`,onTrigger:()=>e.setProperty(U(Ne).Ring,!0)},null,8,[`label`,`ring`,`onTrigger`]))),128))])])):M(``,!0),U(j).length?(R(),G(`div`,sm,[V(`h3`,cm,q(e.$t(`components.camera_options.sensor_type_contact`)),1),V(`div`,lm,[(R(!0),G(I,null,P(U(j),e=>(R(),L(v,{key:e.id,label:e.displayName.value,detected:e.getProperty(U(Re).Detected)??!1,size:`small`,class:`card-border`},null,8,[`label`,`detected`]))),128))])])):M(``,!0),U(Ee).length?(R(),G(`div`,um,[V(`h3`,dm,q(e.$t(`components.camera_options.sensor_type_occupancy`)),1),V(`div`,fm,[(R(!0),G(I,null,P(U(Ee),e=>(R(),L(C,{key:e.id,label:e.displayName.value,detected:e.getProperty(U(O).Detected)??!1,size:`small`,class:`card-border`},null,8,[`label`,`detected`]))),128))])])):M(``,!0),U(ke).length?(R(),G(`div`,pm,[V(`h3`,mm,q(e.$t(`components.camera_options.sensor_type_smoke`)),1),V(`div`,hm,[(R(!0),G(I,null,P(U(ke),e=>(R(),L(w,{key:e.id,label:e.displayName.value,detected:e.getProperty(U(Ce).Detected)??!1,size:`small`,class:`card-border`},null,8,[`label`,`detected`]))),128))])])):M(``,!0),U(je).length?(R(),G(`div`,gm,[V(`h3`,_m,q(e.$t(`components.camera_options.sensor_type_leak`)),1),V(`div`,vm,[(R(!0),G(I,null,P(U(je),e=>(R(),L(re,{key:e.id,label:e.displayName.value,detected:e.getProperty(U(xe).Detected)??!1,size:`small`,class:`card-border`},null,8,[`label`,`detected`]))),128))])])):M(``,!0),U(Me).length?(R(),G(`div`,ym,[V(`h3`,bm,q(e.$t(`components.camera_options.sensor_type_garage`)),1),V(`div`,xm,[(R(!0),G(I,null,P(U(Me),e=>(R(),L(oe,{key:e.id,label:e.displayName.value,"current-state":e.getProperty(U(de).CurrentState)??1,"target-state":e.getProperty(U(de).TargetState)??1,"obstruction-detected":e.getProperty(U(de).ObstructionDetected)??!1,size:`small`,class:`card-border`,"onUpdate:targetState":t=>e.setProperty(U(de).TargetState,t)},null,8,[`label`,`current-state`,`target-state`,`obstruction-detected`,`onUpdate:targetState`]))),128))])])):M(``,!0),U(_e).length?(R(),G(`div`,Sm,[V(`h3`,Cm,q(e.$t(`components.camera_options.sensor_type_temperature`)),1),V(`div`,wm,[(R(!0),G(I,null,P(U(_e),e=>(R(),L(se,{key:e.id,label:e.displayName.value,current:e.getProperty(U(A).Current),size:`small`,class:`card-border`},null,8,[`label`,`current`]))),128))])])):M(``,!0),U(ve).length?(R(),G(`div`,Tm,[V(`h3`,Em,q(e.$t(`components.camera_options.sensor_type_humidity`)),1),V(`div`,Dm,[(R(!0),G(I,null,P(U(ve),e=>(R(),L(ce,{key:e.id,label:e.displayName.value,current:e.getProperty(U(me).Current),size:`small`,class:`card-border`},null,8,[`label`,`current`]))),128))])])):M(``,!0),U(E).length?(R(),G(`div`,Om,[V(`h3`,km,q(e.$t(`components.camera_options.sensor_type_battery`)),1),V(`div`,Am,[(R(!0),G(I,null,P(U(E),e=>(R(),L(ue,{key:e.id,label:e.displayName.value,level:e.getProperty(U(S).Level)??100,charging:e.getProperty(U(S).Charging)??`NOT_CHARGING`,low:e.getProperty(U(S).Low)??!1,size:`small`,class:`card-border`},null,8,[`label`,`level`,`charging`,`low`]))),128))])])):M(``,!0),!U(Ke)&&!U(Ge)?(R(),G(`div`,jm,[V(`div`,Mm,q(e.$t(`components.camera_options.no_sensors`)),1)])):M(``,!0)])):(R(),G(`div`,kp,[H(n,{class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})]))}}}),[[`__scopeId`,`data-v-5d86732a`]]),Pm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Fm(e,t){return R(),G(`svg`,Pm,[...t[0]||=[V(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[V(`path`,{"stroke-width":`3`,d:`M5 10h.01M5 16h.01`}),V(`path`,{"stroke-width":`2`,d:`m10 17l4-10m2 10l4-10`})],-1)]])}var Im=z({name:`humbleicons-url`,render:Fm}),Lm={class:`drawer-header flex items-center w-full h-[45px] border-b-[1px] border-color px-3`},Rm={class:`font-semibold text-lg truncate`},zm=[`onClick`],Bm={class:`text-xs truncate`},Vm={class:`w-full h-full max-h-full overflow-y-scroll`},Hm={key:0,class:`flex w-full h-full items-center justify-center mt-5`},Um={key:1,class:`w-full h-full`},Wm={key:0,class:`w-full flex items-center justify-center p-4 h-[70px]`},Gm=hn(X({__name:`CameraOptions`,props:{cameraName:{},latestSnapshotSrc:{}},emits:[`close`],setup(e,{emit:t}){let n=new wr,r=e,i=t,a=qe(),o=Ue(),{t:s}=ce(),{cameraName:l,latestSnapshotSrc:u}=Nt(r),{camera:d,isLoading:f}=j(l),{data:p,isBusy:m}=n.getCameraQuery(l),{mutate:h,isPending:g}=n.patchCameraQuery(),_=mt(`formRef`),v=K(),y=K(`overview`),b=K([{name:`overview`,icon:fr},{name:`sources`,icon:Im},{name:`settings`,icon:pr},{name:`plugins`,icon:gr}]),x=B(()=>m.value||f.value||g.value),S=B(()=>y.value===`sources`||y.value===`settings`);async function C(){let e=await _.value?.validate();e?.valid&&e.values?h({cameraname:l.value,cameraData:e.values}):(a.error(`Validation failed`,e),o.add({severity:`error`,detail:s(`components.toast.validation_failed`),life:3e3}))}return Q(p,e=>{e&&(v.value=Ze(e))},{deep:!0,immediate:!0}),(e,t)=>{let n=kn,r=c,a=Mn,o=Wn,s=ee,f=Nm,m=Vu,h=ou,g=Is,w=In,T=Gn,E=Fn;return R(),G(I,null,[V(`div`,Lm,[V(`span`,Rm,q(U(l)),1),H(r,{text:``,rounded:``,severity:`secondary`,class:`ml-auto cui-icon-md shrink-0`,onClick:t[0]||=e=>i(`close`)},{icon:F(()=>[H(n,{width:`100%`,height:`100%`})]),_:1})]),H(U(yt),{ref_key:`formRef`,ref:_,class:`w-full`,style:W({height:`calc(100% - 45px - ${U(S)?`70px`:`0px`})`}),"validation-schema":U(Zr)},{default:F(()=>[H(E,{value:U(y),"onUpdate:value":t[7]||=e=>Ct(y)?y.value=e:null,scrollable:``,class:`w-full h-full`},{default:F(()=>[H(o,{class:`justify-between`,pt:{tablist:{class:`h-[65px]`},activeBar:{class:`!w-auto`}}},{default:F(()=>[(R(!0),G(I,null,P(U(b),(t,n)=>(R(),L(a,{key:n,value:t.name,"as-child":``},{default:F(n=>[V(`div`,Ot({ref_for:!0},n.a11yAttrs,{class:[`flex flex-col items-center justify-center flex-1 content-background !py-3`,[{"hover:!text-color active:!text-color focus:!text-color":!n.active},n.class]],onClick:n.onClick}),[(R(),L(At(t.icon),{class:`w-5 h-5`})),V(`span`,Bm,q(e.$t(`components.options_sidebar.segment_tab_${t.name}`)),1)],16,zm)]),_:2},1032,[`value`]))),128))]),_:1}),H(T,{class:`p-0 h-[calc(100%-65px)]`},{default:F(()=>[V(`div`,Vm,[(R(!0),G(I,null,P(U(b),(e,n)=>(R(),L(w,{key:n,value:e.name,"as-child":``},{default:F(e=>[e.active?(R(),G(`div`,Ot({key:0,class:e.class},{ref_for:!0},e.a11yAttrs),[!U(v)||!U(p)||!U(d)?(R(),G(`div`,Hm,[H(s,{class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})])):(R(),G(`div`,Um,[U(y)===`overview`?(R(),L(f,{key:0,camera:U(p),"camera-device":U(d),loading:U(x),"latest-snapshot-src":U(u),onClose:t[1]||=e=>i(`close`)},null,8,[`camera`,`camera-device`,`loading`,`latest-snapshot-src`])):M(``,!0),U(y)===`sources`?(R(),L(m,{key:1,modelValue:U(v),"onUpdate:modelValue":t[2]||=e=>Ct(v)?v.value=e:null,camera:U(p),"camera-device":U(d),loading:U(x),onClose:t[3]||=e=>i(`close`)},null,8,[`modelValue`,`camera`,`camera-device`,`loading`])):M(``,!0),U(y)===`settings`?(R(),L(h,{key:2,modelValue:U(v),"onUpdate:modelValue":t[4]||=e=>Ct(v)?v.value=e:null,camera:U(p),"camera-device":U(d),loading:U(x),onClose:t[5]||=e=>i(`close`)},null,8,[`modelValue`,`camera`,`camera-device`,`loading`])):M(``,!0),U(y)===`plugins`?(R(),L(g,{key:3,camera:U(p),"camera-device":U(d),loading:U(x),onClose:t[6]||=e=>i(`close`)},null,8,[`camera`,`camera-device`,`loading`])):M(``,!0)]))],16)):M(``,!0)]),_:1},8,[`value`]))),128))])]),_:1})]),_:1},8,[`value`]),U(S)?(R(),G(`div`,Wm,[H(r,{fluid:``,severity:`success`,class:`cui-button-medium`,label:e.$t(`components.form.button.save`),onClick:C},null,8,[`label`])])):M(``,!0)]),_:1},8,[`style`,`validation-schema`])],64)}}}),[[`__scopeId`,`data-v-38cd7548`]]),Km={class:`w-full h-full p-safe !pb-0 md:!pl-0`},qm={class:`w-full h-full border-0 md:border-r-[1px] border-color overflow-y-auto pb-safe`},Jm=X({__name:`CuiCameraDrawer`,setup(e){let t=Vt(),n=Dr(),r=n.getEventBus(),i=K(!1),a=K(),o=K(),s=B(()=>Or.pt);function c(){i.value=!1,n.close()}return Q(t.currentRoute,(e,t)=>{e.path!==t.path&&n.close()}),lt(()=>{r.on(e=>{e.type===`open`?(a.value=e.options,o.value=e.props,i.value=!0):e.type===`close`&&(i.value=!1,a.value=void 0)})}),(e,t)=>{let n=Gm,r=er;return R(),L(r,Ot({visible:U(i),"onUpdate:visible":t[0]||=e=>Ct(i)?i.value=e:null},U(o),{class:`border-0 md:border-l-[1px]`,pt:U(s),onHide:c}),{container:F(({closeCallback:e})=>[V(`div`,Km,[V(`div`,qm,[U(a)?(R(),L(n,Ot({key:0},U(a),{onClose:e}),null,16,[`onClose`])):M(``,!0)])])]),_:1},16,[`visible`,`pt`])}}}),Ym=X({__name:`CuiToast`,setup(e){let t=qe(),{t:n}=ce(),{mdBreakpoint:r}=bn(),{theme:i}=Bt(Ir()),a={success:Tt.success,error:Tt.error,warn:Tt.warning,warning:Tt.warning,info:Tt.info};function o(e){return n(`components.toast.title_${e===`warning`?`warn`:e}`)}function s(e){return e.type===`dismiss`}return d(Ye.on(e=>{if(s(e)){Tt.dismiss(e.id);return}let r=e,i=a[r.severity]||Tt,c=r.summary||o(r.severity),l;if(r.action){let{label:e,loadingLabel:i,onClick:a}=r.action,o=r.id;l={label:e,onClick:r=>{r.preventDefault(),r.stopPropagation();let s=a();s instanceof Promise&&o&&(Tt.loading(i??e,{id:o,duration:1/0}),s.catch(e=>{t.error(`action failed`,e),Tt.error(n(`components.toast.title_error`),{id:o})}))}}}i(c,{id:r.id,description:r.detail,duration:r.persistent?1/0:r.life??3e3,action:l})})),(e,t)=>(R(),L(U(It),{"rich-colors":``,position:U(r)?`top-center`:`bottom-right`,"visible-toasts":3,theme:U(i)},null,8,[`position`,`theme`]))}}),Xm={class:`loader flex flex-col justify-center items-center`},Zm={key:0,class:`absolute flex flex-col items-center justify-center pb-safe bottom-10`},Qm={key:0,class:`offline`},$m={key:1,class:`text-center text-white text-sm font-bold mt-2`},eh=hn(X({__name:`CuiLoadingScreen`,props:{reload:{type:Boolean,default:!1},height:{default:`200px`},width:{default:`200px`},text:{},icon:{}},setup(e){let{reload:t,width:n,height:r,text:i,icon:a}=Nt(e),{start:o}=E(()=>{document.getElementById(`lens`)?.classList.add(`cameraLens`),document.getElementById(`CameraUI_U`)?.classList.add(`cameraLetter`)},100,{immediate:!1}),{resume:s}=u(()=>{document.getElementById(`lens`)?.classList.remove(`cameraLens`),document.getElementById(`CameraUI_U`)?.classList.remove(`cameraLetter`),o()},2300,{immediate:!1});return lt(()=>{t.value&&s()}),(e,t)=>(R(),G(`div`,Xm,[H(U(gt),{src:U(it)(`logo_loading_circle.svg`),width:U(n),height:U(r),title:`camera.ui`,"aria-label":`camera.ui`},null,8,[`src`,`width`,`height`]),U(a)||U(i)?(R(),G(`div`,Zm,[U(a)?(R(),G(`div`,Qm,[(R(),L(At(U(a)),{class:`w-8 h-8 text-primary`}))])):M(``,!0),U(i)?(R(),G(`div`,$m,q(U(i)),1)):M(``,!0)])):M(``,!0)]))}}),[[`__scopeId`,`data-v-839ba1ea`]]);qe(`PushHandler`);function th(){let e=Vt(),{isElectronApp:t,electron:n}=An();function r(t,n){n?.deepLink&&e.push(n.deepLink)}lt(()=>{!t||!n||(n.removeListener(`notification-click`,r),n.on(`notification-click`,r))}),Ft(()=>{n?.removeListener(`notification-click`,r)})}function nh(){let e=Vt(),{isElectronApp:t,electron:n}=An();function r(t,n){n?.path&&e.push(n.path)}lt(()=>{!t||!n||(n.removeListener(`deep-link`,r),n.on(`deep-link`,r))}),Ft(()=>{n?.removeListener(`deep-link`,r)})}var rh={key:1,class:`app`},ih=hn(X({__name:`App`,setup(e){let{navbarState:t,subbarState:n,showBottombar:r,showNavbar:i,showTopbar:a}=gn(),o=yn(),s=zt(),c=Vt(),{mdBreakpoint:l}=bn(),{isPWA:u}=vn(),{t:d}=ce(),f=We(),{isElectronApp:p}=An();ii(),Sn(),th(),nh();let{theme:m}=Bt(Ir()),{isLoggedIn:h}=Bt($e()),g=dr(),_=mt(`navbarRef`),v=mt(`topbarRef`),y=mt(`bottombarRef`),b=K(!0),S=K(!1),C=x(v,{width:0,height:0},{box:`border-box`}),w=x(y,{width:0,height:0},{box:`border-box`}),ee=B(()=>t.value===`closed`||t.value===`minified`?l.value?ea.CLOSED:ea.MINIFIED:ea.EXPANDED),T=B(()=>t.value===`closed`?0:8),E=B(()=>!_.value||l.value?`env(safe-area-inset-left, 0px)`:`calc(${ee.value}px + max(${T.value}px, env(safe-area-inset-left, 0px)))`),te=B(()=>o.showTopbar.value?`var(--topbar-background)`:o.background.value?o.background.value:`var(--ground-background)`),ne=B(()=>`calc(100dvh - ${v.value?`${C.height.value}px`:`env(safe-area-inset-top, 0px)`} - ${y.value?`${w.height.value}px`:o.ignoreSafeAreaBottom.value?`0px`:`env(safe-area-inset-bottom, 0px)`} - ${y.value||!o.disableScroll.value||o.noExtraPadding.value?`0px`:`8px`})`),D=B(()=>s.meta.auth?.requiresAuth&&!h.value||b.value||g.isSwitching),re=B(()=>{if(!(!g.isSwitching||!g.switchTargetName))return`${d(`components.instance_switcher.switching_to`)} ${g.switchTargetName}...`});async function ie(){}return Q([h,()=>f.isOnline.value],([e,t],n)=>{if(g.isSwitching)return;let r=n?.[0]===!0&&n?.[1]===!0;e&&t&&!r&&(g.saveCurrentTokens(),g.fetchInstances())},{immediate:!0}),Q([te,m],()=>{wt(()=>{if(/^var\([^)]+\)$/.test(te.value)){let e=window.getComputedStyle(document.body),t=te.value.split(`var(`)[1].split(`)`)[0],n=e.getPropertyValue(t);document.querySelector(`meta[name="theme-color"]`)?.setAttribute(`content`,n)}else document.querySelector(`meta[name="theme-color"]`)?.setAttribute(`content`,te.value)})},{immediate:!0}),Q(()=>o.disableScroll.value,e=>{document.body.classList.toggle(`disable-overflow-scroll`,e),document.documentElement.classList.toggle(`disable-overflow-scroll`,e)},{immediate:!0}),lt(async()=>{await c.isReady(),ie(),b.value=!1,requestAnimationFrame(()=>{S.value=!0})}),(e,s)=>{let c=eh,d=Ym,f=Kn,m=Jn,h=Jm,b=So,x=ba,te=va,ie=jt(`RouterView`),ae=Bi,oe=ki,O=Ei,k=bi;return U(D)?(R(),G(`div`,{key:0,class:`flex w-full h-full justify-center items-center absolute z-50`,style:W({minHeight:U(u)?`100vh !important`:`100dvh !important`})},[H(c,{reload:``,text:U(re)},null,8,[`text`])],4)):(R(),G(`div`,rh,[H(d),H(f),H(m),H(h),U(a)?(R(),L(b,{key:0,ref_key:`topbarRef`,ref:v,class:`z-2 top-0`,"offset-left":U(l)?0:U(ee),animate:U(S)},null,8,[`offset-left`,`animate`])):M(``,!0),U(r)?(R(),L(x,{key:1,ref_key:`bottombarRef`,ref:y,class:`z-2`},null,512)):M(``,!0),U(i)?(R(),L(te,{key:2,ref_key:`navbarRef`,ref:_,class:`z-3 top-0 left-0`},null,512)):M(``,!0),V(`main`,{id:`container`,class:`relative w-dvw z-1 overflow-x-hidden`,style:W({transition:U(S)?`padding-left 200ms`:void 0,paddingTop:U(v)?`${U(C).height.value}px`:`env(safe-area-inset-top, 0px)`,paddingLeft:U(E),paddingRight:`env(safe-area-inset-right, 0px)`,paddingBottom:U(y)?`${U(w).height.value}px`:U(o).ignoreSafeAreaBottom.value?`0px`:`env(safe-area-inset-bottom, 0px)`})},[V(`div`,{class:Y([`w-full max-w-full h-full grid`,{"p-2":U(o).padding.value,"pt-0":U(o).paddingTop.value===!1,"pb-0":U(o).paddingBottom.value===!1&&!U(y),"pb-4":(U(o).paddingBottom.value||U(y))&&!U(o).disableScroll,"pl-0":U(o).paddingLeft.value===!1,"pr-0":U(o).paddingRight.value===!1}]),style:W({minHeight:U(ne),maxHeight:U(o).disableScroll.value?U(ne):void 0,height:U(o).disableScroll.value?U(ne):void 0,overflow:U(o).disableScroll.value?`hidden`:void 0})},[H(ie,null,{default:F(({Component:e})=>[(R(),L(At(e),{key:U(g).switchKey,class:Y([`w-full h-full relative min-w-0`,{"overflow-x-hidden":!U(o).allowOverflowX.value}]),"navbar-width":U(ee),"navbar-left":U(T)},null,8,[`class`,`navbar-width`,`navbar-left`]))]),_:1})],6)],4),U(p)?(R(),L(ae,{key:3})):M(``,!0),U(t)===`opened`||U(n)===`opened`&&U(l)?(R(),L(pt,{key:4,to:U(t)===`opened`?`#app`:`#container`,defer:``},[U(l)?(R(),G(`div`,{key:0,class:Y([`fixed top-0 left-0 right-0 bottom-0 w-full h-full bg-black/50 z-1`,{"z-2":U(t)===`opened`}])},null,2)):M(``,!0)],8,[`to`])):M(``,!0),V(`div`,{class:`fixed-bg`,style:W({background:U(o).background.value})},null,4),H(oe),H(O),H(k)]))}}}),[[`__scopeId`,`data-v-c73e44d2`]]);function ah(e,t){e.use(je({natsTransport:t.nats,target:t.target,wsTransport:t.ws})),e.use(_e({natsTransport:t.nats,target:t.target,wsTransport:t.ws,workerBridge:Je(),workerRegistry:Ke}))}var oh=Wt(),sh=$n(nr,{primitive:{borderRadius:{none:`0`,xs:`2px`,sm:`4px`,md:`6px`,lg:`8px`,xl:`12px`},emerald:{50:`#ecfdf5`,100:`#d1fae5`,200:`#a7f3d0`,300:`#6ee7b7`,400:`#34d399`,500:`#10b981`,600:`#059669`,700:`#047857`,800:`#065f46`,900:`#064e3b`,950:`#022c22`},green:{50:`#f0fdf4`,100:`#dcfce7`,200:`#bbf7d0`,300:`#86efac`,400:`#4ade80`,500:`#22c55e`,600:`#16a34a`,700:`#15803d`,800:`#166534`,900:`#14532d`,950:`#052e16`},lime:{50:`#f7fee7`,100:`#ecfccb`,200:`#d9f99d`,300:`#bef264`,400:`#a3e635`,500:`#84cc16`,600:`#65a30d`,700:`#4d7c0f`,800:`#3f6212`,900:`#365314`,950:`#1a2e05`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},orange:{50:`#fff7ed`,100:`#ffedd5`,200:`#fed7aa`,300:`#fdba74`,400:`#fb923c`,500:`#f97316`,600:`#ea580c`,700:`#c2410c`,800:`#9a3412`,900:`#7c2d12`,950:`#431407`},amber:{50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,300:`#fcd34d`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`,950:`#451a03`},yellow:{50:`#fefce8`,100:`#fef9c3`,200:`#fef08a`,300:`#fde047`,400:`#facc15`,500:`#eab308`,600:`#ca8a04`,700:`#a16207`,800:`#854d0e`,900:`#713f12`,950:`#422006`},teal:{50:`#f0fdfa`,100:`#ccfbf1`,200:`#99f6e4`,300:`#5eead4`,400:`#2dd4bf`,500:`#14b8a6`,600:`#0d9488`,700:`#0f766e`,800:`#115e59`,900:`#134e4a`,950:`#042f2e`},cyan:{50:`#ecfeff`,100:`#cffafe`,200:`#a5f3fc`,300:`#67e8f9`,400:`#22d3ee`,500:`#06b6d4`,600:`#0891b2`,700:`#0e7490`,800:`#155e75`,900:`#164e63`,950:`#083344`},sky:{50:`#f0f9ff`,100:`#e0f2fe`,200:`#bae6fd`,300:`#7dd3fc`,400:`#38bdf8`,500:`#0ea5e9`,600:`#0284c7`,700:`#0369a1`,800:`#075985`,900:`#0c4a6e`,950:`#082f49`},blue:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`},indigo:{50:`#eef2ff`,100:`#e0e7ff`,200:`#c7d2fe`,300:`#a5b4fc`,400:`#818cf8`,500:`#6366f1`,600:`#4f46e5`,700:`#4338ca`,800:`#3730a3`,900:`#312e81`,950:`#1e1b4b`},violet:{50:`#f5f3ff`,100:`#ede9fe`,200:`#ddd6fe`,300:`#c4b5fd`,400:`#a78bfa`,500:`#8b5cf6`,600:`#7c3aed`,700:`#6d28d9`,800:`#5b21b6`,900:`#4c1d95`,950:`#2e1065`},purple:{50:`#faf5ff`,100:`#f3e8ff`,200:`#e9d5ff`,300:`#d8b4fe`,400:`#c084fc`,500:`#a855f7`,600:`#9333ea`,700:`#7e22ce`,800:`#6b21a8`,900:`#581c87`,950:`#3b0764`},fuchsia:{50:`#fdf4ff`,100:`#fae8ff`,200:`#f5d0fe`,300:`#f0abfc`,400:`#e879f9`,500:`#d946ef`,600:`#c026d3`,700:`#a21caf`,800:`#86198f`,900:`#701a75`,950:`#4a044e`},pink:{50:`#fdf2f8`,100:`#fce7f3`,200:`#fbcfe8`,300:`#f9a8d4`,400:`#f472b6`,500:`#ec4899`,600:`#db2777`,700:`#be185d`,800:`#9d174d`,900:`#831843`,950:`#500724`},rose:{50:`#fff1f2`,100:`#ffe4e6`,200:`#fecdd3`,300:`#fda4af`,400:`#fb7185`,500:`#f43f5e`,600:`#e11d48`,700:`#be123c`,800:`#9f1239`,900:`#881337`,950:`#4c0519`},slate:{50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,900:`#0f172a`,950:`#020617`},gray:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#1f2937`,900:`#111827`,950:`#030712`},zinc:{50:`#fafafa`,100:`#f4f4f5`,200:`#e4e4e7`,300:`#d4d4d8`,400:`#a1a1aa`,500:`#71717a`,600:`#52525b`,700:`#3f3f46`,800:`#27272a`,900:`#18181b`,950:`#09090b`},neutral:{50:`#fafafa`,100:`#f5f5f5`,200:`#e5e5e5`,300:`#d4d4d4`,400:`#a3a3a3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0a0a0a`},stone:{50:`#fafaf9`,100:`#f5f5f4`,200:`#e7e5e4`,300:`#d6d3d1`,400:`#a8a29e`,500:`#78716c`,600:`#57534e`,700:`#44403c`,800:`#292524`,900:`#1c1917`,950:`#0c0a09`}},semantic:{transitionDuration:`0.2s`,focusRing:{width:`1px`,style:`solid`,color:`{primary.color}`,offset:`2px`,shadow:`none`},disabledOpacity:`0.6`,iconSize:`1rem`,anchorGutter:`2px`,primary:{50:`#fdf4f6`,100:`#f7ccd4`,200:`#f1a3b2`,300:`#eb7b90`,400:`#e5526e`,500:`#df2a4c`,600:`#be2441`,700:`#9c1d35`,800:`#7b172a`,900:`#59111e`,950:`#380b13`},formField:{paddingX:`0.75rem`,paddingY:`0.5rem`,sm:{fontSize:`0.875rem`,paddingX:`0.625rem`,paddingY:`0.375rem`},lg:{fontSize:`1.125rem`,paddingX:`0.875rem`,paddingY:`0.625rem`},borderRadius:`{border.radius.md}`,focusRing:{width:`0`,style:`none`,color:`transparent`,offset:`0`,shadow:`none`},transitionDuration:`{transition.duration}`},list:{padding:`0.25rem 0.25rem`,gap:`2px`,header:{padding:`0.5rem 1rem 0.25rem 1rem`},option:{padding:`0.5rem 0.75rem`,borderRadius:`{border.radius.sm}`},optionGroup:{padding:`0.5rem 0.75rem`,fontWeight:`600`}},content:{borderRadius:`{border.radius.md}`},mask:{transitionDuration:`0.15s`},navigation:{list:{padding:`0.25rem 0.25rem`,gap:`2px`},item:{padding:`0.5rem 0.75rem`,borderRadius:`{border.radius.sm}`,gap:`0.5rem`},submenuLabel:{padding:`0.5rem 0.75rem`,fontWeight:`600`},submenuIcon:{size:`0.875rem`}},overlay:{select:{borderRadius:`{border.radius.md}`,shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`},popover:{borderRadius:`{border.radius.md}`,padding:`0.75rem`,shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`},modal:{borderRadius:`{border.radius.xl}`,padding:`1.25rem`,shadow:`0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)`},navigation:{shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`}},colorScheme:{light:{surface:{0:`#ffffff`,50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,850:`#0f172a`,900:`#0f172a`,925:`#0c1421`,950:`#020617`,1e3:`#000000`},primary:{color:`{primary.500}`,contrastColor:`#ffffff`,hoverColor:`{primary.600}`,activeColor:`{primary.700}`},highlight:{background:`{primary.50}`,focusBackground:`{primary.100}`,color:`{primary.700}`,focusColor:`{primary.800}`},mask:{background:`rgba(0,0,0,0.4)`,color:`{surface.200}`},formField:{background:`{surface.50}`,disabledBackground:`{surface.200}`,filledBackground:`{surface.50}`,filledHoverBackground:`{surface.50}`,filledFocusBackground:`{surface.50}`,borderColor:`{surface.300}`,hoverBorderColor:`{surface.400}`,focusBorderColor:`{primary.color}`,invalidBorderColor:`{red.400}`,color:`{surface.700}`,disabledColor:`{surface.500}`,placeholderColor:`{surface.500}`,invalidPlaceholderColor:`{red.600}`,floatLabelColor:`{surface.500}`,floatLabelFocusColor:`{primary.600}`,floatLabelActiveColor:`{surface.500}`,floatLabelInvalidColor:`{form.field.invalid.placeholder.color}`,iconColor:`{surface.400}`,shadow:`0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)`},text:{color:`{surface.700}`,hoverColor:`{surface.800}`,mutedColor:`{surface.500}`,hoverMutedColor:`{surface.600}`},content:{background:`{surface.0}`,hoverBackground:`{surface.100}`,borderColor:`{surface.200}`,color:`{text.color}`,hoverColor:`{text.hover.color}`},overlay:{select:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`},popover:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`},modal:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`}},list:{option:{focusBackground:`{surface.100}`,selectedBackground:`{highlight.background}`,selectedFocusBackground:`{highlight.focus.background}`,color:`{text.color}`,focusColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,selectedFocusColor:`{highlight.focus.color}`,icon:{color:`{surface.400}`,focusColor:`{surface.500}`}},optionGroup:{background:`transparent`,color:`{text.muted.color}`}},navigation:{item:{focusBackground:`{surface.100}`,activeBackground:`{surface.100}`,color:`{text.color}`,focusColor:`{text.hover.color}`,activeColor:`{text.hover.color}`,icon:{color:`{surface.400}`,focusColor:`{surface.500}`,activeColor:`{surface.500}`}},submenuLabel:{background:`transparent`,color:`{text.muted.color}`},submenuIcon:{color:`{surface.400}`,focusColor:`{surface.500}`,activeColor:`{surface.500}`}}},dark:{surface:{0:`#ffffff`,50:`#f5f5f5`,100:`#d1d1d1`,200:`#adadad`,300:`#898989`,400:`#646464`,500:`#404040`,600:`#363636`,700:`#2d2d2d`,800:`#232323`,850:`#1d1d1d`,900:`#1a1a1a`,925:`#161616`,950:`#101010`,1e3:`#0d0d0d`},primary:{color:`{primary.500}`,contrastColor:`{surface.900}`,hoverColor:`{primary.600}`,activeColor:`{primary.700}`},highlight:{background:`color-mix(in srgb, {primary.400}, transparent 84%)`,focusBackground:`color-mix(in srgb, {primary.400}, transparent 76%)`,color:`rgba(255,255,255,.87)`,focusColor:`rgba(255,255,255,.87)`},mask:{background:`rgba(0,0,0,0.6)`,color:`{surface.200}`},formField:{background:`{surface.925}`,disabledBackground:`{surface.700}`,filledBackground:`{surface.800}`,filledHoverBackground:`{surface.800}`,filledFocusBackground:`{surface.800}`,borderColor:`{surface.800}`,hoverBorderColor:`{surface.500}`,focusBorderColor:`{primary.color}`,invalidBorderColor:`{red.300}`,color:`{surface.0}`,disabledColor:`{surface.400}`,placeholderColor:`{surface.400}`,invalidPlaceholderColor:`{red.400}`,floatLabelColor:`{surface.400}`,floatLabelFocusColor:`{primary.color}`,floatLabelActiveColor:`{surface.400}`,floatLabelInvalidColor:`{form.field.invalid.placeholder.color}`,iconColor:`{surface.400}`,shadow:`0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)`},text:{color:`{surface.0}`,hoverColor:`{surface.0}`,mutedColor:`{surface.400}`,hoverMutedColor:`{surface.300}`},content:{background:`{surface.900}`,hoverBackground:`{surface.800}`,borderColor:`{surface.700}`,color:`{text.color}`,hoverColor:`{text.hover.color}`},overlay:{select:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`},popover:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`},modal:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`}},list:{option:{focusBackground:`{surface.800}`,selectedBackground:`{highlight.background}`,selectedFocusBackground:`{highlight.focus.background}`,color:`{text.color}`,focusColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,selectedFocusColor:`{highlight.focus.color}`,icon:{color:`{surface.500}`,focusColor:`{surface.400}`}},optionGroup:{background:`transparent`,color:`{text.muted.color}`}},navigation:{item:{focusBackground:`{surface.800}`,activeBackground:`{surface.800}`,color:`{text.color}`,focusColor:`{text.hover.color}`,activeColor:`{text.hover.color}`,icon:{color:`{surface.500}`,focusColor:`{surface.400}`,activeColor:`{surface.400}`}},submenuLabel:{background:`transparent`,color:`{text.muted.color}`},submenuIcon:{color:`{surface.500}`,focusColor:`{surface.400}`,activeColor:`{surface.400}`}}}}}});function ch(e){Qe(e)||Ue().add({severity:`error`,detail:e,life:3e3})}function lh(){return{enableDevtoolsV6Plugin:!0,queryClientConfig:{defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!0,gcTime:300*1e3,staleTime:1e4,networkMode:`online`,retry:(e,t)=>uh(t)===401?!1:e<2?!0:(ch(t),!1)},mutations:{retry:0,networkMode:`online`,onError:ch}}}}}function uh(e){if(typeof e==`object`&&e&&`response`in e){let t=e.response;if(typeof t?.status==`number`)return t.status}}function dh(){return{theme:{preset:sh,options:{cssLayer:{name:`primevue`,order:`theme, base, primevue`},darkModeSelector:`.dark-mode`}}}}function fh(e){e.directive(`tooltip`,Ln).directive(`focustrap`,l),e.use(tr).use(ir).use(Qn).use(or,dh()).use(Xe).use(ht()).use(vt,lh()).use(oh)}window.addEventListener(`vite:preloadError`,()=>{sessionStorage.getItem(`cui-chunk-reload`)||(sessionStorage.setItem(`cui-chunk-reload`,`1`),window.location.reload())});var{connection:ph}=await rt({logger:new ie(`Connection`)});nt();var mh=St(ih),hh=new ie(`Vue`);mh.config.errorHandler=(e,t,n)=>hh.error(`[${n}]`,e),fh(mh),at(ph),ah(mh,ph),mh.use(Dn),dr().restoreActiveOverride();var gh=await st(ph,{onUser:e=>$e().setUserFromLogin(e),onRedirectInfo:e=>{dr().redirectInfo=e},onReset:()=>{dr().activeId=null,Ge.value=null}});mh.mount(`#app`),gh||ph.boot(`default`);
@@ -1 +1 @@
1
- import{Tn as e,Xn as t,Zt as n,en as r}from"./vendor-CUsAwmr-.js";var i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(t,a){return e(),r(`svg`,i,[...a[0]||=[n(`path`,{fill:`currentColor`,d:`M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83l3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75z`},null,-1)]])}var o=t({name:`mdi-pencil`,render:a}),s={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function c(t,i){return e(),r(`svg`,s,[...i[0]||=[n(`path`,{fill:`currentColor`,d:`M12 2a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3m7 9c0 3.53-2.61 6.44-6 6.93V21h-2v-3.07c-3.39-.49-6-3.4-6-6.93h2a5 5 0 0 0 5 5a5 5 0 0 0 5-5z`},null,-1)]])}var l=t({name:`mdi-microphone`,render:c});export{o as n,l as t};
1
+ import{Tn as e,Xn as t,Zt as n,en as r}from"./vendor-zxCOTbSj.js";var i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(t,a){return e(),r(`svg`,i,[...a[0]||=[n(`path`,{fill:`currentColor`,d:`M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83l3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75z`},null,-1)]])}var o=t({name:`mdi-pencil`,render:a}),s={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function c(t,i){return e(),r(`svg`,s,[...i[0]||=[n(`path`,{fill:`currentColor`,d:`M12 2a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3m7 9c0 3.53-2.61 6.44-6 6.93V21h-2v-3.07c-3.39-.49-6-3.4-6-6.93h2a5 5 0 0 0 5 5a5 5 0 0 0 5-5z`},null,-1)]])}var l=t({name:`mdi-microphone`,render:c});export{o as n,l as t};
@@ -0,0 +1 @@
1
+ import{H as e}from"./vendor-capacitor-BtNHOGrF.js";export{e as BiometricAuthNative};
@@ -0,0 +1 @@
1
+ import{I as e}from"./vendor-capacitor-BtNHOGrF.js";export{e as SecureStorageNative};