@camera.ui/server 2.1.14 → 2.1.16

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 (407) hide show
  1. package/dist/interface/assets/{404-DRo8zW0F.js → 404-CqZDSHs_.js} +1 -1
  2. package/dist/interface/assets/{About-DMjE0Qte.js → About-Dk4SUTxo.js} +1 -1
  3. package/dist/interface/assets/Automation-CDvt2MXN.js +3 -0
  4. package/dist/interface/assets/AutomationImport-DDywNuRK.js +2 -0
  5. package/dist/interface/assets/AutomationStore-o0JYwGRr.js +2 -0
  6. package/dist/interface/assets/AutomationStoreDetail-DeAGahaF.js +2 -0
  7. package/dist/interface/assets/Automations-2K-7hZfK.js +2 -0
  8. package/dist/interface/assets/Camera-B72IU-UF.js +2 -0
  9. package/dist/interface/assets/Camera-Cm9I0H6c.css +1 -0
  10. package/dist/interface/assets/{CameraConsole-CP_kwVq7.js → CameraConsole-32WtMX1a.js} +1 -1
  11. package/dist/interface/assets/{Cameras-Bp6P5eQC.js → Cameras-zffI0fD9.js} +2 -2
  12. package/dist/interface/assets/Camview-CZct5cnP.css +1 -0
  13. package/dist/interface/assets/Camview-KzzN0Q1w.js +1 -0
  14. package/dist/interface/assets/{CertificateUpload-CA2PrWb3.js → CertificateUpload-Dg0V9Hei.js} +1 -1
  15. package/dist/interface/assets/Config-CKrqFe-g.js +2 -0
  16. package/dist/interface/assets/{ConfigActionCameraControl-BODp6yd4.js → ConfigActionCameraControl-sbvBJQr3.js} +1 -1
  17. package/dist/interface/assets/{ConfigActionDelay-ChQOPeXL.js → ConfigActionDelay-CiPxydTn.js} +1 -1
  18. package/dist/interface/assets/{ConfigActionHttp-BVeQKfLN.js → ConfigActionHttp-UqiZm0kq.js} +1 -1
  19. package/dist/interface/assets/{ConfigActionImageInput-B99__kdP.js → ConfigActionImageInput-DkGVZ-ti.js} +1 -1
  20. package/dist/interface/assets/{ConfigActionMqtt-D595Lo5y.js → ConfigActionMqtt-DQu5H4bY.js} +1 -1
  21. package/dist/interface/assets/{ConfigActionNotification-DxzLPmUf.js → ConfigActionNotification-C2uXIMpm.js} +1 -1
  22. package/dist/interface/assets/{ConfigActionNotificationControl-Bp4yWebz.js → ConfigActionNotificationControl-B_EpM5m9.js} +1 -1
  23. package/dist/interface/assets/{ConfigActionOutput-Di3KaQ_P.js → ConfigActionOutput-DeOsk0T1.js} +1 -1
  24. package/dist/interface/assets/{ConfigActionPlugin-B7vbDV9n.js → ConfigActionPlugin-CSZHcNQ6.js} +1 -1
  25. package/dist/interface/assets/{ConfigActionSensor-Qj0c8MZq.js → ConfigActionSensor-Dx7DcDVr.js} +1 -1
  26. package/dist/interface/assets/{ConfigActionSnapshot-159QrEMJ.js → ConfigActionSnapshot-Baj-r4Cd.js} +1 -1
  27. package/dist/interface/assets/{ConfigActionVariable-Bodvejrx.js → ConfigActionVariable-Ccu___aS.js} +1 -1
  28. package/dist/interface/assets/{ConfigConditionIfElse-BMI_mgi3.js → ConfigConditionIfElse-0hU7UW8q.js} +1 -1
  29. package/dist/interface/assets/{ConfigConditionSensorState-DkwjHr31.js → ConfigConditionSensorState-BX19KYLJ.js} +1 -1
  30. package/dist/interface/assets/{ConfigConditionSwitch-ZlqOfRQE.js → ConfigConditionSwitch-D-XUhwcE.js} +1 -1
  31. package/dist/interface/assets/{ConfigConditionTime-B2igg9Tb.js → ConfigConditionTime-B6OO8cmh.js} +1 -1
  32. package/dist/interface/assets/{ConfigSensorValueInput-DMnkNDC_.js → ConfigSensorValueInput-DZHYQez8.js} +1 -1
  33. package/dist/interface/assets/{ConfigTriggerDetection-C_ujxraC.js → ConfigTriggerDetection-BNyR5aOG.js} +1 -1
  34. package/dist/interface/assets/ConfigTriggerGeofence-Cuq1SnOZ.js +1 -0
  35. package/dist/interface/assets/{ConfigTriggerManual-BVIiZfOj.js → ConfigTriggerManual-DFSTAuUt.js} +1 -1
  36. package/dist/interface/assets/{ConfigTriggerMqtt-B7Tf1jOh.js → ConfigTriggerMqtt-D_O8RyrQ.js} +1 -1
  37. package/dist/interface/assets/{ConfigTriggerSchedule-CcvA02N3.js → ConfigTriggerSchedule-BFZnBfCM.js} +1 -1
  38. package/dist/interface/assets/{ConfigTriggerSensor-CHCDeFmR.js → ConfigTriggerSensor-D1Tst2wQ.js} +1 -1
  39. package/dist/interface/assets/{ConfigTriggerSystem-0SeQnHSX.js → ConfigTriggerSystem-BNfatCp8.js} +1 -1
  40. package/dist/interface/assets/{ConfigTriggerWebhook-t0tFjZ7V.js → ConfigTriggerWebhook--nEO_Odl.js} +1 -1
  41. package/dist/interface/assets/{Console-B3xhLOhl.js → Console-DkylrXI4.js} +1 -1
  42. package/dist/interface/assets/{CuiAutomationRunsDialog-hZJsv95Y.js → CuiAutomationRunsDialog-CkMRT1C8.js} +1 -1
  43. package/dist/interface/assets/CuiBottomSheet-DILQuWKb.js +1 -0
  44. package/dist/interface/assets/CuiBottomSheet-_KXSb13N.css +1 -0
  45. package/dist/interface/assets/CuiBottomSheet-mKu68LHd.js +1 -0
  46. package/dist/interface/assets/CuiCameraPipCard-Djp8qBvZ.js +1 -0
  47. package/dist/interface/assets/CuiCameraRecordings-Bi0I7jeO.js +1 -0
  48. package/dist/interface/assets/CuiCameraShares-B73pWIFh.js +1 -0
  49. package/dist/interface/assets/CuiCameraTable-CUdAnRJP.js +1 -0
  50. package/dist/interface/assets/{CuiCameraTable-CkAeMqcZ.js → CuiCameraTable-DripFD6D.js} +1 -1
  51. package/dist/interface/assets/{CuiChartTable-CZXvn_Iy.js → CuiChartTable-DyyQV7mt.js} +1 -1
  52. package/dist/interface/assets/{CuiConsole-CW8Q43cq.js → CuiConsole-UxJwQqNG.js} +2 -2
  53. package/dist/interface/assets/{CuiDataTable-cN03N7lr.js → CuiDataTable-DZm0I8k7.js} +1 -1
  54. package/dist/interface/assets/CuiLightControl-CB3l0ZLj.js +1 -0
  55. package/dist/interface/assets/{CuiList-BI488Ne9.js → CuiList-DMQgYqaU.js} +1 -1
  56. package/dist/interface/assets/CuiPluginCard-HpQMNND1.js +2 -0
  57. package/dist/interface/assets/{CuiPluginCategoryChip-5YBKOVmo.js → CuiPluginCategoryChip-C6aEP-ug.js} +1 -1
  58. package/dist/interface/assets/CuiPluginOAuthButton-DpGacvsa.js +2 -0
  59. package/dist/interface/assets/{CuiPluginTrustBadge-BFpziu4f.js → CuiPluginTrustBadge-Dl1PEsm6.js} +1 -1
  60. package/dist/interface/assets/CuiQRCode-D04Onyhk.js +1 -0
  61. package/dist/interface/assets/CuiRecordingsGrid-BhATIjIf.css +1 -0
  62. package/dist/interface/assets/CuiRecordingsGrid-BzyJWpFt.js +1 -0
  63. package/dist/interface/assets/CuiSchema-thjfmEWw.js +1 -0
  64. package/dist/interface/assets/{CuiTopNavbarItem-CJqOqVMt.css → CuiTopNavbarItem-7673AFGS.css} +1 -1
  65. package/dist/interface/assets/CuiTopNavbarItem-qPj6XwXr.js +1 -0
  66. package/dist/interface/assets/Faces-DRWIPDfH.js +1 -0
  67. package/dist/interface/assets/FirstSteps-C6GVpZVr.js +1 -0
  68. package/dist/interface/assets/{Floorplan-Bxhdg4C2.css → Floorplan-B1lItPnM.css} +1 -1
  69. package/dist/interface/assets/Floorplan-Q-UYDnrE.js +1 -0
  70. package/dist/interface/assets/Instances-VC4-anOF.js +1 -0
  71. package/dist/interface/assets/{Logs-Bjyi3BKP.js → Logs-DROgZxLH.js} +2 -2
  72. package/dist/interface/assets/{Menu-BQDo_rxR.js → Menu-CmTk2or7.js} +1 -1
  73. package/dist/interface/assets/Metrics-CYZF-em9.js +9 -0
  74. package/dist/interface/assets/{OAuthDeviceFlow-C-a76FaQ.js → OAuthDeviceFlow-BrdiDoCh.js} +1 -1
  75. package/dist/interface/assets/Plugin-DuPHiiYJ.js +1 -0
  76. package/dist/interface/assets/{PluginConsole-B5A04A2x.js → PluginConsole-CxiW1w6K.js} +1 -1
  77. package/dist/interface/assets/PluginDetail-DWP7_hNa.js +2 -0
  78. package/dist/interface/assets/{PluginSchema-BJEOq6im.js → PluginSchema-BgVZ_4if.js} +1 -1
  79. package/dist/interface/assets/PluginSearch-1djFQUjL.js +1 -0
  80. package/dist/interface/assets/PluginSearch-Ba-hQHxm.js +2 -0
  81. package/dist/interface/assets/{PluginUpdateProgress-BZ-OtZet.js → PluginUpdateProgress-DEcle8-x.js} +1 -1
  82. package/dist/interface/assets/Plugins-BZ3U4pcG.js +1 -0
  83. package/dist/interface/assets/Recordings-CI5MIFR-.js +1 -0
  84. package/dist/interface/assets/Recordings-CfSTX_Mw.css +1 -0
  85. package/dist/interface/assets/{SensorEdit-CQagiAww.js → SensorEdit-B6s-VZ3F.js} +1 -1
  86. package/dist/interface/assets/{SensorHistory-DIMTRYRa.js → SensorHistory-H03yZia0.js} +1 -1
  87. package/dist/interface/assets/Sensors-DDPUwbb-.js +2 -0
  88. package/dist/interface/assets/{Sensors-CaKl4PQY.css → Sensors-DzGV2Ngo.css} +1 -1
  89. package/dist/interface/assets/Settings-9nC18KH8.js +1 -0
  90. package/dist/interface/assets/{Settings-jQIhZFRY.css → Settings-D7495zbV.css} +1 -1
  91. package/dist/interface/assets/SettingsAccount-BTYvhCJP.js +1 -0
  92. package/dist/interface/assets/SettingsAccount-CKi0z3Bm.js +1 -0
  93. package/dist/interface/assets/SettingsAppearance-CDbQnSvl.js +1 -0
  94. package/dist/interface/assets/{SettingsAppearance-NpsVIJUO.js → SettingsAppearance-D9Y28zzz.js} +1 -1
  95. package/dist/interface/assets/SettingsBackup-Bu48xw4v.js +1 -0
  96. package/dist/interface/assets/{SettingsList-BKyyC2_M.js → SettingsList-74c5OMQf.js} +1 -1
  97. package/dist/interface/assets/SettingsMqtt-81rJ4zV6.js +1 -0
  98. package/dist/interface/assets/{SettingsNotifications-kKPcCTLM.js → SettingsNotifications-xHV5KiZg.js} +1 -1
  99. package/dist/interface/assets/{SettingsPermissions-r6wxjmHg.js → SettingsPermissions-DqyVtVKE.js} +1 -1
  100. package/dist/interface/assets/{SettingsRecordings-GPy1AdjG.js → SettingsRecordings-Bxn28Frz.js} +1 -1
  101. package/dist/interface/assets/SettingsRemote-7h2dKJlF.js +2 -0
  102. package/dist/interface/assets/SettingsSystem-D-MLhCdN.js +2 -0
  103. package/dist/interface/assets/SettingsUsers-DUOJN7uO.js +1 -0
  104. package/dist/interface/assets/{Terminal-DtvlszuP.js → Terminal-45QW5yPE.js} +2 -2
  105. package/dist/interface/assets/Training-B5SzDUAC.css +1 -0
  106. package/dist/interface/assets/Training-DWrQVSS0.js +1 -0
  107. package/dist/interface/assets/Updates-B32Pra5E.js +2 -0
  108. package/dist/interface/assets/{VariableInput-C-f6bNmi.js → VariableInput-CyTGQFtz.js} +1 -1
  109. package/dist/interface/assets/{VariableSuggestions-B4LYkbu5.js → VariableSuggestions-BLlD4F87.js} +1 -1
  110. package/dist/interface/assets/{VersionsHandler-Cxxcwt9W.js → VersionsHandler-CIq6v6lE.js} +1 -1
  111. package/dist/interface/assets/{VirtualSensorCreate-CrGmWsI7.js → VirtualSensorCreate-Di2IyYAg.js} +1 -1
  112. package/dist/interface/assets/Workers-tb039NGc.js +2 -0
  113. package/dist/interface/assets/{api-CD4zuPhg.js → api-4JRK8ya0.js} +1 -1
  114. package/dist/interface/assets/api-CFf063x3.js +4 -0
  115. package/dist/interface/assets/api-eoOLTOnS.css +2 -0
  116. package/dist/interface/assets/{auth-W2HVbsrF.js → auth-ISkWvJbZ.js} +1 -1
  117. package/dist/interface/assets/{automations-CY5xtQCF.js → automations-CeH81DN-.js} +1 -1
  118. package/dist/interface/assets/{cameraSources-BSFgVwUz.js → cameraSources-CgAEmb37.js} +1 -1
  119. package/dist/interface/assets/cloudHandoff-B_kCnm4R.js +1 -0
  120. package/dist/interface/assets/{config-DOFSd8-0.js → config-DthCyQJv.js} +1 -1
  121. package/dist/interface/assets/{flowSchema-Bq6CskDh.js → flowSchema-DZ2bDhJt.js} +1 -1
  122. package/dist/interface/assets/{intercomService-CT_KVjly.js → intercomService-Bd71KwsB.js} +1 -1
  123. package/dist/interface/assets/main--lW4P3A4.js +3 -0
  124. package/dist/interface/assets/main-ExPfCNlz.css +1 -0
  125. package/dist/interface/assets/mqtt-oPORDio9.js +1 -0
  126. package/dist/interface/assets/{notifications-B_hY7DqC.js → notifications-BirFkpbF.js} +1 -1
  127. package/dist/interface/assets/{plugins-V5-6e5L7.js → plugins-vyA7MMhx.js} +1 -1
  128. package/dist/interface/assets/rooms-MfPQPywT.js +1 -0
  129. package/dist/interface/assets/{sensorIcons-DQIyC9JL.js → sensorIcons-B4H11BbT.js} +1 -1
  130. package/dist/interface/assets/{sensors-7R3hMa_s.js → sensors-xryx8Wvn.js} +1 -1
  131. package/dist/interface/assets/{server-CyCTaiWl.js → server-BK9gwxH8.js} +1 -1
  132. package/dist/interface/assets/{theme-Cc5MIK4j.js → theme-DQeAzJ1v.js} +1 -1
  133. package/dist/interface/assets/{types-D9iX7VVJ.js → types-Bcj_K26s.js} +1 -1
  134. package/dist/interface/assets/types-D626ASim.js +1 -0
  135. package/dist/interface/assets/{types-CDVUPFqE.js → types-kN1Tn2Og.js} +1 -1
  136. package/dist/interface/assets/ungrouped-C6pQb0X4.css +1 -0
  137. package/dist/interface/assets/ungrouped-C_gJm6d7.js +1 -0
  138. package/dist/interface/assets/{updates-H8lZYYSt.js → updates-Dzqxen12.js} +1 -1
  139. package/dist/interface/assets/{useAppVersion-DuXhWeJY.js → useAppVersion-JY7cdzlr.js} +1 -1
  140. package/dist/interface/assets/useBackupRestore-CeShFVWy.js +1 -0
  141. package/dist/interface/assets/{useCameraOptions-CZvujVuW.js → useCameraOptions-BeUNT5Rz.js} +1 -1
  142. package/dist/interface/assets/{useLogsSocket-DW5Ll9qN.js → useLogsSocket-DDSuX00j.js} +1 -1
  143. package/dist/interface/assets/{useNavLayout-Ay4GP0IF.js → useNavLayout-DgAgRNq2.js} +1 -1
  144. package/dist/interface/assets/{usePermissions-tvEa1N9y.js → usePermissions-DFzwIs8L.js} +1 -1
  145. package/dist/interface/assets/{usePluginUpdates-C6c7mdBo.js → usePluginUpdates-Bb-LOOyL.js} +1 -1
  146. package/dist/interface/assets/{usePushRegistration-Cp-oFaYU.js → usePushRegistration-iverdyzz.js} +1 -1
  147. package/dist/interface/assets/{useServerRestart-F0do0_a5.js → useServerRestart-BchofDLe.js} +1 -1
  148. package/dist/interface/assets/{useStreamStatus-Cof0SieK.js → useStreamStatus-BOJt1v1c.js} +1 -1
  149. package/dist/interface/assets/{useTabSwipe-CH2JsEKl.js → useTabSwipe-v0Yet-YZ.js} +1 -1
  150. package/dist/interface/assets/{useUpdateChannel--yUW8uvn.js → useUpdateChannel-K9ADk5yx.js} +1 -1
  151. package/dist/interface/assets/{useUpdatesSocket-DOHvs02g.js → useUpdatesSocket-sj1-DmFM.js} +1 -1
  152. package/dist/interface/assets/{useUserOptions-CO_I7IAm.js → useUserOptions-BnF_qBdZ.js} +1 -1
  153. package/dist/interface/assets/{vendor-cameraui-B96_CDGO.js → vendor-cameraui-BPX4wReW.js} +2 -2
  154. package/dist/interface/assets/{vendor-core-DFWGbWRD.js → vendor-core-D0ANiY7g.js} +1 -1
  155. package/dist/interface/assets/{vendor-primevue-uo78flP9.js → vendor-primevue-iEFYdXsu.js} +1 -1
  156. package/dist/interface/ha/{404-CvCsIvOn.js → 404-DlQnv9jN.js} +1 -1
  157. package/dist/interface/ha/{About-Bqb-qrXr.js → About-BLQJmllv.js} +6 -6
  158. package/dist/interface/ha/{Automation-AiOadcvh.js → Automation-DLMPArOd.js} +184 -184
  159. package/dist/interface/ha/{AutomationImport-CHs99b96.js → AutomationImport-Qzz3Ta4D.js} +6 -6
  160. package/dist/interface/ha/{AutomationStore-yTxgRNos.js → AutomationStore-DNXC9s6h.js} +51 -51
  161. package/dist/interface/ha/{AutomationStoreDetail-CWB-S_Dq.js → AutomationStoreDetail-CTqydRKj.js} +24 -24
  162. package/dist/interface/ha/{Automations-ymrcS6zL.js → Automations-DRxe1fli.js} +102 -102
  163. package/dist/interface/ha/{Camera-gfUjA1cF.js → Camera-OrI4Wf4F.js} +180 -180
  164. package/dist/interface/ha/{CameraConsole-DBM_9sZD.js → CameraConsole-6yGhoHmu.js} +4 -4
  165. package/dist/interface/ha/{Cameras-BDYtuflZ.js → Cameras-DpEaKKDG.js} +253 -253
  166. package/dist/interface/ha/{Camview-CyZW6Ccj.js → Camview-CnPz4cGs.js} +128 -128
  167. package/dist/interface/ha/{Config-Dw11VG_z.js → Config-Bb2ERyAA.js} +11 -11
  168. package/dist/interface/ha/{ConfigActionCameraControl-SpfqepU9.js → ConfigActionCameraControl-CC2tWFz2.js} +3 -3
  169. package/dist/interface/ha/{ConfigActionHttp-DRNiEJwf.js → ConfigActionHttp-DBsEL44i.js} +2 -2
  170. package/dist/interface/ha/{ConfigActionImageInput-BKIS7_Az.js → ConfigActionImageInput-Rt3AOJ3I.js} +1 -1
  171. package/dist/interface/ha/{ConfigActionMqtt-vcKjYONr.js → ConfigActionMqtt-BYSSc954.js} +4 -4
  172. package/dist/interface/ha/{ConfigActionNotification-C8RqA0hp.js → ConfigActionNotification-DKlIsZJd.js} +3 -3
  173. package/dist/interface/ha/{ConfigActionNotificationControl-DxDU-1LD.js → ConfigActionNotificationControl-D5AVW2tR.js} +2 -2
  174. package/dist/interface/ha/{ConfigActionOutput-Dd9tqEbp.js → ConfigActionOutput-DIlu8Ujc.js} +1 -1
  175. package/dist/interface/ha/{ConfigActionPlugin-hZohlF2U.js → ConfigActionPlugin-o1YNBh-g.js} +4 -4
  176. package/dist/interface/ha/{ConfigActionSensor-CsTZdgpn.js → ConfigActionSensor-BEvwg0tf.js} +5 -5
  177. package/dist/interface/ha/{ConfigActionSnapshot-CVuRrZog.js → ConfigActionSnapshot-Bnw0JNNj.js} +2 -2
  178. package/dist/interface/ha/{ConfigActionVariable-BW0Mfwzv.js → ConfigActionVariable-oGPagsvF.js} +1 -1
  179. package/dist/interface/ha/{ConfigConditionIfElse-B8giXSLg.js → ConfigConditionIfElse-7LCDNDvS.js} +3 -3
  180. package/dist/interface/ha/{ConfigConditionSensorState-SOYmnv38.js → ConfigConditionSensorState-nO-s7wi6.js} +4 -4
  181. package/dist/interface/ha/{ConfigConditionSwitch-DPYRsgIP.js → ConfigConditionSwitch-GrIKkY-P.js} +4 -4
  182. package/dist/interface/ha/{ConfigSensorValueInput-C8uDea7H.js → ConfigSensorValueInput-Cthp3KXt.js} +7 -7
  183. package/dist/interface/ha/{ConfigTriggerDetection-DKrNlf4n.js → ConfigTriggerDetection-CJE9QFaK.js} +11 -11
  184. package/dist/interface/ha/{ConfigTriggerGeofence-BoKYjfEF.js → ConfigTriggerGeofence-Cyeu7Cit.js} +5 -5
  185. package/dist/interface/ha/{ConfigTriggerMqtt-A0druw9s.js → ConfigTriggerMqtt-D5EoOztE.js} +1 -1
  186. package/dist/interface/ha/{ConfigTriggerSensor-DnqfzsxM.js → ConfigTriggerSensor-DYg_HRjO.js} +1 -1
  187. package/dist/interface/ha/{ConfigTriggerSystem-B8JHImoF.js → ConfigTriggerSystem-DzpajiyS.js} +2 -2
  188. package/dist/interface/ha/{ConfigTriggerWebhook-B34dHYln.js → ConfigTriggerWebhook-IE4PVb4O.js} +2 -2
  189. package/dist/interface/ha/{Console-vTZkA5_c.js → Console-BYgny5Dy.js} +100 -100
  190. package/dist/interface/ha/{CuiAutomationRunsDialog-D1j6QT1J.js → CuiAutomationRunsDialog-CoYgpbW0.js} +2 -2
  191. package/dist/interface/ha/{CuiBottomSheet-tJqB2HMb.js → CuiBottomSheet-C4cK3fYK.js} +3 -3
  192. package/dist/interface/ha/{CuiCameraRecordings-CbXShYur.js → CuiCameraRecordings-BAxchc71.js} +16 -15
  193. package/dist/interface/ha/{CuiCameraShares-fsCg_eYs.js → CuiCameraShares-CfQr1iyX.js} +7 -7
  194. package/dist/interface/ha/{CuiCameraTable-cCH34Rqx.js → CuiCameraTable-B60mcEl_.js} +9 -9
  195. package/dist/interface/ha/{CuiChartTable-CMkcRmDL.js → CuiChartTable-CbUVz-Cj.js} +42 -42
  196. package/dist/interface/ha/{CuiConsole-wuBto4Ht.js → CuiConsole-DEjAQFwC.js} +19 -19
  197. package/dist/interface/ha/{CuiDataTable-yviddz9T.js → CuiDataTable-005ptLsa.js} +7 -7
  198. package/dist/interface/ha/{CuiPluginCard-Dr4cFcve.js → CuiPluginCard-BWwPLJ6m.js} +33 -33
  199. package/dist/interface/ha/CuiPluginOAuthButton-CgmDgRY9.js +79 -0
  200. package/dist/interface/ha/{CuiPluginTrustBadge-CVwRbaTh.js → CuiPluginTrustBadge-BWnP1whX.js} +3 -3
  201. package/dist/interface/ha/{CuiQRCode-CTr0g0fy.js → CuiQRCode-ONkk6Wqy.js} +6 -6
  202. package/dist/interface/ha/{ungrouped-CpcBXTDQ.js → CuiRecordingsGrid-D6HHyF1D.js} +81 -462
  203. package/dist/interface/ha/{CuiSchema-DtfAoLxQ.js → CuiSchema-C3uI1GwG.js} +138 -138
  204. package/dist/interface/ha/{CuiTopNavbarItem-4H6Gg0Pe.js → CuiTopNavbarItem-Bhws0XkE.js} +3 -3
  205. package/dist/interface/ha/{Faces-DSjPW-A-.js → Faces-DuxYlZGd.js} +79 -79
  206. package/dist/interface/ha/{FirstSteps-BK_EXlZU.js → FirstSteps-BAlqShSK.js} +64 -64
  207. package/dist/interface/ha/{Floorplan-BWRteZjr.js → Floorplan-BVwSNFd6.js} +332 -332
  208. package/dist/interface/ha/{Instances-Dln03_o7.js → Instances-BM9sRNSP.js} +73 -73
  209. package/dist/interface/ha/{Logs-xwh0fkZV.js → Logs-KISz4BU-.js} +11 -11
  210. package/dist/interface/ha/{Menu-BwzIh1vF.js → Menu-DYI6PeIn.js} +19 -19
  211. package/dist/interface/ha/{Metrics-CiMXu6rz.js → Metrics-BjpKFunA.js} +101 -101
  212. package/dist/interface/ha/{OAuthDeviceFlow-D4IUrYub.js → OAuthDeviceFlow-DG-KUGZj.js} +4 -4
  213. package/dist/interface/ha/{Plugin-CM5b1Jz4.js → Plugin-BjWyUUhe.js} +103 -103
  214. package/dist/interface/ha/{PluginConsole-BJNblZb5.js → PluginConsole-BK3cotea.js} +6 -6
  215. package/dist/interface/ha/{PluginDetail--RFw88FL.js → PluginDetail-BDzDeShX.js} +13 -13
  216. package/dist/interface/ha/{PluginSearch-yzBxy3Zj.js → PluginSearch-DsFUuPC-.js} +54 -54
  217. package/dist/interface/ha/{PluginUpdateProgress-BaYmaaE7.js → PluginUpdateProgress-BMrdkjRq.js} +3 -3
  218. package/dist/interface/ha/{Plugins-C-sU0dsj.js → Plugins-3WPnsHXw.js} +27 -27
  219. package/dist/interface/ha/{Recordings-CXnTN85c.js → Recordings-0wDF4ArK.js} +153 -134
  220. package/dist/interface/ha/{SensorEdit-ByAfduAA.js → SensorEdit-B0L2zIha.js} +359 -359
  221. package/dist/interface/ha/{SensorHistory-Cv1YF7qX.js → SensorHistory-CQJEY1sW.js} +2 -2
  222. package/dist/interface/ha/{Sensors-DyxXLT1C.js → Sensors-BYdBTCLo.js} +251 -251
  223. package/dist/interface/ha/{Settings-DMBgMUpe.js → Settings-BaqGiBCa.js} +24 -24
  224. package/dist/interface/ha/SettingsAccount-B0Sth0EF.js +970 -0
  225. package/dist/interface/ha/{SettingsAppearance-BfXcGIwE.js → SettingsAppearance-B_oylmTa.js} +14 -14
  226. package/dist/interface/ha/{SettingsBackup-vsITZfgV.js → SettingsBackup-BLmoV5AW.js} +8 -8
  227. package/dist/interface/ha/{SettingsList-BTxhjM8J.js → SettingsList-CMX7wMye.js} +5 -5
  228. package/dist/interface/ha/{SettingsMqtt-JHf9BXbp.js → SettingsMqtt-C-sGwxOZ.js} +148 -148
  229. package/dist/interface/ha/SettingsNotifications-tc9FCCUF.js +529 -0
  230. package/dist/interface/ha/{SettingsRecordings-BAUAhyEd.js → SettingsRecordings-DDs16z2A.js} +6 -6
  231. package/dist/interface/ha/{SettingsRemote-DAI3p-gY.js → SettingsRemote-0c0umjFJ.js} +355 -355
  232. package/dist/interface/ha/{SettingsSystem-D-UQqZyn.js → SettingsSystem-DfXxWXQk.js} +10 -10
  233. package/dist/interface/ha/{SettingsUsers-D-_uCeBe.js → SettingsUsers-CmjC0zsF.js} +42 -42
  234. package/dist/interface/ha/{Terminal-BBBP74zZ.js → Terminal-nbUX6PPZ.js} +76 -76
  235. package/dist/interface/ha/Training-GMcD4Qg9.js +1440 -0
  236. package/dist/interface/ha/{Updates-DDEAqmrt.js → Updates-UaxBGn6D.js} +14 -14
  237. package/dist/interface/ha/{VariableInput-5aDKaHK6.js → VariableInput-0bF2H1Bm.js} +1 -1
  238. package/dist/interface/ha/{VersionsHandler-Z5aUBicW.js → VersionsHandler-CnXVnfBl.js} +10 -10
  239. package/dist/interface/ha/{VirtualSensorCreate-DOjwBgbP.js → VirtualSensorCreate-BE60rAkJ.js} +7 -7
  240. package/dist/interface/ha/{Workers-lI-ulBfQ.js → Workers-CaX3Z3w-.js} +104 -104
  241. package/dist/interface/ha/{api-BU1ot-rQ.js → api-CmcbBFTx.js} +9831 -9471
  242. package/dist/interface/ha/{api-B-1nJvx1.js → api-S-NnjUWl.js} +4 -4
  243. package/dist/interface/ha/{auth-Wr26Jrhr.js → auth-CqYE7s1-.js} +24 -24
  244. package/dist/interface/ha/{automationBlueprint-CjXCYTHX.js → automationBlueprint-Dmp54JD1.js} +2 -2
  245. package/dist/interface/ha/cameraui-cards.js +1 -1
  246. package/dist/interface/ha/{cards-DJ8I0DpS.js → cards-MnCBmBIR.js} +121 -121
  247. package/dist/interface/ha/cloud-check-BFJzoUtz.js +33 -0
  248. package/dist/interface/ha/{config--3c2hYeI.js → config-C94KN4WM.js} +15 -15
  249. package/dist/interface/ha/{mqtt-CSWN3zrE.js → mqtt-HDLqlOJt.js} +15 -15
  250. package/dist/interface/ha/{notifications-B4jziVIo.js → notifications-C2_2_NRh.js} +22 -22
  251. package/dist/interface/ha/{pinia-3D39Do4a.js → pinia-DLNUke3Q.js} +172 -149
  252. package/dist/interface/ha/{plugins-BTBXmJqQ.js → plugins-l2i4DgqO.js} +68 -68
  253. package/dist/interface/ha/{rooms-BxY9U6db.js → rooms-Bp1ZVAzT.js} +11 -11
  254. package/dist/interface/ha/{server-BxPWpMFK.js → server-BsduJDAB.js} +32 -32
  255. package/dist/interface/ha/{types-D_Y5r1Yz.js → types-iZUCCt1P.js} +30 -30
  256. package/dist/interface/ha/ungrouped-wz-KNJpA.js +426 -0
  257. package/dist/interface/ha/{updates-Hyzkue_s.js → updates-CDsPvhpo.js} +36 -36
  258. package/dist/interface/ha/{useAppVersion-BME7p9Tn.js → useAppVersion-BJtSGn4X.js} +1 -1
  259. package/dist/interface/ha/{useLogsSocket-9HYA1tN7.js → useLogsSocket-Ck-ZQpQD.js} +1 -1
  260. package/dist/interface/ha/{useNavLayout-BP3bvHDX.js → useNavLayout-Bn6HYs-i.js} +19 -19
  261. package/dist/interface/ha/{useServerRestart-L0gugeHY.js → useServerRestart-fff_KK9Y.js} +1 -1
  262. package/dist/interface/ha/{useTabSwipe-DKFPKAuu.js → useTabSwipe-B1CQZuyT.js} +1 -1
  263. package/dist/interface/ha/{useUpdateChannel-DgPBMvzK.js → useUpdateChannel-DUBmGEDe.js} +2 -2
  264. package/dist/interface/ha/{useUpdatesSocket-j4Sl2_YJ.js → useUpdatesSocket-DoLb2kcJ.js} +1 -1
  265. package/dist/interface/ha/{useUserOptions-BIVNeXD9.js → useUserOptions-D0kNSHFH.js} +1 -1
  266. package/dist/interface/index.html +27 -27
  267. package/dist/interface/sw.js +1 -1
  268. package/dist/server/package.json +8 -8
  269. package/dist/server/src/api/controllers/training.controller.d.ts +38 -0
  270. package/dist/server/src/api/controllers/training.controller.js +97 -0
  271. package/dist/server/src/api/controllers/training.controller.js.map +1 -0
  272. package/dist/server/src/api/database/constants.d.ts +1 -0
  273. package/dist/server/src/api/database/constants.js +1 -0
  274. package/dist/server/src/api/database/constants.js.map +1 -1
  275. package/dist/server/src/api/database/index.d.ts +3 -2
  276. package/dist/server/src/api/database/index.js +4 -2
  277. package/dist/server/src/api/database/index.js.map +1 -1
  278. package/dist/server/src/api/database/migrations/v2-1-19.d.ts +3 -0
  279. package/dist/server/src/api/database/migrations/v2-1-19.js +24 -0
  280. package/dist/server/src/api/database/migrations/v2-1-19.js.map +1 -0
  281. package/dist/server/src/api/database/record-schemas.d.ts +6 -1
  282. package/dist/server/src/api/database/record-schemas.js +7 -0
  283. package/dist/server/src/api/database/record-schemas.js.map +1 -1
  284. package/dist/server/src/api/database/types.d.ts +27 -0
  285. package/dist/server/src/api/index.js +1 -1
  286. package/dist/server/src/api/index.js.map +1 -1
  287. package/dist/server/src/api/render-index.js +1 -1
  288. package/dist/server/src/api/render-index.js.map +1 -1
  289. package/dist/server/src/api/routes/index.js +2 -0
  290. package/dist/server/src/api/routes/index.js.map +1 -1
  291. package/dist/server/src/api/routes/training.routes.d.ts +2 -0
  292. package/dist/server/src/api/routes/training.routes.js +106 -0
  293. package/dist/server/src/api/routes/training.routes.js.map +1 -0
  294. package/dist/server/src/api/schemas/cameras.schema.d.ts +76 -76
  295. package/dist/server/src/api/schemas/remote.schema.d.ts +1 -1
  296. package/dist/server/src/api/schemas/training.schema.d.ts +42 -0
  297. package/dist/server/src/api/schemas/training.schema.js +42 -0
  298. package/dist/server/src/api/schemas/training.schema.js.map +1 -0
  299. package/dist/server/src/api/services/cameras.service.js +7 -2
  300. package/dist/server/src/api/services/cameras.service.js.map +1 -1
  301. package/dist/server/src/api/websocket/index.js +3 -1
  302. package/dist/server/src/api/websocket/index.js.map +1 -1
  303. package/dist/server/src/api/websocket/nsp/training.d.ts +11 -0
  304. package/dist/server/src/api/websocket/nsp/training.js +29 -0
  305. package/dist/server/src/api/websocket/nsp/training.js.map +1 -0
  306. package/dist/server/src/api/websocket/types.d.ts +1 -1
  307. package/dist/server/src/camera/decoder/detection-coordinator.d.ts +1 -0
  308. package/dist/server/src/camera/decoder/detection-coordinator.js +31 -1
  309. package/dist/server/src/camera/decoder/detection-coordinator.js.map +1 -1
  310. package/dist/server/src/camera/decoder/event-manager.d.ts +6 -0
  311. package/dist/server/src/camera/decoder/event-manager.js +43 -1
  312. package/dist/server/src/camera/decoder/event-manager.js.map +1 -1
  313. package/dist/server/src/camera/decoder/training-sink.d.ts +26 -0
  314. package/dist/server/src/camera/decoder/training-sink.js +131 -0
  315. package/dist/server/src/camera/decoder/training-sink.js.map +1 -0
  316. package/dist/server/src/camera/decoder/types.d.ts +4 -0
  317. package/dist/server/src/camera/decoder/types.js +12 -0
  318. package/dist/server/src/camera/decoder/types.js.map +1 -1
  319. package/dist/server/src/manager/coreManager.d.ts +3 -1
  320. package/dist/server/src/manager/coreManager.js +18 -0
  321. package/dist/server/src/manager/coreManager.js.map +1 -1
  322. package/dist/server/src/manager/trainingCandidateManager.d.ts +42 -0
  323. package/dist/server/src/manager/trainingCandidateManager.js +250 -0
  324. package/dist/server/src/manager/trainingCandidateManager.js.map +1 -0
  325. package/dist/server/src/manager/types.d.ts +19 -0
  326. package/dist/server/src/manager/types.js +2 -0
  327. package/dist/server/src/manager/types.js.map +1 -1
  328. package/dist/server/src/remote/api/credentialStore.d.ts +1 -0
  329. package/dist/server/src/remote/api/credentialStore.js +24 -0
  330. package/dist/server/src/remote/api/credentialStore.js.map +1 -1
  331. package/dist/server/src/remote/api/index.d.ts +2 -0
  332. package/dist/server/src/remote/api/index.js +3 -0
  333. package/dist/server/src/remote/api/index.js.map +1 -1
  334. package/dist/server/src/remote/api/routes/oauth.js +1 -1
  335. package/dist/server/src/remote/api/routes/oauth.js.map +1 -1
  336. package/dist/server/src/remote/api/routes/train.d.ts +19 -0
  337. package/dist/server/src/remote/api/routes/train.js +47 -0
  338. package/dist/server/src/remote/api/routes/train.js.map +1 -0
  339. package/dist/server/src/rpc/index.d.ts +2 -0
  340. package/dist/server/src/rpc/index.js +5 -0
  341. package/dist/server/src/rpc/index.js.map +1 -1
  342. package/dist/server/src/rpc/interfaces/core.d.ts +21 -0
  343. package/dist/server/src/rpc/server.js +2 -0
  344. package/dist/server/src/rpc/server.js.map +1 -1
  345. package/package.json +8 -8
  346. package/dist/interface/assets/Automation-BLolxsX8.js +0 -3
  347. package/dist/interface/assets/AutomationImport-C_rR9kDq.js +0 -2
  348. package/dist/interface/assets/AutomationStore-whk_TeCG.js +0 -2
  349. package/dist/interface/assets/AutomationStoreDetail-BDDgg3zY.js +0 -2
  350. package/dist/interface/assets/Automations-sEIWIfdE.js +0 -2
  351. package/dist/interface/assets/Camera-BWdUUW_H.css +0 -1
  352. package/dist/interface/assets/Camera-l1DApD8b.js +0 -2
  353. package/dist/interface/assets/Camview-BZS4_jv1.css +0 -1
  354. package/dist/interface/assets/Camview-CWS3VJ1A.js +0 -1
  355. package/dist/interface/assets/Config-C02ndytC.js +0 -2
  356. package/dist/interface/assets/ConfigTriggerGeofence-DnYSaLPb.js +0 -1
  357. package/dist/interface/assets/CuiBottomSheet-Cv_fwvYu.js +0 -1
  358. package/dist/interface/assets/CuiBottomSheet-DsjZEdig.css +0 -1
  359. package/dist/interface/assets/CuiBottomSheet-epGdNqA8.js +0 -1
  360. package/dist/interface/assets/CuiCameraPipCard-Bm6wjm6h.js +0 -1
  361. package/dist/interface/assets/CuiCameraRecordings-4LLV-U85.js +0 -1
  362. package/dist/interface/assets/CuiCameraShares-DqmX3koT.js +0 -1
  363. package/dist/interface/assets/CuiCameraTable-CfyXLqkh.js +0 -1
  364. package/dist/interface/assets/CuiLightControl-CA8MAVex.js +0 -1
  365. package/dist/interface/assets/CuiPluginCard-Bj6cUIJ0.js +0 -2
  366. package/dist/interface/assets/CuiPluginOAuthButton-BmdfXNce.js +0 -2
  367. package/dist/interface/assets/CuiQRCode-CiWTLo9T.js +0 -1
  368. package/dist/interface/assets/CuiSchema-DntSkCO2.js +0 -1
  369. package/dist/interface/assets/CuiTopNavbarItem-DuzCbIZ8.js +0 -1
  370. package/dist/interface/assets/Faces-Bea5pIop.js +0 -1
  371. package/dist/interface/assets/FirstSteps-BNbQsYHq.js +0 -1
  372. package/dist/interface/assets/Floorplan-D9zKFQ2q.js +0 -1
  373. package/dist/interface/assets/Instances-DBphCwLn.js +0 -1
  374. package/dist/interface/assets/Metrics-Dvnil66d.js +0 -9
  375. package/dist/interface/assets/Plugin-1ZS-dcRt.js +0 -1
  376. package/dist/interface/assets/PluginDetail-SCj7WYL6.js +0 -2
  377. package/dist/interface/assets/PluginSearch-CHeix3n8.js +0 -2
  378. package/dist/interface/assets/PluginSearch-CcjGzS5R.js +0 -1
  379. package/dist/interface/assets/Plugins-DS-NZusx.js +0 -1
  380. package/dist/interface/assets/Recordings-Bqb2uV7R.js +0 -1
  381. package/dist/interface/assets/Recordings-D4NzYCO9.css +0 -1
  382. package/dist/interface/assets/Sensors-DU0MBnV1.js +0 -2
  383. package/dist/interface/assets/Settings-Dn-TJCtd.js +0 -1
  384. package/dist/interface/assets/SettingsAccount-CLclTO2m.js +0 -1
  385. package/dist/interface/assets/SettingsAccount-Q2sigi3a.js +0 -1
  386. package/dist/interface/assets/SettingsAppearance-Bo61ZncS.js +0 -1
  387. package/dist/interface/assets/SettingsBackup-D1NER4RI.js +0 -1
  388. package/dist/interface/assets/SettingsMqtt-14d54svj.js +0 -1
  389. package/dist/interface/assets/SettingsRemote-Da_6mcHl.js +0 -2
  390. package/dist/interface/assets/SettingsSystem-BpPrajwG.js +0 -2
  391. package/dist/interface/assets/SettingsUsers-CBItOJic.js +0 -1
  392. package/dist/interface/assets/Updates-CV5MWBHg.js +0 -2
  393. package/dist/interface/assets/Workers-DaHj_0te.js +0 -2
  394. package/dist/interface/assets/api-BTWXbCPQ.css +0 -2
  395. package/dist/interface/assets/api-CdT8ZD-n.js +0 -4
  396. package/dist/interface/assets/cloudHandoff-RfAVMcZZ.js +0 -1
  397. package/dist/interface/assets/main-Qqk3RyYP.css +0 -1
  398. package/dist/interface/assets/main-VmsUT9aF.js +0 -3
  399. package/dist/interface/assets/mqtt-x7JvjSZ0.js +0 -1
  400. package/dist/interface/assets/rooms-iq9Ync9a.js +0 -1
  401. package/dist/interface/assets/types-Br6AbfXl.js +0 -1
  402. package/dist/interface/assets/ungrouped-B-_P9Nxn.js +0 -1
  403. package/dist/interface/assets/ungrouped-DTYy_Pud.css +0 -1
  404. package/dist/interface/assets/useBackupRestore-C9JlDbTt.js +0 -1
  405. package/dist/interface/ha/CuiPluginOAuthButton-D4M7piUp.js +0 -105
  406. package/dist/interface/ha/SettingsAccount-CiyVRy4Y.js +0 -970
  407. package/dist/interface/ha/SettingsNotifications-Bvay7Ob7.js +0 -529
