@camera.ui/server 2.2.5 → 2.2.6
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.
- package/dist/interface/assets/{404-CiOxoqnT.js → 404-BLVuKvLk.js} +1 -1
- package/dist/interface/assets/{About-DWOlfWEm.js → About-C-AJ0jfI.js} +1 -1
- package/dist/interface/assets/Assistant-BJKGIvVo.js +1 -0
- package/dist/interface/assets/{Assistant-CXx7EY1W.css → Assistant-BQ6Ld-bt.css} +1 -1
- package/dist/interface/assets/{Automation-BJgwUkUB.js → Automation-C95DzuZb.js} +3 -3
- package/dist/interface/assets/{AutomationImport-9GRAndAt.js → AutomationImport-C8VYjDzf.js} +2 -2
- package/dist/interface/assets/{AutomationStore-D_HR2Xby.js → AutomationStore-CE4PKRGd.js} +2 -2
- package/dist/interface/assets/{AutomationStoreDetail-B9MxV2py.js → AutomationStoreDetail-DavWfjLv.js} +2 -2
- package/dist/interface/assets/Automations-BOP_17Ri.js +2 -0
- package/dist/interface/assets/Camera-BW9ikKqh.css +1 -0
- package/dist/interface/assets/Camera-C5S7eI9a.js +2 -0
- package/dist/interface/assets/{CameraConsole-BKPTLSTO.js → CameraConsole-C4AmtcrM.js} +1 -1
- package/dist/interface/assets/{Cameras-DcrVCgLy.js → Cameras-DR577Bno.js} +2 -2
- package/dist/interface/assets/{Camview-DasO326h.css → Camview-Bri_T7Tq.css} +1 -1
- package/dist/interface/assets/Camview-CHxKB41T.js +1 -0
- package/dist/interface/assets/{Config-BmEL5EaW.js → Config-BrDDGWpr.js} +1 -1
- package/dist/interface/assets/{ConfigActionAssistant-DM4tIhoa.js → ConfigActionAssistant-YtCVI8LZ.js} +1 -1
- package/dist/interface/assets/{ConfigActionCameraControl-Deo0eDPS.js → ConfigActionCameraControl-Dg_1zOYt.js} +1 -1
- package/dist/interface/assets/{ConfigActionHttp-BxJmoshF.js → ConfigActionHttp-BzwLv2tn.js} +1 -1
- package/dist/interface/assets/{ConfigActionImageInput-KrzXFQDm.js → ConfigActionImageInput-CLdY2sV4.js} +1 -1
- package/dist/interface/assets/{ConfigActionMqtt-BoYBomRC.js → ConfigActionMqtt-lGqYshl3.js} +1 -1
- package/dist/interface/assets/{ConfigActionNotification-CSAOijDt.js → ConfigActionNotification-D5Dj3EoU.js} +1 -1
- package/dist/interface/assets/{ConfigActionNotificationControl-BOdyKiOs.js → ConfigActionNotificationControl-Dy5fKamr.js} +1 -1
- package/dist/interface/assets/{ConfigActionOutput-CwsPcnd_.js → ConfigActionOutput-DzsQ31L0.js} +1 -1
- package/dist/interface/assets/{ConfigActionPlugin-D3wyULpp.js → ConfigActionPlugin-BFrBcXvL.js} +1 -1
- package/dist/interface/assets/{ConfigActionSensor-BmeaIxYY.js → ConfigActionSensor-CX8ePlan.js} +1 -1
- package/dist/interface/assets/{ConfigActionSnapshot-DbyFKcYr.js → ConfigActionSnapshot-BATLRmh6.js} +1 -1
- package/dist/interface/assets/{ConfigActionVariable-cThGJ1Pc.js → ConfigActionVariable-Dgn5jvaR.js} +1 -1
- package/dist/interface/assets/{ConfigConditionIfElse-BugkJeXR.js → ConfigConditionIfElse-D5IIBjyk.js} +1 -1
- package/dist/interface/assets/{ConfigConditionSensorState-Bf-mMf4E.js → ConfigConditionSensorState-C0JxBWdG.js} +1 -1
- package/dist/interface/assets/{ConfigConditionSwitch-DcpFoYET.js → ConfigConditionSwitch-Brlgd0XP.js} +1 -1
- package/dist/interface/assets/{ConfigSensorValueInput-CgAI34__.js → ConfigSensorValueInput-CtuH8dCa.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerDetection-BWK6gfwM.js → ConfigTriggerDetection-DsL7lLQl.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerGeofence-Cm3CU7Tl.js → ConfigTriggerGeofence-CAGIk1_W.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerMqtt-BMFjTAso.js → ConfigTriggerMqtt-B_iFalAQ.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSensor-DOdJkZRo.js → ConfigTriggerSensor-hYNbLXUu.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSystem-BFDIbZsE.js → ConfigTriggerSystem-DR1EFpE9.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerWebhook-DDoUEVHb.js → ConfigTriggerWebhook-C-B5GGFH.js} +1 -1
- package/dist/interface/assets/{Console-BIj7cIqO.js → Console-cIr6lYux.js} +1 -1
- package/dist/interface/assets/CuiAssistantConversation-Bigl43Ph.js +5 -0
- package/dist/interface/assets/CuiAssistantConversation-BmshW6Vc.css +1 -0
- package/dist/interface/assets/{CuiAutomationRunsDialog-DMUfNcsf.js → CuiAutomationRunsDialog-Ci7SWAml.js} +1 -1
- package/dist/interface/assets/{CuiBottomSheet-FwsPnJ3n.js → CuiBottomSheet-C2sM2E3M.js} +1 -1
- package/dist/interface/assets/CuiBottomSheet-ViBOgklN.js +1 -0
- package/dist/interface/assets/CuiCameraPipCard-wdK7xir-.js +1 -0
- package/dist/interface/assets/{CuiCameraRecordings-BeciatDY.js → CuiCameraRecordings-BB7bF67B.js} +1 -1
- package/dist/interface/assets/{CuiCameraShares-CSFwIYsg.js → CuiCameraShares-B6jdUBVm.js} +1 -1
- package/dist/interface/assets/CuiCameraTable-CHnQFkce.js +1 -0
- package/dist/interface/assets/{CuiCameraTable-DBRfGX3I.js → CuiCameraTable-CpBo25Qc.js} +1 -1
- package/dist/interface/assets/{CuiChartTable-CtasoxMM.js → CuiChartTable-dIcxGtfl.js} +1 -1
- package/dist/interface/assets/{CuiConsole-DQbAafiz.js → CuiConsole-BGptpT6r.js} +1 -1
- package/dist/interface/assets/{CuiDataTable-JlD7Agky.js → CuiDataTable-CQmp5mAy.js} +1 -1
- package/dist/interface/assets/CuiLightControl-wbZi3fA1.js +1 -0
- package/dist/interface/assets/CuiPluginCard-BjIc7It9.js +2 -0
- package/dist/interface/assets/{CuiPluginCategoryChip-B2bR5LQa.js → CuiPluginCategoryChip-BtJ_6_gN.js} +1 -1
- package/dist/interface/assets/{CuiPluginOAuthButton-DfEjfcY-.js → CuiPluginOAuthButton-Duf35I8K.js} +2 -2
- package/dist/interface/assets/{CuiPluginTrustBadge-C6CW6Soh.js → CuiPluginTrustBadge-jxXeRTH2.js} +1 -1
- package/dist/interface/assets/{CuiQRCode-DGKBhDib.js → CuiQRCode-BNchrpoB.js} +1 -1
- package/dist/interface/assets/{CuiSchema-pAAVh28m.js → CuiSchema-DGTMkVSe.js} +1 -1
- package/dist/interface/assets/{CuiTopNavbarItem-ve-3Dsc3.js → CuiTopNavbarItem-CHtLvn53.js} +1 -1
- package/dist/interface/assets/Faces-p18jNfXl.js +1 -0
- package/dist/interface/assets/FirstSteps-HzaBMDbH.js +1 -0
- package/dist/interface/assets/Floorplan-DYyEx7WO.js +1 -0
- package/dist/interface/assets/Instances-Dl-6rL5O.js +1 -0
- package/dist/interface/assets/{Logs-BhRactvQ.js → Logs-DsJkuQFq.js} +2 -2
- package/dist/interface/assets/{Menu-DMCmUVDs.js → Menu-D_woMkjL.js} +1 -1
- package/dist/interface/assets/Metrics-l3UwykCM.js +12 -0
- package/dist/interface/assets/{OAuthDeviceFlow-BMEwVkIa.js → OAuthDeviceFlow-CXfILAE1.js} +1 -1
- package/dist/interface/assets/Plugin-Ldj3HygQ.js +1 -0
- package/dist/interface/assets/{PluginConsole-C4Ba_U_1.js → PluginConsole-C96m5zKy.js} +1 -1
- package/dist/interface/assets/{PluginDetail-13OWIzdd.js → PluginDetail-CnfaI1vh.js} +2 -2
- package/dist/interface/assets/{PluginSchema-DN0cSU8s.js → PluginSchema-u1bqXU29.js} +1 -1
- package/dist/interface/assets/{PluginSearch-sPkO8aH3.js → PluginSearch-BiXG3Xk2.js} +2 -2
- package/dist/interface/assets/PluginSearch-BuE7we1T.js +1 -0
- package/dist/interface/assets/{PluginUpdateProgress-CeWuRp3Z.js → PluginUpdateProgress-BT4lN9HT.js} +1 -1
- package/dist/interface/assets/{Plugins-C8yjhxnQ.js → Plugins-Csx6AXaW.js} +1 -1
- package/dist/interface/assets/Recordings-BEKAn6QK.css +1 -0
- package/dist/interface/assets/Recordings-D0KTY5cI.js +1 -0
- package/dist/interface/assets/{SensorEdit-C-yJdJuP.js → SensorEdit-zs-f_o1N.js} +1 -1
- package/dist/interface/assets/{SensorHistory-ClAcOgHj.js → SensorHistory-Cet35_RO.js} +1 -1
- package/dist/interface/assets/Sensors-BLAoalEt.js +2 -0
- package/dist/interface/assets/Settings-C-LCDIbK.js +1 -0
- package/dist/interface/assets/SettingsAccount-BsN7jGmo.js +1 -0
- package/dist/interface/assets/SettingsAccount-DuVyCSE-.js +1 -0
- package/dist/interface/assets/{SettingsAppearance-CJt4xJEW.js → SettingsAppearance-BS4EQNjH.js} +1 -1
- package/dist/interface/assets/SettingsAppearance-DQcGbYbV.js +1 -0
- package/dist/interface/assets/SettingsAssistant-B0PF3Rdg.css +1 -0
- package/dist/interface/assets/SettingsAssistant-DViJklFd.js +1 -0
- package/dist/interface/assets/{SettingsBackup-DIJmci05.js → SettingsBackup-DBlV1gej.js} +1 -1
- package/dist/interface/assets/{SettingsList-Cb_dLy5T.js → SettingsList-D8eSwbBY.js} +1 -1
- package/dist/interface/assets/{SettingsMqtt-LIuCRPT5.js → SettingsMqtt-JoszJJgV.js} +1 -1
- package/dist/interface/assets/{SettingsNotifications-CZxqqH_8.js → SettingsNotifications-3veSrxa_.js} +1 -1
- package/dist/interface/assets/{SettingsRecordings-BEpwMh-y.js → SettingsRecordings-CLz9Zp47.js} +1 -1
- package/dist/interface/assets/{SettingsRemote-DRt-N_yA.js → SettingsRemote-DUyl8k7I.js} +2 -2
- package/dist/interface/assets/{SettingsSystem-Cncdpx8T.js → SettingsSystem-txTFGomQ.js} +2 -2
- package/dist/interface/assets/{SettingsUsers-DZkz8WlI.js → SettingsUsers-CUp6vQPc.js} +1 -1
- package/dist/interface/assets/{Terminal-U4yfJN3O.js → Terminal-hln2UuSR.js} +2 -2
- package/dist/interface/assets/Training-D6lhvUf-.js +1 -0
- package/dist/interface/assets/Updates-BwSWt9w7.js +2 -0
- package/dist/interface/assets/{VariableInput-PVsqGYW0.js → VariableInput-183LygmK.js} +1 -1
- package/dist/interface/assets/{VersionsHandler-Df7dhddp.js → VersionsHandler-DkbkcypK.js} +1 -1
- package/dist/interface/assets/{VirtualSensorCreate-FTKANjd-.js → VirtualSensorCreate-Bn4tgdxA.js} +1 -1
- package/dist/interface/assets/Workers-B6b15izn.js +2 -0
- package/dist/interface/assets/api-C9mnOxie.js +4 -0
- package/dist/interface/assets/api-Cj9a6qPu.css +2 -0
- package/dist/interface/assets/{api-DpqXhwcx.js → api-h4HRB3ef.js} +1 -1
- package/dist/interface/assets/{assistant-Lz3mFLDo.js → assistant-4hYyIu6D.js} +1 -1
- package/dist/interface/assets/{auth-L7_5vsJs.js → auth-DFesRtwI.js} +1 -1
- package/dist/interface/assets/{automations-D1XFFSrm.js → automations-D2bnX8uw.js} +1 -1
- package/dist/interface/assets/{cameraSources-DEGJDtmK.js → cameraSources-DmVZWs4-.js} +1 -1
- package/dist/interface/assets/cloudHandoff-Ba98bzeq.js +1 -0
- package/dist/interface/assets/{config-CVqy37fG.js → config-DDaCrMSU.js} +1 -1
- package/dist/interface/assets/esm-Bn9gXwX4.js +1 -0
- package/dist/interface/assets/esm-BzM6y2-F.js +1 -0
- package/dist/interface/assets/esm-CP3JWrtj.js +1 -0
- package/dist/interface/assets/esm-CjAXkqCf.js +1 -0
- package/dist/interface/assets/esm-Cqxk-j1S.js +1 -0
- package/dist/interface/assets/esm-DFHd3JNU.js +1 -0
- package/dist/interface/assets/esm-DfMLJtug.js +1 -0
- package/dist/interface/assets/esm-DhDrpq7a.js +1 -0
- package/dist/interface/assets/esm-DvhM-SOd.js +1 -0
- package/dist/interface/assets/esm-G63bqygQ.js +1 -0
- package/dist/interface/assets/esm-Gn-Y59hU.js +1 -0
- package/dist/interface/assets/esm-KJSOz2vj.js +1 -0
- package/dist/interface/assets/esm-Ryfc94Tm.js +1 -0
- package/dist/interface/assets/esm-rSfI5Poy.js +1 -0
- package/dist/interface/assets/{flowSchema-CppNBDy1.js → flowSchema-YJtAu9gB.js} +1 -1
- package/dist/interface/assets/main-C796FmqQ.js +3 -0
- package/dist/interface/assets/{main-Bo0Lb1y2.css → main-DVa5U7UB.css} +1 -1
- package/dist/interface/assets/{mqtt-BENV9Fx4.js → mqtt-DGBPptzB.js} +1 -1
- package/dist/interface/assets/native-CZJE8bTs.js +1 -0
- package/dist/interface/assets/native-DKZwialB.js +1 -0
- package/dist/interface/assets/{notifications-By40oPng.js → notifications-5yeK345h.js} +1 -1
- package/dist/interface/assets/plugin-DSEMkqaK.js +1 -0
- package/dist/interface/assets/{plugins-09rEDbMz.js → plugins-BTOdE_zv.js} +1 -1
- package/dist/interface/assets/{rooms-LBxn-Uuu.js → rooms-BCdm6IAx.js} +1 -1
- package/dist/interface/assets/{sensorIcons-Csu5s0uk.js → sensorIcons-5Ynqwo3e.js} +1 -1
- package/dist/interface/assets/{sensorSlots-CtbKmsGG.js → sensorSlots-BF70tpV7.js} +1 -1
- package/dist/interface/assets/{sensors-CbzNs18A.js → sensors-CeFEEz8r.js} +1 -1
- package/dist/interface/assets/{server-Btp5KILd.js → server-bhW2Mw4D.js} +1 -1
- package/dist/interface/assets/{theme-GhzGwpqd.js → theme-DF_XA58O.js} +1 -1
- package/dist/interface/assets/{types-D8QWPhe-.js → types-ArGM5-5O.js} +1 -1
- package/dist/interface/assets/{types-BAwhu9iv.js → types-BcAxmlqC.js} +1 -1
- package/dist/interface/assets/{ungrouped-BMk56E3L.js → ungrouped-CkIlDUwl.js} +1 -1
- package/dist/interface/assets/{updates-CGo0T4sn.js → updates-D3x_kPMM.js} +1 -1
- package/dist/interface/assets/{useAppVersion-CJlexqyz.js → useAppVersion-Dcvu95bZ.js} +1 -1
- package/dist/interface/assets/{useBackupRestore-_s8vS5WF.js → useBackupRestore-xp5KhKVn.js} +1 -1
- package/dist/interface/assets/{useCameraOptions-CFISVNgk.js → useCameraOptions-8I4MTDgj.js} +1 -1
- package/dist/interface/assets/useKeyboardInset-C0Lp0UcX.js +1 -0
- package/dist/interface/assets/{useLogsSocket-D-ndWAg0.js → useLogsSocket-bpOiLgWT.js} +1 -1
- package/dist/interface/assets/{useNavLayout-CG0X_3kt.js → useNavLayout-Cjf6Da2u.js} +1 -1
- package/dist/interface/assets/{usePluginUpdates-nW_dt66E.js → usePluginUpdates-bOMj-IvL.js} +1 -1
- package/dist/interface/assets/{usePushRegistration-DCqOAxR4.js → usePushRegistration-HOvLuUVP.js} +2 -2
- package/dist/interface/assets/{useServerRestart-CxJGxAcU.js → useServerRestart-CQN4cdHJ.js} +1 -1
- package/dist/interface/assets/{useStreamStatus-CXb1HbAq.js → useStreamStatus-Da7c2Wme.js} +1 -1
- package/dist/interface/assets/{useTabSwipe-DHb8__wU.js → useTabSwipe-fFuyJJBQ.js} +1 -1
- package/dist/interface/assets/{useUpdateChannel-BR4PMh1R.js → useUpdateChannel-Ca1RX32u.js} +1 -1
- package/dist/interface/assets/{useUpdatesSocket-DKDRZhvc.js → useUpdatesSocket-DHZNpLQX.js} +1 -1
- package/dist/interface/assets/{useUserOptions-lyc4WJ4L.js → useUserOptions-BQdOB-Dp.js} +1 -1
- package/dist/interface/assets/{vendor-capacitor-f9ShAzys.js → vendor-capacitor-Bs_WzL0Q.js} +2 -2
- package/dist/interface/assets/web-BDNQnMmA.js +1 -0
- package/dist/interface/assets/web-BhJykCtq.js +1 -0
- package/dist/interface/assets/web-BjKL51lK-wWFeZlLg.js +1 -0
- package/dist/interface/assets/web-C7nJwIOa.js +1 -0
- package/dist/interface/assets/web-CGJsJQDb.js +1 -0
- package/dist/interface/assets/web-CJwASxrl.js +1 -0
- package/dist/interface/assets/web-CLe0L31Y.js +1 -0
- package/dist/interface/assets/web-DEv1hAn1.js +1 -0
- package/dist/interface/assets/web-DaeQvsXT.js +1 -0
- package/dist/interface/assets/web-H3-wNunW.js +1 -0
- package/dist/interface/assets/web-LCdyqJq1.js +1 -0
- package/dist/interface/assets/web-XZWYTK65.js +1 -0
- package/dist/interface/assets/web-rU5hlxxW.js +1 -0
- package/dist/interface/ha/{404-B2T8Gktj.js → 404-C0mWQGWl.js} +1 -1
- package/dist/interface/ha/{About-CrTKzU9_.js → About-ByE7XErJ.js} +3 -3
- package/dist/interface/ha/{Assistant-BDHJmYx_.js → Assistant-Z3FTR868.js} +2264 -2133
- package/dist/interface/ha/{Automation-Czo5EsAg.js → Automation-COQqTFNw.js} +170 -170
- package/dist/interface/ha/{AutomationImport-CuFAQbiX.js → AutomationImport-ueWqMBX9.js} +6 -6
- package/dist/interface/ha/{AutomationStore-D-6x0JIt.js → AutomationStore-DBO4aZqy.js} +73 -73
- package/dist/interface/ha/{AutomationStoreDetail-Dad4q1MN.js → AutomationStoreDetail-DMnYu7hf.js} +6 -6
- package/dist/interface/ha/{Automations-C-oGM5SR.js → Automations-CMdbidc0.js} +70 -70
- package/dist/interface/ha/Camera-C28q_3pu.js +657 -0
- package/dist/interface/ha/{CameraConsole-hRGwbjsD.js → CameraConsole-oMNZfKE6.js} +3 -3
- package/dist/interface/ha/{Cameras-Bk5TFXA8.js → Cameras-CsqrLx97.js} +182 -182
- package/dist/interface/ha/{Camview-CsKKqxxY.js → Camview-Br0LUakz.js} +542 -542
- package/dist/interface/ha/{Config-Vl4-K3A_.js → Config-Y5eUNSW7.js} +110 -110
- package/dist/interface/ha/{ConfigActionAssistant-OWUX8glZ.js → ConfigActionAssistant-hl-6ZACj.js} +4 -4
- package/dist/interface/ha/{ConfigActionCameraControl-DEaOot8w.js → ConfigActionCameraControl-DnXlVFWD.js} +3 -3
- package/dist/interface/ha/{ConfigActionHttp-CSr2BpKL.js → ConfigActionHttp-BkpkMmRd.js} +2 -2
- package/dist/interface/ha/{ConfigActionImageInput--O8Tyca-.js → ConfigActionImageInput-Dp78_QS_.js} +1 -1
- package/dist/interface/ha/{ConfigActionMqtt-DQJ4-gs2.js → ConfigActionMqtt-DA_UWb5j.js} +4 -4
- package/dist/interface/ha/{ConfigActionNotification-wR8CCA_T.js → ConfigActionNotification-CQ4Ses3a.js} +3 -3
- package/dist/interface/ha/{ConfigActionNotificationControl-DNMrHwPz.js → ConfigActionNotificationControl-Cb5PNGz-.js} +2 -2
- package/dist/interface/ha/{ConfigActionOutput-C-LVFxFP.js → ConfigActionOutput-DLuNHwRb.js} +1 -1
- package/dist/interface/ha/{ConfigActionPlugin-BCREAkNo.js → ConfigActionPlugin-ChKFCNaj.js} +4 -4
- package/dist/interface/ha/{ConfigActionSensor-D48CQ6qR.js → ConfigActionSensor-DOutFalW.js} +5 -5
- package/dist/interface/ha/{ConfigActionSnapshot-DpDy88Mg.js → ConfigActionSnapshot-GWgY6YIN.js} +2 -2
- package/dist/interface/ha/{ConfigActionVariable-D9BxmwvB.js → ConfigActionVariable-bu-9VYTG.js} +1 -1
- package/dist/interface/ha/{ConfigConditionIfElse-CW42tQFY.js → ConfigConditionIfElse-iNp8tlZV.js} +3 -3
- package/dist/interface/ha/{ConfigConditionSensorState-BZpij7kB.js → ConfigConditionSensorState-Dn7kcHpJ.js} +4 -4
- package/dist/interface/ha/{ConfigConditionSwitch-DlTuJ9Sf.js → ConfigConditionSwitch-DaUlDgo0.js} +4 -4
- package/dist/interface/ha/{ConfigSensorValueInput-2QLHESlE.js → ConfigSensorValueInput-D6m6suqJ.js} +7 -7
- package/dist/interface/ha/{ConfigTriggerDetection-DPmUkmUJ.js → ConfigTriggerDetection-C5B_DC_L.js} +11 -11
- package/dist/interface/ha/{ConfigTriggerGeofence--T9OXhGl.js → ConfigTriggerGeofence-B4WVNcK5.js} +5 -5
- package/dist/interface/ha/{ConfigTriggerMqtt-fZn_X6yY.js → ConfigTriggerMqtt-wnMfk_Un.js} +1 -1
- package/dist/interface/ha/{ConfigTriggerSensor-_3O6iBFX.js → ConfigTriggerSensor-xFpI5KPu.js} +1 -1
- package/dist/interface/ha/{ConfigTriggerSystem-CC9lqi8Q.js → ConfigTriggerSystem-YI9WYYVM.js} +2 -2
- package/dist/interface/ha/{ConfigTriggerWebhook-BuBcgXqf.js → ConfigTriggerWebhook-58c2KgUe.js} +2 -2
- package/dist/interface/ha/{Console-DNc49UEt.js → Console-Coiqh32K.js} +4 -4
- package/dist/interface/ha/{CuiAutomationRunsDialog-Dj_iiZht.js → CuiAutomationRunsDialog-CJ2MGfEY.js} +2 -2
- package/dist/interface/ha/{CuiBottomSheet-DG7wOV7m.js → CuiBottomSheet-BlG9Pl9j.js} +1 -1
- package/dist/interface/ha/{CuiCameraRecordings-BlOZTfQ4.js → CuiCameraRecordings-DLXEB4Q7.js} +12 -12
- package/dist/interface/ha/{CuiCameraShares-BOn-mobi.js → CuiCameraShares-BCIeaM6u.js} +6 -6
- package/dist/interface/ha/{CuiCameraTable-D50FLiK8.js → CuiCameraTable-PYYC7sOu.js} +2 -2
- package/dist/interface/ha/{CuiChartTable-CfcVRvdZ.js → CuiChartTable-FQ2iR5Hd.js} +4 -4
- package/dist/interface/ha/{CuiConsole-UpN0Wihm.js → CuiConsole-C77k5q_-.js} +1 -1
- package/dist/interface/ha/{CuiDataTable-CpADXKNF.js → CuiDataTable-CIKQLseG.js} +2 -2
- package/dist/interface/ha/{CuiPluginCard-CT6ZfL9o.js → CuiPluginCard-DZNXKP_P.js} +42 -42
- package/dist/interface/ha/{CuiPluginOAuthButton-BJVKd6Ac.js → CuiPluginOAuthButton-DVf52_Zc.js} +2 -2
- package/dist/interface/ha/{CuiPluginTrustBadge-gb9GI24w.js → CuiPluginTrustBadge-CPljYiM8.js} +1 -1
- package/dist/interface/ha/{CuiQRCode-DqKDx9zR.js → CuiQRCode-oe8PLnLj.js} +2 -2
- package/dist/interface/ha/{CuiSchema-CHeJkx0k.js → CuiSchema-CQy94ZTs.js} +152 -152
- package/dist/interface/ha/{CuiTopNavbarItem-CFeI6ZYU.js → CuiTopNavbarItem-D6OHZLQY.js} +1 -1
- package/dist/interface/ha/{Faces-CTfvhhCj.js → Faces-DxAPvemO.js} +15 -15
- package/dist/interface/ha/{FirstSteps-C-WXJ8IL.js → FirstSteps-ZINTSaeL.js} +30 -30
- package/dist/interface/ha/{Floorplan-CDKTYN7B.js → Floorplan-DkbL8ppT.js} +155 -155
- package/dist/interface/ha/{Instances-n23yvN3L.js → Instances-totWtqd7.js} +13 -13
- package/dist/interface/ha/{Logs-Dfm0BWOQ.js → Logs-CzabIFja.js} +12 -12
- package/dist/interface/ha/{Menu-76kvdAEF.js → Menu-DcVBOQfw.js} +15 -15
- package/dist/interface/ha/{Metrics-lnivlTWm.js → Metrics-B_SN5hbp.js} +407 -407
- package/dist/interface/ha/{OAuthDeviceFlow-4ChaymHu.js → OAuthDeviceFlow-B28TPsTQ.js} +2 -2
- package/dist/interface/ha/{Plugin-BV8YA8aN.js → Plugin-B2PbbB8d.js} +208 -208
- package/dist/interface/ha/{PluginConsole-csf1Km7f.js → PluginConsole-_KeG4FvO.js} +4 -4
- package/dist/interface/ha/{PluginDetail-DTff6cbA.js → PluginDetail-GK_Fx14e.js} +7 -7
- package/dist/interface/ha/{PluginSearch-CdjxmFPN.js → PluginSearch-qSy4aqAW.js} +96 -96
- package/dist/interface/ha/{PluginUpdateProgress-ClyF4pbA.js → PluginUpdateProgress-C4Q2j6VO.js} +3 -3
- package/dist/interface/ha/{Plugins-_xOrqP36.js → Plugins-D0tvZHie.js} +54 -54
- package/dist/interface/ha/{Recordings-dTZv0pkp.js → Recordings-CpxJYaAa.js} +303 -307
- package/dist/interface/ha/{SensorEdit-DDRkZjmm.js → SensorEdit-8KtqLXEu.js} +377 -377
- package/dist/interface/ha/{SensorHistory-DSGlRITr.js → SensorHistory-CPTTsdjM.js} +2 -2
- package/dist/interface/ha/{Sensors-DjhGRUzM.js → Sensors-DJt_Hnn2.js} +102 -102
- package/dist/interface/ha/{Settings-DYuvz4de.js → Settings-B-OdG5pG.js} +10 -10
- package/dist/interface/ha/{SettingsAccount-DQAo8SnK.js → SettingsAccount-Ba2-2Lbi.js} +233 -233
- package/dist/interface/ha/{SettingsAppearance-_tbhpUA0.js → SettingsAppearance-D56HjSuQ.js} +7 -7
- package/dist/interface/ha/{SettingsAssistant-DSf-dYuD.js → SettingsAssistant-DglU0auc.js} +666 -621
- package/dist/interface/ha/{SettingsBackup-wLOa7xtw.js → SettingsBackup-DZx4McDz.js} +8 -8
- package/dist/interface/ha/{SettingsList-CYujivw5.js → SettingsList-D9nIGkbE.js} +4 -4
- package/dist/interface/ha/{SettingsMqtt-DbxJ-h3J.js → SettingsMqtt-BOszh--k.js} +180 -180
- package/dist/interface/ha/{SettingsNotifications-DO2-KJvq.js → SettingsNotifications-DBVpZfp0.js} +3 -3
- package/dist/interface/ha/{SettingsRecordings-C47i1UhI.js → SettingsRecordings-D3oJnizu.js} +3 -3
- package/dist/interface/ha/{SettingsRemote-BPvb-KLI.js → SettingsRemote-BOotvcOT.js} +54 -54
- package/dist/interface/ha/{SettingsSystem-BJPrv9JE.js → SettingsSystem-Bg11qoQX.js} +9 -9
- package/dist/interface/ha/{SettingsUsers-CcpCz6Y1.js → SettingsUsers-KpLs9Jnh.js} +25 -25
- package/dist/interface/ha/{Terminal-DT7-WNH1.js → Terminal-D6opTHYI.js} +168 -173
- package/dist/interface/ha/{Training-CqGBf8k1.js → Training-OB2KOQ7L.js} +537 -537
- package/dist/interface/ha/{Updates-CgdrqX6R.js → Updates-C_OvXJjd.js} +14 -14
- package/dist/interface/ha/{VariableInput-DOzSFgxT.js → VariableInput-CfaDp67S.js} +1 -1
- package/dist/interface/ha/{VersionsHandler-ItklhE2t.js → VersionsHandler-D1FVeYUZ.js} +10 -10
- package/dist/interface/ha/{VirtualSensorCreate-DbS3VqHC.js → VirtualSensorCreate-DJIgMVrt.js} +7 -7
- package/dist/interface/ha/{Workers-6PU7yUv1.js → Workers-cJMI4mYX.js} +26 -26
- package/dist/interface/ha/{api-anWolhVj.js → api-CDawdL4p.js} +1 -1
- package/dist/interface/ha/{api-Dv3Lk_g5.js → api-D2VzV4is.js} +9257 -9084
- package/dist/interface/ha/{assistant-B3m0Kgev.js → assistant-BmDAfChm.js} +1 -1
- package/dist/interface/ha/{auth-CAkpM_7A.js → auth-CvLz9C4w.js} +1 -1
- package/dist/interface/ha/{automationBlueprint-DwVvbKbw.js → automationBlueprint-BhNaeOZ1.js} +2 -2
- package/dist/interface/ha/{base-C-TYDHjS.js → base-XgWmQghV.js} +14 -3
- package/dist/interface/ha/cameraui-cards.js +1 -1
- package/dist/interface/ha/{cards-B0qagpBw.js → cards-MQrnU0T8.js} +1334 -1334
- package/dist/interface/ha/{config-C20itAPE.js → config-t_oAKFkJ.js} +1 -1
- package/dist/interface/ha/{esm-i8Tigknm.js → esm-C9XVFkXu.js} +4 -4
- package/dist/interface/ha/{mqtt-C6JvkA5E.js → mqtt-C20h1uze.js} +1 -1
- package/dist/interface/ha/{native-DBH9ocSq.js → native-BVUxNLM1.js} +4 -4
- package/dist/interface/ha/{notifications-gLmNZxwZ.js → notifications-Cy9DKiEn.js} +1 -1
- package/dist/interface/ha/{pinia-Du8AM917.js → pinia-BokSpDzj.js} +1 -0
- package/dist/interface/ha/{plugins-6x0kBuQb.js → plugins-jozYyBhV.js} +1 -1
- package/dist/interface/ha/{rooms-C-mLT6mX.js → rooms-DyfT3cXp.js} +1 -1
- package/dist/interface/ha/{server-DuikIt69.js → server-hCCjQjZE.js} +1 -1
- package/dist/interface/ha/{types-C0NcQ4Cz.js → types-RG0SckNR.js} +1 -1
- package/dist/interface/ha/{ungrouped-ooCH0Izh.js → ungrouped-BbyfoCQp.js} +19 -19
- package/dist/interface/ha/{updates-H8MlOQLC.js → updates-hUgVDgoD.js} +6 -6
- package/dist/interface/ha/{useAppVersion-DAUCV_cn.js → useAppVersion-wNhZDuvR.js} +1 -1
- package/dist/interface/ha/useKeyboardInset-Cmbvb_W3.js +27 -0
- package/dist/interface/ha/{useLogsSocket-BOLAXPuD.js → useLogsSocket-y9Aex3tJ.js} +1 -1
- package/dist/interface/ha/{useNavLayout-B7VoHzM1.js → useNavLayout-Ehb0t34k.js} +2 -2
- package/dist/interface/ha/{useServerRestart-qSH0bqwY.js → useServerRestart-CRSVcz3z.js} +1 -1
- package/dist/interface/ha/{useTabSwipe-DYzG_gVG.js → useTabSwipe-B_bseZkI.js} +1 -1
- package/dist/interface/ha/{useUpdateChannel-CK7JiWbG.js → useUpdateChannel-C_GU6lj6.js} +2 -2
- package/dist/interface/ha/{useUpdatesSocket-DrqkGMuR.js → useUpdatesSocket-CYgHb7UX.js} +1 -1
- package/dist/interface/ha/{useUserOptions-BteVUdaT.js → useUserOptions-pVYr-s3O.js} +1 -1
- package/dist/interface/ha/{web-D_q41D0i.js → web-CLbVbnCW.js} +5 -5
- package/dist/interface/index.html +28 -28
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +3 -3
- package/dist/server/requirements.txt +1 -1
- package/dist/server/src/api/controllers/rooms.controller.js +3 -1
- package/dist/server/src/api/controllers/rooms.controller.js.map +1 -1
- package/dist/server/src/api/database/types.d.ts +1 -0
- package/dist/server/src/api/schemas/assistant.schema.d.ts +2 -0
- package/dist/server/src/api/schemas/assistant.schema.js +1 -0
- package/dist/server/src/api/schemas/assistant.schema.js.map +1 -1
- package/dist/server/src/api/services/cameras.service.d.ts +1 -0
- package/dist/server/src/api/services/cameras.service.js +8 -0
- package/dist/server/src/api/services/cameras.service.js.map +1 -1
- package/dist/server/src/assistant/manager.d.ts +1 -0
- package/dist/server/src/assistant/manager.js +1 -1
- package/dist/server/src/assistant/manager.js.map +1 -1
- package/dist/server/src/assistant/scheduler.js +8 -1
- package/dist/server/src/assistant/scheduler.js.map +1 -1
- package/dist/server/src/plugins/index.js +5 -4
- package/dist/server/src/plugins/index.js.map +1 -1
- package/npm-shrinkwrap.json +6 -6
- package/package.json +3 -3
- package/dist/interface/assets/Assistant-B1xdMAkA.js +0 -1
- package/dist/interface/assets/Automations-Bpw8olkc.js +0 -2
- package/dist/interface/assets/Camera-B4ojNnKb.css +0 -1
- package/dist/interface/assets/Camera-BpFfZDaS.js +0 -2
- package/dist/interface/assets/Camview-C16pyCZk.js +0 -1
- package/dist/interface/assets/CuiAssistantConversation-CRNCKRHz.js +0 -5
- package/dist/interface/assets/CuiAssistantConversation-DQ0wOJvV.css +0 -1
- package/dist/interface/assets/CuiBottomSheet-CYi5c3fP.js +0 -1
- package/dist/interface/assets/CuiCameraPipCard-Cb_Qbly6.js +0 -1
- package/dist/interface/assets/CuiCameraTable-BgL5FZso.js +0 -1
- package/dist/interface/assets/CuiLightControl-CLYl5pfN.js +0 -1
- package/dist/interface/assets/CuiPluginCard-CC1oXY16.js +0 -2
- package/dist/interface/assets/Faces-1xd5yGuO.js +0 -1
- package/dist/interface/assets/FirstSteps-E9cMqa0a.js +0 -1
- package/dist/interface/assets/Floorplan-BovV_ATh.js +0 -1
- package/dist/interface/assets/Instances-BbxyB7vR.js +0 -1
- package/dist/interface/assets/Metrics-BgXrNl38.js +0 -12
- package/dist/interface/assets/Plugin-CDNywaVE.js +0 -1
- package/dist/interface/assets/PluginSearch-xNIlfXk4.js +0 -1
- package/dist/interface/assets/Recordings-BHT8Vvv_.js +0 -1
- package/dist/interface/assets/Recordings-DwuojaAw.css +0 -1
- package/dist/interface/assets/Sensors-Cza4Et2c.js +0 -2
- package/dist/interface/assets/Settings-Cj0leoGd.js +0 -1
- package/dist/interface/assets/SettingsAccount-COkcBBSz.js +0 -1
- package/dist/interface/assets/SettingsAccount-DjrJdssy.js +0 -1
- package/dist/interface/assets/SettingsAppearance-D20YW7Vq.js +0 -1
- package/dist/interface/assets/SettingsAssistant-CDdbbG-c.css +0 -1
- package/dist/interface/assets/SettingsAssistant-DKWDp1AI.js +0 -1
- package/dist/interface/assets/Training-DfgE_dA8.js +0 -1
- package/dist/interface/assets/Updates-cCvbFq3w.js +0 -2
- package/dist/interface/assets/Workers-Ba37_3cY.js +0 -2
- package/dist/interface/assets/api-C1mraOYr.js +0 -4
- package/dist/interface/assets/api-z8ZVnoOl.css +0 -2
- package/dist/interface/assets/cloudHandoff-DkUx4m3P.js +0 -1
- package/dist/interface/assets/esm-0kxqa_1s.js +0 -1
- package/dist/interface/assets/esm-4p_M5mFV.js +0 -1
- package/dist/interface/assets/esm-8G-vO1KQ.js +0 -1
- package/dist/interface/assets/esm-8cB56ICb.js +0 -1
- package/dist/interface/assets/esm-B92csSEb.js +0 -1
- package/dist/interface/assets/esm-BHiNTIiN.js +0 -1
- package/dist/interface/assets/esm-Bu9PMLmw.js +0 -1
- package/dist/interface/assets/esm-CS6Ra46d.js +0 -1
- package/dist/interface/assets/esm-CWvQWALL.js +0 -1
- package/dist/interface/assets/esm-D2UDrwmt.js +0 -1
- package/dist/interface/assets/esm-D8OHF2X1.js +0 -1
- package/dist/interface/assets/esm-DrXkS8eG.js +0 -1
- package/dist/interface/assets/esm-pfoHiO1a.js +0 -1
- package/dist/interface/assets/esm-tJSCF7Vh.js +0 -1
- package/dist/interface/assets/main-BK3kmiG2.js +0 -3
- package/dist/interface/assets/native-BEkWOGyD.js +0 -1
- package/dist/interface/assets/native-ugMg173F.js +0 -1
- package/dist/interface/assets/plugin-eafNQWg2.js +0 -1
- package/dist/interface/assets/useKeyboardInset-DkUn62i7.js +0 -1
- package/dist/interface/assets/web-3OOGlctS.js +0 -1
- package/dist/interface/assets/web-5NFVd9gs.js +0 -1
- package/dist/interface/assets/web-A4yovlXr.js +0 -1
- package/dist/interface/assets/web-BBC3YoWX.js +0 -1
- package/dist/interface/assets/web-BjKL51lK-DUIsII0n.js +0 -1
- package/dist/interface/assets/web-C2-YAfsx.js +0 -1
- package/dist/interface/assets/web-CUL_MhvM.js +0 -1
- package/dist/interface/assets/web-CZVCXYLV.js +0 -1
- package/dist/interface/assets/web-DJ-LUxlV.js +0 -1
- package/dist/interface/assets/web-DNsEGLGS.js +0 -1
- package/dist/interface/assets/web-DZsU0QT_.js +0 -1
- package/dist/interface/assets/web-MoyOTbiU.js +0 -1
- package/dist/interface/assets/web-avRH_3t7.js +0 -1
- package/dist/interface/ha/Camera-CerkQGbZ.js +0 -654
|
@@ -3,27 +3,27 @@ import { m as t } from "./ripple-ZDATPc2w.js";
|
|
|
3
3
|
import { A as n, B as r, Et as i, G as a, H as o, Jt as s, K as c, M as l, Ot as u, Wt as d, Y as f, _t as p, d as m, f as h, g, gt as _, kt as v, l as y, lt as b, ot as x, p as S, qt as C, r as w, rt as T, u as E, ut as D, v as O, wt as k, x as A, xt as j, y as M, z as ee } from "./runtime-core.esm-bundler-_TfE0DWz.js";
|
|
4
4
|
import { t as N } from "./tooltip-BDrlgLof.js";
|
|
5
5
|
import { t as te } from "./message-D6dIy_hz.js";
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { i as
|
|
9
|
-
import { A as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { v as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { i as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { a as
|
|
19
|
-
import { a as
|
|
20
|
-
import { t as ke } from "./CuiBottomSheet-
|
|
6
|
+
import { t as P } from "./history-XMyO_cLc.js";
|
|
7
|
+
import { An as ne, Ar as re, Dn as ie, Er as ae, Hr as oe, Si as se, Vr as ce, _n as le, _t as F, br as ue, gr as de, gt as fe, hi as pe, jr as me, m as he, q as ge, wr as _e, zr as ve } from "./api-D2VzV4is.js";
|
|
8
|
+
import { i as I } from "./intercomService-B7HkLs6z.js";
|
|
9
|
+
import { A as L, j as R, n as ye, r as be } from "./pinia-BokSpDzj.js";
|
|
10
|
+
import { n as z } from "./vue-i18n-D5EAy78K.js";
|
|
11
|
+
import { t as xe } from "./button-BouAFgf5.js";
|
|
12
|
+
import { v as B } from "./dist-oFWkn6pD.js";
|
|
13
|
+
import { t as V } from "./inputtext-C_ygnPrC.js";
|
|
14
|
+
import { t as H } from "./close-CxFbonhd.js";
|
|
15
|
+
import { i as U, n as Se, r as Ce, t as we } from "./accordion-BylV-jUK.js";
|
|
16
|
+
import { t as Te } from "./inputnumber-DZRwKgXr.js";
|
|
17
|
+
import { t as Ee } from "./speeddial-B5p0fuqL.js";
|
|
18
|
+
import { a as W, i as G, l as De, r as K } from "./types-RG0SckNR.js";
|
|
19
|
+
import { a as q, i as Oe } from "./automationBlueprint-BhNaeOZ1.js";
|
|
20
|
+
import { t as ke } from "./CuiBottomSheet-BlG9Pl9j.js";
|
|
21
21
|
import { t as Ae } from "./back-filled-CaxrZv0Q.js";
|
|
22
22
|
import { a as je, c as Me, d as Ne, f as Pe, i as Fe, l as Ie, n as Le, o as J, p as Re, r as Y, s as X, t as ze, u as Be } from "./vue-flow-background-8ZUqhPBF.js";
|
|
23
23
|
import { t as Ve } from "./plus-CgxY7W0L.js";
|
|
24
24
|
import { t as He } from "./settings-lWJfHaif.js";
|
|
25
25
|
//#region src/stores/automations.ts
|
|
26
|
-
var Z =
|
|
26
|
+
var Z = ye("automations", () => {
|
|
27
27
|
let e = j(null), t = j(null), n = j(null), r = j(!1), i = j(null), a = j([]);
|
|
28
28
|
function o(e) {
|
|
29
29
|
if (!n.value) return;
|
|
@@ -52,7 +52,7 @@ function We(e, t, n) {
|
|
|
52
52
|
if (r) return Ue(e, t).find((e) => e.template === r);
|
|
53
53
|
}
|
|
54
54
|
function Ge(e) {
|
|
55
|
-
let t = Z(), { t: n } =
|
|
55
|
+
let t = Z(), { t: n } = z(), r = y(() => Ue(t.draft, u(e)));
|
|
56
56
|
return {
|
|
57
57
|
variables: r,
|
|
58
58
|
options: y(() => r.value.map((e) => ({
|
|
@@ -115,10 +115,10 @@ function Je(e) {
|
|
|
115
115
|
break;
|
|
116
116
|
}
|
|
117
117
|
case "trigger-sensor": {
|
|
118
|
-
let i = String(t.sensorType ?? ""), a = (t.properties ?? []).length > 0 ? t.properties :
|
|
118
|
+
let i = String(t.sensorType ?? ""), a = (t.properties ?? []).length > 0 ? t.properties : L(i), o = a.map((e) => R(i, e)).filter((e) => !!e);
|
|
119
119
|
r("{{sensor.value}}", Ye(o), "variable_sensor_value", Xe(i, o)), r("{{sensor.previousValue}}", Ye(o), "variable_sensor_previous_value");
|
|
120
120
|
for (let t of a) {
|
|
121
|
-
let r =
|
|
121
|
+
let r = R(i, t);
|
|
122
122
|
for (let i of r?.keys ?? []) n.push({
|
|
123
123
|
template: `{{sensor.value.${i}}}`,
|
|
124
124
|
valueType: "number",
|
|
@@ -457,7 +457,7 @@ var At = ["id", "d"], jt = 24, Mt = /* @__PURE__ */ A({
|
|
|
457
457
|
r([n.id]);
|
|
458
458
|
}
|
|
459
459
|
return (n, r) => {
|
|
460
|
-
let i =
|
|
460
|
+
let i = H;
|
|
461
461
|
return o(), S(w, null, [E("path", {
|
|
462
462
|
id: e.id,
|
|
463
463
|
d: v(a),
|
|
@@ -593,7 +593,7 @@ function zt(e, t) {
|
|
|
593
593
|
if (e && typeof e == "object") for (let n of Object.values(e)) zt(n, t);
|
|
594
594
|
}
|
|
595
595
|
function Bt(e) {
|
|
596
|
-
let t = Z(), { t: n } =
|
|
596
|
+
let t = Z(), { t: n } = z();
|
|
597
597
|
return y(() => {
|
|
598
598
|
let r = t.validationIssues.filter((t) => t.nodeId === u(e));
|
|
599
599
|
if (r.length !== 0) return r.map((e) => n(`components.automation_nodes.${e.messageKey}`, e.params ?? {})).join("\n");
|
|
@@ -615,10 +615,10 @@ function Ht(e, t) {
|
|
|
615
615
|
function Ut(e) {
|
|
616
616
|
return e.type === "trigger-webhook" && !e.webhookId ? {
|
|
617
617
|
...e,
|
|
618
|
-
webhookId:
|
|
618
|
+
webhookId: pe()
|
|
619
619
|
} : e.type === "trigger-geofence" && !e.geofenceId ? {
|
|
620
620
|
...e,
|
|
621
|
-
geofenceId:
|
|
621
|
+
geofenceId: pe()
|
|
622
622
|
} : e;
|
|
623
623
|
}
|
|
624
624
|
function Wt(e, t, n) {
|
|
@@ -673,7 +673,7 @@ var qt = p({
|
|
|
673
673
|
}, Xt = { class: "flex items-center gap-2 px-3 py-2.5" }, Zt = { class: "flex-1 min-w-0" }, Qt = { class: "text-xs font-semibold truncate text-color" }, $t = {
|
|
674
674
|
key: 0,
|
|
675
675
|
class: "text-[10px] text-muted truncate mt-0.5"
|
|
676
|
-
}, en = /*#__PURE__*/
|
|
676
|
+
}, en = /*#__PURE__*/ ae(/* @__PURE__ */ A({
|
|
677
677
|
__name: "BaseNode",
|
|
678
678
|
props: /*@__PURE__*/ n({
|
|
679
679
|
icon: {},
|
|
@@ -757,7 +757,7 @@ var qt = p({
|
|
|
757
757
|
events: {}
|
|
758
758
|
},
|
|
759
759
|
setup(e) {
|
|
760
|
-
let t = e, { t: n } =
|
|
760
|
+
let t = e, { t: n } = z(), r = Z(), { lastOutput: i } = be(r), c = Bt(() => t.id), l = y(() => G(t.type)), u = y(() => l.value ? n(l.value.labelKey) : t.type), { cameraName: f } = q(), { sensors: p } = B(), g = y(() => {
|
|
761
761
|
let e = t.data, n = e.alias, r = Wt(t.data, f, x);
|
|
762
762
|
return e.type === "action-plugin" && e.repeat && e.repeat > 1 && (r = r ? `${r} (${e.repeat}x)` : `${e.repeat}x`), n && r ? `[${n}] ${r}` : n ? `[${n}]` : r;
|
|
763
763
|
}), _ = y(() => t.type !== "action-output" || !i.value ? [] : Object.entries(i.value));
|
|
@@ -766,7 +766,7 @@ var qt = p({
|
|
|
766
766
|
return t ? t.displayName.value || t.name : void 0;
|
|
767
767
|
}
|
|
768
768
|
return (t, n) => {
|
|
769
|
-
let r =
|
|
769
|
+
let r = I;
|
|
770
770
|
return o(), S("div", null, [M(en, {
|
|
771
771
|
icon: v(l).icon,
|
|
772
772
|
label: v(u),
|
|
@@ -826,7 +826,7 @@ var qt = p({
|
|
|
826
826
|
events: {}
|
|
827
827
|
},
|
|
828
828
|
setup(e) {
|
|
829
|
-
let t = e, { t: n } =
|
|
829
|
+
let t = e, { t: n } = z(), r = { borderColor: "var(--card-background)" }, i = Bt(() => t.id), a = y(() => G(t.type)), s = y(() => a.value ? n(a.value.labelKey) : t.type), { cameraName: c } = q(), { sensors: l } = B(), u = y(() => Wt(t.data, c, d));
|
|
830
830
|
function d(e) {
|
|
831
831
|
let t = l.value.find((t) => t.id === e);
|
|
832
832
|
return t ? t.displayName.value || t.name : void 0;
|
|
@@ -902,10 +902,10 @@ var qt = p({
|
|
|
902
902
|
events: {}
|
|
903
903
|
},
|
|
904
904
|
setup(e) {
|
|
905
|
-
let t = e, { t: n } =
|
|
905
|
+
let t = e, { t: n } = z(), r = {
|
|
906
906
|
backgroundColor: "#f59e0b",
|
|
907
907
|
borderColor: "var(--card-background)"
|
|
908
|
-
}, i = Bt(() => t.id), c = y(() =>
|
|
908
|
+
}, i = Bt(() => t.id), c = y(() => G(t.type)), l = y(() => c.value ? n(c.value.labelKey) : t.type), u = y(() => t.data.type === "condition-switch" && Array.isArray(t.data.cases) ? t.data.cases : []), d = y(() => t.data.type === "condition-switch" && t.data.variable ? t.data.variable : void 0);
|
|
909
909
|
return (t, n) => (o(), m(en, {
|
|
910
910
|
icon: v(c).icon,
|
|
911
911
|
label: v(l),
|
|
@@ -974,7 +974,7 @@ var qt = p({
|
|
|
974
974
|
events: {}
|
|
975
975
|
},
|
|
976
976
|
setup(e) {
|
|
977
|
-
let t = e, { t: n } =
|
|
977
|
+
let t = e, { t: n } = z(), { cameraName: r } = q(), { sensors: i } = B(), a = Bt(() => t.id), s = y(() => G(t.type)), c = y(() => s.value ? n(s.value.labelKey) : t.type), l = y(() => Wt(t.data, r, u));
|
|
978
978
|
function u(e) {
|
|
979
979
|
let t = i.value.find((t) => t.id === e);
|
|
980
980
|
return t ? t.displayName.value || t.name : void 0;
|
|
@@ -1043,7 +1043,7 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1043
1043
|
},
|
|
1044
1044
|
emits: ["node-select", "change"],
|
|
1045
1045
|
setup(e, { expose: n, emit: i }) {
|
|
1046
|
-
let a = e, c = i, { t: l } =
|
|
1046
|
+
let a = e, c = i, { t: l } = z(), { smBreakpoint: u } = re(), { screenToFlowCoordinate: f, getViewport: m, dimensions: h } = Ie(), y = cn(), C = {
|
|
1047
1047
|
"trigger-detection": p($),
|
|
1048
1048
|
"trigger-sensor": p($),
|
|
1049
1049
|
"trigger-schedule": p($),
|
|
@@ -1087,12 +1087,12 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1087
1087
|
function te() {
|
|
1088
1088
|
c("node-select", null);
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function P(e) {
|
|
1091
1091
|
let t = T.value.find((t) => t.id === e.source), n = T.value.find((t) => t.id === e.target);
|
|
1092
1092
|
return !(!t || !n || e.source === e.target || n.type?.startsWith("trigger-"));
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1095
|
-
if (!
|
|
1094
|
+
function ne(e) {
|
|
1095
|
+
if (!P(e)) return;
|
|
1096
1096
|
O();
|
|
1097
1097
|
let t = e.targetHandle ?? void 0, n = T.value.find((t) => t.id === e.target);
|
|
1098
1098
|
if (n?.type?.startsWith("condition-")) {
|
|
@@ -1116,14 +1116,14 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1116
1116
|
function ae(e) {
|
|
1117
1117
|
let t = e.dataTransfer?.getData("application/automationnode");
|
|
1118
1118
|
if (!t) return;
|
|
1119
|
-
let n =
|
|
1119
|
+
let n = G(t);
|
|
1120
1120
|
if (!n) return;
|
|
1121
1121
|
O();
|
|
1122
1122
|
let r = f({
|
|
1123
1123
|
x: e.clientX,
|
|
1124
1124
|
y: e.clientY
|
|
1125
1125
|
}), i = {
|
|
1126
|
-
id:
|
|
1126
|
+
id: he(12),
|
|
1127
1127
|
type: t,
|
|
1128
1128
|
position: r,
|
|
1129
1129
|
data: Ut({ ...n.defaults })
|
|
@@ -1131,11 +1131,11 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1131
1131
|
T.value = [...T.value, i], c("change");
|
|
1132
1132
|
}
|
|
1133
1133
|
function oe(e) {
|
|
1134
|
-
let t =
|
|
1134
|
+
let t = G(e);
|
|
1135
1135
|
if (!t) return;
|
|
1136
1136
|
O();
|
|
1137
1137
|
let { x: n, y: r, zoom: i } = m(), { width: a, height: o } = h.value, s = (-n + a / 2) / i, l = (-r + o / 2) / i, u = () => (Math.random() - .5) * 80, d = {
|
|
1138
|
-
id:
|
|
1138
|
+
id: he(12),
|
|
1139
1139
|
type: e,
|
|
1140
1140
|
position: {
|
|
1141
1141
|
x: s + u(),
|
|
@@ -1154,29 +1154,29 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1154
1154
|
function le() {
|
|
1155
1155
|
return [...T.value];
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function F() {
|
|
1158
1158
|
return [...D.value];
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function ue(e, t) {
|
|
1161
1161
|
let n = T.value.find((t) => t.id === e);
|
|
1162
1162
|
if (n && (n.data = t, n.type === "condition-switch" && Array.isArray(t.cases))) {
|
|
1163
1163
|
let n = new Set(t.cases.map(kt));
|
|
1164
1164
|
D.value = D.value.filter((t) => t.source !== e || !t.sourceHandle?.startsWith("case-") || n.has(t.sourceHandle));
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function de(e) {
|
|
1168
1168
|
let t = e.metaKey || e.ctrlKey;
|
|
1169
1169
|
t && e.key === "z" && !e.shiftKey ? (e.preventDefault(), k()) : (t && e.key === "z" && e.shiftKey || t && e.key === "y") && (e.preventDefault(), A());
|
|
1170
1170
|
}
|
|
1171
1171
|
return x(() => a.flow._id, () => {
|
|
1172
1172
|
T.value = [...a.flow.nodes], D.value = [...a.flow.edges], y.clear();
|
|
1173
|
-
}), ee(() => window.addEventListener("keydown",
|
|
1173
|
+
}), ee(() => window.addEventListener("keydown", de)), r(() => window.removeEventListener("keydown", de)), n({
|
|
1174
1174
|
removeNode: se,
|
|
1175
1175
|
addNodeAtCenter: oe,
|
|
1176
1176
|
clearAll: ce,
|
|
1177
1177
|
getNodes: le,
|
|
1178
|
-
getEdges:
|
|
1179
|
-
updateNodeData:
|
|
1178
|
+
getEdges: F,
|
|
1179
|
+
updateNodeData: ue,
|
|
1180
1180
|
undo: k,
|
|
1181
1181
|
redo: A,
|
|
1182
1182
|
canUndo: y.canUndo,
|
|
@@ -1201,11 +1201,11 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1201
1201
|
},
|
|
1202
1202
|
"snap-to-grid": !0,
|
|
1203
1203
|
"snap-grid": [16, 16],
|
|
1204
|
-
"is-valid-connection":
|
|
1204
|
+
"is-valid-connection": P,
|
|
1205
1205
|
class: "automation-canvas",
|
|
1206
1206
|
onNodeClick: N,
|
|
1207
1207
|
onPaneClick: te,
|
|
1208
|
-
onConnect:
|
|
1208
|
+
onConnect: ne,
|
|
1209
1209
|
onNodesChange: ie
|
|
1210
1210
|
}, g({
|
|
1211
1211
|
default: b(() => [M(v(ze), { gap: 16 }), M(v(Ot))]),
|
|
@@ -1221,31 +1221,31 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1221
1221
|
])], 34));
|
|
1222
1222
|
}
|
|
1223
1223
|
}), fn = {
|
|
1224
|
-
"trigger-detection":
|
|
1225
|
-
"trigger-sensor":
|
|
1226
|
-
"trigger-schedule":
|
|
1227
|
-
"trigger-webhook":
|
|
1228
|
-
"trigger-mqtt":
|
|
1229
|
-
"trigger-system":
|
|
1230
|
-
"trigger-manual":
|
|
1231
|
-
"trigger-geofence":
|
|
1232
|
-
"action-snapshot":
|
|
1233
|
-
"action-sensor":
|
|
1234
|
-
"action-notification":
|
|
1235
|
-
"action-notification-control":
|
|
1236
|
-
"action-assistant":
|
|
1237
|
-
"action-http":
|
|
1238
|
-
"action-mqtt":
|
|
1239
|
-
"action-delay":
|
|
1240
|
-
"action-variable":
|
|
1241
|
-
"action-plugin":
|
|
1242
|
-
"action-image-input":
|
|
1243
|
-
"action-output":
|
|
1244
|
-
"action-camera-control":
|
|
1245
|
-
"condition-ifelse":
|
|
1246
|
-
"condition-switch":
|
|
1247
|
-
"condition-sensorstate":
|
|
1248
|
-
"condition-time":
|
|
1224
|
+
"trigger-detection": F(() => import("./ConfigTriggerDetection-C5B_DC_L.js")),
|
|
1225
|
+
"trigger-sensor": F(() => import("./ConfigTriggerSensor-xFpI5KPu.js")),
|
|
1226
|
+
"trigger-schedule": F(() => import("./ConfigTriggerSchedule-_ThdB8Bb.js")),
|
|
1227
|
+
"trigger-webhook": F(() => import("./ConfigTriggerWebhook-58c2KgUe.js")),
|
|
1228
|
+
"trigger-mqtt": F(() => import("./ConfigTriggerMqtt-wnMfk_Un.js")),
|
|
1229
|
+
"trigger-system": F(() => import("./ConfigTriggerSystem-YI9WYYVM.js")),
|
|
1230
|
+
"trigger-manual": F(() => import("./ConfigTriggerManual-B0DDQtoz.js")),
|
|
1231
|
+
"trigger-geofence": F(() => import("./ConfigTriggerGeofence-B4WVNcK5.js")),
|
|
1232
|
+
"action-snapshot": F(() => import("./ConfigActionSnapshot-GWgY6YIN.js")),
|
|
1233
|
+
"action-sensor": F(() => import("./ConfigActionSensor-DOutFalW.js")),
|
|
1234
|
+
"action-notification": F(() => import("./ConfigActionNotification-CQ4Ses3a.js")),
|
|
1235
|
+
"action-notification-control": F(() => import("./ConfigActionNotificationControl-Cb5PNGz-.js")),
|
|
1236
|
+
"action-assistant": F(() => import("./ConfigActionAssistant-hl-6ZACj.js")),
|
|
1237
|
+
"action-http": F(() => import("./ConfigActionHttp-BkpkMmRd.js")),
|
|
1238
|
+
"action-mqtt": F(() => import("./ConfigActionMqtt-DA_UWb5j.js")),
|
|
1239
|
+
"action-delay": F(() => import("./ConfigActionDelay-iZ3lPGzw.js")),
|
|
1240
|
+
"action-variable": F(() => import("./ConfigActionVariable-bu-9VYTG.js")),
|
|
1241
|
+
"action-plugin": F(() => import("./ConfigActionPlugin-ChKFCNaj.js")),
|
|
1242
|
+
"action-image-input": F(() => import("./ConfigActionImageInput-Dp78_QS_.js")),
|
|
1243
|
+
"action-output": F(() => import("./ConfigActionOutput-DLuNHwRb.js")),
|
|
1244
|
+
"action-camera-control": F(() => import("./ConfigActionCameraControl-DnXlVFWD.js")),
|
|
1245
|
+
"condition-ifelse": F(() => import("./ConfigConditionIfElse-iNp8tlZV.js")),
|
|
1246
|
+
"condition-switch": F(() => import("./ConfigConditionSwitch-DaUlDgo0.js")),
|
|
1247
|
+
"condition-sensorstate": F(() => import("./ConfigConditionSensorState-Dn7kcHpJ.js")),
|
|
1248
|
+
"condition-time": F(() => import("./ConfigConditionTime-DF6llIJq.js"))
|
|
1249
1249
|
}, pn = { class: "h-full overflow-y-auto flex flex-col" }, mn = { class: "flex items-center gap-2 px-4 py-3 border-bottom-color" }, hn = { class: "flex-1 min-w-0" }, gn = { class: "text-sm font-semibold truncate text-color" }, _n = { class: "text-xs text-muted" }, vn = { class: "flex-1 overflow-y-auto" }, yn = { class: "text-color font-normal text-sm" }, bn = { class: "flex flex-col field-gap" }, xn = { class: "text-color font-normal text-sm" }, Sn = { class: "text-color font-normal text-sm" }, Cn = { class: "flex flex-col gap-3" }, wn = { class: "flex flex-col field-gap" }, Tn = { class: "cui-label" }, En = {
|
|
1250
1250
|
key: 0,
|
|
1251
1251
|
class: "flex flex-col field-gap"
|
|
@@ -1261,7 +1261,7 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1261
1261
|
"delete"
|
|
1262
1262
|
],
|
|
1263
1263
|
setup(e, { emit: t }) {
|
|
1264
|
-
let n = e, r = t, { t: i } =
|
|
1264
|
+
let n = e, r = t, { t: i } = z(), a = y(() => n.node.type ? G(n.node.type) : void 0), c = y(() => n.node.type?.startsWith("action-")), l = y(() => {
|
|
1265
1265
|
if (n.node.type) return fn[n.node.type];
|
|
1266
1266
|
}), u = y(() => {
|
|
1267
1267
|
let e = ["config"];
|
|
@@ -1271,7 +1271,7 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1271
1271
|
r("update:data", e);
|
|
1272
1272
|
}
|
|
1273
1273
|
return (t, n) => {
|
|
1274
|
-
let r =
|
|
1274
|
+
let r = H, p = xe, g = Ce, _ = V, y = te, x = U, w = Se, T = Te, D = we;
|
|
1275
1275
|
return o(), S("div", pn, [
|
|
1276
1276
|
E("div", mn, [
|
|
1277
1277
|
E("div", {
|
|
@@ -1415,31 +1415,31 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1415
1415
|
], In = { class: "flex items-center gap-2.5 flex-1 min-w-0 px-3 py-2.5" }, Ln = { class: "flex-1 min-w-0" }, Rn = { class: "text-[13px] font-medium truncate text-color block leading-tight" }, zn = {
|
|
1416
1416
|
key: 0,
|
|
1417
1417
|
class: "text-[11px] text-muted block truncate mt-0.5 leading-tight"
|
|
1418
|
-
}, Bn = /*#__PURE__*/
|
|
1418
|
+
}, Bn = /*#__PURE__*/ ae(/* @__PURE__ */ A({
|
|
1419
1419
|
__name: "CuiAutomationNodePalette",
|
|
1420
|
-
props: /*@__PURE__*/ n({ mode: {} },
|
|
1420
|
+
props: /*@__PURE__*/ n({ mode: {} }, K),
|
|
1421
1421
|
emits: ["node-click"],
|
|
1422
1422
|
setup(e) {
|
|
1423
|
-
let { t } =
|
|
1423
|
+
let { t } = z(), n = [
|
|
1424
1424
|
{
|
|
1425
1425
|
key: "trigger",
|
|
1426
1426
|
labelKey: "components.automation_nodes.category_triggers",
|
|
1427
|
-
nodes:
|
|
1427
|
+
nodes: W("trigger")
|
|
1428
1428
|
},
|
|
1429
1429
|
{
|
|
1430
1430
|
key: "condition",
|
|
1431
1431
|
labelKey: "components.automation_nodes.category_conditions",
|
|
1432
|
-
nodes:
|
|
1432
|
+
nodes: W("condition")
|
|
1433
1433
|
},
|
|
1434
1434
|
{
|
|
1435
1435
|
key: "utility",
|
|
1436
1436
|
labelKey: "components.automation_nodes.category_utilities",
|
|
1437
|
-
nodes:
|
|
1437
|
+
nodes: W("utility")
|
|
1438
1438
|
},
|
|
1439
1439
|
{
|
|
1440
1440
|
key: "action",
|
|
1441
1441
|
labelKey: "components.automation_nodes.category_actions",
|
|
1442
|
-
nodes:
|
|
1442
|
+
nodes: W("action")
|
|
1443
1443
|
}
|
|
1444
1444
|
];
|
|
1445
1445
|
function r(e, t) {
|
|
@@ -1479,7 +1479,7 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1479
1479
|
"show-history"
|
|
1480
1480
|
],
|
|
1481
1481
|
setup(e, { emit: t }) {
|
|
1482
|
-
let n = e, r = t, { t: i } =
|
|
1482
|
+
let n = e, r = t, { t: i } = z(), { smBreakpoint: a } = re(), s = T("menuRef"), c = y(() => [{
|
|
1483
1483
|
key: "suppressDuplicates",
|
|
1484
1484
|
label: i("views.automation.suppress_duplicates"),
|
|
1485
1485
|
description: i("views.automation.suppress_duplicates_hint"),
|
|
@@ -1495,7 +1495,7 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1495
1495
|
onClick: () => r("toggle-single-execution")
|
|
1496
1496
|
}]);
|
|
1497
1497
|
return (t, n) => {
|
|
1498
|
-
let r = Ae, l =
|
|
1498
|
+
let r = Ae, l = xe, u = V, f = ne, p = P, g = He, _ = ie, y = N;
|
|
1499
1499
|
return o(), S("div", Vn, [
|
|
1500
1500
|
v(a) ? h("", !0) : (o(), m(l, {
|
|
1501
1501
|
key: 0,
|
|
@@ -1579,7 +1579,7 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1579
1579
|
__name: "CuiAutomationMobileNodeConfig",
|
|
1580
1580
|
props: { node: {} },
|
|
1581
1581
|
setup(e, { expose: t }) {
|
|
1582
|
-
let n = e, { t: r } =
|
|
1582
|
+
let n = e, { t: r } = z(), i = Z(), a = y(() => {
|
|
1583
1583
|
if (n.node.type) return fn[n.node.type];
|
|
1584
1584
|
});
|
|
1585
1585
|
function c(e) {
|
|
@@ -1608,36 +1608,36 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1608
1608
|
}, Zn = { class: "text-muted" }, Qn = /*@__PURE__*/ A({
|
|
1609
1609
|
__name: "Automation",
|
|
1610
1610
|
setup(e) {
|
|
1611
|
-
let t =
|
|
1611
|
+
let t = F(() => import("./CuiAutomationRunsDialog-CJ2MGfEY.js")), n = new De(), r = ce(), i = oe(), { t: a } = z(), { smBreakpoint: c } = re(), { bottombarHeight: u } = me(), p = fe(), g = se(), O = Z(), k = y(() => r.params.id), A = y(() => k.value === "new"), ee = y(() => de(void 0, "admin")), { data: te, isBusy: P } = n.getAutomationQuery(k), { mutateAsync: ne } = n.createAutomationQuery(), { mutateAsync: ie } = n.patchAutomationQuery(), { mutateAsync: ae } = n.deleteAutomationQuery(), { mutateAsync: pe } = n.triggerAutomationQuery(), I = T("canvasRef"), L = j(!1), R = j(!1), ye = j(!1), be = j(!1), B = !1, V, H = y({
|
|
1612
1612
|
get: () => O.draft,
|
|
1613
1613
|
set: (e) => {
|
|
1614
1614
|
O.draft = e;
|
|
1615
1615
|
}
|
|
1616
|
-
}),
|
|
1617
|
-
if (
|
|
1618
|
-
}),
|
|
1619
|
-
if (!c.value &&
|
|
1620
|
-
}),
|
|
1621
|
-
...
|
|
1616
|
+
}), U = y(() => {
|
|
1617
|
+
if (H.value && O.selectedNodeId) return H.value.nodes.find((e) => e.id === O.selectedNodeId);
|
|
1618
|
+
}), Se = y(() => {
|
|
1619
|
+
if (!c.value && U.value) return "calc(300px + 1.25rem + var(--safe-area-inset-right))";
|
|
1620
|
+
}), Ce = y(() => [
|
|
1621
|
+
...H.value?.nodes.some((e) => e.type === "trigger-manual") ?? !1 ? [{
|
|
1622
1622
|
label: a("views.automation.run"),
|
|
1623
|
-
icon:
|
|
1624
|
-
buttonProps: { disabled: A.value ||
|
|
1623
|
+
icon: le,
|
|
1624
|
+
buttonProps: { disabled: A.value || R.value },
|
|
1625
1625
|
command: () => He()
|
|
1626
1626
|
}] : [],
|
|
1627
1627
|
{
|
|
1628
1628
|
label: a("views.automation.undo"),
|
|
1629
1629
|
icon: Be,
|
|
1630
|
-
buttonProps: { disabled: !
|
|
1630
|
+
buttonProps: { disabled: !ye.value },
|
|
1631
1631
|
command: () => {
|
|
1632
|
-
|
|
1632
|
+
I.value?.undo(), K();
|
|
1633
1633
|
}
|
|
1634
1634
|
},
|
|
1635
1635
|
{
|
|
1636
1636
|
label: a("views.automation.redo"),
|
|
1637
1637
|
icon: Pe,
|
|
1638
|
-
buttonProps: { disabled: !
|
|
1638
|
+
buttonProps: { disabled: !be.value },
|
|
1639
1639
|
command: () => {
|
|
1640
|
-
|
|
1640
|
+
I.value?.redo(), K();
|
|
1641
1641
|
}
|
|
1642
1642
|
},
|
|
1643
1643
|
{
|
|
@@ -1657,12 +1657,12 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1657
1657
|
command: () => Ge()
|
|
1658
1658
|
}
|
|
1659
1659
|
]);
|
|
1660
|
-
function Ce() {
|
|
1661
|
-
ve.value = L.value?.canUndo ?? !1, ye.value = L.value?.canRedo ?? !1;
|
|
1662
|
-
}
|
|
1663
1660
|
function we() {
|
|
1664
|
-
|
|
1665
|
-
|
|
1661
|
+
ye.value = I.value?.canUndo ?? !1, be.value = I.value?.canRedo ?? !1;
|
|
1662
|
+
}
|
|
1663
|
+
function Te() {
|
|
1664
|
+
H.value = {
|
|
1665
|
+
_id: he(12),
|
|
1666
1666
|
name: a("views.automation.untitled"),
|
|
1667
1667
|
enabled: !1,
|
|
1668
1668
|
nodes: [],
|
|
@@ -1673,15 +1673,15 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1673
1673
|
updatedAt: Date.now()
|
|
1674
1674
|
}, O.selectedNodeId = null;
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1677
|
-
clearTimeout(
|
|
1678
|
-
J(), O.validationIssues = It(
|
|
1676
|
+
function W() {
|
|
1677
|
+
clearTimeout(V), V = setTimeout(() => {
|
|
1678
|
+
J(), O.validationIssues = It(H.value);
|
|
1679
1679
|
}, 300);
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1682
|
-
|
|
1681
|
+
function K() {
|
|
1682
|
+
R.value = !0, we(), W();
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function q() {
|
|
1685
1685
|
p.openComponentDialog(t, { data: {
|
|
1686
1686
|
title: a("views.automations.run_history"),
|
|
1687
1687
|
contentProps: { flowId: k.value },
|
|
@@ -1689,27 +1689,27 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1689
1689
|
} });
|
|
1690
1690
|
}
|
|
1691
1691
|
function je() {
|
|
1692
|
-
J(),
|
|
1692
|
+
J(), K();
|
|
1693
1693
|
}
|
|
1694
1694
|
function Me(e) {
|
|
1695
|
-
|
|
1695
|
+
H.value && (H.value.name = e, K());
|
|
1696
1696
|
}
|
|
1697
1697
|
function Fe(e, t) {
|
|
1698
|
-
if (!
|
|
1699
|
-
let n =
|
|
1698
|
+
if (!H.value) return;
|
|
1699
|
+
let n = H.value.nodes.find((t) => t.id === e);
|
|
1700
1700
|
if (n?.data) {
|
|
1701
1701
|
if (!Object.entries(t).some(([e, t]) => n.data[e] !== t)) return;
|
|
1702
|
-
Object.assign(n.data, t),
|
|
1702
|
+
Object.assign(n.data, t), I.value?.updateNodeData(e, { ...n.data }), K();
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
1705
1705
|
function Ie() {
|
|
1706
|
-
if (!
|
|
1707
|
-
let e =
|
|
1706
|
+
if (!H.value) return {};
|
|
1707
|
+
let e = I.value?.getNodes?.() ?? H.value.nodes, t = I.value?.getEdges?.() ?? H.value.edges;
|
|
1708
1708
|
return {
|
|
1709
|
-
name:
|
|
1710
|
-
enabled:
|
|
1711
|
-
suppressDuplicates:
|
|
1712
|
-
singleExecution:
|
|
1709
|
+
name: H.value.name,
|
|
1710
|
+
enabled: H.value.enabled,
|
|
1711
|
+
suppressDuplicates: H.value.suppressDuplicates,
|
|
1712
|
+
singleExecution: H.value.singleExecution,
|
|
1713
1713
|
nodes: e.map((e) => ({
|
|
1714
1714
|
id: e.id,
|
|
1715
1715
|
type: e.type ?? "",
|
|
@@ -1726,20 +1726,20 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1726
1726
|
};
|
|
1727
1727
|
}
|
|
1728
1728
|
async function Le() {
|
|
1729
|
-
if (!
|
|
1729
|
+
if (!H.value) return;
|
|
1730
1730
|
J();
|
|
1731
1731
|
let e = Ie();
|
|
1732
1732
|
try {
|
|
1733
1733
|
if (A.value) {
|
|
1734
|
-
let t = await
|
|
1735
|
-
|
|
1734
|
+
let t = await ne({ data: e });
|
|
1735
|
+
R.value = !1, i.replace(`/automations/${t._id}`);
|
|
1736
1736
|
} else {
|
|
1737
|
-
let t = await
|
|
1738
|
-
id:
|
|
1737
|
+
let t = await ie({
|
|
1738
|
+
id: H.value._id,
|
|
1739
1739
|
data: e
|
|
1740
1740
|
});
|
|
1741
|
-
if (
|
|
1742
|
-
let t =
|
|
1741
|
+
if (R.value = !1, t?.nodes && H.value) for (let e of t.nodes) {
|
|
1742
|
+
let t = H.value.nodes.find((t) => t.id === e.id);
|
|
1743
1743
|
t?.data && e.data && Object.assign(t.data, e.data);
|
|
1744
1744
|
}
|
|
1745
1745
|
g.add({
|
|
@@ -1757,16 +1757,16 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1757
1757
|
}
|
|
1758
1758
|
}
|
|
1759
1759
|
function J() {
|
|
1760
|
-
if (!
|
|
1761
|
-
let e =
|
|
1762
|
-
e && (
|
|
1760
|
+
if (!H.value) return;
|
|
1761
|
+
let e = I.value?.getNodes(), t = I.value?.getEdges();
|
|
1762
|
+
e && (H.value.nodes = e), t && (H.value.edges = t);
|
|
1763
1763
|
}
|
|
1764
1764
|
function Y(e) {
|
|
1765
1765
|
if (O.selectedNodeId = e, c.value && e) {
|
|
1766
1766
|
J();
|
|
1767
|
-
let t =
|
|
1767
|
+
let t = H.value?.nodes.find((t) => t.id === e);
|
|
1768
1768
|
if (!t) return;
|
|
1769
|
-
let n = t.type ?
|
|
1769
|
+
let n = t.type ? G(t.type) : void 0, r = n ? a(n.labelKey) : "Node", i = t.id;
|
|
1770
1770
|
p.openComponentDialog(Gn, {
|
|
1771
1771
|
data: {
|
|
1772
1772
|
title: r,
|
|
@@ -1779,21 +1779,21 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1779
1779
|
} }
|
|
1780
1780
|
},
|
|
1781
1781
|
onSettled: () => {
|
|
1782
|
-
|
|
1782
|
+
H.value?.nodes.some((e) => e.id === i) || (I.value?.removeNode(i), K());
|
|
1783
1783
|
}
|
|
1784
1784
|
});
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
1787
|
function X(e) {
|
|
1788
|
-
|
|
1788
|
+
L.value = !1, I.value?.addNodeAtCenter(e), K();
|
|
1789
1789
|
}
|
|
1790
1790
|
function ze() {
|
|
1791
|
-
O.selectedNodeId && (
|
|
1791
|
+
O.selectedNodeId && (I.value?.removeNode(O.selectedNodeId), H.value && (H.value.nodes = H.value.nodes.filter((e) => e.id !== O.selectedNodeId), H.value.edges = H.value.edges.filter((e) => e.source !== O.selectedNodeId && e.target !== O.selectedNodeId)), O.selectedNodeId = null, O.lastOutput = null, K());
|
|
1792
1792
|
}
|
|
1793
1793
|
async function He() {
|
|
1794
|
-
if (
|
|
1794
|
+
if (H.value && !A.value) try {
|
|
1795
1795
|
O.lastOutput = null;
|
|
1796
|
-
let e = await
|
|
1796
|
+
let e = await pe({ id: H.value._id });
|
|
1797
1797
|
e?.output && Object.keys(e.output).length > 0 && (O.lastOutput = e.output), g.add({
|
|
1798
1798
|
severity: "success",
|
|
1799
1799
|
detail: a("views.automation.triggered"),
|
|
@@ -1808,17 +1808,17 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
1810
|
function Ue() {
|
|
1811
|
-
if (!
|
|
1811
|
+
if (!H.value) return;
|
|
1812
1812
|
Le();
|
|
1813
1813
|
let e = {
|
|
1814
1814
|
version: 1,
|
|
1815
|
-
name:
|
|
1816
|
-
nodes: Oe(
|
|
1817
|
-
edges:
|
|
1815
|
+
name: H.value.name,
|
|
1816
|
+
nodes: Oe(H.value.nodes),
|
|
1817
|
+
edges: H.value.edges
|
|
1818
1818
|
}, t = JSON.stringify(e, null, 2), n = new Blob([t], { type: "application/json" });
|
|
1819
1819
|
ue({
|
|
1820
1820
|
blob: n,
|
|
1821
|
-
filename: `${
|
|
1821
|
+
filename: `${H.value.name.replace(/\s+/g, "_").toLowerCase()}.blueprint.json`
|
|
1822
1822
|
});
|
|
1823
1823
|
}
|
|
1824
1824
|
function We() {
|
|
@@ -1829,13 +1829,13 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1829
1829
|
confirmText: a("views.automation.clear")
|
|
1830
1830
|
},
|
|
1831
1831
|
onConfirm: async () => {
|
|
1832
|
-
|
|
1832
|
+
I.value?.clearAll(), H.value && (H.value.nodes = [], H.value.edges = []), O.selectedNodeId = null, K();
|
|
1833
1833
|
}
|
|
1834
1834
|
});
|
|
1835
1835
|
}
|
|
1836
1836
|
function Ge() {
|
|
1837
|
-
if (!
|
|
1838
|
-
let e =
|
|
1837
|
+
if (!H.value) return;
|
|
1838
|
+
let e = H.value._id;
|
|
1839
1839
|
p.openTextDialog({
|
|
1840
1840
|
data: {
|
|
1841
1841
|
title: a("views.automations.delete"),
|
|
@@ -1843,7 +1843,7 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1843
1843
|
confirmText: a("views.automations.delete")
|
|
1844
1844
|
},
|
|
1845
1845
|
onConfirm: async () => {
|
|
1846
|
-
await
|
|
1846
|
+
await ae({ id: e }), i.push("/automations");
|
|
1847
1847
|
}
|
|
1848
1848
|
});
|
|
1849
1849
|
}
|
|
@@ -1851,22 +1851,22 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1851
1851
|
i.push("/automations");
|
|
1852
1852
|
}
|
|
1853
1853
|
return x(k, (e) => {
|
|
1854
|
-
O.activeFlowId = e === "new" ? null : e ?? null, O.selectedNodeId = null, O.lastOutput = null,
|
|
1854
|
+
O.activeFlowId = e === "new" ? null : e ?? null, O.selectedNodeId = null, O.lastOutput = null, R.value = !1, e === "new" ? Te() : H.value = null;
|
|
1855
1855
|
}, { immediate: !0 }), x(te, (e) => {
|
|
1856
|
-
e && !
|
|
1856
|
+
e && !R.value && (H.value = JSON.parse(JSON.stringify(e)), O.validationIssues = It(H.value));
|
|
1857
1857
|
}, { immediate: !0 }), x(() => O.draftDirty, (e) => {
|
|
1858
|
-
e && (O.draftDirty = !1,
|
|
1859
|
-
}),
|
|
1858
|
+
e && (O.draftDirty = !1, K());
|
|
1859
|
+
}), ve((e) => !R.value || B ? !0 : (p.openTextDialog({
|
|
1860
1860
|
data: {
|
|
1861
1861
|
title: a("views.automation.unsaved_title"),
|
|
1862
1862
|
contentText: a("views.automation.unsaved_message"),
|
|
1863
1863
|
confirmText: a("views.automation.discard")
|
|
1864
1864
|
},
|
|
1865
1865
|
onConfirm: async () => {
|
|
1866
|
-
|
|
1866
|
+
B = !0, i.push(e.fullPath);
|
|
1867
1867
|
}
|
|
1868
1868
|
}), !1)), (e, t) => {
|
|
1869
|
-
let n = Ae, r =
|
|
1869
|
+
let n = Ae, r = xe, i = ge, p = Ee, g = ke, y = _e, x = N;
|
|
1870
1870
|
return o(), S("div", Kn, [M(i, { position: "left" }, {
|
|
1871
1871
|
default: b(() => [M(r, {
|
|
1872
1872
|
severity: "secondary",
|
|
@@ -1878,20 +1878,20 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1878
1878
|
_: 1
|
|
1879
1879
|
})]),
|
|
1880
1880
|
_: 1
|
|
1881
|
-
}), v(
|
|
1881
|
+
}), v(H) ? (o(), S(w, { key: 0 }, [
|
|
1882
1882
|
M(Hn, {
|
|
1883
|
-
flow: v(
|
|
1883
|
+
flow: v(H),
|
|
1884
1884
|
"show-history": !v(A) && v(ee),
|
|
1885
|
-
onShowHistory:
|
|
1885
|
+
onShowHistory: q,
|
|
1886
1886
|
"onUpdate:name": Me,
|
|
1887
1887
|
onToggleEnabled: t[0] ||= (e) => {
|
|
1888
|
-
v(
|
|
1888
|
+
v(H).enabled = !v(H).enabled, K();
|
|
1889
1889
|
},
|
|
1890
1890
|
onToggleSuppressDuplicates: t[1] ||= (e) => {
|
|
1891
|
-
v(
|
|
1891
|
+
v(H).suppressDuplicates = !v(H).suppressDuplicates, K();
|
|
1892
1892
|
},
|
|
1893
1893
|
onToggleSingleExecution: t[2] ||= (e) => {
|
|
1894
|
-
v(
|
|
1894
|
+
v(H).singleExecution = !v(H).singleExecution, K();
|
|
1895
1895
|
}
|
|
1896
1896
|
}, null, 8, ["flow", "show-history"]),
|
|
1897
1897
|
E("div", qn, [
|
|
@@ -1901,8 +1901,8 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1901
1901
|
})),
|
|
1902
1902
|
M(dn, {
|
|
1903
1903
|
ref_key: "canvasRef",
|
|
1904
|
-
ref:
|
|
1905
|
-
flow: v(
|
|
1904
|
+
ref: I,
|
|
1905
|
+
flow: v(H),
|
|
1906
1906
|
mobile: v(c),
|
|
1907
1907
|
class: "flex-1 min-w-0",
|
|
1908
1908
|
onNodeSelect: Y,
|
|
@@ -1911,10 +1911,10 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1911
1911
|
v(c) ? h("", !0) : (o(), S("div", {
|
|
1912
1912
|
key: 1,
|
|
1913
1913
|
class: "shrink-0 overflow-hidden transition-[width] duration-200 ease-in-out",
|
|
1914
|
-
style: C({ width: v(
|
|
1915
|
-
}, [v(
|
|
1914
|
+
style: C({ width: v(U) ? "300px" : "0px" })
|
|
1915
|
+
}, [v(U) ? (o(), m(jn, {
|
|
1916
1916
|
key: 0,
|
|
1917
|
-
node: v(
|
|
1917
|
+
node: v(U),
|
|
1918
1918
|
class: "w-[300px]",
|
|
1919
1919
|
onClose: t[3] ||= (e) => v(O).selectedNodeId = null,
|
|
1920
1920
|
"onUpdate:data": t[4] ||= (e) => Fe(v(O).selectedNodeId, e),
|
|
@@ -1922,7 +1922,7 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1922
1922
|
}, null, 8, ["node"])) : h("", !0)], 4))
|
|
1923
1923
|
]),
|
|
1924
1924
|
M(p, {
|
|
1925
|
-
model: v(
|
|
1925
|
+
model: v(Ce),
|
|
1926
1926
|
direction: "up",
|
|
1927
1927
|
"transition-delay": 80,
|
|
1928
1928
|
"tooltip-options": {
|
|
@@ -1932,8 +1932,8 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1932
1932
|
style: C({
|
|
1933
1933
|
position: "fixed",
|
|
1934
1934
|
zIndex: 15,
|
|
1935
|
-
bottom: `calc(${v(u)}px + ${v(
|
|
1936
|
-
right: v(
|
|
1935
|
+
bottom: `calc(${v(u)}px + ${v(R) ? "4.25rem" : "1.25rem"} + var(--safe-area-inset-bottom))`,
|
|
1936
|
+
right: v(Se) || "calc(1.25rem + var(--safe-area-inset-right))",
|
|
1937
1937
|
transition: "right 0.2s ease-in-out, bottom 0.2s ease-in-out"
|
|
1938
1938
|
}),
|
|
1939
1939
|
pt: { root: { style: "pointer-events: none" } }
|
|
@@ -1980,12 +1980,12 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1980
1980
|
bottom: `calc(${v(u)}px + 1.25rem + var(--safe-area-inset-bottom))`,
|
|
1981
1981
|
right: "calc(4.75rem + var(--safe-area-inset-right))"
|
|
1982
1982
|
}),
|
|
1983
|
-
onClick: t[5] ||= (e) =>
|
|
1983
|
+
onClick: t[5] ||= (e) => L.value = !0
|
|
1984
1984
|
}, {
|
|
1985
1985
|
icon: b(() => [M(v(Ve), { class: "w-5 h-5" })]),
|
|
1986
1986
|
_: 1
|
|
1987
1987
|
}, 8, ["style"])), [[x, { value: v(a)("views.automation.add_step") }]]) : h("", !0),
|
|
1988
|
-
v(
|
|
1988
|
+
v(R) ? D((o(), m(r, {
|
|
1989
1989
|
key: 1,
|
|
1990
1990
|
rounded: "",
|
|
1991
1991
|
severity: "success",
|
|
@@ -1994,7 +1994,7 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
1994
1994
|
position: "fixed",
|
|
1995
1995
|
zIndex: 15,
|
|
1996
1996
|
bottom: `calc(${v(u)}px + 1.25rem + var(--safe-area-inset-bottom))`,
|
|
1997
|
-
right: v(
|
|
1997
|
+
right: v(Se) || "calc(1.25rem + var(--safe-area-inset-right))",
|
|
1998
1998
|
transition: "right 0.2s ease-in-out"
|
|
1999
1999
|
}),
|
|
2000
2000
|
onClick: Le
|
|
@@ -2003,8 +2003,8 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
2003
2003
|
_: 1
|
|
2004
2004
|
}, 8, ["style"])), [[x, { value: v(a)("views.automation.save") }]]) : h("", !0),
|
|
2005
2005
|
M(g, {
|
|
2006
|
-
modelValue: v(
|
|
2007
|
-
"onUpdate:modelValue": t[6] ||= (e) => _(
|
|
2006
|
+
modelValue: v(L),
|
|
2007
|
+
"onUpdate:modelValue": t[6] ||= (e) => _(L) ? L.value = e : null,
|
|
2008
2008
|
title: v(a)("views.automation.add_step"),
|
|
2009
2009
|
"max-height": "70vh"
|
|
2010
2010
|
}, {
|
|
@@ -2014,7 +2014,7 @@ var ln = { class: "absolute inset-0 flex items-center justify-center pointer-eve
|
|
|
2014
2014
|
})]),
|
|
2015
2015
|
_: 1
|
|
2016
2016
|
}, 8, ["modelValue", "title"])
|
|
2017
|
-
], 64)) : v(
|
|
2017
|
+
], 64)) : v(P) ? (o(), S("div", Yn, [M(y, {
|
|
2018
2018
|
class: "!w-8 !h-8",
|
|
2019
2019
|
"stroke-width": "5"
|
|
2020
2020
|
})])) : (o(), S("div", Xn, [E("span", Zn, s(v(a)("views.automations.no_automations")), 1)]))]);
|