@camera.ui/server 2.2.3 → 2.2.4

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 (336) hide show
  1. package/dist/interface/assets/{404-D0S6IGok.js → 404-Bdbp69ox.js} +1 -1
  2. package/dist/interface/assets/{About-DAw9u8ZY.js → About-DmtCok-y.js} +1 -1
  3. package/dist/interface/assets/{Assistant-Gi6_YkEY.js → Assistant-D-Lv6JtY.js} +1 -1
  4. package/dist/interface/assets/{Automation-6eFKPJPu.js → Automation-LQ3TssrU.js} +3 -3
  5. package/dist/interface/assets/{AutomationImport-95PfbPvG.js → AutomationImport-B_ra3G3_.js} +2 -2
  6. package/dist/interface/assets/{AutomationStore-BHxzzx7a.js → AutomationStore-DSXSaQjp.js} +2 -2
  7. package/dist/interface/assets/{AutomationStoreDetail-DEVlRllt.js → AutomationStoreDetail-B5_Meb6R.js} +2 -2
  8. package/dist/interface/assets/{Automations-DEivoiS1.js → Automations-DHfPRe8W.js} +2 -2
  9. package/dist/interface/assets/Camera-B4ojNnKb.css +1 -0
  10. package/dist/interface/assets/Camera-CDbfvtJv.js +2 -0
  11. package/dist/interface/assets/{CameraConsole-B8bBYQzk.js → CameraConsole-DX-IRmd_.js} +1 -1
  12. package/dist/interface/assets/{Cameras-HblWPGCv.js → Cameras-D9m2bxWj.js} +1 -1
  13. package/dist/interface/assets/{Camview-DEKrbg5R.js → Camview-DKOYY6TI.js} +1 -1
  14. package/dist/interface/assets/{CertificateUpload-CC6YtX7h.js → CertificateUpload-B8ccb3n-.js} +1 -1
  15. package/dist/interface/assets/{Config-DQEaOnaN.js → Config-DCIUUWCv.js} +1 -1
  16. package/dist/interface/assets/{ConfigActionAssistant-C_XRnBzo.js → ConfigActionAssistant-6IUzZeNW.js} +1 -1
  17. package/dist/interface/assets/{ConfigActionCameraControl-oRzM9rjX.js → ConfigActionCameraControl-EXuiNMuG.js} +1 -1
  18. package/dist/interface/assets/{ConfigActionDelay-Dc-NZS5L.js → ConfigActionDelay-Cs4sYEk-.js} +1 -1
  19. package/dist/interface/assets/{ConfigActionHttp-Nw0wt-JZ.js → ConfigActionHttp-gUM6RQ6Y.js} +1 -1
  20. package/dist/interface/assets/{ConfigActionImageInput-Do60Upqm.js → ConfigActionImageInput-CPl5kVgO.js} +1 -1
  21. package/dist/interface/assets/{ConfigActionMqtt-BeQVgaGX.js → ConfigActionMqtt-BeBMCOJ-.js} +1 -1
  22. package/dist/interface/assets/{ConfigActionNotification-BA0FjOWs.js → ConfigActionNotification-DJFHdFDN.js} +1 -1
  23. package/dist/interface/assets/{ConfigActionNotificationControl-Ce3Kd_Xv.js → ConfigActionNotificationControl-BXoztPTs.js} +1 -1
  24. package/dist/interface/assets/{ConfigActionOutput-ChiOMWDy.js → ConfigActionOutput-BGrFWqZ1.js} +1 -1
  25. package/dist/interface/assets/{ConfigActionPlugin-Cn3r0glk.js → ConfigActionPlugin-CdIIMcJZ.js} +1 -1
  26. package/dist/interface/assets/{ConfigActionSensor-DkdBCu-6.js → ConfigActionSensor-MRVGJ22A.js} +1 -1
  27. package/dist/interface/assets/{ConfigActionSnapshot-CLlaDFUV.js → ConfigActionSnapshot-CxA4f5ag.js} +1 -1
  28. package/dist/interface/assets/{ConfigActionVariable-D4x3Luxl.js → ConfigActionVariable-DmU4seLh.js} +1 -1
  29. package/dist/interface/assets/{ConfigConditionIfElse-BpL8KZ5X.js → ConfigConditionIfElse-Tgdrk7lo.js} +1 -1
  30. package/dist/interface/assets/{ConfigConditionSensorState-CSQexUF_.js → ConfigConditionSensorState-CyyzoL6Q.js} +1 -1
  31. package/dist/interface/assets/{ConfigConditionSwitch-CB2J_5kr.js → ConfigConditionSwitch-DprK5AbR.js} +1 -1
  32. package/dist/interface/assets/{ConfigConditionTime-X9fsNsYu.js → ConfigConditionTime-CDruEvBp.js} +1 -1
  33. package/dist/interface/assets/{ConfigSensorValueInput-VPhPxrQl.js → ConfigSensorValueInput-BhlgTOW9.js} +1 -1
  34. package/dist/interface/assets/{ConfigTriggerDetection-Dhzng4X5.js → ConfigTriggerDetection-4vdEST9Y.js} +1 -1
  35. package/dist/interface/assets/{ConfigTriggerGeofence-Cm0CLNf5.js → ConfigTriggerGeofence-1B0BdCOw.js} +1 -1
  36. package/dist/interface/assets/{ConfigTriggerManual-CRi3rsgG.js → ConfigTriggerManual-BQLDqwZh.js} +1 -1
  37. package/dist/interface/assets/{ConfigTriggerMqtt-Ck__CWck.js → ConfigTriggerMqtt-B3YNOB6U.js} +1 -1
  38. package/dist/interface/assets/{ConfigTriggerSchedule-C1PZrHEu.js → ConfigTriggerSchedule-DhbJGOT7.js} +1 -1
  39. package/dist/interface/assets/{ConfigTriggerSensor-9xVgCtkn.js → ConfigTriggerSensor-iMPg_Pmb.js} +1 -1
  40. package/dist/interface/assets/{ConfigTriggerSystem-Denf1gkO.js → ConfigTriggerSystem-MaNZTO3h.js} +1 -1
  41. package/dist/interface/assets/{ConfigTriggerWebhook-im24LkCn.js → ConfigTriggerWebhook-B3WfXjPv.js} +1 -1
  42. package/dist/interface/assets/{Console-Q1HpmyO_.js → Console-BQLINPCG.js} +1 -1
  43. package/dist/interface/assets/{CuiAssistantConversation-BxJf9sdu.js → CuiAssistantConversation-yCRlgjtr.js} +1 -1
  44. package/dist/interface/assets/{CuiAutomationRunsDialog-B3tJ-Cma.js → CuiAutomationRunsDialog-CJ0mzDLL.js} +1 -1
  45. package/dist/interface/assets/{CuiBottomSheet-kvvLw1MQ.js → CuiBottomSheet-BbP0T2v3.js} +1 -1
  46. package/dist/interface/assets/CuiBottomSheet-BpMMQhmJ.js +1 -0
  47. package/dist/interface/assets/CuiCameraPipCard-1EhYM5kQ.js +1 -0
  48. package/dist/interface/assets/CuiCameraRecordings-CkkHbNyY.css +1 -0
  49. package/dist/interface/assets/CuiCameraRecordings-D2jG47AV.js +1 -0
  50. package/dist/interface/assets/{CuiCameraShares-B5ghuJS-.js → CuiCameraShares-IpkomKkl.js} +1 -1
  51. package/dist/interface/assets/CuiCameraTable-CNclH1KS.js +1 -0
  52. package/dist/interface/assets/{CuiCameraTable-Y5XUkU7w.js → CuiCameraTable-DlL-z_na.js} +1 -1
  53. package/dist/interface/assets/{CuiChartTable-CXdupaj5.js → CuiChartTable-B0EPcrgv.js} +1 -1
  54. package/dist/interface/assets/{CuiConsole-5KgXSOS5.js → CuiConsole-D8Xk2LXY.js} +1 -1
  55. package/dist/interface/assets/{CuiDataTable-hArZWV9B.js → CuiDataTable-DtRTB560.js} +1 -1
  56. package/dist/interface/assets/{CuiLightControl-MRpR0XIZ.js → CuiLightControl-CtL3sA8k.js} +1 -1
  57. package/dist/interface/assets/{CuiList-D-l4HrBP.js → CuiList-Bn7DT_Ao.js} +1 -1
  58. package/dist/interface/assets/{CuiPluginCard-whoQ5YHn.js → CuiPluginCard-B-4x6Mno.js} +2 -2
  59. package/dist/interface/assets/{CuiPluginCategoryChip-CH53zk2o.js → CuiPluginCategoryChip-Dih4zKtO.js} +1 -1
  60. package/dist/interface/assets/{CuiPluginOAuthButton-BBA0AzVO.js → CuiPluginOAuthButton-D-Y9KYJz.js} +2 -2
  61. package/dist/interface/assets/{CuiPluginTrustBadge-C0EX5aCI.js → CuiPluginTrustBadge-_g3Ctrg4.js} +1 -1
  62. package/dist/interface/assets/{CuiQRCode-BRT0NO5c.js → CuiQRCode-D6hzmPzV.js} +1 -1
  63. package/dist/interface/assets/{CuiSchema-DBY1x1BT.js → CuiSchema-Dh8Mu4BK.js} +1 -1
  64. package/dist/interface/assets/{CuiTopNavbarItem-CpMT8_0r.js → CuiTopNavbarItem-CgX21E5K.js} +1 -1
  65. package/dist/interface/assets/Faces-CgDoKVkp.js +1 -0
  66. package/dist/interface/assets/{FirstSteps-B8n4fGK3.js → FirstSteps-CZSTX7Ot.js} +1 -1
  67. package/dist/interface/assets/{Floorplan-ZHXNaZA8.js → Floorplan-CRvmaf45.js} +1 -1
  68. package/dist/interface/assets/{Instances-DEj3gs6H.js → Instances-DRkhTQKC.js} +1 -1
  69. package/dist/interface/assets/{Logs-CwHvSKd6.js → Logs-CIDJSpdH.js} +1 -1
  70. package/dist/interface/assets/{Menu-C4BxUV0P.js → Menu-CM_F1jfd.js} +1 -1
  71. package/dist/interface/assets/{Metrics-BCOE-rcw.js → Metrics-DgJEg-ZK.js} +3 -3
  72. package/dist/interface/assets/Metrics-Ebv4qK2a.css +1 -0
  73. package/dist/interface/assets/{OAuthDeviceFlow-D6bjZOYS.js → OAuthDeviceFlow-BZ9LcgmJ.js} +1 -1
  74. package/dist/interface/assets/{Plugin-ppCvxkl4.js → Plugin-BBDpg6U_.js} +1 -1
  75. package/dist/interface/assets/{PluginConsole-BP42Qpee.js → PluginConsole-DxVlTuNy.js} +1 -1
  76. package/dist/interface/assets/{PluginDetail-BnX5lZGz.js → PluginDetail-fLGD3R-u.js} +2 -2
  77. package/dist/interface/assets/PluginSchema-CewD2H-K.js +1 -0
  78. package/dist/interface/assets/{PluginSearch-no79fTuf.js → PluginSearch-5wX7WEcz.js} +2 -2
  79. package/dist/interface/assets/PluginSearch-rDbuXm2z.js +1 -0
  80. package/dist/interface/assets/{PluginUpdateProgress-73jprYHA.js → PluginUpdateProgress-B7Lj0ttd.js} +1 -1
  81. package/dist/interface/assets/{Plugins-DtEqS6_j.js → Plugins-DVQ476iL.js} +1 -1
  82. package/dist/interface/assets/{RecentEventsFilter-CtyCbt6Z.js → RecentEventsFilter-CWNBI2Ge.js} +1 -1
  83. package/dist/interface/assets/Recordings-DSRgRVhN.js +1 -0
  84. package/dist/interface/assets/{SensorEdit-D4-mMg8S.js → SensorEdit-B1mYmxDV.js} +1 -1
  85. package/dist/interface/assets/{SensorHistory-C-X7VI-f.js → SensorHistory-D1kKroxp.js} +1 -1
  86. package/dist/interface/assets/{Sensors-BJh8BkCR.js → Sensors-yAc1M-oO.js} +2 -2
  87. package/dist/interface/assets/{Settings-B9CZvA-d.js → Settings-DBKgECRK.js} +1 -1
  88. package/dist/interface/assets/{SettingsAccount-D3zF2kLc.js → SettingsAccount-CM3XGNL6.js} +1 -1
  89. package/dist/interface/assets/SettingsAccount-i2nzGFdV.js +1 -0
  90. package/dist/interface/assets/{SettingsAppearance-CbG8M38w.js → SettingsAppearance-C-nllv3m.js} +1 -1
  91. package/dist/interface/assets/SettingsAppearance-DCgu01FJ.js +1 -0
  92. package/dist/interface/assets/{SettingsAssistant-DxYPnbms.js → SettingsAssistant-ClRO04fv.js} +1 -1
  93. package/dist/interface/assets/{SettingsBackup-DZBzUyQm.js → SettingsBackup-Cq_eLVCR.js} +1 -1
  94. package/dist/interface/assets/{SettingsList-DFg8g7IM.js → SettingsList-Bklt3TQO.js} +1 -1
  95. package/dist/interface/assets/{SettingsMqtt-BeujOZkh.js → SettingsMqtt-BLkP0en6.js} +1 -1
  96. package/dist/interface/assets/{SettingsNotifications-DtSTE76r.js → SettingsNotifications-CeUKfEnH.js} +1 -1
  97. package/dist/interface/assets/{SettingsPermissions-CPOAefv0.js → SettingsPermissions-Cpka-k3Q.js} +1 -1
  98. package/dist/interface/assets/{SettingsRecordings-ClAtT4Bh.js → SettingsRecordings-k20qTe7K.js} +1 -1
  99. package/dist/interface/assets/{SettingsRemote-58S4Thfp.js → SettingsRemote-CdUj0nZ1.js} +1 -1
  100. package/dist/interface/assets/{SettingsSystem-tTGpuiRW.js → SettingsSystem-6OChvWL7.js} +2 -2
  101. package/dist/interface/assets/{SettingsUsers-D8b7I5c2.js → SettingsUsers-B57uZ8jn.js} +1 -1
  102. package/dist/interface/assets/{Terminal-1_Fi0VW-.js → Terminal-WMgVSORW.js} +1 -1
  103. package/dist/interface/assets/Training-BkWlywj_.js +1 -0
  104. package/dist/interface/assets/{Training-CQHfQjUP.css → Training-Dwf5rXyC.css} +1 -1
  105. package/dist/interface/assets/{Updates-BW0p7Wc5.js → Updates-Dwrd6PQl.js} +1 -1
  106. package/dist/interface/assets/{VariableInput-sqnLuk6S.js → VariableInput-CDJXnzEV.js} +1 -1
  107. package/dist/interface/assets/{VariableSuggestions-3pbnxhyT.js → VariableSuggestions-CNq7O1o-.js} +1 -1
  108. package/dist/interface/assets/{VersionsHandler-CWmjDygB.js → VersionsHandler-C0A8Ryhn.js} +1 -1
  109. package/dist/interface/assets/{VirtualSensorCreate-BzmFlvYD.js → VirtualSensorCreate-zEehu8Fg.js} +1 -1
  110. package/dist/interface/assets/{Workers-Dm9o2wMo.js → Workers-Be7q2vOK.js} +1 -1
  111. package/dist/interface/assets/{api-CQ-3I3-i.js → api-CSl3-BNZ.js} +1 -1
  112. package/dist/interface/assets/api-DcaDMCnj.css +2 -0
  113. package/dist/interface/assets/api-vegsDz6n.js +4 -0
  114. package/dist/interface/assets/{assistant-0UymvpMy.js → assistant-jARIkvB1.js} +1 -1
  115. package/dist/interface/assets/{auth-C0jhqNaz.js → auth-Bov4B1jy.js} +1 -1
  116. package/dist/interface/assets/{automations-Bj30nb8s.js → automations-CJe7TvLk.js} +1 -1
  117. package/dist/interface/assets/{cameraSources-CiMjIjsh.js → cameraSources-CDiYtBzG.js} +1 -1
  118. package/dist/interface/assets/cloudHandoff-BoV37fDI.js +1 -0
  119. package/dist/interface/assets/{config-D-uVfwYp.js → config-iO2vrtak.js} +1 -1
  120. package/dist/interface/assets/{flowSchema-D3nNJVLL.js → flowSchema-B0vIoy4y.js} +1 -1
  121. package/dist/interface/assets/{intercomService-BeoNs-09.js → intercomService-IAAXcRPG.js} +1 -1
  122. package/dist/interface/assets/main-DQgH1fon.js +3 -0
  123. package/dist/interface/assets/{mqtt-D7jRwifB.js → mqtt-DfpSLxes.js} +1 -1
  124. package/dist/interface/assets/{notifications-BpRVoerg.js → notifications-jTSwwN1i.js} +1 -1
  125. package/dist/interface/assets/{plugins-wZ4RDxCb.js → plugins-ChyJXprl.js} +1 -1
  126. package/dist/interface/assets/{rooms-CFcu2dU1.js → rooms-BMWJpAXC.js} +1 -1
  127. package/dist/interface/assets/{sensorIcons-B117n8l2.js → sensorIcons-dUp8Tone.js} +1 -1
  128. package/dist/interface/assets/{sensorSlots-CAr3prFc.js → sensorSlots-CosoVMys.js} +1 -1
  129. package/dist/interface/assets/{sensors-oriEG3KR.js → sensors-DLdbNuoj.js} +1 -1
  130. package/dist/interface/assets/{server-Ce6ou2NV.js → server-D-qkU2-U.js} +1 -1
  131. package/dist/interface/assets/{theme-CBTC6-Lp.js → theme-DhneHMji.js} +1 -1
  132. package/dist/interface/assets/{types-CzjppLwt.js → types-CngwbyEy.js} +1 -1
  133. package/dist/interface/assets/{types-C-amdBz6.js → types-DDpq8alD.js} +1 -1
  134. package/dist/interface/assets/{types-CjU6-JvD.js → types-DdyAGRju.js} +1 -1
  135. package/dist/interface/assets/{ungrouped-AYNBKz52.css → ungrouped-DBRZ-Ori.css} +1 -1
  136. package/dist/interface/assets/ungrouped-e2tQIZD2.js +1 -0
  137. package/dist/interface/assets/{updates-Cohtc6vb.js → updates-DnVisGT3.js} +1 -1
  138. package/dist/interface/assets/{useAppVersion-xxi6fR7J.js → useAppVersion-gtzMlM4b.js} +1 -1
  139. package/dist/interface/assets/{useAssistantActions-BkRK1FBg.js → useAssistantActions-BIHVky9T.js} +1 -1
  140. package/dist/interface/assets/{useBackupRestore-BGvhSqJB.js → useBackupRestore-DfgufKp3.js} +1 -1
  141. package/dist/interface/assets/{useCameraOptions-ophs2V4p.js → useCameraOptions-B9yEPgGd.js} +1 -1
  142. package/dist/interface/assets/{useKeyboardInset-Cpz6Hs5c.js → useKeyboardInset-1sUlRSeV.js} +1 -1
  143. package/dist/interface/assets/{useLogsSocket-CB07yhv4.js → useLogsSocket-C2QUQqkZ.js} +1 -1
  144. package/dist/interface/assets/{useNavLayout-BYEejBpb.js → useNavLayout-Br4MtSjQ.js} +1 -1
  145. package/dist/interface/assets/{usePermissions-yWhjYMcr.js → usePermissions-B8pw9jk1.js} +1 -1
  146. package/dist/interface/assets/{usePluginUpdates-9rvsWfdJ.js → usePluginUpdates-Cx9PwENn.js} +1 -1
  147. package/dist/interface/assets/{usePushRegistration-b5owOzjH.js → usePushRegistration-CLEyagJM.js} +1 -1
  148. package/dist/interface/assets/{useServerRestart-yRXDWnH_.js → useServerRestart-BBp4cko_.js} +1 -1
  149. package/dist/interface/assets/{useStreamStatus-BHyWrAHu.js → useStreamStatus-BrPjpyzs.js} +1 -1
  150. package/dist/interface/assets/{useTabSwipe-Dr9HYP1J.js → useTabSwipe-B4edrv6o.js} +1 -1
  151. package/dist/interface/assets/{useUpdateChannel-IVj0XKlN.js → useUpdateChannel-DugwYo8J.js} +1 -1
  152. package/dist/interface/assets/{useUpdatesSocket-CuPHbSF7.js → useUpdatesSocket-CgCXGGVg.js} +1 -1
  153. package/dist/interface/assets/{useUserOptions-zIfrMDiG.js → useUserOptions-DTlKtp_u.js} +1 -1
  154. package/dist/interface/assets/vendor-cameraui-D0VXSxSF.js +2326 -0
  155. package/dist/interface/assets/{vendor-core-CQ2HVu0L.js → vendor-core-Ba81bBNM.js} +1 -1
  156. package/dist/interface/assets/{vendor-primevue-CeWNZxSE.js → vendor-primevue-LZEE4d1W.js} +1 -1
  157. package/dist/interface/ha/{404-B70KNhsW.js → 404-CkAIe5nc.js} +1 -1
  158. package/dist/interface/ha/{About-DLNqqctZ.js → About-C7HxP7hM.js} +3 -3
  159. package/dist/interface/ha/{Assistant-Duvvoz2B.js → Assistant-DJYxiCOY.js} +278 -278
  160. package/dist/interface/ha/{Automation-DZ8zvsvo.js → Automation-CfNHCeIm.js} +41 -41
  161. package/dist/interface/ha/{AutomationImport-DOCdim5O.js → AutomationImport-Dn3C1604.js} +6 -6
  162. package/dist/interface/ha/{AutomationStore-Bjoubp-m.js → AutomationStore-D63G9w2Y.js} +7 -7
  163. package/dist/interface/ha/{AutomationStoreDetail-H-RWNpwm.js → AutomationStoreDetail-HoUC8cSY.js} +6 -6
  164. package/dist/interface/ha/{Automations-GyofQfo7.js → Automations-BOlE1Evb.js} +43 -43
  165. package/dist/interface/ha/{Camera-Bo5nMQaU.js → Camera-6Vvo7nee.js} +225 -213
  166. package/dist/interface/ha/{CameraConsole-BmDQ3rcS.js → CameraConsole-DYSNDW4P.js} +3 -3
  167. package/dist/interface/ha/{Cameras-BfHoFjpC.js → Cameras-CxgwXUaG.js} +306 -306
  168. package/dist/interface/ha/{Camview-DVoIdM3o.js → Camview-DPjoUMSP.js} +227 -227
  169. package/dist/interface/ha/{Config-CC8tQiOy.js → Config-BzBFIWVF.js} +7 -7
  170. package/dist/interface/ha/{ConfigActionAssistant-hfsz38an.js → ConfigActionAssistant-BpHf4Pdi.js} +4 -4
  171. package/dist/interface/ha/{ConfigActionCameraControl-C0-wxlAS.js → ConfigActionCameraControl-CmbCTwZ8.js} +3 -3
  172. package/dist/interface/ha/{ConfigActionHttp-CM_3bIUq.js → ConfigActionHttp-BxN2KOA6.js} +2 -2
  173. package/dist/interface/ha/{ConfigActionImageInput-B5306Z_7.js → ConfigActionImageInput-CrXUZ-cM.js} +1 -1
  174. package/dist/interface/ha/{ConfigActionMqtt-DLiM83Kz.js → ConfigActionMqtt-DYq-6_S6.js} +4 -4
  175. package/dist/interface/ha/{ConfigActionNotification-36VBlfim.js → ConfigActionNotification-DPUSAVLI.js} +3 -3
  176. package/dist/interface/ha/{ConfigActionNotificationControl-DRjDvA1H.js → ConfigActionNotificationControl-h4zta4Db.js} +2 -2
  177. package/dist/interface/ha/{ConfigActionOutput-BkGHERoJ.js → ConfigActionOutput-Dwa0-7cq.js} +1 -1
  178. package/dist/interface/ha/{ConfigActionPlugin-Ds1_Pow7.js → ConfigActionPlugin-DXx1a-Hr.js} +5 -5
  179. package/dist/interface/ha/{ConfigActionSensor-22uKE0d0.js → ConfigActionSensor-CfLIHqS8.js} +5 -5
  180. package/dist/interface/ha/{ConfigActionSnapshot-uTTsTfo2.js → ConfigActionSnapshot-O0OBVq-R.js} +2 -2
  181. package/dist/interface/ha/{ConfigActionVariable-DNMJBiQV.js → ConfigActionVariable-CbaIxRRe.js} +1 -1
  182. package/dist/interface/ha/{ConfigConditionIfElse-BVzmIDKK.js → ConfigConditionIfElse-B7ax92bG.js} +3 -3
  183. package/dist/interface/ha/{ConfigConditionSensorState-Di7Ic1xI.js → ConfigConditionSensorState-B5XIrEGU.js} +4 -4
  184. package/dist/interface/ha/{ConfigConditionSwitch-D8CcTHJ1.js → ConfigConditionSwitch-DJSz6bI5.js} +5 -5
  185. package/dist/interface/ha/{ConfigSensorValueInput-DthsOthT.js → ConfigSensorValueInput-fE2SBn1B.js} +4 -4
  186. package/dist/interface/ha/{ConfigTriggerDetection-BDYanDEV.js → ConfigTriggerDetection-BuShu78G.js} +2 -2
  187. package/dist/interface/ha/{ConfigTriggerGeofence-Binp0lYx.js → ConfigTriggerGeofence-pBgXBkb6.js} +6 -6
  188. package/dist/interface/ha/{ConfigTriggerMqtt-BaPzSHbK.js → ConfigTriggerMqtt-Dyf_TLfU.js} +1 -1
  189. package/dist/interface/ha/{ConfigTriggerSensor-DiTaTZXm.js → ConfigTriggerSensor-C5YUm9ff.js} +1 -1
  190. package/dist/interface/ha/{ConfigTriggerSystem-CsdWiz-S.js → ConfigTriggerSystem-CylHWw4i.js} +2 -2
  191. package/dist/interface/ha/{ConfigTriggerWebhook-Ca0PsUmU.js → ConfigTriggerWebhook-ZlHsaLu4.js} +1 -1
  192. package/dist/interface/ha/{Console-0amlIoZR.js → Console-PNAQjW_1.js} +98 -98
  193. package/dist/interface/ha/{CuiAutomationRunsDialog-DNBuwkgL.js → CuiAutomationRunsDialog-D_q8K7QO.js} +2 -2
  194. package/dist/interface/ha/{CuiBottomSheet-CdXBYz4P.js → CuiBottomSheet-BbJG-998.js} +1 -1
  195. package/dist/interface/ha/{CuiCameraRecordings-D4ZB56nd.js → CuiCameraRecordings-BSI8Yn3v.js} +11 -11
  196. package/dist/interface/ha/{CuiCameraShares-YmzZusZR.js → CuiCameraShares-DKHZJT-z.js} +4 -4
  197. package/dist/interface/ha/{CuiCameraTable-DFzhCO3J.js → CuiCameraTable-BTdP1pEP.js} +2 -2
  198. package/dist/interface/ha/{CuiChartTable-BvfJbFNS.js → CuiChartTable-aFRfsewt.js} +4 -4
  199. package/dist/interface/ha/{CuiConsole-DtxyD6Sd.js → CuiConsole-BD9jYvrD.js} +4 -4
  200. package/dist/interface/ha/{CuiDataTable-CHvx6ALQ.js → CuiDataTable-C2lOduPV.js} +2 -2
  201. package/dist/interface/ha/{CuiPluginCard-B3vU57eD.js → CuiPluginCard-C-gpcLCH.js} +18 -18
  202. package/dist/interface/ha/{CuiPluginOAuthButton-DgOFfP5e.js → CuiPluginOAuthButton-B763Rz1n.js} +3 -3
  203. package/dist/interface/ha/{CuiPluginTrustBadge-udmtgGHt.js → CuiPluginTrustBadge-j5PKYI-V.js} +1 -1
  204. package/dist/interface/ha/{CuiQRCode-8yDZMC3o.js → CuiQRCode-D7WV4czh.js} +2 -2
  205. package/dist/interface/ha/{CuiSchema-0Hikg2mm.js → CuiSchema-BfsT0mAh.js} +96 -96
  206. package/dist/interface/ha/{CuiTopNavbarItem-B139fVxP.js → CuiTopNavbarItem-BwpXgGJ-.js} +1 -1
  207. package/dist/interface/ha/{Faces-YdAf9USr.js → Faces-C0e-m9EY.js} +48 -48
  208. package/dist/interface/ha/{FirstSteps-Dts6TJ6O.js → FirstSteps-DsDmM44G.js} +7 -7
  209. package/dist/interface/ha/{Floorplan-D6XXe8ni.js → Floorplan-Bei9kIhS.js} +206 -206
  210. package/dist/interface/ha/{Instances-DsIsonqp.js → Instances-BY5G1zFD.js} +66 -66
  211. package/dist/interface/ha/{Logs-Cyo3LC94.js → Logs-DDycObDv.js} +9 -9
  212. package/dist/interface/ha/{Menu-yh_sI9d9.js → Menu-9r_oFG_-.js} +3 -3
  213. package/dist/interface/ha/{Metrics-VehQmsmN.js → Metrics-BMTIXqn6.js} +283 -279
  214. package/dist/interface/ha/{OAuthDeviceFlow-CXp9NvbY.js → OAuthDeviceFlow-Dee5fynX.js} +3 -3
  215. package/dist/interface/ha/{Plugin-BqvlXx43.js → Plugin-B5o4pLyu.js} +41 -41
  216. package/dist/interface/ha/{PluginConsole-Dx84BNoO.js → PluginConsole-REtxP1Wi.js} +4 -4
  217. package/dist/interface/ha/{PluginDetail-DUpDS2nD.js → PluginDetail-BHrKifvP.js} +5 -5
  218. package/dist/interface/ha/{PluginSearch-Cvh0P9VB.js → PluginSearch-oNHMMeJD.js} +124 -124
  219. package/dist/interface/ha/{PluginUpdateProgress-CfyI2Qdp.js → PluginUpdateProgress-CqllA4eR.js} +3 -3
  220. package/dist/interface/ha/{Plugins-DXreIUwr.js → Plugins-B6y7z5yD.js} +173 -173
  221. package/dist/interface/ha/{Recordings-Cb8ifRcB.js → Recordings-CyhOVNoM.js} +168 -191
  222. package/dist/interface/ha/{SensorEdit-CsNXxcdj.js → SensorEdit-CnUU2PEv.js} +3 -3
  223. package/dist/interface/ha/{SensorHistory-DToDalOm.js → SensorHistory-z5hDuybW.js} +2 -2
  224. package/dist/interface/ha/{Sensors-B6giaowJ.js → Sensors-wpoB-X4r.js} +372 -372
  225. package/dist/interface/ha/{Settings-CVed7MM_.js → Settings-C6wTksxb.js} +3 -3
  226. package/dist/interface/ha/{SettingsAccount-CvvsLPoT.js → SettingsAccount-DByg5uzj.js} +178 -178
  227. package/dist/interface/ha/{SettingsAppearance-BDJeNGTd.js → SettingsAppearance-QgPo4M8O.js} +4 -4
  228. package/dist/interface/ha/{SettingsAssistant-B168p5HB.js → SettingsAssistant-Bg4BhUgb.js} +78 -78
  229. package/dist/interface/ha/{SettingsBackup-Bz_9xJ61.js → SettingsBackup-BgtZSRub.js} +39 -39
  230. package/dist/interface/ha/{SettingsList-B42rajJc.js → SettingsList-DB3j7buh.js} +1 -1
  231. package/dist/interface/ha/{SettingsMqtt-B5Qy6bxD.js → SettingsMqtt-DVx0z8vf.js} +14 -14
  232. package/dist/interface/ha/SettingsNotifications-osO2kMMO.js +529 -0
  233. package/dist/interface/ha/{SettingsRecordings-CkJGOiyQ.js → SettingsRecordings-BFEp160g.js} +7 -7
  234. package/dist/interface/ha/{SettingsRemote-Cc-qt3si.js → SettingsRemote-DQW4FhFn.js} +403 -403
  235. package/dist/interface/ha/{SettingsSystem-Cco2XXsS.js → SettingsSystem-Cs1MHOTi.js} +9 -9
  236. package/dist/interface/ha/{SettingsUsers-BDh-3saR.js → SettingsUsers-BtbuHlRZ.js} +23 -23
  237. package/dist/interface/ha/{Terminal-D2U-kFPW.js → Terminal-BuXCoMle.js} +4 -4
  238. package/dist/interface/ha/Training-CnsWyeaJ.js +1505 -0
  239. package/dist/interface/ha/{Updates-DGHNcvO9.js → Updates-BxU1Jpru.js} +5 -5
  240. package/dist/interface/ha/{VariableInput-Bujz1T1I.js → VariableInput-DgENnHvk.js} +1 -1
  241. package/dist/interface/ha/{VersionsHandler-CXvbeKbl.js → VersionsHandler-DQTSSqti.js} +10 -10
  242. package/dist/interface/ha/{VirtualSensorCreate-DOYONbgu.js → VirtualSensorCreate-Bsr6zTQp.js} +2 -2
  243. package/dist/interface/ha/{Workers-tQbC3WS6.js → Workers-0jZDuLbP.js} +14 -14
  244. package/dist/interface/ha/{api-DfJZj7ht.js → api-B8xb-N_g.js} +1 -1
  245. package/dist/interface/ha/{api-BI6_Fcag.js → api-VnpXqKYj.js} +7769 -7443
  246. package/dist/interface/ha/{assistant-BqSg4N8v.js → assistant-DDwonneA.js} +25 -25
  247. package/dist/interface/ha/{auth-BFoSqfzS.js → auth-CXX7ago-.js} +22 -22
  248. package/dist/interface/ha/{automationBlueprint-Q0yt2MdH.js → automationBlueprint-BUkXOKb1.js} +3 -3
  249. package/dist/interface/ha/cameraui-cards.js +1 -1
  250. package/dist/interface/ha/{cards-BW9I5B5Z.js → cards-CMel6uVq.js} +639 -637
  251. package/dist/interface/ha/{config-CeNHEP9A.js → config-9vwosYC8.js} +9 -9
  252. package/dist/interface/ha/{dist-BV3OfApt.js → dist-jxJIsKjm.js} +306 -282
  253. package/dist/interface/ha/{mqtt-BkYa2CXH.js → mqtt-Fm_GzbBi.js} +7 -7
  254. package/dist/interface/ha/{notifications-E3WSCGpc.js → notifications-CwSeoLx0.js} +12 -12
  255. package/dist/interface/ha/{pinia-DoDLbPZ3.js → pinia-D2fpp6nV.js} +150 -143
  256. package/dist/interface/ha/{plugins-2jjU7TfW.js → plugins-CgqO91Hg.js} +30 -30
  257. package/dist/interface/ha/{rooms-BkEw1ev-.js → rooms-DGnhPCGr.js} +1 -1
  258. package/dist/interface/ha/{server-CuK4o2fS.js → server-BqNJbXKJ.js} +15 -15
  259. package/dist/interface/ha/{types-BRHWeX0a.js → types-Ca-1kOA9.js} +18 -18
  260. package/dist/interface/ha/{ungrouped-BDwep3kg.js → ungrouped-B1RIFH36.js} +192 -192
  261. package/dist/interface/ha/{updates-R4xTxour.js → updates-Dn9WR43I.js} +26 -26
  262. package/dist/interface/ha/{useAppVersion-uaFjqUpx.js → useAppVersion-FMZfQhEd.js} +1 -1
  263. package/dist/interface/ha/{useLogsSocket-BZq9GXfy.js → useLogsSocket-Ch8C8inE.js} +1 -1
  264. package/dist/interface/ha/{useNavLayout-BJdDE__R.js → useNavLayout-DPjjtXVR.js} +2 -2
  265. package/dist/interface/ha/{useServerRestart-DDCKnE6c.js → useServerRestart-DoozgL8o.js} +1 -1
  266. package/dist/interface/ha/{useTabSwipe-CEH6ltIZ.js → useTabSwipe-CxXAmZNc.js} +1 -1
  267. package/dist/interface/ha/{useUpdateChannel-CHt1il2V.js → useUpdateChannel-CBwS4cI2.js} +2 -2
  268. package/dist/interface/ha/{useUpdatesSocket-BnVaNioY.js → useUpdatesSocket-GrlBqyU4.js} +1 -1
  269. package/dist/interface/ha/{useUserOptions-C7cQ1P3Q.js → useUserOptions-54hnf6hX.js} +1 -1
  270. package/dist/interface/index.html +31 -31
  271. package/dist/interface/sw.js +1 -1
  272. package/dist/server/package.json +5 -5
  273. package/dist/server/src/api/database/record-schemas.d.ts +10 -10
  274. package/dist/server/src/api/schemas/cameras.schema.d.ts +22 -22
  275. package/dist/server/src/api/schemas/users.schema.d.ts +70 -70
  276. package/dist/server/src/api/websocket/nsp/metrics.d.ts +0 -1
  277. package/dist/server/src/api/websocket/nsp/metrics.js +2 -48
  278. package/dist/server/src/api/websocket/nsp/metrics.js.map +1 -1
  279. package/dist/server/src/api/websocket/nsp/worker-perf.d.ts +3 -0
  280. package/dist/server/src/api/websocket/nsp/worker-perf.js +58 -0
  281. package/dist/server/src/api/websocket/nsp/worker-perf.js.map +1 -0
  282. package/dist/server/src/api/websocket/types.d.ts +1 -0
  283. package/dist/server/src/assistant/search.d.ts +11 -11
  284. package/dist/server/src/camera/decoder/detection-coordinator.d.ts +6 -0
  285. package/dist/server/src/camera/decoder/detection-coordinator.js +117 -20
  286. package/dist/server/src/camera/decoder/detection-coordinator.js.map +1 -1
  287. package/dist/server/src/camera/decoder/detection-pipeline.d.ts +3 -1
  288. package/dist/server/src/camera/decoder/detection-pipeline.js +4 -0
  289. package/dist/server/src/camera/decoder/detection-pipeline.js.map +1 -1
  290. package/dist/server/src/camera/decoder/event-manager.d.ts +1 -0
  291. package/dist/server/src/camera/decoder/event-manager.js +5 -2
  292. package/dist/server/src/camera/decoder/event-manager.js.map +1 -1
  293. package/dist/server/src/camera/decoder/event-thumbnailer.d.ts +4 -0
  294. package/dist/server/src/camera/decoder/event-thumbnailer.js +3 -0
  295. package/dist/server/src/camera/decoder/event-thumbnailer.js.map +1 -1
  296. package/dist/server/src/camera/decoder/event-trace.d.ts +2 -0
  297. package/dist/server/src/camera/decoder/event-trace.js +9 -5
  298. package/dist/server/src/camera/decoder/event-trace.js.map +1 -1
  299. package/dist/server/src/camera/decoder/perf-tracker.d.ts +5 -1
  300. package/dist/server/src/camera/decoder/perf-tracker.js +10 -2
  301. package/dist/server/src/camera/decoder/perf-tracker.js.map +1 -1
  302. package/dist/server/src/camera/decoder/types.d.ts +5 -1
  303. package/dist/server/src/camera/decoder/types.js.map +1 -1
  304. package/dist/server/src/rpc/interfaces/detection.d.ts +1 -0
  305. package/dist/server/src/sensors/registry.d.ts +1 -0
  306. package/dist/server/src/sensors/registry.js +9 -3
  307. package/dist/server/src/sensors/registry.js.map +1 -1
  308. package/dist/server/src/sensors/sensor.js +2 -3
  309. package/dist/server/src/sensors/sensor.js.map +1 -1
  310. package/dist/server/src/sensors/types.d.ts +2 -1
  311. package/dist/server/src/sensors/types.js +7 -1
  312. package/dist/server/src/sensors/types.js.map +1 -1
  313. package/package.json +5 -5
  314. package/dist/interface/assets/Camera-B5l_gv7t.js +0 -2
  315. package/dist/interface/assets/Camera-gYRy6ECP.css +0 -1
  316. package/dist/interface/assets/CuiBottomSheet-C37blNu-.js +0 -1
  317. package/dist/interface/assets/CuiCameraPipCard-TVAf5ZYQ.js +0 -1
  318. package/dist/interface/assets/CuiCameraRecordings-C26rX8dh.css +0 -1
  319. package/dist/interface/assets/CuiCameraRecordings-IHg1dNf4.js +0 -1
  320. package/dist/interface/assets/CuiCameraTable-xDZz7Wpe.js +0 -1
  321. package/dist/interface/assets/Faces-Dqi30qs9.js +0 -1
  322. package/dist/interface/assets/Metrics-DX59XXDc.css +0 -1
  323. package/dist/interface/assets/PluginSchema-uVKXzfo6.js +0 -1
  324. package/dist/interface/assets/PluginSearch-C4MvWyLb.js +0 -1
  325. package/dist/interface/assets/Recordings-DrcOsRLn.js +0 -1
  326. package/dist/interface/assets/SettingsAccount-CkvScQmF.js +0 -1
  327. package/dist/interface/assets/SettingsAppearance-ZHqNXXIL.js +0 -1
  328. package/dist/interface/assets/Training-DfOqDTHJ.js +0 -1
  329. package/dist/interface/assets/api-B6TtU9Ew.css +0 -2
  330. package/dist/interface/assets/api-DPgKdIQZ.js +0 -4
  331. package/dist/interface/assets/cloudHandoff-Cxljjl7N.js +0 -1
  332. package/dist/interface/assets/main-BrNGfemk.js +0 -3
  333. package/dist/interface/assets/ungrouped-BQzKp2PT.js +0 -1
  334. package/dist/interface/assets/vendor-cameraui-Dhg7MEnt.js +0 -2326
  335. package/dist/interface/ha/SettingsNotifications-C59UxYic.js +0 -529
  336. package/dist/interface/ha/Training-DWcaCI-3.js +0 -1499