@@ -0,0 +1,970 @@
1
+ import { r as e } from "./rolldown-runtime-CEFd7nDs.js";
2
+ import { c as t } from "./ripple-BilzxWfY.js";
3
+ import { D as n, Dt as r, G as i, H as a, Jt as o, M as s, Y as c, _t as l, d as u, f as d, gt as f, kt as p, l as m, lt as h, p as g, r as _, rt as v, u as y, ut as b, v as ee, wt as x, x as S, xt as C, y as w, z as te } from "./runtime-core.esm-bundler-D8slQ3BU.js";
4
+ import { t as ne } from "./tooltip-BIrD_hC8.js";
5
+ import { t as T } from "./message-C8U_kMBA.js";
6
+ import { t as re } from "./tag-CXgC9OZ6.js";
7
+ import { At as ie, B as ae, C as oe, Cr as E, F as D, I as se, Mt as ce, Nn as le, O, P as k, Pn as ue, Si as A, Xr as de, Yr as fe, at as pe, c as me, di as he, h as ge, j as _e, jt as ve, k as j, kt as ye, m as be, ot as xe, r as M, ut as Se, wr as Ce } from "./api-CmcbBFTx.js";
8
+ import { i as we } from "./intercomService-jB2mTgsn.js";
9
+ import { r as Te } from "./pinia-DLNUke3Q.js";
10
+ import { n as N } from "./vue-i18n-Dcb07o5U.js";
11
+ import { t as Ee } from "./button-BlYuI0Q7.js";
12
+ import { t as De } from "./inputtext-DGIESrd0.js";
13
+ import { i as Oe, t as ke } from "./CuiDataTable-005ptLsa.js";
14
+ import { t as Ae } from "./CuiQRCode-ONkk6Wqy.js";
15
+ import { n as je, t as P } from "./auth-CqYE7s1-.js";
16
+ //#region ~icons/mdi/key
17
+ var F = {
18
+ viewBox: "0 0 24 24",
19
+ width: "1.2em",
20
+ height: "1.2em"
21
+ };
22
+ function I(e, t) {
23
+ return a(), g("svg", F, [...t[0] ||= [y("path", {
24
+ fill: "currentColor",
25
+ d: "M7 14c-1.1 0-2-.9-2-2s.9-2 2-2s2 .9 2 2s-.9 2-2 2m5.6-4c-.8-2.3-3-4-5.6-4c-3.3 0-6 2.7-6 6s2.7 6 6 6c2.6 0 4.8-1.7 5.6-4H16v4h4v-4h3v-4z"
26
+ }, null, -1)]]);
27
+ }
28
+ var Me = l({
29
+ name: "mdi-key",
30
+ render: I
31
+ }), L = {
32
+ viewBox: "0 0 24 24",
33
+ width: "1.2em",
34
+ height: "1.2em"
35
+ };
36
+ function R(e, t) {
37
+ return a(), g("svg", L, [...t[0] ||= [y("path", {
38
+ fill: "currentColor",
39
+ d: "M17 19H7V5h10m0-4H7c-1.11 0-2 .89-2 2v18a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2"
40
+ }, null, -1)]]);
41
+ }
42
+ var Ne = l({
43
+ name: "mdi-cellphone",
44
+ render: R
45
+ }), z = {
46
+ viewBox: "0 0 24 24",
47
+ width: "1.2em",
48
+ height: "1.2em"
49
+ };
50
+ function Pe(e, t) {
51
+ return a(), g("svg", z, [...t[0] ||= [y("path", {
52
+ fill: "currentColor",
53
+ d: "M22 18v4h-4v-3h-3v-3h-3l-2.26-2.26c-.55.17-1.13.26-1.74.26a6 6 0 0 1-6-6a6 6 0 0 1 6-6a6 6 0 0 1 6 6c0 .61-.09 1.19-.26 1.74zM7 5a2 2 0 0 0-2 2a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2"
54
+ }, null, -1)]]);
55
+ }
56
+ var Fe = l({
57
+ name: "mdi-key-variant",
58
+ render: Pe
59
+ }), Ie = {
60
+ viewBox: "0 0 24 24",
61
+ width: "1.2em",
62
+ height: "1.2em"
63
+ };
64
+ function B(e, t) {
65
+ return a(), g("svg", Ie, [...t[0] ||= [y("path", {
66
+ fill: "currentColor",
67
+ d: "M4 6h16v10H4m16 2a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4c-1.11 0-2 .89-2 2v10a2 2 0 0 0 2 2H0v2h24v-2z"
68
+ }, null, -1)]]);
69
+ }
70
+ var Le = l({
71
+ name: "mdi-laptop",
72
+ render: B
73
+ }), Re = {
74
+ viewBox: "0 0 24 24",
75
+ width: "1.2em",
76
+ height: "1.2em"
77
+ };
78
+ function ze(e, t) {
79
+ return a(), g("svg", Re, [...t[0] ||= [y("path", {
80
+ fill: "currentColor",
81
+ d: "M21 17H3V5h18m0-2H3a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5v2h8v-2h5a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2"
82
+ }, null, -1)]]);
83
+ }
84
+ var Be = l({
85
+ name: "mdi-television",
86
+ render: ze
87
+ }), V = { class: "flex flex-col gap-6" }, Ve = { class: "token-box" }, He = { class: "token-value" }, Ue = /*#__PURE__*/ E(/* @__PURE__ */ S({
88
+ __name: "ApiTokenCreated",
89
+ props: { token: {} },
90
+ setup(e, { expose: t }) {
91
+ let n = e, i = A(), { t: s } = N(), { token: c } = r(n);
92
+ async function l() {
93
+ await M(c.value) ? i.add({
94
+ severity: "success",
95
+ detail: s("components.toast.copied"),
96
+ life: 1500
97
+ }) : i.add({
98
+ severity: "error",
99
+ detail: s("components.toast.copy_failed"),
100
+ life: 3e3
101
+ });
102
+ }
103
+ async function d() {}
104
+ return t({ onConfirm: d }), (e, t) => {
105
+ let n = T, r = Ee, i = ne;
106
+ return a(), g("div", V, [w(n, { severity: "warn" }, {
107
+ default: h(() => [ee(o(e.$t("views.settings.api_tokens.created_warning")), 1)]),
108
+ _: 1
109
+ }), y("div", Ve, [y("span", He, o(p(c)), 1), b((a(), u(r, {
110
+ text: "",
111
+ rounded: "",
112
+ class: "cui-icon-md shrink-0",
113
+ onClick: l
114
+ }, {
115
+ icon: h(() => [w(p(ye), {
116
+ width: "100%",
117
+ height: "100%"
118
+ })]),
119
+ _: 1
120
+ })), [[i, { value: e.$t("components.form.button.copy") }]])])]);
121
+ };
122
+ }
123
+ }), [["__scopeId", "data-v-591cfcb4"]]), We = { class: "flex flex-col gap-2 w-full" }, H = {
124
+ for: "apiTokenName",
125
+ class: "cui-label"
126
+ }, Ge = {
127
+ key: 0,
128
+ class: "text-xs text-red-500"
129
+ }, Ke = /* @__PURE__ */ S({
130
+ __name: "CreateApiToken",
131
+ props: { existingNames: {} },
132
+ setup(e, { expose: t }) {
133
+ let n = e, r = C(""), i = m(() => n.existingNames.includes(r.value.trim()));
134
+ return t({ onConfirm: async () => {
135
+ let e = r.value.trim();
136
+ return !e || i.value ? null : e;
137
+ } }), (e, t) => {
138
+ let n = De;
139
+ return a(), g("div", We, [
140
+ y("label", H, o(e.$t("views.settings.api_tokens.name_label")), 1),
141
+ w(n, {
142
+ id: "apiTokenName",
143
+ modelValue: p(r),
144
+ "onUpdate:modelValue": t[0] ||= (e) => f(r) ? r.value = e : null,
145
+ class: "w-full",
146
+ placeholder: e.$t("views.settings.api_tokens.name_placeholder"),
147
+ autofocus: "",
148
+ invalid: p(i)
149
+ }, null, 8, [
150
+ "modelValue",
151
+ "placeholder",
152
+ "invalid"
153
+ ]),
154
+ p(i) ? (a(), g("span", Ge, o(e.$t("views.settings.api_tokens.name_exists")), 1)) : d("", !0)
155
+ ]);
156
+ };
157
+ }
158
+ }), qe = { class: "flex flex-col gap-6" }, Je = { class: "backup-codes-grid" }, Ye = /*#__PURE__*/ E(/* @__PURE__ */ S({
159
+ __name: "TwoFactorBackupCodes",
160
+ props: { backupCodes: {} },
161
+ setup(e, { expose: t }) {
162
+ let { backupCodes: n } = r(e);
163
+ async function s() {}
164
+ return t({ onConfirm: s }), (e, t) => {
165
+ let r = T;
166
+ return a(), g("div", qe, [w(r, { severity: "warn" }, {
167
+ default: h(() => [ee(o(e.$t("views.settings.security.backup_warning")), 1)]),
168
+ _: 1
169
+ }), y("div", Je, [(a(!0), g(_, null, i(p(n), (e) => (a(), g("span", {
170
+ key: e,
171
+ class: "backup-code"
172
+ }, o(e), 1))), 128))])]);
173
+ };
174
+ }
175
+ }), [["__scopeId", "data-v-0761a2ae"]]), Xe = { class: "flex flex-col gap-6" }, Ze = { class: "text-muted" }, Qe = { class: "flex flex-col gap-2 justify-center items-center mt-5" }, U = { class: "cui-label" }, $e = /* @__PURE__ */ S({
176
+ __name: "TwoFactorDisable",
177
+ setup(e, { expose: t }) {
178
+ let r = new P(), i = A(), { t: s } = N(), c = n("dialogRefProps"), { mutateAsync: l, isPending: u } = r.disable2FAQuery(), d = C(""), h = m(() => !!(c.loading?.value || u.value)), _ = m(() => d.value.length < 6);
179
+ async function v() {
180
+ if (d.value.length < 6) return null;
181
+ try {
182
+ await l({ code: d.value }), i.add({
183
+ severity: "success",
184
+ detail: s("views.settings.security.2fa_disabled_success"),
185
+ life: 3e3
186
+ });
187
+ } catch (e) {
188
+ return i.add({
189
+ severity: "error",
190
+ detail: e,
191
+ life: 3e3
192
+ }), null;
193
+ }
194
+ }
195
+ return t({
196
+ isLoading: h,
197
+ isDisabled: _,
198
+ onConfirm: v
199
+ }), (e, t) => {
200
+ let n = xe;
201
+ return a(), g("div", Xe, [y("p", Ze, o(e.$t("views.settings.security.disable_confirm")), 1), y("div", Qe, [y("label", U, o(e.$t("views.settings.security.enter_code")), 1), w(n, {
202
+ modelValue: p(d),
203
+ "onUpdate:modelValue": t[0] ||= (e) => f(d) ? d.value = e : null,
204
+ length: 6,
205
+ "integer-only": "",
206
+ class: "justify-center"
207
+ }, null, 8, ["modelValue"])])]);
208
+ };
209
+ }
210
+ }), W = { class: "flex flex-col gap-6" }, G = { class: "text-muted" }, K = { class: "flex flex-col gap-2 justify-center items-center mt-5" }, q = { class: "cui-label" }, et = /* @__PURE__ */ S({
211
+ __name: "TwoFactorRegenerate",
212
+ props: { onBackupCodesGenerated: { type: Function } },
213
+ setup(e, { expose: t }) {
214
+ let r = new P(), i = e, s = A(), { t: c } = N(), l = n("dialogRefProps"), { mutateAsync: u, isPending: d } = r.regenerateBackupCodesQuery(), h = C(""), _ = m(() => !!(l.loading?.value || d.value)), v = m(() => h.value.length < 6);
215
+ async function b() {
216
+ if (h.value.length < 6) return null;
217
+ try {
218
+ let e = await u({ code: h.value });
219
+ s.add({
220
+ severity: "success",
221
+ detail: c("views.settings.security.backup_regenerated"),
222
+ life: 3e3
223
+ }), i.onBackupCodesGenerated && i.onBackupCodesGenerated(e.backupCodes);
224
+ } catch (e) {
225
+ return s.add({
226
+ severity: "error",
227
+ detail: e,
228
+ life: 3e3
229
+ }), null;
230
+ }
231
+ }
232
+ return t({
233
+ isLoading: _,
234
+ isDisabled: v,
235
+ onConfirm: b
236
+ }), (e, t) => {
237
+ let n = xe;
238
+ return a(), g("div", W, [y("p", G, o(e.$t("views.settings.security.regenerate_confirm")), 1), y("div", K, [y("label", q, o(e.$t("views.settings.security.enter_code")), 1), w(n, {
239
+ modelValue: p(h),
240
+ "onUpdate:modelValue": t[0] ||= (e) => f(h) ? h.value = e : null,
241
+ length: 6,
242
+ "integer-only": "",
243
+ class: "justify-center"
244
+ }, null, 8, ["modelValue"])])]);
245
+ };
246
+ }
247
+ }), tt = { class: "flex flex-col w-full gap-6" }, nt = { class: "relative" }, rt = { class: "image-upload rounded-full z-1" }, it = { for: "file-input" }, at = { class: "card-title" }, ot = { class: "flex flex-col gap-6" }, st = {
248
+ for: "username",
249
+ class: "cui-label"
250
+ }, ct = { class: "card-title" }, lt = { class: "flex flex-col gap-6" }, ut = {
251
+ for: "password",
252
+ class: "cui-label"
253
+ }, dt = {
254
+ for: "passwordConfirm",
255
+ class: "cui-label"
256
+ }, ft = { class: "relative" }, pt = { class: "image-upload rounded-full z-1" }, mt = { for: "file-input" }, ht = { class: "card-title" }, gt = { class: "flex flex-col gap-6" }, _t = { class: "flex flex-col field-gap" }, vt = {
257
+ for: "username",
258
+ class: "cui-label"
259
+ }, yt = { class: "flex flex-row items-end justify-end" }, bt = { class: "card-title" }, xt = {
260
+ for: "password",
261
+ class: "cui-label"
262
+ }, St = {
263
+ for: "passwordConfirm",
264
+ class: "cui-label"
265
+ }, Ct = { class: "flex flex-row items-end justify-end" }, wt = { class: "card-title" }, Tt = {
266
+ key: 0,
267
+ class: "flex justify-center py-6"
268
+ }, Et = {
269
+ key: "initial",
270
+ class: "flex flex-col gap-6"
271
+ }, Dt = { class: "flex flex-col gap-1" }, Ot = { class: "tfa-row-title" }, kt = { class: "tfa-row-description" }, At = {
272
+ key: "loading",
273
+ class: "flex flex-col items-center py-8 gap-3"
274
+ }, jt = { class: "text-sm text-muted" }, Mt = {
275
+ key: "setup",
276
+ class: "tfa-setup"
277
+ }, Nt = { class: "tfa-setup-qr" }, Pt = { class: "text-sm text-muted text-center mt-3" }, Ft = { class: "flex flex-col gap-5 flex-1" }, It = { class: "flex flex-col field-gap" }, Lt = { class: "cui-label" }, Rt = { class: "flex flex-col field-gap" }, zt = { class: "cui-label" }, Bt = { class: "flex gap-2 justify-end" }, Vt = {
278
+ key: "enabled",
279
+ class: "flex flex-col gap-6"
280
+ }, Ht = { class: "tfa-row tfa-row-enabled" }, Ut = { class: "tfa-status-icon" }, Wt = { class: "tfa-row-content" }, Gt = { class: "tfa-row-title" }, Kt = {
281
+ key: 0,
282
+ class: "tfa-backup-info"
283
+ }, qt = { class: "flex gap-2 justify-end" }, Jt = { key: 0 }, Yt = { class: "card-title" }, Xt = { class: "flex items-center gap-4" }, Zt = { class: "flex flex-col field-switch-gap min-w-0" }, Qt = { class: "text-sm font-bold text-color" }, $t = { class: "card-title" }, en = { class: "flex flex-col gap-6" }, tn = { class: "text-sm text-muted" }, nn = { class: "text-muted text-sm" }, rn = { class: "flex items-center gap-3" }, an = { class: "flex flex-col min-w-0" }, on = { class: "text-sm font-semibold text-color truncate" }, sn = { class: "text-xs text-muted truncate font-mono" }, cn = { class: "text-xs text-muted" }, ln = { class: "flex flex-row items-end justify-end gap-2" }, un = { class: "card-title" }, dn = { class: "flex flex-col gap-6" }, fn = { class: "text-muted text-sm" }, pn = { class: "flex items-center gap-3" }, mn = { class: "flex flex-col min-w-0" }, hn = { class: "flex items-center gap-2" }, gn = { class: "text-sm font-semibold text-color truncate" }, _n = { class: "text-xs text-muted truncate" }, vn = {
284
+ key: 0,
285
+ class: "flex flex-row items-end justify-end gap-2"
286
+ }, J = /*@__PURE__*/ S({
287
+ __name: "SettingsAccount",
288
+ props: { firststeps: { type: Boolean } },
289
+ setup(e, { expose: n }) {
290
+ let i = new P(), l = e, S = Se(), E = A(), { t: F } = N(), { firststeps: I } = r(l), L = ge(), { user: R } = Te(L), { data: z, isLoading: Pe } = i.toggleQueryActivator("get2FAStatusQuery", !I.value).get2FAStatusQuery(), { mutateAsync: Ie, isPending: B } = i.setup2FAQuery(), { mutateAsync: Re, isPending: ze } = i.enable2FAQuery(), { data: V, isBusy: Ve } = i.toggleQueryActivator("listSessionsQuery", !I.value).listSessionsQuery({
291
+ page: 1,
292
+ pageSize: -1
293
+ }), { mutateAsync: He } = i.revokeSessionQuery(), { mutateAsync: We } = i.revokeOtherSessionsQuery(), { data: H, isBusy: Ge } = i.toggleQueryActivator("listApiTokensQuery", !I.value).listApiTokensQuery(), { mutateAsync: qe, isPending: Je } = i.createApiTokenQuery(), { mutateAsync: Xe } = i.revokeApiTokenQuery(), Ze = O({
294
+ password: oe,
295
+ passwordConfirm: j().min(1)
296
+ }).refine((e) => e.password === e.passwordConfirm, {
297
+ message: "Passwords do not match",
298
+ path: ["passwordConfirm"]
299
+ }), Qe = O({
300
+ username: j().min(1),
301
+ password: oe,
302
+ passwordConfirm: j().min(1)
303
+ }).refine((e) => e.password === e.passwordConfirm, {
304
+ message: "Passwords do not match",
305
+ path: ["passwordConfirm"]
306
+ }), U = v("formRef"), W = v("passwordFormRef"), G = x(), K = C("avatar"), q = C(R.value?.username ?? ""), J = C(!1), Y = C(!1), X = C(null), Z = C(""), yn = C(null), bn = C(!1), Q = C(null);
307
+ C(!1);
308
+ let xn = C(!1), Sn = C(!1), Cn = m(() => !1), wn = {
309
+ bodyRow: { class: "text-sm text-secondary" },
310
+ column: { columnTitle: { class: "text-sm" } }
311
+ }, $ = m(() => (V.value ?? []).filter((e) => !e.is_current).length), Tn = m(() => !X.value?.secret || !R.value?.username ? "" : `otpauth://totp/${encodeURIComponent(`camera.ui:${R.value.username}`)}?secret=${X.value.secret}&issuer=camera.ui`);
312
+ async function En() {
313
+ X.value?.secret && await M(X.value.secret);
314
+ }
315
+ function Dn(e) {
316
+ return e === "tv" ? Be : e === "native" ? Ne : Le;
317
+ }
318
+ async function On(e) {
319
+ yn.value = e;
320
+ try {
321
+ await He({ id: e });
322
+ } catch (e) {
323
+ E.add({
324
+ severity: "error",
325
+ detail: e,
326
+ life: 3e3
327
+ });
328
+ } finally {
329
+ yn.value = null;
330
+ }
331
+ }
332
+ function kn() {
333
+ S.openComponentDialog(Ke, {
334
+ data: {
335
+ title: F("views.settings.api_tokens.create"),
336
+ confirmText: F("views.settings.api_tokens.create_confirm"),
337
+ contentProps: { existingNames: (H.value ?? []).map((e) => e.name) }
338
+ },
339
+ onConfirm: async (e) => {
340
+ if (e) try {
341
+ An((await qe({ name: e })).token);
342
+ } catch (e) {
343
+ E.add({
344
+ severity: "error",
345
+ detail: e,
346
+ life: 3e3
347
+ });
348
+ }
349
+ }
350
+ });
351
+ }
352
+ function An(e) {
353
+ S.openComponentDialog(Ue, { data: {
354
+ title: F("views.settings.api_tokens.created_title"),
355
+ confirmText: F("components.form.button.close"),
356
+ hideCancelButton: !0,
357
+ contentProps: { token: e }
358
+ } });
359
+ }
360
+ function jn(e) {
361
+ S.openTextDialog({
362
+ data: {
363
+ title: F("views.settings.api_tokens.revoke_title"),
364
+ contentText: F("views.settings.api_tokens.revoke_confirm", { name: e.name }),
365
+ confirmText: F("views.settings.api_tokens.revoke"),
366
+ confirmButtonProps: { severity: "danger" }
367
+ },
368
+ onConfirm: async () => {
369
+ Q.value = e.id;
370
+ try {
371
+ await Xe({ id: e.id });
372
+ } catch (e) {
373
+ E.add({
374
+ severity: "error",
375
+ detail: e,
376
+ life: 3e3
377
+ });
378
+ } finally {
379
+ Q.value = null;
380
+ }
381
+ }
382
+ });
383
+ }
384
+ function Mn() {
385
+ S.openTextDialog({
386
+ data: {
387
+ title: F("views.settings.active_sessions.revoke_others_title"),
388
+ contentText: F("views.settings.active_sessions.revoke_others_confirm", { count: $.value }),
389
+ confirmText: F("views.settings.active_sessions.revoke"),
390
+ confirmButtonProps: { severity: "danger" }
391
+ },
392
+ onConfirm: async () => {
393
+ bn.value = !0;
394
+ try {
395
+ await We();
396
+ } catch (e) {
397
+ E.add({
398
+ severity: "error",
399
+ detail: e,
400
+ life: 3e3
401
+ });
402
+ } finally {
403
+ bn.value = !1;
404
+ }
405
+ }
406
+ });
407
+ }
408
+ async function Nn() {
409
+ try {
410
+ X.value = await Ie();
411
+ } catch (e) {
412
+ E.add({
413
+ severity: "error",
414
+ detail: e,
415
+ life: 3e3
416
+ });
417
+ }
418
+ }
419
+ function Pn() {
420
+ X.value = null, Z.value = "";
421
+ }
422
+ async function Fn() {
423
+ try {
424
+ let e = await Re({ code: Z.value });
425
+ X.value = null, Z.value = "", E.add({
426
+ severity: "success",
427
+ detail: F("views.settings.security.2fa_enabled_success"),
428
+ life: 3e3
429
+ }), Rn(e.backupCodes);
430
+ } catch (e) {
431
+ E.add({
432
+ severity: "error",
433
+ detail: e,
434
+ life: 3e3
435
+ });
436
+ }
437
+ }
438
+ function In() {
439
+ S.openComponentDialog($e, { data: {
440
+ title: F("views.settings.security.disable_2fa"),
441
+ confirmText: F("views.settings.security.disable_2fa"),
442
+ confirmButtonProps: { severity: "danger" },
443
+ contentProps: {}
444
+ } });
445
+ }
446
+ function Ln() {
447
+ S.openComponentDialog(et, { data: {
448
+ title: F("views.settings.security.regenerate_backup"),
449
+ confirmText: F("views.settings.security.regenerate_backup"),
450
+ contentProps: { onBackupCodesGenerated: (e) => {
451
+ Rn(e);
452
+ } }
453
+ } });
454
+ }
455
+ function Rn(e) {
456
+ S.openComponentDialog(Ye, { data: {
457
+ title: F("views.settings.security.backup_codes"),
458
+ confirmText: F("components.form.button.close"),
459
+ hideCancelButton: !0,
460
+ contentProps: { backupCodes: e }
461
+ } });
462
+ }
463
+ async function zn(e) {
464
+ let t = e.target?.files;
465
+ G.value = t?.[0], K.value = await be(e) ?? K.value;
466
+ }
467
+ async function Bn() {
468
+ J.value = !0;
469
+ try {
470
+ let e;
471
+ G.value && (e = new FormData(), e.append("upload", G.value));
472
+ let t = R.value?.username !== q.value;
473
+ if (t) await L.updateUser({ username: q.value }, e);
474
+ else if (e) await L.updateUser(void 0, e);
475
+ else {
476
+ J.value = !1;
477
+ return;
478
+ }
479
+ E.add({
480
+ severity: "success",
481
+ detail: F("components.toast.profile_updated"),
482
+ life: 3e3
483
+ }), G.value = void 0, t && L.logout();
484
+ } catch {}
485
+ J.value = !1;
486
+ }
487
+ async function Vn(e) {
488
+ Y.value = !0;
489
+ try {
490
+ await L.updateUser({
491
+ password: e.password,
492
+ passwordConfirm: e.passwordConfirm
493
+ }), E.add({
494
+ severity: "success",
495
+ detail: F("components.toast.password_updated"),
496
+ life: 3e3
497
+ }), W.value?.resetForm(), L.logout();
498
+ } catch (e) {
499
+ E.add({
500
+ severity: "error",
501
+ detail: e,
502
+ life: 3e3
503
+ });
504
+ }
505
+ Y.value = !1;
506
+ }
507
+ async function Hn() {}
508
+ async function Un(e) {
509
+ if (e !== xn.value) {
510
+ if (e) {
511
+ E.add({
512
+ severity: "info",
513
+ detail: F("views.settings.biometric.enable_hint"),
514
+ life: 3e3
515
+ });
516
+ return;
517
+ }
518
+ Sn.value = !0;
519
+ try {
520
+ await _e(he()), xn.value = !1, E.add({
521
+ severity: "success",
522
+ detail: F("views.settings.biometric.cleared"),
523
+ life: 3e3
524
+ });
525
+ } finally {
526
+ Sn.value = !1;
527
+ }
528
+ }
529
+ }
530
+ return te(() => {
531
+ Hn();
532
+ }), n({ formRef: U }), (e, n) => {
533
+ let r = le, i = De, l = ce, m = we, v = pe, x = Ee, S = Ce, C = Ae, te = ie, oe = ve, E = xe, O = fe, A = Me, he = de, ge = T, _e = ue, j = Oe, be = ae, M = ke, Se = re, Te = je, N = ne;
534
+ return a(), g("div", null, [y("div", tt, [p(I) ? (a(), u(p(se), {
535
+ key: 0,
536
+ ref_key: "formRef",
537
+ ref: U,
538
+ "validation-schema": p(Qe),
539
+ class: "flex flex-col w-full gap-6"
540
+ }, {
541
+ default: h(() => [y("div", nt, [
542
+ y("div", rt, [y("label", it, [w(r, {
543
+ src: p(K),
544
+ size: 64,
545
+ "show-border": !1,
546
+ class: "cursor-pointer"
547
+ }, null, 8, ["src"]), y("input", {
548
+ id: "file-input",
549
+ type: "file",
550
+ class: "hidden",
551
+ accept: "image/png,image/jpeg,image/jpg",
552
+ onChange: n[0] ||= (e) => zn(e)
553
+ }, null, 32)])]),
554
+ y("span", at, o(e.$t("views.settings.profile")), 1),
555
+ w(m, { class: "cui-card" }, {
556
+ content: h(() => [y("div", ot, [w(p(D), {
557
+ "model-value": p(R)?.username,
558
+ name: "username",
559
+ as: "div",
560
+ class: "flex flex-col field-gap"
561
+ }, {
562
+ default: h(({ field: n, errors: r }) => [
563
+ y("label", st, o(e.$t("components.form.label.username")), 1),
564
+ w(l, null, {
565
+ default: h(() => [w(i, s(n, {
566
+ invalid: r.length > 0,
567
+ type: "text"
568
+ }), null, 16, ["invalid"])]),
569
+ _: 2
570
+ }, 1024),
571
+ w(t, { name: "fade" }, {
572
+ default: h(() => [w(p(k), {
573
+ name: "username",
574
+ class: "cui-input-error"
575
+ })]),
576
+ _: 1
577
+ })
578
+ ]),
579
+ _: 1
580
+ }, 8, ["model-value"])])]),
581
+ _: 1
582
+ })
583
+ ]), y("div", null, [y("span", ct, o(e.$t("views.settings.password")), 1), w(m, { class: "cui-card" }, {
584
+ content: h(() => [y("div", lt, [w(p(D), {
585
+ name: "password",
586
+ as: "div",
587
+ class: "flex flex-col field-gap"
588
+ }, {
589
+ default: h(({ field: n, errors: r }) => [
590
+ y("label", ut, o(e.$t("components.form.label.new_password")), 1),
591
+ w(l, null, {
592
+ default: h(() => [w(v, s({ invalid: r.length > 0 }, n, {
593
+ feedback: !1,
594
+ "toggle-mask": ""
595
+ }), null, 16, ["invalid"])]),
596
+ _: 2
597
+ }, 1024),
598
+ w(t, { name: "fade" }, {
599
+ default: h(() => [w(p(k), {
600
+ name: "password",
601
+ class: "cui-input-error"
602
+ })]),
603
+ _: 1
604
+ })
605
+ ]),
606
+ _: 1
607
+ }), w(p(D), {
608
+ name: "passwordConfirm",
609
+ as: "div",
610
+ class: "flex flex-col field-gap"
611
+ }, {
612
+ default: h(({ field: n, errors: r }) => [
613
+ y("label", dt, o(e.$t("components.form.label.new_password_confirm")), 1),
614
+ w(l, null, {
615
+ default: h(() => [w(v, s({ invalid: r.length > 0 }, n, {
616
+ feedback: !1,
617
+ "toggle-mask": ""
618
+ }), null, 16, ["invalid"])]),
619
+ _: 2
620
+ }, 1024),
621
+ w(t, { name: "fade" }, {
622
+ default: h(() => [w(p(k), {
623
+ name: "passwordConfirm",
624
+ class: "cui-input-error"
625
+ })]),
626
+ _: 1
627
+ })
628
+ ]),
629
+ _: 1
630
+ })])]),
631
+ _: 1
632
+ })])]),
633
+ _: 1
634
+ }, 8, ["validation-schema"])) : (a(), g(_, { key: 1 }, [
635
+ y("div", ft, [
636
+ y("div", pt, [y("label", mt, [w(r, {
637
+ src: p(K),
638
+ size: 64,
639
+ "show-border": !1,
640
+ class: "cursor-pointer"
641
+ }, null, 8, ["src"]), y("input", {
642
+ id: "file-input",
643
+ type: "file",
644
+ class: "hidden",
645
+ accept: "image/png,image/jpeg,image/jpg",
646
+ onChange: n[1] ||= (e) => zn(e)
647
+ }, null, 32)])]),
648
+ y("span", ht, o(e.$t("views.settings.profile")), 1),
649
+ w(m, { class: "cui-card" }, {
650
+ content: h(() => [y("div", gt, [y("div", _t, [y("label", vt, o(e.$t("components.form.label.username")), 1), w(l, null, {
651
+ default: h(() => [w(i, {
652
+ modelValue: p(q),
653
+ "onUpdate:modelValue": n[2] ||= (e) => f(q) ? q.value = e : null,
654
+ loading: p(J),
655
+ type: "text"
656
+ }, null, 8, ["modelValue", "loading"])]),
657
+ _: 1
658
+ })]), y("div", yt, [w(x, {
659
+ loading: p(J),
660
+ class: "cui-button-medium",
661
+ label: e.$t("components.form.button.update_profile"),
662
+ onClick: Bn
663
+ }, null, 8, ["loading", "label"])])])]),
664
+ _: 1
665
+ })
666
+ ]),
667
+ y("div", null, [y("span", bt, o(e.$t("views.settings.password")), 1), w(m, { class: "cui-card" }, {
668
+ content: h(() => [w(p(se), {
669
+ ref_key: "passwordFormRef",
670
+ ref: W,
671
+ "validation-schema": p(Ze),
672
+ class: "flex flex-col gap-6",
673
+ onSubmit: n[3] ||= (e) => Vn(e)
674
+ }, {
675
+ default: h(() => [
676
+ w(p(D), {
677
+ name: "password",
678
+ as: "div",
679
+ class: "flex flex-col field-gap"
680
+ }, {
681
+ default: h(({ field: n, errors: r }) => [
682
+ y("label", xt, o(e.$t("components.form.label.new_password")), 1),
683
+ w(l, null, {
684
+ default: h(() => [w(v, s({ invalid: r.length > 0 }, n, {
685
+ loading: p(Y),
686
+ feedback: !1,
687
+ "toggle-mask": ""
688
+ }), null, 16, ["invalid", "loading"])]),
689
+ _: 2
690
+ }, 1024),
691
+ w(t, { name: "fade" }, {
692
+ default: h(() => [w(p(k), {
693
+ name: "password",
694
+ class: "cui-input-error"
695
+ })]),
696
+ _: 1
697
+ })
698
+ ]),
699
+ _: 1
700
+ }),
701
+ w(p(D), {
702
+ name: "passwordConfirm",
703
+ as: "div",
704
+ class: "flex flex-col field-gap"
705
+ }, {
706
+ default: h(({ field: n, errors: r }) => [
707
+ y("label", St, o(e.$t("components.form.label.new_password_confirm")), 1),
708
+ w(l, null, {
709
+ default: h(() => [w(v, s({ invalid: r.length > 0 }, n, {
710
+ loading: p(Y),
711
+ feedback: !1,
712
+ "toggle-mask": ""
713
+ }), null, 16, ["invalid", "loading"])]),
714
+ _: 2
715
+ }, 1024),
716
+ w(t, { name: "fade" }, {
717
+ default: h(() => [w(p(k), {
718
+ name: "passwordConfirm",
719
+ class: "cui-input-error"
720
+ })]),
721
+ _: 1
722
+ })
723
+ ]),
724
+ _: 1
725
+ }),
726
+ y("div", Ct, [w(x, {
727
+ type: "submit",
728
+ loading: p(Y),
729
+ class: "cui-button-medium",
730
+ label: e.$t("components.form.button.change_password")
731
+ }, null, 8, ["loading", "label"])])
732
+ ]),
733
+ _: 1
734
+ }, 8, ["validation-schema"])]),
735
+ _: 1
736
+ })]),
737
+ y("div", null, [y("span", wt, o(e.$t("views.settings.security.title")), 1), w(m, { class: "cui-card" }, {
738
+ content: h(() => [p(Pe) ? (a(), g("div", Tt, [w(S, {
739
+ class: "w-[30px] h-[30px] m-0",
740
+ "stroke-width": "5"
741
+ })])) : (a(), u(t, {
742
+ key: 1,
743
+ name: "fade",
744
+ mode: "out-in"
745
+ }, {
746
+ default: h(() => [!p(z)?.enabled && !p(X) && !p(B) ? (a(), g("div", Et, [y("div", Dt, [y("span", Ot, o(e.$t("views.settings.security.2fa_title")), 1), y("span", kt, o(e.$t("views.settings.security.2fa_description")), 1)]), w(x, {
747
+ class: "cui-button-medium ml-auto",
748
+ label: e.$t("views.settings.security.setup_2fa"),
749
+ onClick: Nn
750
+ }, null, 8, ["label"])])) : !p(z)?.enabled && p(B) ? (a(), g("div", At, [w(S, {
751
+ class: "w-[30px] h-[30px] m-0",
752
+ "stroke-width": "5"
753
+ }), y("span", jt, o(e.$t("views.settings.security.generating_qr")), 1)])) : !p(z)?.enabled && p(X) ? (a(), g("div", Mt, [y("div", Nt, [w(C, {
754
+ value: p(Tn),
755
+ size: 160,
756
+ "logo-size": 36
757
+ }, null, 8, ["value"]), y("p", Pt, o(e.$t("views.settings.security.scan_qr")), 1)]), y("div", Ft, [
758
+ y("div", It, [y("label", Lt, o(e.$t("views.settings.security.manual_entry")), 1), w(l, null, {
759
+ default: h(() => [w(i, {
760
+ "model-value": p(X)?.secret,
761
+ readonly: "",
762
+ class: "font-mono text-sm"
763
+ }, null, 8, ["model-value"]), w(oe, null, {
764
+ default: h(() => [w(te, {
765
+ "action-text": e.$t("components.form.tooltip.copied"),
766
+ icon: p(ye),
767
+ "button-props": {
768
+ severity: "secondary",
769
+ text: !0
770
+ },
771
+ onAction: En
772
+ }, null, 8, ["action-text", "icon"])]),
773
+ _: 1
774
+ })]),
775
+ _: 1
776
+ })]),
777
+ y("div", Rt, [y("label", zt, o(e.$t("views.settings.security.enter_code")), 1), w(E, {
778
+ modelValue: p(Z),
779
+ "onUpdate:modelValue": n[4] ||= (e) => f(Z) ? Z.value = e : null,
780
+ length: 6,
781
+ "integer-only": ""
782
+ }, null, 8, ["modelValue"])]),
783
+ y("div", Bt, [w(x, {
784
+ severity: "secondary",
785
+ class: "cui-button-medium",
786
+ label: e.$t("components.form.button.cancel"),
787
+ onClick: Pn
788
+ }, null, 8, ["label"]), w(x, {
789
+ class: "cui-button-medium",
790
+ label: e.$t("views.settings.security.enable_2fa"),
791
+ loading: p(ze),
792
+ disabled: p(Z).length < 6,
793
+ onClick: Fn
794
+ }, null, 8, [
795
+ "label",
796
+ "loading",
797
+ "disabled"
798
+ ])])
799
+ ])])) : (a(), g("div", Vt, [
800
+ y("div", Ht, [y("div", Ut, [w(O, { class: "w-5 h-5" })]), y("div", Wt, [y("span", Gt, o(e.$t("views.settings.security.2fa_enabled")), 1)])]),
801
+ p(z)?.backupCodesCount === void 0 ? d("", !0) : (a(), g("div", Kt, [w(A, { class: "w-4 h-4" }), y("span", null, o(e.$t("views.settings.security.backup_codes_remaining", { count: p(z).backupCodesCount })), 1)])),
802
+ y("div", qt, [w(x, {
803
+ severity: "secondary",
804
+ class: "cui-button-medium",
805
+ label: e.$t("views.settings.security.regenerate_backup"),
806
+ onClick: Ln
807
+ }, null, 8, ["label"]), w(x, {
808
+ severity: "danger",
809
+ class: "cui-button-medium",
810
+ label: e.$t("views.settings.security.disable_2fa"),
811
+ onClick: In
812
+ }, null, 8, ["label"])])
813
+ ]))]),
814
+ _: 1
815
+ }))]),
816
+ _: 1
817
+ })]),
818
+ p(Cn) ? (a(), g("div", Jt, [y("span", Yt, o(e.$t("views.settings.biometric.title")), 1), w(m, { class: "cui-card" }, {
819
+ content: h(() => [y("div", Xt, [
820
+ w(he, { class: "shrink-0 w-6 h-6 text-color" }),
821
+ y("div", Zt, [y("span", Qt, o(e.$t("views.settings.biometric.label")), 1), w(ge, {
822
+ severity: "secondary",
823
+ variant: "simple",
824
+ size: "small",
825
+ class: "cui-input-switch-hint"
826
+ }, {
827
+ default: h(() => [ee(o(e.$t("views.settings.biometric.description")), 1)]),
828
+ _: 1
829
+ })]),
830
+ w(_e, {
831
+ "model-value": p(xn),
832
+ loading: p(Sn),
833
+ class: "ml-auto shrink-0",
834
+ "onUpdate:modelValue": Un
835
+ }, null, 8, ["model-value", "loading"])
836
+ ])]),
837
+ _: 1
838
+ })])) : d("", !0),
839
+ y("div", null, [y("span", $t, o(e.$t("views.settings.api_tokens.title")), 1), w(m, { class: "cui-card" }, {
840
+ content: h(() => [y("div", en, [
841
+ y("span", tn, o(e.$t("views.settings.api_tokens.info")), 1),
842
+ w(M, {
843
+ value: p(H) ?? [],
844
+ "data-key": "id",
845
+ loading: p(Ge),
846
+ pt: wn,
847
+ "striped-rows": "",
848
+ scrollable: ""
849
+ }, {
850
+ loading: h(() => [w(S, {
851
+ class: "w-[30px] h-[30px] m-0",
852
+ "stroke-width": "5"
853
+ })]),
854
+ empty: h(() => [y("span", nn, o(e.$t("views.settings.api_tokens.empty")), 1)]),
855
+ default: h(() => [
856
+ w(j, {
857
+ field: "name",
858
+ header: e.$t("views.settings.api_tokens.name_label"),
859
+ "header-class": "p-2 h-7 min-h-7 max-h-7",
860
+ class: "p-2 h-7 min-h-7 max-h-7"
861
+ }, {
862
+ body: h(({ data: e }) => [y("div", rn, [w(p(Fe), { class: "cui-session-icon" }), y("div", an, [y("span", on, o(e.name), 1), y("span", sn, o(e.token_hint), 1)])])]),
863
+ _: 1
864
+ }, 8, ["header"]),
865
+ w(j, {
866
+ field: "last_seen_at",
867
+ header: e.$t("views.settings.api_tokens.last_used"),
868
+ "header-class": "p-2 h-7 min-h-7 max-h-7",
869
+ class: "p-2 h-7 min-h-7 max-h-7"
870
+ }, {
871
+ body: h(({ data: t }) => [y("span", cn, o(t.last_seen_at > t.created_at ? p(me)(t.last_seen_at) : e.$t("views.settings.api_tokens.never")), 1)]),
872
+ _: 1
873
+ }, 8, ["header"]),
874
+ w(j, {
875
+ field: "action",
876
+ "header-class": "p-2 h-7 min-h-7 max-h-7",
877
+ class: "p-2 h-7 min-h-7 max-h-7 text-right"
878
+ }, {
879
+ body: h(({ data: t }) => [b((a(), u(x, {
880
+ severity: "danger",
881
+ text: "",
882
+ rounded: "",
883
+ class: "cui-icon-md",
884
+ loading: p(Q) === t.id,
885
+ onClick: (e) => jn(t)
886
+ }, {
887
+ icon: h(() => [w(be, {
888
+ width: "100%",
889
+ height: "100%"
890
+ })]),
891
+ _: 1
892
+ }, 8, ["loading", "onClick"])), [[N, { value: e.$t("views.settings.api_tokens.revoke") }]])]),
893
+ _: 1
894
+ })
895
+ ]),
896
+ _: 1
897
+ }, 8, ["value", "loading"]),
898
+ y("div", ln, [w(x, {
899
+ loading: p(Je),
900
+ class: "cui-button-medium mr-4 md:mr-0",
901
+ label: e.$t("views.settings.api_tokens.create"),
902
+ onClick: kn
903
+ }, null, 8, ["loading", "label"])])
904
+ ])]),
905
+ _: 1
906
+ })]),
907
+ y("div", null, [y("span", un, o(e.$t("views.settings.active_sessions.title")), 1), w(m, { class: "cui-card" }, {
908
+ content: h(() => [y("div", dn, [w(M, {
909
+ value: p(V) ?? [],
910
+ "data-key": "id",
911
+ loading: p(Ve),
912
+ pt: wn,
913
+ "striped-rows": "",
914
+ scrollable: ""
915
+ }, {
916
+ loading: h(() => [w(S, {
917
+ class: "w-[30px] h-[30px] m-0",
918
+ "stroke-width": "5"
919
+ })]),
920
+ empty: h(() => [y("span", fn, o(e.$t("views.settings.active_sessions.empty")), 1)]),
921
+ default: h(() => [w(j, {
922
+ field: "device",
923
+ header: e.$t("views.settings.title_device"),
924
+ "header-class": "p-2 h-7 min-h-7 max-h-7",
925
+ class: "p-2 h-7 min-h-7 max-h-7"
926
+ }, {
927
+ body: h(({ data: t }) => [y("div", pn, [(a(), u(c(Dn(t.device.kind)), { class: "cui-session-icon" })), y("div", mn, [y("div", hn, [y("span", gn, o(t.device.name), 1), t.is_current ? (a(), u(Se, {
928
+ key: 0,
929
+ severity: "success",
930
+ value: e.$t("views.settings.active_sessions.this_device"),
931
+ class: "cui-session-tag"
932
+ }, null, 8, ["value"])) : d("", !0)]), y("span", _n, o(t.device.ip || "—"), 1)])])]),
933
+ _: 1
934
+ }, 8, ["header"]), w(j, {
935
+ field: "action",
936
+ "header-class": "p-2 h-7 min-h-7 max-h-7",
937
+ class: "p-2 h-7 min-h-7 max-h-7 text-right"
938
+ }, {
939
+ body: h(({ data: t }) => [t.is_current ? d("", !0) : b((a(), u(x, {
940
+ key: 0,
941
+ severity: "danger",
942
+ text: "",
943
+ rounded: "",
944
+ class: "cui-icon-md",
945
+ loading: p(yn) === t.id,
946
+ onClick: (e) => On(t.id)
947
+ }, {
948
+ icon: h(() => [w(Te, {
949
+ width: "100%",
950
+ height: "100%"
951
+ })]),
952
+ _: 1
953
+ }, 8, ["loading", "onClick"])), [[N, { value: e.$t("views.settings.active_sessions.revoke") }]])]),
954
+ _: 1
955
+ })]),
956
+ _: 1
957
+ }, 8, ["value", "loading"]), p($) > 0 ? (a(), g("div", vn, [w(x, {
958
+ loading: p(bn),
959
+ class: "cui-button-medium mr-4 md:mr-0",
960
+ label: e.$t("views.settings.active_sessions.revoke_all_others", { count: p($) }),
961
+ onClick: Mn
962
+ }, null, 8, ["loading", "label"])])) : d("", !0)])]),
963
+ _: 1
964
+ })])
965
+ ], 64))])]);
966
+ };
967
+ }
968
+ }), Y = /* @__PURE__ */ e({ default: () => X }), X = /*#__PURE__*/ E(J, [["__scopeId", "data-v-de51a7b1"]]);
969
+ //#endregion
970
+ export { Y as n, X as t };