@camera.ui/server 2.2.5-beta.2 → 2.2.5-beta.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.
- package/dist/interface/assets/{404-BDvtK1qR.js → 404-YZOLos9r.js} +1 -1
- package/dist/interface/assets/{About-B4A35rRx.js → About-HtxMc8JZ.js} +1 -1
- package/dist/interface/assets/Assistant-bB8RBo-m.js +1 -0
- package/dist/interface/assets/Automation-D3DcUyui.js +3 -0
- package/dist/interface/assets/{AutomationImport-CEJdhE_d.js → AutomationImport-Dp_hT6hQ.js} +2 -2
- package/dist/interface/assets/AutomationStore-BKR7GXMk.js +2 -0
- package/dist/interface/assets/{AutomationStoreDetail-BenRMMtV.js → AutomationStoreDetail-B9yh51WQ.js} +2 -2
- package/dist/interface/assets/Automations-BdZZW2eN.js +2 -0
- package/dist/interface/assets/Camera-Ct7ndOxr.js +2 -0
- package/dist/interface/assets/{CameraConsole-D24yXOQn.js → CameraConsole-BI93OaRt.js} +2 -2
- package/dist/interface/assets/Cameras-Ctub8sVt.js +651 -0
- package/dist/interface/assets/Camview-BjQdTHNh.js +1 -0
- package/dist/interface/assets/{CertificateUpload-26LAL4MY.js → CertificateUpload-xW55NA1Q.js} +1 -1
- package/dist/interface/assets/Config-CBTbYd5v.js +2 -0
- package/dist/interface/assets/{ConfigActionAssistant-Cl_kr3hp.js → ConfigActionAssistant-B488rOp5.js} +1 -1
- package/dist/interface/assets/{ConfigActionCameraControl-CL4vXcNe.js → ConfigActionCameraControl-ZMUuBxOs.js} +1 -1
- package/dist/interface/assets/{ConfigActionDelay-DtPgmqWh.js → ConfigActionDelay-BJ11xvOW.js} +1 -1
- package/dist/interface/assets/{ConfigActionHttp-DnkZTP5l.js → ConfigActionHttp-DOUo69OR.js} +1 -1
- package/dist/interface/assets/{ConfigActionImageInput-3svn6YP9.js → ConfigActionImageInput-BMzuVZW9.js} +1 -1
- package/dist/interface/assets/{ConfigActionMqtt-BTsFTLgm.js → ConfigActionMqtt-Co_uksca.js} +1 -1
- package/dist/interface/assets/{ConfigActionNotification-Cr4xJrZp.js → ConfigActionNotification-CcZkstYx.js} +1 -1
- package/dist/interface/assets/{ConfigActionNotificationControl-Cxkb_g8p.js → ConfigActionNotificationControl--VeucoTw.js} +1 -1
- package/dist/interface/assets/{ConfigActionOutput-WTr7FGf_.js → ConfigActionOutput-CyDa1LGA.js} +1 -1
- package/dist/interface/assets/{ConfigActionPlugin-BpcJepbD.js → ConfigActionPlugin-Kfg3ZEQF.js} +1 -1
- package/dist/interface/assets/{ConfigActionSensor-BgD_F-hD.js → ConfigActionSensor-DhAF0HPw.js} +1 -1
- package/dist/interface/assets/{ConfigActionSnapshot-DjR-Z08N.js → ConfigActionSnapshot-zMe3SPvW.js} +1 -1
- package/dist/interface/assets/{ConfigActionVariable-gPuPbjpm.js → ConfigActionVariable-BE5q3NwY.js} +1 -1
- package/dist/interface/assets/{ConfigConditionIfElse-CUHKJmPx.js → ConfigConditionIfElse-BNIRtSVD.js} +1 -1
- package/dist/interface/assets/{ConfigConditionSensorState-D-gPRqMu.js → ConfigConditionSensorState-DTNd-SzI.js} +1 -1
- package/dist/interface/assets/{ConfigConditionSwitch-BRf1T5tJ.js → ConfigConditionSwitch-BU5wWMU1.js} +1 -1
- package/dist/interface/assets/{ConfigConditionTime-BC0n6sWO.js → ConfigConditionTime-KXTCIVIV.js} +1 -1
- package/dist/interface/assets/{ConfigSensorValueInput-BUHapx4M.js → ConfigSensorValueInput-BC1FpMm-.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerDetection-Byd6SLGg.js → ConfigTriggerDetection-hIN1hi53.js} +1 -1
- package/dist/interface/assets/ConfigTriggerGeofence-Bl2ZacbY.js +1 -0
- package/dist/interface/assets/{ConfigTriggerManual-B2dWcFrl.js → ConfigTriggerManual-C5vwxS-e.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerMqtt-B_aUDBu4.js → ConfigTriggerMqtt-B4PtWC3E.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSchedule-DAZo1PLj.js → ConfigTriggerSchedule-BZzUdGBa.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSensor-BCqAiPu4.js → ConfigTriggerSensor-D18nwMsj.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSystem-DuBydCiq.js → ConfigTriggerSystem-BhygWLB4.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerWebhook-DDsnpwJr.js → ConfigTriggerWebhook-yyuBuhLD.js} +1 -1
- package/dist/interface/assets/Console-Cfk9MA9m.js +1 -0
- package/dist/interface/assets/CuiAssistantConversation-BHK_i56I.js +5 -0
- package/dist/interface/assets/CuiAssistantConversation-lkpZg3ML.css +1 -0
- package/dist/interface/assets/{CuiAutomationRunsDialog-C_sMg7E1.js → CuiAutomationRunsDialog-B0ohEHw0.js} +1 -1
- package/dist/interface/assets/{CuiBottomSheet-D_0LrjA_.js → CuiBottomSheet-DWefGWK2.js} +1 -1
- package/dist/interface/assets/CuiBottomSheet-NgX7VFao.js +1 -0
- package/dist/interface/assets/CuiCameraPipCard-C2qaGJlH.js +1 -0
- package/dist/interface/assets/CuiCameraRecordings-BTD-CQAg.js +1 -0
- package/dist/interface/assets/{CuiCameraShares-BIUB1xMa.js → CuiCameraShares-DcqOcePX.js} +1 -1
- package/dist/interface/assets/{CuiCameraTable-D-UhqHk4.js → CuiCameraTable-BOkfp_5M.js} +2 -2
- package/dist/interface/assets/CuiCameraTable-KPk46Xcl.js +1 -0
- package/dist/interface/assets/{CuiChartTable-CSK4Mzn3.js → CuiChartTable-DP38uBwK.js} +1 -1
- package/dist/interface/assets/{CuiConsole-DAbJXJBq.js → CuiConsole-C7xE_nQg.js} +2 -2
- package/dist/interface/assets/{CuiDataTable-DgcJsG-K.js → CuiDataTable-CsqH-RB1.js} +1 -1
- package/dist/interface/assets/CuiLightControl-ChGYpQAK.js +1 -0
- package/dist/interface/assets/{CuiLightControl-DFrZm_sv.css → CuiLightControl-D9sm8NZb.css} +1 -1
- package/dist/interface/assets/{CuiList-HdsA9vV1.js → CuiList-DJp0__mV.js} +1 -1
- package/dist/interface/assets/CuiPluginCard-CWImTZ6l.js +2 -0
- package/dist/interface/assets/{CuiPluginCategoryChip-C7R1jP7r.js → CuiPluginCategoryChip-Ch_upS6Y.js} +1 -1
- package/dist/interface/assets/{CuiPluginOAuthButton-BJJw0IaC.js → CuiPluginOAuthButton-DEQ9xILN.js} +2 -2
- package/dist/interface/assets/{CuiPluginTrustBadge-Bmm1qYdC.js → CuiPluginTrustBadge-sVWdvHcM.js} +1 -1
- package/dist/interface/assets/{CuiQRCode-DTSEFMBt.js → CuiQRCode-DqSF4SkD.js} +1 -1
- package/dist/interface/assets/CuiSchema-ytExUVhI.js +1 -0
- package/dist/interface/assets/CuiTopNavbarItem-B_KWykgq.js +1 -0
- package/dist/interface/assets/Faces-Cb6XMxDC.js +1 -0
- package/dist/interface/assets/FirstSteps-QNYTkEJo.js +1 -0
- package/dist/interface/assets/Floorplan-DbqADtN1.js +1 -0
- package/dist/interface/assets/Instances-DrMzPD65.js +1 -0
- package/dist/interface/assets/{Logs-BjcfuMQV.js → Logs-BSPT80vP.js} +2 -2
- package/dist/interface/assets/{Menu-BjjnSgdP.js → Menu-HHtuhIS2.js} +1 -1
- package/dist/interface/assets/Metrics-CqhUnVRA.js +12 -0
- package/dist/interface/assets/{OAuthDeviceFlow-9v-Czy_u.js → OAuthDeviceFlow-Bn1nlWNa.js} +1 -1
- package/dist/interface/assets/Plugin-DyOg_fbg.js +1 -0
- package/dist/interface/assets/{PluginConsole-C7sO42RG.js → PluginConsole-Cv-uhnPY.js} +2 -2
- package/dist/interface/assets/PluginDetail-cpOz7FkA.js +2 -0
- package/dist/interface/assets/{PluginSchema-D0eL9H-b.js → PluginSchema-DW3TGeTM.js} +1 -1
- package/dist/interface/assets/PluginSearch-BgecD9Ob.js +2 -0
- package/dist/interface/assets/PluginSearch-C8xHKikH.js +1 -0
- package/dist/interface/assets/{PluginUpdateProgress--MM9D8hs.js → PluginUpdateProgress-n6q6vzyd.js} +1 -1
- package/dist/interface/assets/Plugins-CuujWEtM.js +1 -0
- package/dist/interface/assets/{RecentEventsFilter-CvIJS8Se.js → RecentEventsFilter-CTR5JK_P.js} +1 -1
- package/dist/interface/assets/Recordings-ths9khZr.js +1 -0
- package/dist/interface/assets/SensorEdit-BzoIH7QC.js +1 -0
- package/dist/interface/assets/{SensorHistory-Efw0bZ-X.js → SensorHistory-9CdOpCPs.js} +1 -1
- package/dist/interface/assets/Sensors-CK5uExfU.js +2 -0
- package/dist/interface/assets/Settings-DN5hFtw_.js +1 -0
- package/dist/interface/assets/SettingsAccount-BCrmon5O.js +1 -0
- package/dist/interface/assets/SettingsAccount-CSy1BAIH.js +1 -0
- package/dist/interface/assets/{SettingsAccount-si-6gWl5.css → SettingsAccount-CY8YE_cy.css} +1 -1
- package/dist/interface/assets/SettingsAppearance-BY1xQMx4.js +1 -0
- package/dist/interface/assets/SettingsAppearance-h_XPZfQl.js +1 -0
- package/dist/interface/assets/SettingsAssistant-D8FmVbUL.js +1 -0
- package/dist/interface/assets/{SettingsBackup-BqKBKis5.js → SettingsBackup-D_weokqu.js} +1 -1
- package/dist/interface/assets/{SettingsList-BU191rmt.js → SettingsList-Bq24WTDU.js} +1 -1
- package/dist/interface/assets/SettingsMqtt-DCkLIYpF.js +1 -0
- package/dist/interface/assets/SettingsNotifications-8TZOUxg2.js +1 -0
- package/dist/interface/assets/{SettingsPermissions-sI64FPZG.js → SettingsPermissions-M8u_jrN0.js} +1 -1
- package/dist/interface/assets/{SettingsRecordings-CghrKErw.js → SettingsRecordings-C1Kp5xW_.js} +1 -1
- package/dist/interface/assets/SettingsRemote-DXlQKwlT.js +2 -0
- package/dist/interface/assets/{SettingsSystem-DP1p1Xns.js → SettingsSystem-Cetu2faJ.js} +2 -2
- package/dist/interface/assets/{SettingsUsers-Dpej-he1.js → SettingsUsers-CDwtQLdV.js} +1 -1
- package/dist/interface/assets/{Terminal-DPRPXCSt.js → Terminal-Dl-aAZME.js} +2 -2
- package/dist/interface/assets/{Training-Dwf5rXyC.css → Training-B1oQjAr8.css} +1 -1
- package/dist/interface/assets/Training-DdZjXgt1.js +1 -0
- package/dist/interface/assets/{Updates-QTvCp1aS.js → Updates-CkB1lXuo.js} +1 -1
- package/dist/interface/assets/{VariableInput-DhusSZPw.js → VariableInput-BxPj5wo6.js} +1 -1
- package/dist/interface/assets/{VariableSuggestions-Bkzz4Mv3.js → VariableSuggestions-CbizvAkz.js} +1 -1
- package/dist/interface/assets/{VersionsHandler-DjNSpSYy.js → VersionsHandler-CePyEUVO.js} +2 -2
- package/dist/interface/assets/{VirtualSensorCreate-soGT6h2c.js → VirtualSensorCreate-D_GVoeL7.js} +1 -1
- package/dist/interface/assets/Workers-7yiebNkl.js +2 -0
- package/dist/interface/assets/api-DK2Bav9D.js +4 -0
- package/dist/interface/assets/api-DTCqDA-h.css +2 -0
- package/dist/interface/assets/{api-CK2tonlH.js → api-DW2niHRN.js} +1 -1
- package/dist/interface/assets/{assistant-BEe1ExZL.js → assistant-BJ6xKcw_.js} +1 -1
- package/dist/interface/assets/{auth-QEpUGkWd.js → auth-Dc8bUpc-.js} +1 -1
- package/dist/interface/assets/{automations-BBIBV4Uu.js → automations-DXrjbArj.js} +1 -1
- package/dist/interface/assets/{cameraSources-Cm18cW9L.js → cameraSources-QJfUDOQJ.js} +1 -1
- package/dist/interface/assets/cloudHandoff-DtlquYGZ.js +1 -0
- package/dist/interface/assets/{config-vwkU8aqP.js → config-CiQDwB4t.js} +1 -1
- package/dist/interface/assets/{flowSchema-rzBroL0H.js → flowSchema-BRTZHQ1w.js} +1 -1
- package/dist/interface/assets/{intercomService-Du8V_HxF.js → intercomService-BnA-FQ0Q.js} +1 -1
- package/dist/interface/assets/{main-XHFrBKKz.css → main-BoGhBedC.css} +1 -1
- package/dist/interface/assets/main-D74mRIxc.js +3 -0
- package/dist/interface/assets/mqtt-iD9XHYO_.js +1 -0
- package/dist/interface/assets/{notifications-CN6eTJb_.js → notifications-CbAJX7RF.js} +1 -1
- package/dist/interface/assets/{plugins-DKtX7zQp.js → plugins-eIUrXNeM.js} +1 -1
- package/dist/interface/assets/rooms-BqPyo8jc.js +1 -0
- package/dist/interface/assets/{sensorIcons-ztqlMLDc.js → sensorIcons-DQVgryYP.js} +1 -1
- package/dist/interface/assets/{sensorSlots-D-uxjuv3.js → sensorSlots-BZCXtnb6.js} +1 -1
- package/dist/interface/assets/{sensors-DV2Z0IJt.js → sensors-DttBNEEt.js} +1 -1
- package/dist/interface/assets/{server-CfZnIVzn.js → server-DUFhf2c_.js} +1 -1
- package/dist/interface/assets/{theme-Bi7qdjBK.js → theme-BMmjtQ4w.js} +1 -1
- package/dist/interface/assets/{types-CNLAvgyw.js → types-5rE8Tz0_.js} +1 -1
- package/dist/interface/assets/{types-DwbeYXvn.js → types-CXw7CEzu.js} +1 -1
- package/dist/interface/assets/{types-DuwD8xp5.js → types-DWTSNJ79.js} +1 -1
- package/dist/interface/assets/ungrouped-D56FGIrg.js +1 -0
- package/dist/interface/assets/ungrouped-DHMJ9Rg1.css +1 -0
- package/dist/interface/assets/{updates-BqCH6Vr8.js → updates-TIPWXKzL.js} +1 -1
- package/dist/interface/assets/{useAppVersion-B-rmq3Bb.js → useAppVersion-BIz44Bg4.js} +1 -1
- package/dist/interface/assets/{useAssistantActions-Kf-5ijVf.js → useAssistantActions-CLkkw9kB.js} +1 -1
- package/dist/interface/assets/useBackupRestore-Crfd592q.js +1 -0
- package/dist/interface/assets/{useCameraOptions-Dt2J8sP_.js → useCameraOptions-A97teAIr.js} +1 -1
- package/dist/interface/assets/{useKeyboardInset-DtD3I2WC.js → useKeyboardInset-DXVi1dLG.js} +1 -1
- package/dist/interface/assets/{useLogsSocket-CEhUQdiY.js → useLogsSocket-BlFxVXjF.js} +1 -1
- package/dist/interface/assets/{useNavLayout-CtpYjS5W.js → useNavLayout-C5obaCNv.js} +1 -1
- package/dist/interface/assets/{usePermissions-CJzuagwD.js → usePermissions-C8hB_pG1.js} +1 -1
- package/dist/interface/assets/{usePluginUpdates-BwoWN5yb.js → usePluginUpdates-DO0-Gk4Q.js} +1 -1
- package/dist/interface/assets/{usePushRegistration-ANx4BS6_.js → usePushRegistration-BUttCraQ.js} +1 -1
- package/dist/interface/assets/{useServerRestart-7edyD8M0.js → useServerRestart-Cz9eVHUE.js} +1 -1
- package/dist/interface/assets/{useStreamStatus-DCSWHdbW.js → useStreamStatus-BhS_MCCB.js} +1 -1
- package/dist/interface/assets/{useTabSwipe-DfS3R3uP.js → useTabSwipe-D4k8lm1M.js} +1 -1
- package/dist/interface/assets/{useUpdateChannel-Cr9mSIRC.js → useUpdateChannel-D9lhfW0y.js} +1 -1
- package/dist/interface/assets/{useUpdatesSocket-B5Rm9syb.js → useUpdatesSocket-DnH9sON5.js} +1 -1
- package/dist/interface/assets/{useUserOptions-CJjImz8V.js → useUserOptions-BTRBUuE2.js} +1 -1
- package/dist/interface/assets/{vendor-cameraui-BbGOMenD.js → vendor-cameraui-QXD8jkcj.js} +26 -26
- package/dist/interface/assets/{vendor-core-tgH2YubJ.js → vendor-core-CnhnyKDl.js} +1 -1
- package/dist/interface/assets/{vendor-primevue-DNJJiEZl.js → vendor-primevue-CCUqY55W.js} +207 -207
- package/dist/interface/ha/{404-Dl6JtQWv.js → 404-DLhJqxRl.js} +1 -1
- package/dist/interface/ha/{About-wjv4kCO3.js → About-DC0i1iE4.js} +3 -3
- package/dist/interface/ha/{Assistant-Dpb4IsDC.js → Assistant-BmazMPIg.js} +821 -825
- package/dist/interface/ha/{Automation-CqTPjCUh.js → Automation-gabF9YzQ.js} +336 -336
- package/dist/interface/ha/{AutomationImport-CvdeneoU.js → AutomationImport-DaqZNs9s.js} +8 -8
- package/dist/interface/ha/{AutomationStore-bVPE68io.js → AutomationStore-DzM4huo5.js} +54 -54
- package/dist/interface/ha/{AutomationStoreDetail-BYaNUjoH.js → AutomationStoreDetail-CpzQMt_D.js} +7 -7
- package/dist/interface/ha/{Automations-BfsYh2A_.js → Automations-Dcm4Us50.js} +81 -81
- package/dist/interface/ha/{Camera-C70onr_O.js → Camera-CNK3QR7l.js} +198 -198
- package/dist/interface/ha/{CameraConsole-Dg3lV-wq.js → CameraConsole-CpcF0411.js} +5 -5
- package/dist/interface/ha/{Cameras-DpM6gt3G.js → Cameras-Cf9rwRyf.js} +293 -294
- package/dist/interface/ha/{Camview-CO_bHntH.js → Camview-BFKR2t6C.js} +87 -87
- package/dist/interface/ha/{Config-D-cpocuH.js → Config-1XH3zfr2.js} +11 -11
- package/dist/interface/ha/{ConfigActionAssistant-DVVVfVvT.js → ConfigActionAssistant-C0-NFoTB.js} +5 -5
- package/dist/interface/ha/{ConfigActionCameraControl-BPpzE9-F.js → ConfigActionCameraControl-DNSKZPSZ.js} +5 -5
- package/dist/interface/ha/{ConfigActionDelay-zU6H75hY.js → ConfigActionDelay-iZ3lPGzw.js} +1 -1
- package/dist/interface/ha/{ConfigActionHttp-BsNy03j4.js → ConfigActionHttp-DVJAcGkl.js} +3 -3
- package/dist/interface/ha/{ConfigActionImageInput-JUvNYn0w.js → ConfigActionImageInput-VVbHHHZs.js} +3 -3
- package/dist/interface/ha/{ConfigActionMqtt-PZqAKfTo.js → ConfigActionMqtt-N5OUJDzM.js} +4 -4
- package/dist/interface/ha/{ConfigActionNotification-DIL7abEm.js → ConfigActionNotification-s142tQoU.js} +6 -6
- package/dist/interface/ha/{ConfigActionNotificationControl-BQ2w5yeg.js → ConfigActionNotificationControl-Dh7kaKVP.js} +3 -3
- package/dist/interface/ha/{ConfigActionOutput-DVilKhPV.js → ConfigActionOutput-B4HHTg5C.js} +1 -1
- package/dist/interface/ha/{ConfigActionPlugin-BUfTEJQ_.js → ConfigActionPlugin-D20G2Dqf.js} +5 -5
- package/dist/interface/ha/{ConfigActionSensor-Dzp16VyX.js → ConfigActionSensor-BS3jrFaG.js} +6 -6
- package/dist/interface/ha/{ConfigActionSnapshot-CRjD5AMC.js → ConfigActionSnapshot-CInLAcwK.js} +3 -3
- package/dist/interface/ha/{ConfigActionVariable-CR8g7gEh.js → ConfigActionVariable-C5vADGNF.js} +2 -2
- package/dist/interface/ha/{ConfigConditionIfElse-CHoSgzXF.js → ConfigConditionIfElse-CPeWDD31.js} +4 -4
- package/dist/interface/ha/{ConfigConditionSensorState-Dn8_OhQe.js → ConfigConditionSensorState-BM5GmpN6.js} +6 -6
- package/dist/interface/ha/{ConfigConditionSwitch-Ds-nqWeU.js → ConfigConditionSwitch-Dmz9FduJ.js} +4 -4
- package/dist/interface/ha/{ConfigConditionTime-DWNfEluj.js → ConfigConditionTime-DF6llIJq.js} +2 -2
- package/dist/interface/ha/{ConfigSensorValueInput-DwXM9wP1.js → ConfigSensorValueInput-Ch5njvtv.js} +7 -7
- package/dist/interface/ha/{ConfigTriggerDetection-D37OkR_u.js → ConfigTriggerDetection-BR2QWNyO.js} +5 -5
- package/dist/interface/ha/{ConfigTriggerGeofence-EbXy_y3Q.js → ConfigTriggerGeofence-CaImOjyW.js} +9 -9
- package/dist/interface/ha/{ConfigTriggerMqtt-BX6uNEZy.js → ConfigTriggerMqtt-DWz1XwZQ.js} +2 -2
- package/dist/interface/ha/{ConfigTriggerSensor-BFGEtBVF.js → ConfigTriggerSensor-lfnhz0im.js} +3 -3
- package/dist/interface/ha/{ConfigTriggerSystem-fRnAgUGR.js → ConfigTriggerSystem-CwUhyFAj.js} +3 -3
- package/dist/interface/ha/{ConfigTriggerWebhook-DegifRdj.js → ConfigTriggerWebhook-J6Xts7GQ.js} +2 -2
- package/dist/interface/ha/{Console-Bo6S5psN.js → Console-BSdKFm6Y.js} +8 -8
- package/dist/interface/ha/{CuiAutomationRunsDialog-DXpNJqDE.js → CuiAutomationRunsDialog-BU8sympp.js} +3 -3
- package/dist/interface/ha/{CuiBottomSheet-DLkC2OmT.js → CuiBottomSheet-Bnp7ta7V.js} +1 -1
- package/dist/interface/ha/{CuiCameraRecordings-9tdkxXiT.js → CuiCameraRecordings-E-mMqKSs.js} +18 -19
- package/dist/interface/ha/{CuiCameraShares-BbqY_2b7.js → CuiCameraShares-DcNwd2OC.js} +8 -8
- package/dist/interface/ha/{CuiCameraTable-BmH1yAgl.js → CuiCameraTable-DNW9Vm_A.js} +6 -6
- package/dist/interface/ha/{CuiChartTable-BjBBI7Fo.js → CuiChartTable-muC7jL2H.js} +6 -6
- package/dist/interface/ha/{CuiConsole-By3m4UbE.js → CuiConsole-ND8bcuTg.js} +2 -2
- package/dist/interface/ha/{CuiDataTable-C_ndu5My.js → CuiDataTable-CN4T8DgP.js} +13 -13
- package/dist/interface/ha/{CuiPluginCard-BLQ1galy.js → CuiPluginCard-nIQiyQvH.js} +31 -31
- package/dist/interface/ha/{CuiPluginOAuthButton-BDghklSy.js → CuiPluginOAuthButton-FJ49NfUh.js} +3 -3
- package/dist/interface/ha/{CuiPluginTrustBadge-DolANNao.js → CuiPluginTrustBadge-D6eanMyI.js} +2 -2
- package/dist/interface/ha/{CuiQRCode-CcjPngXI.js → CuiQRCode-BdJzeeoE.js} +2 -2
- package/dist/interface/ha/{CuiSchema-D9JFf0dp.js → CuiSchema-DY0V-8xP.js} +67 -67
- package/dist/interface/ha/{CuiTopNavbarItem-DcUEq-4e.js → CuiTopNavbarItem-DT5pAKHp.js} +7 -8
- package/dist/interface/ha/{Faces-DjXHzr77.js → Faces-C_svyTrr.js} +92 -92
- package/dist/interface/ha/{FirstSteps-CQAP9Siw.js → FirstSteps-yS2M2cor.js} +9 -9
- package/dist/interface/ha/{Floorplan-DyaPzlQO.js → Floorplan-DSOeScjI.js} +194 -194
- package/dist/interface/ha/{Instances-DWjaU5gj.js → Instances-B4h5EKpF.js} +20 -20
- package/dist/interface/ha/{Logs-Dlx-X1NS.js → Logs-BH0Lxvs6.js} +12 -12
- package/dist/interface/ha/{Menu-iqEe01qO.js → Menu-COH7QXuE.js} +13 -13
- package/dist/interface/ha/{Metrics-Br2Dyvzh.js → Metrics-BtnRqL_I.js} +136 -136
- package/dist/interface/ha/{OAuthDeviceFlow-CIGk92FD.js → OAuthDeviceFlow-D2QJ9MnP.js} +8 -8
- package/dist/interface/ha/{Plugin-DklIr7j2.js → Plugin-EfUSqwyh.js} +85 -85
- package/dist/interface/ha/{PluginConsole-DCfxPtGU.js → PluginConsole-hh_o15f7.js} +4 -4
- package/dist/interface/ha/PluginDetail-DFiXGkrY.js +805 -0
- package/dist/interface/ha/{PluginSearch-BTKBnjxb.js → PluginSearch-Cdrfubrj.js} +54 -54
- package/dist/interface/ha/{PluginUpdateProgress-Dej5AcCt.js → PluginUpdateProgress-BD2g2kVj.js} +3 -3
- package/dist/interface/ha/{Plugins-C2fONspm.js → Plugins-qFiHW-Nk.js} +45 -45
- package/dist/interface/ha/{RecentEventsFilter-ylgjiDo8.js → RecentEventsFilter-UWrXnvfq.js} +1 -1
- package/dist/interface/ha/{Recordings-w39I43cc.js → Recordings-BzeC6tOz.js} +437 -419
- package/dist/interface/ha/{SensorEdit-BkKi1l-A.js → SensorEdit-BSgy7lkZ.js} +360 -360
- package/dist/interface/ha/{SensorHistory-BGJjMlc3.js → SensorHistory-IDvP8LKH.js} +2 -2
- package/dist/interface/ha/{Sensors-D_Wi9XPa.js → Sensors-Diqp4oZ0.js} +96 -97
- package/dist/interface/ha/{Settings-Bn7WLWf0.js → Settings-BgDsxAlx.js} +11 -11
- package/dist/interface/ha/{SettingsAccount-CRTex-1j.js → SettingsAccount-DBXMQPYk.js} +159 -159
- package/dist/interface/ha/{SettingsAppearance-B1qmJnYk.js → SettingsAppearance-VmbjnT3o.js} +6 -6
- package/dist/interface/ha/{SettingsAssistant-DDd1X0BC.js → SettingsAssistant-C2R4ZetE.js} +133 -133
- package/dist/interface/ha/{SettingsBackup-DZbhSB13.js → SettingsBackup-BqY9TwYn.js} +20 -20
- package/dist/interface/ha/{SettingsList-BQdyPe0H.js → SettingsList-CzHcfo2N.js} +4 -4
- package/dist/interface/ha/{SettingsMqtt-CSZcY6ht.js → SettingsMqtt-DqV3h3Ow.js} +149 -149
- package/dist/interface/ha/{SettingsNotifications-CfEhl0-y.js → SettingsNotifications-yn5fIR_7.js} +6 -6
- package/dist/interface/ha/{SettingsRecordings-BnAGDvcH.js → SettingsRecordings-DDs1lyfY.js} +8 -8
- package/dist/interface/ha/{SettingsRemote-w86TQVUA.js → SettingsRemote-jBw3l5E0.js} +172 -172
- package/dist/interface/ha/{SettingsSystem-CENjHL3k.js → SettingsSystem-BOv9hNlk.js} +9 -9
- package/dist/interface/ha/{SettingsUsers-CqSHRklV.js → SettingsUsers-Biv-2F4C.js} +90 -90
- package/dist/interface/ha/{Terminal-WsuxG3k-.js → Terminal-CmcrGEV0.js} +4 -4
- package/dist/interface/ha/Training-BEzPiXZg.js +1512 -0
- package/dist/interface/ha/{Updates-Dl_lLLR2.js → Updates-DJAcmDQJ.js} +12 -12
- package/dist/interface/ha/{VariableInput-C8Q81GUt.js → VariableInput-DlYg7t0m.js} +2 -2
- package/dist/interface/ha/{VersionsHandler-BOvjesvp.js → VersionsHandler-UnrAWn-b.js} +11 -11
- package/dist/interface/ha/{VirtualSensorCreate-sgwATaky.js → VirtualSensorCreate-CssxeaCC.js} +2 -2
- package/dist/interface/ha/{Workers-CkDuQ9NG.js → Workers-CLpqLugC.js} +14 -14
- package/dist/interface/ha/{accordion-Xem2SzgR.js → accordion-BylV-jUK.js} +2 -2
- package/dist/interface/ha/{api-BmYisoxj.js → api-BP7mlzjP.js} +11181 -11736
- package/dist/interface/ha/{api-oqpIZTkx.js → api-B_tDa73J.js} +1 -1
- package/dist/interface/ha/{assistant-0jE4C19U.js → assistant-Cb6ACguQ.js} +1 -1
- package/dist/interface/ha/{auth-B4Msg7R-.js → auth-DOYDRgFm.js} +1 -1
- package/dist/interface/ha/{autocomplete-B94Amei3.js → autocomplete-Cp3u2Ywa.js} +4 -4
- package/dist/interface/ha/{automationBlueprint-C-12Yjl7.js → automationBlueprint-CbbG_ku4.js} +1 -1
- package/dist/interface/ha/cameraui-cards.js +1 -1
- package/dist/interface/ha/{cards-BrOcoiQJ.js → cards-BpBP1zVW.js} +1206 -1198
- package/dist/interface/ha/{config-IG56wp6m.js → config-DroY1HBs.js} +1 -1
- package/dist/interface/ha/{datepicker-B4Azs5zr.js → datepicker-DXk97lTw.js} +4 -4
- package/dist/interface/ha/{mqtt-pl13wSmG.js → mqtt-NJTVdd53.js} +1 -1
- package/dist/interface/ha/{multiselect-Dp4XDBRR.js → multiselect-BOb4ScAZ.js} +4 -4
- package/dist/interface/ha/{notifications-B6wxSmou.js → notifications-BPTvvgvv.js} +1 -1
- package/dist/interface/ha/{plugins-BwwaWxye.js → plugins-B29K3nQP.js} +1 -1
- package/dist/interface/ha/{rooms-NIzjFYAd.js → rooms-DLw0WUy_.js} +1 -1
- package/dist/interface/ha/{select-UR3ZRDew.js → select-DV7p2EDj.js} +4 -4
- package/dist/interface/ha/{server-YOLwDVAW.js → server-B4b5_Ecu.js} +1 -1
- package/dist/interface/ha/{speeddial-LCbl5g8p.js → speeddial-B5p0fuqL.js} +1 -1
- package/dist/interface/ha/{tooltip-Z7VN-E1u.js → tooltip-BDrlgLof.js} +1 -1
- package/dist/interface/ha/{types-B8B9MqK0.js → types-DJHHL7nn.js} +1 -1
- package/dist/interface/ha/{ungrouped-DttNEB62.js → ungrouped-xyK1QrsM.js} +344 -376
- package/dist/interface/ha/{updates-DVhiQhMM.js → updates-XFSu9Tfm.js} +5 -5
- package/dist/interface/ha/{useAppVersion-CG4D44Aa.js → useAppVersion-BH3rU1zz.js} +1 -1
- package/dist/interface/ha/{useLogsSocket-PKsRDttg.js → useLogsSocket-CaTRzvgU.js} +1 -1
- package/dist/interface/ha/{useNavLayout-DoEcPx9Z.js → useNavLayout-DV0_OQx0.js} +1 -1
- package/dist/interface/ha/{useServerRestart-CMl589qX.js → useServerRestart-C8tynLUf.js} +1 -1
- package/dist/interface/ha/{useTabSwipe-Cmqdn0J5.js → useTabSwipe-CFoLDp3j.js} +1 -1
- package/dist/interface/ha/{useUpdateChannel-BBW2EX7N.js → useUpdateChannel-DSG2RTPe.js} +2 -2
- package/dist/interface/ha/{useUpdatesSocket-B6ICpKKC.js → useUpdatesSocket-CSQ0g7-6.js} +1 -1
- package/dist/interface/ha/{useUserOptions-CzclRfar.js → useUserOptions-CFaCy6L1.js} +1 -1
- package/dist/interface/ha/{virtualscroller-C5j7FXj4.js → virtualscroller-B-UQZDMJ.js} +88 -88
- package/dist/interface/index.html +34 -34
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +22 -20
- package/dist/server/requirements.txt +1 -1
- package/dist/server/src/api/controllers/auth.controller.js +5 -6
- package/dist/server/src/api/controllers/auth.controller.js.map +1 -1
- package/dist/server/src/api/controllers/plugins.controller.js +5 -5
- package/dist/server/src/api/controllers/plugins.controller.js.map +1 -1
- package/dist/server/src/api/database/checks.js +20 -8
- package/dist/server/src/api/database/checks.js.map +1 -1
- package/dist/server/src/api/database/selfcheck.js +2 -2
- package/dist/server/src/api/database/selfcheck.js.map +1 -1
- package/dist/server/src/api/index.js +8 -6
- package/dist/server/src/api/index.js.map +1 -1
- package/dist/server/src/api/plugins/logger.plugin.js +11 -11
- package/dist/server/src/api/plugins/logger.plugin.js.map +1 -1
- package/dist/server/src/api/services/twoFactor.service.d.ts +4 -5
- package/dist/server/src/api/services/twoFactor.service.js +16 -17
- package/dist/server/src/api/services/twoFactor.service.js.map +1 -1
- package/dist/server/src/api/types/index.d.ts +0 -1
- package/dist/server/src/api/utils/cert.js +128 -135
- package/dist/server/src/api/utils/cert.js.map +1 -1
- package/dist/server/src/api/utils/form-body.d.ts +2 -0
- package/dist/server/src/api/utils/form-body.js +22 -0
- package/dist/server/src/api/utils/form-body.js.map +1 -0
- package/dist/server/src/api/utils/install-logger.js +12 -12
- package/dist/server/src/api/utils/install-logger.js.map +1 -1
- package/dist/server/src/api/websocket/nsp/logs.d.ts +7 -3
- package/dist/server/src/api/websocket/nsp/logs.js +79 -65
- package/dist/server/src/api/websocket/nsp/logs.js.map +1 -1
- package/dist/server/src/assistant/history.d.ts +2 -0
- package/dist/server/src/assistant/history.js +46 -0
- package/dist/server/src/assistant/history.js.map +1 -0
- package/dist/server/src/assistant/manager.js +2 -1
- package/dist/server/src/assistant/manager.js.map +1 -1
- package/dist/server/src/camera/controller.d.ts +1 -0
- package/dist/server/src/camera/controller.js +23 -18
- package/dist/server/src/camera/controller.js.map +1 -1
- package/dist/server/src/camera/decoder/worker.d.ts +3 -0
- package/dist/server/src/camera/decoder/worker.js +42 -5
- package/dist/server/src/camera/decoder/worker.js.map +1 -1
- package/dist/server/src/go2rtc/index.js +2 -2
- package/dist/server/src/go2rtc/index.js.map +1 -1
- package/dist/server/src/main.js +5 -5
- package/dist/server/src/main.js.map +1 -1
- package/dist/server/src/manager/discoveryManager.js +2 -2
- package/dist/server/src/manager/discoveryManager.js.map +1 -1
- package/dist/server/src/remote/services/cloudflare-managed.js +6 -3
- package/dist/server/src/remote/services/cloudflare-managed.js.map +1 -1
- package/dist/server/src/remote/services/cloudflare.d.ts +0 -1
- package/dist/server/src/remote/services/cloudflare.js +9 -20
- package/dist/server/src/remote/services/cloudflare.js.map +1 -1
- package/dist/server/src/remote/services/cloudflaredBinary.d.ts +3 -2
- package/dist/server/src/remote/services/cloudflaredBinary.js +9 -16
- package/dist/server/src/remote/services/cloudflaredBinary.js.map +1 -1
- package/dist/server/src/rpc/server.js +2 -2
- package/dist/server/src/rpc/server.js.map +1 -1
- package/dist/server/src/utils/automation-registry/index.js +3 -3
- package/dist/server/src/utils/automation-registry/index.js.map +1 -1
- package/dist/server/src/utils/colors.d.ts +2 -0
- package/dist/server/src/utils/colors.js +8 -0
- package/dist/server/src/utils/colors.js.map +1 -0
- package/dist/server/src/utils/npm/auth.d.ts +3 -2
- package/dist/server/src/utils/npm/auth.js +1 -1
- package/dist/server/src/utils/npm/auth.js.map +1 -1
- package/dist/server/src/utils/npm/index.d.ts +3 -15
- package/dist/server/src/utils/npm/index.js +26 -17
- package/dist/server/src/utils/npm/index.js.map +1 -1
- package/dist/server/src/utils/npm/registry.d.ts +69 -0
- package/dist/server/src/utils/npm/registry.js +240 -0
- package/dist/server/src/utils/npm/registry.js.map +1 -0
- package/dist/server/src/utils/plugin-registry/index.js +3 -3
- package/dist/server/src/utils/plugin-registry/index.js.map +1 -1
- package/dist/server/src/utils/process.d.ts +10 -0
- package/dist/server/src/utils/process.js +112 -0
- package/dist/server/src/utils/process.js.map +1 -0
- package/dist/server/src/utils/totp.d.ts +12 -0
- package/dist/server/src/utils/totp.js +71 -0
- package/dist/server/src/utils/totp.js.map +1 -0
- package/dist/server/src/utils/ttl-cache.d.ts +20 -0
- package/dist/server/src/utils/ttl-cache.js +63 -0
- package/dist/server/src/utils/ttl-cache.js.map +1 -0
- package/npm-shrinkwrap.json +6427 -0
- package/package.json +22 -20
- package/dist/interface/assets/Assistant-BKxssfw-.js +0 -1
- package/dist/interface/assets/Automation-CP59cgP7.js +0 -3
- package/dist/interface/assets/AutomationStore-BZGR_5Xl.js +0 -2
- package/dist/interface/assets/Automations-BpXorYAS.js +0 -2
- package/dist/interface/assets/Camera-UBUfaR5a.js +0 -2
- package/dist/interface/assets/Cameras-B21Y8MdQ.js +0 -651
- package/dist/interface/assets/Camview-BySyPtU5.js +0 -1
- package/dist/interface/assets/Config-BGyGmukb.js +0 -2
- package/dist/interface/assets/ConfigTriggerGeofence-CkzTFEZn.js +0 -1
- package/dist/interface/assets/Console-HXmKYaK_.js +0 -1
- package/dist/interface/assets/CuiAssistantConversation-2qrRCsgw.js +0 -5
- package/dist/interface/assets/CuiAssistantConversation-DmSdiv1b.css +0 -1
- package/dist/interface/assets/CuiBottomSheet-CTr-KHC8.js +0 -1
- package/dist/interface/assets/CuiCameraPipCard-BZCayhy_.js +0 -1
- package/dist/interface/assets/CuiCameraRecordings-BbaEL2ST.js +0 -1
- package/dist/interface/assets/CuiCameraTable-C5tQHs63.js +0 -1
- package/dist/interface/assets/CuiLightControl-v6k9hVGl.js +0 -1
- package/dist/interface/assets/CuiPluginCard-5MRYJcF2.js +0 -2
- package/dist/interface/assets/CuiSchema-BDXeXora.js +0 -1
- package/dist/interface/assets/CuiTopNavbarItem-BVknLbRO.js +0 -1
- package/dist/interface/assets/Faces-BEpYvbB0.js +0 -1
- package/dist/interface/assets/FirstSteps-U93RDOcP.js +0 -1
- package/dist/interface/assets/Floorplan-D8XoCNOB.js +0 -1
- package/dist/interface/assets/Instances-CFwZotvU.js +0 -1
- package/dist/interface/assets/Metrics-Ca_d5CbP.js +0 -12
- package/dist/interface/assets/Plugin-BjLw46Sw.js +0 -1
- package/dist/interface/assets/PluginDetail-BuLW4lkN.js +0 -2
- package/dist/interface/assets/PluginSearch--LLMEeyx.js +0 -2
- package/dist/interface/assets/PluginSearch-0akjE0ef.js +0 -1
- package/dist/interface/assets/Plugins-26O511gf.js +0 -1
- package/dist/interface/assets/Recordings-DQOGeSFm.js +0 -1
- package/dist/interface/assets/SensorEdit-DEW5D80x.js +0 -1
- package/dist/interface/assets/Sensors-C8yOyAwo.js +0 -2
- package/dist/interface/assets/Settings-B-RgMeVm.js +0 -1
- package/dist/interface/assets/SettingsAccount-B6aXFx3F.js +0 -1
- package/dist/interface/assets/SettingsAccount-_0ccrXYU.js +0 -1
- package/dist/interface/assets/SettingsAppearance-CkDwzx6f.js +0 -1
- package/dist/interface/assets/SettingsAppearance-DBFE3uVH.js +0 -1
- package/dist/interface/assets/SettingsAssistant-DN5OUJqt.js +0 -1
- package/dist/interface/assets/SettingsMqtt-hsKZkU-o.js +0 -1
- package/dist/interface/assets/SettingsNotifications-DIeiUEAk.js +0 -1
- package/dist/interface/assets/SettingsRemote-Doa0aBMC.js +0 -2
- package/dist/interface/assets/Training-DYlefOX1.js +0 -1
- package/dist/interface/assets/Workers-CUVvTuts.js +0 -2
- package/dist/interface/assets/api-B0wYDGQj.css +0 -2
- package/dist/interface/assets/api-BNrZVfeD.js +0 -4
- package/dist/interface/assets/cloudHandoff-Dnndt2el.js +0 -1
- package/dist/interface/assets/main-CRlC4FBY.js +0 -3
- package/dist/interface/assets/mqtt-BY6-Hrbv.js +0 -1
- package/dist/interface/assets/ring-resize-DyqCo2UN.js +0 -1
- package/dist/interface/assets/rooms-BHP4q6yf.js +0 -1
- package/dist/interface/assets/ungrouped-DBRZ-Ori.css +0 -1
- package/dist/interface/assets/ungrouped-DHLAmt__.js +0 -1
- package/dist/interface/assets/useBackupRestore-Dj-ZXODq.js +0 -1
- package/dist/interface/ha/PluginDetail-BFfRnkdG.js +0 -230
- package/dist/interface/ha/Training-hu_XOYBk.js +0 -1505
- package/dist/interface/ha/ring-resize-Dr2PxWIg.js +0 -16
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Dr as e,Ir as t,Or as n,Tr as r}from"./api-BNrZVfeD.js";import{K as i,Z as a}from"./vendor-DGke_6M4.js";async function o({signal:e}){return(await t.get(`/mqtt`,{signal:e})).data}async function s(e){return(await t.patch(`/mqtt`,e)).data}async function c({signal:e}){return(await t.get(`/mqtt/topics`,{signal:e})).data}async function l(e){return(await t.post(`/mqtt/test`,e)).data}var u=class{_queryClient=a();t=n.global.t;toast=e();get queryClient(){return this._queryClient}getMqttInfoQuery(){return r({queryKey:[`mqtt`],queryFn:({signal:e})=>o({signal:e}),staleTime:1e3})}patchMqttInfoMutation(){return i({mutationFn:s,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`mqtt`],exact:!0}),this.toast.add({severity:`success`,detail:this.t(`components.toast.mqtt_updated`),life:3e3})}})}getMqttTopicsQuery(){return r({queryKey:[`mqtt`,`topics`],queryFn:({signal:e})=>c({signal:e}),staleTime:1e4})}testMqttConnectionMutation(){return i({mutationFn:l})}};export{u as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{In as e,dn as t,mn as n,sr as r}from"./vendor-DGke_6M4.js";var i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(r,a){return e(),t(`svg`,i,[...a[0]||=[n(`<g stroke="currentColor"><circle cx="12" cy="12" r="9.5" fill="none" stroke-linecap="round" stroke-width="3"><animate attributeName="stroke-dasharray" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0 150;42 150;42 150;42 150"></animate><animate attributeName="stroke-dashoffset" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0;-16;-59;-59"></animate></circle><animateTransform attributeName="transform" dur="2s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"></animateTransform></g>`,1)]])}var o=r({name:`svg-spinners-ring-resize`,render:a});export{o as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ir as e,Tr as t}from"./api-BNrZVfeD.js";import{K as n,Z as r}from"./vendor-DGke_6M4.js";async function i({signal:t}={}){return(await e.get(`/rooms`,{signal:t})).data}async function a(t){return(await e.post(`/rooms`,t)).data}async function o(t){await e.delete(`/rooms/${t}`)}var s=class{queryClient=r();getRoomsQuery(){return t({queryKey:[`rooms`],queryFn:({signal:e})=>i({signal:e}),staleTime:1e4})}createRoomMutation(){return n({mutationFn:a,onSuccess:async()=>{await this.queryClient.refetchQueries({queryKey:[`rooms`],exact:!0})}})}deleteRoomMutation(){return n({mutationFn:o,onSuccess:async()=>{await Promise.all([this.queryClient.refetchQueries({queryKey:[`rooms`],exact:!0}),this.queryClient.refetchQueries({queryKey:[`cameras`]})])}})}};export{i as n,s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.recording-card[data-v-7ce0bd00]{contain:layout;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}@media (hover:hover) and (pointer:fine){.carousel-nav[data-v-7ce0bd00]{opacity:0}.recording-card:hover .carousel-nav[data-v-7ce0bd00],.recording-card:focus-within .carousel-nav[data-v-7ce0bd00]{opacity:1}}.recordings-grid-root[data-v-57a2aa74]{width:100%;height:100%;min-height:0}.recordings-scroll[data-v-57a2aa74]{scrollbar-width:none;scroll-snap-type:y proximity;width:100%;height:100%;overflow:hidden auto}.recordings-scroll[data-v-57a2aa74]::-webkit-scrollbar{display:none}.recordings-row[data-v-57a2aa74]{scroll-snap-align:start;align-items:stretch;display:flex}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$n as e,A as t,Bt as n,Gt as r,It as i,J as a,Kn as o,Kt as s,L as c,Mn as l,Pn as u,Ut as d,Vr as f,a as p,c as m,f as h,g,i as _,kt as ee,ni as te,o as ne,p as re,s as ie}from"./vendor-cameraui-BbGOMenD.js";import{An as ae,Dr as oe,En as se,J as ce,Q as le,Sn as ue,X as de,Y as fe,Z as pe,bn as me,kn as he,mn as ge,nt as _e,q as ve,rt as ye,s as be,st as xe,vn as Se,yn as Ce}from"./api-BNrZVfeD.js";import{$n as v,Bn as y,Cn as we,Cr as b,Dn as x,Hn as Te,In as S,Jn as C,On as Ee,Pn as De,Rn as w,Sr as T,Xn as Oe,br as E,cn as D,dn as O,dr as k,en as ke,er as Ae,gn as A,ln as j,nn as M,or as N,rn as P,sn as F,sr as je,un as I,vn as L,yr as R,zn as z}from"./vendor-DGke_6M4.js";import{a as Me}from"./intercomService-Du8V_HxF.js";import{i as Ne}from"./alert-outline-D7zaSJH_.js";import{t as Pe}from"./eventIcons-cdzqQc0W.js";import{u as Fe}from"./vendor-core-tgH2YubJ.js";import{N as B,j as Ie}from"./vendor-primevue-DNJJiEZl.js";import{t as Le}from"./ring-resize-DyqCo2UN.js";var V={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Re(e,t){return S(),O(`svg`,V,[...t[0]||=[D(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M8 7a4 4 0 1 0 8 0a4 4 0 0 0-8 0M6 21v-2a4 4 0 0 1 4-4h3.5m4.92.61a2.1 2.1 0 0 1 2.97 2.97L18 22h-3v-3z`},null,-1)]])}var ze=je({name:`tabler-user-edit`,render:Re}),H={class:`flex flex-col gap-4 w-full`},U={key:0,class:`flex justify-center`},W=[`src`,`alt`],G={class:`flex flex-col gap-2 w-full`},Be={class:`cui-label`},Ve={class:`flex flex-col gap-2 w-full`},K={for:`reassignTarget`,class:`cui-label`},He=L({__name:`FaceReassign`,props:{cropUrl:{},oldName:{}},setup(e,{expose:t}){let n=e,{t:r}=f(),{plugin:i}=ee(`@camera.ui/camera-ui-nvr`),a=k(null),o=k([]),s=k(!0),l=F(()=>n.oldName===`unknown`?r(`views.recordings.reassign_unknown_person`):n.oldName),u=F(()=>{let e=o.value.filter(e=>e!==n.oldName).map(e=>({label:e,value:e}));return n.oldName!==`unknown`&&e.push({label:r(`views.recordings.reassign_unknown`),value:``}),e});return De(async()=>{try{let e=await i.value?.listKnownFaces?.();o.value=(e??[]).map(e=>e.name)}catch{}finally{s.value=!1}}),t({onConfirm:async()=>a.value}),(e,t)=>{let r=c,i=Ie;return S(),O(`div`,H,[n.cropUrl?(S(),O(`div`,U,[D(`img`,{src:n.cropUrl,alt:R(l),class:`w-36 h-36 rounded-xl object-cover bg-neutral-900`},null,8,W)])):I(``,!0),D(`div`,G,[D(`label`,Be,b(e.$t(`views.recordings.reassign_current`)),1),A(r,{"model-value":R(l),class:`w-full`,fluid:``,disabled:``},null,8,[`model-value`])]),D(`div`,Ve,[D(`label`,K,b(e.$t(`views.recordings.reassign_new`)),1),A(i,{id:`reassignTarget`,modelValue:R(a),"onUpdate:modelValue":t[0]||=e=>N(a)?a.value=e:null,options:R(u),"option-label":`label`,"option-value":`value`,class:`w-full`,fluid:``,loading:R(s),disabled:R(s),placeholder:e.$t(`views.faces.enter_or_pick_name`)},null,8,[`modelValue`,`options`,`loading`,`disabled`,`placeholder`])])])}}}),Ue=[`src`],We={key:2,class:`w-full h-full flex items-center justify-center bg-neutral-800/80`},Ge={class:`absolute top-0 left-0 right-0 p-2 bg-gradient-to-b from-black/80 to-transparent z-[3]`},Ke={class:`flex items-center gap-1.5`},qe={class:`text-xs font-semibold text-white truncate min-w-0 flex-1`},Je={key:0,class:`text-[10px] font-semibold text-white/80 bg-black/60 px-1.5 py-0.5 rounded-md shrink-0`},Ye={class:`text-[10px] text-white/70`},Xe={class:`block text-[11px] text-white font-medium truncate bg-black/50 rounded-md px-2 py-0.5`},Ze={class:`flex items-center gap-1 min-w-0`},Qe=[`title`],$e={key:0,class:`flex items-center gap-0.5 shrink-0 opacity-85 group-hover:opacity-100 transition-opacity duration-200`},et=[`onClick`],tt=[`src`,`alt`],nt={key:0,class:`text-[10px] text-white/60 font-medium`},rt={key:6,class:`absolute inset-0 z-[4] flex items-center justify-center pointer-events-none`},it={key:7,class:`absolute bottom-10 left-1/2 -translate-x-1/2 z-[4] pointer-events-none`},at={class:`text-[10px] font-semibold text-white bg-black/60 px-1.5 py-0.5 rounded-md whitespace-nowrap`,style:{"font-variant-numeric":`tabular-nums`}},ot=24,st=30,ct=22,lt=28,ut=8,dt=ae(L({__name:`RecordingCard`,props:{event:{},cameraName:{},camera:{},loadThumbnails:{type:Function},semanticScore:{},segIndex:{},hideSegmentBadge:{type:Boolean},selectionMode:{type:Boolean},selected:{type:Boolean},siblingActive:{type:Boolean}},emits:[`scrollToEvent`,`select`,`openTrace`],setup(e,{emit:r}){let o=e,c=r,l=Me(),u=oe(),{t:d}=f(),ae=Fe(),y=g(`@camera.ui/camera-ui-nvr`),{plugin:x}=ee(`@camera.ui/camera-ui-nvr`),Ee=xe(),{icons:T}=Pe(),N=y.getCachedThumbnails(o.event.id),je=N?h(N,o.event,`card`,o.segIndex).url?`loaded`:`empty`:`loading`,L=we(ie,void 0),z=C(`rootRef`),B=C(`previewCanvasRef`),Ie=C(`footerRef`),Le=C(`cardMenuRef`),V=k(!1),Re=de(z,()=>Bt(),()=>$()),H=k(!1),U=k(N??null),W=k(je),G=k(!1),Be=k(0),Ve=k(null),K=k(!1),{width:dt}=te(Ie),ft=F(()=>me(void 0,`admin`)),pt=F(()=>Ve.value??o.event.favorite??!1),mt=F(()=>{if(o.semanticScore==null)return;let e=Math.max(0,Math.min(1,o.semanticScore));return{pct:e,label:`${(e*100).toFixed(0)}%`,color:e>=.5?`bg-green-500/80`:e>=.25?`bg-yellow-500/80`:`bg-red-400/80`}}),q=F(()=>U.value?h(U.value,o.event,`card`,o.segIndex):null),J=F(()=>{let e=o.segIndex??q.value?.segIndex;return e===void 0?void 0:o.event.segments?.[e]}),ht=F(()=>q.value?.url),gt=F(()=>q.value?.label),_t=F(()=>q.value?.type??o.event.types[0]??`motion`),vt=F(()=>{if(o.hideSegmentBadge)return;let e=o.event.segments?.length??0;return o.segIndex!==void 0&&e>1?`${o.segIndex+1}/${e}`:void 0}),Y=F(()=>{let e=U.value,n=q.value?.url;if(!e||!n)return[];let r=[{url:n,label:q.value?.label,type:_t.value,crop:!1}];for(let t of re(e,o.segIndex)){if(r.some(e=>e.url===t.url))continue;let e=t.key.split(`:`)[0];r.push({url:t.url,label:t.label,type:t.type,crop:!0,faceSeg:/^\d+$/.test(e)?Number(e):-1})}if(o.segIndex===void 0)for(let n of Object.keys(e.cards??e.strips??{}).sort((e,t)=>Number(e)-Number(t))){let i=t(e.cards?.[n]??e.strips?.[n]);if(!i||r.some(e=>e.url===i))continue;let a=le(o.event,n);r.push({url:i,label:a,type:a,crop:!1})}return r.length>1?r:[]}),yt=F(()=>Y.value.length>1),bt=F(()=>Y.value.length?Math.min(Be.value,Y.value.length-1):0),X=F(()=>yt.value?Y.value[bt.value]:void 0),xt=F(()=>!!X.value?.crop),St=F(()=>X.value?.url??ht.value),Ct=F(()=>X.value?.label??gt.value),Z=F(()=>{let e=J.value;return(e?_(o.event,e):[...new Set(o.event.types)]).filter(e=>e!==`motion`&&e!==`audio`)}),wt=F(()=>o.cameraName??o.event.cameraId),Tt=F(()=>Y.value.map(e=>({url:e.url,type:e.type}))),Et=F(()=>Z.value.slice(0,Q.value.icons)),Q=F(()=>{let e=dt.value;if(!e)return{icons:2,tiles:2};let t=e-ut;o.selectionMode&&(t-=lt);let n=Tt.value.length>0?52:0,r=It(Z.value.length,Math.max(0,t-n),ot),i=Z.value.length>0?Math.max(1,r):0,a=i*ot+(i<Z.value.length?ct:0);return{icons:i,tiles:It(Tt.value.length,Math.max(0,t-a),st)}}),Dt=F(()=>Z.value.slice(Q.value.icons)),Ot=F(()=>Tt.value.slice(0,Q.value.tiles)),kt=F(()=>Tt.value.length-Q.value.tiles),At=F(()=>{let e=new Date(J.value?.firstSeen??o.event.thumbnailAt??o.event.startTime),t=new Date,n=e.toDateString()===t.toDateString(),r=e.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`});return n?r:`${e.toLocaleDateString([],{month:`short`,day:`numeric`})} ${r}`}),jt=F(()=>!!(x.value&&o.event.endTime&&o.event.hasRecording!==!1)),Mt=F(()=>L?V.value?d(`views.recordings.no_preview`):H.value?L.status.value===`unavailable`?d(`views.recordings.no_preview`):L.status.value===`playing`&&L.previewTimeMs.value?zt(L.previewTimeMs.value):``:``:``),Nt=F(()=>{let e=X.value;if(e&&e.type===`face`)return e.label?e.label:`unknown`}),Pt=F(()=>{let e=[];return ft.value&&Nt.value!==void 0&&e.push({key:`reassign`,label:d(`views.recordings.reassign_face`),icon:ze,loading:K.value,onClick:()=>Kt()}),o.camera&&e.push({key:`trace`,label:d(`views.recordings.open_trace`),icon:_e,onClick:()=>c(`openTrace`,J.value?.firstSeen)}),e.push({key:`ask`,label:d(`views.recordings.ask_assistant`),icon:Ne,onClick:()=>Ft()}),jt.value&&e.push({key:`download`,label:d(`views.recordings.download`),icon:ye,loading:G.value,onClick:()=>Yt()}),e});function Ft(){let e=d(`views.recordings.ask_assistant_prompt`,{camera:o.cameraName??o.camera?.name??o.event.cameraId,time:new Date(o.event.startTime).toLocaleString(),id:o.event.id});ae.push({path:`/assistant`,query:{prompt:e}})}function It(e,t,n){return e===0||t<n?0:e*n<=t?e:Math.max(0,Math.floor((t-ct)/n))}function Lt(e){let t=Y.value.length;t&&($(),Be.value=(bt.value+e+t)%t)}function Rt(e,t){yt.value&&(t.stopPropagation(),$(),Be.value=e)}function $(){V.value=!1,L&&H.value&&(H.value=!1,L.onHoverEnd())}function zt(e){let t=new Date(e);return`${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`}function Bt(){if(!L||bt.value>0)return;let e=B.value;if(!e)return;let t=ne(o.event);if(o.event.hasRecording===!1||!t){V.value=!0;return}H.value=!0,L.onHoverStart(e,o.event.cameraId,o.event.id,o.event.startTime,t,o.camera?.zones?.privacy,m(o.event))}function Vt(){Re.blocksMouseEnter()||Bt()}function Ht(){V.value=!1,L&&(H.value=!1,L.onHoverEnd())}async function Ut(e=2){let t=await o.loadThumbnails(o.event.id,o.event.startTime);if(t){U.value=t;let e=h(t,o.event,`card`);W.value=e.url?`loaded`:`empty`}else if(e>0)return await new Promise(e=>setTimeout(e,500)),Ut(e-1);else W.value=o.event.state===`active`?`loading`:`empty`}function Wt(){if(!Re.consumesClick()){if(o.selectionMode){c(`select`);return}c(`scrollToEvent`,J.value?.firstSeen??pe(o.event))}}function Gt(e){$(),Le.value?.toggleMenu(e)}function Kt(){let e=Nt.value;e!==void 0&&Ee.openComponentDialog(He,{data:{title:d(`views.recordings.reassign_face`),confirmText:d(`components.form.button.save`),contentProps:{cropUrl:X.value?.url,oldName:e}},onConfirm:e=>qt(e)})}async function qt(e){let t=Nt.value;if(t===void 0||K.value)return;let n=X.value?.faceSeg??-1,r=x.value;if(r?.reassignEventFace){K.value=!0;try{await r.reassignEventFace(o.event.id,n,t,e)>0&&p(o.event.id),u.add({severity:`success`,detail:d(`views.recordings.reassign_done`),life:3e3})}catch(e){u.add({severity:`error`,detail:be(e),life:5e3})}finally{K.value=!1}}}async function Jt(){let e=!pt.value;Ve.value=e;try{await y.setEventFavorite(o.event.id,e)}catch(e){Ve.value=null,u.add({severity:`error`,detail:be(e),life:5e3})}}async function Yt(){if(G.value)return;let e=x.value;if(e?.nvrExport&&o.event.endTime){G.value=!0;try{let t=await e.nvrExport(o.event.cameraId,o.event.startTime*1e3,o.event.endTime*1e3);await se({url:t.url,filename:t.filename})}catch(e){l.error(`Download failed:`,e),u.add({severity:`error`,summary:d(`views.recordings.download_failed`),detail:be(e),life:5e3})}finally{G.value=!1}}}return Oe(()=>y.storeVersion.value,()=>{let e=y.getCachedThumbnails(o.event.id);if(!e){U.value&&Ut();return}U.value=e,h(e,o.event,`card`).url&&(W.value=`loaded`)}),De(()=>{je===`loading`&&Ut()}),(t,r)=>{let o=a,c=he,l=ve,u=ce,d=n,f=fe,p=Se,m=Ce,h=ue,g=i,_=s;return S(),O(`div`,{ref_key:`rootRef`,ref:z,class:`recording-card relative group cursor-pointer`,onClick:Wt,onMouseenter:Vt,onMouseleave:Ht},[D(`div`,{class:E([`bg-neutral-900 w-full rounded-xl overflow-hidden relative transition-shadow duration-200`,{"ring-2 ring-inset ring-primary/70":e.siblingActive}]),style:{"aspect-ratio":`1/1`}},[R(W)===`loading`?(S(),j(o,{key:0,width:`100%`,height:`100%`,class:`rounded-xl`})):R(St)?(S(),O(P,{key:1},[R(xt)?(S(),O(`img`,{key:0,src:R(St),"aria-hidden":`true`,class:`absolute inset-0 w-full h-full object-cover blur-xl scale-110 opacity-50 pointer-events-none`},null,8,Ue)):I(``,!0),A(c,{src:R(St),alt:R(wt),class:`pointer-events-none w-full h-full transition-transform duration-300 group-hover:scale-105`,"image-style":{objectFit:R(xt)?`contain`:`cover`},"image-container-class":`w-full h-full`},null,8,[`src`,`alt`,`image-style`])],64)):(S(),O(`div`,We,[(S(),j(Te(R(T)[R(_t)]??R(T).motion),{class:`w-10 h-10 text-white/20`}))])),R(L)?Ae((S(),O(`canvas`,{key:3,ref_key:`previewCanvasRef`,ref:B,class:`absolute inset-0 w-full h-full object-cover pointer-events-none z-[1]`},null,512)),[[ke,R(H)]]):I(``,!0),r[2]||=D(`div`,{class:`absolute inset-0 bg-transparent group-hover:bg-black/30 pointer-events-none transition-colors duration-200 z-[2]`},null,-1),D(`div`,Ge,[D(`div`,Ke,[D(`p`,qe,b(R(wt)),1),R(vt)?(S(),O(`span`,Je,b(R(vt)),1)):I(``,!0),R(mt)?(S(),O(`span`,{key:1,class:E([`text-[10px] font-bold text-white px-1.5 py-0.5 rounded-md shrink-0`,R(mt).color])},b(R(mt).label),3)):I(``,!0),R(ft)&&!e.selectionMode?Ae((S(),j(d,{key:2,rounded:``,text:``,severity:`secondary`,class:`!w-5 !h-5 !p-0 shrink-0 bg-black/60 hover:!bg-black/80`,onClick:M(Jt,[`stop`]),onMouseenter:$},{icon:v(()=>[R(pt)?(S(),j(l,{key:0,class:`w-3 h-3 text-yellow-400`})):(S(),j(u,{key:1,class:`w-3 h-3 text-white`}))]),_:1})),[[_,{value:R(pt)?t.$t(`views.recordings.unfavorite`):t.$t(`views.recordings.favorite`)},void 0,{left:!0}]]):I(``,!0),R(Pt).length>0&&!e.selectionMode?Ae((S(),j(d,{key:3,rounded:``,text:``,severity:`secondary`,loading:R(G)||R(K),class:`!w-5 !h-5 !p-0 shrink-0 bg-black/60 hover:!bg-black/80`,onClick:M(Gt,[`stop`]),onMouseenter:$},{icon:v(()=>[A(f,{class:`w-3 h-3 text-white`})]),_:1},8,[`loading`])),[[_,{value:t.$t(`views.recordings.more_actions`)},void 0,{left:!0}]]):I(``,!0)]),D(`p`,Ye,b(R(At)),1)]),R(Y).length>1?(S(),O(P,{key:4},[A(d,{rounded:``,text:``,severity:`secondary`,class:`carousel-nav !absolute left-1 top-1/2 -translate-y-1/2 z-[3] !w-7 !h-7 !p-0 bg-black/40 hover:!bg-black/60 transition-opacity duration-200`,"aria-label":t.$t(`views.recordings.prev_image`),onClick:r[0]||=M(e=>Lt(-1),[`stop`]),onMouseenter:$},{icon:v(()=>[A(p,{class:`w-5 h-5 text-white`})]),_:1},8,[`aria-label`]),A(d,{rounded:``,text:``,severity:`secondary`,class:`carousel-nav !absolute right-1 top-1/2 -translate-y-1/2 z-[3] !w-7 !h-7 !p-0 bg-black/40 hover:!bg-black/60 transition-opacity duration-200`,"aria-label":t.$t(`views.recordings.next_image`),onClick:r[1]||=M(e=>Lt(1),[`stop`]),onMouseenter:$},{icon:v(()=>[A(m,{class:`w-5 h-5 text-white`})]),_:1},8,[`aria-label`])],64)):I(``,!0),R(Ct)?(S(),O(`div`,{key:5,class:E([`absolute left-1/2 -translate-x-1/2 z-[3] max-w-[85%] pointer-events-none transition-all duration-200`,R(Mt)?`bottom-16`:`bottom-10`])},[D(`span`,Xe,b(R(Ct)),1)],2)):I(``,!0),D(`div`,{ref_key:`footerRef`,ref:Ie,class:`absolute bottom-2 left-2 right-2 flex items-center justify-between gap-2 z-[3]`},[D(`div`,Ze,[e.selectionMode?(S(),O(`div`,{key:0,class:E([`w-6 h-6 rounded-full border-2 flex items-center justify-center transition-colors shrink-0`,e.selected?`bg-primary border-primary`:`bg-black/40 border-white/80`])},[e.selected?(S(),j(h,{key:0,class:`w-4 h-4 text-white`})):I(``,!0)],2)):I(``,!0),(S(!0),O(P,null,w(R(Et),e=>(S(),O(`div`,{key:e,class:`flex items-center justify-center w-5 h-5 rounded-md bg-black/60 shrink-0`},[(S(),j(Te(R(T)[e]??R(T).motion),{class:`w-3 h-3 text-white/80`}))]))),128)),R(Dt).length>0?(S(),O(`span`,{key:1,title:R(Dt).join(`, `),class:`text-[10px] text-white/60 font-medium shrink-0`},` +`+b(R(Dt).length),9,Qe)):I(``,!0)]),R(Ot).length>0||R(kt)>0?(S(),O(`div`,$e,[(S(!0),O(P,null,w(R(Ot),(e,t)=>(S(),O(`div`,{key:t,class:E([`w-7 h-7 rounded overflow-hidden border bg-neutral-800 cursor-pointer`,t===R(bt)?`border-primary/80`:`border-white/20`]),onClick:e=>Rt(t,e)},[D(`img`,{src:e.url,alt:e.type,decoding:`async`,loading:`lazy`,class:`w-full h-full object-cover`},null,8,tt)],10,et))),128)),R(kt)>0?(S(),O(`span`,nt,`+`+b(R(kt)),1)):I(``,!0)])):I(``,!0)],512),R(L)&&R(H)&&R(L).isLoading.value?(S(),O(`div`,rt,[A(g,{class:`w-[28px] h-[28px] m-0`,"stroke-width":`6`})])):I(``,!0),R(Mt)?(S(),O(`div`,it,[D(`span`,at,b(R(Mt)),1)])):I(``,!0)],2),A(ge,{ref_key:`cardMenuRef`,ref:Le,items:R(Pt),popover:{pt:{content:{class:`p-0! rounded-xl! overflow-hidden!`}}}},null,8,[`items`])],544)}}}),[[`__scopeId`,`data-v-7ce0bd00`]]),ft={name:`VirtualScroller`,components:{SpinnerIcon:d},extends:{name:`BaseVirtualScroller`,extends:r,provide(){return{$pcVirtualScroller:this,$parentInstance:this}},props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:`vertical`},rtl:{type:Boolean,default:!1},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1},itemKey:{type:[String,Function],default:null}},style:B,beforeMount(){B.loadCSS({nonce:this.$primevueConfig?.csp?.nonce})}},inheritAttrs:!1,emits:[`update:numToleratedItems`,`scroll`,`scroll-index-change`,`lazy-load`],data(){let e=this.isBoth();return{first:e?{rows:0,cols:0}:0,last:e?{rows:0,cols:0}:0,page:e?{rows:0,cols:0}:0,numItemsInViewport:e?{rows:0,cols:0}:0,lastScrollPos:e?{top:0,left:0}:0,d_numToleratedItems:this.numToleratedItems,d_loading:this.loading,loaderArr:[],spacerStyle:{},contentStyle:{}}},element:null,content:null,lastScrollPos:null,scrollTimeout:null,resizeTimeout:null,defaultWidth:0,defaultHeight:0,defaultContentWidth:0,defaultContentHeight:0,isRangeChanged:!1,lazyLoadState:{},resizeListener:null,initialized:!1,computed:{containerClass(){return[`p-virtualscroller`,this.class,{"p-virtualscroller-inline":this.inline,"p-virtualscroller-both p-both-scroll":this.isBoth(),"p-virtualscroller-horizontal p-horizontal-scroll":this.isHorizontal(),"p-virtualscroller-rtl":this.rtl&&this.isHorizontal()}]},contentClass(){return[`p-virtualscroller-content`,{"p-virtualscroller-loading":this.d_loading}]},loaderClass(){return[`p-virtualscroller-loader`,{"p-virtualscroller-loader-mask":!this.$slots.loader}]},loadedItems(){return this.items&&!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map(e=>this.columns?e:e.slice(this.appendOnly?0:this.first.cols,this.last.cols)):this.isHorizontal()&&this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns(){if(this.columns){let e=this.isBoth(),t=this.isHorizontal();if(e||t)return this.d_loading&&this.loaderDisabled?e?this.loaderArr[0]:this.loaderArr:this.columns.slice(e?this.first.cols:this.first,e?this.last.cols:this.last)}return this.columns}},watch:{numToleratedItems(e){this.d_numToleratedItems=e},loading(e,t){this.lazy&&e!==t&&e!==this.d_loading&&(this.d_loading=e)},items(e,t){(!t||t.length!==(e||[]).length)&&this.scheduleInit()},itemSize(){this.scheduleInit()},orientation(){this.lastScrollPos=this.isBoth()?{top:0,left:0}:0},scrollHeight(){this.scheduleInit()},scrollWidth(){this.scheduleInit()}},mounted(){this.viewInit(),this.lastScrollPos=this.isBoth()?{top:0,left:0}:0,this.lazyLoadState=this.lazyLoadState||{}},updated(){!this.initialized&&this.viewInit()},unmounted(){this.unbindResizeListener(),this.initialized=!1},methods:{resolveItemKey(e,t){let n=this.itemKey;return typeof n==`function`?n(e,t)??t:typeof n==`string`&&typeof e==`object`&&e?e[n]??t:t},viewInit(){o(this.element)&&(this.setContentEl(this.content),this.init(),this.calculateAutoSize(),this.bindResizeListener(),this.defaultWidth=l(this.element),this.defaultHeight=u(this.element),this.defaultContentWidth=l(this.content),this.defaultContentHeight=u(this.content),this.initialized=!0)},init(){this.disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize())},scheduleInit(){this._initScheduled||(this._initScheduled=!0,Promise.resolve().then(()=>{this._initScheduled=!1,this.init(),this.calculateAutoSize()}))},isVertical(){return this.orientation===`vertical`},isHorizontal(){return this.orientation===`horizontal`},isBoth(){return this.orientation===`both`},scrollTo(e){this.element&&this.element.scrollTo(e)},scrollToIndex(e,t=`auto`){let n=this.isBoth(),r=this.isHorizontal(),i=this.rtl&&r;if(n?e.every(e=>e>-1):e>-1){let a=this.first,{scrollTop:o=0,scrollLeft:s=0}=this.element,{numToleratedItems:c}=this.calculateNumItems(),l=this.getContentPosition(),u=this.itemSize,d=(e=0,t)=>e<=t?0:e,f=(e,t,n)=>e*t+n,p=(e=0,n=0)=>{i&&(e=this.element.scrollWidth-this.element.clientWidth-e),this.scrollTo({left:e,top:n,behavior:t})},m=n?{rows:0,cols:0}:0,h=!1,g=!1;n?(m={rows:d(e[0],c[0]),cols:d(e[1],c[1])},p(f(m.cols,u[1],l.left),f(m.rows,u[0],l.top)),g=this.lastScrollPos.top!==o||this.lastScrollPos.left!==s,h=m.rows!==a.rows||m.cols!==a.cols):(m=d(e,c),r?p(f(m,u,l.left),o):p(s,f(m,u,l.top)),g=this.lastScrollPos!==(r?s:o),h=m!==a),this.isRangeChanged=h,g&&(this.first=m)}},scrollInView(e,t,n=`auto`){if(t){let r=this.isBoth(),i=this.isHorizontal();if(r?e.every(e=>e>-1):e>-1){let{first:a,viewport:o}=this.getRenderedRange(),s=(e=0,t=0)=>this.scrollTo({left:e,top:t,behavior:n}),c=t===`to-start`,l=t===`to-end`;if(c){if(r)o.first.rows-a.rows>e[0]?s(o.first.cols*this.itemSize[1],(o.first.rows-1)*this.itemSize[0]):o.first.cols-a.cols>e[1]&&s((o.first.cols-1)*this.itemSize[1],o.first.rows*this.itemSize[0]);else if(o.first-a>e){let e=(o.first-1)*this.itemSize;i?s(e,0):s(0,e)}}else if(l){if(r)o.last.rows-a.rows<=e[0]+1?s(o.first.cols*this.itemSize[1],(o.first.rows+1)*this.itemSize[0]):o.last.cols-a.cols<=e[1]+1&&s((o.first.cols+1)*this.itemSize[1],o.first.rows*this.itemSize[0]);else if(o.last-a<=e+1){let e=(o.first+1)*this.itemSize;i?s(e,0):s(0,e)}}}}else this.scrollToIndex(e,n)},getRenderedRange(){let e=(e,t)=>Math.floor(e/(t||e)),t=this.first,n=0;if(this.element){let r=this.isBoth(),i=this.isHorizontal(),{scrollTop:a,scrollLeft:o}=this.element;r?(t={rows:e(a,this.itemSize[0]),cols:e(o,this.itemSize[1])},n={rows:t.rows+this.numItemsInViewport.rows,cols:t.cols+this.numItemsInViewport.cols}):(t=e(i?o:a,this.itemSize),n=t+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:t,last:n}}},calculateNumItems(){let e=this.isBoth(),t=this.isHorizontal(),n=this.itemSize,r=this.getContentPosition(),i=this.element?this.element.offsetWidth-r.left:0,a=this.element?this.element.offsetHeight-r.top:0,o=(e,t)=>Math.ceil(e/(t||e)),s=e=>Math.ceil(e/2),c=e?{rows:o(a,n[0]),cols:o(i,n[1])}:o(t?i:a,n);return{numItemsInViewport:c,numToleratedItems:this.d_numToleratedItems||(e?[s(c.rows),s(c.cols)]:s(c))}},calculateOptions(){let e=this.isBoth(),t=this.first,{numItemsInViewport:n,numToleratedItems:r}=this.calculateNumItems(),i=(e,t,n,r=!1)=>this.getLast(e+t+(e<n?2:3)*n,r),a=e?{rows:i(t.rows,n.rows,r[0]),cols:i(t.cols,n.cols,r[1],!0)}:i(t,n,r);this.last=a,this.numItemsInViewport=n,this.d_numToleratedItems=r,this.$emit(`update:numToleratedItems`,this.d_numToleratedItems),this.showLoader&&(this.loaderArr=e?Array.from({length:n.rows}).map(()=>Array.from({length:n.cols})):Array.from({length:n})),this.lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this.step?e?{rows:0,cols:t.cols}:0:t,last:Math.min(this.step?this.step:a,this.items?.length-1||0)},this.$emit(`lazy-load`,this.lazyLoadState)})},calculateAutoSize(){this.autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.content){let e=this.isBoth(),t=this.isHorizontal(),n=this.isVertical();this.content.style.minHeight=this.content.style.minWidth=`auto`,this.content.style.position=`relative`,this.element.style.contain=`none`;let[r,i]=[l(this.element),u(this.element)];(e||t)&&(this.element.style.width=r<this.defaultWidth?r+`px`:this.scrollWidth||this.defaultWidth+`px`),(e||n)&&(this.element.style.height=i<this.defaultHeight?i+`px`:this.scrollHeight||this.defaultHeight+`px`),this.content.style.minHeight=this.content.style.minWidth=``,this.content.style.position=``,this.element.style.contain=``}})},getLast(e=0,t){return this.items?Math.min(t?(this.columns||this.items[0])?.length||0:this.items?.length||0,e):0},getContentPosition(){if(this.content){let e=getComputedStyle(this.content),t=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),n=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),r=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),i=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:t,right:n,top:r,bottom:i,x:t+n,y:r+i}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize(){if(this.element){let e=this.isBoth(),t=this.isHorizontal(),n=this.element.parentElement,r=this.scrollWidth||`${this.element.offsetWidth||n.offsetWidth}px`,i=this.scrollHeight||`${this.element.offsetHeight||n.offsetHeight}px`,a=(e,t)=>this.element.style[e]=t;e||t?(a(`height`,i),a(`width`,r)):a(`height`,i)}},setSpacerSize(){let e=this.items;if(e){let t=this.isBoth(),n=this.isHorizontal(),r=this.getContentPosition(),i=(e,t,n,r=0)=>this.spacerStyle={...this.spacerStyle,[`${e}`]:(t||[]).length*n+r+`px`};t?(i(`height`,e,this.itemSize[0],r.y),i(`width`,this.columns||e[1],this.itemSize[1],r.x)):n?i(`width`,this.columns||e,this.itemSize,r.x):i(`height`,e,this.itemSize,r.y)}},setContentPosition(e){if(this.content&&!this.appendOnly){let t=this.isBoth(),n=this.isHorizontal(),r=this.rtl&&n,i=e?e.first:this.first,a=(e,t)=>e*t,o=(e=0,t=0)=>{let n=r?-e:e;this.contentStyle={...this.contentStyle,transform:`translate3d(${n}px, ${t}px, 0)`}};if(t){let e=i.rows,t=i.cols,n=this.itemSize;o(a(t,n[1]),a(e,n[0]))}else{let e=i,t=this.itemSize,r=a(e,t);n?o(r,0):o(0,r)}}},onScrollPositionChange(e){let t=e.target,n=this.isBoth(),r=this.isHorizontal(),i=this.rtl&&r,a=this.getContentPosition(),o=(e,t)=>e?e>t?e-t:e:0,s=(e,t)=>Math.floor(e/(t||e)),c=o(t.scrollTop,a.top),l=o(t.scrollLeft,a.left);i&&l<0&&(l=Math.abs(l));let u=n?{rows:0,cols:0}:0,d=this.last,f=!1,p=this.lastScrollPos;if(n){let e=this.lastScrollPos.top<=c,n=this.lastScrollPos.left<=l;if(!this.appendOnly||this.appendOnly&&(e||n)){let r={rows:s(c,this.itemSize[0]),cols:s(l,this.itemSize[1])},i={rows:this.calculateTriggerIndex(r.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],e),cols:this.calculateTriggerIndex(r.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],n)};u={rows:this.calculateFirst(r.rows,i.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],e),cols:this.calculateFirst(r.cols,i.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],n,!0)},d={rows:this.calculateLast(r.rows,u.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:this.calculateLast(r.cols,u.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},f=u.rows!==this.first.rows||d.rows!==this.last.rows||u.cols!==this.first.cols||d.cols!==this.last.cols||this.isRangeChanged,p={top:c,left:t.scrollLeft}}}else{let e=r?l:c,t=this.lastScrollPos<=e;if(!this.appendOnly||this.appendOnly&&t){let n=s(e,this.itemSize),r=this.calculateTriggerIndex(n,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,t);u=this.calculateFirst(n,r,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,t),d=this.calculateLast(n,u,this.last,this.numItemsInViewport,this.d_numToleratedItems),f=u!==this.first||d!==this.last||this.isRangeChanged,p=e}}return{first:u,last:d,isRangeChanged:f,scrollPos:p}},calculateTriggerIndex(e,t,n,r,i,a){return e<=i?i:a?n-r-i:t+i-1},calculateFirst(e,t,n,r,i,a,o,s=!1){if(e<=a)return 0;let c=Math.max(0,o?e<t?n:e-a:e>t?n:e-2*a),l=this.getLast(c,s);return c>l?l-i:c},calculateLast(e,t,n,r,i,a=!1){let o=t+r+2*i;return e>=i&&(o+=i+1),this.getLast(o,a)},onScrollChange(e){let{first:t,last:n,isRangeChanged:r,scrollPos:i}=this.onScrollPositionChange(e);if(r){let e={first:t,last:n};if(this.setContentPosition(e),this.first=t,this.last=n,this.lastScrollPos=i,this.$emit(`scroll-index-change`,e),this.lazy&&this.isPageChanged(t)){let e={first:this.step?Math.min(this.getPageByFirst(t)*this.step,(this.items?.length||0)-this.step):t,last:Math.min(this.step?(this.getPageByFirst(t)+1)*this.step:n,this.items?.length-1||0)};(this.lazyLoadState.first!==e.first||this.lazyLoadState.last!==e.last)&&this.$emit(`lazy-load`,e),this.lazyLoadState=e}}},onScroll(e){if(this.$emit(`scroll`,e),this.delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading&&this.showLoader){let{isRangeChanged:t}=this.onScrollPositionChange(e);(t||this.step&&this.isPageChanged())&&(this.d_loading=!0)}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this.lazy||this.loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst())},this.delay)}}else this.onScrollChange(e)},onResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(o(this.element)){let e=this.isBoth(),t=this.isVertical(),n=this.isHorizontal(),[r,i]=[l(this.element),u(this.element)],[a,o]=[r!==this.defaultWidth,i!==this.defaultHeight];(e?a||o:n?a:t&&o)&&(this.d_numToleratedItems=this.numToleratedItems,this.defaultWidth=r,this.defaultHeight=i,this.defaultContentWidth=l(this.content),this.defaultContentHeight=u(this.content),this.init())}},this.resizeDelay)},bindResizeListener(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener(`resize`,this.resizeListener),window.addEventListener(`orientationchange`,this.resizeListener))},unbindResizeListener(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),window.removeEventListener(`orientationchange`,this.resizeListener),null)},getOptions(e){let t=(this.items||[]).length,n=this.isBoth()?this.first.rows+e:this.first+e;return{index:n,count:t,first:n===0,last:n===t-1,even:n%2==0,odd:n%2!=0}},getLoaderOptions(e,t){let n=this.loaderArr.length;return{index:e,count:n,first:e===0,last:e===n-1,even:e%2==0,odd:e%2!=0,...t}},getPageByFirst(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this.step||1))},isPageChanged(e){return this.step&&!this.lazy?this.page!==this.getPageByFirst(e??this.first):!0},setContentEl(t){this.content=t||this.content||e(this.element,`[data-pc-section="content"]`)},elementRef(e){this.element=e},contentRef(e){this.content=e}}},pt=[`tabindex`];function mt(e,t,n,r,i,a){let o=y(`SpinnerIcon`);return e.disabled?(S(),O(P,{key:1},[z(e.$slots,`default`),z(e.$slots,`content`,{items:e.items,rows:e.items,columns:a.loadedColumns})],64)):(S(),O(`div`,x({key:0,ref:a.elementRef,class:a.containerClass,tabindex:e.tabindex,style:e.style},e.ptmi(`root`),{onScroll:t[0]||=(...e)=>a.onScroll&&a.onScroll(...e)}),[z(e.$slots,`content`,{styleClass:a.contentClass,items:a.loadedItems,getItemOptions:a.getOptions,loading:i.d_loading,getLoaderOptions:a.getLoaderOptions,itemSize:e.itemSize,rows:a.loadedRows,columns:a.loadedColumns,contentRef:a.contentRef,spacerStyle:i.spacerStyle,contentStyle:i.contentStyle,vertical:a.isVertical(),horizontal:a.isHorizontal(),both:a.isBoth()},()=>[D(`div`,x({ref:a.contentRef,class:a.contentClass,style:i.contentStyle},e.ptm(`content`)),[(S(!0),O(P,null,w(a.loadedItems,(t,n)=>z(e.$slots,`item`,{item:t,options:a.getOptions(n)},void 0,void 0,a.resolveItemKey(t,n))),128))],16)]),e.showSpacer?(S(),O(`div`,x({key:0,class:`p-virtualscroller-spacer`,style:i.spacerStyle},e.ptm(`spacer`)),null,16)):I(``,!0),!e.loaderDisabled&&e.showLoader&&i.d_loading?(S(),O(`div`,x({key:1,class:a.loaderClass},e.ptm(`loader`)),[e.$slots&&e.$slots.loader?(S(!0),O(P,{key:0},w(i.loaderArr,(t,n)=>z(e.$slots,`loader`,{options:a.getLoaderOptions(n,a.isBoth()&&{numCols:e.d_numItemsInViewport.cols})},void 0,void 0,n)),128)):I(``,!0),z(e.$slots,`loadingicon`,{},()=>[A(o,x({spin:``,class:`p-virtualscroller-loading-icon`},e.ptm(`loadingIcon`)),null,16)])],16)):I(``,!0)],16,pt))}var q=ae(ft,[[`render`,mt]]),J={key:1,class:`pointer-events-none absolute bottom-2 left-1/2 -translate-x-1/2 z-10 rounded-full bg-black/60 p-1.5`},ht=ae(L({__name:`CuiRecordingsGrid`,props:{items:{},minItemWidth:{},aspectRatio:{default:1},gap:{default:8},hasMore:{type:Boolean,default:!1},loadMore:{type:Function,default:void 0},itemKey:{type:Function,default:void 0}},setup(e,{expose:t}){let n=e,r=C(`containerRef`),{width:i,height:a}=te(r),o=F(()=>a.value>0?`${a.value}px`:void 0),s=F(()=>{let e=i.value;if(!e)return 0;let t=n.gap;return Math.max(1,Math.floor((e+t)/(n.minItemWidth+t)))}),c=F(()=>{let e=i.value,t=s.value;return!e||!t?0:Math.floor((e-(t-1)*n.gap)/t)}),l=F(()=>c.value?Math.floor(c.value/n.aspectRatio):0),u=F(()=>l.value?l.value+n.gap:0),d=F(()=>{let e=s.value;if(!e)return[];let t=[];for(let r=0;r<n.items.length;r+=e)t.push(n.items.slice(r,r+e));return t});function f(e){if(n.itemKey)return n.itemKey(e);let t=e;return t.id??t.key??JSON.stringify(e)}function p(e){let t=e;if(t&&t.length!==0)return f(t[0])}let m=k(!1),h=null;async function g(){if(m.value||!n.hasMore||!n.loadMore||h!==null&&n.items.length===h)return;m.value=!0;let e=n.items.length;try{await Promise.resolve(n.loadMore())}finally{m.value=!1,h=n.items.length===e?e:null}}let _=k(0);function ee(e){let t=e.target;if(!t)return;_.value=t.scrollTop;let n=u.value*3;t.scrollTop+t.clientHeight>=t.scrollHeight-n&&g()}function ne(){(r.value?.querySelector(`.recordings-scroll`))?.scrollTo({top:0,behavior:`smooth`})}let re=!1;return Oe([()=>n.items.length,a,u,()=>n.hasMore],()=>{re||(re=!0,Ee(()=>{if(re=!1,!n.hasMore)return;let e=a.value,t=d.value.length*u.value;e>0&&u.value>0&&t<e+u.value&&g()}))},{flush:`post`}),t({scrollToTop:ne,scrollY:_}),(t,n)=>{let i=q,a=Le;return S(),O(`div`,{ref_key:`containerRef`,ref:r,class:`recordings-grid-root relative`},[R(d).length>0&&R(c)>0?(S(),j(i,{key:0,items:R(d),"item-size":R(u),"scroll-height":R(o),orientation:`vertical`,class:`recordings-scroll`,"num-tolerated-items":2,"item-key":p,onScroll:ee},{item:v(({item:n})=>[D(`div`,{class:`recordings-row`,style:T({height:`${R(u)}px`,gap:`${e.gap}px`})},[(S(!0),O(P,null,w(n,e=>(S(),O(`div`,{key:f(e),style:T({width:`${R(c)}px`,height:`${R(l)}px`})},[z(t.$slots,`item`,{item:e},void 0,!0)],4))),128))],4)]),_:3},8,[`items`,`item-size`,`scroll-height`])):I(``,!0),R(m)?(S(),O(`div`,J,[A(a,{width:`18px`,height:`18px`,class:`text-white`})])):I(``,!0)],512)}}}),[[`__scopeId`,`data-v-57a2aa74`]]);function gt(e){if(e.episode)return e.episode.endTime;if(e.segIndex!==void 0){let t=e.event.segments?.[e.segIndex];if(t)return t.firstSeen}return e.event.thumbnailAt??e.event.startTime}function _t(e){let t=[];for(let n of e){let e=n.segments??[];if(e.length<=1){t.push({event:n,key:n.id});continue}e.forEach((e,r)=>{e&&t.push({event:n,key:`${n.id}:seg:${r}`,segIndex:r})})}return t.sort((e,t)=>gt(t)-gt(e)),t}export{dt as i,gt as n,ht as r,_t as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Dr as e,Ir as t,_ as n,s as r}from"./api-BNrZVfeD.js";import{dr as i}from"./vendor-DGke_6M4.js";import{l as a}from"./server-CfZnIVzn.js";import{n as o}from"./useServerRestart-7edyD8M0.js";var s=3e5;async function c(e){return(await t.post(`/backup/download`,{localStorage:e},{responseType:`arraybuffer`,timeout:s})).data}async function l(e,n){return(await t.post(`/backup/restore`,e,{timeout:s,onUploadProgress:e=>{e.total&&n?.(Math.round(e.loaded/e.total*100))}})).data}async function u(){return(await t.get(`/backup/scheduler`)).data}async function d(e){return(await t.patch(`/backup/scheduler`,e)).data}async function f(){return(await t.post(`/backup/scheduler/run`)).data}async function p(e){return(await t.get(`/backup/scheduler/backups/${encodeURIComponent(e)}`,{responseType:`arraybuffer`,timeout:s})).data}async function m(e){await t.delete(`/backup/scheduler/backups/${encodeURIComponent(e)}`)}var h=i(!1),g=i(`idle`),_=i(0),v=i(``),y=h;function b(e){e.theme&&localStorage.setItem(`theme`,JSON.stringify(e.theme)),e.language&&localStorage.setItem(`language`,e.language),e.ui&&localStorage.setItem(`ui`,JSON.stringify(e.ui))}function x(){async function t(t){let i=e();h.value=!0,g.value=`uploading`,_.value=0,v.value=``;try{let e=new FormData;e.append(`upload`,t),b(await l(e,e=>{_.value=e,e>=100&&(g.value=`restoring`)}))}catch(e){return h.value=!1,g.value=`idle`,v.value=r(e),i.add({severity:`error`,detail:v.value,life:1e4}),!1}g.value=`restarting`;let{beginServerRestart:s}=o();return s(),await a().catch(()=>{}),await n().logout(),h.value=!1,g.value=`idle`,!0}return{active:h,phase:g,uploadPercent:_,lastError:v,restoreLocalStorage:b,run:t}}export{p as a,f as c,c as i,x as n,u as o,m as r,d as s,y as t};
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import { Dt as e, G as t, H as n, Jt as r, _t as i, d as a, f as o, kt as s, l as c, lt as l, p as u, r as d, u as f, ut as p, v as m, x as h, y as g } from "./runtime-core.esm-bundler-_TfE0DWz.js";
|
|
2
|
-
import { t as ee } from "./tooltip-Z7VN-E1u.js";
|
|
3
|
-
import { t as te } from "./tag-mchuCAPR.js";
|
|
4
|
-
import { Yr as _, br as v, c as y, gt as b, ht as x, s as S, vr as ne, xr as re, yr as C } from "./api-BmYisoxj.js";
|
|
5
|
-
import { n as w } from "./vue-i18n-D5EAy78K.js";
|
|
6
|
-
import { t as ie } from "./button-BouAFgf5.js";
|
|
7
|
-
import { t as ae } from "./divider-DeFEXTGs.js";
|
|
8
|
-
import { t as T } from "./clock-outline-DNStdM39.js";
|
|
9
|
-
import { t as E } from "./source-branch-C2kcmBcO.js";
|
|
10
|
-
import { t as D } from "./plugins-BwwaWxye.js";
|
|
11
|
-
import { t as oe } from "./CuiPluginTrustBadge-DolANNao.js";
|
|
12
|
-
import { t as se } from "./account-DJh6O-cw.js";
|
|
13
|
-
import { t as ce } from "./check-circle-B5OGJJIu.js";
|
|
14
|
-
import { t as le } from "./CuiMarkdownContent-CrkZwv5j.js";
|
|
15
|
-
import { t as ue } from "./alert-circle-C7oDe-WY.js";
|
|
16
|
-
import { t as de } from "./home-36M6iydk.js";
|
|
17
|
-
import { i as fe, r as pe } from "./PluginSearch-BTKBnjxb.js";
|
|
18
|
-
import { t as me } from "./download-B64w9GvF.js";
|
|
19
|
-
import { n as O, r as k } from "./platformLabels-C3d1PLg-.js";
|
|
20
|
-
//#region ~icons/mdi/scale-balance
|
|
21
|
-
var A = {
|
|
22
|
-
viewBox: "0 0 24 24",
|
|
23
|
-
width: "1.2em",
|
|
24
|
-
height: "1.2em"
|
|
25
|
-
};
|
|
26
|
-
function j(e, t) {
|
|
27
|
-
return n(), u("svg", A, [...t[0] ||= [f("path", {
|
|
28
|
-
fill: "currentColor",
|
|
29
|
-
d: "M12 3c-1.27 0-2.4.8-2.82 2H3v2h1.95L2 14c-.47 2 1 3 3.5 3s4.06-1 3.5-3L6.05 7h3.12c.33.85.98 1.5 1.83 1.83V20H2v2h20v-2h-9V8.82c.85-.32 1.5-.97 1.82-1.82h3.13L15 14c-.47 2 1 3 3.5 3s4.06-1 3.5-3l-2.95-7H21V5h-6.17C14.4 3.8 13.27 3 12 3m0 2a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m-6.5 5.25L7 14H4zm13 0L20 14h-3z"
|
|
30
|
-
}, null, -1)]]);
|
|
31
|
-
}
|
|
32
|
-
var M = i({
|
|
33
|
-
name: "mdi-scale-balance",
|
|
34
|
-
render: j
|
|
35
|
-
}), N = { class: "plugin-detail" }, P = { class: "flex items-start gap-4" }, F = { class: "w-16 h-16 relative rounded-2xl flex-shrink-0 border-2 border-color overflow-hidden" }, I = { class: "flex flex-col min-w-0 flex-1" }, L = { class: "flex items-center gap-2 flex-wrap" }, R = { class: "text-xl font-semibold truncate" }, z = { class: "text-sm text-muted truncate" }, he = {
|
|
36
|
-
key: 0,
|
|
37
|
-
class: "text-sm mt-1"
|
|
38
|
-
}, ge = { class: "flex flex-wrap items-center gap-2 mt-4" }, _e = {
|
|
39
|
-
key: 0,
|
|
40
|
-
class: "detail-meta"
|
|
41
|
-
}, ve = {
|
|
42
|
-
key: 1,
|
|
43
|
-
class: "detail-meta"
|
|
44
|
-
}, ye = {
|
|
45
|
-
key: 2,
|
|
46
|
-
class: "detail-meta"
|
|
47
|
-
}, be = {
|
|
48
|
-
key: 3,
|
|
49
|
-
class: "detail-meta"
|
|
50
|
-
}, xe = {
|
|
51
|
-
key: 0,
|
|
52
|
-
class: "flex flex-wrap items-center gap-1 mt-4"
|
|
53
|
-
}, Se = {
|
|
54
|
-
key: 1,
|
|
55
|
-
class: "mt-4 flex flex-col gap-3"
|
|
56
|
-
}, Ce = { class: "flex items-center gap-1" }, we = {
|
|
57
|
-
key: 0,
|
|
58
|
-
class: "flex flex-wrap items-center gap-1"
|
|
59
|
-
}, B = {
|
|
60
|
-
key: 1,
|
|
61
|
-
class: "flex items-start gap-3 px-4 py-3 rounded-xl bg-orange-500/10 border border-orange-500/30"
|
|
62
|
-
}, Te = { class: "flex flex-col gap-1 min-w-0" }, Ee = { class: "text-sm font-semibold text-orange-400" }, De = { key: 0 }, Oe = { class: "text-xs text-orange-600 dark:text-orange-300" }, ke = { class: "text-sm text-orange-400" }, Ae = {
|
|
63
|
-
key: 2,
|
|
64
|
-
class: "mt-5"
|
|
65
|
-
}, je = { class: "text-base font-semibold mb-2" }, Me = { class: "screenshots-row custom-scrollbar" }, Ne = { class: "readme-section" }, Pe = {
|
|
66
|
-
key: 0,
|
|
67
|
-
class: "flex w-full items-center justify-center py-10"
|
|
68
|
-
}, V = /*#__PURE__*/ C(/* @__PURE__ */ h({
|
|
69
|
-
__name: "PluginDetail",
|
|
70
|
-
props: { plugin: {} },
|
|
71
|
-
setup(i, { expose: h }) {
|
|
72
|
-
let C = b(() => import("./VersionsHandler-BOvjesvp.js")), A = new D(), j = i, V = x(), { t: H } = w(), { plugin: U } = e(j), { data: W } = A.getPluginLogoQuery(U.value.pluginName), { data: Fe, isBusy: Ie } = A.getPluginReadmeQuery(U.value.pluginName), { data: G } = A.getPluginCompatQuery(U.value.pluginName), Le = c(() => U.value.logo || W.value), K = c(() => {
|
|
73
|
-
let e = U.value.downloads?.weekly;
|
|
74
|
-
return typeof e == "number" ? H("components.plugin_search.downloads_per_week", { count: S(e) }) : void 0;
|
|
75
|
-
}), q = c(() => U.value.lastUpdated ? y(U.value.lastUpdated) : void 0), Re = c(() => !!(U.value.links?.npm || U.value.links?.repository || U.value.links?.homepage || U.value.links?.bugs)), J = c(() => (G.value?.os ?? []).map(k)), Y = c(() => (G.value?.cpu ?? []).map(O)), X = c(() => [...J.value, ...Y.value].join(" · ")), Z = c(() => G.value?.platformCompatible ?? !0), ze = c(() => !!G.value && (J.value.length > 0 || Y.value.length > 0 || !Z.value || (G.value?.issues?.length ?? 0) > 0));
|
|
76
|
-
function Q() {
|
|
77
|
-
V.openComponentDialog(C, { data: {
|
|
78
|
-
title: H("components.dialog.title.install"),
|
|
79
|
-
confirmText: H("components.form.button.install"),
|
|
80
|
-
contentProps: {
|
|
81
|
-
target: s(U),
|
|
82
|
-
installVersion: "latest"
|
|
83
|
-
}
|
|
84
|
-
} });
|
|
85
|
-
}
|
|
86
|
-
return h({ onConfirm: Q }), (e, i) => {
|
|
87
|
-
let c = ne, h = oe, y = pe, b = me, x = T, S = M, C = se, w = fe, D = ie, O = E, k = de, A = _, j = ce, V = te, H = ue, W = re, Q = ae, Be = v, Ve = le, $ = ee;
|
|
88
|
-
return n(), u("div", N, [
|
|
89
|
-
f("div", P, [f("div", F, [g(c, {
|
|
90
|
-
src: s(Le),
|
|
91
|
-
alt: "Plugin icon",
|
|
92
|
-
class: "block w-full h-full",
|
|
93
|
-
"image-container-class": "w-full h-full",
|
|
94
|
-
"image-class": "object-contain"
|
|
95
|
-
}, null, 8, ["src"])]), f("div", I, [
|
|
96
|
-
f("div", L, [f("h2", R, r(s(U).displayName), 1), g(h, {
|
|
97
|
-
trust: s(U).trust,
|
|
98
|
-
"show-label": !1
|
|
99
|
-
}, null, 8, ["trust"])]),
|
|
100
|
-
f("div", z, r(s(U).pluginName), 1),
|
|
101
|
-
s(U).tagline || s(U).description ? (n(), u("p", he, r(s(U).tagline || s(U).description), 1)) : o("", !0)
|
|
102
|
-
])]),
|
|
103
|
-
f("div", ge, [
|
|
104
|
-
g(y, { category: s(U).category }, null, 8, ["category"]),
|
|
105
|
-
s(K) ? (n(), u("span", _e, [g(b, { class: "detail-meta-icon" }), m(" " + r(s(K)), 1)])) : o("", !0),
|
|
106
|
-
s(q) ? (n(), u("span", ve, [g(x, { class: "detail-meta-icon" }), m(" " + r(e.$t("components.plugin_search.updated_ago", { time: s(q) })), 1)])) : o("", !0),
|
|
107
|
-
s(U).license ? (n(), u("span", ye, [g(S, { class: "detail-meta-icon" }), m(" " + r(s(U).license), 1)])) : o("", !0),
|
|
108
|
-
s(U).author ? (n(), u("span", be, [g(C, { class: "detail-meta-icon" }), m(" " + r(s(U).author), 1)])) : o("", !0)
|
|
109
|
-
]),
|
|
110
|
-
s(Re) ? (n(), u("div", xe, [
|
|
111
|
-
s(U).links?.npm ? p((n(), a(D, {
|
|
112
|
-
key: 0,
|
|
113
|
-
text: "",
|
|
114
|
-
rounded: "",
|
|
115
|
-
severity: "secondary",
|
|
116
|
-
class: "cui-icon-md",
|
|
117
|
-
onClick: i[0] ||= (t) => e.$router.absUrl(s(U).links.npm, !0)
|
|
118
|
-
}, {
|
|
119
|
-
icon: l(() => [g(w, {
|
|
120
|
-
width: "100%",
|
|
121
|
-
height: "100%"
|
|
122
|
-
})]),
|
|
123
|
-
_: 1
|
|
124
|
-
})), [[
|
|
125
|
-
$,
|
|
126
|
-
{ value: "NPM" },
|
|
127
|
-
void 0,
|
|
128
|
-
{ top: !0 }
|
|
129
|
-
]]) : o("", !0),
|
|
130
|
-
s(U).links?.repository ? p((n(), a(D, {
|
|
131
|
-
key: 1,
|
|
132
|
-
text: "",
|
|
133
|
-
rounded: "",
|
|
134
|
-
severity: "secondary",
|
|
135
|
-
class: "cui-icon-md",
|
|
136
|
-
onClick: i[1] ||= (t) => e.$router.absUrl(s(U).links.repository, !0)
|
|
137
|
-
}, {
|
|
138
|
-
icon: l(() => [g(O, {
|
|
139
|
-
width: "100%",
|
|
140
|
-
height: "100%"
|
|
141
|
-
})]),
|
|
142
|
-
_: 1
|
|
143
|
-
})), [[
|
|
144
|
-
$,
|
|
145
|
-
{ value: e.$t("components.plugin_search.repository") },
|
|
146
|
-
void 0,
|
|
147
|
-
{ top: !0 }
|
|
148
|
-
]]) : o("", !0),
|
|
149
|
-
s(U).links?.homepage ? p((n(), a(D, {
|
|
150
|
-
key: 2,
|
|
151
|
-
text: "",
|
|
152
|
-
rounded: "",
|
|
153
|
-
severity: "secondary",
|
|
154
|
-
class: "cui-icon-md",
|
|
155
|
-
onClick: i[2] ||= (t) => e.$router.absUrl(s(U).links.homepage, !0)
|
|
156
|
-
}, {
|
|
157
|
-
icon: l(() => [g(k, {
|
|
158
|
-
width: "100%",
|
|
159
|
-
height: "100%"
|
|
160
|
-
})]),
|
|
161
|
-
_: 1
|
|
162
|
-
})), [[
|
|
163
|
-
$,
|
|
164
|
-
{ value: e.$t("components.plugin_search.homepage") },
|
|
165
|
-
void 0,
|
|
166
|
-
{ top: !0 }
|
|
167
|
-
]]) : o("", !0),
|
|
168
|
-
s(U).links?.bugs ? p((n(), a(D, {
|
|
169
|
-
key: 3,
|
|
170
|
-
text: "",
|
|
171
|
-
rounded: "",
|
|
172
|
-
severity: "secondary",
|
|
173
|
-
class: "cui-icon-md",
|
|
174
|
-
onClick: i[3] ||= (t) => e.$router.absUrl(s(U).links.bugs, !0)
|
|
175
|
-
}, {
|
|
176
|
-
icon: l(() => [g(A, {
|
|
177
|
-
width: "100%",
|
|
178
|
-
height: "100%"
|
|
179
|
-
})]),
|
|
180
|
-
_: 1
|
|
181
|
-
})), [[
|
|
182
|
-
$,
|
|
183
|
-
{ value: e.$t("components.plugin_search.bugs") },
|
|
184
|
-
void 0,
|
|
185
|
-
{ top: !0 }
|
|
186
|
-
]]) : o("", !0)
|
|
187
|
-
])) : o("", !0),
|
|
188
|
-
s(ze) ? (n(), u("div", Se, [s(Z) ? (n(), u(d, { key: 0 }, [g(V, {
|
|
189
|
-
severity: "success",
|
|
190
|
-
class: "self-start"
|
|
191
|
-
}, {
|
|
192
|
-
default: l(() => [f("span", Ce, [g(j), m(" " + r(e.$t("components.plugin_search.compatible_system")), 1)])]),
|
|
193
|
-
_: 1
|
|
194
|
-
}), s(J).length || s(Y).length ? (n(), u("div", we, [(n(!0), u(d, null, t(s(J), (e) => (n(), a(V, {
|
|
195
|
-
key: `os-${e}`,
|
|
196
|
-
severity: "secondary",
|
|
197
|
-
value: e
|
|
198
|
-
}, null, 8, ["value"]))), 128)), (n(!0), u(d, null, t(s(Y), (e) => (n(), a(V, {
|
|
199
|
-
key: `cpu-${e}`,
|
|
200
|
-
severity: "secondary",
|
|
201
|
-
value: e
|
|
202
|
-
}, null, 8, ["value"]))), 128))])) : o("", !0)], 64)) : (n(), u("div", B, [g(H, { class: "w-5 h-5 shrink-0 text-orange-400 mt-0.5" }), f("div", Te, [f("span", Ee, [m(r(e.$t("components.plugin_search.incompatible_system")), 1), s(X) ? (n(), u("span", De, " — " + r(s(X)), 1)) : o("", !0)]), f("span", Oe, r(e.$t("components.plugin_search.incompatible_worker_hint")), 1)])])), (n(!0), u(d, null, t(s(G)?.issues ?? [], (t) => (n(), u("div", {
|
|
203
|
-
key: t.engine,
|
|
204
|
-
class: "flex items-start gap-3 px-4 py-3 rounded-xl bg-orange-500/10 border border-orange-500/30"
|
|
205
|
-
}, [g(H, { class: "w-5 h-5 shrink-0 text-orange-400 mt-0.5" }), f("span", ke, r(e.$t("components.dialog.message.compatibility_engine", {
|
|
206
|
-
engine: t.engine,
|
|
207
|
-
required: t.required,
|
|
208
|
-
current: t.current
|
|
209
|
-
})), 1)]))), 128))])) : o("", !0),
|
|
210
|
-
s(U).screenshots?.length ? (n(), u("div", Ae, [f("h3", je, r(e.$t("components.plugin_search.screenshots")), 1), f("div", Me, [(n(!0), u(d, null, t(s(U).screenshots, (e, t) => (n(), a(W, {
|
|
211
|
-
key: t,
|
|
212
|
-
src: e,
|
|
213
|
-
alt: "Screenshot",
|
|
214
|
-
preview: "",
|
|
215
|
-
class: "screenshot-thumb"
|
|
216
|
-
}, null, 8, ["src"]))), 128))])])) : o("", !0),
|
|
217
|
-
g(Q),
|
|
218
|
-
f("div", Ne, [s(Ie) ? (n(), u("div", Pe, [g(Be, {
|
|
219
|
-
class: "w-[30px] h-[30px] m-0",
|
|
220
|
-
"stroke-width": "5"
|
|
221
|
-
})])) : (n(), a(Ve, {
|
|
222
|
-
key: 1,
|
|
223
|
-
content: s(Fe) || e.$t("views.plugin.no_readme")
|
|
224
|
-
}, null, 8, ["content"]))])
|
|
225
|
-
]);
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
}), [["__scopeId", "data-v-332ce412"]]);
|
|
229
|
-
//#endregion
|
|
230
|
-
export { V as default };
|