@camera.ui/server 2.2.2 → 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 (441) hide show
  1. package/dist/interface/assets/{404-bSMSPWcp.js → 404-Bdbp69ox.js} +1 -1
  2. package/dist/interface/assets/{About-DqMxC4AO.js → About-DmtCok-y.js} +1 -1
  3. package/dist/interface/assets/{Assistant-CIHF-bHs.js → Assistant-D-Lv6JtY.js} +1 -1
  4. package/dist/interface/assets/{Automation-CUDypjZw.js → Automation-LQ3TssrU.js} +3 -3
  5. package/dist/interface/assets/{AutomationImport-Cr14tF-Q.js → AutomationImport-B_ra3G3_.js} +2 -2
  6. package/dist/interface/assets/{AutomationStore-BnZgfI9i.js → AutomationStore-DSXSaQjp.js} +2 -2
  7. package/dist/interface/assets/AutomationStoreDetail-B5_Meb6R.js +2 -0
  8. package/dist/interface/assets/Automations-DHfPRe8W.js +2 -0
  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-BK8TqHgA.js → CameraConsole-DX-IRmd_.js} +1 -1
  12. package/dist/interface/assets/Cameras-D9m2bxWj.js +651 -0
  13. package/dist/interface/assets/Camview-DKOYY6TI.js +1 -0
  14. package/dist/interface/assets/{CertificateUpload-PfgVZa4M.js → CertificateUpload-B8ccb3n-.js} +1 -1
  15. package/dist/interface/assets/{Config-DapgreIX.js → Config-DCIUUWCv.js} +1 -1
  16. package/dist/interface/assets/{ConfigActionAssistant-v0w4E-mE.js → ConfigActionAssistant-6IUzZeNW.js} +1 -1
  17. package/dist/interface/assets/{ConfigActionCameraControl-fdrsnRyE.js → ConfigActionCameraControl-EXuiNMuG.js} +1 -1
  18. package/dist/interface/assets/{ConfigActionDelay-C_dq3ozL.js → ConfigActionDelay-Cs4sYEk-.js} +1 -1
  19. package/dist/interface/assets/{ConfigActionHttp-1hDI-38w.js → ConfigActionHttp-gUM6RQ6Y.js} +1 -1
  20. package/dist/interface/assets/{ConfigActionImageInput-DCF8qeg9.js → ConfigActionImageInput-CPl5kVgO.js} +1 -1
  21. package/dist/interface/assets/{ConfigActionMqtt-XpVD7lFg.js → ConfigActionMqtt-BeBMCOJ-.js} +1 -1
  22. package/dist/interface/assets/{ConfigActionNotification-CB1ymMRz.js → ConfigActionNotification-DJFHdFDN.js} +1 -1
  23. package/dist/interface/assets/{ConfigActionNotificationControl-BfDtLS5h.js → ConfigActionNotificationControl-BXoztPTs.js} +1 -1
  24. package/dist/interface/assets/{ConfigActionOutput-CMfXI1b3.js → ConfigActionOutput-BGrFWqZ1.js} +1 -1
  25. package/dist/interface/assets/{ConfigActionPlugin-CZo6SudQ.js → ConfigActionPlugin-CdIIMcJZ.js} +1 -1
  26. package/dist/interface/assets/{ConfigActionSensor-CetFuASa.js → ConfigActionSensor-MRVGJ22A.js} +1 -1
  27. package/dist/interface/assets/{ConfigActionSnapshot-BpPhHpIk.js → ConfigActionSnapshot-CxA4f5ag.js} +1 -1
  28. package/dist/interface/assets/{ConfigActionVariable-SJomTISn.js → ConfigActionVariable-DmU4seLh.js} +1 -1
  29. package/dist/interface/assets/{ConfigConditionIfElse-ClTxvZJz.js → ConfigConditionIfElse-Tgdrk7lo.js} +1 -1
  30. package/dist/interface/assets/{ConfigConditionSensorState-FbLmmHyP.js → ConfigConditionSensorState-CyyzoL6Q.js} +1 -1
  31. package/dist/interface/assets/{ConfigConditionSwitch--qAHkOdE.js → ConfigConditionSwitch-DprK5AbR.js} +1 -1
  32. package/dist/interface/assets/{ConfigConditionTime-BqjDUPVR.js → ConfigConditionTime-CDruEvBp.js} +1 -1
  33. package/dist/interface/assets/{ConfigSensorValueInput-B1dLcmSO.js → ConfigSensorValueInput-BhlgTOW9.js} +1 -1
  34. package/dist/interface/assets/{ConfigTriggerDetection-CMZyEWui.js → ConfigTriggerDetection-4vdEST9Y.js} +1 -1
  35. package/dist/interface/assets/{ConfigTriggerGeofence-B9JPVvhP.js → ConfigTriggerGeofence-1B0BdCOw.js} +1 -1
  36. package/dist/interface/assets/{ConfigTriggerManual-CSdF69jM.js → ConfigTriggerManual-BQLDqwZh.js} +1 -1
  37. package/dist/interface/assets/{ConfigTriggerMqtt-BzN7_xVm.js → ConfigTriggerMqtt-B3YNOB6U.js} +1 -1
  38. package/dist/interface/assets/{ConfigTriggerSchedule-BK_Ogvxn.js → ConfigTriggerSchedule-DhbJGOT7.js} +1 -1
  39. package/dist/interface/assets/{ConfigTriggerSensor-BaQklhHP.js → ConfigTriggerSensor-iMPg_Pmb.js} +1 -1
  40. package/dist/interface/assets/{ConfigTriggerSystem-DIX95l0X.js → ConfigTriggerSystem-MaNZTO3h.js} +1 -1
  41. package/dist/interface/assets/{ConfigTriggerWebhook-_EOJAgNk.js → ConfigTriggerWebhook-B3WfXjPv.js} +1 -1
  42. package/dist/interface/assets/Console-BQLINPCG.js +1 -0
  43. package/dist/interface/assets/{CuiAssistantConversation-CWCLLi3b.css → CuiAssistantConversation-DmSdiv1b.css} +1 -1
  44. package/dist/interface/assets/CuiAssistantConversation-yCRlgjtr.js +5 -0
  45. package/dist/interface/assets/{CuiAutomationRunsDialog-DpskKeEe.js → CuiAutomationRunsDialog-CJ0mzDLL.js} +1 -1
  46. package/dist/interface/assets/{CuiBottomSheet-Bg_AIuGY.js → CuiBottomSheet-BbP0T2v3.js} +1 -1
  47. package/dist/interface/assets/CuiBottomSheet-BpMMQhmJ.js +1 -0
  48. package/dist/interface/assets/CuiCameraPipCard-1EhYM5kQ.js +1 -0
  49. package/dist/interface/assets/CuiCameraRecordings-CkkHbNyY.css +1 -0
  50. package/dist/interface/assets/CuiCameraRecordings-D2jG47AV.js +1 -0
  51. package/dist/interface/assets/CuiCameraShares-IpkomKkl.js +1 -0
  52. package/dist/interface/assets/CuiCameraTable-CNclH1KS.js +1 -0
  53. package/dist/interface/assets/{CuiCameraTable-CyAYYPvd.js → CuiCameraTable-DlL-z_na.js} +2 -2
  54. package/dist/interface/assets/{CuiChartTable-BklHSjRr.js → CuiChartTable-B0EPcrgv.js} +1 -1
  55. package/dist/interface/assets/CuiChartTable-DXY7rY3O.css +1 -0
  56. package/dist/interface/assets/{CuiConsole-4rDfDj0a.js → CuiConsole-D8Xk2LXY.js} +2 -2
  57. package/dist/interface/assets/CuiDataTable-DPIbKnvU.css +1 -0
  58. package/dist/interface/assets/CuiDataTable-DtRTB560.js +1 -0
  59. package/dist/interface/assets/CuiLightControl-CtL3sA8k.js +1 -0
  60. package/dist/interface/assets/{CuiList-BafzuN0H.js → CuiList-Bn7DT_Ao.js} +1 -1
  61. package/dist/interface/assets/CuiPluginCard-B-4x6Mno.js +2 -0
  62. package/dist/interface/assets/{CuiPluginCategoryChip-B4w2DH_j.js → CuiPluginCategoryChip-Dih4zKtO.js} +1 -1
  63. package/dist/interface/assets/{CuiPluginOAuthButton-C_jxPrPQ.js → CuiPluginOAuthButton-D-Y9KYJz.js} +2 -2
  64. package/dist/interface/assets/{CuiPluginTrustBadge-pLnF2Ggn.js → CuiPluginTrustBadge-_g3Ctrg4.js} +1 -1
  65. package/dist/interface/assets/{CuiQRCode-8Q6cFdfs.js → CuiQRCode-D6hzmPzV.js} +1 -1
  66. package/dist/interface/assets/CuiSchema-Dh8Mu4BK.js +1 -0
  67. package/dist/interface/assets/{CuiTopNavbarItem-BZXzuV42.js → CuiTopNavbarItem-CgX21E5K.js} +1 -1
  68. package/dist/interface/assets/Faces-CgDoKVkp.js +1 -0
  69. package/dist/interface/assets/{FirstSteps-BNcAFp2c.js → FirstSteps-CZSTX7Ot.js} +1 -1
  70. package/dist/interface/assets/Floorplan-CRvmaf45.js +1 -0
  71. package/dist/interface/assets/{Instances-DUWWy-El.js → Instances-DRkhTQKC.js} +1 -1
  72. package/dist/interface/assets/{Logs-7CxXc2Re.js → Logs-CIDJSpdH.js} +2 -2
  73. package/dist/interface/assets/Menu-CM_F1jfd.js +1 -0
  74. package/dist/interface/assets/Metrics-DgJEg-ZK.js +9 -0
  75. package/dist/interface/assets/Metrics-Ebv4qK2a.css +1 -0
  76. package/dist/interface/assets/OAuthDeviceFlow-BZ9LcgmJ.js +1 -0
  77. package/dist/interface/assets/Plugin-BBDpg6U_.js +1 -0
  78. package/dist/interface/assets/{PluginConsole-BOaU7Ey0.js → PluginConsole-DxVlTuNy.js} +1 -1
  79. package/dist/interface/assets/PluginDetail-fLGD3R-u.js +2 -0
  80. package/dist/interface/assets/PluginSchema-CewD2H-K.js +1 -0
  81. package/dist/interface/assets/PluginSearch-5wX7WEcz.js +2 -0
  82. package/dist/interface/assets/PluginSearch-rDbuXm2z.js +1 -0
  83. package/dist/interface/assets/{PluginUpdateProgress-DFg14vV8.js → PluginUpdateProgress-B7Lj0ttd.js} +1 -1
  84. package/dist/interface/assets/Plugins-DVQ476iL.js +1 -0
  85. package/dist/interface/assets/{RecentEventsFilter-B6Ph-pxb.js → RecentEventsFilter-CWNBI2Ge.js} +1 -1
  86. package/dist/interface/assets/Recordings-DSRgRVhN.js +1 -0
  87. package/dist/interface/assets/{SensorEdit-DEenjJ8S.js → SensorEdit-B1mYmxDV.js} +1 -1
  88. package/dist/interface/assets/{SensorHistory-CU1Uwf5f.js → SensorHistory-D1kKroxp.js} +1 -1
  89. package/dist/interface/assets/{Sensors-LnVLPDWf.js → Sensors-yAc1M-oO.js} +2 -2
  90. package/dist/interface/assets/{Settings-uk3RVXCS.js → Settings-DBKgECRK.js} +1 -1
  91. package/dist/interface/assets/SettingsAccount-CM3XGNL6.js +1 -0
  92. package/dist/interface/assets/SettingsAccount-i2nzGFdV.js +1 -0
  93. package/dist/interface/assets/{SettingsAppearance-CRYcal9v.js → SettingsAppearance-C-nllv3m.js} +1 -1
  94. package/dist/interface/assets/SettingsAppearance-DCgu01FJ.js +1 -0
  95. package/dist/interface/assets/SettingsAssistant-BESab92C.css +1 -0
  96. package/dist/interface/assets/SettingsAssistant-ClRO04fv.js +1 -0
  97. package/dist/interface/assets/{SettingsBackup-CSvGqsru.js → SettingsBackup-Cq_eLVCR.js} +1 -1
  98. package/dist/interface/assets/{SettingsList-BQR6jnP-.js → SettingsList-Bklt3TQO.js} +1 -1
  99. package/dist/interface/assets/SettingsMqtt-BLkP0en6.js +1 -0
  100. package/dist/interface/assets/{SettingsNotifications-8sSoP-8S.js → SettingsNotifications-CeUKfEnH.js} +1 -1
  101. package/dist/interface/assets/{SettingsPermissions-D7kYdjfw.js → SettingsPermissions-Cpka-k3Q.js} +1 -1
  102. package/dist/interface/assets/{SettingsRecordings-DjLYqbKo.js → SettingsRecordings-k20qTe7K.js} +1 -1
  103. package/dist/interface/assets/SettingsRemote-CdUj0nZ1.js +2 -0
  104. package/dist/interface/assets/{SettingsSystem-BxQNJc8n.js → SettingsSystem-6OChvWL7.js} +2 -2
  105. package/dist/interface/assets/SettingsUsers-B57uZ8jn.js +1 -0
  106. package/dist/interface/assets/{Terminal-Bsnvs8gs.js → Terminal-WMgVSORW.js} +2 -2
  107. package/dist/interface/assets/Training-BkWlywj_.js +1 -0
  108. package/dist/interface/assets/Training-Dwf5rXyC.css +1 -0
  109. package/dist/interface/assets/{Updates-Dsn_fJ-N.js → Updates-Dwrd6PQl.js} +1 -1
  110. package/dist/interface/assets/{VariableInput-DCWiIgaZ.js → VariableInput-CDJXnzEV.js} +1 -1
  111. package/dist/interface/assets/{VariableSuggestions-BhIlXJ6r.js → VariableSuggestions-CNq7O1o-.js} +1 -1
  112. package/dist/interface/assets/{VersionsHandler-DM_Jf4EA.js → VersionsHandler-C0A8Ryhn.js} +1 -1
  113. package/dist/interface/assets/{VirtualSensorCreate-Q4kd0dfE.js → VirtualSensorCreate-zEehu8Fg.js} +1 -1
  114. package/dist/interface/assets/Workers-Be7q2vOK.js +2 -0
  115. package/dist/interface/assets/{api-LjAY3aa3.js → api-CSl3-BNZ.js} +1 -1
  116. package/dist/interface/assets/api-DcaDMCnj.css +2 -0
  117. package/dist/interface/assets/api-vegsDz6n.js +4 -0
  118. package/dist/interface/assets/{assistant-BFc44oq-.js → assistant-jARIkvB1.js} +1 -1
  119. package/dist/interface/assets/{auth-CUPvHARA.js → auth-Bov4B1jy.js} +1 -1
  120. package/dist/interface/assets/{automations-Dw4L5sT0.js → automations-CJe7TvLk.js} +1 -1
  121. package/dist/interface/assets/{cameraSources-CzENFiZx.js → cameraSources-CDiYtBzG.js} +1 -1
  122. package/dist/interface/assets/cloudHandoff-BoV37fDI.js +1 -0
  123. package/dist/interface/assets/{config-EBcNBZkb.js → config-iO2vrtak.js} +1 -1
  124. package/dist/interface/assets/{flowSchema-CdzBw69a.js → flowSchema-B0vIoy4y.js} +1 -1
  125. package/dist/interface/assets/{intercomService-DIfdcsXc.js → intercomService-IAAXcRPG.js} +1 -1
  126. package/dist/interface/assets/main-DQgH1fon.js +3 -0
  127. package/dist/interface/assets/{mqtt-D_wH18eJ.js → mqtt-DfpSLxes.js} +1 -1
  128. package/dist/interface/assets/{notifications-wLsrlI9N.js → notifications-jTSwwN1i.js} +1 -1
  129. package/dist/interface/assets/pause-B7ud2O8d.js +1 -0
  130. package/dist/interface/assets/{plugins-DwmkpOPJ.js → plugins-ChyJXprl.js} +1 -1
  131. package/dist/interface/assets/rooms-BMWJpAXC.js +1 -0
  132. package/dist/interface/assets/{sensorIcons-BY853M0u.js → sensorIcons-dUp8Tone.js} +1 -1
  133. package/dist/interface/assets/{sensorSlots-DnRJdaTG.js → sensorSlots-CosoVMys.js} +1 -1
  134. package/dist/interface/assets/{sensors-B9etOqBI.js → sensors-DLdbNuoj.js} +1 -1
  135. package/dist/interface/assets/{server-BTKgKMye.js → server-D-qkU2-U.js} +1 -1
  136. package/dist/interface/assets/{theme-CbtGvohq.js → theme-DhneHMji.js} +1 -1
  137. package/dist/interface/assets/types-CngwbyEy.js +1 -0
  138. package/dist/interface/assets/{types-CEhVWRYD.js → types-DDpq8alD.js} +1 -1
  139. package/dist/interface/assets/{types-COlvVtDn.js → types-DdyAGRju.js} +1 -1
  140. package/dist/interface/assets/{ungrouped-Dbr16vFt.css → ungrouped-DBRZ-Ori.css} +1 -1
  141. package/dist/interface/assets/ungrouped-e2tQIZD2.js +1 -0
  142. package/dist/interface/assets/{updates-BQ6Ugcup.js → updates-DnVisGT3.js} +1 -1
  143. package/dist/interface/assets/{useAppVersion-BO-3jbup.js → useAppVersion-gtzMlM4b.js} +1 -1
  144. package/dist/interface/assets/{useAssistantActions-CRVHZw4o.js → useAssistantActions-BIHVky9T.js} +1 -1
  145. package/dist/interface/assets/useBackupRestore-DfgufKp3.js +1 -0
  146. package/dist/interface/assets/{useCameraOptions-C7tgceJ1.js → useCameraOptions-B9yEPgGd.js} +1 -1
  147. package/dist/interface/assets/{useKeyboardInset-yu3BVnj7.js → useKeyboardInset-1sUlRSeV.js} +1 -1
  148. package/dist/interface/assets/{useLogsSocket-B4wTnSno.js → useLogsSocket-C2QUQqkZ.js} +1 -1
  149. package/dist/interface/assets/{useNavLayout-Z61-OsIG.js → useNavLayout-Br4MtSjQ.js} +1 -1
  150. package/dist/interface/assets/{usePermissions-Bjx4t0x3.js → usePermissions-B8pw9jk1.js} +1 -1
  151. package/dist/interface/assets/{usePluginUpdates-Dv3_XJTK.js → usePluginUpdates-Cx9PwENn.js} +1 -1
  152. package/dist/interface/assets/{usePushRegistration-CHNMZ94f.js → usePushRegistration-CLEyagJM.js} +1 -1
  153. package/dist/interface/assets/{useServerRestart-C-AsOdJP.js → useServerRestart-BBp4cko_.js} +1 -1
  154. package/dist/interface/assets/{useStreamStatus-BJoJF68x.js → useStreamStatus-BrPjpyzs.js} +1 -1
  155. package/dist/interface/assets/{useTabSwipe-b_K3BIkW.js → useTabSwipe-B4edrv6o.js} +1 -1
  156. package/dist/interface/assets/{useUpdateChannel-Cc4IrrDy.js → useUpdateChannel-DugwYo8J.js} +1 -1
  157. package/dist/interface/assets/{useUpdatesSocket-Cz9lN4Bc.js → useUpdatesSocket-CgCXGGVg.js} +1 -1
  158. package/dist/interface/assets/{useUserOptions-DrNB17kY.js → useUserOptions-DTlKtp_u.js} +1 -1
  159. package/dist/interface/assets/vendor-cameraui-D0VXSxSF.js +2326 -0
  160. package/dist/interface/assets/{vendor-core-BTkC8NzR.js → vendor-core-Ba81bBNM.js} +1 -1
  161. package/dist/interface/assets/{vendor-primevue-DQz5Qnqu.js → vendor-primevue-LZEE4d1W.js} +1 -1
  162. package/dist/interface/assets/{vendor-zod-BigRv4ty.js → vendor-zod-CBbC1rE7.js} +2 -2
  163. package/dist/interface/ha/{404-Bg2Vlt5S.js → 404-CkAIe5nc.js} +1 -1
  164. package/dist/interface/ha/{About-C6u2wgUi.js → About-C7HxP7hM.js} +6 -6
  165. package/dist/interface/ha/{Assistant-BCyiVnwD.js → Assistant-DJYxiCOY.js} +207 -192
  166. package/dist/interface/ha/{Automation-DU_qv5xD.js → Automation-CfNHCeIm.js} +191 -191
  167. package/dist/interface/ha/{AutomationImport-BpDyhabF.js → AutomationImport-Dn3C1604.js} +6 -6
  168. package/dist/interface/ha/{AutomationStore-DPQsunpH.js → AutomationStore-D63G9w2Y.js} +5 -5
  169. package/dist/interface/ha/{AutomationStoreDetail-CASMQ-mD.js → AutomationStoreDetail-HoUC8cSY.js} +13 -13
  170. package/dist/interface/ha/{Automations-DSHVzwX4.js → Automations-BOlE1Evb.js} +104 -117
  171. package/dist/interface/ha/{Camera-ESmteicm.js → Camera-6Vvo7nee.js} +234 -222
  172. package/dist/interface/ha/{CameraConsole-BE_jl4Co.js → CameraConsole-DYSNDW4P.js} +5 -5
  173. package/dist/interface/ha/{Cameras-otaj2xZO.js → Cameras-CxgwXUaG.js} +307 -307
  174. package/dist/interface/ha/{Camview-BU1027if.js → Camview-DPjoUMSP.js} +513 -513
  175. package/dist/interface/ha/{Config-BlEvHYVP.js → Config-BzBFIWVF.js} +110 -110
  176. package/dist/interface/ha/{ConfigActionAssistant-uDf5fgoJ.js → ConfigActionAssistant-BpHf4Pdi.js} +4 -4
  177. package/dist/interface/ha/{ConfigActionCameraControl-BAQsXVLz.js → ConfigActionCameraControl-CmbCTwZ8.js} +3 -3
  178. package/dist/interface/ha/{ConfigActionHttp-Dy2MZHSm.js → ConfigActionHttp-BxN2KOA6.js} +2 -2
  179. package/dist/interface/ha/{ConfigActionImageInput-B5kyV3Un.js → ConfigActionImageInput-CrXUZ-cM.js} +1 -1
  180. package/dist/interface/ha/{ConfigActionMqtt-DHCgh1xx.js → ConfigActionMqtt-DYq-6_S6.js} +4 -4
  181. package/dist/interface/ha/{ConfigActionNotification-mbA5PfcJ.js → ConfigActionNotification-DPUSAVLI.js} +3 -3
  182. package/dist/interface/ha/{ConfigActionNotificationControl-TLaL7tYm.js → ConfigActionNotificationControl-h4zta4Db.js} +2 -2
  183. package/dist/interface/ha/{ConfigActionOutput-CJ40Fniw.js → ConfigActionOutput-Dwa0-7cq.js} +1 -1
  184. package/dist/interface/ha/{ConfigActionPlugin-BwTd-mdQ.js → ConfigActionPlugin-DXx1a-Hr.js} +5 -5
  185. package/dist/interface/ha/{ConfigActionSensor-BI438ihg.js → ConfigActionSensor-CfLIHqS8.js} +5 -5
  186. package/dist/interface/ha/{ConfigActionSnapshot-DJ4zI2a0.js → ConfigActionSnapshot-O0OBVq-R.js} +2 -2
  187. package/dist/interface/ha/{ConfigActionVariable-Bhy5jf_w.js → ConfigActionVariable-CbaIxRRe.js} +1 -1
  188. package/dist/interface/ha/{ConfigConditionIfElse-I7Qq8nfN.js → ConfigConditionIfElse-B7ax92bG.js} +3 -3
  189. package/dist/interface/ha/{ConfigConditionSensorState-CTLP3ppx.js → ConfigConditionSensorState-B5XIrEGU.js} +4 -4
  190. package/dist/interface/ha/{ConfigConditionSwitch-UUupXf1b.js → ConfigConditionSwitch-DJSz6bI5.js} +5 -5
  191. package/dist/interface/ha/{ConfigSensorValueInput-CoHheDT0.js → ConfigSensorValueInput-fE2SBn1B.js} +4 -4
  192. package/dist/interface/ha/{ConfigTriggerDetection-Cg_jKNed.js → ConfigTriggerDetection-BuShu78G.js} +2 -2
  193. package/dist/interface/ha/{ConfigTriggerGeofence-WlJbu3sC.js → ConfigTriggerGeofence-pBgXBkb6.js} +5 -5
  194. package/dist/interface/ha/{ConfigTriggerMqtt-BeRJoceK.js → ConfigTriggerMqtt-Dyf_TLfU.js} +1 -1
  195. package/dist/interface/ha/{ConfigTriggerSensor-k58gVKdG.js → ConfigTriggerSensor-C5YUm9ff.js} +1 -1
  196. package/dist/interface/ha/{ConfigTriggerSystem-Ckm5yoUm.js → ConfigTriggerSystem-CylHWw4i.js} +2 -2
  197. package/dist/interface/ha/{ConfigTriggerWebhook-D425z-p1.js → ConfigTriggerWebhook-ZlHsaLu4.js} +6 -6
  198. package/dist/interface/ha/{Console-C1Ub4Rji.js → Console-PNAQjW_1.js} +100 -100
  199. package/dist/interface/ha/{CuiAutomationRunsDialog-opy5qXwE.js → CuiAutomationRunsDialog-D_q8K7QO.js} +2 -2
  200. package/dist/interface/ha/{CuiBottomSheet-DbCwVXl1.js → CuiBottomSheet-BbJG-998.js} +1 -1
  201. package/dist/interface/ha/{CuiCameraRecordings-CifJLj7G.js → CuiCameraRecordings-BSI8Yn3v.js} +14 -15
  202. package/dist/interface/ha/{CuiCameraShares-Xty8LRcn.js → CuiCameraShares-DKHZJT-z.js} +6 -6
  203. package/dist/interface/ha/{CuiCameraTable-CqfxX0Yn.js → CuiCameraTable-BTdP1pEP.js} +9 -9
  204. package/dist/interface/ha/{CuiChartTable-ABHnLdR0.js → CuiChartTable-aFRfsewt.js} +46 -44
  205. package/dist/interface/ha/{CuiConsole-3JwbeUYD.js → CuiConsole-BD9jYvrD.js} +4 -4
  206. package/dist/interface/ha/{CuiDataTable-BwE7D2h5.js → CuiDataTable-C2lOduPV.js} +16 -10
  207. package/dist/interface/ha/{CuiPluginCard-bzxiy1yb.js → CuiPluginCard-C-gpcLCH.js} +78 -78
  208. package/dist/interface/ha/{CuiPluginOAuthButton-DSxrzDmg.js → CuiPluginOAuthButton-B763Rz1n.js} +6 -6
  209. package/dist/interface/ha/{CuiPluginTrustBadge-g0XkvDt8.js → CuiPluginTrustBadge-j5PKYI-V.js} +1 -1
  210. package/dist/interface/ha/{CuiQRCode-uyRFbzd6.js → CuiQRCode-D7WV4czh.js} +6 -6
  211. package/dist/interface/ha/{CuiSchema-DZIrlY8R.js → CuiSchema-BfsT0mAh.js} +155 -155
  212. package/dist/interface/ha/{CuiTopNavbarItem-C3a5NA7u.js → CuiTopNavbarItem-BwpXgGJ-.js} +1 -1
  213. package/dist/interface/ha/{Faces-D2eca8MN.js → Faces-C0e-m9EY.js} +109 -109
  214. package/dist/interface/ha/{FirstSteps-CdTE1cvw.js → FirstSteps-DsDmM44G.js} +8 -8
  215. package/dist/interface/ha/{Floorplan-BrEC2Au5.js → Floorplan-Bei9kIhS.js} +288 -288
  216. package/dist/interface/ha/{Instances-ClOsPOi8.js → Instances-BY5G1zFD.js} +70 -70
  217. package/dist/interface/ha/{Logs-DnY1gTnb.js → Logs-DDycObDv.js} +12 -12
  218. package/dist/interface/ha/{Menu-cLDE76XZ.js → Menu-9r_oFG_-.js} +15 -20
  219. package/dist/interface/ha/{Metrics-pMQX_0m1.js → Metrics-BMTIXqn6.js} +296 -292
  220. package/dist/interface/ha/{OAuthDeviceFlow-D1PGQ8r9.js → OAuthDeviceFlow-Dee5fynX.js} +9 -9
  221. package/dist/interface/ha/{Plugin-DiC23P97.js → Plugin-B5o4pLyu.js} +106 -106
  222. package/dist/interface/ha/{PluginConsole-B-lX5KJu.js → PluginConsole-REtxP1Wi.js} +4 -4
  223. package/dist/interface/ha/{PluginDetail-B_tVJf6y.js → PluginDetail-BHrKifvP.js} +6 -6
  224. package/dist/interface/ha/{PluginSearch-n8nfjx9q.js → PluginSearch-oNHMMeJD.js} +32 -32
  225. package/dist/interface/ha/{PluginUpdateProgress-BjsYyrRk.js → PluginUpdateProgress-CqllA4eR.js} +3 -3
  226. package/dist/interface/ha/{Plugins-CFhOUaqq.js → Plugins-B6y7z5yD.js} +55 -55
  227. package/dist/interface/ha/{Recordings-B07eUJwH.js → Recordings-CyhOVNoM.js} +250 -275
  228. package/dist/interface/ha/{SensorEdit-DFPiBXQD.js → SensorEdit-CnUU2PEv.js} +58 -58
  229. package/dist/interface/ha/{SensorHistory-B2FOK4Qa.js → SensorHistory-z5hDuybW.js} +2 -2
  230. package/dist/interface/ha/{Sensors-DtzmTc-L.js → Sensors-wpoB-X4r.js} +519 -519
  231. package/dist/interface/ha/{Settings-ClqSoFjT.js → Settings-C6wTksxb.js} +22 -22
  232. package/dist/interface/ha/{SettingsAccount-Bh8FfH7J.js → SettingsAccount-DByg5uzj.js} +175 -175
  233. package/dist/interface/ha/{SettingsAppearance--FJgY8cj.js → SettingsAppearance-QgPo4M8O.js} +6 -6
  234. package/dist/interface/ha/{SettingsAssistant-ClDfxd_d.js → SettingsAssistant-Bg4BhUgb.js} +603 -496
  235. package/dist/interface/ha/{SettingsBackup-BYM55pQ7.js → SettingsBackup-BgtZSRub.js} +41 -41
  236. package/dist/interface/ha/{SettingsList-CMSEKVCD.js → SettingsList-DB3j7buh.js} +1 -1
  237. package/dist/interface/ha/{SettingsMqtt-CFpgJ-E5.js → SettingsMqtt-DVx0z8vf.js} +149 -149
  238. package/dist/interface/ha/{SettingsNotifications-CzgsBNtW.js → SettingsNotifications-osO2kMMO.js} +4 -4
  239. package/dist/interface/ha/{SettingsRecordings-Bz686yU7.js → SettingsRecordings-BFEp160g.js} +4 -4
  240. package/dist/interface/ha/{SettingsRemote-DT4ZMjJO.js → SettingsRemote-DQW4FhFn.js} +303 -303
  241. package/dist/interface/ha/{SettingsSystem-CHctt06D.js → SettingsSystem-Cs1MHOTi.js} +9 -9
  242. package/dist/interface/ha/{SettingsUsers-C_hvntON.js → SettingsUsers-BtbuHlRZ.js} +31 -31
  243. package/dist/interface/ha/{Terminal-B5FXq4-Z.js → Terminal-BuXCoMle.js} +8 -8
  244. package/dist/interface/ha/Training-CnsWyeaJ.js +1505 -0
  245. package/dist/interface/ha/{Updates-D0osNjqS.js → Updates-BxU1Jpru.js} +13 -13
  246. package/dist/interface/ha/{VariableInput-BK0qqMc7.js → VariableInput-DgENnHvk.js} +1 -1
  247. package/dist/interface/ha/{VersionsHandler-B-vpKHJN.js → VersionsHandler-DQTSSqti.js} +10 -10
  248. package/dist/interface/ha/{VirtualSensorCreate-Bp2201iM.js → VirtualSensorCreate-Bsr6zTQp.js} +2 -2
  249. package/dist/interface/ha/{Workers-BQ_luGWk.js → Workers-0jZDuLbP.js} +93 -93
  250. package/dist/interface/ha/{api-BufZW7-A.js → api-B8xb-N_g.js} +1 -1
  251. package/dist/interface/ha/{api-JPS8NpNG.js → api-VnpXqKYj.js} +11331 -10921
  252. package/dist/interface/ha/{assistant-BXVGCw2q.js → assistant-DDwonneA.js} +11 -11
  253. package/dist/interface/ha/{auth-CJC9G9BA.js → auth-CXX7ago-.js} +38 -38
  254. package/dist/interface/ha/{automationBlueprint-DWuBiu_Q.js → automationBlueprint-BUkXOKb1.js} +3 -3
  255. package/dist/interface/ha/cameraui-cards.js +1 -1
  256. package/dist/interface/ha/{cards-CGP6dWjy.js → cards-CMel6uVq.js} +641 -639
  257. package/dist/interface/ha/{config-BVURO_DZ.js → config-9vwosYC8.js} +5 -5
  258. package/dist/interface/ha/{dist-Ca4K4HIm.js → dist-jxJIsKjm.js} +307 -283
  259. package/dist/interface/ha/{mqtt-DY6EvMC9.js → mqtt-Fm_GzbBi.js} +5 -5
  260. package/dist/interface/ha/{notifications-BdIqgnrC.js → notifications-CwSeoLx0.js} +7 -7
  261. package/dist/interface/ha/pause-Ch6v65wA.js +19 -0
  262. package/dist/interface/ha/{pinia-CqffEnzx.js → pinia-D2fpp6nV.js} +161 -150
  263. package/dist/interface/ha/{plugins-Bnq2Iw00.js → plugins-CgqO91Hg.js} +18 -18
  264. package/dist/interface/ha/{rooms-AiJ5Tfir.js → rooms-DGnhPCGr.js} +1 -1
  265. package/dist/interface/ha/{server-BHhFn2RZ.js → server-BqNJbXKJ.js} +8 -8
  266. package/dist/interface/ha/{types-7oMK8VO-.js → types-Ca-1kOA9.js} +32 -18
  267. package/dist/interface/ha/{ungrouped-hib17Nvu.js → ungrouped-B1RIFH36.js} +109 -127
  268. package/dist/interface/ha/{updates-DvnEEUsx.js → updates-Dn9WR43I.js} +10 -10
  269. package/dist/interface/ha/{useAppVersion-BmWXr96y.js → useAppVersion-FMZfQhEd.js} +1 -1
  270. package/dist/interface/ha/{useLogsSocket-BKlJKGCB.js → useLogsSocket-Ch8C8inE.js} +1 -1
  271. package/dist/interface/ha/{useNavLayout-Dt0NH-G5.js → useNavLayout-DPjjtXVR.js} +2 -2
  272. package/dist/interface/ha/{useServerRestart-DWs2dqQc.js → useServerRestart-DoozgL8o.js} +1 -1
  273. package/dist/interface/ha/{useTabSwipe-vX79p6V_.js → useTabSwipe-CxXAmZNc.js} +1 -1
  274. package/dist/interface/ha/{useUpdateChannel-CHlRp8uj.js → useUpdateChannel-CBwS4cI2.js} +2 -2
  275. package/dist/interface/ha/{useUpdatesSocket-B40Cx-2L.js → useUpdatesSocket-GrlBqyU4.js} +1 -1
  276. package/dist/interface/ha/{useUserOptions-hXz79rIV.js → useUserOptions-54hnf6hX.js} +1 -1
  277. package/dist/interface/index.html +34 -34
  278. package/dist/interface/sw.js +1 -1
  279. package/dist/server/package.json +10 -11
  280. package/dist/server/requirements.txt +1 -1
  281. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/__init__.py +2 -0
  282. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/__init__.py +2 -0
  283. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/frames.py +9 -5
  284. package/dist/server/src/api/controllers/assistant.controller.js +2 -1
  285. package/dist/server/src/api/controllers/assistant.controller.js.map +1 -1
  286. package/dist/server/src/api/controllers/plugins.controller.js +3 -3
  287. package/dist/server/src/api/controllers/plugins.controller.js.map +1 -1
  288. package/dist/server/src/api/database/index.d.ts +1 -1
  289. package/dist/server/src/api/database/index.js +1 -1
  290. package/dist/server/src/api/database/index.js.map +1 -1
  291. package/dist/server/src/api/database/migrations/v2-2-3.d.ts +3 -0
  292. package/dist/server/src/api/database/migrations/v2-2-3.js +22 -0
  293. package/dist/server/src/api/database/migrations/v2-2-3.js.map +1 -0
  294. package/dist/server/src/api/database/record-schemas.d.ts +10 -10
  295. package/dist/server/src/api/schemas/cameras.schema.d.ts +54 -38
  296. package/dist/server/src/api/schemas/cameras.schema.js +5 -5
  297. package/dist/server/src/api/schemas/cameras.schema.js.map +1 -1
  298. package/dist/server/src/api/schemas/users.schema.d.ts +70 -70
  299. package/dist/server/src/api/websocket/nsp/logs.d.ts +5 -2
  300. package/dist/server/src/api/websocket/nsp/logs.js +20 -5
  301. package/dist/server/src/api/websocket/nsp/logs.js.map +1 -1
  302. package/dist/server/src/api/websocket/nsp/metrics.d.ts +0 -1
  303. package/dist/server/src/api/websocket/nsp/metrics.js +2 -48
  304. package/dist/server/src/api/websocket/nsp/metrics.js.map +1 -1
  305. package/dist/server/src/api/websocket/nsp/training.d.ts +1 -1
  306. package/dist/server/src/api/websocket/nsp/training.js +3 -2
  307. package/dist/server/src/api/websocket/nsp/training.js.map +1 -1
  308. package/dist/server/src/api/websocket/nsp/worker-perf.d.ts +3 -0
  309. package/dist/server/src/api/websocket/nsp/worker-perf.js +58 -0
  310. package/dist/server/src/api/websocket/nsp/worker-perf.js.map +1 -0
  311. package/dist/server/src/api/websocket/types.d.ts +1 -0
  312. package/dist/server/src/assistant/manager.d.ts +1 -0
  313. package/dist/server/src/assistant/manager.js +24 -2
  314. package/dist/server/src/assistant/manager.js.map +1 -1
  315. package/dist/server/src/assistant/reasoning.d.ts +1 -1
  316. package/dist/server/src/assistant/reasoning.js +6 -3
  317. package/dist/server/src/assistant/reasoning.js.map +1 -1
  318. package/dist/server/src/assistant/retry.d.ts +4 -0
  319. package/dist/server/src/assistant/retry.js +3 -0
  320. package/dist/server/src/assistant/retry.js.map +1 -1
  321. package/dist/server/src/assistant/search.d.ts +11 -11
  322. package/dist/server/src/assistant/tool-names.d.ts +2 -0
  323. package/dist/server/src/assistant/tool-names.js +23 -0
  324. package/dist/server/src/assistant/tool-names.js.map +1 -0
  325. package/dist/server/src/assistant/tools/api.js +2 -0
  326. package/dist/server/src/assistant/tools/api.js.map +1 -1
  327. package/dist/server/src/assistant/tools/docs.js +1 -0
  328. package/dist/server/src/assistant/tools/docs.js.map +1 -1
  329. package/dist/server/src/assistant/tools/memory.js +1 -0
  330. package/dist/server/src/assistant/tools/memory.js.map +1 -1
  331. package/dist/server/src/assistant/tools/settings.js +1 -0
  332. package/dist/server/src/assistant/tools/settings.js.map +1 -1
  333. package/dist/server/src/automations/utilities/imageInput.js +4 -2
  334. package/dist/server/src/automations/utilities/imageInput.js.map +1 -1
  335. package/dist/server/src/camera/controller.d.ts +3 -0
  336. package/dist/server/src/camera/controller.js +41 -28
  337. package/dist/server/src/camera/controller.js.map +1 -1
  338. package/dist/server/src/camera/decoder/detection-coordinator.d.ts +6 -0
  339. package/dist/server/src/camera/decoder/detection-coordinator.js +117 -20
  340. package/dist/server/src/camera/decoder/detection-coordinator.js.map +1 -1
  341. package/dist/server/src/camera/decoder/detection-pipeline.d.ts +3 -1
  342. package/dist/server/src/camera/decoder/detection-pipeline.js +4 -0
  343. package/dist/server/src/camera/decoder/detection-pipeline.js.map +1 -1
  344. package/dist/server/src/camera/decoder/event-manager.d.ts +1 -0
  345. package/dist/server/src/camera/decoder/event-manager.js +5 -2
  346. package/dist/server/src/camera/decoder/event-manager.js.map +1 -1
  347. package/dist/server/src/camera/decoder/event-thumbnailer.d.ts +4 -0
  348. package/dist/server/src/camera/decoder/event-thumbnailer.js +3 -0
  349. package/dist/server/src/camera/decoder/event-thumbnailer.js.map +1 -1
  350. package/dist/server/src/camera/decoder/event-trace.d.ts +2 -0
  351. package/dist/server/src/camera/decoder/event-trace.js +9 -5
  352. package/dist/server/src/camera/decoder/event-trace.js.map +1 -1
  353. package/dist/server/src/camera/decoder/perf-tracker.d.ts +5 -1
  354. package/dist/server/src/camera/decoder/perf-tracker.js +10 -2
  355. package/dist/server/src/camera/decoder/perf-tracker.js.map +1 -1
  356. package/dist/server/src/camera/decoder/types.d.ts +5 -1
  357. package/dist/server/src/camera/decoder/types.js.map +1 -1
  358. package/dist/server/src/camera/index.d.ts +1 -7
  359. package/dist/server/src/camera/index.js +0 -13
  360. package/dist/server/src/camera/index.js.map +1 -1
  361. package/dist/server/src/camera/privacy/snapshot.js +4 -2
  362. package/dist/server/src/camera/privacy/snapshot.js.map +1 -1
  363. package/dist/server/src/camera/snapshot-store.d.ts +22 -0
  364. package/dist/server/src/camera/snapshot-store.js +78 -0
  365. package/dist/server/src/camera/snapshot-store.js.map +1 -0
  366. package/dist/server/src/camera/streaming/fmp4-session.d.ts +2 -1
  367. package/dist/server/src/camera/streaming/fmp4-session.js +4 -0
  368. package/dist/server/src/camera/streaming/fmp4-session.js.map +1 -1
  369. package/dist/server/src/camera/streaming/rtp-session.js +1 -0
  370. package/dist/server/src/camera/streaming/rtp-session.js.map +1 -1
  371. package/dist/server/src/manager/trainingCandidateManager.js +17 -13
  372. package/dist/server/src/manager/trainingCandidateManager.js.map +1 -1
  373. package/dist/server/src/manager/types.d.ts +4 -0
  374. package/dist/server/src/rpc/interfaces/detection.d.ts +1 -0
  375. package/dist/server/src/rpc/interfaces/device.d.ts +1 -0
  376. package/dist/server/src/sensors/registry.d.ts +1 -0
  377. package/dist/server/src/sensors/registry.js +11 -5
  378. package/dist/server/src/sensors/registry.js.map +1 -1
  379. package/dist/server/src/sensors/sensor.js +2 -3
  380. package/dist/server/src/sensors/sensor.js.map +1 -1
  381. package/dist/server/src/sensors/types.d.ts +2 -1
  382. package/dist/server/src/sensors/types.js +7 -1
  383. package/dist/server/src/sensors/types.js.map +1 -1
  384. package/dist/server/src/utils/image.d.ts +1 -0
  385. package/dist/server/src/utils/image.js +95 -0
  386. package/dist/server/src/utils/image.js.map +1 -0
  387. package/package.json +10 -11
  388. package/dist/interface/assets/AutomationStoreDetail-btcIglkw.js +0 -2
  389. package/dist/interface/assets/Automations-CKpwXTyc.js +0 -2
  390. package/dist/interface/assets/Camera-BEP_HAQm.js +0 -2
  391. package/dist/interface/assets/Camera-gYRy6ECP.css +0 -1
  392. package/dist/interface/assets/Cameras-DJreIgtW.js +0 -651
  393. package/dist/interface/assets/Camview-D4VNMv_l.js +0 -1
  394. package/dist/interface/assets/Console-Y1IutnkC.js +0 -1
  395. package/dist/interface/assets/CuiAssistantConversation-C4RYcMAM.js +0 -5
  396. package/dist/interface/assets/CuiBottomSheet-S8bM23jj.js +0 -1
  397. package/dist/interface/assets/CuiCameraPipCard-HTjvF3yG.js +0 -1
  398. package/dist/interface/assets/CuiCameraRecordings-B7BhgPpP.css +0 -1
  399. package/dist/interface/assets/CuiCameraRecordings-Cx6FYz3Y.js +0 -1
  400. package/dist/interface/assets/CuiCameraShares-J728G9wF.js +0 -1
  401. package/dist/interface/assets/CuiCameraTable-CKur0qLE.js +0 -1
  402. package/dist/interface/assets/CuiChartTable-DCGY-zVy.css +0 -1
  403. package/dist/interface/assets/CuiDataTable-BLyeEEAp.js +0 -1
  404. package/dist/interface/assets/CuiDataTable-DbkFXZeg.css +0 -1
  405. package/dist/interface/assets/CuiLightControl-C1YSJSWd.js +0 -1
  406. package/dist/interface/assets/CuiPluginCard-enc00hbc.js +0 -2
  407. package/dist/interface/assets/CuiSchema-CRHUMY0B.js +0 -1
  408. package/dist/interface/assets/Faces-fMMd6-PY.js +0 -1
  409. package/dist/interface/assets/Floorplan-BQbOWCCf.js +0 -1
  410. package/dist/interface/assets/Menu-B3VA0LMx.js +0 -1
  411. package/dist/interface/assets/Metrics-C0q2BdKH.js +0 -9
  412. package/dist/interface/assets/Metrics-DX59XXDc.css +0 -1
  413. package/dist/interface/assets/OAuthDeviceFlow-ZiCl4400.js +0 -1
  414. package/dist/interface/assets/Plugin-C0CPlt4f.js +0 -1
  415. package/dist/interface/assets/PluginDetail-DDh6PfMd.js +0 -2
  416. package/dist/interface/assets/PluginSchema-BWlRMPo6.js +0 -1
  417. package/dist/interface/assets/PluginSearch-BR_ei8Pa.js +0 -1
  418. package/dist/interface/assets/PluginSearch-C2AXz2KG.js +0 -2
  419. package/dist/interface/assets/Plugins-CN1YIfNk.js +0 -1
  420. package/dist/interface/assets/Recordings-jhxwdrQY.js +0 -1
  421. package/dist/interface/assets/SettingsAccount-CJ_fPrT-.js +0 -1
  422. package/dist/interface/assets/SettingsAccount-CYn81m0Z.js +0 -1
  423. package/dist/interface/assets/SettingsAppearance-DFe8JsT5.js +0 -1
  424. package/dist/interface/assets/SettingsAssistant-CDyI6fee.css +0 -1
  425. package/dist/interface/assets/SettingsAssistant-Dm4oINqB.js +0 -1
  426. package/dist/interface/assets/SettingsMqtt-ByQYIRkm.js +0 -1
  427. package/dist/interface/assets/SettingsRemote-7iDccnV9.js +0 -2
  428. package/dist/interface/assets/SettingsUsers-yYobKcPv.js +0 -1
  429. package/dist/interface/assets/Training-BUhrkDzA.css +0 -1
  430. package/dist/interface/assets/Training-SOWa6Ay1.js +0 -1
  431. package/dist/interface/assets/Workers-D7mXpfvC.js +0 -2
  432. package/dist/interface/assets/api-BKiE8A_V.css +0 -2
  433. package/dist/interface/assets/api-Cl7JjXOQ.js +0 -4
  434. package/dist/interface/assets/cloudHandoff-CGMLCwMb.js +0 -1
  435. package/dist/interface/assets/main-W8WcKa2g.js +0 -3
  436. package/dist/interface/assets/rooms-D_7As09p.js +0 -1
  437. package/dist/interface/assets/types-BEy4uGJ0.js +0 -1
  438. package/dist/interface/assets/ungrouped-BJyBDv5e.js +0 -1
  439. package/dist/interface/assets/useBackupRestore-D305pYHT.js +0 -1
  440. package/dist/interface/assets/vendor-cameraui-CqKq4Yeo.js +0 -2326
  441. package/dist/interface/ha/Training-BgvpsKPM.js +0 -1469