@@ -3,11 +3,11 @@ import { B as t, G as n, H as r, Jt as i, M as a, N as o, Wt as s, Y as c, _t as
3
3
  import { t as E } from "./tooltip-X5MY9FoG.js";
4
4
  import { t as ae } from "./message-BExXUXHN.js";
5
5
  import { t as D } from "./chevron-down-CN3LNAsG.js";
6
- import { At as oe, Br as se, En as ce, Ft as le, It as ue, J as de, Lr as fe, Lt as O, Mt as pe, Nt as me, Or as he, Pt as ge, Rt as k, Xi as A, br as _e, cn as j, ht as ve, ir as ye, jt as be, kr as xe, kt as Se, mn as Ce, mt as we, o as M, p as N, qt as Te, tr as P, ui as F, ur as Ee, yi as I, yr as De } from "./api-BI6_Fcag.js";
6
+ import { At as oe, Br as se, En as ce, Ft as le, It as ue, J as de, Lr as fe, Lt as O, Mt as pe, Nt as me, Or as he, Pt as k, Rt as A, Zi as j, bi as M, br as ge, cn as _e, ht as ve, ir as ye, jt as be, kr as xe, kt as Se, mn as Ce, mt as N, o as we, p as Te, qt as P, tr as F, ui as Ee, ur as I, yr as De } from "./api-VnpXqKYj.js";
7
7
  import { n as Oe } from "./vue-i18n-BBObX4QY.js";
8
8
  import { o as L } from "./dist-BTp4AyuI.js";
9
9
  import { t as ke } from "./button-DJDZxmKj.js";
10
- import { v as Ae } from "./dist-BV3OfApt.js";
10
+ import { v as Ae } from "./dist-jxJIsKjm.js";
11
11
  import { t as je } from "./inputtext-vdcrNX6K.js";
12
12
  import { t as Me } from "./close-C_ajB9j7.js";
13
13
  import { t as Ne } from "./divider-Cf59Ua0f.js";
@@ -15,16 +15,16 @@ import { t as R } from "./select-CaVzuLaS.js";
15
15
  import { i as Pe, n as Fe, r as Ie, t as Le } from "./accordion-X9Wa7KVq.js";
16
16
  import { t as Re } from "./speeddial-CpW9sIFY.js";
17
17
  import { t as ze } from "./textarea-DrKQ6YMZ.js";
18
- import { t as Be } from "./CuiBottomSheet-CdXBYz4P.js";
18
+ import { t as Be } from "./CuiBottomSheet-BbJG-998.js";
19
19
  import { t as Ve } from "./cctv-DBlnZEJ3.js";
20
- import { u as He } from "./cards-BW9I5B5Z.js";
20
+ import { u as He } from "./cards-CMel6uVq.js";
21
21
  import { t as Ue } from "./restore-DMczh46P.js";
22
22
  import { t as We } from "./pencil-outline-3AYc7WXi.js";
23
23
  import { t as Ge } from "./trash-can-outline-XdMf3dMc.js";
24
24
  import { t as Ke } from "./back-filled-B-jI6Dqb.js";
25
25
  import { t as qe } from "./chevron-up-D5-4qnos.js";
26
26
  import { a as Je, d as Ye, f as Xe, l as z, p as Ze, t as B, u as Qe } from "./vue-flow-background-ETLnaEUH.js";
27
- import { n as $e } from "./rooms-BkEw1ev-.js";
27
+ import { n as $e } from "./rooms-DGnhPCGr.js";
28
28
  import { t as V } from "./minus-C6Qh7zWS.js";
29
29
  import { t as H } from "./eye-off-outline-cbzzWTdq.js";
30
30
  //#region ~icons/mdi/open-in-new
@@ -426,7 +426,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
426
426
  });
