@camera.ui/server 2.1.15 → 2.1.17

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 (417) hide show
  1. package/dist/interface/assets/{404-DwgMdXqW.js → 404-Cg1J2LX8.js} +1 -1
  2. package/dist/interface/assets/{About-REFUgZk_.js → About-CW7G6onF.js} +1 -1
  3. package/dist/interface/assets/Automation-CIwBJK1Y.js +3 -0
  4. package/dist/interface/assets/AutomationImport-CHkNv7C-.js +2 -0
  5. package/dist/interface/assets/AutomationStore-5bTym-Gl.js +2 -0
  6. package/dist/interface/assets/AutomationStoreDetail-BF8UoG_l.js +2 -0
  7. package/dist/interface/assets/Automations-CaX2fHhJ.js +2 -0
  8. package/dist/interface/assets/Camera-1zdmJnP-.js +2 -0
  9. package/dist/interface/assets/Camera-DSyI4J5-.css +1 -0
  10. package/dist/interface/assets/{CameraConsole-S61HjIGA.js → CameraConsole-CB1HEFKJ.js} +2 -2
  11. package/dist/interface/assets/{Cameras-57rPP3Y_.js → Cameras-CyCY0rW9.js} +2 -2
  12. package/dist/interface/assets/Camview-CZct5cnP.css +1 -0
  13. package/dist/interface/assets/Camview-Dia7G1u_.js +1 -0
  14. package/dist/interface/assets/{CertificateUpload-CBSLHn_I.js → CertificateUpload-jP-JIxmY.js} +1 -1
  15. package/dist/interface/assets/Config-DOa7WHyQ.js +2 -0
  16. package/dist/interface/assets/{ConfigActionCameraControl-B7KwK7vb.js → ConfigActionCameraControl-BmCE3XLC.js} +1 -1
  17. package/dist/interface/assets/{ConfigActionDelay-DwTGfeP4.js → ConfigActionDelay-CfHCZ0uf.js} +1 -1
  18. package/dist/interface/assets/{ConfigActionHttp-idm-FKXM.js → ConfigActionHttp-DdM7gEb0.js} +1 -1
  19. package/dist/interface/assets/{ConfigActionImageInput-C-v-_UEM.js → ConfigActionImageInput-CrPPNT4K.js} +1 -1
  20. package/dist/interface/assets/{ConfigActionMqtt-CG1o9_6A.js → ConfigActionMqtt-D7-u4zri.js} +1 -1
  21. package/dist/interface/assets/ConfigActionNotification-BSuUI2FP.js +1 -0
  22. package/dist/interface/assets/{ConfigActionNotificationControl-BvHIqHE7.js → ConfigActionNotificationControl-DfvAxKnx.js} +1 -1
  23. package/dist/interface/assets/{ConfigActionOutput-BQvDZGKV.js → ConfigActionOutput-DPplSpm_.js} +1 -1
  24. package/dist/interface/assets/{ConfigActionPlugin-C7mcZ0Kz.js → ConfigActionPlugin-BnRn_p26.js} +1 -1
  25. package/dist/interface/assets/{ConfigActionSensor-BFnb75FI.js → ConfigActionSensor-CoEoqFAY.js} +1 -1
  26. package/dist/interface/assets/{ConfigActionSnapshot-BfzPScY6.js → ConfigActionSnapshot-wXdFiyU-.js} +1 -1
  27. package/dist/interface/assets/{ConfigActionVariable-CjIeZnOV.js → ConfigActionVariable-BqJvOOHH.js} +1 -1
  28. package/dist/interface/assets/{ConfigConditionIfElse-Dgcqs9QP.js → ConfigConditionIfElse-DG2Kgqn5.js} +1 -1
  29. package/dist/interface/assets/{ConfigConditionSensorState-DtLt1AvW.js → ConfigConditionSensorState-BytECo6r.js} +1 -1
  30. package/dist/interface/assets/{ConfigConditionSwitch-C6BfIozf.js → ConfigConditionSwitch-DaSt9uZE.js} +1 -1
  31. package/dist/interface/assets/{ConfigConditionTime-NcjSe4RM.js → ConfigConditionTime-D42OsshU.js} +1 -1
  32. package/dist/interface/assets/{ConfigSensorValueInput-DuvBl4YL.js → ConfigSensorValueInput-BtEmtZSm.js} +1 -1
  33. package/dist/interface/assets/{ConfigTriggerDetection-DsVb-Svo.js → ConfigTriggerDetection-CDH2fzsu.js} +1 -1
  34. package/dist/interface/assets/ConfigTriggerGeofence-Dopegic5.js +1 -0
  35. package/dist/interface/assets/{ConfigTriggerManual-vG37zALd.js → ConfigTriggerManual-DAtWfH0-.js} +1 -1
  36. package/dist/interface/assets/{ConfigTriggerMqtt-BPl_Puje.js → ConfigTriggerMqtt-CB3_PxqD.js} +1 -1
  37. package/dist/interface/assets/{ConfigTriggerSchedule-Bn2drGV5.js → ConfigTriggerSchedule-BUzOrF23.js} +1 -1
  38. package/dist/interface/assets/{ConfigTriggerSensor-DP0CXRLo.js → ConfigTriggerSensor-D5kRIb7I.js} +1 -1
  39. package/dist/interface/assets/{ConfigTriggerSystem-DQikAjbB.js → ConfigTriggerSystem-Cud77VMR.js} +1 -1
  40. package/dist/interface/assets/{ConfigTriggerWebhook-Cl7KWuRQ.js → ConfigTriggerWebhook-CeG5R3kV.js} +1 -1
  41. package/dist/interface/assets/Console-DdOD6Pd5.js +1 -0
  42. package/dist/interface/assets/{CuiAutomationRunsDialog-D_rNvqan.js → CuiAutomationRunsDialog-Cym6xMVJ.js} +1 -1
  43. package/dist/interface/assets/CuiBottomSheet-B3QSHp4-.js +1 -0
  44. package/dist/interface/assets/CuiBottomSheet-BSoMhymR.js +1 -0
  45. package/dist/interface/assets/CuiBottomSheet-_KXSb13N.css +1 -0
  46. package/dist/interface/assets/CuiCameraPipCard-DGgrxZJd.js +1 -0
  47. package/dist/interface/assets/{CuiCameraRecordings-h6Yel4J4.js → CuiCameraRecordings-Bu68AFdM.js} +1 -1
  48. package/dist/interface/assets/CuiCameraShares-BOhfTcxQ.js +1 -0
  49. package/dist/interface/assets/CuiCameraTable-C1CHYnda.js +1 -0
  50. package/dist/interface/assets/{CuiCameraTable-CfXoLbtY.js → CuiCameraTable-D0lc0VAJ.js} +2 -2
  51. package/dist/interface/assets/{CuiChartTable-BWRwoTLX.js → CuiChartTable-DcrFI8tT.js} +1 -1
  52. package/dist/interface/assets/{CuiConsole-Cb3wDLZr.js → CuiConsole-ICLBq4Q-.js} +2 -2
  53. package/dist/interface/assets/{CuiDataTable-aAZV_F3r.js → CuiDataTable-BooFPsGH.js} +1 -1
  54. package/dist/interface/assets/CuiLightControl-D1ih2hO-.js +1 -0
  55. package/dist/interface/assets/{CuiList-BZYxCLqz.js → CuiList-ChI82KjI.js} +1 -1
  56. package/dist/interface/assets/CuiPluginCard-DqdSWrwb.js +2 -0
  57. package/dist/interface/assets/{CuiPluginCategoryChip-C9trJ_ql.js → CuiPluginCategoryChip-DsRcMb72.js} +1 -1
  58. package/dist/interface/assets/CuiPluginOAuthButton-BSvRKUSY.js +2 -0
  59. package/dist/interface/assets/{CuiPluginTrustBadge-D5gkIhJv.js → CuiPluginTrustBadge-DXL7N1LC.js} +1 -1
  60. package/dist/interface/assets/{CuiQRCode-DY5Q-Xel.js → CuiQRCode-DHln6Lo9.js} +1 -1
  61. package/dist/interface/assets/CuiSchema-B7i2O3Fy.js +1 -0
  62. package/dist/interface/assets/{CuiTopNavbarItem-CJqOqVMt.css → CuiTopNavbarItem-7673AFGS.css} +1 -1
  63. package/dist/interface/assets/CuiTopNavbarItem-TMfTyt8u.js +1 -0
  64. package/dist/interface/assets/Faces-CyTkMqMW.js +1 -0
  65. package/dist/interface/assets/FirstSteps-B4gb7Sgn.js +1 -0
  66. package/dist/interface/assets/{Floorplan-Bxhdg4C2.css → Floorplan-B1lItPnM.css} +1 -1
  67. package/dist/interface/assets/Floorplan-DBwWnuys.js +1 -0
  68. package/dist/interface/assets/Instances-D9fnwItz.js +1 -0
  69. package/dist/interface/assets/{Logs-CfYTWOv2.js → Logs-Brk6fJa0.js} +2 -2
  70. package/dist/interface/assets/{Menu-HzmLhy40.js → Menu-CrdBz1Er.js} +1 -1
  71. package/dist/interface/assets/Metrics-DXMgfNIL.js +9 -0
  72. package/dist/interface/assets/{OAuthDeviceFlow-DBac627V.js → OAuthDeviceFlow-D5hSwHeO.js} +1 -1
  73. package/dist/interface/assets/Plugin-C65oNZ9N.js +1 -0
  74. package/dist/interface/assets/{PluginConsole-C5dZgdl9.js → PluginConsole-Bs3Z5u9-.js} +2 -2
  75. package/dist/interface/assets/PluginDetail-C3KUrHvq.js +2 -0
  76. package/dist/interface/assets/{PluginSchema-DJ8NY8hW.js → PluginSchema-D22zRDkZ.js} +1 -1
  77. package/dist/interface/assets/PluginSearch-4ngDmZQ2.js +1 -0
  78. package/dist/interface/assets/PluginSearch-D7XYJzl4.js +2 -0
  79. package/dist/interface/assets/{PluginUpdateProgress-DgqaTwSS.js → PluginUpdateProgress-MEdR7mID.js} +1 -1
  80. package/dist/interface/assets/Plugins-DQTlb12n.js +1 -0
  81. package/dist/interface/assets/Recordings-CfSTX_Mw.css +1 -0
  82. package/dist/interface/assets/Recordings-CqBwRvn-.js +1 -0
  83. package/dist/interface/assets/SensorEdit-BM2zHAM7.js +1 -0
  84. package/dist/interface/assets/{SensorHistory-bCcPH0_I.js → SensorHistory-Dbv2ODqn.js} +1 -1
  85. package/dist/interface/assets/Sensors-B4YzyU7R.js +2 -0
  86. package/dist/interface/assets/{Sensors-CaKl4PQY.css → Sensors-DETviyjO.css} +1 -1
  87. package/dist/interface/assets/Settings--wgPYOyK.js +1 -0
  88. package/dist/interface/assets/{Settings-jQIhZFRY.css → Settings-D7495zbV.css} +1 -1
  89. package/dist/interface/assets/SettingsAccount-BF6Cp8Rt.js +1 -0
  90. package/dist/interface/assets/SettingsAccount-D7CHP0f1.js +1 -0
  91. package/dist/interface/assets/SettingsAppearance-Ba0jbbVW.js +1 -0
  92. package/dist/interface/assets/SettingsAppearance-BpXZwBjO.js +1 -0
  93. package/dist/interface/assets/SettingsBackup-qEYm-6De.js +1 -0
  94. package/dist/interface/assets/{SettingsList-Nc7OCZrn.js → SettingsList-1brGZ2E_.js} +1 -1
  95. package/dist/interface/assets/SettingsMqtt-Ds8YpoLA.js +1 -0
  96. package/dist/interface/assets/SettingsNotifications-Diqpfbrh.js +1 -0
  97. package/dist/interface/assets/{SettingsPermissions-BZXAgxUl.js → SettingsPermissions-GmGacrLc.js} +1 -1
  98. package/dist/interface/assets/{SettingsRecordings-Biyy3rTF.js → SettingsRecordings-CtEm_7PE.js} +1 -1
  99. package/dist/interface/assets/SettingsRemote-CENHI51U.js +2 -0
  100. package/dist/interface/assets/SettingsSystem-YkigO2-V.js +2 -0
  101. package/dist/interface/assets/SettingsUsers-BNPa87gu.js +1 -0
  102. package/dist/interface/assets/{Terminal-AsI0lb5n.js → Terminal-uxOHZpUp.js} +3 -3
  103. package/dist/interface/assets/Training-BRZKDa8S.js +1 -0
  104. package/dist/interface/assets/Training-DMNjB3uX.css +1 -0
  105. package/dist/interface/assets/Updates-CbscgL60.js +2 -0
  106. package/dist/interface/assets/{VariableInput-__I-FsBF.js → VariableInput-Dqg4sqBD.js} +1 -1
  107. package/dist/interface/assets/{VariableSuggestions-B-7auf15.js → VariableSuggestions-DZCkPAVs.js} +1 -1
  108. package/dist/interface/assets/{VersionsHandler-BTe1Ev3b.js → VersionsHandler-BYFshrhO.js} +2 -2
  109. package/dist/interface/assets/{VirtualSensorCreate-DdLgJECI.js → VirtualSensorCreate-CQ-C4si3.js} +1 -1
  110. package/dist/interface/assets/Workers-DC77SjZQ.js +2 -0
  111. package/dist/interface/assets/api-Cb8_C_se.js +4 -0
  112. package/dist/interface/assets/{api-84bL4zpk.js → api-CbYNh0N1.js} +1 -1
  113. package/dist/interface/assets/api-DIyogyx5.css +2 -0
  114. package/dist/interface/assets/{auth-F2wU_mtw.js → auth-Bev1OdHw.js} +1 -1
  115. package/dist/interface/assets/{automations-D6fqhxhY.js → automations-DrpESBB_.js} +1 -1
  116. package/dist/interface/assets/cameraSources-QF2xqMxX.js +1 -0
  117. package/dist/interface/assets/cloudHandoff-BknPGUc0.js +1 -0
  118. package/dist/interface/assets/{config-Jzs6YXbB.js → config-DCK7k2P4.js} +1 -1
  119. package/dist/interface/assets/{flowSchema-C1fWwuQa.js → flowSchema-D3Ddm5sW.js} +1 -1
  120. package/dist/interface/assets/{intercomService-fFto_C1t.js → intercomService-DIwpkwG4.js} +1 -1
  121. package/dist/interface/assets/main-Cb5Z8N7b.css +1 -0
  122. package/dist/interface/assets/main-DVwdxi04.js +3 -0
  123. package/dist/interface/assets/mqtt-COWs_r7k.js +1 -0
  124. package/dist/interface/assets/{notifications-CIJEGR7A.js → notifications-sIv1-H85.js} +1 -1
  125. package/dist/interface/assets/{plugins-HYHSAzD-.js → plugins-CXQj6XQt.js} +1 -1
  126. package/dist/interface/assets/rooms-DScX89Ks.js +1 -0
  127. package/dist/interface/assets/{sensorIcons-ByPd6LR6.js → sensorIcons-CvVtOgZB.js} +1 -1
  128. package/dist/interface/assets/sensorSlots-DsfKs8_k.js +1 -0
  129. package/dist/interface/assets/{sensors-BgjfSfk6.js → sensors-Bf_gYmB5.js} +1 -1
  130. package/dist/interface/assets/{server-CIDx_I6S.js → server-CahE6_Pv.js} +1 -1
  131. package/dist/interface/assets/{theme-GSy1mQOB.js → theme-DmUc7UHl.js} +1 -1
  132. package/dist/interface/assets/{types-Do9v0d7I.js → types-D4kUDpid.js} +1 -1
  133. package/dist/interface/assets/{types-Dlk_iSoE.js → types-Dse8_nTX.js} +1 -1
  134. package/dist/interface/assets/types-hwOSxlNg.js +1 -0
  135. package/dist/interface/assets/ungrouped-Byxe4LNR.js +1 -0
  136. package/dist/interface/assets/ungrouped-n3OnGhCH.css +1 -0
  137. package/dist/interface/assets/{updates-73Yq11IN.js → updates-C4gAnNY6.js} +1 -1
  138. package/dist/interface/assets/{useAppVersion-B0_bYa9V.js → useAppVersion--b5Zj7tl.js} +1 -1
  139. package/dist/interface/assets/useBackupRestore-Bx13MgrJ.js +1 -0
  140. package/dist/interface/assets/{useCameraOptions-DKeZhfOM.js → useCameraOptions-DN4gJjIl.js} +1 -1
  141. package/dist/interface/assets/{useLogsSocket-CmyTTUGN.js → useLogsSocket-DqVa6Hky.js} +1 -1
  142. package/dist/interface/assets/{useNavLayout-DOFS3269.js → useNavLayout-CuQ9F9cj.js} +1 -1
  143. package/dist/interface/assets/{usePermissions-D5I3gACT.js → usePermissions-C1L7m3Nc.js} +1 -1
  144. package/dist/interface/assets/{usePluginUpdates-BWxJ04h7.js → usePluginUpdates-CvQPy02x.js} +1 -1
  145. package/dist/interface/assets/{usePushRegistration-DWreQ-Hn.js → usePushRegistration-BKvefMFq.js} +1 -1
  146. package/dist/interface/assets/{useServerRestart-DDW-nw_t.js → useServerRestart-ByN6484v.js} +1 -1
  147. package/dist/interface/assets/{useStreamStatus-COIha2d8.js → useStreamStatus-BbtTnidZ.js} +1 -1
  148. package/dist/interface/assets/{useTabSwipe-aoMqro29.js → useTabSwipe-D9udGzPx.js} +1 -1
  149. package/dist/interface/assets/{useUpdateChannel-CM9MYCZy.js → useUpdateChannel-8t3W9dNr.js} +1 -1
  150. package/dist/interface/assets/{useUpdatesSocket-DY4i32ml.js → useUpdatesSocket-D9s_5T3l.js} +1 -1
  151. package/dist/interface/assets/{useUserOptions-DHfprGgA.js → useUserOptions-CEPYkuSm.js} +1 -1
  152. package/dist/interface/assets/{vendor-cameraui-BRv7o4zz.js → vendor-cameraui-Dlzn4pyz.js} +26 -26
  153. package/dist/interface/assets/vendor-core-COMSlypG.js +1 -0
  154. package/dist/interface/assets/{vendor-primevue-C85v-zl5.js → vendor-primevue-DF71EsUM.js} +55 -55
  155. package/dist/interface/ha/{404-TwTUCqDv.js → 404-Bm-oxxip.js} +1 -1
  156. package/dist/interface/ha/{About-BeZkyUdW.js → About-CDcN0Q2J.js} +6 -6
  157. package/dist/interface/ha/{Automation-CL7j0Vgh.js → Automation-BQd4b0ym.js} +149 -149
  158. package/dist/interface/ha/{AutomationImport-D7arOHP-.js → AutomationImport-CX1C76Wb.js} +6 -6
  159. package/dist/interface/ha/{AutomationStore-DN0yBk6X.js → AutomationStore-D4B0KpoW.js} +27 -27
  160. package/dist/interface/ha/{AutomationStoreDetail-DUuLEnvx.js → AutomationStoreDetail-B53Giz4B.js} +24 -24
  161. package/dist/interface/ha/{Automations-Dfbren5V.js → Automations-BXlwOElS.js} +94 -94
  162. package/dist/interface/ha/{Camera-BxWpvZM8.js → Camera-CauwMneE.js} +182 -180
  163. package/dist/interface/ha/{CameraConsole-DT7BFGXD.js → CameraConsole-CmsMjuIR.js} +5 -5
  164. package/dist/interface/ha/{Cameras-ClmwBeNf.js → Cameras-CyHDmgs0.js} +117 -117
  165. package/dist/interface/ha/{Camview-CFAKNI6-.js → Camview-BwwvU5k8.js} +112 -112
  166. package/dist/interface/ha/{Config-D83QNz1P.js → Config-C_Zuyeoc.js} +9 -9
  167. package/dist/interface/ha/{ConfigActionCameraControl-D-2_gkM-.js → ConfigActionCameraControl-C1_QyuX8.js} +3 -3
  168. package/dist/interface/ha/{ConfigActionHttp-CDmzaJOb.js → ConfigActionHttp-C0d433mh.js} +2 -2
  169. package/dist/interface/ha/{ConfigActionImageInput-7mA-jNIj.js → ConfigActionImageInput-BYys2FwC.js} +1 -1
  170. package/dist/interface/ha/{ConfigActionMqtt-CGLqAswk.js → ConfigActionMqtt-DznDfzze.js} +4 -4
  171. package/dist/interface/ha/{ConfigActionNotification-DyhLsVfe.js → ConfigActionNotification-CC2qfBLm.js} +3 -3
  172. package/dist/interface/ha/{ConfigActionNotificationControl-C381uizv.js → ConfigActionNotificationControl-3jlm7_A4.js} +2 -2
  173. package/dist/interface/ha/{ConfigActionOutput-Cg6IMq5u.js → ConfigActionOutput-BEf1U3_l.js} +1 -1
  174. package/dist/interface/ha/{ConfigActionPlugin-vFD_OHt8.js → ConfigActionPlugin-C57BUrJD.js} +5 -5
  175. package/dist/interface/ha/{ConfigActionSensor-B0JYbb-_.js → ConfigActionSensor-BkoSPCUJ.js} +5 -5
  176. package/dist/interface/ha/{ConfigActionSnapshot-DlYRwdII.js → ConfigActionSnapshot-CC3EpmCq.js} +2 -2
  177. package/dist/interface/ha/{ConfigActionVariable-6HNVpSjs.js → ConfigActionVariable-JDyDhSzZ.js} +1 -1
  178. package/dist/interface/ha/{ConfigConditionIfElse-b5UhYSf4.js → ConfigConditionIfElse-BVg-TUpv.js} +3 -3
  179. package/dist/interface/ha/{ConfigConditionSensorState-CI1CS9qa.js → ConfigConditionSensorState-YYeWly1H.js} +4 -4
  180. package/dist/interface/ha/{ConfigConditionSwitch-DGoKb_ZM.js → ConfigConditionSwitch-DQHXX-4U.js} +5 -5
  181. package/dist/interface/ha/{ConfigSensorValueInput-BGQytgns.js → ConfigSensorValueInput-BuuzQ1nJ.js} +8 -8
  182. package/dist/interface/ha/{ConfigTriggerDetection-l_h4kt0X.js → ConfigTriggerDetection-CUvkAmpJ.js} +3 -3
  183. package/dist/interface/ha/{ConfigTriggerGeofence-Y2Od0L2_.js → ConfigTriggerGeofence-CCHELnfy.js} +7 -7
  184. package/dist/interface/ha/{ConfigTriggerMqtt-DttCVDHe.js → ConfigTriggerMqtt-BfLnCiWZ.js} +1 -1
  185. package/dist/interface/ha/{ConfigTriggerSensor-O4mWaXnJ.js → ConfigTriggerSensor-Bi-Jld2G.js} +1 -1
  186. package/dist/interface/ha/{ConfigTriggerSystem-C_uWI6kc.js → ConfigTriggerSystem-_HXrWjaJ.js} +2 -2
  187. package/dist/interface/ha/{ConfigTriggerWebhook-CY5vDxZe.js → ConfigTriggerWebhook-CFYsVF_r.js} +2 -2
  188. package/dist/interface/ha/{Console-DdOU0_jE.js → Console-CR95JZFd.js} +101 -101
  189. package/dist/interface/ha/{CuiAutomationRunsDialog-_WF5J4hV.js → CuiAutomationRunsDialog--mpkPFmw.js} +2 -2
  190. package/dist/interface/ha/{CuiBottomSheet-Bzr2zhm3.js → CuiBottomSheet-DfFzwDjq.js} +3 -3
  191. package/dist/interface/ha/{CuiCameraRecordings-HqWrHpr-.js → CuiCameraRecordings-DCIFFbFk.js} +13 -13
  192. package/dist/interface/ha/{CuiCameraShares-Bw1RlqC-.js → CuiCameraShares-Dwv_XtX4.js} +7 -7
  193. package/dist/interface/ha/{CuiCameraTable-DvIlmfmW.js → CuiCameraTable-L6wd-VYz.js} +9 -9
  194. package/dist/interface/ha/{CuiChartTable-C6vRR9ny.js → CuiChartTable-CxJR8u6U.js} +16 -16
  195. package/dist/interface/ha/{CuiConsole-B6fDJfvq.js → CuiConsole-CvL9TXZY.js} +7 -7
  196. package/dist/interface/ha/{CuiDataTable-BLL7vWD1.js → CuiDataTable-Bn80WJXi.js} +7 -7
  197. package/dist/interface/ha/{CuiPluginCard-CsJ-dlra.js → CuiPluginCard-CtOzPAal.js} +32 -32
  198. package/dist/interface/ha/CuiPluginOAuthButton-1LgNMLII.js +79 -0
  199. package/dist/interface/ha/{CuiPluginTrustBadge-CQtfi3UI.js → CuiPluginTrustBadge-mHuy3ab9.js} +3 -3
  200. package/dist/interface/ha/{CuiQRCode-DOj5PJo2.js → CuiQRCode-CloepWte.js} +6 -6
  201. package/dist/interface/ha/{CuiSchema-Dg43r2Vo.js → CuiSchema-CJsEWewj.js} +132 -132
  202. package/dist/interface/ha/{CuiTopNavbarItem-CMu_hCIP.js → CuiTopNavbarItem-B2EM-tmz.js} +3 -3
  203. package/dist/interface/ha/{Faces-Ed0ytbse.js → Faces-BMkZfxDm.js} +66 -66
  204. package/dist/interface/ha/{FirstSteps-Dkw2Enre.js → FirstSteps-BH0mga3u.js} +67 -67
  205. package/dist/interface/ha/{Floorplan-IdC1tgDr.js → Floorplan-CyfIUI4Z.js} +220 -220
  206. package/dist/interface/ha/{Instances-dvDlInn-.js → Instances-BwNXc91J.js} +18 -18
  207. package/dist/interface/ha/{Logs-rUL_mLTJ.js → Logs-CcSiN16r.js} +11 -11
  208. package/dist/interface/ha/{Menu-CfMgYCN9.js → Menu-qdN0OBb7.js} +15 -15
  209. package/dist/interface/ha/{Metrics-DYNvEdb-.js → Metrics-ClM5lhvC.js} +93 -93
  210. package/dist/interface/ha/{OAuthDeviceFlow-vgBWOkzP.js → OAuthDeviceFlow-BBr-rER_.js} +5 -5
  211. package/dist/interface/ha/{Plugin-PqUW_696.js → Plugin-BBkSXygO.js} +104 -104
  212. package/dist/interface/ha/{PluginConsole-CFJKNhQw.js → PluginConsole-DqrBnXSX.js} +4 -4
  213. package/dist/interface/ha/{PluginDetail-cC8nut35.js → PluginDetail-Clu6nv-B.js} +12 -12
  214. package/dist/interface/ha/{PluginSearch-BzSs0ibh.js → PluginSearch-Dn-24FLX.js} +53 -53
  215. package/dist/interface/ha/{PluginUpdateProgress-CtM7lrl9.js → PluginUpdateProgress-CzhHUKDg.js} +3 -3
  216. package/dist/interface/ha/{Plugins-CzvlXEaH.js → Plugins-qYJD5ioU.js} +27 -27
  217. package/dist/interface/ha/{Recordings-BtsW8I5D.js → Recordings-CBIt3vL7.js} +384 -366
  218. package/dist/interface/ha/{SensorEdit-DMwyTDIG.js → SensorEdit-BbG6apZA.js} +353 -353
  219. package/dist/interface/ha/{SensorHistory-DoJhFbTC.js → SensorHistory-CqGsnQPW.js} +2 -2
  220. package/dist/interface/ha/{Sensors-BoRfutfx.js → Sensors-mKWkCDF8.js} +507 -481
  221. package/dist/interface/ha/{Settings-vmfs1rfj.js → Settings-C5J4ubiA.js} +24 -24
  222. package/dist/interface/ha/SettingsAccount-tCyZsBxG.js +970 -0
  223. package/dist/interface/ha/{SettingsAppearance-v9zeetcx.js → SettingsAppearance-DqJp4Clt.js} +14 -14
  224. package/dist/interface/ha/{SettingsBackup-eO4r8MZe.js → SettingsBackup-CHnCKYgz.js} +6 -6
  225. package/dist/interface/ha/{SettingsList-burOi4S6.js → SettingsList-DsQOPeKW.js} +5 -5
  226. package/dist/interface/ha/{SettingsMqtt-CjZERKR8.js → SettingsMqtt-TPIsEcXe.js} +124 -124
  227. package/dist/interface/ha/SettingsNotifications-DH3T_xyh.js +529 -0
  228. package/dist/interface/ha/{SettingsRecordings-DzsXkzeu.js → SettingsRecordings-Ay8lj8Lm.js} +7 -7
  229. package/dist/interface/ha/{SettingsRemote-B0HZwZj3.js → SettingsRemote-CHiBADuu.js} +202 -202
  230. package/dist/interface/ha/{SettingsSystem-Bc_c8XYh.js → SettingsSystem-tqs40pUW.js} +10 -10
  231. package/dist/interface/ha/{SettingsUsers-CxL65q1C.js → SettingsUsers-BUbC_Qc7.js} +29 -29
  232. package/dist/interface/ha/{Terminal-DsX-_5R2.js → Terminal-f_b-089t.js} +76 -76
  233. package/dist/interface/ha/Training-Dcxo9PFi.js +1479 -0
  234. package/dist/interface/ha/{Updates-DG9i-tQu.js → Updates-aGl5hy8Q.js} +14 -14
  235. package/dist/interface/ha/{VariableInput-CcevSEwK.js → VariableInput-yJGbaZEo.js} +1 -1
  236. package/dist/interface/ha/{VersionsHandler-5GeFt6Lw.js → VersionsHandler-Q4PfRpbs.js} +10 -10
  237. package/dist/interface/ha/{VirtualSensorCreate-dWN8FANX.js → VirtualSensorCreate-Gbi6aJBh.js} +8 -8
  238. package/dist/interface/ha/{Workers-D1y6eFKT.js → Workers-BbBqOc0H.js} +167 -167
  239. package/dist/interface/ha/{api-DDUXI4DG.js → api-DBu4gh4_.js} +9705 -9275
  240. package/dist/interface/ha/{api-BgQ9AVgK.js → api-DY0z6Sp_.js} +3 -3
  241. package/dist/interface/ha/{auth-C8Vp1TkJ.js → auth-C2V-kpRp.js} +38 -38
  242. package/dist/interface/ha/{automationBlueprint-DhRjWL2p.js → automationBlueprint-MGUZJTFY.js} +4 -4
  243. package/dist/interface/ha/cameraui-cards.js +1 -1
  244. package/dist/interface/ha/{cards-BGikU5nh.js → cards-BA6g_9R5.js} +573 -573
  245. package/dist/interface/ha/cloud-check-BFJzoUtz.js +33 -0
  246. package/dist/interface/ha/{config-WqhFqx8D.js → config-BGlhgEOa.js} +16 -16
  247. package/dist/interface/ha/{dist-BQFunPaA.js → dist-BqTZri2H.js} +743 -725
  248. package/dist/interface/ha/{mqtt-CQopAljB.js → mqtt-BLKZNA-E.js} +12 -12
  249. package/dist/interface/ha/{notifications-C4IU7Zbu.js → notifications-BW0RNMnG.js} +22 -22
  250. package/dist/interface/ha/{pinia-3D39Do4a.js → pinia-DINxhtY-.js} +188 -162
  251. package/dist/interface/ha/{plugins-C2n0mAnr.js → plugins-Cj-B4Nwy.js} +62 -62
  252. package/dist/interface/ha/{rooms-qqdOrA2J.js → rooms-C32i51p-.js} +7 -7
  253. package/dist/interface/ha/{server-D6Yglz-z.js → server-CfbE_0Z9.js} +31 -31
  254. package/dist/interface/ha/{types-BtcJ7st-.js → types-Ry6RjBNa.js} +32 -32
  255. package/dist/interface/ha/{ungrouped-aASsOUNF.js → ungrouped-CO29-tSV.js} +415 -211
  256. package/dist/interface/ha/{updates-BuAFU-ZQ.js → updates-CZPI8XJ1.js} +38 -38
  257. package/dist/interface/ha/{useAppVersion-D0EOwpoO.js → useAppVersion-9jfqRo_z.js} +1 -1
  258. package/dist/interface/ha/{useLogsSocket-CCewWMZM.js → useLogsSocket-B0E7a3ys.js} +1 -1
  259. package/dist/interface/ha/{useNavLayout-B_QzdVtJ.js → useNavLayout-B2wfeha-.js} +19 -19
  260. package/dist/interface/ha/{useServerRestart-B0OMNlwZ.js → useServerRestart-CCH-yMWR.js} +1 -1
  261. package/dist/interface/ha/{useTabSwipe-DG6Gx2Md.js → useTabSwipe-D2uqGEvR.js} +1 -1
  262. package/dist/interface/ha/{useUpdateChannel-CXDGlWX2.js → useUpdateChannel--SP3Wjym.js} +2 -2
  263. package/dist/interface/ha/{useUpdatesSocket-BgCJLp_W.js → useUpdatesSocket-BBbUCMU-.js} +1 -1
  264. package/dist/interface/ha/{useUserOptions-rirRksyl.js → useUserOptions-Bh54UAkH.js} +1 -1
  265. package/dist/interface/index.html +28 -27
  266. package/dist/interface/sw.js +1 -1
  267. package/dist/server/package.json +8 -8
  268. package/dist/server/src/api/controllers/training.controller.d.ts +40 -0
  269. package/dist/server/src/api/controllers/training.controller.js +97 -0
  270. package/dist/server/src/api/controllers/training.controller.js.map +1 -0
  271. package/dist/server/src/api/database/constants.d.ts +1 -0
  272. package/dist/server/src/api/database/constants.js +1 -0
  273. package/dist/server/src/api/database/constants.js.map +1 -1
  274. package/dist/server/src/api/database/index.d.ts +3 -2
  275. package/dist/server/src/api/database/index.js +4 -2
  276. package/dist/server/src/api/database/index.js.map +1 -1
  277. package/dist/server/src/api/database/migrations/v2-1-19.d.ts +3 -0
  278. package/dist/server/src/api/database/migrations/v2-1-19.js +24 -0
  279. package/dist/server/src/api/database/migrations/v2-1-19.js.map +1 -0
  280. package/dist/server/src/api/database/record-schemas.d.ts +7 -1
  281. package/dist/server/src/api/database/record-schemas.js +8 -0
  282. package/dist/server/src/api/database/record-schemas.js.map +1 -1
  283. package/dist/server/src/api/database/types.d.ts +27 -0
  284. package/dist/server/src/api/index.js +1 -1
  285. package/dist/server/src/api/index.js.map +1 -1
  286. package/dist/server/src/api/render-index.js +1 -1
  287. package/dist/server/src/api/render-index.js.map +1 -1
  288. package/dist/server/src/api/routes/index.js +2 -0
  289. package/dist/server/src/api/routes/index.js.map +1 -1
  290. package/dist/server/src/api/routes/training.routes.d.ts +2 -0
  291. package/dist/server/src/api/routes/training.routes.js +107 -0
  292. package/dist/server/src/api/routes/training.routes.js.map +1 -0
  293. package/dist/server/src/api/schemas/cameras.schema.d.ts +76 -76
  294. package/dist/server/src/api/schemas/remote.schema.d.ts +1 -1
  295. package/dist/server/src/api/schemas/training.schema.d.ts +46 -0
  296. package/dist/server/src/api/schemas/training.schema.js +45 -0
  297. package/dist/server/src/api/schemas/training.schema.js.map +1 -0
  298. package/dist/server/src/api/services/cameras.service.js +7 -2
  299. package/dist/server/src/api/services/cameras.service.js.map +1 -1
  300. package/dist/server/src/api/services/sensors.service.d.ts +1 -0
  301. package/dist/server/src/api/services/sensors.service.js +1 -0
  302. package/dist/server/src/api/services/sensors.service.js.map +1 -1
  303. package/dist/server/src/api/types/index.d.ts +2 -1
  304. package/dist/server/src/api/websocket/index.js +3 -1
  305. package/dist/server/src/api/websocket/index.js.map +1 -1
  306. package/dist/server/src/api/websocket/nsp/training.d.ts +11 -0
  307. package/dist/server/src/api/websocket/nsp/training.js +29 -0
  308. package/dist/server/src/api/websocket/nsp/training.js.map +1 -0
  309. package/dist/server/src/api/websocket/types.d.ts +1 -1
  310. package/dist/server/src/camera/decoder/detection-coordinator.d.ts +1 -0
  311. package/dist/server/src/camera/decoder/detection-coordinator.js +48 -2
  312. package/dist/server/src/camera/decoder/detection-coordinator.js.map +1 -1
  313. package/dist/server/src/camera/decoder/detection-window.d.ts +5 -0
  314. package/dist/server/src/camera/decoder/detection-window.js +5 -5
  315. package/dist/server/src/camera/decoder/detection-window.js.map +1 -1
  316. package/dist/server/src/camera/decoder/event-manager.d.ts +10 -0
  317. package/dist/server/src/camera/decoder/event-manager.js +50 -1
  318. package/dist/server/src/camera/decoder/event-manager.js.map +1 -1
  319. package/dist/server/src/camera/decoder/training-sink.d.ts +37 -0
  320. package/dist/server/src/camera/decoder/training-sink.js +146 -0
  321. package/dist/server/src/camera/decoder/training-sink.js.map +1 -0
  322. package/dist/server/src/camera/decoder/types.d.ts +4 -0
  323. package/dist/server/src/camera/decoder/types.js +8 -0
  324. package/dist/server/src/camera/decoder/types.js.map +1 -1
  325. package/dist/server/src/manager/coreManager.d.ts +3 -1
  326. package/dist/server/src/manager/coreManager.js +18 -0
  327. package/dist/server/src/manager/coreManager.js.map +1 -1
  328. package/dist/server/src/manager/trainingCandidateManager.d.ts +41 -0
  329. package/dist/server/src/manager/trainingCandidateManager.js +249 -0
  330. package/dist/server/src/manager/trainingCandidateManager.js.map +1 -0
  331. package/dist/server/src/manager/types.d.ts +23 -0
  332. package/dist/server/src/manager/types.js.map +1 -1
  333. package/dist/server/src/remote/api/index.d.ts +2 -0
  334. package/dist/server/src/remote/api/index.js +3 -0
  335. package/dist/server/src/remote/api/index.js.map +1 -1
  336. package/dist/server/src/remote/api/routes/oauth.js +1 -1
  337. package/dist/server/src/remote/api/routes/oauth.js.map +1 -1
  338. package/dist/server/src/remote/api/routes/train.d.ts +24 -0
  339. package/dist/server/src/remote/api/routes/train.js +51 -0
  340. package/dist/server/src/remote/api/routes/train.js.map +1 -0
  341. package/dist/server/src/rpc/index.d.ts +2 -0
  342. package/dist/server/src/rpc/index.js +5 -0
  343. package/dist/server/src/rpc/index.js.map +1 -1
  344. package/dist/server/src/rpc/interfaces/core.d.ts +21 -0
  345. package/dist/server/src/rpc/server.js +2 -0
  346. package/dist/server/src/rpc/server.js.map +1 -1
  347. package/dist/server/src/sensors/registry.d.ts +1 -0
  348. package/dist/server/src/sensors/registry.js +10 -0
  349. package/dist/server/src/sensors/registry.js.map +1 -1
  350. package/package.json +8 -8
  351. package/dist/interface/assets/Automation-DThD-djr.js +0 -3
  352. package/dist/interface/assets/AutomationImport-CHKkZqA4.js +0 -2
  353. package/dist/interface/assets/AutomationStore-Aon4kqZU.js +0 -2
  354. package/dist/interface/assets/AutomationStoreDetail-CfZ45tLW.js +0 -2
  355. package/dist/interface/assets/Automations-BkRuMd-d.js +0 -2
  356. package/dist/interface/assets/Camera-BWdUUW_H.css +0 -1
  357. package/dist/interface/assets/Camera-G6xTnRAk.js +0 -2
  358. package/dist/interface/assets/Camview-BZS4_jv1.css +0 -1
  359. package/dist/interface/assets/Camview-BjCuw7nI.js +0 -1
  360. package/dist/interface/assets/Config-BTXb1LHN.js +0 -2
  361. package/dist/interface/assets/ConfigActionNotification-DtoP3c7I.js +0 -1
  362. package/dist/interface/assets/ConfigTriggerGeofence-DLuNWaN6.js +0 -1
  363. package/dist/interface/assets/Console-hUeddOJc.js +0 -1
  364. package/dist/interface/assets/CuiBottomSheet-BGVpKjqe.js +0 -1
  365. package/dist/interface/assets/CuiBottomSheet-DOW6gNj0.js +0 -1
  366. package/dist/interface/assets/CuiBottomSheet-DsjZEdig.css +0 -1
  367. package/dist/interface/assets/CuiCameraPipCard-BBMkU-eN.js +0 -1
  368. package/dist/interface/assets/CuiCameraShares-C9Th3jEn.js +0 -1
  369. package/dist/interface/assets/CuiCameraTable-Cti7FZma.js +0 -1
  370. package/dist/interface/assets/CuiLightControl-BhBIiPv-.js +0 -1
  371. package/dist/interface/assets/CuiPluginCard-yYGvVtDJ.js +0 -2
  372. package/dist/interface/assets/CuiPluginOAuthButton-C8VRPoMj.js +0 -2
  373. package/dist/interface/assets/CuiSchema-Dy2eRCu2.js +0 -1
  374. package/dist/interface/assets/CuiTopNavbarItem-Btig8IUi.js +0 -1
  375. package/dist/interface/assets/Faces-D5PMl5Bx.js +0 -1
  376. package/dist/interface/assets/FirstSteps-BcjeaLz_.js +0 -1
  377. package/dist/interface/assets/Floorplan-DHl3zibU.js +0 -1
  378. package/dist/interface/assets/Instances-DXksjsQR.js +0 -1
  379. package/dist/interface/assets/Metrics-BWTImHsV.js +0 -9
  380. package/dist/interface/assets/Plugin-D5WuhMPO.js +0 -1
  381. package/dist/interface/assets/PluginDetail-3qrahg0_.js +0 -2
  382. package/dist/interface/assets/PluginSearch-D8zmSpkN.js +0 -2
  383. package/dist/interface/assets/PluginSearch-D_ba5x-O.js +0 -1
  384. package/dist/interface/assets/Plugins-5MzJrkSA.js +0 -1
  385. package/dist/interface/assets/Recordings-BuGuUwYE.js +0 -1
  386. package/dist/interface/assets/Recordings-D4NzYCO9.css +0 -1
  387. package/dist/interface/assets/SensorEdit-DF4sw0EW.js +0 -1
  388. package/dist/interface/assets/Sensors-D6GwAXQ2.js +0 -2
  389. package/dist/interface/assets/Settings-BZf-ziEZ.js +0 -1
  390. package/dist/interface/assets/SettingsAccount--5p79E6E.js +0 -1
  391. package/dist/interface/assets/SettingsAccount-Dlc0Wddo.js +0 -1
  392. package/dist/interface/assets/SettingsAppearance-B59zzxu4.js +0 -1
  393. package/dist/interface/assets/SettingsAppearance-xPKxmDpp.js +0 -1
  394. package/dist/interface/assets/SettingsBackup-CJJ5VBzp.js +0 -1
  395. package/dist/interface/assets/SettingsMqtt-DUUAcYuG.js +0 -1
  396. package/dist/interface/assets/SettingsNotifications-BH63oRsc.js +0 -1
  397. package/dist/interface/assets/SettingsRemote-Dbaxaq5H.js +0 -2
  398. package/dist/interface/assets/SettingsSystem-DzHIleOc.js +0 -2
  399. package/dist/interface/assets/SettingsUsers-D5YuEr7c.js +0 -1
  400. package/dist/interface/assets/Updates-DnAut-3U.js +0 -2
  401. package/dist/interface/assets/Workers-6aoL2zvF.js +0 -2
  402. package/dist/interface/assets/api-BI5TkcMD.js +0 -4
  403. package/dist/interface/assets/api-BTWXbCPQ.css +0 -2
  404. package/dist/interface/assets/cameraSources-C3PFkewy.js +0 -1
  405. package/dist/interface/assets/cloudHandoff-B1HA65AZ.js +0 -1
  406. package/dist/interface/assets/main-C6AqiNZK.js +0 -3
  407. package/dist/interface/assets/main-Qqk3RyYP.css +0 -1
  408. package/dist/interface/assets/mqtt-DGNlVikj.js +0 -1
  409. package/dist/interface/assets/rooms-DL_uUrGc.js +0 -1
  410. package/dist/interface/assets/types-QIK1kdY6.js +0 -1
  411. package/dist/interface/assets/ungrouped-CupkuPIQ.js +0 -1
  412. package/dist/interface/assets/ungrouped-DTYy_Pud.css +0 -1
  413. package/dist/interface/assets/useBackupRestore-jdHT_hab.js +0 -1
  414. package/dist/interface/assets/vendor-core-BUse5adB.js +0 -1
  415. package/dist/interface/ha/CuiPluginOAuthButton-ChNW42ux.js +0 -105
  416. package/dist/interface/ha/SettingsAccount-xJy6kGf6.js +0 -970
  417. package/dist/interface/ha/SettingsNotifications-QCKfSffa.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-DDUXI4DG.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-BLL7vWD1.js";
14
- import { t as ke } from "./CuiQRCode-DOj5PJo2.js";
15
- import { n as Ae, t as F } from "./auth-C8Vp1TkJ.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 };