@@ -3,28 +3,28 @@ 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, Dr as se, Ft as ce, Ir as le, It as ue, J as de, Kt as fe, Lt as O, Mt as pe, Nt as me, Or as he, Ot as k, Pt as ge, Tn as A, Yi as j, er as _e, jt as ve, kt as ye, li as be, lr as xe, mt as Se, o as M, p as N, pn as Ce, pt as we, rr as P, sn as Te, vi as F, vr as I, yr as L, zr as Ee } from "./api-JPS8NpNG.js";
7
- import { n as De } from "./vue-i18n-BBObX4QY.js";
8
- import { o as R } from "./dist-BTp4AyuI.js";
9
- import { t as Oe } from "./button-DJDZxmKj.js";
10
- import { v as ke } from "./dist-Ca4K4HIm.js";
11
- import { t as Ae } from "./inputtext-vdcrNX6K.js";
12
- import { t as je } from "./close-C_ajB9j7.js";
13
- import { t as Me } from "./divider-Cf59Ua0f.js";
14
- import { t as Ne } from "./select-CaVzuLaS.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
+ import { n as Oe } from "./vue-i18n-BBObX4QY.js";
8
+ import { o as L } from "./dist-BTp4AyuI.js";
9
+ import { t as ke } from "./button-DJDZxmKj.js";
10
+ import { v as Ae } from "./dist-jxJIsKjm.js";
11
+ import { t as je } from "./inputtext-vdcrNX6K.js";
12
+ import { t as Me } from "./close-C_ajB9j7.js";
13
+ import { t as Ne } from "./divider-Cf59Ua0f.js";
14
+ 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-DbCwVXl1.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-CGP6dWjy.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-AiJ5Tfir.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
@@ -316,7 +316,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
316
316
  }, $t = { class: "cui-label" }, en = { class: "flex flex-col field-gap" }, $ = { class: "cui-label" }, tn = { class: "text-color font-normal text-sm" }, nn = { class: "flex flex-col gap-6" }, rn = { class: "flex flex-col field-gap" }, an = { class: "cui-label" }, on = { class: "flex flex-col field-gap" }, sn = { class: "cui-label" }, cn = { class: "text-color font-normal text-sm" }, ln = { class: "flex flex-col gap-6" }, un = { class: "flex flex-col field-gap" }, dn = { class: "cui-label" }, fn = { class: "flex flex-col field-gap" }, pn = { class: "cui-label" }, mn = { class: "flex flex-col field-gap" }, hn = { class: "cui-label" }, gn = {
317
317
  key: 0,
318
318
  class: "p-4 border-top-color"
319
- }, _n = /*#__PURE__*/ I(/* @__PURE__ */ C({
319
+ }, _n = /*#__PURE__*/ De(/* @__PURE__ */ C({
320
320
  __name: "CuiFloorplanInspector",
321
321
  props: {
322
322
  fluid: { type: Boolean },
@@ -337,7 +337,7 @@ var bt = { class: "h-full flex flex-col overflow-hidden" }, Z = { class: "flex i
337
337
  "remove"
338
338
  ],
339
339
  setup(e, { emit: t }) {
340
- let n = e, a = t, { t: o } = De(), c = w(["general", "view"]), l = h(() => n.selection?.kind === "room" ? n.rooms.find((e) => e.id === n.selection?.id) : void 0), f = h(() => n.selection?.kind === "camera" ? n.cameras.find((e) => e.id === n.selection?.id) : void 0), p = h(() => n.levels.map((e) => ({
340
+ let n = e, a = t, { t: o } = Oe(), c = w(["general", "view"]), l = h(() => n.selection?.kind === "room" ? n.rooms.find((e) => e.id === n.selection?.id) : void 0), f = h(() => n.selection?.kind === "camera" ? n.cameras.find((e) => e.id === n.selection?.id) : void 0), p = h(() => n.levels.map((e) => ({
341
341
  label: e.name,
342
342
  value: e.id
343
343
  }))), ee = h(() => l.value?.outdoor ? l.value.publicSpace ? "public" : "outdoor" : "indoor"), v = h(() => [
@@ -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 = je, he = Oe, k = Ie, ge = Ne, A = ae, j = Ae, ve = ze, ye = Pe, be = Fe, xe = _e, Se = 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(Se, {
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(be, {
463
+ m(l) ? (r(), u(ve, {
464
464
  key: 0,
465
465
  value: "general"
466
466
  }, {
467
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(ye, { 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(ge, {
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(j, {
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(ge, {
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(ge, {
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(ve, {
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(be, {
580
+ m(E) ? (r(), u(ve, {
581
581
  key: 1,
582
582
  value: "general"
583
583
  }, {
584
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(ye, { 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(ge, {
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(xe, {
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(ve, {
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(be, {
677
+ m(C) ? (r(), u(ve, {
678
678
  key: 2,
679
679
  value: "general"
680
680
  }, {
681
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(ye, { 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(ge, {
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(ge, {
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(ve, {
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(be, { value: "general" }, {
752
+ m(f) ? (r(), _(y, { key: 3 }, [T(ve, { value: "general" }, {
753
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(ye, { 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(ge, {
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(ve, {
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(be, { value: "view" }, {
807
+ }), T(ve, { value: "view" }, {
808
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(ye, { 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(xe, {
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(xe, {
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(xe, {
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,
@@ -1030,7 +1030,7 @@ var Cn = l({
1030
1030
  width: "46",
1031
1031
  height: "46",
1032
1032
  viewBox: "0 0 46 46"
1033
- }, Dr = ["transform"], Or = { class: "flex flex-col overflow-hidden floorplan-controls" }, kr = { class: "floorplan-scale flex items-center gap-2 px-2 py-1" }, Ar = ["width"], jr = ["d"], Mr = { class: "text-xs text-muted whitespace-nowrap" }, Nr = 60, Pr = /*#__PURE__*/ I(/* @__PURE__ */ C({
1033
+ }, Dr = ["transform"], Or = { class: "flex flex-col overflow-hidden floorplan-controls" }, kr = { class: "floorplan-scale flex items-center gap-2 px-2 py-1" }, Ar = ["width"], jr = ["d"], Mr = { class: "text-xs text-muted whitespace-nowrap" }, Nr = 60, Pr = /*#__PURE__*/ De(/* @__PURE__ */ C({
1034
1034
  __name: "CuiFloorplanCanvas",
1035
1035
  props: {
1036
1036
  mobile: { type: Boolean },
@@ -1068,14 +1068,14 @@ var Cn = l({
1068
1068
  let p = a, S = f, ne = te("wrapperRef"), C = w(!1), re = w(!1), ae = te("compassRef"), D = w({
1069
1069
  x: null,
1070
1070
  y: null
1071
- }), oe = w(null), se = w(null), le = w(null), ue = w(null), de = /* @__PURE__ */ new Set(["motion", "audio"]), fe = /* @__PURE__ */ new Set([
1071
+ }), oe = w(null), se = w(null), ce = w(null), le = w(null), de = /* @__PURE__ */ new Set(["motion", "audio"]), fe = /* @__PURE__ */ new Set([
1072
1072
  "object",
1073
1073
  "face",
1074
1074
  "licensePlate",
1075
1075
  "classifier",
1076
1076
  "objectAssist",
1077
1077
  "clip"
1078
- ]), O = null, he = !1, k = null, { viewport: ge, zoomIn: A, zoomOut: j, fitBounds: _e } = z(), { sensors: ye } = ke(), be = h(() => p.sensors.filter((e) => e.levelId === p.levelId)), xe = 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
1080
  for (let t of ye.value) {
1081
1081
  let n = String(t.type), r = de.has(n), i = fe.has(n);
@@ -1091,22 +1091,22 @@ var Cn = l({
1091
1091
  }
1092
1092
  return e;
1093
1093
  }), Se = h(() => {
1094
- let e = F.value.find((e) => e.id === ue.value);
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)}`;
1097
1097
  return {
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(() => ge.value.zoom), N = h(() => ({
1104
- x: ge.value.x,
1105
- y: ge.value.y
1106
- })), we = h(() => p.north ?? 0), P = h(() => p.readOnly === !0 || C.value), F = h(() => p.rooms.filter((e) => e.levelId === p.levelId)), I = h(() => p.cameras.filter((e) => e.levelId === p.levelId)), L = h(() => {
1103
+ }), N = h(() => j.value.zoom), we = h(() => ({
1104
+ x: j.value.x,
1105
+ y: j.value.y
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);
1109
- for (let e of I.value) t.push(e.x - e.range, e.x + e.range), n.push(e.y - e.range, e.y + e.range);
1109
+ for (let e of Ee.value) t.push(e.x - e.range, e.x + e.range), n.push(e.y - e.range, e.y + e.range);
1110
1110
  let r = Math.min(...t) - e, i = Math.min(...n) - e;
1111
1111
  return {
1112
1112
  x: r,
@@ -1114,7 +1114,7 @@ var Cn = l({
1114
1114
  width: Math.max(...t) + e - r,
1115
1115
  height: Math.max(...n) + e - i
1116
1116
  };
1117
- }), Ee = [{
1117
+ }), De = [{
1118
1118
  id: "scene",
1119
1119
  type: "scene",
1120
1120
  position: {
@@ -1124,7 +1124,7 @@ var Cn = l({
1124
1124
  draggable: !1,
1125
1125
  selectable: !1,
1126
1126
  data: {}
1127
- }], De = h(() => p.selection?.kind === "room" ? F.value.find((e) => e.id === p.selection?.id) : void 0), R = h(() => p.selection?.kind === "camera" ? I.value.find((e) => e.id === p.selection?.id) : void 0), Oe = h(() => M.value >= .45), Ae = 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,22 +1133,22 @@ 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
- }), je = h(() => p.connections.map((e) => ({
1142
+ }), Me = h(() => p.connections.map((e) => ({
1143
1143
  connection: e,
1144
1144
  geometry: mt(e, p.rooms, p.levelId)
1145
- })).filter((e) => e.geometry !== null)), Me = h(() => new Map([...Ne.value].map(([e, t]) => [e, G(t.reduce((e, t) => t.width * t.height > e.width * e.height ? t : e))]))), Ne = h(() => {
1145
+ })).filter((e) => e.geometry !== null)), Ne = h(() => new Map([...R.value].map(([e, t]) => [e, G(t.reduce((e, t) => t.width * t.height > e.width * e.height ? t : e))]))), R = h(() => {
1146
1146
  let e = /* @__PURE__ */ new Map();
1147
1147
  for (let t of F.value) e.set(t.roomId, [...e.get(t.roomId) ?? [], t]);
1148
1148
  return e;
1149
1149
  }), Pe = h(() => {
1150
1150
  let e = /* @__PURE__ */ new Map();
1151
- for (let t of je.value) {
1151
+ for (let t of Me.value) {
1152
1152
  if (t.geometry.kind !== "edge") continue;
1153
1153
  let n = {
1154
1154
  x1: t.geometry.x1,
@@ -1159,38 +1159,38 @@ var Cn = l({
1159
1159
  for (let r of [t.connection.fromRoomId, t.connection.toRoomId]) e.set(r, [...e.get(r) ?? [], n]);
1160
1160
  }
1161
1161
  return e;
1162
- }), Fe = h(() => [...Ne.value].map(([e, t]) => ({
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))
1169
1169
  })).sort((e, t) => Number(e.selected) - Number(t.selected))), Ie = h(() => {
1170
1170
  let e = /* @__PURE__ */ new Map();
1171
- for (let t of Ne.value.keys()) e.set(t, t);
1171
+ for (let t of R.value.keys()) e.set(t, t);
1172
1172
  let t = (t) => {
1173
1173
  let n = t;
1174
1174
  for (; e.get(n) !== n;) n = e.get(n);
1175
1175
  return n;
1176
- }, n = (e) => (Ne.value.get(e) ?? []).every((e) => e.outdoor);
1176
+ }, n = (e) => (R.value.get(e) ?? []).every((e) => e.outdoor);
1177
1177
  for (let r of p.connections) {
1178
1178
  if (!e.has(r.fromRoomId) || !e.has(r.toRoomId) || !n(r.fromRoomId) || !n(r.toRoomId)) continue;
1179
1179
  let i = t(r.fromRoomId), a = t(r.toRoomId);
1180
1180
  i !== a && e.set(i, a);
1181
1181
  }
1182
1182
  let r = /* @__PURE__ */ new Map();
1183
- for (let [e, n] of Ne.value) {
1183
+ for (let [e, n] of R.value) {
1184
1184
  let i = t(e);
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);
1189
- return [...Ne.value.keys()].map((e) => ({
1188
+ for (let [e, t] of r) i.set(e, ht(t, 8 / N.value, []).fill);
1189
+ return [...R.value.keys()].map((e) => ({
1190
1190
  roomId: e,
1191
1191
  path: i.get(t(e)) ?? ""
1192
1192
  }));
1193
- }), Le = h(() => je.value.flatMap((e) => {
1193
+ }), Le = h(() => Me.value.flatMap((e) => {
1194
1194
  if (e.geometry.kind !== "edge") return [];
1195
1195
  let { x1: t, y1: n, x2: r, y2: i, wall: a } = e.geometry;
1196
1196
  return [{
@@ -1207,7 +1207,7 @@ var Cn = l({
1207
1207
  }]
1208
1208
  }];
1209
1209
  })), Re = h(() => {
1210
- let e = De.value;
1210
+ let e = Oe.value;
1211
1211
  return !e || P.value ? [] : F.value.filter((t) => t.roomId !== e.roomId).map((t) => ({
1212
1212
  other: t,
1213
1213
  wall: ft(e, t)
@@ -1243,21 +1243,21 @@ 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
- for (let e of je.value) e.geometry.kind === "badge" && n(e.geometry.roomId, e.geometry.shapeId, e.connection.id, W(e.connection, e.geometry.roomId));
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));
1258
1258
  return Ve.value && n(Ve.value.roomId, Ve.value.shapeId, void 0, void 0), e;
1259
1259
  }), Ve = h(() => {
1260
- let e = De.value;
1260
+ let e = Oe.value;
1261
1261
  if (!e || P.value) return null;
1262
1262
  let t = new Set(p.connections.flatMap((e) => [e.fromRoomId, e.toRoomId].join("|")));
1263
1263
  return p.rooms.some((n) => n.levelId !== e.levelId && !t.has([e.roomId, n.roomId].join("|")) && !t.has([n.roomId, e.roomId].join("|"))) ? {
@@ -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(I.value.filter((e) => xe.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":
@@ -1296,30 +1296,30 @@ var Cn = l({
1296
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
  }
1305
1305
  function Xe(e, t) {
1306
- le.value = t.id, e.pointerType === "mouse" && S("hover-sensor", {
1306
+ ce.value = t.id, e.pointerType === "mouse" && S("hover-sensor", {
1307
1307
  sensorId: t.id,
1308
1308
  x: e.clientX,
1309
1309
  y: e.clientY
1310
1310
  });
1311
1311
  }
1312
1312
  function Ze() {
1313
- le.value = null, S("hover-sensor", null);
1313
+ ce.value = null, S("hover-sensor", null);
1314
1314
  }
1315
1315
  function Qe(e) {
1316
1316
  return ye.value.find((t) => t.id === e);
1317
1317
  }
1318
1318
  function $e(e) {
1319
- return ce(e.sensorType, me(Qe(e.id)));
1319
+ return ue(e.sensorType, k(Qe(e.id)));
1320
1320
  }
1321
1321
  function U(e) {
1322
- let t = pe(Qe(e.id));
1322
+ let t = me(Qe(e.id));
1323
1323
  return t ? `${e.name} · ${t}` : e.name;
1324
1324
  }
1325
1325
  function W(e, t) {
@@ -1336,11 +1336,11 @@ var Cn = l({
1336
1336
  });
1337
1337
  }
1338
1338
  function tt(e) {
1339
- let t = Me.value.get(e.roomId);
1339
+ let t = Ne.value.get(e.roomId);
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;
@@ -1428,7 +1428,7 @@ var Cn = l({
1428
1428
  return Math.min(Math.max(e, t), n);
1429
1429
  }
1430
1430
  function X(e, t, n) {
1431
- let r = Ne.value.get(e);
1431
+ let r = R.value.get(e);
1432
1432
  if (!r?.length || r.some((e) => t >= e.x && t <= e.x + e.width && n >= e.y && n <= e.y + e.height)) return {
1433
1433
  x: t,
1434
1434
  y: n
@@ -1447,7 +1447,7 @@ var Cn = l({
1447
1447
  return i;
1448
1448
  }
1449
1449
  function bt(e) {
1450
- return I.value.filter((t) => t.roomId === e);
1450
+ return Ee.value.filter((t) => t.roomId === e);
1451
1451
  }
1452
1452
  function Z(e) {
1453
1453
  ne.value?.setPointerCapture?.(e.pointerId);
@@ -1476,7 +1476,7 @@ var Cn = l({
1476
1476
  S("select", {
1477
1477
  kind: "room",
1478
1478
  id: t.id
1479
- }), !P.value && (e.stopPropagation(), ue.value = t.id, O = {
1479
+ }), !P.value && (e.stopPropagation(), le.value = t.id, O = {
1480
1480
  mode: "resize",
1481
1481
  id: t.id,
1482
1482
  originX: t.x,
@@ -1597,14 +1597,14 @@ var Cn = l({
1597
1597
  return;
1598
1598
  }
1599
1599
  if (O.mode === "camera") {
1600
- let e = O.id, n = X(I.value.find((t) => t.id === e)?.roomId ?? "", Y(t.x - O.offsetX), Y(t.y - O.offsetY));
1600
+ let e = O.id, n = X(Ee.value.find((t) => t.id === e)?.roomId ?? "", Y(t.x - O.offsetX), Y(t.y - O.offsetY));
1601
1601
  S("move-camera", {
1602
1602
  id: e,
1603
1603
  ...n
1604
1604
  });
1605
1605
  return;
1606
1606
  }
1607
- let n = O.id, r = I.value.find((e) => e.id === n);
1607
+ let n = O.id, r = Ee.value.find((e) => e.id === n);
1608
1608
  if (!r) return;
1609
1609
  let i = t.x - r.x, a = t.y - r.y;
1610
1610
  S("rotate-camera", {
@@ -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
- ue.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
  };
@@ -1695,10 +1695,10 @@ var Cn = l({
1695
1695
  function It() {
1696
1696
  let e = [], t = [];
1697
1697
  for (let n of F.value) e.push(n.x, n.x + n.width), t.push(n.y, n.y + n.height);
1698
- for (let n of I.value) e.push(n.x - Nr, n.x + Nr), t.push(n.y - Nr, n.y + Nr);
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
- _e({
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 = Te, 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,
@@ -1721,7 +1721,7 @@ var Cn = l({
1721
1721
  onDragenter: o[15] ||= e(() => {}, ["prevent"])
1722
1722
  }, [
1723
1723
  T(m(Je), {
1724
- nodes: Ee,
1724
+ nodes: De,
1725
1725
  "nodes-draggable": !1,
1726
1726
  "nodes-connectable": !1,
1727
1727
  "elements-selectable": !1,
@@ -1739,29 +1739,29 @@ var Cn = l({
1739
1739
  "node-scene": g(() => [(r(), _("svg", {
1740
1740
  class: "floorplan-scene",
1741
1741
  style: v({
1742
- left: `${m(L).x}px`,
1743
- top: `${m(L).y}px`,
1744
- width: `${m(L).width}px`,
1745
- height: `${m(L).height}px`
1742
+ left: `${m(I).x}px`,
1743
+ top: `${m(I).y}px`,
1744
+ width: `${m(I).width}px`,
1745
+ height: `${m(I).height}px`
1746
1746
  })
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,26 +1769,26 @@ 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,
1786
1786
  id: "floorplan-gaps",
1787
1787
  maskUnits: "userSpaceOnUse",
1788
- x: m(L).x,
1789
- y: m(L).y,
1790
- width: m(L).width,
1791
- height: m(L).height
1788
+ x: m(I).x,
1789
+ y: m(I).y,
1790
+ width: m(I).width,
1791
+ height: m(I).height
1792
1792
  }, [(r(!0), _(y, null, n(m(Fe), (e) => (r(), _(y, { key: `gap-room-${e.roomId}` }, [e.publicSpace ? d("", !0) : (r(), _("path", {
1793
1793
  key: 0,
1794
1794
  d: e.fill,
@@ -1802,7 +1802,7 @@ var Cn = l({
1802
1802
  fill: "black",
1803
1803
  transform: `translate(${e.x} ${e.y}) rotate(${e.rotation})`
1804
1804
  }, null, 8, Pn))), 128))], 8, Nn))), 128))], 8, jn)) : d("", !0)
1805
- ]), b("g", { transform: `translate(${-m(L).x} ${-m(L).y})` }, [
1805
+ ]), b("g", { transform: `translate(${-m(I).x} ${-m(I).y})` }, [
1806
1806
  (r(!0), _(y, null, n(m(Fe), (e) => (r(), _("g", { key: e.roomId }, [b("path", {
1807
1807
  d: e.fill,
1808
1808
  class: s(["room", {
@@ -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}`,
@@ -1829,10 +1829,10 @@ var Cn = l({
1829
1829
  }, null, 10, zn))), 128))], 8, Rn))), 128)),
1830
1830
  m(re) ? (r(), _("rect", {
1831
1831
  key: 0,
1832
- x: m(L).x,
1833
- y: m(L).y,
1834
- width: m(L).width,
1835
- height: m(L).height,
1832
+ x: m(I).x,
1833
+ y: m(I).y,
1834
+ width: m(I).width,
1835
+ height: m(I).height,
1836
1836
  fill: "url(#floorplan-gaps-hatch)",
1837
1837
  mask: "url(#floorplan-gaps)",
1838
1838
  class: "gaps-layer"
@@ -1862,31 +1862,31 @@ 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)),
1882
- (r(!0), _(y, null, n(m(je), (e) => (r(), _(y, { key: e.connection.id }, [e.geometry.kind === "link" ? (r(), _("path", {
1882
+ (r(!0), _(y, null, n(m(Me), (e) => (r(), _(y, { key: e.connection.id }, [e.geometry.kind === "link" ? (r(), _("path", {
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
- (r(!0), _(y, null, n(m(I), (e) => (r(), _("g", {
1889
+ (r(!0), _(y, null, n(m(Ee), (e) => (r(), _("g", {
1890
1890
  key: e.id,
1891
1891
  class: s({ nopan: !m(P) }),
1892
1892
  onPointerdown: (t) => wt(t, e),
@@ -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
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
- (r(!0), _(y, null, n(m(Oe) ? m(Re) : [], (t) => (r(), _("g", { key: t.roomId }, [b("circle", {
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,9 +1945,9 @@ 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
1952
  (r(!0), _(y, null, n(m(be), (e) => (r(), _("g", {
1953
1953
  key: `sensor-${e.id}`,
@@ -1959,32 +1959,32 @@ 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
- }, [(r(), u(c(m(ve)(e.sensorType, Qe(e.id))), {
1972
+ }, [(r(), u(c(m(pe)(e.sensorType, Qe(e.id))), {
1973
1973
  width: "100%",
1974
1974
  height: "100%",
1975
1975
  style: v($e(e))
1976
1976
  }, null, 8, ["style"]))], 8, ar)),
1977
- m(le) === e.id || J("sensor", e.id) ? (r(), _("g", or, [b("rect", {
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,68 +2027,68 @@ 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
2048
  m(Se) ? (r(), _("g", yr, [b("rect", {
2049
2049
  x: m(Se).x - m(Se).width / 2,
2050
2050
  y: m(Se).y,
2051
2051
  width: m(Se).width,
2052
- height: 20 / m(M),
2053
- rx: 10 / m(M)
2052
+ height: 20 / m(N),
2053
+ rx: 10 / m(N)
2054
2054
  }, null, 8, br), b("text", {
2055
2055
  x: m(Se).x,
2056
- y: m(Se).y + 14 / m(M),
2056
+ y: m(Se).y + 14 / m(N),
2057
2057
  "text-anchor": "middle",
2058
- "font-size": 12 / m(M)
2058
+ "font-size": 12 / m(N)
2059
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
- m(De) && !m(P) ? (r(), _("rect", {
2073
+ m(Oe) && !m(P) ? (r(), _("rect", {
2074
2074
  key: 3,
2075
- x: m(De).x + m(De).width - 7 / m(M),
2076
- y: m(De).y + m(De).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),
2082
- onPointerdown: o[1] ||= (e) => Ct(e, m(De))
2081
+ "stroke-width": 1.5 / m(N),
2082
+ onPointerdown: o[1] ||= (e) => Ct(e, m(Oe))
2083
2083
  }, null, 40, wr)) : d("", !0),
2084
- m(R) && !m(P) ? (r(), _("circle", {
2084
+ m(L) && !m(P) ? (r(), _("circle", {
2085
2085
  key: 4,
2086
- cx: m(R).x + Math.cos(ct(m(R).rotation)) * m(R).range,
2087
- cy: m(R).y + Math.sin(ct(m(R).rotation)) * m(R).range,
2088
- r: 9 / m(M),
2086
+ cx: m(L).x + Math.cos(ct(m(L).rotation)) * m(L).range,
2087
+ cy: m(L).y + Math.sin(ct(m(L).rotation)) * m(L).range,
2088
+ r: 9 / m(N),
2089
2089
  class: "handle nopan",
2090
- "stroke-width": 1.5 / m(M),
2091
- onPointerdown: o[2] ||= (e) => Tt(e, m(R))
2090
+ "stroke-width": 1.5 / m(N),
2091
+ onPointerdown: o[2] ||= (e) => Tt(e, m(L))
2092
2092
  }, null, 40, Tr)) : d("", !0)
2093
2093
  ], 8, Fn)], 4))]),
2094
2094
  default: g(() => [T(m(B), {
@@ -2109,7 +2109,7 @@ var Cn = l({
2109
2109
  r: "21",
2110
2110
  class: "compass-ring",
2111
2111
  "stroke-width": "1"
2112
- }, null, -1), b("g", { transform: `rotate(${m(we)} 23 23)` }, [...o[16] ||= [b("path", {
2112
+ }, null, -1), b("g", { transform: `rotate(${m(Te)} 23 23)` }, [...o[16] ||= [b("path", {
2113
2113
  d: "M 23 6 L 27 23 L 23 19 L 19 23 Z",
2114
2114
  class: "compass-needle"
2115
2115
  }, null, -1), b("text", {
@@ -2120,7 +2120,7 @@ var Cn = l({
2120
2120
  "font-size": "9"
2121
2121
  }, "N", -1)]], 8, Dr)]))], 34)), [[
2122
2122
  w,
2123
- { value: m(P) ? t.$t("views.floorplan.north_reading", { value: m(we) }) : t.$t("views.floorplan.north_hint") },
2123
+ { value: m(P) ? t.$t("views.floorplan.north_reading", { value: m(Te) }) : t.$t("views.floorplan.north_hint") },
2124
2124
  void 0,
2125
2125
  { left: !0 }
2126
2126
  ]]),
@@ -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(A)(), ["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(j)(), ["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") },
@@ -2193,14 +2193,14 @@ var Cn = l({
2193
2193
  { right: !0 }
2194
2194
  ]])
2195
2195
  ]), b("div", kr, [(r(), _("svg", {
2196
- width: m(Ae).width,
2196
+ width: m(je).width,
2197
2197
  height: "10",
2198
2198
  class: "shrink-0"
2199
2199
  }, [b("path", {
2200
- d: `M 1 1 L 1 9 M 1 5 L ${m(Ae).width - 1} 5 M ${m(Ae).width - 1} 1 L ${m(Ae).width - 1} 9`,
2200
+ d: `M 1 1 L 1 9 M 1 5 L ${m(je).width - 1} 5 M ${m(je).width - 1} 1 L ${m(je).width - 1} 9`,
2201
2201
  class: "scale-line",
2202
2202
  "stroke-width": "1"
2203
- }, null, 8, jr)], 8, Ar)), b("span", Mr, i(m(Ae).label), 1)])], 4)
2203
+ }, null, 8, jr)], 8, Ar)), b("span", Mr, i(m(je).label), 1)])], 4)
2204
2204
  ], 34);
2205
2205
  };
2206
2206
  }
@@ -2251,7 +2251,7 @@ var Lr = l({
2251
2251
  ], ci = { class: "flex items-center gap-2.5 flex-1 min-w-0 px-3 py-2.5" }, li = { class: "flex items-center justify-center w-8 h-8 rounded-lg shrink-0 palette-icon" }, ui = { class: "flex flex-col min-w-0" }, di = { class: "text-[13px] font-medium truncate text-color leading-tight" }, fi = {
2252
2252
  key: 0,
2253
2253
  class: "text-[11px] text-muted truncate leading-tight"
2254
- }, pi = /*#__PURE__*/ I(/* @__PURE__ */ C({
2254
+ }, pi = /*#__PURE__*/ De(/* @__PURE__ */ C({
2255
2255
  __name: "CuiFloorplanPalette",
2256
2256
  props: {
2257
2257
  cameras: {},
@@ -2330,7 +2330,7 @@ var Lr = l({
2330
2330
  sensorId: t.id,
2331
2331
  sensorType: t.sensorType
2332
2332
  })
2333
- }, [b("div", ci, [b("div", li, [(r(), u(c(m(ve)(t.sensorType, void 0)), { class: "w-4 h-4" }))]), b("div", ui, [b("span", di, i(t.name), 1), t.subtitle ? (r(), _("span", fi, i(t.subtitle), 1)) : d("", !0)])])], 42, si))), 128))])) : (r(), _("span", ai, i(t.$t("views.floorplan.all_sensors_placed")), 1))])
2333
+ }, [b("div", ci, [b("div", li, [(r(), u(c(m(pe)(t.sensorType, void 0)), { class: "w-4 h-4" }))]), b("div", ui, [b("span", di, i(t.name), 1), t.subtitle ? (r(), _("span", fi, i(t.subtitle), 1)) : d("", !0)])])], 42, si))), 128))])) : (r(), _("span", ai, i(t.$t("views.floorplan.all_sensors_placed")), 1))])
2334
2334
  ], 2);
2335
2335
  };
2336
2336
  }
@@ -2382,7 +2382,7 @@ var Si = { class: "flex flex-col gap-2 w-full" }, Ci = {
2382
2382
  setup(e, { expose: t }) {
2383
2383
  let n = w(e.name);
2384
2384
  return t({ onConfirm: async () => n.value.trim() || null }), (e, t) => {
2385
- let a = Ae;
2385
+ let a = je;
2386
2386
  return r(), _("div", Si, [b("label", Ci, i(e.$t("components.form.label.name")), 1), T(a, {
2387
2387
  id: "floorplanLevelName",
2388
2388
  modelValue: m(n),
@@ -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 = be("/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 {
@@ -2438,16 +2438,16 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
2438
2438
  }, Wi = { class: "flex items-center justify-center" }, Gi = {
2439
2439
  key: 0,
2440
2440
  class: "flex items-center gap-2 pl-3 pr-2 py-1.5"
2441
- }, Ki = { class: "flex-1 min-w-0 text-sm font-semibold truncate text-color" }, qi = 50, Ji = 92, Yi = /*#__PURE__*/ I(/* @__PURE__ */ C({
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 } = De(), { smBreakpoint: S } = se(), { bottombarHeight: C } = he(), re = Se(), ae = F(), ce = Ee(), pe = Ai(), me = new fe(), { sensors: j } = ke(), { data: _e } = me.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
- }), be = w(), Ce = w(), Te = w(null), I = w(null), Ae = w({
2447
+ }), Ce = w(), F = w(), Ee = w(null), De = w(null), je = w({
2448
2448
  x: 0,
2449
2449
  y: 0
2450
- }), je = w(null), Ne = w({
2450
+ }), Me = w(null), R = w({
2451
2451
  x: 0,
2452
2452
  y: 0
2453
2453
  }), Pe = w(), Fe = w(null), Ie = w({
@@ -2460,22 +2460,22 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
2460
2460
  rooms: []
2461
2461
  }), z = w([]), B = w([]), V = w([]), H = w([]), U = w([]), W = w(""), tt = w(null), G = w(null), nt = w(!1), rt = w(!0), it = w(!1), at = w(""), ot = te("sheetRef"), st = w(0), K = w(0), ct = w(!1), q = ne([]), lt = ne([]), J = [
2462
2462
  {
2463
- value: R.Disarmed,
2463
+ value: L.Disarmed,
2464
2464
  labelKey: "views.floorplan.security_disarmed"
2465
2465
  },
2466
2466
  {
2467
- value: R.StayArm,
2467
+ value: L.StayArm,
2468
2468
  labelKey: "views.floorplan.security_stay"
2469
2469
  },
2470
2470
  {
2471
- value: R.AwayArm,
2471
+ value: L.AwayArm,
2472
2472
  labelKey: "views.floorplan.security_away"
2473
2473
  },
2474
2474
  {
2475
- value: R.NightArm,
2475
+ value: L.NightArm,
2476
2476
  labelKey: "views.floorplan.security_night"
2477
2477
  }
2478
- ], ut = 0, dt = !1, mt, ht, gt, Y = xe(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) => ye.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(() => {
@@ -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 === Te.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,
@@ -2804,13 +2804,13 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
2804
2804
  return j.value.find((t) => t.id === e);
2805
2805
  }
2806
2806
  function nn(e) {
2807
- return Y && !k.has(e);
2807
+ return Y && !Se.has(e);
2808
2808
  }
2809
2809
  async function rn(e) {
2810
- Y && await O(tn(e));
2810
+ Y && await A(tn(e));
2811
2811
  }
2812
2812
  async function an(e, t) {
2813
- Y && await ue(tn(e), t);
2813
+ Y && await O(tn(e), t);
2814
2814
  }
2815
2815
  function on() {
2816
2816
  clearTimeout(ht);
@@ -2834,11 +2834,11 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
2834
2834
  dn();
2835
2835
  return;
2836
2836
  }
2837
- Ne.value = {
2837
+ R.value = {
2838
2838
  x: e.x,
2839
2839
  y: e.y
2840
2840
  }, Ve.value = e.cameraId, mt = setTimeout(() => {
2841
- je.value && Pe.value?.show({ currentTarget: je.value });
2841
+ Me.value && Pe.value?.show({ currentTarget: Me.value });
2842
2842
  }, 350);
2843
2843
  }
2844
2844
  function un() {
@@ -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
- Te.value = e, Ae.value = {
2853
+ Ee.value = e, je.value = {
2854
2854
  x: t.clientX,
2855
2855
  y: t.clientY
2856
- }, o(() => Ce.value?.toggleMenu(t, I.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
- me.queryClient.refetchQueries({ queryKey: ["camerasList"] }),
3091
- me.queryClient.refetchQueries({ queryKey: ["cameras"] }),
3092
- me.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 {
@@ -3131,7 +3131,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3131
3131
  }
3132
3132
  (e.key === "Delete" || e.key === "Backspace") && G.value && (e.preventDefault(), bn(G.value));
3133
3133
  }
3134
- let Rn = pe.onPlan(async (e) => {
3134
+ let Rn = me.onPlan(async (e) => {
3135
3135
  Z.value || (Rt(e, await $e()), await Pn());
3136
3136
  });
3137
3137
  function zn(e) {
@@ -3155,20 +3155,20 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3155
3155
  }
3156
3156
  gt = new ResizeObserver(([e]) => st.value = Math.round(e.contentRect.height)), gt.observe(e);
3157
3157
  }), ee(() => G.value && `${G.value.kind}:${G.value.id}`, () => K.value = 0), ie(() => {
3158
- pe.connect(), window.addEventListener("keydown", Ln), Fn();
3159
- }), le((e) => !Z.value || dt ? !0 : (re.openTextDialog({
3158
+ me.connect(), window.addEventListener("keydown", Ln), Fn();
3159
+ }), fe((e) => !Z.value || dt ? !0 : (re.openTextDialog({
3160
3160
  data: {
3161
3161
  title: f("views.floorplan.unsaved_title"),
3162
3162
  contentText: f("views.floorplan.unsaved_message"),
3163
3163
  confirmText: f("views.floorplan.discard")
3164
3164
  },
3165
3165
  onConfirm: async () => {
3166
- dt = !0, ce.push(e.fullPath);
3166
+ dt = !0, ue.push(e.fullPath);
3167
3167
  }
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 = Oe, f = de, h = gi, ee = D, te = qe, ne = Me, w = Ge, re = We, ie = He, ae = L, se = pi, ce = Pr, le = _n, ue = Re, fe = Ye, O = Be, pe = P, me = we, he = et, k = A, 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, {
@@ -3189,7 +3189,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3189
3189
  class: "cui-button-medium shrink-0",
3190
3190
  label: m(bt)?.name ?? e.$t("views.floorplan.no_levels"),
3191
3191
  disabled: !m(z).length,
3192
- onClick: t[1] ||= (e) => m(be)?.toggleMenu(e)
3192
+ onClick: t[1] ||= (e) => m(Ce)?.toggleMenu(e)
3193
3193
  }, {
3194
3194
  icon: g(() => [T(h)]),
3195
3195
  _: 1
@@ -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 }
@@ -3300,7 +3300,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3300
3300
  class: "w-[30px] h-[30px] m-0",
3301
3301
  "stroke-width": "5"
3302
3302
  })])) : (r(), _("div", Pi, [
3303
- m(Y) && !m(S) ? (r(), u(se, {
3303
+ m(Y) && !m(S) ? (r(), u(oe, {
3304
3304
  key: 0,
3305
3305
  cameras: m(Et),
3306
3306
  sensors: m(wt),
@@ -3314,7 +3314,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3314
3314
  "rooms",
3315
3315
  "disabled"
3316
3316
  ])) : d("", !0),
3317
- T(ce, {
3317
+ T(se, {
3318
3318
  mobile: m(S),
3319
3319
  "bottom-inset": m(S) && m(G) ? Math.max(m(st) - m(K), 0) : 0,
3320
3320
  "bottom-inset-dragging": m(ct),
@@ -3362,7 +3362,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3362
3362
  key: 1,
3363
3363
  class: "shrink-0 overflow-hidden transition-[width] duration-200 ease-in-out",
3364
3364
  style: v({ width: m(G) ? "300px" : "0px" })
3365
- }, [m(G) ? (r(), u(le, {
3365
+ }, [m(G) ? (r(), u(ue, {
3366
3366
  key: 0,
3367
3367
  rooms: m(B),
3368
3368
  connections: m(V),
@@ -3401,7 +3401,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3401
3401
  }, [b("div", {
3402
3402
  class: "flex justify-center py-2 cursor-grab active:cursor-grabbing sheet-grip",
3403
3403
  onPointerdown: zn
3404
- }, [...t[14] ||= [b("div", { class: "w-10 h-1 rounded-full sheet-grip-bar" }, null, -1)]], 32), T(le, {
3404
+ }, [...t[14] ||= [b("div", { class: "w-10 h-1 rounded-full sheet-grip-bar" }, null, -1)]], 32), T(ue, {
3405
3405
  rooms: m(B),
3406
3406
  connections: m(V),
3407
3407
  cameras: m(H),
@@ -3426,7 +3426,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3426
3426
  "selection",
3427
3427
  "read-only"
3428
3428
  ])], 4)) : d("", !0),
3429
- m(Y) && !m(rt) ? (r(), u(ue, {
3429
+ m(Y) && !m(rt) ? (r(), u(fe, {
3430
3430
  key: 3,
3431
3431
  model: m(At),
3432
3432
  direction: "up",
@@ -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, {
@@ -3491,9 +3491,9 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3491
3491
  }),
3492
3492
  onClick: Nn
3493
3493
  }, {
3494
- icon: g(() => [T(fe, { class: "w-5 h-5" })]),
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,14 +3508,14 @@ 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),
3512
- T(O, {
3511
+ }, 8, ["style"])), [[M, { value: e.$t("views.floorplan.palette") }]]) : d("", !0),
3512
+ T(me, {
3513
3513
  modelValue: m(nt),
3514
3514
  "onUpdate:modelValue": t[10] ||= (e) => p(nt) ? nt.value = e : null,
3515
3515
  title: e.$t("views.floorplan.palette"),
3516
3516
  "max-height": "70vh"
3517
3517
  }, {
3518
- default: g(() => [T(se, {
3518
+ default: g(() => [T(oe, {
3519
3519
  cameras: m(Et),
3520
3520
  sensors: m(wt),
3521
3521
  rooms: m(Tt),
@@ -3532,20 +3532,20 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3532
3532
  }, 8, ["modelValue", "title"]),
3533
3533
  b("div", {
3534
3534
  ref_key: "menuAnchorRef",
3535
- ref: I,
3535
+ ref: De,
3536
3536
  class: "fixed w-0 h-0",
3537
3537
  style: v({
3538
- left: `${m(Ae).x}px`,
3539
- top: `${m(Ae).y}px`
3538
+ left: `${m(je).x}px`,
3539
+ top: `${m(je).y}px`
3540
3540
  })
3541
3541
  }, null, 4),
3542
3542
  b("div", {
3543
3543
  ref_key: "previewAnchorRef",
3544
- ref: je,
3544
+ ref: Me,
3545
3545
  class: "fixed w-0 h-0",
3546
3546
  style: v({
3547
- left: `${m(Ne).x}px`,
3548
- top: `${m(Ne).y}px`
3547
+ left: `${m(R).x}px`,
3548
+ top: `${m(R).y}px`
3549
3549
  })
3550
3550
  }, null, 4),
3551
3551
  b("div", {
@@ -3557,7 +3557,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3557
3557
  top: `${m(Ie).y}px`
3558
3558
  })
3559
3559
  }, null, 4),
3560
- T(pe, {
3560
+ T(he, {
3561
3561
  ref_key: "sensorPopoverRef",
3562
3562
  ref: Le,
3563
3563
  class: "shadow-lg cui-rounded-corner",
@@ -3569,16 +3569,16 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3569
3569
  onPointerenter: on,
3570
3570
  onPointerleave: sn
3571
3571
  }, [
3572
- b("div", Ii, [b("div", Li, [(r(), u(c(m(ve)(m($).sensorType, tn(m($).id))), { class: "w-4 h-4" }))]), b("div", Ri, [
3572
+ b("div", Ii, [b("div", Li, [(r(), u(c(m(pe)(m($).sensorType, tn(m($).id))), { class: "w-4 h-4" }))]), b("div", Ri, [
3573
3573
  b("div", zi, i(m($).name), 1),
3574
3574
  m($).owner ? (r(), _("div", Bi, i(m($).owner), 1)) : d("", !0),
3575
- b("div", Vi, i(m(ge)(m($).sensorType, tn(m($).id))), 1)
3575
+ b("div", Vi, i(m(le)(m($).sensorType, tn(m($).id))), 1)
3576
3576
  ])]),
3577
3577
  m($).note ? (r(), _("div", Hi, i(m($).note), 1)) : d("", !0),
3578
3578
  m($).sensorType === "securitySystem" ? (r(), _("div", Ui, [(r(), _(y, null, n(J, (t) => T(l, {
3579
3579
  key: t.value,
3580
3580
  severity: "secondary",
3581
- outlined: m(oe)(tn(m($).id)) !== t.value,
3581
+ outlined: m(be)(tn(m($).id)) !== t.value,
3582
3582
  size: "small",
3583
3583
  class: "cui-button-medium",
3584
3584
  label: e.$t(t.labelKey),
@@ -3598,7 +3598,7 @@ var ji = { class: "h-full w-full relative overflow-hidden flex flex-col" }, Mi =
3598
3598
  ], 32)) : d("", !0)]),
3599
3599
  _: 1
3600
3600
  }, 512),
3601
- T(pe, {
3601
+ T(he, {
3602
3602
  ref_key: "previewRef",
3603
3603
  ref: Pe,
3604
3604
  class: "shadow-lg cui-rounded-corner overflow-hidden",
@@ -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(me, {
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,26 +3626,26 @@ 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(he, { 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(k, {
3639
+ T(j, {
3640
3640
  ref_key: "stairsMenuRef",
3641
- ref: Ce,
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(k, {
3646
+ T(j, {
3647
3647
  ref_key: "levelMenuRef",
3648
- ref: be,
3648
+ ref: Ce,
3649
3649
  items: m(kt),
3650
3650
  popover: { pt: { content: { class: "p-0! rounded-xl! overflow-hidden!" } } }
3651
3651
  }, null, 8, ["items"])