427
427
  }
428
428
  return (t, n) => {
429
- let o = Ve, h = at, w = nt, me = Me, he = ke, ge = Ie, k = R, A = ae, _e = je, j = ze, ve = Pe, ye = Fe, be = P, xe = Le;
429
+ let o = Ve, h = at, w = nt, me = Me, he = ke, k = Ie, A = R, j = ae, M = je, ge = ze, _e = Pe, ve = Fe, ye = F, be = Le;
430
430
  return r(), _("div", bt, [
431
431
  b("div", Z, [
432
432
  b("div", xt, [m(f) ? (r(), u(o, {
@@ -454,24 +454,24 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
454
454
  _: 1
455
455
  })
456
456
  ]),
457
- b("div", Tt, [T(xe, {
457
+ b("div", Tt, [T(be, {
458
458
  multiple: "",
459
459
  value: m(c),
460
460
  class: s(e.fluid ? "w-full" : "w-[300px]")
461
461
  }, {
462
462
  default: g(() => [
463
- m(l) ? (r(), u(ye, {
463
+ m(l) ? (r(), u(ve, {
464
464
  key: 0,
465
465
  value: "general"
466
466
  }, {
467
- default: g(() => [T(ge, { class: "px-4 rounded-none!" }, {
467
+ default: g(() => [T(k, { class: "px-4 rounded-none!" }, {
468
468
  default: g(() => [b("span", Et, i(t.$t("views.floorplan.section_room")), 1)]),
469
469
  _: 1
470
- }), T(ve, { pt: { content: { class: e.fluid ? "px-4 w-full" : "px-4 w-[300px]" } } }, {
470
+ }), T(_e, { pt: { content: { class: e.fluid ? "px-4 w-full" : "px-4 w-[300px]" } } }, {
471
471
  default: g(() => [b("div", Dt, [
472
472
  m(x).length > 1 ? (r(), _("div", Ot, [
473
473
  b("label", kt, i(t.$t("views.floorplan.belongs_to")), 1),
474
- T(k, {
474
+ T(A, {
475
475
  "model-value": m(l).roomId,
476
476
  options: m(x),
477
477
  "option-label": "label",
@@ -483,7 +483,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
483
483
  "options",
484
484
  "disabled"
485
485
  ]),
486
- T(A, {
486
+ T(j, {
487
487
  severity: "secondary",
488
488
  variant: "simple",
489
489
  size: "small",
@@ -495,12 +495,12 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
495
495
  ])) : d("", !0),
496
496
  b("div", At, [
497
497
  b("label", jt, i(t.$t("views.floorplan.room_name")), 1),
498
- T(_e, {
498
+ T(M, {
499
499
  "model-value": m(l).name,
500
500
  disabled: e.readOnly,
501
501
  "onUpdate:modelValue": n[2] ||= (e) => fe({ name: e ?? "" })
502
502
  }, null, 8, ["model-value", "disabled"]),
503
- m(te) > 1 ? (r(), u(A, {
503
+ m(te) > 1 ? (r(), u(j, {
504
504
  key: 0,
505
505
  severity: "secondary",
506
506
  variant: "simple",
@@ -511,7 +511,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
511
511
  _: 1
512
512
  })) : d("", !0)
513
513
  ]),
514
- b("div", Mt, [b("label", Nt, i(t.$t("views.floorplan.level")), 1), T(k, {
514
+ b("div", Mt, [b("label", Nt, i(t.$t("views.floorplan.level")), 1), T(A, {
515
515
  "model-value": m(l).levelId,
516
516
  options: m(p),
517
517
  "option-label": "label",
@@ -525,7 +525,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
525
525
  ])]),
526
526
  b("div", Pt, [
527
527
  b("label", Ft, i(t.$t("views.floorplan.room_kind")), 1),
528
- T(k, {
528
+ T(A, {
529
529
  "model-value": m(ee),
530
530
  options: m(v),
531
531
  "option-label": "label",
@@ -537,7 +537,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
537
537
  "options",
538
538
  "disabled"
539
539
  ]),
540
- T(A, {
540
+ T(j, {
541
541
  severity: "secondary",
542
542
  variant: "simple",
543
543
  size: "small",
@@ -549,7 +549,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
549
549
  ]),
550
550
  b("div", It, [
551
551
  b("label", Lt, i(t.$t("views.floorplan.note")), 1),
552
- T(j, {
552
+ T(ge, {
553
553
  "model-value": m(l).note,
554
554
  disabled: e.readOnly,
555
555
  maxlength: m(240),
@@ -561,7 +561,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
561
561
  "disabled",
562
562
  "maxlength"
563
563
  ]),
564
- T(A, {
564
+ T(j, {
565
565
  severity: "secondary",
566
566
  variant: "simple",
567
567
  size: "small",
@@ -577,18 +577,18 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
577
577
  }, 8, ["pt"])]),
578
578
  _: 1
579
579
  })) : d("", !0),
580
- m(E) ? (r(), u(ye, {
580
+ m(E) ? (r(), u(ve, {
581
581
  key: 1,
582
582
  value: "general"
583
583
  }, {
584
- default: g(() => [T(ge, { class: "px-4 rounded-none!" }, {
584
+ default: g(() => [T(k, { class: "px-4 rounded-none!" }, {
585
585
  default: g(() => [b("span", Bt, i(t.$t("views.floorplan.section_connection")), 1)]),
586
586
  _: 1
587
- }), T(ve, { pt: { content: { class: e.fluid ? "px-4 w-full" : "px-4 w-[300px]" } } }, {
587
+ }), T(_e, { pt: { content: { class: e.fluid ? "px-4 w-full" : "px-4 w-[300px]" } } }, {
588
588
  default: g(() => [
589
589
  b("div", Vt, [
590
590
  b("label", Ht, i(t.$t("views.floorplan.connection_type")), 1),
591
- m(D) ? (r(), _("span", Ut, i(t.$t("views.floorplan.connection_stairs")), 1)) : (r(), u(k, {
591
+ m(D) ? (r(), _("span", Ut, i(t.$t("views.floorplan.connection_stairs")), 1)) : (r(), u(A, {
592
592
  key: 0,
593
593
  "model-value": m(E).type,
594
594
  options: m(oe),
@@ -604,7 +604,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
604
604
  "options",
605
605
  "disabled"
606
606
  ])),
607
- T(A, {
607
+ T(j, {
608
608
  severity: "secondary",
609
609
  variant: "simple",
610
610
  size: "small",
@@ -616,7 +616,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
616
616
  ]),
617
617
  m(D) ? d("", !0) : (r(), _("div", Wt, [
618
618
  b("label", Gt, i(t.$t("views.floorplan.connection_width", { value: m(J)(m(E).width).toFixed(2) })), 1),
619
- T(be, {
619
+ T(ye, {
620
620
  "model-value": m(E).width,
621
621
  disabled: e.readOnly,
622
622
  min: m(q).min,
@@ -632,7 +632,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
632
632
  "min",
633
633
  "max"
634
634
  ]),
635
- T(A, {
635
+ T(j, {
636
636
  severity: "secondary",
637
637
  variant: "simple",
638
638
  size: "small",
@@ -644,7 +644,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
644
644
  ])),
645
645
  b("div", Kt, [
646
646
  b("label", qt, i(t.$t("views.floorplan.note")), 1),
647
- T(j, {
647
+ T(ge, {
648
648
  "model-value": m(E).note,
649
649
  disabled: e.readOnly,
650
650
  maxlength: m(240),
@@ -659,7 +659,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
659
659
  "disabled",
660
660
  "maxlength"
661
661
  ]),
662
- T(A, {
662
+ T(j, {
663
663
  severity: "secondary",
664
664
  variant: "simple",
665
665
  size: "small",
@@ -674,16 +674,16 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
674
674
  }, 8, ["pt"])]),
675
675
  _: 1
676
676
  })) : d("", !0),
677
- m(C) ? (r(), u(ye, {
677
+ m(C) ? (r(), u(ve, {
678
678
  key: 2,
679
679
  value: "general"
680
680
  }, {
681
- default: g(() => [T(ge, { class: "px-4 rounded-none!" }, {
681
+ default: g(() => [T(k, { class: "px-4 rounded-none!" }, {
682
682
  default: g(() => [b("span", Jt, i(t.$t("views.floorplan.section_sensor")), 1)]),
683
683
  _: 1
684
- }), T(ve, { pt: { content: { class: e.fluid ? "px-4 w-full" : "px-4 w-[300px]" } } }, {
684
+ }), T(_e, { pt: { content: { class: e.fluid ? "px-4 w-full" : "px-4 w-[300px]" } } }, {
685
685
  default: g(() => [b("div", Yt, [
686
- b("div", Xt, [b("label", Zt, i(t.$t("views.floorplan.assigned_room")), 1), T(k, {
686
+ b("div", Xt, [b("label", Zt, i(t.$t("views.floorplan.assigned_room")), 1), T(A, {
687
687
  "model-value": m(C).roomId,
688
688
  options: m(re),
689
689
  disabled: e.readOnly,
@@ -697,7 +697,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
697
697
  ])]),
698
698
  m(ie).length ? (r(), _("div", Qt, [
699
699
  b("label", $t, i(t.$t("views.floorplan.sensor_passage")), 1),
700
- T(k, {
700
+ T(A, {
701
701
  "model-value": m(C).connectionId,
702
702
  options: m(ie),
703
703
  disabled: e.readOnly,
@@ -710,7 +710,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
710
710
  "options",
711
711
  "disabled"
712
712
  ]),
713
- T(A, {
713
+ T(j, {
714
714
  severity: "secondary",
715
715
  variant: "simple",
716
716
  size: "small",
@@ -722,7 +722,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
722
722
  ])) : d("", !0),
723
723
  b("div", en, [
724
724
  b("label", $, i(t.$t("views.floorplan.note")), 1),
725
- T(j, {
725
+ T(ge, {
726
726
  "model-value": m(C).note,
727
727
  disabled: e.readOnly,
728
728
  maxlength: m(240),
@@ -734,7 +734,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
734
734
  "disabled",
735
735
  "maxlength"
736
736
  ]),
737
- T(A, {
737
+ T(j, {
738
738
  severity: "secondary",
739
739
  variant: "simple",
740
740
  size: "small",
@@ -749,14 +749,14 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
749
749
  }, 8, ["pt"])]),
750
750
  _: 1
751
751
  })) : d("", !0),
752
- m(f) ? (r(), _(y, { key: 3 }, [T(ye, { value: "general" }, {
753
- default: g(() => [T(ge, { class: "px-4 rounded-none!" }, {
752
+ m(f) ? (r(), _(y, { key: 3 }, [T(ve, { value: "general" }, {
753
+ default: g(() => [T(k, { class: "px-4 rounded-none!" }, {
754
754
  default: g(() => [b("span", tn, i(t.$t("views.floorplan.section_camera")), 1)]),
755
755
  _: 1
756
- }), T(ve, { pt: { content: { class: e.fluid ? "px-4 w-full" : "px-4 w-[300px]" } } }, {
756
+ }), T(_e, { pt: { content: { class: e.fluid ? "px-4 w-full" : "px-4 w-[300px]" } } }, {
757
757
  default: g(() => [b("div", nn, [b("div", rn, [
758
758
  b("label", an, i(t.$t("views.floorplan.assigned_room")), 1),
759
- T(k, {
759
+ T(A, {
760
760
  "model-value": m(f).roomId,
761
761
  options: m(ne),
762
762
  disabled: e.readOnly,
@@ -768,7 +768,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
768
768
  "options",
769
769
  "disabled"
770
770
  ]),
771
- T(A, {
771
+ T(j, {
772
772
  severity: "secondary",
773
773
  variant: "simple",
774
774
  size: "small",
@@ -779,7 +779,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
779
779
  })
780
780
  ]), b("div", on, [
781
781
  b("label", sn, i(t.$t("views.floorplan.note")), 1),
782
- T(j, {
782
+ T(ge, {
783
783
  "model-value": m(f).note,
784
784
  disabled: e.readOnly,
785
785
  maxlength: m(240),
@@ -791,7 +791,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
791
791
  "disabled",
792
792
  "maxlength"
793
793
  ]),
794
- T(A, {
794
+ T(j, {
795
795
  severity: "secondary",
796
796
  variant: "simple",
797
797
  size: "small",
@@ -804,27 +804,27 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
804
804
  _: 1
805
805
  }, 8, ["pt"])]),
806
806
  _: 1
807
- }), T(ye, { value: "view" }, {
808
- default: g(() => [T(ge, { class: "px-4 rounded-none!" }, {
807
+ }), T(ve, { value: "view" }, {
808
+ default: g(() => [T(k, { class: "px-4 rounded-none!" }, {
809
809
  default: g(() => [b("span", cn, i(t.$t("views.floorplan.section_view")), 1)]),
810
810
  _: 1
811
- }), T(ve, { pt: { content: { class: e.fluid ? "px-4 w-full" : "px-4 w-[300px]" } } }, {
811
+ }), T(_e, { pt: { content: { class: e.fluid ? "px-4 w-full" : "px-4 w-[300px]" } } }, {
812
812
  default: g(() => [b("div", ln, [
813
- b("div", un, [b("label", dn, i(t.$t("views.floorplan.direction", { value: m(ce) })), 1), T(be, {
813
+ b("div", un, [b("label", dn, i(t.$t("views.floorplan.direction", { value: m(ce) })), 1), T(ye, {
814
814
  "model-value": m(ce),
815
815
  disabled: e.readOnly,
816
816
  min: 0,
817
817
  max: 359,
818
818
  "onUpdate:modelValue": n[14] ||= (e) => O({ rotation: Number(e) })
819
819
  }, null, 8, ["model-value", "disabled"])]),
820
- b("div", fn, [b("label", pn, i(t.$t("views.floorplan.fov", { value: m(f).fov })), 1), T(be, {
820
+ b("div", fn, [b("label", pn, i(t.$t("views.floorplan.fov", { value: m(f).fov })), 1), T(ye, {
821
821
  "model-value": m(f).fov,
822
822
  disabled: e.readOnly,
823
823
  min: 30,
824
824
  max: 180,
825
825
  "onUpdate:modelValue": n[15] ||= (e) => O({ fov: Number(e) })
826
826
  }, null, 8, ["model-value", "disabled"])]),
827
- b("div", mn, [b("label", hn, i(t.$t("views.floorplan.range", { value: m(J)(m(f).range).toFixed(1) })), 1), T(be, {
827
+ b("div", mn, [b("label", hn, i(t.$t("views.floorplan.range", { value: m(J)(m(f).range).toFixed(1) })), 1), T(ye, {
828
828
  disabled: e.readOnly,
829
829
  "model-value": m(f).range,
830
830
  min: m(K).min,
@@ -1075,9 +1075,9 @@ var Cn = l({
1075
1075
  "classifier",
1076
1076
  "objectAssist",
1077
1077
  "clip"
1078
- ]), O = null, he = !1, k = null, { viewport: A, zoomIn: _e, zoomOut: ve, fitBounds: ye } = z(), { sensors: be } = Ae(), xe = h(() => p.sensors.filter((e) => e.levelId === p.levelId)), Se = h(() => {
1078
+ ]), O = null, he = !1, A = null, { viewport: j, zoomIn: M, zoomOut: ge, fitBounds: ve } = z(), { sensors: ye } = Ae(), be = h(() => p.sensors.filter((e) => e.levelId === p.levelId)), xe = h(() => {
1079
1079
  let e = /* @__PURE__ */ new Map();
1080
- for (let t of be.value) {
1080
+ for (let t of ye.value) {
1081
1081
  let n = String(t.type), r = de.has(n), i = fe.has(n);
1082
1082
  if (!r && !i || t.getProperty("detected") !== !0) continue;
1083
1083
  let a = Ge(t, n);
@@ -1090,7 +1090,7 @@ var Cn = l({
1090
1090
  }
1091
1091
  }
1092
1092
  return e;
1093
- }), we = h(() => {
1093
+ }), Se = h(() => {
1094
1094
  let e = F.value.find((e) => e.id === le.value);
1095
1095
  if (!e) return null;
1096
1096
  let t = `${ut(e.width, 1)} x ${ut(e.height, 1)}`;
@@ -1098,11 +1098,11 @@ var Cn = l({
1098
1098
  text: t,
1099
1099
  width: it(t),
1100
1100
  x: e.x + e.width / 2,
1101
- y: e.y + e.height + 10 / M.value
1101
+ y: e.y + e.height + 10 / N.value
1102
1102
  };
1103
- }), M = h(() => A.value.zoom), N = h(() => ({
1104
- x: A.value.x,
1105
- y: A.value.y
1103
+ }), N = h(() => j.value.zoom), we = h(() => ({
1104
+ x: j.value.x,
1105
+ y: j.value.y
1106
1106
  })), Te = h(() => p.north ?? 0), P = h(() => p.readOnly === !0 || C.value), F = h(() => p.rooms.filter((e) => e.levelId === p.levelId)), Ee = h(() => p.cameras.filter((e) => e.levelId === p.levelId)), I = h(() => {
1107
1107
  let e = 4e3, t = [0], n = [0];
1108
1108
  for (let e of F.value) t.push(e.x, e.x + e.width), n.push(e.y, e.y + e.height);
@@ -1124,7 +1124,7 @@ var Cn = l({
1124
1124
  draggable: !1,
1125
1125
  selectable: !1,
1126
1126
  data: {}
1127
- }], Oe = h(() => p.selection?.kind === "room" ? F.value.find((e) => e.id === p.selection?.id) : void 0), L = h(() => p.selection?.kind === "camera" ? Ee.value.find((e) => e.id === p.selection?.id) : void 0), ke = h(() => M.value >= .45), je = h(() => {
1127
+ }], Oe = h(() => p.selection?.kind === "room" ? F.value.find((e) => e.id === p.selection?.id) : void 0), L = h(() => p.selection?.kind === "camera" ? Ee.value.find((e) => e.id === p.selection?.id) : void 0), ke = h(() => N.value >= .45), je = h(() => {
1128
1128
  let e = [
1129
1129
  .5,
1130
1130
  1,
@@ -1133,10 +1133,10 @@ var Cn = l({
1133
1133
  10,
1134
1134
  20,
1135
1135
  50
1136
- ], t = e.filter((e) => e * 100 * M.value <= 130).pop() ?? e[0];
1136
+ ], t = e.filter((e) => e * 100 * N.value <= 130).pop() ?? e[0];
1137
1137
  return {
1138
1138
  meters: t,
1139
- width: Math.round(t * 100 * M.value),
1139
+ width: Math.round(t * 100 * N.value),
1140
1140
  label: `${t} m`
1141
1141
  };
1142
1142
  }), Me = h(() => p.connections.map((e) => ({
@@ -1162,7 +1162,7 @@ var Cn = l({
1162
1162
  }), Fe = h(() => [...R.value].map(([e, t]) => ({
1163
1163
  roomId: e,
1164
1164
  parts: t,
1165
- ...ht(t, 8 / M.value, Pe.value.get(e) ?? []),
1165
+ ...ht(t, 8 / N.value, Pe.value.get(e) ?? []),
1166
1166
  outdoor: t.every((e) => e.outdoor),
1167
1167
  publicSpace: t.every((e) => e.publicSpace),
1168
1168
  selected: t.some((e) => J("room", e.id))
@@ -1185,7 +1185,7 @@ var Cn = l({
1185
1185
  r.set(i, [...r.get(i) ?? [], ...n]);
1186
1186
  }
1187
1187
  let i = /* @__PURE__ */ new Map();
1188
- for (let [e, t] of r) i.set(e, ht(t, 8 / M.value, []).fill);
1188
+ for (let [e, t] of r) i.set(e, ht(t, 8 / N.value, []).fill);
1189
1189
  return [...R.value.keys()].map((e) => ({
1190
1190
  roomId: e,
1191
1191
  path: i.get(t(e)) ?? ""
@@ -1243,15 +1243,15 @@ var Cn = l({
1243
1243
  }), Be = h(() => {
1244
1244
  let e = [], t = /* @__PURE__ */ new Map(), n = (n, r, i, a) => {
1245
1245
  let o = F.value.find((e) => e.id === r) ?? F.value.find((e) => e.roomId === n);
1246
- if (!o || o.width * M.value < 80 || o.height * M.value < 60) return;
1246
+ if (!o || o.width * N.value < 80 || o.height * N.value < 60) return;
1247
1247
  let s = t.get(o.id) ?? 0;
1248
1248
  t.set(o.id, s + 1), e.push({
1249
1249
  key: i ?? `stairs-${n}`,
1250
1250
  roomId: n,
1251
1251
  connectionId: i,
1252
1252
  direction: a,
1253
- x: o.x + o.width - (16 + s * 30) / M.value,
1254
- y: o.y + 16 / M.value
1253
+ x: o.x + o.width - (16 + s * 30) / N.value,
1254
+ y: o.y + 16 / N.value
1255
1255
  });
1256
1256
  };
1257
1257
  for (let e of Me.value) e.geometry.kind === "badge" && n(e.geometry.roomId, e.geometry.shapeId, e.connection.id, W(e.connection, e.geometry.roomId));
@@ -1267,12 +1267,12 @@ var Cn = l({
1267
1267
  }), Ue = h(() => {
1268
1268
  let e = ne.value?.getBoundingClientRect(), t = e?.width ?? 0, n = e?.height ?? 0;
1269
1269
  return {
1270
- left: -N.value.x / M.value,
1271
- top: -N.value.y / M.value,
1272
- right: (t - N.value.x) / M.value,
1273
- bottom: (n - N.value.y) / M.value
1270
+ left: -we.value.x / N.value,
1271
+ top: -we.value.y / N.value,
1272
+ right: (t - we.value.x) / N.value,
1273
+ bottom: (n - we.value.y) / N.value
1274
1274
  };
1275
- }), We = h(() => new Set(Ee.value.filter((e) => Se.value.has(e.id)).map((e) => e.roomId)));
1275
+ }), We = h(() => new Set(Ee.value.filter((e) => xe.value.has(e.id)).map((e) => e.roomId)));
1276
1276
  function Ge(e, t) {
1277
1277
  switch (t) {
1278
1278
  case "object":
@@ -1290,15 +1290,15 @@ var Cn = l({
1290
1290
  }
1291
1291
  }
1292
1292
  function Ke(e) {
1293
- return Se.value.get(e)?.level;
1293
+ return xe.value.get(e)?.level;
1294
1294
  }
1295
1295
  function qe(e) {
1296
- return Se.value.get(e.id)?.labels ?? [];
1296
+ return xe.value.get(e.id)?.labels ?? [];
1297
1297
  }
1298
1298
  function Ye(e) {
1299
- let t = (8 + qe(e).length * 17) / M.value;
1299
+ let t = (8 + qe(e).length * 17) / N.value;
1300
1300
  return {
1301
- width: t + it(e.name) - 10 / M.value,
1301
+ width: t + it(e.name) - 10 / N.value,
1302
1302
  textOffset: t
1303
1303
  };
1304
1304
  }
@@ -1313,10 +1313,10 @@ var Cn = l({
1313
1313
  ce.value = null, S("hover-sensor", null);
1314
1314
  }
1315
1315
  function Qe(e) {
1316
- return be.value.find((t) => t.id === e);
1316
+ return ye.value.find((t) => t.id === e);
1317
1317
  }
1318
1318
  function $e(e) {
1319
- return ue(e.sensorType, ge(Qe(e.id)));
1319
+ return ue(e.sensorType, k(Qe(e.id)));
1320
1320
  }
1321
1321
  function U(e) {
1322
1322
  let t = me(Qe(e.id));
@@ -1340,7 +1340,7 @@ var Cn = l({
1340
1340
  return t ? [t] : [];
1341
1341
  }
1342
1342
  function G(e) {
1343
- let t = e.width >= e.height, n = t ? e.width : e.height, r = t ? e.height : e.width, i = 9 / M.value, a = Math.max(Math.min(15, r * .3), i);
1343
+ let t = e.width >= e.height, n = t ? e.width : e.height, r = t ? e.height : e.width, i = 9 / N.value, a = Math.max(Math.min(15, r * .3), i);
1344
1344
  if (a > r) return null;
1345
1345
  let o = n - a, s = a * ot, c = e.name;
1346
1346
  if (s * c.length > o) {
@@ -1367,10 +1367,10 @@ var Cn = l({
1367
1367
  oe.value = null, S("hover-camera", null);
1368
1368
  }
1369
1369
  function it(e) {
1370
- return (e.length * 7 + 20) / M.value;
1370
+ return (e.length * 7 + 20) / N.value;
1371
1371
  }
1372
1372
  function at(e, t) {
1373
- let n = 4 / M.value;
1373
+ let n = 4 / N.value;
1374
1374
  return `M ${e - n * 2} ${t + n * 1.5} L ${e - n} ${t + n * 1.5} L ${e - n} ${t} L ${e + n} ${t} L ${e + n} ${t - n * 1.5} L ${e + n * 2} ${t - n * 1.5}`;
1375
1375
  }
1376
1376
  function ct(e) {
@@ -1386,8 +1386,8 @@ var Cn = l({
1386
1386
  function gt(e) {
1387
1387
  let t = ne.value?.getBoundingClientRect();
1388
1388
  return t ? {
1389
- x: (e.clientX - t.left - N.value.x) / M.value,
1390
- y: (e.clientY - t.top - N.value.y) / M.value
1389
+ x: (e.clientX - t.left - we.value.x) / N.value,
1390
+ y: (e.clientY - t.top - we.value.y) / N.value
1391
1391
  } : {
1392
1392
  x: 0,
1393
1393
  y: 0
@@ -1400,7 +1400,7 @@ var Cn = l({
1400
1400
  return F.value.some((n) => n.id !== t && e.x < n.x + n.width && e.x + e.width > n.x && e.y < n.y + n.height && e.y + e.height > n.y);
1401
1401
  }
1402
1402
  function vt(e, t, n) {
1403
- let r = 10 / M.value, i = n === "end" ? [e.x + e.width] : [e.x, e.x + e.width], a = n === "end" ? [e.y + e.height] : [e.y, e.y + e.height], o, s;
1403
+ let r = 10 / N.value, i = n === "end" ? [e.x + e.width] : [e.x, e.x + e.width], a = n === "end" ? [e.y + e.height] : [e.y, e.y + e.height], o, s;
1404
1404
  for (let e of F.value) if (e.id !== t) {
1405
1405
  for (let t of i) for (let n of [e.x, e.x + e.width]) {
1406
1406
  let e = n - t;
@@ -1589,7 +1589,7 @@ var Cn = l({
1589
1589
  return;
1590
1590
  }
1591
1591
  if (O.mode === "sensor") {
1592
- let e = O.id, n = X(xe.value.find((t) => t.id === e)?.roomId ?? "", Y(t.x - O.offsetX), Y(t.y - O.offsetY));
1592
+ let e = O.id, n = X(be.value.find((t) => t.id === e)?.roomId ?? "", Y(t.x - O.offsetX), Y(t.y - O.offsetY));
1593
1593
  S("move-sensor", {
1594
1594
  id: e,
1595
1595
  ...n
@@ -1639,8 +1639,8 @@ var Cn = l({
1639
1639
  let n = JSON.parse(t), r = ne.value?.getBoundingClientRect();
1640
1640
  r && S("drop", {
1641
1641
  ...n,
1642
- x: Y((e.clientX - r.left - N.value.x) / M.value),
1643
- y: Y((e.clientY - r.top - N.value.y) / M.value)
1642
+ x: Y((e.clientX - r.left - we.value.x) / N.value),
1643
+ y: Y((e.clientY - r.top - we.value.y) / N.value)
1644
1644
  });
1645
1645
  }
1646
1646
  function At(e, t) {
@@ -1680,14 +1680,14 @@ var Cn = l({
1680
1680
  return (t.x - e.x) * e.stepX + (t.y - e.y) * e.stepY;
1681
1681
  }
1682
1682
  function Pt(e, t) {
1683
- k = {
1683
+ A = {
1684
1684
  target: t,
1685
1685
  x: e.clientX,
1686
1686
  y: e.clientY
1687
1687
  };
1688
1688
  }
1689
1689
  function Ft(e) {
1690
- le.value = null, k &&= (e && Math.abs(e.clientX - k.x) < 4 && Math.abs(e.clientY - k.y) < 4 && S("select", k.target), null), O?.mode === "room" && he && S("settle-room", O.id), O = null, he = !1, D.value = {
1690
+ le.value = null, A &&= (e && Math.abs(e.clientX - A.x) < 4 && Math.abs(e.clientY - A.y) < 4 && S("select", A.target), null), O?.mode === "room" && he && S("settle-room", O.id), O = null, he = !1, D.value = {
1691
1691
  x: null,
1692
1692
  y: null
1693
1693
  };
@@ -1698,7 +1698,7 @@ var Cn = l({
1698
1698
  for (let n of Ee.value) e.push(n.x - Nr, n.x + Nr), t.push(n.y - Nr, n.y + Nr);
1699
1699
  if (!e.length) return;
1700
1700
  let n = Math.min(...e), r = Math.min(...t);
1701
- ye({
1701
+ ve({
1702
1702
  x: n,
1703
1703
  y: r,
1704
1704
  width: Math.max(Math.max(...e) - n, 1),
@@ -1708,7 +1708,7 @@ var Cn = l({
1708
1708
  return ee(() => p.levelId, () => o(It)), ie(() => {
1709
1709
  window.addEventListener("pointerup", Ft), o(It);
1710
1710
  }), t(() => window.removeEventListener("pointerup", Ft)), l({ fit: It }), (t, o) => {
1711
- let l = He, f = V, p = Cn, h = j, ee = bn, te = H, w = E;
1711
+ let l = He, f = V, p = Cn, h = _e, ee = bn, te = H, w = E;
1712
1712
  return r(), _("div", {
1713
1713
  ref_key: "wrapperRef",
1714
1714
  ref: ne,
@@ -1747,21 +1747,21 @@ var Cn = l({
1747
1747
  }, [b("defs", null, [
1748
1748
  b("pattern", {
1749
1749
  id: "floorplan-public",
1750
- width: 14 / m(M),
1751
- height: 14 / m(M),
1750
+ width: 14 / m(N),
1751
+ height: 14 / m(N),
1752
1752
  patternUnits: "userSpaceOnUse",
1753
1753
  patternTransform: "rotate(45)"
1754
1754
  }, [b("rect", {
1755
- width: 14 / m(M),
1756
- height: 14 / m(M),
1755
+ width: 14 / m(N),
1756
+ height: 14 / m(N),
1757
1757
  class: "public-base"
1758
1758
  }, null, 8, Tn), b("line", {
1759
1759
  x1: "0",
1760
1760
  y1: "0",
1761
1761
  x2: "0",
1762
- y2: 14 / m(M),
1762
+ y2: 14 / m(N),
1763
1763
  class: "public-hatch",
1764
- "stroke-width": 1.5 / m(M)
1764
+ "stroke-width": 1.5 / m(N)
1765
1765
  }, null, 8, En)], 8, wn),
1766
1766
  (r(!0), _(y, null, n(m(Ie), (e) => (r(), _("clipPath", {
1767
1767
  id: `floorplan-sight-${e.roomId}`,
@@ -1769,17 +1769,17 @@ var Cn = l({
1769
1769
  }, [b("path", { d: e.path }, null, 8, On)], 8, Dn))), 128)),
1770
1770
  b("pattern", {
1771
1771
  id: "floorplan-gaps-hatch",
1772
- width: 10 / m(M),
1773
- height: 10 / m(M),
1772
+ width: 10 / m(N),
1773
+ height: 10 / m(N),
1774
1774
  patternUnits: "userSpaceOnUse",
1775
1775
  patternTransform: "rotate(-45)"
1776
1776
  }, [b("line", {
1777
1777
  x1: "0",
1778
1778
  y1: "0",
1779
1779
  x2: "0",
1780
- y2: 10 / m(M),
1780
+ y2: 10 / m(N),
1781
1781
  class: "gaps-hatch",
1782
- "stroke-width": 1.5 / m(M)
1782
+ "stroke-width": 1.5 / m(N)
1783
1783
  }, null, 8, An)], 8, kn),
1784
1784
  m(re) ? (r(), _("mask", {
1785
1785
  key: 0,
@@ -1816,7 +1816,7 @@ var Cn = l({
1816
1816
  "room-selected": e.selected,
1817
1817
  "room-public-wall": e.publicSpace
1818
1818
  }]),
1819
- "stroke-width": (e.selected ? 2.5 : 1.5) / m(M)
1819
+ "stroke-width": (e.selected ? 2.5 : 1.5) / m(N)
1820
1820
  }, null, 10, Ln)]))), 128)),
1821
1821
  (r(!0), _(y, null, n(m(Ie), (e) => (r(), _("g", {
1822
1822
  key: `sight-${e.roomId}`,
@@ -1862,20 +1862,20 @@ var Cn = l({
1862
1862
  b("path", {
1863
1863
  d: e.line,
1864
1864
  class: "connection-hit",
1865
- "stroke-width": 24 / m(M)
1865
+ "stroke-width": 24 / m(N)
1866
1866
  }, null, 8, Wn),
1867
1867
  b("path", {
1868
1868
  d: e.line,
1869
1869
  class: s(["connection", [`connection-${e.type}`, { "connection-selected": J("connection", e.id) }]]),
1870
- "stroke-width": 7 / m(M)
1870
+ "stroke-width": 7 / m(N)
1871
1871
  }, null, 10, Gn),
1872
1872
  (r(!0), _(y, null, n(J("connection", e.id) && !m(P) ? e.handles : [], (t, n) => (r(), _("circle", {
1873
1873
  key: n,
1874
1874
  cx: t.x,
1875
1875
  cy: t.y,
1876
- r: 7 / m(M),
1876
+ r: 7 / m(N),
1877
1877
  class: "passage-handle nopan",
1878
- "stroke-width": 2 / m(M),
1878
+ "stroke-width": 2 / m(N),
1879
1879
  onPointerdown: (t) => Mt(t, e, n)
1880
1880
  }, null, 40, Kn))), 128))
1881
1881
  ], 42, Un))), 128)),
@@ -1883,7 +1883,7 @@ var Cn = l({
1883
1883
  key: 0,
1884
1884
  d: `M ${e.geometry.x1} ${e.geometry.y1} L ${e.geometry.x2} ${e.geometry.y2}`,
1885
1885
  class: s(["connection connection-stairs", { "connection-selected": J("connection", e.connection.id) }]),
1886
- "stroke-width": 2 / m(M),
1886
+ "stroke-width": 2 / m(N),
1887
1887
  onPointerdown: (t) => xt(t, e.connection.id)
1888
1888
  }, null, 42, qn)) : d("", !0)], 64))), 128)),
1889
1889
  (r(!0), _(y, null, n(m(Ee), (e) => (r(), _("g", {
@@ -1896,30 +1896,30 @@ var Cn = l({
1896
1896
  b("circle", {
1897
1897
  cx: e.x,
1898
1898
  cy: e.y,
1899
- r: 13 / m(M),
1899
+ r: 13 / m(N),
1900
1900
  class: s(["camera-body", [`camera-${Ke(e.id) ?? "idle"}`, { "camera-selected": J("camera", e.id) }]]),
1901
- "stroke-width": 2 / m(M)
1901
+ "stroke-width": 2 / m(N)
1902
1902
  }, null, 10, Yn),
1903
1903
  b("circle", {
1904
1904
  cx: e.x,
1905
1905
  cy: e.y,
1906
- r: 4 / m(M),
1906
+ r: 4 / m(N),
1907
1907
  class: "camera-lens"
1908
1908
  }, null, 8, Xn),
1909
- m(oe) === e.id || J("camera", e.id) || m(Se).has(e.id) ? (r(), _("g", Zn, [
1909
+ m(oe) === e.id || J("camera", e.id) || m(xe).has(e.id) ? (r(), _("g", Zn, [
1910
1910
  b("rect", {
1911
1911
  x: e.x - Ye(e).width / 2,
1912
- y: e.y - 42 / m(M),
1912
+ y: e.y - 42 / m(N),
1913
1913
  width: Ye(e).width,
1914
- height: 20 / m(M),
1915
- rx: 10 / m(M)
1914
+ height: 20 / m(N),
1915
+ rx: 10 / m(N)
1916
1916
  }, null, 8, Qn),
1917
1917
  (r(!0), _(y, null, n(qe(e), (t, n) => (r(), _("foreignObject", {
1918
1918
  key: t,
1919
- x: e.x - Ye(e).width / 2 + (8 + n * 17) / m(M),
1920
- y: e.y - 39.5 / m(M),
1921
- width: 15 / m(M),
1922
- height: 15 / m(M),
1919
+ x: e.x - Ye(e).width / 2 + (8 + n * 17) / m(N),
1920
+ y: e.y - 39.5 / m(N),
1921
+ width: 15 / m(N),
1922
+ height: 15 / m(N),
1923
1923
  class: "chip-glyph"
1924
1924
  }, [(r(), u(c(m(Ce)(t).icon), {
1925
1925
  width: "100%",
@@ -1927,17 +1927,17 @@ var Cn = l({
1927
1927
  }))], 8, $n))), 128)),
1928
1928
  b("text", {
1929
1929
  x: e.x - Ye(e).width / 2 + Ye(e).textOffset,
1930
- y: e.y - 28 / m(M),
1931
- "font-size": 12 / m(M)
1930
+ y: e.y - 28 / m(N),
1931
+ "font-size": 12 / m(N)
1932
1932
  }, i(e.name), 9, er)
1933
1933
  ])) : d("", !0)
1934
1934
  ], 42, Jn))), 128)),
1935
1935
  (r(!0), _(y, null, n(m(ke) ? m(Re) : [], (t) => (r(), _("g", { key: t.roomId }, [b("circle", {
1936
1936
  cx: t.x,
1937
1937
  cy: t.y,
1938
- r: 11 / m(M),
1938
+ r: 11 / m(N),
1939
1939
  class: "connection-ghost nopan",
1940
- "stroke-width": 1.5 / m(M),
1940
+ "stroke-width": 1.5 / m(N),
1941
1941
  onPointerdown: e((e) => S("create-connection", {
1942
1942
  fromRoomId: t.fromRoomId,
1943
1943
  toRoomId: t.roomId,
@@ -1945,11 +1945,11 @@ var Cn = l({
1945
1945
  toShapeId: t.shapeId
1946
1946
  }), ["stop"])
1947
1947
  }, null, 40, tr), b("path", {
1948
- d: `M ${t.x - 5 / m(M)} ${t.y} L ${t.x + 5 / m(M)} ${t.y} M ${t.x} ${t.y - 5 / m(M)} L ${t.x} ${t.y + 5 / m(M)}`,
1948
+ d: `M ${t.x - 5 / m(N)} ${t.y} L ${t.x + 5 / m(N)} ${t.y} M ${t.x} ${t.y - 5 / m(N)} L ${t.x} ${t.y + 5 / m(N)}`,
1949
1949
  class: "connection-ghost-plus",
1950
- "stroke-width": 1.5 / m(M)
1950
+ "stroke-width": 1.5 / m(N)
1951
1951
  }, null, 8, nr)]))), 128)),
1952
- (r(!0), _(y, null, n(m(xe), (e) => (r(), _("g", {
1952
+ (r(!0), _(y, null, n(m(be), (e) => (r(), _("g", {
1953
1953
  key: `sensor-${e.id}`,
1954
1954
  class: s({ nopan: !m(P) }),
1955
1955
  onPointerdown: (t) => At(t, e),
@@ -1959,15 +1959,15 @@ var Cn = l({
1959
1959
  b("circle", {
1960
1960
  cx: e.x,
1961
1961
  cy: e.y,
1962
- r: 11 / m(M),
1962
+ r: 11 / m(N),
1963
1963
  class: s(["sensor-body", { "sensor-selected": J("sensor", e.id) }]),
1964
- "stroke-width": 2 / m(M)
1964
+ "stroke-width": 2 / m(N)
1965
1965
  }, null, 10, ir),
1966
1966
  (r(), _("foreignObject", {
1967
- x: e.x - 7 / m(M),
1968
- y: e.y - 7 / m(M),
1969
- width: 14 / m(M),
1970
- height: 14 / m(M),
1967
+ x: e.x - 7 / m(N),
1968
+ y: e.y - 7 / m(N),
1969
+ width: 14 / m(N),
1970
+ height: 14 / m(N),
1971
1971
  class: "sensor-glyph"
1972
1972
  }, [(r(), u(c(m(pe)(e.sensorType, Qe(e.id))), {
1973
1973
  width: "100%",
@@ -1976,15 +1976,15 @@ var Cn = l({
1976
1976
  }, null, 8, ["style"]))], 8, ar)),
1977
1977
  m(ce) === e.id || J("sensor", e.id) ? (r(), _("g", or, [b("rect", {
1978
1978
  x: e.x - it(U(e)) / 2,
1979
- y: e.y - 42 / m(M),
1979
+ y: e.y - 42 / m(N),
1980
1980
  width: it(U(e)),
1981
- height: 20 / m(M),
1982
- rx: 10 / m(M)
1981
+ height: 20 / m(N),
1982
+ rx: 10 / m(N)
1983
1983
  }, null, 8, sr), b("text", {
1984
1984
  x: e.x,
1985
- y: e.y - 28 / m(M),
1985
+ y: e.y - 28 / m(N),
1986
1986
  "text-anchor": "middle",
1987
- "font-size": 12 / m(M)
1987
+ "font-size": 12 / m(N)
1988
1988
  }, i(U(e)), 9, cr)])) : d("", !0)
1989
1989
  ], 42, rr))), 128)),
1990
1990
  (r(!0), _(y, null, n(m(ze), (e) => (r(), _("g", {
@@ -1996,27 +1996,27 @@ var Cn = l({
1996
1996
  b("circle", {
1997
1997
  cx: e.x,
1998
1998
  cy: e.y,
1999
- r: 11 / m(M),
1999
+ r: 11 / m(N),
2000
2000
  class: "flight-camera-body",
2001
- "stroke-width": 1.5 / m(M)
2001
+ "stroke-width": 1.5 / m(N)
2002
2002
  }, null, 8, ur),
2003
2003
  b("circle", {
2004
2004
  cx: e.x,
2005
2005
  cy: e.y,
2006
- r: 3.5 / m(M),
2006
+ r: 3.5 / m(N),
2007
2007
  class: "flight-camera-lens"
2008
2008
  }, null, 8, dr),
2009
2009
  m(se) === e.key ? (r(), _("g", fr, [b("rect", {
2010
2010
  x: e.x - it(e.label) / 2,
2011
- y: e.y - 42 / m(M),
2011
+ y: e.y - 42 / m(N),
2012
2012
  width: it(e.label),
2013
- height: 20 / m(M),
2014
- rx: 10 / m(M)
2013
+ height: 20 / m(N),
2014
+ rx: 10 / m(N)
2015
2015
  }, null, 8, pr), b("text", {
2016
2016
  x: e.x,
2017
- y: e.y - 28 / m(M),
2017
+ y: e.y - 28 / m(N),
2018
2018
  "text-anchor": "middle",
2019
- "font-size": 12 / m(M)
2019
+ "font-size": 12 / m(N)
2020
2020
  }, i(e.label), 9, mr)])) : d("", !0)
2021
2021
  ], 40, lr))), 128)),
2022
2022
  (r(!0), _(y, null, n(m(Be), (e) => (r(), _("g", {
@@ -2027,67 +2027,67 @@ var Cn = l({
2027
2027
  b("circle", {
2028
2028
  cx: e.x,
2029
2029
  cy: e.y,
2030
- r: 12 / m(M),
2030
+ r: 12 / m(N),
2031
2031
  class: s([e.connectionId ? "connection-badge" : "connection-ghost", { "connection-selected": e.connectionId && J("connection", e.connectionId) }]),
2032
- "stroke-width": (e.connectionId ? 2 : 1.5) / m(M)
2032
+ "stroke-width": (e.connectionId ? 2 : 1.5) / m(N)
2033
2033
  }, null, 10, gr),
2034
2034
  b("path", {
2035
2035
  d: at(e.x, e.y),
2036
2036
  class: "badge-glyph",
2037
- "stroke-width": 1.5 / m(M),
2037
+ "stroke-width": 1.5 / m(N),
2038
2038
  fill: "none",
2039
2039
  "stroke-linejoin": "round"
2040
2040
  }, null, 8, _r),
2041
2041
  e.direction ? (r(), _("text", {
2042
2042
  key: 0,
2043
- x: e.x + 13 / m(M),
2044
- y: e.y - 7 / m(M),
2043
+ x: e.x + 13 / m(N),
2044
+ y: e.y - 7 / m(N),
2045
2045
  class: "badge-direction",
2046
- "font-size": 12 / m(M)
2046
+ "font-size": 12 / m(N)
2047
2047
  }, i(e.direction), 9, vr)) : d("", !0),
2048
- m(we) ? (r(), _("g", yr, [b("rect", {
2049
- x: m(we).x - m(we).width / 2,
2050
- y: m(we).y,
2051
- width: m(we).width,
2052
- height: 20 / m(M),
2053
- rx: 10 / m(M)
2048
+ m(Se) ? (r(), _("g", yr, [b("rect", {
2049
+ x: m(Se).x - m(Se).width / 2,
2050
+ y: m(Se).y,
2051
+ width: m(Se).width,
2052
+ height: 20 / m(N),
2053
+ rx: 10 / m(N)
2054
2054
  }, null, 8, br), b("text", {
2055
- x: m(we).x,
2056
- y: m(we).y + 14 / m(M),
2055
+ x: m(Se).x,
2056
+ y: m(Se).y + 14 / m(N),
2057
2057
  "text-anchor": "middle",
2058
- "font-size": 12 / m(M)
2059
- }, i(m(we).text), 9, xr)])) : d("", !0)
2058
+ "font-size": 12 / m(N)
2059
+ }, i(m(Se).text), 9, xr)])) : d("", !0)
2060
2060
  ], 42, hr))), 128)),
2061
2061
  m(D).x === null ? d("", !0) : (r(), _("path", {
2062
2062
  key: 1,
2063
2063
  d: `M ${m(D).x} ${m(Ue).top} L ${m(D).x} ${m(Ue).bottom}`,
2064
2064
  class: "guide",
2065
- "stroke-width": 1 / m(M)
2065
+ "stroke-width": 1 / m(N)
2066
2066
  }, null, 8, Sr)),
2067
2067
  m(D).y === null ? d("", !0) : (r(), _("path", {
2068
2068
  key: 2,
2069
2069
  d: `M ${m(Ue).left} ${m(D).y} L ${m(Ue).right} ${m(D).y}`,
2070
2070
  class: "guide",
2071
- "stroke-width": 1 / m(M)
2071
+ "stroke-width": 1 / m(N)
2072
2072
  }, null, 8, Cr)),
2073
2073
  m(Oe) && !m(P) ? (r(), _("rect", {
2074
2074
  key: 3,
2075
- x: m(Oe).x + m(Oe).width - 7 / m(M),
2076
- y: m(Oe).y + m(Oe).height - 7 / m(M),
2077
- width: 14 / m(M),
2078
- height: 14 / m(M),
2079
- rx: 3 / m(M),
2075
+ x: m(Oe).x + m(Oe).width - 7 / m(N),
2076
+ y: m(Oe).y + m(Oe).height - 7 / m(N),
2077
+ width: 14 / m(N),
2078
+ height: 14 / m(N),
2079
+ rx: 3 / m(N),
2080
2080
  class: "handle nopan",
2081
- "stroke-width": 1.5 / m(M),
2081
+ "stroke-width": 1.5 / m(N),
2082
2082
  onPointerdown: o[1] ||= (e) => Ct(e, m(Oe))
2083
2083
  }, null, 40, wr)) : d("", !0),
2084
2084
  m(L) && !m(P) ? (r(), _("circle", {
2085
2085
  key: 4,
2086
2086
  cx: m(L).x + Math.cos(ct(m(L).rotation)) * m(L).range,
2087
2087
  cy: m(L).y + Math.sin(ct(m(L).rotation)) * m(L).range,
2088
- r: 9 / m(M),
2088
+ r: 9 / m(N),
2089
2089
  class: "handle nopan",
2090
- "stroke-width": 1.5 / m(M),
2090
+ "stroke-width": 1.5 / m(N),
2091
2091
  onPointerdown: o[2] ||= (e) => Tt(e, m(L))
2092
2092
  }, null, 40, Tr)) : d("", !0)
2093
2093
  ], 8, Fn)], 4))]),
@@ -2135,7 +2135,7 @@ var Cn = l({
2135
2135
  type: "button",
2136
2136
  class: "control-button",
2137
2137
  onPointerdown: o[4] ||= e(() => {}, ["stop"]),
2138
- onClick: o[5] ||= e((e) => m(_e)(), ["stop"])
2138
+ onClick: o[5] ||= e((e) => m(M)(), ["stop"])
2139
2139
  }, [T(l, { class: "w-4 h-4" })], 32)), [[
2140
2140
  w,
2141
2141
  { value: t.$t("views.floorplan.zoom_in") },
@@ -2146,7 +2146,7 @@ var Cn = l({
2146
2146
  type: "button",
2147
2147
  class: "control-button",
2148
2148
  onPointerdown: o[6] ||= e(() => {}, ["stop"]),
2149
- onClick: o[7] ||= e((e) => m(ve)(), ["stop"])
2149
+ onClick: o[7] ||= e((e) => m(ge)(), ["stop"])
2150
2150
  }, [T(f, { class: "w-4 h-4" })], 32)), [[
2151
2151
  w,
2152
2152
  { value: t.$t("views.floorplan.zoom_out") },
@@ -2366,10 +2366,10 @@ var yi = l({
2366
2366
  //#endregion
2367
2367
  //#region src/api/routes/floorplan.ts
2368
2368
  async function bi({ signal: e } = {}) {
2369
- return (await A.get("/floorplan", { signal: e })).data;
2369
+ return (await j.get("/floorplan", { signal: e })).data;
2370
2370
  }
2371
2371
  async function xi(e) {
2372
- return (await A.put("/floorplan", e)).data;
2372
+ return (await j.put("/floorplan", e)).data;
2373
2373
  }
2374
2374
  //#endregion
2375
2375
  //#region src/components/CuiDialog/templates/FloorplanLevel/FloorplanLevel.vue?vue&type=script&setup=true&lang.ts
@@ -2396,7 +2396,7 @@ var Si = { class: "flex flex-col gap-2 w-full" }, Ci = {
2396
2396
  }), Ti = re({ plan: null }), Ei = null, Di = null, Oi = /* @__PURE__ */ new Set();
2397
2397
  function ki() {
2398
2398
  Di || (Ei = f(!0), Ei.run(() => {
2399
- let e = F("/camera.ui");
2399
+ let e = Ee("/camera.ui");
2400
2400
  Di = e, e.on("floorplan-changed", (e) => {
2401
2401
  Ti.plan = e;
2402
2402
  for (let t of Oi) try {
@@ -2441,10 +2441,10 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
2441
2441
  }, Ki = { class: "flex-1 min-w-0 text-sm font-semibold truncate text-color" }, qi = 50, Ji = 92, Yi = /*#__PURE__*/ De(/* @__PURE__ */ C({
2442
2442
  __name: "Floorplan",
2443
2443
  setup(e) {
2444
- let { t: f } = Oe(), { smBreakpoint: S } = he(), { bottombarHeight: C } = xe(), re = ve(), ae = I(), ue = se(), me = Ai(), ge = new Te(), { sensors: A } = Ae(), { data: j } = ge.getCamerasQuery({
2444
+ let { t: f } = Oe(), { smBreakpoint: S } = he(), { bottombarHeight: C } = xe(), re = ve(), ae = M(), ue = se(), me = Ai(), k = new P(), { sensors: j } = Ae(), { data: _e } = k.getCamerasQuery({
2445
2445
  page: 1,
2446
2446
  pageSize: -1
2447
- }), Ce = w(), P = w(), F = w(null), De = w(null), je = w({
2447
+ }), Ce = w(), F = w(), Ee = w(null), De = w(null), je = w({
2448
2448
  x: 0,
2449
2449
  y: 0
2450
2450
  }), Me = w(null), R = w({
@@ -2475,7 +2475,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
2475
2475
  value: L.NightArm,
2476
2476
  labelKey: "views.floorplan.security_night"
2477
2477
  }
2478
- ], ut = 0, dt = !1, mt, ht, gt, Y = Ee(void 0, "admin"), _t = h(() => Math.max(st.value - Ji, 0)), vt = h(() => q.value.length > 0), yt = h(() => lt.value.length > 0), X = h(() => (j.value?.result ?? []).find((e) => e._id === Ve.value)), bt = h(() => z.value.find((e) => e.id === W.value)), Z = h(() => Ft() !== at.value), xt = h(() => new Map((j.value?.result ?? []).map((e) => [e._id, e.name]))), St = h(() => A.value.filter((e) => oe.has(String(e.type)))), Ct = h(() => new Map(St.value.map((e) => [e.id, {
2478
+ ], ut = 0, dt = !1, mt, ht, gt, Y = I(void 0, "admin"), _t = h(() => Math.max(st.value - Ji, 0)), vt = h(() => q.value.length > 0), yt = h(() => lt.value.length > 0), X = h(() => (_e.value?.result ?? []).find((e) => e._id === Ve.value)), bt = h(() => z.value.find((e) => e.id === W.value)), Z = h(() => Ft() !== at.value), xt = h(() => new Map((_e.value?.result ?? []).map((e) => [e._id, e.name]))), St = h(() => j.value.filter((e) => oe.has(String(e.type)))), Ct = h(() => new Map(St.value.map((e) => [e.id, {
2479
2479
  name: Nt(e),
2480
2480
  owner: Pt(e)
2481
2481
  }]))), wt = h(() => {
@@ -2494,7 +2494,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
2494
2494
  }));
2495
2495
  }), Et = h(() => {
2496
2496
  let e = new Set(H.value.map((e) => e.id));
2497
- return (j.value?.result ?? []).filter((t) => !e.has(t._id)).map((e) => ({
2497
+ return (_e.value?.result ?? []).filter((t) => !e.has(t._id)).map((e) => ({
2498
2498
  id: e._id,
2499
2499
  name: e.name
2500
2500
  }));
@@ -2530,7 +2530,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
2530
2530
  command: In
2531
2531
  }
2532
2532
  ]), jt = h(() => {
2533
- let e = B.value.find((e) => e.roomId === F.value);
2533
+ let e = B.value.find((e) => e.roomId === Ee.value);
2534
2534
  if (!e) return [];
2535
2535
  let t = new Set(V.value.flatMap((e) => [e.fromRoomId, e.toRoomId].join("|"))), n = /* @__PURE__ */ new Set();
2536
2536
  return B.value.filter((r) => r.levelId === e.levelId || n.has(r.roomId) || t.has([e.roomId, r.roomId].join("|")) || t.has([r.roomId, e.roomId].join("|")) ? !1 : (n.add(r.roomId), !0)).map((t) => ({
@@ -2708,7 +2708,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
2708
2708
  if (!n.length || n.some((e) => ft(t, e))) return;
2709
2709
  let r = new Set(B.value.map((e) => e.name.toLowerCase())), i = t.name;
2710
2710
  for (let e = 2; r.has(i.toLowerCase()); e++) i = `${t.name} ${e}`;
2711
- let a = N();
2711
+ let a = Te();
2712
2712
  for (let e of H.value) e.roomId === t.roomId && yn(t, e) && (e.roomId = a);
2713
2713
  Object.assign(t, {
2714
2714
  roomId: a,
@@ -2801,13 +2801,13 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
2801
2801
  }
2802
2802
  let $ = h(() => U.value.find((e) => e.id === ze.value));
2803
2803
  function tn(e) {
2804
- return A.value.find((t) => t.id === e);
2804
+ return j.value.find((t) => t.id === e);
2805
2805
  }
2806
2806
  function nn(e) {
2807
2807
  return Y && !Se.has(e);
2808
2808
  }
2809
2809
  async function rn(e) {
2810
- Y && await k(tn(e));
2810
+ Y && await A(tn(e));
2811
2811
  }
2812
2812
  async function an(e, t) {
2813
2813
  Y && await O(tn(e), t);
@@ -2850,10 +2850,10 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
2850
2850
  }, 200);
2851
2851
  }
2852
2852
  function fn({ roomId: e, event: t }) {
2853
- F.value = e, je.value = {
2853
+ Ee.value = e, je.value = {
2854
2854
  x: t.clientX,
2855
2855
  y: t.clientY
2856
- }, o(() => P.value?.toggleMenu(t, De.value));
2856
+ }, o(() => F.value?.toggleMenu(t, De.value));
2857
2857
  }
2858
2858
  function pn({ id: e, patch: t }) {
2859
2859
  Q(!0);
@@ -2863,7 +2863,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
2863
2863
  function mn({ fromRoomId: e, toRoomId: t, fromShapeId: n, toShapeId: r }) {
2864
2864
  Q();
2865
2865
  let i = B.value.find((e) => e.id === n) ?? Ut(e)[0], a = B.value.find((e) => e.id === r) ?? Ut(t)[0], o = i && a ? ft(i, a) : null, s = {
2866
- id: N(),
2866
+ id: Te(),
2867
2867
  fromRoomId: e,
2868
2868
  toRoomId: t,
2869
2869
  fromShapeId: i?.id ?? null,
@@ -2919,8 +2919,8 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
2919
2919
  function xn(e, t, n) {
2920
2920
  Q();
2921
2921
  let r = Sn(Math.round(e - 120), Math.round(t - 100), 240, 200), i = n ? Je.value.rooms.find((e) => e.id === n) : void 0, a = {
2922
- id: N(),
2923
- roomId: i?.id ?? N(),
2922
+ id: Te(),
2923
+ roomId: i?.id ?? Te(),
2924
2924
  name: i?.name ?? f("views.floorplan.new_room"),
2925
2925
  note: i?.note ?? "",
2926
2926
  publicSpace: i?.publicSpace ?? !1,
@@ -3029,7 +3029,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3029
3029
  if (!e) return;
3030
3030
  Q();
3031
3031
  let t = {
3032
- id: N(),
3032
+ id: Te(),
3033
3033
  name: e
3034
3034
  };
3035
3035
  z.value.push(t), W.value = t.id, G.value = null;
@@ -3078,7 +3078,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3078
3078
  } catch (e) {
3079
3079
  ae.add({
3080
3080
  severity: "error",
3081
- detail: M(e),
3081
+ detail: we(e),
3082
3082
  life: 5e3
3083
3083
  });
3084
3084
  } finally {
@@ -3087,9 +3087,9 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3087
3087
  }
3088
3088
  async function Pn() {
3089
3089
  await Promise.all([
3090
- ge.queryClient.refetchQueries({ queryKey: ["camerasList"] }),
3091
- ge.queryClient.refetchQueries({ queryKey: ["cameras"] }),
3092
- ge.queryClient.refetchQueries({
3090
+ k.queryClient.refetchQueries({ queryKey: ["camerasList"] }),
3091
+ k.queryClient.refetchQueries({ queryKey: ["cameras"] }),
3092
+ k.queryClient.refetchQueries({
3093
3093
  queryKey: ["rooms"],
3094
3094
  exact: !0
3095
3095
  })
@@ -3102,7 +3102,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3102
3102
  } catch (e) {
3103
3103
  ae.add({
3104
3104
  severity: "error",
3105
- detail: M(e),
3105
+ detail: we(e),
3106
3106
  life: 5e3
3107
3107
  });
3108
3108
  } finally {
@@ -3168,7 +3168,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3168
3168
  }), !1)), t(() => {
3169
3169
  clearTimeout(mt), clearTimeout(ht), Rn(), gt?.disconnect(), window.removeEventListener("keydown", Ln);
3170
3170
  }), (e, t) => {
3171
- let o = Ke, l = ke, f = de, h = gi, ee = D, te = qe, ne = Ne, w = Ge, re = We, ie = He, ae = _e, oe = pi, se = Pr, ue = _n, fe = Re, O = Ye, me = Be, he = ye, ge = we, k = et, A = ce, j = E;
3171
+ let o = Ke, l = ke, f = de, h = gi, ee = D, te = qe, ne = Ne, w = Ge, re = We, ie = He, ae = ge, oe = pi, se = Pr, ue = _n, fe = Re, O = Ye, me = Be, he = ye, k = N, A = et, j = ce, M = E;
3172
3172
  return r(), _("div", ji, [
3173
3173
  T(f, { position: "left" }, {
3174
3174
  default: g(() => [T(l, {
@@ -3210,7 +3210,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3210
3210
  })]),
3211
3211
  _: 1
3212
3212
  }, 8, ["disabled"])), [[
3213
- j,
3213
+ M,
3214
3214
  { value: e.$t("views.floorplan.level_down") },
3215
3215
  void 0,
3216
3216
  { bottom: !0 }
@@ -3229,7 +3229,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3229
3229
  })]),
3230
3230
  _: 1
3231
3231
  }, 8, ["disabled"])), [[
3232
- j,
3232
+ M,
3233
3233
  { value: e.$t("views.floorplan.level_up") },
3234
3234
  void 0,
3235
3235
  { bottom: !0 }
@@ -3252,7 +3252,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3252
3252
  })]),
3253
3253
  _: 1
3254
3254
  }, 8, ["disabled"])), [[
3255
- j,
3255
+ M,
3256
3256
  { value: e.$t("views.floorplan.remove_level") },
3257
3257
  void 0,
3258
3258
  { bottom: !0 }
@@ -3271,7 +3271,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3271
3271
  })]),
3272
3272
  _: 1
3273
3273
  }, 8, ["disabled"])), [[
3274
- j,
3274
+ M,
3275
3275
  { value: e.$t("views.floorplan.rename_level") },
3276
3276
  void 0,
3277
3277
  { bottom: !0 }
@@ -3289,7 +3289,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3289
3289
  })]),
3290
3290
  _: 1
3291
3291
  })), [[
3292
- j,
3292
+ M,
3293
3293
  { value: e.$t("views.floorplan.add_level") },
3294
3294
  void 0,
3295
3295
  { bottom: !0 }
@@ -3473,7 +3473,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3473
3473
  }), {
3474
3474
  icon: g(() => [(r(), u(c(e.icon)))]),
3475
3475
  _: 2
3476
- }, 1040, ["onClick"])), [[j, { value: e.label }]])]),
3476
+ }, 1040, ["onClick"])), [[M, { value: e.label }]])]),
3477
3477
  _: 1
3478
3478
  }, 8, ["model", "style"])) : d("", !0),
3479
3479
  m(Y) && m(Z) ? x((r(), u(l, {
@@ -3493,7 +3493,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3493
3493
  }, {
3494
3494
  icon: g(() => [T(O, { class: "w-5 h-5" })]),
3495
3495
  _: 1
3496
- }, 8, ["loading", "style"])), [[j, { value: e.$t("views.floorplan.save") }]]) : d("", !0),
3496
+ }, 8, ["loading", "style"])), [[M, { value: e.$t("views.floorplan.save") }]]) : d("", !0),
3497
3497
  m(Y) && m(S) && !m(rt) ? x((r(), u(l, {
3498
3498
  key: 5,
3499
3499
  rounded: "",
@@ -3508,7 +3508,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3508
3508
  }, {
3509
3509
  icon: g(() => [T(ie, { class: "w-5 h-5" })]),
3510
3510
  _: 1
3511
- }, 8, ["style"])), [[j, { value: e.$t("views.floorplan.palette") }]]) : d("", !0),
3511
+ }, 8, ["style"])), [[M, { value: e.$t("views.floorplan.palette") }]]) : d("", !0),
3512
3512
  T(me, {
3513
3513
  modelValue: m(nt),
3514
3514
  "onUpdate:modelValue": t[10] ||= (e) => p(nt) ? nt.value = e : null,
@@ -3608,7 +3608,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3608
3608
  class: "w-[280px] flex flex-col",
3609
3609
  onPointerenter: un,
3610
3610
  onPointerleave: dn
3611
- }, [b("div", Wi, [m(X) ? (r(), u(ge, {
3611
+ }, [b("div", Wi, [m(X) ? (r(), u(k, {
3612
3612
  key: 0,
3613
3613
  "camera-info": m(X),
3614
3614
  "source-role": "low-resolution",
@@ -3626,24 +3626,24 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3626
3626
  class: "cui-button p-1.5",
3627
3627
  onClick: t[12] ||= (t) => e.$router.push(`/cameras/${m(X).name}`)
3628
3628
  }, {
3629
- icon: g(() => [T(k, { class: "w-4 h-4" })]),
3629
+ icon: g(() => [T(A, { class: "w-4 h-4" })]),
3630
3630
  _: 1
3631
3631
  })), [[
3632
- j,
3632
+ M,
3633
3633
  { value: e.$t("views.floorplan.open_camera") },
3634
3634
  void 0,
3635
3635
  { top: !0 }
3636
3636
  ]])])) : d("", !0)], 32)]),
3637
3637
  _: 1
3638
3638
  }, 512),
3639
- T(A, {
3639
+ T(j, {
3640
3640
  ref_key: "stairsMenuRef",
3641
- ref: P,
3641
+ ref: F,
3642
3642
  items: m(jt),
3643
3643
  "max-height": "320px",
3644
3644
  popover: { pt: { content: { class: "p-0! rounded-xl! overflow-hidden!" } } }
3645
3645
  }, null, 8, ["items"]),
3646
- T(A, {
3646
+ T(j, {
3647
3647
  ref_key: "levelMenuRef",
3648
3648
  ref: Ce,
3649
3649
  items: m(kt),