@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
@@ -1,970 +0,0 @@
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 x, wt as S, x as C, xt as w, y as T, z as ee } from "./runtime-core.esm-bundler-D8slQ3BU.js";
4
- import { t as te } from "./tooltip-BIrD_hC8.js";
5
- import { t as ne } from "./message-C8U_kMBA.js";
6
- import { t as re } from "./tag-CXgC9OZ6.js";
7
- import { A as ie, D as ae, Dt as oe, Et as se, F as ce, Gr as le, N as E, O as D, On as ue, Ot as de, P as O, S as k, Tt as fe, Wr as pe, ai as me, c as he, gi as A, kn as ge, m as _e, nt as ve, ot as j, p as ye, r as M, tt as be, vr as N, yr as xe, z as Se } from "./api-BU1ot-rQ.js";
8
- import { i as Ce } from "./intercomService-jB2mTgsn.js";
9
- import { r as we } from "./pinia-3D39Do4a.js";
10
- import { n as P } from "./vue-i18n-Dcb07o5U.js";
11
- import { t as Te } from "./button-BlYuI0Q7.js";
12
- import { t as Ee } from "./inputtext-DGIESrd0.js";
13
- import { i as De, t as Oe } from "./CuiDataTable-yviddz9T.js";
14
- import { t as ke } from "./CuiQRCode-CTr0g0fy.js";
15
- import { n as Ae, t as F } from "./auth-Wr26Jrhr.js";
16
- //#region ~icons/mdi/key
17
- var I = {
18
- viewBox: "0 0 24 24",
19
- width: "1.2em",
20
- height: "1.2em"
21
- };
22
- function L(e, t) {
23
- return a(), g("svg", I, [...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 je = l({
29
- name: "mdi-key",
30
- render: L
31
- }), R = {
32
- viewBox: "0 0 24 24",
33
- width: "1.2em",
34
- height: "1.2em"
35
- };
36
- function z(e, t) {
37
- return a(), g("svg", R, [...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 Me = l({
43
- name: "mdi-cellphone",
44
- render: z
45
- }), B = {
46
- viewBox: "0 0 24 24",
47
- width: "1.2em",
48
- height: "1.2em"
49
- };
50
- function Ne(e, t) {
51
- return a(), g("svg", B, [...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 Pe = l({
57
- name: "mdi-key-variant",
58
- render: Ne
59
- }), Fe = {
60
- viewBox: "0 0 24 24",
61
- width: "1.2em",
62
- height: "1.2em"
63
- };
64
- function V(e, t) {
65
- return a(), g("svg", Fe, [...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 Ie = l({
71
- name: "mdi-laptop",
72
- render: V
73
- }), Le = {
74
- viewBox: "0 0 24 24",
75
- width: "1.2em",
76
- height: "1.2em"
77
- };
78
- function Re(e, t) {
79
- return a(), g("svg", Le, [...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 ze = l({
85
- name: "mdi-television",
86
- render: Re
87
- }), H = { class: "flex flex-col gap-6" }, Be = { class: "token-box" }, Ve = { class: "token-value" }, He = /*#__PURE__*/ N(/* @__PURE__ */ C({
88
- __name: "ApiTokenCreated",
89
- props: { token: {} },
90
- setup(e, { expose: t }) {
91
- let n = e, i = A(), { t: s } = P(), { 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 = ne, r = Te, i = te;
106
- return a(), g("div", H, [T(n, { severity: "warn" }, {
107
- default: h(() => [x(o(e.$t("views.settings.api_tokens.created_warning")), 1)]),
108
- _: 1
109
- }), y("div", Be, [y("span", Ve, 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(() => [T(p(fe), {
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"]]), Ue = { class: "flex flex-col gap-2 w-full" }, U = {
124
- for: "apiTokenName",
125
- class: "cui-label"
126
- }, We = {
127
- key: 0,
128
- class: "text-xs text-red-500"
129
- }, Ge = /* @__PURE__ */ C({
130
- __name: "CreateApiToken",
131
- props: { existingNames: {} },
132
- setup(e, { expose: t }) {
133
- let n = e, r = w(""), 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 = Ee;
139
- return a(), g("div", Ue, [
140
- y("label", U, o(e.$t("views.settings.api_tokens.name_label")), 1),
141
- T(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", We, o(e.$t("views.settings.api_tokens.name_exists")), 1)) : d("", !0)
155
- ]);
156
- };
157
- }
158
- }), Ke = { class: "flex flex-col gap-6" }, qe = { class: "backup-codes-grid" }, Je = /*#__PURE__*/ N(/* @__PURE__ */ C({
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 = ne;
166
- return a(), g("div", Ke, [T(r, { severity: "warn" }, {
167
- default: h(() => [x(o(e.$t("views.settings.security.backup_warning")), 1)]),
168
- _: 1
169
- }), y("div", qe, [(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"]]), Ye = { class: "flex flex-col gap-6" }, Xe = { class: "text-muted" }, Ze = { class: "flex flex-col gap-2 justify-center items-center mt-5" }, W = { class: "cui-label" }, Qe = /* @__PURE__ */ C({
176
- __name: "TwoFactorDisable",
177
- setup(e, { expose: t }) {
178
- let r = new F(), i = A(), { t: s } = P(), c = n("dialogRefProps"), { mutateAsync: l, isPending: u } = r.disable2FAQuery(), d = w(""), 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 = ve;
201
- return a(), g("div", Ye, [y("p", Xe, o(e.$t("views.settings.security.disable_confirm")), 1), y("div", Ze, [y("label", W, o(e.$t("views.settings.security.enter_code")), 1), T(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
- }), G = { class: "flex flex-col gap-6" }, K = { class: "text-muted" }, q = { class: "flex flex-col gap-2 justify-center items-center mt-5" }, J = { class: "cui-label" }, $e = /* @__PURE__ */ C({
211
- __name: "TwoFactorRegenerate",
212
- props: { onBackupCodesGenerated: { type: Function } },
213
- setup(e, { expose: t }) {
214
- let r = new F(), i = e, s = A(), { t: c } = P(), l = n("dialogRefProps"), { mutateAsync: u, isPending: d } = r.regenerateBackupCodesQuery(), h = w(""), _ = 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 = ve;
238
- return a(), g("div", G, [y("p", K, o(e.$t("views.settings.security.regenerate_confirm")), 1), y("div", q, [y("label", J, o(e.$t("views.settings.security.enter_code")), 1), T(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
- }), et = { class: "flex flex-col w-full gap-6" }, tt = { class: "relative" }, nt = { class: "image-upload rounded-full z-1" }, rt = { for: "file-input" }, it = { class: "card-title" }, at = { class: "flex flex-col gap-6" }, ot = {
248
- for: "username",
249
- class: "cui-label"
250
- }, st = { class: "card-title" }, ct = { class: "flex flex-col gap-6" }, lt = {
251
- for: "password",
252
- class: "cui-label"
253
- }, ut = {
254
- for: "passwordConfirm",
255
- class: "cui-label"
256
- }, dt = { class: "relative" }, ft = { class: "image-upload rounded-full z-1" }, pt = { for: "file-input" }, mt = { class: "card-title" }, ht = { class: "flex flex-col gap-6" }, gt = { class: "flex flex-col field-gap" }, _t = {
257
- for: "username",
258
- class: "cui-label"
259
- }, vt = { class: "flex flex-row items-end justify-end" }, yt = { class: "card-title" }, bt = {
260
- for: "password",
261
- class: "cui-label"
262
- }, xt = {
263
- for: "passwordConfirm",
264
- class: "cui-label"
265
- }, St = { class: "flex flex-row items-end justify-end" }, Ct = { class: "card-title" }, wt = {
266
- key: 0,
267
- class: "flex justify-center py-6"
268
- }, Tt = {
269
- key: "initial",
270
- class: "flex flex-col gap-6"
271
- }, Et = { class: "flex flex-col gap-1" }, Dt = { class: "tfa-row-title" }, Ot = { class: "tfa-row-description" }, kt = {
272
- key: "loading",
273
- class: "flex flex-col items-center py-8 gap-3"
274
- }, At = { class: "text-sm text-muted" }, jt = {
275
- key: "setup",
276
- class: "tfa-setup"
277
- }, Mt = { class: "tfa-setup-qr" }, Nt = { class: "text-sm text-muted text-center mt-3" }, Pt = { class: "flex flex-col gap-5 flex-1" }, Ft = { class: "flex flex-col field-gap" }, It = { class: "cui-label" }, Lt = { class: "flex flex-col field-gap" }, Rt = { class: "cui-label" }, zt = { class: "flex gap-2 justify-end" }, Bt = {
278
- key: "enabled",
279
- class: "flex flex-col gap-6"
280
- }, Vt = { class: "tfa-row tfa-row-enabled" }, Ht = { class: "tfa-status-icon" }, Ut = { class: "tfa-row-content" }, Wt = { class: "tfa-row-title" }, Gt = {
281
- key: 0,
282
- class: "tfa-backup-info"
283
- }, Kt = { class: "flex gap-2 justify-end" }, qt = { key: 0 }, Jt = { class: "card-title" }, Yt = { class: "flex items-center gap-4" }, Xt = { class: "flex flex-col field-switch-gap min-w-0" }, Zt = { class: "text-sm font-bold text-color" }, Qt = { class: "card-title" }, $t = { class: "flex flex-col gap-6" }, en = { class: "text-sm text-muted" }, tn = { class: "text-muted text-sm" }, nn = { class: "flex items-center gap-3" }, rn = { class: "flex flex-col min-w-0" }, an = { class: "text-sm font-semibold text-color truncate" }, on = { class: "text-xs text-muted truncate font-mono" }, sn = { class: "text-xs text-muted" }, cn = { class: "flex flex-row items-end justify-end gap-2" }, ln = { class: "card-title" }, un = { class: "flex flex-col gap-6" }, dn = { class: "text-muted text-sm" }, fn = { class: "flex items-center gap-3" }, pn = { class: "flex flex-col min-w-0" }, mn = { class: "flex items-center gap-2" }, hn = { class: "text-sm font-semibold text-color truncate" }, gn = { class: "text-xs text-muted truncate" }, _n = {
284
- key: 0,
285
- class: "flex flex-row items-end justify-end gap-2"
286
- }, Y = /*@__PURE__*/ C({
287
- __name: "SettingsAccount",
288
- props: { firststeps: { type: Boolean } },
289
- setup(e, { expose: n }) {
290
- let i = new F(), l = e, C = j(), N = A(), { t: I } = P(), { firststeps: L } = r(l), R = _e(), { user: z } = we(R), { data: B, isLoading: Ne } = i.toggleQueryActivator("get2FAStatusQuery", !L.value).get2FAStatusQuery(), { mutateAsync: Fe, isPending: V } = i.setup2FAQuery(), { mutateAsync: Le, isPending: Re } = i.enable2FAQuery(), { data: H, isBusy: Be } = i.toggleQueryActivator("listSessionsQuery", !L.value).listSessionsQuery({
291
- page: 1,
292
- pageSize: -1
293
- }), { mutateAsync: Ve } = i.revokeSessionQuery(), { mutateAsync: Ue } = i.revokeOtherSessionsQuery(), { data: U, isBusy: We } = i.toggleQueryActivator("listApiTokensQuery", !L.value).listApiTokensQuery(), { mutateAsync: Ke, isPending: qe } = i.createApiTokenQuery(), { mutateAsync: Ye } = i.revokeApiTokenQuery(), Xe = ae({
294
- password: k,
295
- passwordConfirm: D().min(1)
296
- }).refine((e) => e.password === e.passwordConfirm, {
297
- message: "Passwords do not match",
298
- path: ["passwordConfirm"]
299
- }), Ze = ae({
300
- username: D().min(1),
301
- password: k,
302
- passwordConfirm: D().min(1)
303
- }).refine((e) => e.password === e.passwordConfirm, {
304
- message: "Passwords do not match",
305
- path: ["passwordConfirm"]
306
- }), W = v("formRef"), G = v("passwordFormRef"), K = S(), q = w("avatar"), J = w(z.value?.username ?? ""), Y = w(!1), X = w(!1), Z = w(null), Q = w(""), vn = w(null), yn = w(!1), $ = w(null);
307
- w(!1);
308
- let bn = w(!1), xn = w(!1), Sn = m(() => !1), Cn = {
309
- bodyRow: { class: "text-sm text-secondary" },
310
- column: { columnTitle: { class: "text-sm" } }
311
- }, wn = m(() => (H.value ?? []).filter((e) => !e.is_current).length), Tn = m(() => !Z.value?.secret || !z.value?.username ? "" : `otpauth://totp/${encodeURIComponent(`camera.ui:${z.value.username}`)}?secret=${Z.value.secret}&issuer=camera.ui`);
312
- async function En() {
313
- Z.value?.secret && await M(Z.value.secret);
314
- }
315
- function Dn(e) {
316
- return e === "tv" ? ze : e === "native" ? Me : Ie;
317
- }
318
- async function On(e) {
319
- vn.value = e;
320
- try {
321
- await Ve({ id: e });
322
- } catch (e) {
323
- N.add({
324
- severity: "error",
325
- detail: e,
326
- life: 3e3
327
- });
328
- } finally {
329
- vn.value = null;
330
- }
331
- }
332
- function kn() {
333
- C.openComponentDialog(Ge, {
334
- data: {
335
- title: I("views.settings.api_tokens.create"),
336
- confirmText: I("views.settings.api_tokens.create_confirm"),
337
- contentProps: { existingNames: (U.value ?? []).map((e) => e.name) }
338
- },
339
- onConfirm: async (e) => {
340
- if (e) try {
341
- An((await Ke({ name: e })).token);
342
- } catch (e) {
343
- N.add({
344
- severity: "error",
345
- detail: e,
346
- life: 3e3
347
- });
348
- }
349
- }
350
- });
351
- }
352
- function An(e) {
353
- C.openComponentDialog(He, { data: {
354
- title: I("views.settings.api_tokens.created_title"),
355
- confirmText: I("components.form.button.close"),
356
- hideCancelButton: !0,
357
- contentProps: { token: e }
358
- } });
359
- }
360
- function jn(e) {
361
- C.openTextDialog({
362
- data: {
363
- title: I("views.settings.api_tokens.revoke_title"),
364
- contentText: I("views.settings.api_tokens.revoke_confirm", { name: e.name }),
365
- confirmText: I("views.settings.api_tokens.revoke"),
366
- confirmButtonProps: { severity: "danger" }
367
- },
368
- onConfirm: async () => {
369
- $.value = e.id;
370
- try {
371
- await Ye({ id: e.id });
372
- } catch (e) {
373
- N.add({
374
- severity: "error",
375
- detail: e,
376
- life: 3e3
377
- });
378
- } finally {
379
- $.value = null;
380
- }
381
- }
382
- });
383
- }
384
- function Mn() {
385
- C.openTextDialog({
386
- data: {
387
- title: I("views.settings.active_sessions.revoke_others_title"),
388
- contentText: I("views.settings.active_sessions.revoke_others_confirm", { count: wn.value }),
389
- confirmText: I("views.settings.active_sessions.revoke"),
390
- confirmButtonProps: { severity: "danger" }
391
- },
392
- onConfirm: async () => {
393
- yn.value = !0;
394
- try {
395
- await Ue();
396
- } catch (e) {
397
- N.add({
398
- severity: "error",
399
- detail: e,
400
- life: 3e3
401
- });
402
- } finally {
403
- yn.value = !1;
404
- }
405
- }
406
- });
407
- }
408
- async function Nn() {
409
- try {
410
- Z.value = await Fe();
411
- } catch (e) {
412
- N.add({
413
- severity: "error",
414
- detail: e,
415
- life: 3e3
416
- });
417
- }
418
- }
419
- function Pn() {
420
- Z.value = null, Q.value = "";
421
- }
422
- async function Fn() {
423
- try {
424
- let e = await Le({ code: Q.value });
425
- Z.value = null, Q.value = "", N.add({
426
- severity: "success",
427
- detail: I("views.settings.security.2fa_enabled_success"),
428
- life: 3e3
429
- }), Rn(e.backupCodes);
430
- } catch (e) {
431
- N.add({
432
- severity: "error",
433
- detail: e,
434
- life: 3e3
435
- });
436
- }
437
- }
438
- function In() {
439
- C.openComponentDialog(Qe, { data: {
440
- title: I("views.settings.security.disable_2fa"),
441
- confirmText: I("views.settings.security.disable_2fa"),
442
- confirmButtonProps: { severity: "danger" },
443
- contentProps: {}
444
- } });
445
- }
446
- function Ln() {
447
- C.openComponentDialog($e, { data: {
448
- title: I("views.settings.security.regenerate_backup"),
449
- confirmText: I("views.settings.security.regenerate_backup"),
450
- contentProps: { onBackupCodesGenerated: (e) => {
451
- Rn(e);
452
- } }
453
- } });
454
- }
455
- function Rn(e) {
456
- C.openComponentDialog(Je, { data: {
457
- title: I("views.settings.security.backup_codes"),
458
- confirmText: I("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
- K.value = t?.[0], q.value = await ye(e) ?? q.value;
466
- }
467
- async function Bn() {
468
- Y.value = !0;
469
- try {
470
- let e;
471
- K.value && (e = new FormData(), e.append("upload", K.value));
472
- let t = z.value?.username !== J.value;
473
- if (t) await R.updateUser({ username: J.value }, e);
474
- else if (e) await R.updateUser(void 0, e);
475
- else {
476
- Y.value = !1;
477
- return;
478
- }
479
- N.add({
480
- severity: "success",
481
- detail: I("components.toast.profile_updated"),
482
- life: 3e3
483
- }), K.value = void 0, t && R.logout();
484
- } catch {}
485
- Y.value = !1;
486
- }
487
- async function Vn(e) {
488
- X.value = !0;
489
- try {
490
- await R.updateUser({
491
- password: e.password,
492
- passwordConfirm: e.passwordConfirm
493
- }), N.add({
494
- severity: "success",
495
- detail: I("components.toast.password_updated"),
496
- life: 3e3
497
- }), G.value?.resetForm(), R.logout();
498
- } catch (e) {
499
- N.add({
500
- severity: "error",
501
- detail: e,
502
- life: 3e3
503
- });
504
- }
505
- X.value = !1;
506
- }
507
- async function Hn() {}
508
- async function Un(e) {
509
- if (e !== bn.value) {
510
- if (e) {
511
- N.add({
512
- severity: "info",
513
- detail: I("views.settings.biometric.enable_hint"),
514
- life: 3e3
515
- });
516
- return;
517
- }
518
- xn.value = !0;
519
- try {
520
- await ie(me()), bn.value = !1, N.add({
521
- severity: "success",
522
- detail: I("views.settings.biometric.cleared"),
523
- life: 3e3
524
- });
525
- } finally {
526
- xn.value = !1;
527
- }
528
- }
529
- }
530
- return ee(() => {
531
- Hn();
532
- }), n({ formRef: W }), (e, n) => {
533
- let r = ue, i = Ee, l = de, m = Ce, v = be, S = Te, C = xe, w = ke, ee = se, ie = oe, ae = ve, D = pe, k = je, me = le, A = ne, _e = ge, j = De, ye = Se, M = Oe, N = re, we = Ae, P = te;
534
- return a(), g("div", null, [y("div", et, [p(L) ? (a(), u(p(ce), {
535
- key: 0,
536
- ref_key: "formRef",
537
- ref: W,
538
- "validation-schema": p(Ze),
539
- class: "flex flex-col w-full gap-6"
540
- }, {
541
- default: h(() => [y("div", tt, [
542
- y("div", nt, [y("label", rt, [T(r, {
543
- src: p(q),
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", it, o(e.$t("views.settings.profile")), 1),
555
- T(m, { class: "cui-card" }, {
556
- content: h(() => [y("div", at, [T(p(O), {
557
- "model-value": p(z)?.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", ot, o(e.$t("components.form.label.username")), 1),
564
- T(l, null, {
565
- default: h(() => [T(i, s(n, {
566
- invalid: r.length > 0,
567
- type: "text"
568
- }), null, 16, ["invalid"])]),
569
- _: 2
570
- }, 1024),
571
- T(t, { name: "fade" }, {
572
- default: h(() => [T(p(E), {
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", st, o(e.$t("views.settings.password")), 1), T(m, { class: "cui-card" }, {
584
- content: h(() => [y("div", ct, [T(p(O), {
585
- name: "password",
586
- as: "div",
587
- class: "flex flex-col field-gap"
588
- }, {
589
- default: h(({ field: n, errors: r }) => [
590
- y("label", lt, o(e.$t("components.form.label.new_password")), 1),
591
- T(l, null, {
592
- default: h(() => [T(v, s({ invalid: r.length > 0 }, n, {
593
- feedback: !1,
594
- "toggle-mask": ""
595
- }), null, 16, ["invalid"])]),
596
- _: 2
597
- }, 1024),
598
- T(t, { name: "fade" }, {
599
- default: h(() => [T(p(E), {
600
- name: "password",
601
- class: "cui-input-error"
602
- })]),
603
- _: 1
604
- })
605
- ]),
606
- _: 1
607
- }), T(p(O), {
608
- name: "passwordConfirm",
609
- as: "div",
610
- class: "flex flex-col field-gap"
611
- }, {
612
- default: h(({ field: n, errors: r }) => [
613
- y("label", ut, o(e.$t("components.form.label.new_password_confirm")), 1),
614
- T(l, null, {
615
- default: h(() => [T(v, s({ invalid: r.length > 0 }, n, {
616
- feedback: !1,
617
- "toggle-mask": ""
618
- }), null, 16, ["invalid"])]),
619
- _: 2
620
- }, 1024),
621
- T(t, { name: "fade" }, {
622
- default: h(() => [T(p(E), {
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", dt, [
636
- y("div", ft, [y("label", pt, [T(r, {
637
- src: p(q),
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", mt, o(e.$t("views.settings.profile")), 1),
649
- T(m, { class: "cui-card" }, {
650
- content: h(() => [y("div", ht, [y("div", gt, [y("label", _t, o(e.$t("components.form.label.username")), 1), T(l, null, {
651
- default: h(() => [T(i, {
652
- modelValue: p(J),
653
- "onUpdate:modelValue": n[2] ||= (e) => f(J) ? J.value = e : null,
654
- loading: p(Y),
655
- type: "text"
656
- }, null, 8, ["modelValue", "loading"])]),
657
- _: 1
658
- })]), y("div", vt, [T(S, {
659
- loading: p(Y),
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", yt, o(e.$t("views.settings.password")), 1), T(m, { class: "cui-card" }, {
668
- content: h(() => [T(p(ce), {
669
- ref_key: "passwordFormRef",
670
- ref: G,
671
- "validation-schema": p(Xe),
672
- class: "flex flex-col gap-6",
673
- onSubmit: n[3] ||= (e) => Vn(e)
674
- }, {
675
- default: h(() => [
676
- T(p(O), {
677
- name: "password",
678
- as: "div",
679
- class: "flex flex-col field-gap"
680
- }, {
681
- default: h(({ field: n, errors: r }) => [
682
- y("label", bt, o(e.$t("components.form.label.new_password")), 1),
683
- T(l, null, {
684
- default: h(() => [T(v, s({ invalid: r.length > 0 }, n, {
685
- loading: p(X),
686
- feedback: !1,
687
- "toggle-mask": ""
688
- }), null, 16, ["invalid", "loading"])]),
689
- _: 2
690
- }, 1024),
691
- T(t, { name: "fade" }, {
692
- default: h(() => [T(p(E), {
693
- name: "password",
694
- class: "cui-input-error"
695
- })]),
696
- _: 1
697
- })
698
- ]),
699
- _: 1
700
- }),
701
- T(p(O), {
702
- name: "passwordConfirm",
703
- as: "div",
704
- class: "flex flex-col field-gap"
705
- }, {
706
- default: h(({ field: n, errors: r }) => [
707
- y("label", xt, o(e.$t("components.form.label.new_password_confirm")), 1),
708
- T(l, null, {
709
- default: h(() => [T(v, s({ invalid: r.length > 0 }, n, {
710
- loading: p(X),
711
- feedback: !1,
712
- "toggle-mask": ""
713
- }), null, 16, ["invalid", "loading"])]),
714
- _: 2
715
- }, 1024),
716
- T(t, { name: "fade" }, {
717
- default: h(() => [T(p(E), {
718
- name: "passwordConfirm",
719
- class: "cui-input-error"
720
- })]),
721
- _: 1
722
- })
723
- ]),
724
- _: 1
725
- }),
726
- y("div", St, [T(S, {
727
- type: "submit",
728
- loading: p(X),
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", Ct, o(e.$t("views.settings.security.title")), 1), T(m, { class: "cui-card" }, {
738
- content: h(() => [p(Ne) ? (a(), g("div", wt, [T(C, {
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(B)?.enabled && !p(Z) && !p(V) ? (a(), g("div", Tt, [y("div", Et, [y("span", Dt, o(e.$t("views.settings.security.2fa_title")), 1), y("span", Ot, o(e.$t("views.settings.security.2fa_description")), 1)]), T(S, {
747
- class: "cui-button-medium ml-auto",
748
- label: e.$t("views.settings.security.setup_2fa"),
749
- onClick: Nn
750
- }, null, 8, ["label"])])) : !p(B)?.enabled && p(V) ? (a(), g("div", kt, [T(C, {
751
- class: "w-[30px] h-[30px] m-0",
752
- "stroke-width": "5"
753
- }), y("span", At, o(e.$t("views.settings.security.generating_qr")), 1)])) : !p(B)?.enabled && p(Z) ? (a(), g("div", jt, [y("div", Mt, [T(w, {
754
- value: p(Tn),
755
- size: 160,
756
- "logo-size": 36
757
- }, null, 8, ["value"]), y("p", Nt, o(e.$t("views.settings.security.scan_qr")), 1)]), y("div", Pt, [
758
- y("div", Ft, [y("label", It, o(e.$t("views.settings.security.manual_entry")), 1), T(l, null, {
759
- default: h(() => [T(i, {
760
- "model-value": p(Z)?.secret,
761
- readonly: "",
762
- class: "font-mono text-sm"
763
- }, null, 8, ["model-value"]), T(ie, null, {
764
- default: h(() => [T(ee, {
765
- "action-text": e.$t("components.form.tooltip.copied"),
766
- icon: p(fe),
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", Lt, [y("label", Rt, o(e.$t("views.settings.security.enter_code")), 1), T(ae, {
778
- modelValue: p(Q),
779
- "onUpdate:modelValue": n[4] ||= (e) => f(Q) ? Q.value = e : null,
780
- length: 6,
781
- "integer-only": ""
782
- }, null, 8, ["modelValue"])]),
783
- y("div", zt, [T(S, {
784
- severity: "secondary",
785
- class: "cui-button-medium",
786
- label: e.$t("components.form.button.cancel"),
787
- onClick: Pn
788
- }, null, 8, ["label"]), T(S, {
789
- class: "cui-button-medium",
790
- label: e.$t("views.settings.security.enable_2fa"),
791
- loading: p(Re),
792
- disabled: p(Q).length < 6,
793
- onClick: Fn
794
- }, null, 8, [
795
- "label",
796
- "loading",
797
- "disabled"
798
- ])])
799
- ])])) : (a(), g("div", Bt, [
800
- y("div", Vt, [y("div", Ht, [T(D, { class: "w-5 h-5" })]), y("div", Ut, [y("span", Wt, o(e.$t("views.settings.security.2fa_enabled")), 1)])]),
801
- p(B)?.backupCodesCount === void 0 ? d("", !0) : (a(), g("div", Gt, [T(k, { class: "w-4 h-4" }), y("span", null, o(e.$t("views.settings.security.backup_codes_remaining", { count: p(B).backupCodesCount })), 1)])),
802
- y("div", Kt, [T(S, {
803
- severity: "secondary",
804
- class: "cui-button-medium",
805
- label: e.$t("views.settings.security.regenerate_backup"),
806
- onClick: Ln
807
- }, null, 8, ["label"]), T(S, {
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(Sn) ? (a(), g("div", qt, [y("span", Jt, o(e.$t("views.settings.biometric.title")), 1), T(m, { class: "cui-card" }, {
819
- content: h(() => [y("div", Yt, [
820
- T(me, { class: "shrink-0 w-6 h-6 text-color" }),
821
- y("div", Xt, [y("span", Zt, o(e.$t("views.settings.biometric.label")), 1), T(A, {
822
- severity: "secondary",
823
- variant: "simple",
824
- size: "small",
825
- class: "cui-input-switch-hint"
826
- }, {
827
- default: h(() => [x(o(e.$t("views.settings.biometric.description")), 1)]),
828
- _: 1
829
- })]),
830
- T(_e, {
831
- "model-value": p(bn),
832
- loading: p(xn),
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", Qt, o(e.$t("views.settings.api_tokens.title")), 1), T(m, { class: "cui-card" }, {
840
- content: h(() => [y("div", $t, [
841
- y("span", en, o(e.$t("views.settings.api_tokens.info")), 1),
842
- T(M, {
843
- value: p(U) ?? [],
844
- "data-key": "id",
845
- loading: p(We),
846
- pt: Cn,
847
- "striped-rows": "",
848
- scrollable: ""
849
- }, {
850
- loading: h(() => [T(C, {
851
- class: "w-[30px] h-[30px] m-0",
852
- "stroke-width": "5"
853
- })]),
854
- empty: h(() => [y("span", tn, o(e.$t("views.settings.api_tokens.empty")), 1)]),
855
- default: h(() => [
856
- T(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", nn, [T(p(Pe), { class: "cui-session-icon" }), y("div", rn, [y("span", an, o(e.name), 1), y("span", on, o(e.token_hint), 1)])])]),
863
- _: 1
864
- }, 8, ["header"]),
865
- T(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", sn, o(t.last_seen_at > t.created_at ? p(he)(t.last_seen_at) : e.$t("views.settings.api_tokens.never")), 1)]),
872
- _: 1
873
- }, 8, ["header"]),
874
- T(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(S, {
880
- severity: "danger",
881
- text: "",
882
- rounded: "",
883
- class: "cui-icon-md",
884
- loading: p($) === t.id,
885
- onClick: (e) => jn(t)
886
- }, {
887
- icon: h(() => [T(ye, {
888
- width: "100%",
889
- height: "100%"
890
- })]),
891
- _: 1
892
- }, 8, ["loading", "onClick"])), [[P, { value: e.$t("views.settings.api_tokens.revoke") }]])]),
893
- _: 1
894
- })
895
- ]),
896
- _: 1
897
- }, 8, ["value", "loading"]),
898
- y("div", cn, [T(S, {
899
- loading: p(qe),
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", ln, o(e.$t("views.settings.active_sessions.title")), 1), T(m, { class: "cui-card" }, {
908
- content: h(() => [y("div", un, [T(M, {
909
- value: p(H) ?? [],
910
- "data-key": "id",
911
- loading: p(Be),
912
- pt: Cn,
913
- "striped-rows": "",
914
- scrollable: ""
915
- }, {
916
- loading: h(() => [T(C, {
917
- class: "w-[30px] h-[30px] m-0",
918
- "stroke-width": "5"
919
- })]),
920
- empty: h(() => [y("span", dn, o(e.$t("views.settings.active_sessions.empty")), 1)]),
921
- default: h(() => [T(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", fn, [(a(), u(c(Dn(t.device.kind)), { class: "cui-session-icon" })), y("div", pn, [y("div", mn, [y("span", hn, o(t.device.name), 1), t.is_current ? (a(), u(N, {
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", gn, o(t.device.ip || "—"), 1)])])]),
933
- _: 1
934
- }, 8, ["header"]), T(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(S, {
940
- key: 0,
941
- severity: "danger",
942
- text: "",
943
- rounded: "",
944
- class: "cui-icon-md",
945
- loading: p(vn) === t.id,
946
- onClick: (e) => On(t.id)
947
- }, {
948
- icon: h(() => [T(we, {
949
- width: "100%",
950
- height: "100%"
951
- })]),
952
- _: 1
953
- }, 8, ["loading", "onClick"])), [[P, { value: e.$t("views.settings.active_sessions.revoke") }]])]),
954
- _: 1
955
- })]),
956
- _: 1
957
- }, 8, ["value", "loading"]), p(wn) > 0 ? (a(), g("div", _n, [T(S, {
958
- loading: p(yn),
959
- class: "cui-button-medium mr-4 md:mr-0",
960
- label: e.$t("views.settings.active_sessions.revoke_all_others", { count: p(wn) }),
961
- onClick: Mn
962
- }, null, 8, ["loading", "label"])])) : d("", !0)])]),
963
- _: 1
964
- })])
965
- ], 64))])]);
966
- };
967
- }
968
- }), X = /* @__PURE__ */ e({ default: () => Z }), Z = /*#__PURE__*/ N(Y, [["__scopeId", "data-v-de51a7b1"]]);
969
- //#endregion
970
- export { X as n, Z as t };