@duplicati/ngclient 0.0.166 → 0.0.168
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/chunk-23NBWWEN.js +1 -0
- package/chunk-2PYOYROT.js +1 -0
- package/{chunk-CO4VU5IU.js → chunk-33SCK3HX.js} +1 -1
- package/{chunk-2HQTO4LT.js → chunk-3HNIHWA3.js} +1 -1
- package/{chunk-SHNCRKXQ.js → chunk-3J76KG7L.js} +1 -1
- package/{chunk-OVLLX4US.js → chunk-3L2HST7Q.js} +1 -1
- package/chunk-3T4NJWLA.js +1 -0
- package/chunk-3ZEG6WVT.js +1 -0
- package/{chunk-WNHQELMC.js → chunk-4BGVLUYV.js} +1 -1
- package/{chunk-53V6KV3I.js → chunk-4MEL5WTX.js} +1 -1
- package/{chunk-GGNFAVSC.js → chunk-4PMLRVX5.js} +1 -1
- package/{chunk-53GUCO6P.js → chunk-5BMTCVLS.js} +1 -1
- package/chunk-5H3KA3BL.js +1 -0
- package/{chunk-XUQ74HFK.js → chunk-5K64UNNB.js} +1 -1
- package/{chunk-JGXPFEYZ.js → chunk-66KMXCBD.js} +1 -1
- package/{chunk-L7WPKNLR.js → chunk-66LPJUTC.js} +1 -1
- package/{chunk-3ADKRLYD.js → chunk-6DB3NZXR.js} +1 -1
- package/chunk-6GUZNCHD.js +1 -0
- package/chunk-6MMJ6EHL.js +1 -0
- package/chunk-7KUVROHU.js +1 -0
- package/chunk-7WIBNC6L.js +1 -0
- package/chunk-A6NUNQKN.js +1 -0
- package/{chunk-AY4BUZJQ.js → chunk-ABJWT6DQ.js} +1 -1
- package/{chunk-CMMGGY2S.js → chunk-B54TEGKW.js} +1 -1
- package/{chunk-OQ2HMOSQ.js → chunk-BTVYI2KD.js} +1 -1
- package/{chunk-HEST3B3S.js → chunk-CCM2D4BF.js} +1 -1
- package/{chunk-M2BAPEJT.js → chunk-CSY4BFC4.js} +1 -1
- package/{chunk-ZZBUNZZO.js → chunk-D2DI6ZER.js} +1 -1
- package/{chunk-X7XIFHAV.js → chunk-DU5QSRYH.js} +1 -1
- package/chunk-DY7VFO2O.js +1 -0
- package/{chunk-AROXMP46.js → chunk-EDLTOGSO.js} +1 -1
- package/{chunk-QLUEDPL4.js → chunk-F2QQDU4N.js} +1 -1
- package/{chunk-Y7PHGRGB.js → chunk-FAM42SZT.js} +1 -1
- package/{chunk-X6SJVQXW.js → chunk-FCZXIW2B.js} +1 -1
- package/chunk-G4JKMY4X.js +1 -0
- package/{chunk-V7OQKE2Z.js → chunk-GPDTWYQ7.js} +1 -1
- package/{chunk-R2N5UWYB.js → chunk-GS5QK7LF.js} +1 -1
- package/{chunk-NA6MTRHY.js → chunk-HFDNVEKY.js} +1 -1
- package/{chunk-7WATCQLK.js → chunk-HJRYTTGO.js} +1 -1
- package/{chunk-V5B247QH.js → chunk-HMM3KKPY.js} +1 -1
- package/{chunk-GRPEAINE.js → chunk-I2RHQQ3J.js} +1 -1
- package/{chunk-ULR2EPP5.js → chunk-I5AKUAZF.js} +1 -1
- package/{chunk-CMFSS355.js → chunk-IZQG3EV6.js} +1 -1
- package/{chunk-3O255C2R.js → chunk-JUWOEL4E.js} +1 -1
- package/{chunk-P7OKMMNZ.js → chunk-KBGIIJMM.js} +1 -1
- package/{chunk-YWZRYOES.js → chunk-L4GZJLYK.js} +1 -1
- package/chunk-L7A3FH7R.js +1 -0
- package/{chunk-G4Z3JAJB.js → chunk-LEZL7BSL.js} +1 -1
- package/chunk-LFRGO2IP.js +1 -0
- package/{chunk-HKYSIIV5.js → chunk-LFVCKT5O.js} +1 -1
- package/chunk-LGCYSN2C.js +1 -0
- package/{chunk-NY63VRAY.js → chunk-LJQN4G2O.js} +1 -1
- package/{chunk-HW7A5ZWV.js → chunk-M77IE672.js} +1 -1
- package/{chunk-LHOHOKP5.js → chunk-MBGTO6W7.js} +1 -1
- package/{chunk-YU5AMM6C.js → chunk-MP7JKTLP.js} +1 -1
- package/{chunk-SFSDLKTN.js → chunk-MR4EC7E2.js} +1 -1
- package/{chunk-ZXEF3CNK.js → chunk-MZMEFIHU.js} +1 -1
- package/{chunk-NDZU2O2Q.js → chunk-NHRDYV7W.js} +1 -1
- package/{chunk-ZZBZEHXF.js → chunk-NJ7S3XQO.js} +1 -1
- package/{chunk-ILGMXHEE.js → chunk-NOHHRZSK.js} +1 -1
- package/{chunk-KUP2T6AG.js → chunk-OLOFMEQN.js} +1 -1
- package/chunk-OZ6EMLFQ.js +1 -0
- package/{chunk-WPIVIZS6.js → chunk-PDBKO5D5.js} +1 -1
- package/{chunk-GHJ4MU3O.js → chunk-PG6KDQFA.js} +1 -1
- package/{chunk-VXJJGZ5F.js → chunk-PJAWWLYW.js} +1 -1
- package/{chunk-AUMCM45B.js → chunk-RECKKS2S.js} +1 -1
- package/{chunk-5RCKMVGY.js → chunk-RNNVKT2R.js} +1 -1
- package/{chunk-O2M7MRKP.js → chunk-S5O366BO.js} +1 -1
- package/{chunk-E4KSSC6K.js → chunk-T6C2OUI5.js} +1 -1
- package/{chunk-4IAJY6E3.js → chunk-TJ3WIU6Q.js} +1 -1
- package/chunk-TZP7VKPA.js +1 -0
- package/chunk-UNGFQSCM.js +1 -0
- package/{chunk-RRM5OZPV.js → chunk-UPGTBICK.js} +1 -1
- package/{chunk-W7NX3PWJ.js → chunk-UTONS2P4.js} +1 -1
- package/chunk-VIDWYXK5.js +1 -0
- package/{chunk-J64OAILA.js → chunk-VKR5DJQG.js} +1 -1
- package/{chunk-Q4I4JXKZ.js → chunk-VOYMNW22.js} +1 -1
- package/{chunk-QE4NBN5H.js → chunk-W2UO5LKI.js} +1 -1
- package/{chunk-QOQI2ALM.js → chunk-W4QCGFNO.js} +1 -1
- package/{chunk-3VHQLGKM.js → chunk-WEFZF25L.js} +1 -1
- package/{chunk-NXJQU7IR.js → chunk-X5FW56GT.js} +1 -1
- package/{chunk-ZQ56M63S.js → chunk-XE5OMGTJ.js} +1 -1
- package/{chunk-Y2LISX47.js → chunk-XTYBRFP6.js} +1 -1
- package/{chunk-SNVT3M5C.js → chunk-XY6KVQXK.js} +1 -1
- package/chunk-Y7PF5UJZ.js +1 -0
- package/chunk-YDCRZJMG.js +1 -0
- package/{chunk-EYFKXXER.js → chunk-ZV7VPSMZ.js} +1 -1
- package/index.html +1 -1
- package/locale/messages.da.json +57 -0
- package/locale/messages.de.json +33 -6
- package/locale/messages.it.json +57 -6
- package/locale/messages.ja_JP.json +1 -0
- package/locale/messages.nl_NL.json +15 -8
- package/locale/messages.sr_RS.json +1 -0
- package/locale/messages.sv_SE.json +1 -0
- package/locale/messages.zh-Hans.json +2 -5
- package/locale/messages.zh_CN.json +2 -5
- package/{main-L5HX5P6R.js → main-VFPROUDV.js} +1 -1
- package/package.json +1 -1
- package/chunk-25QJ7OWU.js +0 -1
- package/chunk-4N7O6OWH.js +0 -1
- package/chunk-A4HSV37F.js +0 -1
- package/chunk-BRPGUJ77.js +0 -1
- package/chunk-DPQEDR6U.js +0 -1
- package/chunk-EEXKY2IJ.js +0 -1
- package/chunk-FUPYLAQ6.js +0 -1
- package/chunk-HJSCQF6V.js +0 -1
- package/chunk-IMF5BUVN.js +0 -1
- package/chunk-IQ52IXSC.js +0 -1
- package/chunk-JXLBFHEH.js +0 -1
- package/chunk-KKLVMIFL.js +0 -1
- package/chunk-NLXY47SY.js +0 -1
- package/chunk-POAVE42X.js +0 -1
- package/chunk-QAY6UFT6.js +0 -1
- package/chunk-R3F6GIHW.js +0 -1
- package/chunk-SKFITJZT.js +0 -1
- package/chunk-TPYX7QC7.js +0 -1
- package/chunk-WJEUX75A.js +0 -1
- package/chunk-WKA7CSGA.js +0 -1
- package/chunk-ZSEZR472.js +0 -1
|
@@ -71,7 +71,6 @@
|
|
|
71
71
|
"8839272680695096289": "如果备份和远程存储不同步,系统将要求您执行修复操作以同步数据库。如果修复失败,您可以删除本地数据库并重新生成。可以使用“错误报告”按钮创建一个移除路径信息的数据库副本。这仅在开发者请求调查您的数据库问题时使用。",
|
|
72
72
|
"117616615872294580": "{$START_TAG_SH_ICON}wrench{$CLOSE_TAG_SH_ICON} 修复",
|
|
73
73
|
"8501684231598192320": "{$START_TAG_SH_ICON}trash{$CLOSE_TAG_SH_ICON} 删除",
|
|
74
|
-
"6475665368083852944": "{$START_TAG_SH_ICON}clock-counter-clockwise{$CLOSE_TAG_SH_ICON} 恢复(删除和修复)",
|
|
75
74
|
"5239100776977833065": "{$START_TAG_SH_ICON}file-plus{$CLOSE_TAG_SH_ICON} 创建错误报告数据库",
|
|
76
75
|
"5869780110608474933": "位置",
|
|
77
76
|
"6540830593149465642": "{$START_TAG_SH_ICON}backspace{$CLOSE_TAG_SH_ICON} 重置",
|
|
@@ -97,7 +96,7 @@
|
|
|
97
96
|
"4489627619329080013": "删除备份",
|
|
98
97
|
"517409415960630599": "搜索目标位置...",
|
|
99
98
|
"3344963119756221792": "选择 {$START_TAG_SH_ICON}arrow-right{$CLOSE_TAG_SH_ICON}",
|
|
100
|
-
"
|
|
99
|
+
"5372819034004399822": "备份保存位置",
|
|
101
100
|
"1976693045677246434": "{$START_TAG_SH_ICON}spinner{$CLOSE_TAG_SH_ICON} 测试链接...",
|
|
102
101
|
"8102509306620431414": "{$START_TAG_SH_ICON}check{$CLOSE_TAG_SH_ICON} 测试链接成功",
|
|
103
102
|
"1633404336323592843": "{$START_TAG_SH_ICON}warning{$CLOSE_TAG_SH_ICON}{$INTERPOLATION}",
|
|
@@ -409,6 +408,7 @@
|
|
|
409
408
|
"6824242843303909516": "8 小时",
|
|
410
409
|
"6833802623236445427": "24 小时",
|
|
411
410
|
"585737897051631942": "直到手动恢复",
|
|
411
|
+
"1112525418959962254": "取消注册",
|
|
412
412
|
"8863666082945976589": "暂无调度任务",
|
|
413
413
|
"5251829225351663738": "加载中 {$START_TAG_SH_SPINNER}{$CLOSE_TAG_SH_SPINNER}",
|
|
414
414
|
"8088579011532771101": "{$START_TAG_SH_ICON}skull{$CLOSE_TAG_SH_ICON} 中止",
|
|
@@ -508,7 +508,6 @@
|
|
|
508
508
|
"8856905278208146821": "{$ICU}",
|
|
509
509
|
"4301968594246501194": "{VAR_PLURAL, plural, =0 {No version yet} =1 {1 Version} other {{{INTERPOLATION}} Versions}}",
|
|
510
510
|
"1124571293447475738": "外部管理",
|
|
511
|
-
"3839108367953461894": "未找到备份",
|
|
512
511
|
"2737753982083076672": "备份 {$START_TAG_NG_CONTAINER}{$CLOSE_TAG_NG_CONTAINER}",
|
|
513
512
|
"8239510835983979014": "类型 {$START_TAG_NG_CONTAINER}{$CLOSE_TAG_NG_CONTAINER}",
|
|
514
513
|
"4031685509248518357": "上一次备份 {$START_TAG_NG_CONTAINER}{$CLOSE_TAG_NG_CONTAINER}",
|
|
@@ -571,7 +570,6 @@
|
|
|
571
570
|
"1664469528585743409": "恢复文件元数据 {$TAG_INPUT}",
|
|
572
571
|
"604878542023261717": "恢复原始的读/写权限 {$TAG_INPUT}",
|
|
573
572
|
"1253156499530942296": "该备份创建于其他操作系统上。恢复时不指定目标文件夹可能会使文件恢复到未知的位置。您确定不指定目标文件夹继续吗?",
|
|
574
|
-
"5802723289508144474": "备份目标位置 {$START_TAG_DIV}{$START_BLOCK_IF}{$START_TAG_BUTTON} 测试目标位置 {$CLOSE_TAG_BUTTON}{$CLOSE_BLOCK_IF}{$START_TAG_SH_MENU}{$START_TAG_BUTTON_1}{$START_TAG_SH_ICON}dots-three-vertical{$CLOSE_TAG_SH_ICON}{$CLOSE_TAG_BUTTON}{$START_TAG_NG_CONTAINER}{$START_TAG_BUTTON_2}{$START_TAG_SH_ICON}link{$CLOSE_TAG_SH_ICON} 编辑目标URL {$CLOSE_TAG_BUTTON}{$START_BLOCK_IF}{$START_TAG_BUTTON_3}{$START_TAG_SH_ICON}copy{$CLOSE_TAG_SH_ICON} 拷贝URL到剪贴板 {$CLOSE_TAG_BUTTON}{$CLOSE_BLOCK_IF}{$CLOSE_TAG_NG_CONTAINER}{$CLOSE_TAG_SH_MENU}{$CLOSE_TAG_DIV}",
|
|
575
573
|
"297083673179540834": "当前目标位置类型 {$START_TAG_STRONG}{$INTERPOLATION}.{$CLOSE_TAG_STRONG}{$LINE_BREAK} 是否想选择另一个? {$START_TAG_SPAN}点击这里{$CLOSE_TAG_SPAN}",
|
|
576
574
|
"4776685509889010215": "所有目标位置",
|
|
577
575
|
"8375589255950676550": "远程目标不包含任何备份。请检查目标详情是否正确。",
|
|
@@ -608,7 +606,6 @@
|
|
|
608
606
|
"6231927997656324898": "{$START_TAG_SH_ICON}floppy-disk{$CLOSE_TAG_SH_ICON} 保持设置",
|
|
609
607
|
"3008478973302833120": "设备已注册,请打开此链接以将其添加到您的账户:",
|
|
610
608
|
"3064490671150106718": "注册中,请稍后...",
|
|
611
|
-
"1112525418959962254": "取消注册",
|
|
612
609
|
"8442667120253281835": "设备注册中...",
|
|
613
610
|
"1190716408793054975": "注册失败",
|
|
614
611
|
"1376781804832629456": "已注册,等待接受",
|
|
@@ -71,7 +71,6 @@
|
|
|
71
71
|
"8839272680695096289": "如果备份和远程存储不同步,系统将要求您执行修复操作以同步数据库。如果修复失败,您可以删除本地数据库并重新生成。可以使用“错误报告”按钮创建一个移除路径信息的数据库副本。这仅在开发者请求调查您的数据库问题时使用。",
|
|
72
72
|
"117616615872294580": "{$START_TAG_SH_ICON}wrench{$CLOSE_TAG_SH_ICON} 修复",
|
|
73
73
|
"8501684231598192320": "{$START_TAG_SH_ICON}trash{$CLOSE_TAG_SH_ICON} 删除",
|
|
74
|
-
"6475665368083852944": "{$START_TAG_SH_ICON}clock-counter-clockwise{$CLOSE_TAG_SH_ICON} 恢复(删除和修复)",
|
|
75
74
|
"5239100776977833065": "{$START_TAG_SH_ICON}file-plus{$CLOSE_TAG_SH_ICON} 创建错误报告数据库",
|
|
76
75
|
"5869780110608474933": "位置",
|
|
77
76
|
"6540830593149465642": "{$START_TAG_SH_ICON}backspace{$CLOSE_TAG_SH_ICON} 重置",
|
|
@@ -97,7 +96,7 @@
|
|
|
97
96
|
"4489627619329080013": "删除备份",
|
|
98
97
|
"517409415960630599": "搜索目标位置...",
|
|
99
98
|
"3344963119756221792": "选择 {$START_TAG_SH_ICON}arrow-right{$CLOSE_TAG_SH_ICON}",
|
|
100
|
-
"
|
|
99
|
+
"5372819034004399822": "备份保存位置",
|
|
101
100
|
"1976693045677246434": "{$START_TAG_SH_ICON}spinner{$CLOSE_TAG_SH_ICON} 测试链接...",
|
|
102
101
|
"8102509306620431414": "{$START_TAG_SH_ICON}check{$CLOSE_TAG_SH_ICON} 测试链接成功",
|
|
103
102
|
"1633404336323592843": "{$START_TAG_SH_ICON}warning{$CLOSE_TAG_SH_ICON}{$INTERPOLATION}",
|
|
@@ -409,6 +408,7 @@
|
|
|
409
408
|
"6824242843303909516": "8 小时",
|
|
410
409
|
"6833802623236445427": "24 小时",
|
|
411
410
|
"585737897051631942": "直到手动恢复",
|
|
411
|
+
"1112525418959962254": "取消注册",
|
|
412
412
|
"8863666082945976589": "暂无调度任务",
|
|
413
413
|
"5251829225351663738": "加载中 {$START_TAG_SH_SPINNER}{$CLOSE_TAG_SH_SPINNER}",
|
|
414
414
|
"8088579011532771101": "{$START_TAG_SH_ICON}skull{$CLOSE_TAG_SH_ICON} 中止",
|
|
@@ -508,7 +508,6 @@
|
|
|
508
508
|
"8856905278208146821": "{$ICU}",
|
|
509
509
|
"4301968594246501194": "{VAR_PLURAL, plural, =0 {No version yet} =1 {1 Version} other {{{INTERPOLATION}} Versions}}",
|
|
510
510
|
"1124571293447475738": "外部管理",
|
|
511
|
-
"3839108367953461894": "未找到备份",
|
|
512
511
|
"2737753982083076672": "备份 {$START_TAG_NG_CONTAINER}{$CLOSE_TAG_NG_CONTAINER}",
|
|
513
512
|
"8239510835983979014": "类型 {$START_TAG_NG_CONTAINER}{$CLOSE_TAG_NG_CONTAINER}",
|
|
514
513
|
"4031685509248518357": "上一次备份 {$START_TAG_NG_CONTAINER}{$CLOSE_TAG_NG_CONTAINER}",
|
|
@@ -571,7 +570,6 @@
|
|
|
571
570
|
"1664469528585743409": "恢复文件元数据 {$TAG_INPUT}",
|
|
572
571
|
"604878542023261717": "恢复原始的读/写权限 {$TAG_INPUT}",
|
|
573
572
|
"1253156499530942296": "该备份创建于其他操作系统上。恢复时不指定目标文件夹可能会使文件恢复到未知的位置。您确定不指定目标文件夹继续吗?",
|
|
574
|
-
"5802723289508144474": "备份目标位置 {$START_TAG_DIV}{$START_BLOCK_IF}{$START_TAG_BUTTON} 测试目标位置 {$CLOSE_TAG_BUTTON}{$CLOSE_BLOCK_IF}{$START_TAG_SH_MENU}{$START_TAG_BUTTON_1}{$START_TAG_SH_ICON}dots-three-vertical{$CLOSE_TAG_SH_ICON}{$CLOSE_TAG_BUTTON}{$START_TAG_NG_CONTAINER}{$START_TAG_BUTTON_2}{$START_TAG_SH_ICON}link{$CLOSE_TAG_SH_ICON} 编辑目标URL {$CLOSE_TAG_BUTTON}{$START_BLOCK_IF}{$START_TAG_BUTTON_3}{$START_TAG_SH_ICON}copy{$CLOSE_TAG_SH_ICON} 拷贝URL到剪贴板 {$CLOSE_TAG_BUTTON}{$CLOSE_BLOCK_IF}{$CLOSE_TAG_NG_CONTAINER}{$CLOSE_TAG_SH_MENU}{$CLOSE_TAG_DIV}",
|
|
575
573
|
"297083673179540834": "当前目标位置类型 {$START_TAG_STRONG}{$INTERPOLATION}.{$CLOSE_TAG_STRONG}{$LINE_BREAK} 是否想选择另一个? {$START_TAG_SPAN}点击这里{$CLOSE_TAG_SPAN}",
|
|
576
574
|
"4776685509889010215": "所有目标位置",
|
|
577
575
|
"8375589255950676550": "远程目标不包含任何备份。请检查目标详情是否正确。",
|
|
@@ -608,7 +606,6 @@
|
|
|
608
606
|
"6231927997656324898": "{$START_TAG_SH_ICON}floppy-disk{$CLOSE_TAG_SH_ICON} 保持设置",
|
|
609
607
|
"3008478973302833120": "设备已注册,请打开此链接以将其添加到您的账户:",
|
|
610
608
|
"3064490671150106718": "注册中,请稍后...",
|
|
611
|
-
"1112525418959962254": "取消注册",
|
|
612
609
|
"8442667120253281835": "设备注册中...",
|
|
613
610
|
"1190716408793054975": "注册失败",
|
|
614
611
|
"1376781804832629456": "已注册,等待接受",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as Re,c as Te}from"./chunk-ILGMXHEE.js";import{a as be}from"./chunk-JGXPFEYZ.js";import{a as Se}from"./chunk-WPIVIZS6.js";import{a as k}from"./chunk-X7XIFHAV.js";import{a as Ce}from"./chunk-ZZBUNZZO.js";import{b as ve}from"./chunk-HW7A5ZWV.js";import"./chunk-ULR2EPP5.js";import"./chunk-VXJJGZ5F.js";import{a as P}from"./chunk-6Q6SSTBK.js";import{a as ge}from"./chunk-AUMCM45B.js";import"./chunk-QLUEDPL4.js";import{a as L}from"./chunk-ZQ56M63S.js";import"./chunk-E4KSSC6K.js";import{a as h,b as v,c as ye,d as I}from"./chunk-4IAJY6E3.js";import{c as fe}from"./chunk-P7OKMMNZ.js";import{v as ue,x as he}from"./chunk-HJSCQF6V.js";import{c as ae,d as pe,g as ce,h as le,i as me,j as de}from"./chunk-G4Z3JAJB.js";import{a as ee}from"./chunk-53V6KV3I.js";import{a as te,b as oe,c as ne,e as re,f as se,g as ie}from"./chunk-XUQ74HFK.js";import{la as Y,qa as Z}from"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import{A as x,B as G,Eb as z,H as w,Lc as q,Mc as X,N as B,P as R,R as J,Rc as Q,V as M,Y as _,_ as r,bb as K,f as W,i as j,ia as $,n as U,o as F,oa as d,r as S}from"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";var E=class e{#o=r(h);#s=r(v);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=K({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(o,n){o&1&&z(0,"router-outlet")},dependencies:[ae],encapsulation:2})};var Me={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var f=new _("ENVIRONMENT");var A=class e{#o=r(fe);isLoaded=d(!1);webmodules=d(null);preload(t=!1){let o=this.#o.getApiV1Webmodules().pipe(J(n=>this.webmodules.set(n)),w(()=>this.isLoaded.set(!0)));if(t)return o;o.subscribe()}static \u0275fac=function(o){return new(o||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=()=>{let e=r(I);return e.token()?!0:e.checkProxyAuthed().pipe(R(t=>t?U(!0):e.refreshToken().pipe(S(()=>!0))))},Pe=()=>{let e=r(v),t=r(k),o=r($),n=e.relayIsEnabled()?"longpoll":"websocket",i=[o.get(L).preload(!0),o.get(L).preloadFilterGroups(!0),o.get(A).preload(!0)];return e.configLoaded===null?x(i).pipe(S(()=>n)):e.configLoaded?.pipe(R(()=>x(i)))},Ve=()=>!0,Ie={path:"connect/:typeParam",loadComponent:()=>import("./chunk-4N7O6OWH.js")},De=()=>{let e=r(h);return!e.getItem("locale")&&navigator.language&&e.setItem("locale",navigator.language),!0},ke=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-NDZU2O2Q.js")},{path:"logout",loadComponent:()=>import("./chunk-Y2LISX47.js")},{path:"",canActivate:[Le],children:[{path:"",canActivate:[Pe,Ve,De],children:[{path:"welcome",loadComponent:()=>import("./chunk-SNVT3M5C.js"),children:[{path:"",redirectTo:"select",pathMatch:"full"},{path:"select",loadComponent:()=>import("./chunk-AY4BUZJQ.js")},Ie]},{path:"",loadComponent:()=>import("./chunk-CO4VU5IU.js"),children:[{path:"",loadComponent:()=>import("./chunk-V7OQKE2Z.js")},Ie,{path:"add-backup",loadComponent:()=>import("./chunk-L7WPKNLR.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-5RCKMVGY.js")},{path:"backup/import",loadComponent:()=>import("./chunk-NXJQU7IR.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-2HQTO4LT.js"),loadChildren:()=>import("./chunk-KKLVMIFL.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-2HQTO4LT.js"),loadChildren:()=>import("./chunk-KKLVMIFL.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-V5B247QH.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-LHOHOKP5.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-GHJ4MU3O.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-ZZBZEHXF.js")},{path:"backup/:id/delete",loadComponent:()=>import("./chunk-CMFSS355.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-BRPGUJ77.js")},{path:"from-config",loadComponent:()=>import("./chunk-M2BAPEJT.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-CMMGGY2S.js"),loadChildren:()=>import("./chunk-ZSEZR472.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-CMMGGY2S.js"),loadChildren:()=>import("./chunk-ZSEZR472.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-CMMGGY2S.js"),loadChildren:()=>import("./chunk-ZSEZR472.js")},{path:"settings",loadComponent:()=>import("./chunk-SFSDLKTN.js")},{path:"about",loadComponent:()=>import("./chunk-3O255C2R.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-YU5AMM6C.js")},{path:"changelog",loadComponent:()=>import("./chunk-X6SJVQXW.js")},{path:"libraries",loadComponent:()=>import("./chunk-O2M7MRKP.js")},{path:"system-info",loadComponent:()=>import("./chunk-3VHQLGKM.js")},{path:"server-settings",loadComponent:()=>import("./chunk-GGNFAVSC.js")},{path:"logs",loadChildren:()=>import("./chunk-25QJ7OWU.js")},{path:"crashlogs",loadComponent:()=>import("./chunk-HEST3B3S.js")}]}]}]}]}]}];var V=null,Ee=(e,t)=>{let o=r(I),n=r(pe),i=r(h),l=r(f),s=i.getItem("locale"),u=r(he),p=Re(s),a=e.url==="/api/v1/auth/login",m=e.url==="/api/v1/auth/refresh",C=e.url==="/api/v1/progressstate",y=e.url==="/api/v1/remoteoperation/test",b=e.url==="/api/v1/filesystem/validate",T=e.url.startsWith("/api/v2/"),O=o.token(),D=e,H=e.headers.has("custom-proxy-check")||O===ye;if(O&&e.url.startsWith(l.baseUrl)&&!H){let c=e.headers.set("Authorization",`Bearer ${O}`);s&&s!=="en-US"&&(c=c.set("X-Ui-Language",p)),D=e.clone({headers:c})}return t(D).pipe(S(c=>{if(c.type===4&&c.status===200&&T){let g=c.body;if(g?.Success===!1)throw{status:200,message:g?.Error??"Unknown error",error:{Error:g?.Error??"Unknown error"},requestBody:g}}return c}),G(c=>{let g=c.error?.Error||`Error Code: ${c.status}, Message: ${c.message}`;return!H&&(C&&c.status===404||y||b||u.error(g),m&&c.status===401&&(o.logout(),n.navigate(["/logout"])),!a&&!m&&c.status===401)?(V??=o.refreshToken().pipe(B()),V.pipe(R(()=>t(e.clone({headers:e.headers.set("Authorization",`Bearer ${o.token()}`)}))),w(()=>V=null))):F(()=>({error:c,message:g}))}))};var He="1.0.0",Ae=`portal-proxy-client-${P()}`,We=1,N=class e{#o=1e3;#s=r(f);#t=d("disconnected");#l=d(this.#o);#i=d(!1);#n=d(!1);#a=d(null);isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#t.asReadonly();#p=[];#r={};#e=null;#m=new TextDecoder("utf-8");#c=null;#d=Q(()=>{let t=this.#i(),o=this.#l(),n=this.#a();if(!n||!t||!o||o<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(n)},o)});utf8Atob(t){let o=Uint8Array.from(atob(t),i=>i.charCodeAt(0)),n=this.#m.decode(o);return n?JSON.parse(n):null}connectToMachineServer(t,o){let n=o?.reconnect??!1,i=this.wsState();(i==="disconnected"||i==="error"||n)&&(this.#e?.close(),this.#e=null),!this.#e&&(this.#e=new WebSocket(this.#s.machineServerUrl),this.#t.set("connecting"),this.#e.onopen=()=>{this.#t.set("connect"),this.#n.set(!0),this.#i.set(!1),this.#a.set(null)},this.#e.onclose=()=>{this.#t.set("disconnected"),this.#n.set(!1),this.#a.set(t),this.#i.set(!0)},this.#e.onerror=()=>{this.#t.set("error")},this.#e.onmessage=l=>{let s=JSON.parse(l.data);if(this.wsState()==="connect"){if(s.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${s.type}'`);return}let p={token:t,publicKey:"",clientVersion:He,protocolVersion:We},a=this.createResponse(s,"authportal",p);this.#t.set("welcome"),this.#e?.send(a)}else if(this.wsState()==="welcome"){if(s.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${s.type}'`);return}var u=JSON.parse(s.payload??"");if(u.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#t.set("authenticated"),this.#n.set(!0);this.#p.length>0;){let p=this.#p.pop();p&&this.#r[p.messageId]&&this.activateCommand(p)}}else if(this.wsState()==="authenticated"){if(s.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${s.type}'`);return}let p=this.#r[s.messageId];if(p){if(s.errorMessage){p.reject(s.errorMessage);return}else{let a=JSON.parse(s.payload??"");a.body=a?.body==null?null:this.utf8Atob(a.body),p.resolve(a)}delete this.#r[s.messageId],window.clearTimeout(p.timer)}}})}disconnectFromMachineServer(t=null){t&&console.error(t),this.#e?.close(),this.#e=null,this.#t.set("disconnected"),this.#n.set(!1)}createResponse(t,o,n){let i={from:Ae,to:t.from,type:o,messageId:t.messageId,payload:JSON.stringify(n)};return JSON.stringify(i)}sendCommand(t,o,n,i,l,s,u=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(t),new Promise((p,a)=>{let m=P(),y={from:Ae,to:o,type:"command",messageId:m,payload:JSON.stringify({method:n,path:i,body:l,headers:s})},b={resolve:p,reject:a,timer:window.setTimeout(()=>{let T=this.#r[m];T&&(delete this.#r[m],T.reject("Timeout"))},u)};this.#r[m]=b,this.#n()?this.activateCommand(y):this.#p.push(y)})}activateCommand(t){this.#e?.send(JSON.stringify(t))}static \u0275fac=function(o){return new(o||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};function je(e){if(typeof e!="string")return null;let o=new TextEncoder().encode(e);return window.btoa(String.fromCharCode(...o))}function Ne(e,t,o){let n=e.relayconfigState.config();if(n===null)return o(t);let i=je(t.body),l={};t.headers.keys().forEach(a=>{l[a]=t.headers.get(a)??""});let s=t.headers.get("timeout"),u=s!==null?parseInt(s):e.defaultTimeout;t.url.startsWith("/api/v1/serverstate")&&t.url.includes("longpoll=true")&&(u=1e3*99);let p=e.relayWebsocket.sendCommand(n.accessToken,n.clientId,t.method,t.url,i,l,u);return new W(a=>{p.then(m=>{let C=new te;l!=null&&Object.keys(l).forEach(b=>{C.set(b,l[b])});let y=new oe({body:m.body,status:m.code,statusText:"OK",headers:C});a.next(y),a.complete()}).catch(m=>{a.error(new ne({error:m??"Unknown error",status:0,statusText:m??"Unknown error"}))})})}var Oe=(e,t)=>{let o={relayconfigState:r(v),defaultTimeout:r(f).defaultTimeout,relayWebsocket:r(N)},n=o.relayconfigState.config();if(o.relayconfigState.configLoaded!==null&&n===null){let i=new j;return o.relayconfigState.configLoaded.subscribe(l=>{l&&Ne(o,e,t).subscribe(i)}),i}return Ne(o,e,t)};var xe={providers:[q(),le(ke,de(),me(ce)),re(ie(),se([Oe,Ee])),h,{provide:f,useValue:Me},{provide:X,useValue:Te()},{provide:ue,useValue:{alertVariant:"simple"}},be,k,ve,Z,ge,Y,Ce,Se]};ee(E,xe);
|
|
1
|
+
import{b as Re,c as Te}from"./chunk-NOHHRZSK.js";import{a as be}from"./chunk-66KMXCBD.js";import{a as Se}from"./chunk-PDBKO5D5.js";import{a as k}from"./chunk-DU5QSRYH.js";import{a as Ce}from"./chunk-D2DI6ZER.js";import{b as ve}from"./chunk-M77IE672.js";import"./chunk-I5AKUAZF.js";import"./chunk-PJAWWLYW.js";import{a as P}from"./chunk-6Q6SSTBK.js";import{a as ge}from"./chunk-RECKKS2S.js";import"./chunk-F2QQDU4N.js";import{a as L}from"./chunk-XE5OMGTJ.js";import"./chunk-T6C2OUI5.js";import{a as h,b as v,c as ye,d as I}from"./chunk-TJ3WIU6Q.js";import{c as fe}from"./chunk-KBGIIJMM.js";import{v as ue,x as he}from"./chunk-LFRGO2IP.js";import{c as ae,d as pe,g as ce,h as le,i as me,j as de}from"./chunk-LEZL7BSL.js";import{a as ee}from"./chunk-4MEL5WTX.js";import{a as te,b as oe,c as ne,e as re,f as se,g as ie}from"./chunk-5K64UNNB.js";import{la as Y,qa as Z}from"./chunk-6DB3NZXR.js";import"./chunk-FPPZ4BUR.js";import{A as x,B as G,Fb as z,H as w,Mc as q,N as B,Nc as X,P as R,R as J,Sc as Q,V as M,Y as _,_ as r,bb as K,f as W,i as j,ia as $,n as U,o as F,oa as d,r as S}from"./chunk-FAM42SZT.js";import"./chunk-EUDKD2JW.js";var E=class e{#o=r(h);#s=r(v);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=K({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(o,n){o&1&&z(0,"router-outlet")},dependencies:[ae],encapsulation:2})};var Me={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var f=new _("ENVIRONMENT");var A=class e{#o=r(fe);isLoaded=d(!1);webmodules=d(null);preload(t=!1){let o=this.#o.getApiV1Webmodules().pipe(J(n=>this.webmodules.set(n)),w(()=>this.isLoaded.set(!0)));if(t)return o;o.subscribe()}static \u0275fac=function(o){return new(o||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=()=>{let e=r(I);return e.token()?!0:e.checkProxyAuthed().pipe(R(t=>t?U(!0):e.refreshToken().pipe(S(()=>!0))))},Pe=()=>{let e=r(v),t=r(k),o=r($),n=e.relayIsEnabled()?"longpoll":"websocket",i=[o.get(L).preload(!0),o.get(L).preloadFilterGroups(!0),o.get(A).preload(!0)];return e.configLoaded===null?x(i).pipe(S(()=>n)):e.configLoaded?.pipe(R(()=>x(i)))},Ve=()=>!0,Ie={path:"connect/:typeParam",loadComponent:()=>import("./chunk-A6NUNQKN.js")},De=()=>{let e=r(h);return!e.getItem("locale")&&navigator.language&&e.setItem("locale",navigator.language),!0},ke=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-NHRDYV7W.js")},{path:"logout",loadComponent:()=>import("./chunk-XTYBRFP6.js")},{path:"",canActivate:[Le],children:[{path:"",canActivate:[Pe,Ve,De],children:[{path:"welcome",loadComponent:()=>import("./chunk-XY6KVQXK.js"),children:[{path:"",redirectTo:"select",pathMatch:"full"},{path:"select",loadComponent:()=>import("./chunk-ABJWT6DQ.js")},Ie]},{path:"",loadComponent:()=>import("./chunk-33SCK3HX.js"),children:[{path:"",loadComponent:()=>import("./chunk-GPDTWYQ7.js")},Ie,{path:"add-backup",loadComponent:()=>import("./chunk-66LPJUTC.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-RNNVKT2R.js")},{path:"backup/import",loadComponent:()=>import("./chunk-X5FW56GT.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-3HNIHWA3.js"),loadChildren:()=>import("./chunk-6MMJ6EHL.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-3HNIHWA3.js"),loadChildren:()=>import("./chunk-6MMJ6EHL.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-HMM3KKPY.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-MBGTO6W7.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-PG6KDQFA.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-NJ7S3XQO.js")},{path:"backup/:id/delete",loadComponent:()=>import("./chunk-IZQG3EV6.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-6GUZNCHD.js")},{path:"from-config",loadComponent:()=>import("./chunk-CSY4BFC4.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-B54TEGKW.js"),loadChildren:()=>import("./chunk-G4JKMY4X.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-B54TEGKW.js"),loadChildren:()=>import("./chunk-G4JKMY4X.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-B54TEGKW.js"),loadChildren:()=>import("./chunk-G4JKMY4X.js")},{path:"settings",loadComponent:()=>import("./chunk-MR4EC7E2.js")},{path:"about",loadComponent:()=>import("./chunk-JUWOEL4E.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-MP7JKTLP.js")},{path:"changelog",loadComponent:()=>import("./chunk-FCZXIW2B.js")},{path:"libraries",loadComponent:()=>import("./chunk-S5O366BO.js")},{path:"system-info",loadComponent:()=>import("./chunk-WEFZF25L.js")},{path:"server-settings",loadComponent:()=>import("./chunk-4PMLRVX5.js")},{path:"logs",loadChildren:()=>import("./chunk-TZP7VKPA.js")},{path:"crashlogs",loadComponent:()=>import("./chunk-CCM2D4BF.js")}]}]}]}]}]}];var V=null,Ee=(e,t)=>{let o=r(I),n=r(pe),i=r(h),l=r(f),s=i.getItem("locale"),u=r(he),p=Re(s),a=e.url==="/api/v1/auth/login",m=e.url==="/api/v1/auth/refresh",C=e.url==="/api/v1/progressstate",y=e.url==="/api/v1/remoteoperation/test",b=e.url==="/api/v1/filesystem/validate",T=e.url.startsWith("/api/v2/"),O=o.token(),D=e,H=e.headers.has("custom-proxy-check")||O===ye;if(O&&e.url.startsWith(l.baseUrl)&&!H){let c=e.headers.set("Authorization",`Bearer ${O}`);s&&s!=="en-US"&&(c=c.set("X-Ui-Language",p)),D=e.clone({headers:c})}return t(D).pipe(S(c=>{if(c.type===4&&c.status===200&&T){let g=c.body;if(g?.Success===!1)throw{status:200,message:g?.Error??"Unknown error",error:{Error:g?.Error??"Unknown error"},requestBody:g}}return c}),G(c=>{let g=c.error?.Error||`Error Code: ${c.status}, Message: ${c.message}`;return!H&&(C&&c.status===404||y||b||u.error(g),m&&c.status===401&&(o.logout(),n.navigate(["/logout"])),!a&&!m&&c.status===401)?(V??=o.refreshToken().pipe(B()),V.pipe(R(()=>t(e.clone({headers:e.headers.set("Authorization",`Bearer ${o.token()}`)}))),w(()=>V=null))):F(()=>({error:c,message:g}))}))};var He="1.0.0",Ae=`portal-proxy-client-${P()}`,We=1,N=class e{#o=1e3;#s=r(f);#t=d("disconnected");#l=d(this.#o);#i=d(!1);#n=d(!1);#a=d(null);isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#t.asReadonly();#p=[];#r={};#e=null;#m=new TextDecoder("utf-8");#c=null;#d=Q(()=>{let t=this.#i(),o=this.#l(),n=this.#a();if(!n||!t||!o||o<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(n)},o)});utf8Atob(t){let o=Uint8Array.from(atob(t),i=>i.charCodeAt(0)),n=this.#m.decode(o);return n?JSON.parse(n):null}connectToMachineServer(t,o){let n=o?.reconnect??!1,i=this.wsState();(i==="disconnected"||i==="error"||n)&&(this.#e?.close(),this.#e=null),!this.#e&&(this.#e=new WebSocket(this.#s.machineServerUrl),this.#t.set("connecting"),this.#e.onopen=()=>{this.#t.set("connect"),this.#n.set(!0),this.#i.set(!1),this.#a.set(null)},this.#e.onclose=()=>{this.#t.set("disconnected"),this.#n.set(!1),this.#a.set(t),this.#i.set(!0)},this.#e.onerror=()=>{this.#t.set("error")},this.#e.onmessage=l=>{let s=JSON.parse(l.data);if(this.wsState()==="connect"){if(s.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${s.type}'`);return}let p={token:t,publicKey:"",clientVersion:He,protocolVersion:We},a=this.createResponse(s,"authportal",p);this.#t.set("welcome"),this.#e?.send(a)}else if(this.wsState()==="welcome"){if(s.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${s.type}'`);return}var u=JSON.parse(s.payload??"");if(u.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#t.set("authenticated"),this.#n.set(!0);this.#p.length>0;){let p=this.#p.pop();p&&this.#r[p.messageId]&&this.activateCommand(p)}}else if(this.wsState()==="authenticated"){if(s.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${s.type}'`);return}let p=this.#r[s.messageId];if(p){if(s.errorMessage){p.reject(s.errorMessage);return}else{let a=JSON.parse(s.payload??"");a.body=a?.body==null?null:this.utf8Atob(a.body),p.resolve(a)}delete this.#r[s.messageId],window.clearTimeout(p.timer)}}})}disconnectFromMachineServer(t=null){t&&console.error(t),this.#e?.close(),this.#e=null,this.#t.set("disconnected"),this.#n.set(!1)}createResponse(t,o,n){let i={from:Ae,to:t.from,type:o,messageId:t.messageId,payload:JSON.stringify(n)};return JSON.stringify(i)}sendCommand(t,o,n,i,l,s,u=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(t),new Promise((p,a)=>{let m=P(),y={from:Ae,to:o,type:"command",messageId:m,payload:JSON.stringify({method:n,path:i,body:l,headers:s})},b={resolve:p,reject:a,timer:window.setTimeout(()=>{let T=this.#r[m];T&&(delete this.#r[m],T.reject("Timeout"))},u)};this.#r[m]=b,this.#n()?this.activateCommand(y):this.#p.push(y)})}activateCommand(t){this.#e?.send(JSON.stringify(t))}static \u0275fac=function(o){return new(o||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};function je(e){if(typeof e!="string")return null;let o=new TextEncoder().encode(e);return window.btoa(String.fromCharCode(...o))}function Ne(e,t,o){let n=e.relayconfigState.config();if(n===null)return o(t);let i=je(t.body),l={};t.headers.keys().forEach(a=>{l[a]=t.headers.get(a)??""});let s=t.headers.get("timeout"),u=s!==null?parseInt(s):e.defaultTimeout;t.url.startsWith("/api/v1/serverstate")&&t.url.includes("longpoll=true")&&(u=1e3*99);let p=e.relayWebsocket.sendCommand(n.accessToken,n.clientId,t.method,t.url,i,l,u);return new W(a=>{p.then(m=>{let C=new te;l!=null&&Object.keys(l).forEach(b=>{C.set(b,l[b])});let y=new oe({body:m.body,status:m.code,statusText:"OK",headers:C});a.next(y),a.complete()}).catch(m=>{a.error(new ne({error:m??"Unknown error",status:0,statusText:m??"Unknown error"}))})})}var Oe=(e,t)=>{let o={relayconfigState:r(v),defaultTimeout:r(f).defaultTimeout,relayWebsocket:r(N)},n=o.relayconfigState.config();if(o.relayconfigState.configLoaded!==null&&n===null){let i=new j;return o.relayconfigState.configLoaded.subscribe(l=>{l&&Ne(o,e,t).subscribe(i)}),i}return Ne(o,e,t)};var xe={providers:[q(),le(ke,de(),me(ce)),re(ie(),se([Oe,Ee])),h,{provide:f,useValue:Me},{provide:X,useValue:Te()},{provide:ue,useValue:{alertVariant:"simple"}},be,k,ve,Z,ge,Y,Ce,Se]};ee(E,xe);
|
package/package.json
CHANGED
package/chunk-25QJ7OWU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-EUDKD2JW.js";var o=[{path:"",loadComponent:()=>import("./chunk-53GUCO6P.js"),children:[{path:"",redirectTo:"stored",pathMatch:"full"},{path:"stored",loadComponent:()=>import("./chunk-NA6MTRHY.js")},{path:"live",loadComponent:()=>import("./chunk-NLXY47SY.js")}]}],t=o;export{t as default};
|
package/chunk-4N7O6OWH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as j}from"./chunk-YWZRYOES.js";import{a as H}from"./chunk-QOQI2ALM.js";import{a as q}from"./chunk-NY63VRAY.js";import"./chunk-GRPEAINE.js";import"./chunk-QLUEDPL4.js";import"./chunk-ZQ56M63S.js";import"./chunk-P7OKMMNZ.js";import{B as J,C as X,G as z,K,c as I,e as B,i as U,s as G,u as W,w as V}from"./chunk-HJSCQF6V.js";import{d as A}from"./chunk-G4Z3JAJB.js";import"./chunk-53V6KV3I.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import{Bb as b,Cb as r,Db as l,Eb as T,Ec as k,Lb as f,Qc as O,Ra as a,Rc as $,Sb as S,Tb as N,Ub as p,Wc as v,Xb as D,Yb as h,_ as E,_b as s,bb as M,da as m,ea as F,lc as y,mc as g,oa as P,rc as x,sc as L,tc as w,wb as c,xb as _}from"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";var Q=(t,n,e,i,o)=>({"loading-state":t,"ready-to-add-link":n,"is-connected":e,"failed-to-connect":i,"is-registered":o});function Y(t,n){t&1&&p(0,0,1)}function Z(t,n){t&1&&p(0,0,2)}function ee(t,n){if(t&1){let e=f();r(0,"button",10),h("click",function(){m(e);let o=s(2);return F(o.cancel())}),g(1,"Cancel registration"),l()}}function te(t,n){if(t&1&&(r(0,"div",7)(1,"p"),S(2,0),c(3,Y,1,0)(4,Z,1,0),N(),l(),T(5,"sh-progress-bar",8),c(6,ee,2,0,"button",9),l()),t&2){let e=s();a(3),_(e.state()==="unknown"?3:4),a(3),_((e.registeringCounter()??0)>=5&&e.state()==="registering"?6:-1)}}function ne(t,n){if(t&1){let e=f();r(0,"sh-form-field")(1,"label",11),p(2,1),l(),r(3,"input",12),w("ngModelChange",function(o){m(e);let d=s();return L(d.customRegisterUrl,o)||(d.customRegisterUrl=o),F(o)}),l()(),r(4,"button",13),h("click",function(){m(e);let o=s();return F(o.registerViaCustomUrl())}),p(5,2),l()}if(t&2){let e=s();a(3),x("ngModel",e.customRegisterUrl),a(),b("disabled",!e.customRegisterUrlValid())}}function ie(t,n){if(t&1){let e=f();r(0,"p"),p(1,3),l(),T(2,"sh-progress-bar",8),r(3,"button",10),h("click",function(){m(e);let o=s(2);return F(o.retryWhenFaulted())}),g(4,"Cancel"),l()}}function oe(t,n){if(t&1){let e=f();r(0,"p"),p(1,4),l(),r(2,"button",10),h("click",function(){m(e);let o=s(2);return F(o.retryWhenFaulted())}),g(3,"Retry"),l()}}function re(t,n){if(t&1&&c(0,ie,5,0)(1,oe,4,0),t&2){let e=s();_(e.claimUrl()!==null?0:1)}}function le(t,n){t&1&&(S(0,5,1),T(1,"p"),N())}function ae(t,n){t&1&&(S(0,5,2),T(1,"p"),N())}function se(t,n){if(t&1){let e=f();r(0,"sh-alert",14),S(1,5),c(2,le,2,0,"p")(3,ae,2,0,"p"),N(),l(),r(4,"button",10),h("click",function(){m(e);let o=s();return F(o.retryWhenFaulted())}),g(5," Retry "),r(6,"sh-icon"),g(7,"arrow-arc-left"),l()()}if(t&2){let e=s();a(2),_(e.typeParam()==="link"?2:3)}}function ce(t,n){t&1&&(r(0,"h3"),g(1,"Successfully connected"),l(),r(2,"p"),g(3,"We're going to redirect you to the home page"),l())}var R=class t{#t=E(A);#n=E(j);#e=E(H);#i=E(q);isOldOpen=P(!1);typeParam=v.required();state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;customRegisterUrl=this.#e.customRegisterUrl;additionalReportingUrl=O(()=>{let n=this.#i.serverSettings();return this.#e.state()==="inactive"?"":n&&n["additional-report-url"]||""});copiedReportingUrl=P(!1);customRegisterUrlValid=O(()=>{let n=this.customRegisterUrl(),e=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/;return!(n.length===0||!e.test(n))});registeringCounter=P(null);didTry=!1;triedFinishConnection=!1;stateEffect=$(()=>{let n=this.#e.registerUrl(),e=this.state(),i=this.typeParam(),o=this.registeringCounter();e==="inactive"&&i==="logon"&&n!==""&&(this.didTry||(this.#e.beginRemoteRegistration(),this.didTry=!0)),e==="registered"&&this.claimUrl()!==null&&(this.triedFinishConnection||(this.triedFinishConnection=!0,this.#o())),e==="registering"?(o===null&&this.registeringCounter.set(0),setTimeout(()=>{this.registeringCounter.set((o??0)+1)},1e3)):this.registeringCounter.set(null),(e==="connected"||e==="disabled"||e==="connecting")&&this.#t.navigate([""])});ngOnInit(){this.#e.refreshRemoteControlStatus()}#o(){let n=this.#e.claimUrl();this.#n.open(`${n}?closeAfterConnection=true`,"_blank")}registerViaCustomUrl(){this.#e.beginRemoteRegistration(!0)}retryWhenFaulted(){this.#e.cancelRemoteRegistration(),this.customRegisterUrl.set(""),this.didTry=!1,this.triedFinishConnection=!1,this.typeParam()==="logon"&&this.#t.navigate(["/welcome/select"])}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}copyReportingUrl(){let n=this.additionalReportingUrl();n&&(this.copiedReportingUrl.set(!0),setTimeout(()=>this.copiedReportingUrl.set(!1),2e3),navigator.clipboard.writeText(n))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["app-connect"]],inputs:{typeParam:[1,"typeParam"]},decls:6,vars:13,consts:()=>{let n;n=$localize`${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF: Loading... ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_ELSE: Connecting to console ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_ELSE:`;let e;e=$localize`Paste registration URL here`;let i;i=$localize` Connect machine to console `;let o;o=$localize`We're now connecting you to the console`;let d;d=$localize`Something failed during registration we're missing claimUrl, please try again`;let u;return u=$localize` Failed to register ${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_PARAGRAPH: Check if the connection link are correct, alternatively it could be your internet connection or the service might be down ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_PARAGRAPH:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_PARAGRAPH: There might be a problem with your internet connection or the service might be down, please try again later ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_PARAGRAPH:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,u=D(u),[n,e,i,o,d,u,[1,"main-card","type-b"],[1,"loader-content"],[1,"primary","indeterminate"],["shButton",""],["shButton","",3,"click"],["for","remoteControlRegisterUrl"],["type","text","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","shButton","",1,"raised",3,"click","disabled"],[1,"error"]]},template:function(e,i){if(e&1&&(r(0,"sh-card",6),c(1,te,7,2,"div",7),c(2,ne,6,2),c(3,re,2,1),c(4,se,8,1),c(5,ce,4,0),l()),e&2){let o=i.state()==="unknown"||i.typeParam()!=="link"&&i.state()==="inactive"||i.state()==="registering",d=i.typeParam()==="link"&&i.state()==="inactive",u=i.state()==="connected"||i.state()==="disabled"||i.state()==="connecting",C=i.state()==="registeringfaulted";y(k(7,Q,o,d,u,C,i.state()==="registered")),a(),_(o?1:-1),a(),_(d?2:-1),a(),_(i.state()==="registered"?3:-1),a(),_(C?4:-1),a(),_(u?5:-1)}},dependencies:[G,I,B,U,z,J,K,X,V,W],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:100%;width:100%;flex:1 0;overflow:hidden;padding:2rem}@media only screen and (max-width: 768px){[_nghost-%COMP%]{padding:1rem}}.main-card[_ngcontent-%COMP%]{width:100%;height:100%;max-width:31.25rem;max-height:min-content;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1rem;padding:2rem}.main-card.failed-to-connect[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}.main-card.failed-to-connect[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.main-card.is-registered[_ngcontent-%COMP%], .main-card.is-connected[_ngcontent-%COMP%]{align-items:center}.loader-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;width:100%}.loader-content[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{--pb-b: var(--base-3);border:1px solid var(--pb-b)}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.reporting-url[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;margin-top:.25rem}.state[_ngcontent-%COMP%]{position:fixed;top:1rem;right:1rem;margin:0;color:var(--base-7);font-size:.75rem}.old[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;gap:.5rem;padding:1rem;border:1px solid var(--base-4);background:var(--base-1);position:fixed;top:0;right:0;bottom:0;width:35rem;transform:translate(100%)}.old.open[_ngcontent-%COMP%]{transform:translate(0)}.old[_ngcontent-%COMP%] .toggle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:.5rem;cursor:pointer;position:absolute;background-color:var(--base-1);border:1px solid var(--base-4);border-width:.0625rem 0 .0625rem .0625rem;width:2rem;height:2.5rem;border-radius:var(--shape-2) 0 0 var(--shape-2);top:3.75rem;left:-2rem;-webkit-user-select:none;user-select:none}.old[_ngcontent-%COMP%] .toggle[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1rem}"],changeDetection:0})};export{R as default};
|
package/chunk-A4HSV37F.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-WPIVIZS6.js";import"./chunk-HW7A5ZWV.js";import"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";export{a as DurationFormatPipe};
|
package/chunk-BRPGUJ77.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as K}from"./chunk-EEXKY2IJ.js";import"./chunk-X7XIFHAV.js";import"./chunk-ZZBUNZZO.js";import"./chunk-HW7A5ZWV.js";import{a as V}from"./chunk-ULR2EPP5.js";import"./chunk-VXJJGZ5F.js";import"./chunk-6Q6SSTBK.js";import"./chunk-AUMCM45B.js";import"./chunk-QOQI2ALM.js";import"./chunk-QLUEDPL4.js";import"./chunk-ZQ56M63S.js";import"./chunk-E4KSSC6K.js";import"./chunk-4IAJY6E3.js";import{b as q}from"./chunk-P7OKMMNZ.js";import{B as N,C as m,F as j,K as W,u as O}from"./chunk-HJSCQF6V.js";import{e as g}from"./chunk-G4Z3JAJB.js";import"./chunk-53V6KV3I.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import{Ab as v,Ac as p,Bb as c,Bc as H,Cb as n,Db as i,Eb as r,Ib as B,Jb as J,Ra as s,Sb as l,Tb as S,Ub as a,Vb as X,Wb as z,_ as T,_b as u,bb as G,hb as D,mc as C,pc as w,rb as k,sb as y,wb as R,xb as d,yb as b,zb as x}from"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";var Q=()=>[m,N,O,g],U=()=>["/restore-from-files"],Y=()=>["/restore/from-config"],Z=e=>["/restore",e];function ee(e,o){if(e&1&&(n(0,"sh-card",11),r(1,"img",16),n(2,"div",13)(3,"h3"),a(4,7),i(),n(5,"p"),C(6),i()(),n(7,"button",14),l(8,8),r(9,"sh-icon"),S(),i()()),e&2){let t=o.$implicit;c("routerLink",H(4,Z,t.Backup.ID)),s(4),X(t.Backup.Name??"Backup name missing"),z(4),s(2),w(" ",(t.Backup.Metadata==null?null:t.Backup.Metadata.SourceSizeString)??"-"," / ",(t.Backup.Metadata==null?null:t.Backup.Metadata.BackupListCount)??"-"," ")}}function te(e,o){if(e&1&&x(0,ee,10,6,"sh-card",11,b),e&2){let t=u(2);v(t.backups())}}function ne(e,o){e&1&&(B(0),a(1,9),J())}function oe(e,o){if(e&1&&R(0,te,2,0)(1,ne,2,0,"ng-container"),e&2){let t=u();d(t.backups().length?0:1)}}function ie(e,o){e&1&&(n(0,"div",17),r(1,"sh-progress-bar",18),n(2,"div",13)(3,"h3"),a(4,10),i()()())}function _e(e,o){e&1&&(n(0,"sh-divider"),C(1,"Or without a local configuration"),i())}var P=class e{#e=T(V);#t=T(q);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups(!0)}restoreNow(o){this.#t.postApiV1BackupByIdRestore({id:o.Backup?.ID,requestBody:{}})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=G({type:e,selectors:[["app-restore"]],decls:29,vars:6,consts:()=>{let o;o=$localize`Where do you want to restore from?`;let t;t=$localize`Direct restore from backup files`;let E;E=$localize`Point to your backup files and restore from there.`;let f;f=$localize` Start ${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON:`;let M;M=$localize`Restore from configuration`;let F;F=$localize`Load destination from an exported job`;let I;I=$localize` Start ${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON:`;let h;h=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let $;$=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON:`;let L;L=$localize`No backups founds`;let A;return A=$localize`Loading backups...`,[o,t,E,f,M,F,I,h,$,L,A,[1,"type-a","actionable",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["shButton",""],["src","assets/images/restore.png","alt","","width","48px"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(t,E){t&1&&(r(0,"app-status-bar"),n(1,"section")(2,"h2"),a(3,0),i(),D(4,oe,2,1)(5,ie,5,0),k(6,4,Q,null,5),R(8,_e,2,0,"sh-divider"),n(9,"sh-card",11),r(10,"img",12),n(11,"div",13)(12,"h3"),a(13,1),i(),n(14,"p"),a(15,2),i()(),n(16,"button",14),l(17,3),r(18,"sh-icon"),S(),i()(),n(19,"sh-card",11),r(20,"img",15),n(21,"div",13)(22,"h3"),a(23,4),i(),n(24,"p"),a(25,5),i()(),n(26,"button",14),l(27,6),r(28,"sh-icon"),S(),i()()()),t&2&&(s(6),y(!E.backupsLoading()),s(2),d(E.backups().length?8:-1),s(),c("routerLink",p(4,U)),s(10),c("routerLink",p(5,Y)))},dependencies:[K,m,N,j,O,W,g],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 1rem;display:flex;flex-direction:column;gap:1rem}sh-divider[_ngcontent-%COMP%]{color:var(--base-8)}sh-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}sh-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:after{transition:inset .1s linear}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}"],changeDetection:0})};export{P as default};
|
package/chunk-DPQEDR6U.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-AUMCM45B.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";export{a as BytesPipe};
|
package/chunk-EEXKY2IJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Me}from"./chunk-X7XIFHAV.js";import{a as ve}from"./chunk-ZZBUNZZO.js";import{a as Ie}from"./chunk-ULR2EPP5.js";import{a as Re}from"./chunk-VXJJGZ5F.js";import{a as he}from"./chunk-QOQI2ALM.js";import{a as De}from"./chunk-ZQ56M63S.js";import{b as ue}from"./chunk-4IAJY6E3.js";import{b as h}from"./chunk-P7OKMMNZ.js";import{B as M,D as me,G as Fe,K as Oe,L as Ne,N as Ae,O as fe,X as Pe,c as Se,e as de,i as pe,k as Ce,s as z,u as J,w as ge,z as Ee}from"./chunk-HJSCQF6V.js";import{e as ce}from"./chunk-G4Z3JAJB.js";import{la as Te}from"./chunk-3ADKRLYD.js";import{Ab as se,Ac as w,Bb as A,Cb as a,Db as _,Eb as S,Fc as K,Gc as _e,H as U,Hc as le,Lb as P,Qc as B,Ra as l,Rc as re,Sb as d,Tb as p,Ub as C,Vc as V,Xb as y,Yb as c,_ as g,_b as E,bb as f,da as m,ea as F,ic as ae,jc as D,mc as R,oa as u,oc as x,pc as Y,rc as b,sc as L,tc as G,wb as O,xb as N,yb as ie,zb as oe}from"./chunk-Y7PHGRGB.js";function $e(o,t){if(o&1){let n=P();a(0,"sh-radio",10),c("click",function(){let i=m(n).$implicit,s=E();return F(s.pauseOption.set(i.value))}),R(1),_()}if(o&2){let n=t.$implicit,e=E();D("active",e.pauseOption()===n.value),l(),x(" ",n.label," ")}}var ke=[{label:$localize`5 minutes`,value:"5m"},{label:$localize`10 minutes`,value:"10m"},{label:$localize`15 minutes`,value:"15m"},{label:$localize`30 minutes`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],X=class o{#e=g(h);pauseOptions=u(ke);closed=V();isSubmitting=u(!1);pauseTransfers=u(!1);pauseOption=u(void 0);submit(){this.isSubmitting.set(!0);let t=this.pauseTransfers()||null,n=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:n,pauseTransfers:t}).pipe(U(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit()}})}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=f({type:o,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:4,consts:()=>{let t;t=$localize`Pause settings`;let n;n=$localize` Also pause transfers `;let e;e=$localize`If you pause transfers they could time out and cause retries or failures.`;let i;i=$localize`Cancel`;let s;return s=$localize` Update settings `,[t,n,e,i,s,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"active"],[1,"check-wrap"],[1,"primary","raised",3,"click"],["type","warning"],["footer",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"click"]]},template:function(n,e){n&1&&(a(0,"header",5)(1,"h3"),C(2,0),_()(),a(3,"div",6)(4,"div",7),oe(5,$e,2,3,"sh-radio",8,ie),_(),a(7,"div",9)(8,"sh-checkbox",10),c("click",function(){return e.pauseTransfers.set(!e.pauseTransfers())}),C(9,1),_(),a(10,"sh-alert",11),C(11,2),_()()(),a(12,"footer",12)(13,"button",13),c("click",function(){return e.closed.emit()}),C(14,3),_(),a(15,"button",14),c("click",function(){return e.submit()}),C(16,4),_()()),n&2&&(l(5),se(e.pauseOptions()),l(3),D("active",e.pauseTransfers()),l(7),D("loader",e.isSubmitting()))},dependencies:[z,Ne,me,ge,M],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"],changeDetection:0})};var ye=()=>["/connect/logon"],Ue=()=>["/settings"];function xe(o,t){o&1&&(d(0,0,1),S(1,"div",9),p())}function we(o,t){o&1&&(d(0,0,2),S(1,"div",10),p())}function Ve(o,t){if(o&1){let n=P();a(0,"div",8),c("click",function(){m(n);let i=E();return F(i.resetAndRetry())}),d(1,0),O(2,xe,2,0)(3,we,2,0),p(),_()}if(o&2){let n=E();l(2),N(n.resetting()?2:3)}}function ze(o,t){o&1&&(a(0,"div",6),d(1,1),S(2,"div",11),p(),_()),o&2&&A("routerLink",w(1,ye))}function Je(o,t){o&1&&(a(0,"div",6),d(1,2),S(2,"div",10),p(),_()),o&2&&A("routerLink",w(1,ye))}function Xe(o,t){if(o&1){let n=P();a(0,"div",7),d(1,3),a(2,"sh-icon",12),c("click",function(){m(n);let i=E();return F(i.cancel())}),_(),a(3,"div",13),c("click",function(){m(n);let i=E();return F(i.claim())}),_(),S(4,"div",14),p(),_()}}function He(o,t){o&1&&(a(0,"div",6),d(1,4),S(2,"div",15),p(),_()),o&2&&A("routerLink",w(1,Ue))}var $=class o{#e=g(he);state=this.#e.state;resetting=u(!1);stateEffect=re(()=>{let t=this.#e.state(),n=this.resetting();t==="registered"&&n&&(this.resetting.set(!1),this.#e.beginRemoteRegistration())});ngOnInit(){this.#e.refreshRemoteControlStatus()}claim(){let t=this.#e.claimUrl();t&&window.open(t,"_blank")}cancel(){this.#e.cancelRemoteRegistration()}resetAndRetry(){this.resetting.set(!0),this.#e.cancelRemoteRegistration()}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=f({type:o,selectors:[["app-remote-connectivity-status"]],decls:5,vars:1,consts:()=>{let t;t=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF: Resetting ${"\uFFFD#1:1\uFFFD"}:START_TAG_DIV:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE: Click to register ${"\uFFFD#1:2\uFFFD"}:START_TAG_DIV_1:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=y(t);let n;n=$localize` Registering ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`;let e;e=$localize` Click to register ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`;let i;i=$localize`Cancel registration`;let s;s=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD#3\uFFFD"}:START_TAG_DIV:Click to claim${"[\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_DIV_1:${"[\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_DIV:`,s=y(s);let r;return r=$localize` Connected ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`,[t,n,e,s,r,[1,"connectivity-status"],[1,"connectivity-status",3,"routerLink"],[1,"connectivity-status","claim"],[1,"connectivity-status",3,"click"],[1,"status","blinking"],[1,"status"],[1,"status","warning","blinking"],["shTooltip",i,3,"click"],[1,"claim",3,"click"],[1,"status","success","blinking"],[1,"status","success"]]},template:function(n,e){if(n&1&&O(0,Ve,4,1,"div",5)(1,ze,3,2,"div",6)(2,Je,3,2,"div",6)(3,Xe,5,0,"div",7)(4,He,3,2,"div",6),n&2){let i=e.state()==="unknown"||e.state()==="inactive"||e.state()==="registeringfaulted",s=e.state()==="registeringfaulted",r=e.state()==="registering",T=e.state()==="registered",I=e.state()==="connected"||e.state()==="disabled"||e.state()==="connecting";N(s?0:r?1:i?2:T?3:I?4:-1)}},dependencies:[ce,J,Pe],styles:["[_nghost-%COMP%]{display:flex;align-items:center;padding:0 .75rem}.connectivity-status[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;cursor:pointer}.connectivity-status[_ngcontent-%COMP%]:hover{color:var(--primary-8)}.connectivity-status.claim[_ngcontent-%COMP%]{display:flex;gap:.5rem;cursor:pointer}.connectivity-status.claim[_ngcontent-%COMP%]:hover{color:inherit}.connectivity-status.claim[_ngcontent-%COMP%] .claim[_ngcontent-%COMP%]:hover{color:var(--primary-8)}.connectivity-status.claim[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]:hover{color:var(--error-8)}.status[_ngcontent-%COMP%]{width:.625rem;height:.625rem;border-radius:50%;background-color:var(--base-4)}.status.success[_ngcontent-%COMP%]{background-color:var(--success-8)}.status.warning[_ngcontent-%COMP%]{background-color:var(--warn-8)}.status.blinking[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blinking 1s infinite}@keyframes _ngcontent-%COMP%_blinking{0%{opacity:.2}50%{opacity:1}to{opacity:.2}}"],changeDetection:0})};var be={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},Ye=["mbps","gbps"],Le=8,Q=1024,H=Q*1024,ee=H*1024,te=ee*1024,Ge=te*1024,Ke={B:1,KB:Q,MB:H,GB:ee,TB:te,PB:Ge},We=1e3,q=We*1e3,Z=q*1e3,je=[{threshold:Ge,unitPrefix:"PByte"},{threshold:te,unitPrefix:"TByte"},{threshold:ee,unitPrefix:"GByte"},{threshold:H,unitPrefix:"MByte"},{threshold:Q,unitPrefix:"KByte"},{threshold:1,unitPrefix:"Byte"}],k=class o{#e=g(h);closed=V();isSubmitting=u(!1);sizeOptions=u([...Ye]);maxUpload=u(0);maxDownload=u(0);maxUploadUnit=u("mbps");maxDownloadUnit=u("mbps");ngOnInit(){this.init()}convertToBitsPerSecondUnits(t,n){let i=t*(Ke[n.toUpperCase()]||H)*Le;return i===0?{value:0,unit:"mbps"}:i>=Z?{value:parseFloat((i/Z).toFixed(2)),unit:"gbps"}:{value:parseFloat((i/q).toFixed(2)),unit:"mbps"}}convertFromBitsPerSecondUnits(t,n){let e=0;switch(n){case"gbps":e=t*Z;break;case"mbps":e=t*q;break}let i=e/Le;if(i===0)return{valueForApi:0,unitPrefixForApi:"Byte"};for(let{threshold:s,unitPrefix:r}of je)if(i>=s)return{valueForApi:Math.round(i/s),unitPrefixForApi:r};return{valueForApi:Math.round(i),unitPrefixForApi:"Byte"}}init(){this.#e.getApiV1Serversettings().subscribe({next:t=>{let n=t?.["max-upload-speed"],e=t?.["max-download-speed"];if(n&&n!==""){let i=n.match(/^(\d+(?:\.\d+)?)([A-Za-z]+)$/);if(i){let s=parseFloat(i[1]),r=i[2],T=this.convertToBitsPerSecondUnits(s,r);this.maxUpload.set(T.value),this.maxUploadUnit.set(T.unit)}else console.warn("Unexpected max-upload-speed format from API:",n),this.resetUpload()}else this.resetUpload();if(e&&e!==""){let i=e.match(/^(\d+(?:\.\d+)?)([A-Za-z]+)$/);if(i){let s=parseFloat(i[1]),r=i[2],T=this.convertToBitsPerSecondUnits(s,r);this.maxDownload.set(T.value),this.maxDownloadUnit.set(T.unit)}else console.warn("Unexpected max-download-speed format from API:",e),this.resetDownload()}else this.resetDownload()},error:t=>{console.error("Failed to get server settings:",t),this.resetDownload(),this.resetUpload()}})}resetDownload(){this.maxDownload.set(0),this.maxDownloadUnit.set("mbps")}resetUpload(){this.maxUpload.set(0),this.maxUploadUnit.set("mbps")}blockDecimalKeys(t){if([".",","].includes(t.key))return t.preventDefault()}cleanupInputAfterPasting(t){t.preventDefault();let n=t.clipboardData?.getData("text/plain");if(!n)return;let e=n.replaceAll(/[\.,]/g,"");t.target.value=e}submit(){this.isSubmitting.set(!0);let t="",n="",e=this.maxUpload()??0,i=this.maxUploadUnit(),s=this.maxDownload()??0,r=this.maxDownloadUnit();if(e>0){let{valueForApi:T,unitPrefixForApi:I}=this.convertFromBitsPerSecondUnits(e,i),v=be[I];v?t=`${T}${v}`:console.error(`Invalid unit prefix for API submission (upload): ${I}. Defaulting to empty string.`)}if(s){let{valueForApi:T,unitPrefixForApi:I}=this.convertFromBitsPerSecondUnits(s,r),v=be[I];v?n=`${T}${v}`:console.error(`Invalid unit prefix for API submission (download): ${I}. Defaulting to empty string.`)}this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":t,"max-download-speed":n}}).pipe(U(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.closed.emit(!0)},error:T=>{console.error("Failed to submit throttle settings:",T)}})}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=f({type:o,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:26,vars:10,consts:()=>{let t;t=$localize`Throttle network speed`;let n;n=$localize`We will round bits to the nearest byte value.`;let e;e=$localize`Max upload speed`;let i;i=$localize`Max download speed`;let s;s=$localize`Cancel`;let r;return r=$localize` Update settings `,[t,n,e,i,s,r,["content",""],[1,"column"],[1,"field-row"],["type","number",3,"paste","keydown","ngModelChange","ngModel"],[3,"isClearable","options"],["type","text",3,"ngModelChange","ngModel"],["footer",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"click"]]},template:function(n,e){n&1&&(a(0,"header")(1,"h3"),C(2,0),_(),a(3,"p"),C(4,1),_()(),a(5,"div",6)(6,"div",7)(7,"div",8)(8,"label"),C(9,2),_(),a(10,"sh-form-field")(11,"input",9),c("paste",function(s){return e.cleanupInputAfterPasting(s)})("keydown",function(s){return e.blockDecimalKeys(s)}),G("ngModelChange",function(s){return L(e.maxUpload,s)||(e.maxUpload=s),s}),_()(),a(12,"sh-select",10)(13,"input",11),G("ngModelChange",function(s){return L(e.maxUploadUnit,s)||(e.maxUploadUnit=s),s}),_()()(),a(14,"div",8)(15,"label"),C(16,3),_(),a(17,"sh-form-field")(18,"input",9),c("paste",function(s){return e.cleanupInputAfterPasting(s)})("keydown",function(s){return e.blockDecimalKeys(s)}),G("ngModelChange",function(s){return L(e.maxDownload,s)||(e.maxDownload=s),s}),_()(),a(19,"sh-select",10)(20,"input",11),G("ngModelChange",function(s){return L(e.maxDownloadUnit,s)||(e.maxDownloadUnit=s),s}),_()()()()(),a(21,"footer",12)(22,"button",13),c("click",function(){return e.closed.emit(!1)}),C(23,4),_(),a(24,"button",14),c("click",function(){return e.submit()}),C(25,5),_()()),n&2&&(l(11),b("ngModel",e.maxUpload),l(),A("isClearable",!1)("options",e.sizeOptions()),l(),b("ngModel",e.maxUploadUnit),l(5),b("ngModel",e.maxDownload),l(),A("isClearable",!1)("options",e.sizeOptions()),l(),b("ngModel",e.maxDownloadUnit),l(4),D("loader",e.isSubmitting()))},dependencies:[z,Se,Ce,de,pe,Fe,fe,M],styles:['[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;padding:1rem;gap:.5rem;margin-bottom:1rem}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:grid;grid-template-areas:"label label" "input select";grid-template-columns:1fr auto;align-items:center;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}.field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:select}'],changeDetection:0})};function Ze(o,t){if(o&1&&(a(0,"div"),R(1),_(),S(2,"sh-progress-bar",11)),o&2){let n=E();l(),Y("",n.statusData().actionText," - ",n.statusData().statusText),l(),A("value",n.statusData().progress*100)}}function qe(o,t){if(o&1&&(a(0,"div",7),R(1),a(2,"sh-icon"),R(3,"clock"),_(),R(4),K(5,"relativeTime"),K(6,"date"),_()),o&2){let n,e=E();l(),x(" ",(n=e.nextBackup().backup)==null||n.Backup==null?null:n.Backup.Name," - "),l(3),Y(" ",_e(5,3,e.nextBackup().time)," at ",le(6,5,e.nextBackup().time,"shortTime")," ")}}function Qe(o,t){o&1&&(a(0,"div",7),C(1,1),_())}function et(o,t){o&1&&(a(0,"div",8),d(1,2),S(2,"sh-spinner"),p(),_()),o&2&&(l(2),ae("--spinner-size","12px")("--spinner-thickness","2px"))}function tt(o,t){o&1&&S(0,"app-remote-connectivity-status")}function nt(o,t){if(o&1){let n=P();a(0,"button",10),c("click",function(){m(n);let i=E(2);return F(i.abort())}),d(1,3),S(2,"sh-icon"),p(),_()}}function it(o,t){if(o&1){let n=P();a(0,"button",10),c("click",function(){m(n);let i=E(2);return F(i.stop())}),d(1,4),S(2,"sh-icon"),p(),_()}}function ot(o,t){if(o&1&&O(0,nt,3,0,"button",12)(1,it,3,0,"button",12),o&2){let n=E();N(n.isStopping()?0:1)}}function st(o,t){o&1&&(d(0,0,1),S(1,"sh-icon"),p())}function at(o,t){o&1&&(d(0,0,2),S(1,"sh-icon"),p())}var Be=new Date,ne=class o{#e=g(h);#t=g(Me);#n=g(Ee);#a=g(Ie);#i=g(ue);#_=g(De);#o=g(Re);minsAgo=Be.setMinutes(Be.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;clientIsRunning=this.#t.clientIsRunning;isResuming=this.#t.isResuming;runningTask=B(()=>this.#o.serverState()?.ActiveTask?.Item1);isStopping=B(()=>this.runningTask()==this.#s());#s=u(-1);pgState=B(()=>this.#o.serverState());isUsingRelay=this.#i.relayIsEnabled;nextBackup=B(()=>{let t=this.#a.backups();return{backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}});openThrottleSettingsDialog(){this.#n.open(k,{maxWidth:"550px",width:"100%"})}openPauseDialog(){this.#n.open(X,{maxWidth:"550px",width:"100%"})}pauseResume(){if(this.clientIsRunning()){this.openPauseDialog();return}this.#t.pauseResume().subscribe()}stop(){let t=this.runningTask();t&&(this.#s.set(t),this.#e.postApiV1TaskByTaskidStop({taskid:t}).subscribe())}abort(){let t=this.runningTask();t&&this.#e.postApiV1TaskByTaskidAbort({taskid:t}).subscribe()}ngAfterViewInit(){let t=this.#i.relayIsEnabled()||!this.#_.hasWebSocket()?"longpoll":"websocket";this.#t.setConnectionMethod(t)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=f({type:o,selectors:[["app-status-bar"]],decls:16,vars:6,consts:()=>{let t;t=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Pause ${"\uFFFD/*11:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Resume ${"\uFFFD/*12:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=y(t);let n;n=$localize`No scheduled tasks`;let e;e=$localize` Loading ${"\uFFFD#2\uFFFD"}:START_TAG_SH_SPINNER:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_SPINNER:`;let i;i=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:skull${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Abort `;let s;return s=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:stop${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Stop `,[t,n,e,i,s,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"label","label-loading"],[1,"current-backup-actions"],["shButton","",3,"click"],[1,"raised","primary",3,"value"],["shButton",""]]},template:function(n,e){if(n&1&&(a(0,"div",5)(1,"div",6),O(2,Ze,3,3)(3,qe,7,8,"div",7)(4,Qe,2,0,"div",7)(5,et,3,4,"div",8),_(),a(6,"div",9),O(7,tt,1,0,"app-remote-connectivity-status"),O(8,ot,2,1),a(9,"button",10),c("click",function(){return e.pauseResume()}),d(10,0),O(11,st,2,0)(12,at,2,0),p(),_(),a(13,"button",10),c("click",function(){return e.openThrottleSettingsDialog()}),a(14,"sh-icon"),R(15,"speedometer"),_()()()()),n&2){let i;l(2),N((i=e.serverState())!=null&&i.ActiveTask&&(!((i=e.statusData())==null||i.task==null)&&i.task.Status)&&((i=e.statusData())==null||i.task==null?null:i.task.Status)!=="Completed"?2:e.nextBackup().backup||e.nextBackup().time?3:(i=e.serverState())!=null&&i.ActiveTask?5:4),l(5),N(e.isUsingRelay()?-1:7),l(),N(e.runningTask()?8:-1),l(),D("loader",e.isResuming()),l(2),N(e.clientIsRunning()?11:12)}},dependencies:[$,J,M,Ae,Oe,ve,Te],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-4);position:sticky;top:0;z-index:2000;background:var(--base-1)}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem;flex:1 0}.current-backup-progress[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{max-width:18.75rem;width:100%}.current-backup-progress[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}.label-loading[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem}"],changeDetection:0})};export{ne as a};
|
package/chunk-FUPYLAQ6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as a,d as b}from"./chunk-OVLLX4US.js";import"./chunk-QE4NBN5H.js";import"./chunk-KUP2T6AG.js";import"./chunk-WNHQELMC.js";import"./chunk-R2N5UWYB.js";import"./chunk-J64OAILA.js";import"./chunk-VXJJGZ5F.js";import"./chunk-AUMCM45B.js";import"./chunk-GRPEAINE.js";import"./chunk-QLUEDPL4.js";import"./chunk-ZQ56M63S.js";import"./chunk-4IAJY6E3.js";import"./chunk-P7OKMMNZ.js";import"./chunk-HJSCQF6V.js";import"./chunk-G4Z3JAJB.js";import"./chunk-53V6KV3I.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";export{a as createEncryptionForm,b as default};
|