homebridge-config-ui-x 5.3.1-beta.9 → 5.4.0
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/CHANGELOG.md +13 -4
- package/dist/bin/standalone.d.ts +2 -0
- package/dist/bin/standalone.js +58 -0
- package/dist/bin/standalone.js.map +1 -0
- package/dist/modules/platform-tools/terminal/terminal.service.js +26 -26
- package/dist/modules/platform-tools/terminal/terminal.service.js.map +1 -1
- package/dist/modules/server/server.service.js +1 -1
- package/package.json +4 -4
- package/public/assets/monaco-0.21.3/LICENSE +21 -0
- package/public/assets/monaco-0.21.3/README.md +96 -0
- package/public/assets/monaco-0.21.3/ThirdPartyNotices.txt +283 -0
- package/public/assets/monaco-0.21.3/package.json +38 -0
- package/public/assets/service-icons/air-purifier.svg +50 -0
- package/public/assets/{hap-icons → service-icons}/air-quality-sensor.svg +2 -2
- package/public/assets/service-icons/carbon-dioxide-sensor.svg +53 -0
- package/public/assets/service-icons/carbon-monoxide-sensor.svg +53 -0
- package/public/assets/service-icons/contact-sensor.svg +45 -0
- package/public/assets/service-icons/door.svg +28 -0
- package/public/assets/service-icons/doorbell.svg +7 -0
- package/public/assets/service-icons/fan.svg +15 -0
- package/public/assets/service-icons/filter-maintenance.svg +54 -0
- package/public/assets/service-icons/garage-door.svg +120 -0
- package/public/assets/service-icons/microphone.svg +12 -0
- package/public/assets/service-icons/smoke-sensor.svg +38 -0
- package/public/assets/service-icons/speaker.svg +28 -0
- package/public/assets/service-icons/television.svg +17 -0
- package/public/assets/service-icons/washing-machine.svg +34 -0
- package/public/assets/service-icons/window-covering.svg +44 -0
- package/public/assets/service-icons/window.svg +67 -0
- package/public/{chunk-B5AYH2BC.js → chunk-2HZOWWRB.js} +1 -1
- package/public/{chunk-GEXFURZE.js → chunk-2TDOLECC.js} +1 -1
- package/public/chunk-2ZM2CO7S.js +1 -0
- package/public/{chunk-KKMV35EJ.js → chunk-3JNJJOX6.js} +1 -1
- package/public/{chunk-S5VOLN5S.js → chunk-3L7PIOD5.js} +1 -1
- package/public/{chunk-AKD24HZC.js → chunk-3QBYXJ7T.js} +1 -1
- package/public/{chunk-FG353N2G.js → chunk-3WCZQYFM.js} +1 -1
- package/public/{chunk-7G2YYPIL.js → chunk-4A6F5427.js} +1 -1
- package/public/{chunk-VWWI5W24.js → chunk-4I4YTNGD.js} +1 -1
- package/public/{chunk-GYBGIQ6I.js → chunk-5FOJUOIT.js} +1 -1
- package/public/chunk-645YHJEQ.js +4 -0
- package/public/{chunk-FXOH6MUI.js → chunk-6BITWEO6.js} +1 -1
- package/public/{chunk-25NXLXGL.js → chunk-6HJHVJPI.js} +1 -1
- package/public/chunk-6NW4EKE6.js +4 -0
- package/public/{chunk-GBILZGBS.js → chunk-73PB5ERF.js} +1 -1
- package/public/{chunk-7OOZYU5L.js → chunk-7M4GTFPB.js} +1 -1
- package/public/{chunk-IH6TCZKW.js → chunk-7NWB7MN6.js} +1 -1
- package/public/chunk-BHQK7H4B.js +1 -0
- package/public/{chunk-E3QIV2NC.js → chunk-BLNEXUND.js} +1 -1
- package/public/{chunk-G6OT66TG.js → chunk-BQ7Q4FRF.js} +1 -1
- package/public/chunk-CLGDJPWG.js +12 -0
- package/public/{chunk-DE76AGV3.js → chunk-DCEE4BJT.js} +1 -1
- package/public/{chunk-RPRM66DV.js → chunk-DYB33NRF.js} +1 -1
- package/public/{chunk-TVRTT63H.js → chunk-EKINPADV.js} +1 -1
- package/public/{chunk-UPWD7C23.js → chunk-EQHN6CPG.js} +1 -1
- package/public/{chunk-3T4CLJZB.js → chunk-EZQF5CUM.js} +1 -1
- package/public/{chunk-CYSLA66J.js → chunk-F6NZALU5.js} +1 -1
- package/public/{chunk-P72KTIAV.js → chunk-FG5QICVJ.js} +1 -1
- package/public/{chunk-RYQXCZEW.js → chunk-FIQUQJTU.js} +1 -1
- package/public/{chunk-WYH2UWLZ.js → chunk-FKZEDXUZ.js} +1 -1
- package/public/chunk-FYDO54CR.js +1 -0
- package/public/{chunk-MJK6N6PA.js → chunk-FYI7RHOJ.js} +1 -1
- package/public/{chunk-S7AIVWKK.js → chunk-G6KV6PYE.js} +1 -1
- package/public/chunk-GNULJZ2P.js +1 -0
- package/public/{chunk-H337OZRD.js → chunk-HHGB2T2Q.js} +1 -1
- package/public/{chunk-2FTHA637.js → chunk-HO4UVRDI.js} +1 -1
- package/public/{chunk-23XH7HBN.js → chunk-HSAZV5QQ.js} +1 -1
- package/public/{chunk-6WLDPZET.js → chunk-IAVKQO7M.js} +1 -1
- package/public/{chunk-RHCMG64A.js → chunk-JCYDPJQ5.js} +1 -1
- package/public/chunk-KLQ6BEKS.js +2 -0
- package/public/chunk-KPOP67KE.js +1 -0
- package/public/{chunk-VPU5FNT3.js → chunk-KYB236MX.js} +1 -1
- package/public/{chunk-HWXVYPUM.js → chunk-LJDW32KF.js} +3 -3
- package/public/{chunk-F3MG6UU6.js → chunk-M4QDQWSG.js} +1 -1
- package/public/chunk-O7RJ6JXM.js +1 -0
- package/public/{chunk-2APX6TML.js → chunk-OMGXHYZA.js} +1 -1
- package/public/{chunk-O3ZUJHYU.js → chunk-OSQ37ZQY.js} +1 -1
- package/public/{chunk-HJ4A27B3.js → chunk-OW6LBBVH.js} +1 -1
- package/public/{chunk-NO7RIAKI.js → chunk-PPSFRNJC.js} +1 -1
- package/public/{chunk-HC4PHBTI.js → chunk-QL5UNVZO.js} +1 -1
- package/public/{chunk-OFGO6QZU.js → chunk-QM6QRTMV.js} +1 -1
- package/public/{chunk-Y6FHYF3A.js → chunk-QZWC7RP4.js} +1 -1
- package/public/{chunk-YP6XHKAT.js → chunk-R6KN5Y43.js} +1 -1
- package/public/{chunk-UKEZ5GGN.js → chunk-RCYYU6LQ.js} +1 -1
- package/public/{chunk-V2JQMGNW.js → chunk-RGXCQLZU.js} +1 -1
- package/public/{chunk-S7D4ALZN.js → chunk-RZ4UMDVF.js} +1 -1
- package/public/{chunk-TP4NTACL.js → chunk-TOI5IERI.js} +1 -1
- package/public/{chunk-3E7ISGPA.js → chunk-U4UZ4WQX.js} +1 -1
- package/public/{chunk-O64A5SOM.js → chunk-U52WKM74.js} +1 -1
- package/public/{chunk-6TXOJ5PS.js → chunk-UFFQKHXE.js} +1 -1
- package/public/{chunk-O4DNLPYF.js → chunk-ULWO2VVV.js} +1 -1
- package/public/{chunk-IMT3YYMD.js → chunk-V35TPDVW.js} +1 -1
- package/public/{chunk-T5INXMWC.js → chunk-V7OQR5Y4.js} +1 -1
- package/public/{chunk-5DCA7TNW.js → chunk-VJOMQ46T.js} +1 -1
- package/public/{chunk-5KQOUNSC.js → chunk-VRXR6ACJ.js} +1 -1
- package/public/{chunk-KZE6PFIV.js → chunk-WG533VX7.js} +1 -1
- package/public/{chunk-OH5DGT3H.js → chunk-YPZJFK3W.js} +1 -1
- package/public/{chunk-KB5AKZT6.js → chunk-Z6DMMN6D.js} +1 -1
- package/public/{chunk-AJZXTLH5.js → chunk-ZO74PVYQ.js} +1 -1
- package/public/index.html +2 -2
- package/public/main-HN6ISZGH.js +1 -0
- package/public/media/fa-brands-400-Q3XCMWHQ.woff2 +0 -0
- package/public/media/fa-brands-400-R2XQZCET.ttf +0 -0
- package/public/media/fa-regular-400-QSNYFYRT.woff2 +0 -0
- package/public/media/fa-regular-400-XUOPSR7E.ttf +0 -0
- package/public/media/fa-solid-900-5ZUYHGA7.woff2 +0 -0
- package/public/media/fa-solid-900-PJNKLK6W.ttf +0 -0
- package/public/styles-XESJTHVW.css +1 -0
- package/public/assets/hap-icons/air-purifier.svg +0 -62
- package/public/assets/hap-icons/carbon-dioxide-sensor.svg +0 -72
- package/public/assets/hap-icons/carbon-monoxide-sensor.svg +0 -72
- package/public/assets/hap-icons/contact-sensor-closed.svg +0 -36
- package/public/assets/hap-icons/contact-sensor-open.svg +0 -81
- package/public/assets/hap-icons/door-closed.svg +0 -33
- package/public/assets/hap-icons/door-open.svg +0 -49
- package/public/assets/hap-icons/doorbell.svg +0 -9
- package/public/assets/hap-icons/fan-off.svg +0 -25
- package/public/assets/hap-icons/fan-on.svg +0 -25
- package/public/assets/hap-icons/filter-maintenance.svg +0 -26
- package/public/assets/hap-icons/garage-door.svg +0 -25
- package/public/assets/hap-icons/microphone.svg +0 -14
- package/public/assets/hap-icons/smoke-sensor.svg +0 -59
- package/public/assets/hap-icons/speaker.svg +0 -46
- package/public/assets/hap-icons/television.svg +0 -16
- package/public/assets/hap-icons/window-closed.svg +0 -86
- package/public/assets/hap-icons/window-covering-closed.svg +0 -49
- package/public/assets/hap-icons/window-covering-open.svg +0 -44
- package/public/assets/hap-icons/window-open.svg +0 -137
- package/public/chunk-3MXSPHL2.js +0 -1
- package/public/chunk-7SQCM466.js +0 -1
- package/public/chunk-CFYGJBJN.js +0 -1
- package/public/chunk-CPAHENLQ.js +0 -1
- package/public/chunk-DEQA7IOH.js +0 -4
- package/public/chunk-HVZJ7SFU.js +0 -1
- package/public/chunk-IDOLIFNQ.js +0 -1
- package/public/chunk-MADTYIL6.js +0 -12
- package/public/chunk-RJOGO4M5.js +0 -2
- package/public/chunk-WEVBEUAJ.js +0 -4
- package/public/main-KCMESMSJ.js +0 -1
- package/public/media/fa-brands-400-WVWUIHCX.woff2 +0 -0
- package/public/media/fa-regular-400-I5DJMINO.woff2 +0 -0
- package/public/media/fa-solid-900-C5F6UWGT.woff2 +0 -0
- package/public/styles-LG2MDN7O.css +0 -1
- /package/public/assets/{monaco → monaco-0.21.3}/min/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- /package/public/assets/{monaco → monaco-0.21.3}/min/vs/base/worker/workerMain.js +0 -0
- /package/public/assets/{monaco → monaco-0.21.3}/min/vs/basic-languages/shell/shell.js +0 -0
- /package/public/assets/{monaco → monaco-0.21.3}/min/vs/editor/editor.main.css +0 -0
- /package/public/assets/{monaco → monaco-0.21.3}/min/vs/editor/editor.main.js +0 -0
- /package/public/assets/{monaco → monaco-0.21.3}/min/vs/editor/editor.main.nls.js +0 -0
- /package/public/assets/{monaco → monaco-0.21.3}/min/vs/language/json/jsonMode.js +0 -0
- /package/public/assets/{monaco → monaco-0.21.3}/min/vs/language/json/jsonWorker.js +0 -0
- /package/public/assets/{monaco → monaco-0.21.3}/min/vs/loader.js +0 -0
- /package/public/assets/{hap-icons → service-icons}/robot-vacuum.svg +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<!-- top outer ellipse -->
|
|
3
|
+
<ellipse
|
|
4
|
+
class="status"
|
|
5
|
+
cx="16"
|
|
6
|
+
cy="7"
|
|
7
|
+
rx="11"
|
|
8
|
+
ry="5"
|
|
9
|
+
stroke="#7f7f7f"
|
|
10
|
+
stroke-width="1.75"
|
|
11
|
+
fill="#4caf50"
|
|
12
|
+
fill-opacity="0.5"
|
|
13
|
+
/>
|
|
14
|
+
|
|
15
|
+
<!-- top inner ellipse -->
|
|
16
|
+
<ellipse
|
|
17
|
+
class="back"
|
|
18
|
+
cx="16"
|
|
19
|
+
cy="7"
|
|
20
|
+
rx="6"
|
|
21
|
+
ry="2"
|
|
22
|
+
stroke="#7f7f7f"
|
|
23
|
+
stroke-width="1"
|
|
24
|
+
fill="#e0e0e0"
|
|
25
|
+
fill-opacity="1"
|
|
26
|
+
/>
|
|
27
|
+
|
|
28
|
+
<!-- side walls -->
|
|
29
|
+
<line x1="5" y1="7" x2="5" y2="27.7" stroke="#7f7f7f" stroke-width="1.75" />
|
|
30
|
+
<line x1="27" y1="7" x2="27" y2="27.7" stroke="#7f7f7f" stroke-width="1.75" />
|
|
31
|
+
|
|
32
|
+
<!-- base arc -->
|
|
33
|
+
<path d="M4.7,27 A13,6.9 0 0,0 27.3,27" stroke="#7f7f7f" stroke-width="1.75" fill="none" />
|
|
34
|
+
|
|
35
|
+
<!-- outer front lines -->
|
|
36
|
+
<line x1="7" y1="10" x2="7" y2="29" stroke="#7f7f7f" stroke-width="1" />
|
|
37
|
+
<line x1="9" y1="11" x2="9" y2="29" stroke="#7f7f7f" stroke-width="1" />
|
|
38
|
+
<line x1="11" y1="12" x2="11" y2="30" stroke="#7f7f7f" stroke-width="1" />
|
|
39
|
+
<line x1="13" y1="12" x2="13" y2="30" stroke="#7f7f7f" stroke-width="1" />
|
|
40
|
+
<line x1="15" y1="12" x2="15" y2="30" stroke="#7f7f7f" stroke-width="1" />
|
|
41
|
+
<line x1="17" y1="12" x2="17" y2="30" stroke="#7f7f7f" stroke-width="1" />
|
|
42
|
+
<line x1="19" y1="12" x2="19" y2="30" stroke="#7f7f7f" stroke-width="1" />
|
|
43
|
+
<line x1="21" y1="12" x2="21" y2="30" stroke="#7f7f7f" stroke-width="1" />
|
|
44
|
+
<line x1="23" y1="11" x2="23" y2="29" stroke="#7f7f7f" stroke-width="1" />
|
|
45
|
+
<line x1="25" y1="10" x2="25" y2="29" stroke="#7f7f7f" stroke-width="1" />
|
|
46
|
+
|
|
47
|
+
<!-- inner back lines -->
|
|
48
|
+
<line x1="11" y1="6" x2="11" y2="8" stroke="#7f7f7f" stroke-width="1" />
|
|
49
|
+
<line x1="13" y1="5" x2="13" y2="9" stroke="#7f7f7f" stroke-width="1" />
|
|
50
|
+
<line x1="15" y1="5" x2="15" y2="9" stroke="#7f7f7f" stroke-width="1" />
|
|
51
|
+
<line x1="17" y1="5" x2="17" y2="9" stroke="#7f7f7f" stroke-width="1" />
|
|
52
|
+
<line x1="19" y1="5" x2="19" y2="9" stroke="#7f7f7f" stroke-width="1" />
|
|
53
|
+
<line x1="21" y1="6" x2="21" y2="8" stroke="#7f7f7f" stroke-width="1" />
|
|
54
|
+
</svg>
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<!-- circle in roof -->
|
|
3
|
+
<circle
|
|
4
|
+
class="window"
|
|
5
|
+
cx="15.5"
|
|
6
|
+
cy="10.25"
|
|
7
|
+
r="3"
|
|
8
|
+
stroke="#7f7f7f"
|
|
9
|
+
stroke-width="0.5"
|
|
10
|
+
fill="#1976d2"
|
|
11
|
+
fill-opacity="0.5"
|
|
12
|
+
/>
|
|
13
|
+
|
|
14
|
+
<!-- left roof line -->
|
|
15
|
+
<line x1="1" y1="12" x2="15" y2="1" stroke="#7f7f7f" stroke-width="1.5" stroke-linecap="round" />
|
|
16
|
+
|
|
17
|
+
<!-- right roof line -->
|
|
18
|
+
<line x1="31" y1="12" x2="16" y2="1" stroke="#7f7f7f" stroke-width="1.5" stroke-linecap="round" />
|
|
19
|
+
|
|
20
|
+
<!-- roof summit -->
|
|
21
|
+
<circle cx="15.5" cy="1.3" r="0.5" stroke="#7f7f7f" stroke-width="1.5" />
|
|
22
|
+
|
|
23
|
+
<!-- side left line -->
|
|
24
|
+
<line x1="3" y1="11" x2="3" y2="31" stroke="#7f7f7f" stroke-width="1.5" stroke-linecap="round" />
|
|
25
|
+
|
|
26
|
+
<!-- right side line -->
|
|
27
|
+
<line x1="29" y1="11" x2="29" y2="31" stroke="#7f7f7f" stroke-width="1.5" stroke-linecap="round" />
|
|
28
|
+
|
|
29
|
+
<!-- bottom left horizontal line -->
|
|
30
|
+
<line x1="3" y1="31" x2="6" y2="31" stroke="#7f7f7f" stroke-width="1.5" stroke-linecap="round" />
|
|
31
|
+
|
|
32
|
+
<!-- bottom right horizontal line -->
|
|
33
|
+
<line x1="26" y1="31" x2="29" y2="31" stroke="#7f7f7f" stroke-width="1.5" stroke-linecap="round" />
|
|
34
|
+
|
|
35
|
+
<!-- left garage line -->
|
|
36
|
+
<line x1="6" y1="17" x2="6" y2="31" stroke="#7f7f7f" stroke-width="1.5" />
|
|
37
|
+
|
|
38
|
+
<!-- right garage line -->
|
|
39
|
+
<line x1="26" y1="17" x2="26" y2="31" stroke="#7f7f7f" stroke-width="1.5" />
|
|
40
|
+
|
|
41
|
+
<!-- garage door lines -->
|
|
42
|
+
<line x1="5.25" y1="17" x2="26.75" y2="17" stroke="#7f7f7f" stroke-width="1" />
|
|
43
|
+
<line
|
|
44
|
+
class="line line1"
|
|
45
|
+
x1="6.75"
|
|
46
|
+
y1="18"
|
|
47
|
+
x2="25.25"
|
|
48
|
+
y2="18"
|
|
49
|
+
stroke="#1976d2"
|
|
50
|
+
stroke-width="1"
|
|
51
|
+
stroke-opacity="0.5"
|
|
52
|
+
/>
|
|
53
|
+
<line class="line line2" x1="5.25" y1="19" x2="26.75" y2="19" stroke="#7f7f7f" stroke-width="1" />
|
|
54
|
+
<line
|
|
55
|
+
class="line line3"
|
|
56
|
+
x1="6.75"
|
|
57
|
+
y1="20"
|
|
58
|
+
x2="25.25"
|
|
59
|
+
y2="20"
|
|
60
|
+
stroke="#1976d2"
|
|
61
|
+
stroke-width="1"
|
|
62
|
+
stroke-opacity="0.5"
|
|
63
|
+
/>
|
|
64
|
+
<line class="line line4" x1="5.25" y1="21" x2="26.75" y2="21" stroke="#7f7f7f" stroke-width="1" />
|
|
65
|
+
<line
|
|
66
|
+
class="line line5"
|
|
67
|
+
x1="6.75"
|
|
68
|
+
y1="22"
|
|
69
|
+
x2="25.25"
|
|
70
|
+
y2="22"
|
|
71
|
+
stroke="#1976d2"
|
|
72
|
+
stroke-width="1"
|
|
73
|
+
stroke-opacity="0.5"
|
|
74
|
+
/>
|
|
75
|
+
<line class="line line6" x1="5.25" y1="23" x2="26.75" y2="23" stroke="#7f7f7f" stroke-width="1" />
|
|
76
|
+
<line
|
|
77
|
+
class="line line7"
|
|
78
|
+
x1="6.75"
|
|
79
|
+
y1="24"
|
|
80
|
+
x2="25.25"
|
|
81
|
+
y2="24"
|
|
82
|
+
stroke="#1976d2"
|
|
83
|
+
stroke-width="1"
|
|
84
|
+
stroke-opacity="0.5"
|
|
85
|
+
/>
|
|
86
|
+
<line class="line line8" x1="5.25" y1="25" x2="26.75" y2="25" stroke="#7f7f7f" stroke-width="1" />
|
|
87
|
+
<line
|
|
88
|
+
class="line line9"
|
|
89
|
+
x1="6.75"
|
|
90
|
+
y1="26"
|
|
91
|
+
x2="25.25"
|
|
92
|
+
y2="26"
|
|
93
|
+
stroke="#1976d2"
|
|
94
|
+
stroke-width="1"
|
|
95
|
+
stroke-opacity="0.5"
|
|
96
|
+
/>
|
|
97
|
+
<line class="line line10" x1="5.25" y1="27" x2="26.75" y2="27" stroke="#7f7f7f" stroke-width="1" />
|
|
98
|
+
<line
|
|
99
|
+
class="line line11"
|
|
100
|
+
x1="6.75"
|
|
101
|
+
y1="28"
|
|
102
|
+
x2="25.25"
|
|
103
|
+
y2="28"
|
|
104
|
+
stroke="#1976d2"
|
|
105
|
+
stroke-width="1"
|
|
106
|
+
stroke-opacity="0.5"
|
|
107
|
+
/>
|
|
108
|
+
<line class="line line12" x1="5.25" y1="29" x2="26.75" y2="29" stroke="#7f7f7f" stroke-width="1" />
|
|
109
|
+
<line
|
|
110
|
+
class="line line13"
|
|
111
|
+
x1="6.75"
|
|
112
|
+
y1="30"
|
|
113
|
+
x2="25.25"
|
|
114
|
+
y2="30"
|
|
115
|
+
stroke="#1976d2"
|
|
116
|
+
stroke-width="1"
|
|
117
|
+
stroke-opacity="0.5"
|
|
118
|
+
/>
|
|
119
|
+
<line class="line line14" x1="5.25" y1="31" x2="26.75" y2="31" stroke="#7f7f7f" stroke-width="1" />
|
|
120
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<!-- outer casing -->
|
|
3
|
+
<rect x="6" y="1" width="18" height="30" rx="3" stroke="#7f7f7f" fill="none" stroke-width="2" />
|
|
4
|
+
|
|
5
|
+
<!-- grille lines -->
|
|
6
|
+
<line stroke-linecap="round" x1="10" y1="6" x2="20" y2="6" stroke="#7f7f7f" stroke-width="2" />
|
|
7
|
+
<line stroke-linecap="round" x1="10" y1="10" x2="20" y2="10" stroke="#7f7f7f" stroke-width="2" />
|
|
8
|
+
<line stroke-linecap="round" x1="10" y1="14" x2="20" y2="14" stroke="#7f7f7f" stroke-width="2" />
|
|
9
|
+
|
|
10
|
+
<!-- power button -->
|
|
11
|
+
<circle cx="15" cy="23" r="3" stroke="#7f7f7f" stroke-width="2" fill="#1976d2" fill-opacity="0.5" />
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<!-- outer casing -->
|
|
3
|
+
<rect x="1" y="1" width="30" height="12" rx="1" stroke="#7f7f7f" fill="none" stroke-width="1.25" />
|
|
4
|
+
|
|
5
|
+
<!-- alarm type -->
|
|
6
|
+
<text
|
|
7
|
+
class="type"
|
|
8
|
+
text-anchor="middle"
|
|
9
|
+
dominant-baseline="middle"
|
|
10
|
+
font-family="Arial"
|
|
11
|
+
font-size="7.5"
|
|
12
|
+
x="16"
|
|
13
|
+
y="7.7"
|
|
14
|
+
fill="#7f7f7f"
|
|
15
|
+
stroke-width="0.6"
|
|
16
|
+
font-weight="900"
|
|
17
|
+
>
|
|
18
|
+
SMOKE
|
|
19
|
+
</text>
|
|
20
|
+
|
|
21
|
+
<!-- grille blue background -->
|
|
22
|
+
<line x1="6" y1="14.5" x2="25.5" y2="14.5" stroke="#1976d2" stroke-opacity="0.5" stroke-width="2" />
|
|
23
|
+
|
|
24
|
+
<!-- grille vertical lines -->
|
|
25
|
+
<line stroke-linecap="round" x1="5" y1="13" x2="6.5" y2="16" stroke="#7f7f7f" stroke-width="1.25" />
|
|
26
|
+
<line stroke-linecap="round" x1="11" y1="13" x2="11" y2="16" stroke="#7f7f7f" stroke-width="1" />
|
|
27
|
+
<line stroke-linecap="round" x1="15.5" y1="13" x2="15.5" y2="16" stroke="#7f7f7f" stroke-width="1" />
|
|
28
|
+
<line stroke-linecap="round" x1="20" y1="13" x2="20" y2="16" stroke="#7f7f7f" stroke-width="1" />
|
|
29
|
+
<line stroke-linecap="round" x1="26" y1="13" x2="24.5" y2="16" stroke="#7f7f7f" stroke-width="1.25" />
|
|
30
|
+
|
|
31
|
+
<!-- grille horizontal lines -->
|
|
32
|
+
<line stroke-linecap="round" x1="6.5" y1="16" x2="24.5" y2="16" stroke="#7f7f7f" stroke-width="1.25" />
|
|
33
|
+
|
|
34
|
+
<!-- left to right air lines -->
|
|
35
|
+
<line stroke-linecap="round" x1="11" y1="21" x2="6" y2="27" stroke="#7f7f7f" stroke-width="1.25" class="air-line" />
|
|
36
|
+
<line stroke-linecap="round" x1="16" y1="21" x2="16" y2="31" stroke="#7f7f7f" stroke-width="1.25" class="air-line" />
|
|
37
|
+
<line stroke-linecap="round" x1="21" y1="21" x2="26" y2="27" stroke="#7f7f7f" stroke-width="1.25" class="air-line" />
|
|
38
|
+
</svg>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<!-- outer casing -->
|
|
3
|
+
<rect x="6" y="1" width="20" height="30" rx="3" stroke="#7f7f7f" fill="none" stroke-width="1" />
|
|
4
|
+
|
|
5
|
+
<!-- outer top speaker circle -->
|
|
6
|
+
<circle cx="16" cy="9" r="4.5" stroke="#7f7f7f" stroke-width="0" fill="#7f7f7f" />
|
|
7
|
+
|
|
8
|
+
<!-- inner top speaker circle -->
|
|
9
|
+
<circle class="inner" cx="16" cy="9" r="1.5" stroke="#7f7f7f" stroke-width="0" fill="#e1e1e1" />
|
|
10
|
+
|
|
11
|
+
<!-- outer bottom speaker circle -->
|
|
12
|
+
<circle cx="16" cy="22" r="6" stroke="#7f7f7f" stroke-width="0" fill="#7f7f7f" />
|
|
13
|
+
|
|
14
|
+
<!-- inner bottom speaker circle -->
|
|
15
|
+
<circle class="inner" cx="16" cy="22" r="2" stroke="#7f7f7f" stroke-width="0" fill="#e1e1e1" />
|
|
16
|
+
|
|
17
|
+
<!-- inner left sound wave -->
|
|
18
|
+
<path class="wave-inner" d="M4,12 Q1,16 4,20" stroke="#1976d2" fill="none" stroke-width="1" stroke-opacity="0" />
|
|
19
|
+
|
|
20
|
+
<!-- outer left sound wave -->
|
|
21
|
+
<path class="wave-outer" d="M3,10 Q-2,16 3,22" stroke="#1976d2" fill="none" stroke-width="1" stroke-opacity="0" />
|
|
22
|
+
|
|
23
|
+
<!-- inner right sound wave -->
|
|
24
|
+
<path class="wave-inner" d="M28,12 Q31,16 28,20" stroke="#1976d2" fill="none" stroke-width="1" stroke-opacity="0" />
|
|
25
|
+
|
|
26
|
+
<!-- outer right sound wave -->
|
|
27
|
+
<path class="wave-outer" d="M29,10 Q34,16 29,22" stroke="#1976d2" fill="none" stroke-width="1" stroke-opacity="0" />
|
|
28
|
+
</svg>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<!-- stand -->
|
|
3
|
+
<line
|
|
4
|
+
class="stand"
|
|
5
|
+
x1="10"
|
|
6
|
+
y1="27.25"
|
|
7
|
+
x2="22"
|
|
8
|
+
y2="27.25"
|
|
9
|
+
stroke="#d32f2f"
|
|
10
|
+
stroke-width="4"
|
|
11
|
+
stroke-linecap="round"
|
|
12
|
+
stroke-opacity="0.75"
|
|
13
|
+
/>
|
|
14
|
+
|
|
15
|
+
<!-- frame -->
|
|
16
|
+
<rect class="screen" x="1" y="6" width="30" height="20" rx="2" stroke="#7f7f7f" fill="#808080" stroke-width="1.5" />
|
|
17
|
+
</svg>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<!-- outer casing -->
|
|
3
|
+
<rect x="3" y="1" width="25" height="30" rx="2" stroke="#7f7f7f" fill="none" stroke-width="1.2" />
|
|
4
|
+
|
|
5
|
+
<!-- top drawer -->
|
|
6
|
+
<rect x="6" y="4" width="5" rx="0.5" height="4" stroke="#7f7f7f" fill="none" stroke-width="0.5" />
|
|
7
|
+
<rect x="7" y="6" width="3" rx="0.25" height="1" stroke="#7f7f7f" fill="none" stroke-width="0.25" />
|
|
8
|
+
|
|
9
|
+
<!-- control panel + buttons -->
|
|
10
|
+
<rect x="14" y="4" width="11" height="4" rx="0.5" fill="none" stroke="#7f7f7f" stroke-width="0.5" />
|
|
11
|
+
<rect
|
|
12
|
+
x="19"
|
|
13
|
+
y="5"
|
|
14
|
+
width="5"
|
|
15
|
+
height="2"
|
|
16
|
+
rx="0.25"
|
|
17
|
+
fill="#1976d2"
|
|
18
|
+
fill-opacity="0.5"
|
|
19
|
+
stroke="#7f7f7f"
|
|
20
|
+
stroke-width="0.25"
|
|
21
|
+
/>
|
|
22
|
+
<rect x="15" y="5" width="1" height="1" rx="0.25" fill="none" stroke="#7f7f7f" stroke-width="0.25" />
|
|
23
|
+
<rect x="16" y="5" width="1" height="1" rx="0.25" fill="none" stroke="#7f7f7f" stroke-width="0.25" />
|
|
24
|
+
<rect x="17" y="5" width="1" height="1" rx="0.25" fill="none" stroke="#7f7f7f" stroke-width="0.25" />
|
|
25
|
+
<rect x="15" y="6" width="1" height="1" rx="0.25" fill="none" stroke="#7f7f7f" stroke-width="0.25" />
|
|
26
|
+
<rect x="16" y="6" width="1" height="1" rx="0.25" fill="none" stroke="#7f7f7f" stroke-width="0.25" />
|
|
27
|
+
<rect x="17" y="6" width="1" height="1" rx="0.25" fill="none" stroke="#7f7f7f" stroke-width="0.25" />
|
|
28
|
+
|
|
29
|
+
<!-- drum handle -->
|
|
30
|
+
<rect class="handle" x="19" y="15.5" rx="1" width="3" height="3" fill="#7f7f7f" />
|
|
31
|
+
|
|
32
|
+
<!-- drum -->
|
|
33
|
+
<circle cx="15.5" cy="17" r="6.5" stroke="#7f7f7f" fill="none" stroke-width="1.2" />
|
|
34
|
+
</svg>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<!-- outer frame -->
|
|
3
|
+
<rect x="1" y="0.8" width="30" height="30.2" rx="0.5" stroke="#7f7f7f" fill="none" stroke-width="1.5" />
|
|
4
|
+
|
|
5
|
+
<!-- left window frame -->
|
|
6
|
+
<rect x="2.8" y="2.6" width="12.4" height="26.6" stroke="#7f7f7f" fill="none" stroke-width="1" />
|
|
7
|
+
|
|
8
|
+
<!-- left window divider -->
|
|
9
|
+
<rect x="3.66" y="15.65" width="10.68" height="0.5" stroke="#7f7f7f" fill="none" stroke-width="0.5" />
|
|
10
|
+
|
|
11
|
+
<!-- right window frame -->
|
|
12
|
+
<rect x="16.8" y="2.6" width="12.4" height="26.6" stroke="#7f7f7f" fill="none" stroke-width="1" />
|
|
13
|
+
|
|
14
|
+
<!-- right window divider -->
|
|
15
|
+
<rect x="17.66" y="15.65" width="10.68" height="0.5" stroke="#7f7f7f" fill="none" stroke-width="0.5" />
|
|
16
|
+
|
|
17
|
+
<!-- blind -->
|
|
18
|
+
<rect
|
|
19
|
+
class="c-blinds"
|
|
20
|
+
x="2.3"
|
|
21
|
+
y="2.1"
|
|
22
|
+
width="27.4"
|
|
23
|
+
height="27.6"
|
|
24
|
+
stroke="#808080"
|
|
25
|
+
fill="#808080"
|
|
26
|
+
stroke-width="0.5"
|
|
27
|
+
stroke-opacity="0.9"
|
|
28
|
+
fill-opacity="0.9"
|
|
29
|
+
/>
|
|
30
|
+
|
|
31
|
+
<!-- light -->
|
|
32
|
+
<rect
|
|
33
|
+
class="c-light"
|
|
34
|
+
x="2.05"
|
|
35
|
+
y="29.9"
|
|
36
|
+
width="27.9"
|
|
37
|
+
height="0"
|
|
38
|
+
stroke="#ffffff"
|
|
39
|
+
fill="#ffffff"
|
|
40
|
+
stroke-width="0.5"
|
|
41
|
+
stroke-opacity="0"
|
|
42
|
+
fill-opacity="0.5"
|
|
43
|
+
/>
|
|
44
|
+
</svg>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<!-- outer frame -->
|
|
3
|
+
<rect x="1" y="0.8" width="30" height="30.2" rx="0.5" stroke="#7f7f7f" fill="none" stroke-width="1.5" />
|
|
4
|
+
|
|
5
|
+
<!-- left window frame -->
|
|
6
|
+
<rect class="outline-left" x="2.8" y="2.6" width="12.4" height="26.6" stroke="#7f7f7f" fill="none" stroke-width="1" />
|
|
7
|
+
|
|
8
|
+
<!-- left window divider -->
|
|
9
|
+
<rect
|
|
10
|
+
class="divider-left"
|
|
11
|
+
x="3.66"
|
|
12
|
+
y="15.65"
|
|
13
|
+
width="10.68"
|
|
14
|
+
height="0.5"
|
|
15
|
+
stroke="#7f7f7f"
|
|
16
|
+
fill="none"
|
|
17
|
+
stroke-width="0.5"
|
|
18
|
+
/>
|
|
19
|
+
|
|
20
|
+
<!-- left window handle -->
|
|
21
|
+
<rect
|
|
22
|
+
class="handle-left"
|
|
23
|
+
x="15.16"
|
|
24
|
+
y="13.6"
|
|
25
|
+
width="0.1"
|
|
26
|
+
height="4.6"
|
|
27
|
+
stroke="#1976d2"
|
|
28
|
+
fill="none"
|
|
29
|
+
stroke-width="0.5"
|
|
30
|
+
/>
|
|
31
|
+
|
|
32
|
+
<!-- right window frame -->
|
|
33
|
+
<rect
|
|
34
|
+
class="outline-right"
|
|
35
|
+
x="16.8"
|
|
36
|
+
y="2.6"
|
|
37
|
+
width="12.4"
|
|
38
|
+
height="26.6"
|
|
39
|
+
stroke="#7f7f7f"
|
|
40
|
+
fill="none"
|
|
41
|
+
stroke-width="1"
|
|
42
|
+
/>
|
|
43
|
+
|
|
44
|
+
<!-- right window divider -->
|
|
45
|
+
<rect
|
|
46
|
+
class="divider-right"
|
|
47
|
+
x="17.66"
|
|
48
|
+
y="15.65"
|
|
49
|
+
width="10.68"
|
|
50
|
+
height="0.5"
|
|
51
|
+
stroke="#7f7f7f"
|
|
52
|
+
fill="none"
|
|
53
|
+
stroke-width="0.5"
|
|
54
|
+
/>
|
|
55
|
+
|
|
56
|
+
<!-- right window handle -->
|
|
57
|
+
<rect
|
|
58
|
+
class="handle-right"
|
|
59
|
+
x="16.76"
|
|
60
|
+
y="13.6"
|
|
61
|
+
width="0.1"
|
|
62
|
+
height="4.6"
|
|
63
|
+
stroke="#1976d2"
|
|
64
|
+
fill="none"
|
|
65
|
+
stroke-width="0.5"
|
|
66
|
+
/>
|
|
67
|
+
</svg>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as Z,c as G,d as k,e as j,f as D,g as K,j as $,m as A,p as J,q as Q,w as X,z as Y}from"./chunk-
|
|
1
|
+
import{A as Z,c as G,d as k,e as j,f as D,g as K,j as $,m as A,p as J,q as Q,w as X,z as Y}from"./chunk-KYB236MX.js";import{a as ae}from"./chunk-U52WKM74.js";import{b as oe}from"./chunk-ZO74PVYQ.js";import{b as re}from"./chunk-Z6DMMN6D.js";import{k as ie,m as U,n as ne}from"./chunk-2ZM2CO7S.js";import{a as ee,b as te}from"./chunk-FYDO54CR.js";import{m as q}from"./chunk-KLQ6BEKS.js";import{Ad as R,Cc as L,Dc as B,Ec as E,Hb as M,Ib as z,Ic as a,Jb as T,Jc as s,Ob as m,Pb as o,Qb as r,Rb as u,Xa as W,_b as I,ab as n,bc as x,dc as _,h as S,jd as H,la as w,mb as V,md as N,nc as O,qc as l,ra as C,rc as f,sa as b,sc as g,w as h}from"./chunk-645YHJEQ.js";var pe=t=>({background:t}),de=t=>({anim:t}),ce=t=>({"progress-bar-animated":t}),me=()=>["restoring","restarting","restore-complete"],P=(t,d)=>({"is-valid":t,"is-invalid":d});function ue(t,d){if(t&1){let e=I();o(0,"div",5)(1,"h4",6),l(2),a(3,"translate"),r(),u(4,"div",7),a(5,"translate"),o(6,"button",8),x("click",function(){C(e);let i=_();return b(i.onClickGettingStarted())}),l(7),a(8,"translate"),r(),o(9,"a",9),x("click",function(){C(e);let i=_();return b(i.onClickRestoreBackup())}),l(10),a(11,"translate"),r()()}t&2&&(n(2),f(s(3,4,"setup.welcome_to_homebridge")),n(2),m("innerHTML",s(5,6,"setup.intro"),W),n(3),g(" ",s(8,8,"setup.button_get_started")," "),n(3),f(s(11,10,"setup_wizard_restore")))}function ge(t,d){if(t&1){let e=I();o(0,"div",5)(1,"h4",6),l(2),a(3,"translate"),r(),o(4,"div",10),l(5),a(6,"translate"),r(),o(7,"div",11)(8,"form",12),x("ngSubmit",function(){C(e);let i=_();return b(i.createFirstUser())}),o(9,"div",13)(10,"span",14),u(11,"i",15),r(),u(12,"input",16),a(13,"translate"),r(),o(14,"div",13)(15,"span",14),u(16,"i",17),r(),u(17,"input",18),a(18,"translate"),r(),o(19,"div",13)(20,"span",14),u(21,"i",17),r(),u(22,"input",19),a(23,"translate"),r(),o(24,"div",20)(25,"button",21),x("click",function(){C(e);let i=_();return b(i.onClickCancelRestore())}),l(26),a(27,"translate"),r(),o(28,"button",22),l(29),a(30,"translate"),r()()()()()}if(t&2){let e=_();n(2),f(s(3,16,"setup.create_account")),n(3),f(s(6,18,"setup_wizard_create_info")),n(3),m("formGroup",e.createUserForm),n(4),m("readonly",e.loading)("ngClass",E(30,P,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.valid,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.invalid))("placeholder",s(13,20,"users.label_username")),n(5),m("readonly",e.loading)("ngClass",E(33,P,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.valid,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.errors))("placeholder",s(18,22,"users.label_password")),n(5),m("readonly",e.loading)("ngClass",E(36,P,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.valid,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.errors))("placeholder",s(23,24,"users.label_confirm_password")),n(3),m("disabled",e.restoreUploading),n(),g(" ",s(27,26,"form.button_back")," "),n(2),m("disabled",e.createUserForm.invalid||e.loading),n(),g(" ",s(30,28,"form.button_continue")," ")}}function _e(t,d){t&1&&(u(0,"i",25),l(1),a(2,"translate")),t&2&&(n(),g(" ",s(2,1,"backup.label_uploading")," "))}function fe(t,d){t&1&&(l(0),a(1,"translate")),t&2&&g(" ",s(1,1,"form.button_continue")," ")}function he(t,d){if(t&1){let e=I();o(0,"div",5)(1,"h4",6),l(2),a(3,"translate"),r(),o(4,"div",10),l(5),a(6,"translate"),r(),o(7,"input",23),x("change",function(i){C(e);let F=_();return b(F.handleRestoreFileInput(i.target.files))}),r(),o(8,"div",20)(9,"button",21),x("click",function(){C(e);let i=_();return b(i.onClickCancelRestore())}),l(10),a(11,"translate"),r(),o(12,"button",24),x("click",function(){C(e);let i=_();return b(i.onRestoreBackupClick())}),z(13,_e,3,3)(14,fe,2,3),r()()()}if(t&2){let e=_();n(2),f(s(3,6,"setup_wizard_restore")),n(3),f(s(6,8,"backup.restore_help_one")),n(4),m("disabled",e.restoreUploading),n(),g(" ",s(11,10,"form.button_back")," "),n(2),m("disabled",e.restoreUploading||!e.selectedFile),n(),T(e.restoreUploading?13:14)}}function we(t,d){t&1&&(l(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_restoring")," ")}function Ce(t,d){t&1&&(l(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_starting")," ")}function be(t,d){t&1&&(l(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_complete")," ")}function xe(t,d){t&1&&(o(0,"a",27),l(1),a(2,"translate"),r()),t&2&&(n(),g(" ",s(2,1,"form.button_continue")," "))}function ve(t,d){if(t&1&&(o(0,"div",5)(1,"h4",6),z(2,we,2,3)(3,Ce,2,3)(4,be,2,3),r(),u(5,"div",26),z(6,xe,3,3,"a",27),r()),t&2){let e=_();n(2),T(e.step==="restoring"?2:e.step==="restarting"?3:e.step==="restore-complete"?4:-1),n(4),T(e.step==="restore-complete"?6:-1)}}function ye(t,d){t&1&&(o(0,"div",5)(1,"h4",28),l(2),a(3,"translate"),r(),o(4,"div",10),l(5),a(6,"translate"),r(),o(7,"a",29),l(8),a(9,"translate"),r()()),t&2&&(n(2),f(s(3,3,"setup_wizard_complete_title")),n(3),f(s(6,5,"setup_wizard_completed")),n(3),g(" ",s(9,7,"form.button_continue")," "))}var He=(()=>{class t{$api=w(ne);$auth=w(oe);$settings=w(re);$title=w(q);$toastr=w(ie);$translate=w(ee);$ws=w(ae);io;step="welcome";backgroundStyle;progress=1;restoreInProgress=!1;restoreStarted=!1;restoreFailed=!1;loading=!1;selectedFile;restoreUploading=!1;createUserForm=new K({username:new $("",[k.required]),password:new $("",[k.compose([k.required,k.minLength(4)])]),passwordConfirm:new $("",[k.required])},this.matchPassword);ngOnInit(){return S(this,null,function*(){this.$title.setTitle(this.$translate.instant("setup_wizard_page_title")),yield this.setBackground()})}onClickGettingStarted(){this.step="create-account",this.progress=50}onClickRestoreBackup(){this.step="restore-backup",this.progress=20}onClickCancelRestore(){this.selectedFile=null,this.step="welcome",this.progress=1}createFirstUser(){return S(this,null,function*(){this.loading=!0,this.progress=75;let e=this.createUserForm.getRawValue();e.name=e.username;try{yield h(this.$api.post("/setup-wizard/create-first-user",e)),this.$settings.env.setupWizardComplete=!0,this.progress=100,this.loading=!1,yield this.$auth.login({username:e.username,password:e.password}),this.step="setup-complete"}catch(p){this.loading=!1,this.progress=50,console.error(p),this.$toastr.error(p.message,this.$translate.instant("toast.title_error"))}})}handleRestoreFileInput(e){e.length?(this.selectedFile=e[0],this.progress=40):(delete this.selectedFile,this.progress=20)}onRestoreBackupClick(){return S(this,null,function*(){this.restoreUploading=!0,this.step="restoring",this.progress=60;try{let e=yield h(this.$api.get("/setup-wizard/get-setup-wizard-token"));window.localStorage.setItem(U.jwt.tokenKey,e.access_token),this.$auth.token=e.access_token,this.progress=65;let p=new FormData;p.append("restoreArchive",this.selectedFile,this.selectedFile.name),yield h(this.$api.post("/backup/restore",p)),this.progress=70,this.io=this.$ws.connectToNamespace("backup");let i=document.getElementById("output");this.io.socket.on("stdout",c=>{c.split(`
|
|
2
2
|
\r`).forEach(v=>{if(v&&!/^[⠇⠏⠋⠙⠹⠸]+$/.test(v)){let y=document.createElement("div"),le=/\x1B\[(\d{1,2}(;\d{1,2})?)?[mGK]/g;y.innerHTML=v.replace(le,""),v.includes("[0;31m")?y.classList.add("red-text"):v.includes("[0;32m")?y.classList.add("green-text"):v.includes("[0;33m")?y.classList.add("orange-text"):v.includes("[0;36m")&&y.classList.add("cyan-text"),i.appendChild(y),i.scrollTop=i.scrollHeight}})}),this.restoreStarted=!0,this.restoreInProgress=!0,this.progress=75,yield h(this.io.request("do-restore")),this.progress=80,this.restoreInProgress=!1,yield h(this.$api.put("/backup/restart",{})),this.step="restarting",this.progress=85,window.localStorage.removeItem(U.jwt.tokenKey),this.$auth.token=null;let F=document.createElement("div");F.classList.add("orange-text"),F.innerHTML="Starting Homebridge, please wait...",i.appendChild(F),i.scrollTop=i.scrollHeight,yield new Promise(c=>setTimeout(c,3e3)),this.progress=88,yield new Promise(c=>setTimeout(c,3e3)),this.progress=91,yield new Promise(c=>setTimeout(c,3e3)),this.progress=94,yield new Promise(c=>setTimeout(c,3e3)),this.progress=97,yield new Promise(c=>setTimeout(c,3e3)),this.progress=99;let se=setInterval(()=>S(this,null,function*(){try{yield h(this.$api.get("/auth/settings")),clearInterval(se),this.progress=100,this.restoreUploading=!1,this.step="restore-complete"}catch{}}),1e3)}catch(e){console.error(e),this.restoreUploading=!1,this.restoreFailed=!0,this.progress=20,this.step="restore-backup",this.$toastr.error(e.message,this.$translate.instant("toast.title_error"))}finally{this.io&&this.io.end()}})}setBackground(){return S(this,null,function*(){if(this.$settings.settingsLoaded||(yield h(this.$settings.onSettingsLoaded)),this.$settings.env.customWallpaperHash){let e=`${U.api.base}/auth/wallpaper/${this.$settings.env.customWallpaperHash}`;this.backgroundStyle=`url('${e}') center/cover`}})}matchPassword(e){let p=e.get("password").value,i=e.get("passwordConfirm").value;if(p!==i)e.get("passwordConfirm").setErrors({matchPassword:!0});else return null}static \u0275fac=function(p){return new(p||t)};static \u0275cmp=V({type:t,selectors:[["ng-component"]],decls:10,vars:14,consts:[[1,"setup-container","gradient","d-flex","align-items-start","justify-content-center",3,"ngStyle","ngClass"],[1,"w-100","setup-card","d-flex","py-4","flex-column"],["ngSrc","/assets/homebridge-color-round.svg","alt","Homebridge Logo","height","100","width","100","priority","true",1,"homebridge-logo","mx-auto","my-3"],[1,"progress","w-100","my-4"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","bg-success",3,"ngClass"],[1,"w-100","d-flex","flex-column","align-items-center","mb-2"],[1,"mb-3","text-center"],[1,"mb-4","small","grey-text","text-center",3,"innerHTML"],["type","button",1,"btn","btn-lg","btn-primary","mb-4",3,"click"],["href","javascript:void(0)",1,"grey-text",3,"click"],[1,"mb-4","small","grey-text","text-center"],[1,"w-100"],["novalidate","",3,"ngSubmit","formGroup"],[1,"input-group","mb-4"],[1,"input-group-text","custom-input"],[1,"fas","fa-fw","fa-user","primary-text","fa-lg"],["formControlName","username","type","text","id","form-username","autocomplete","username","autocapitalize","none","tabindex","1","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],[1,"fas","fa-fw","fa-lock","primary-text","fa-lg"],["formControlName","password","type","password","id","form-pass","autocomplete","new-password","tabindex","2","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],["formControlName","passwordConfirm","type","password","id","form-pass-confirm","autocomplete","new-password","tabindex","2","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],[1,"mt-3","w-100","d-flex","justify-content-between"],["type","button",1,"btn","btn-elegant","ms-0",3,"click","disabled"],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","file","id","restoreFileUpload","accept","application/gzip, .gz",1,"form-control","custom-input","mb-3",3,"change"],["type","button",1,"btn","btn-primary","me-0",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],["id","output",1,"font-monospace","small","alert","alert-info","w-100","text-start","mt-1","mb-0"],["href","/login",1,"btn","btn-lg","btn-primary","mt-4"],[1,"mb-3"],["href","/",1,"btn","btn-lg","btn-primary"]],template:function(p,i){p&1&&(o(0,"div",0)(1,"div",1),u(2,"img",2),o(3,"div",3),u(4,"div",4),r(),z(5,ue,12,12,"div",5)(6,ge,31,39,"div",5)(7,he,15,12,"div",5)(8,ve,7,2,"div",5)(9,ye,10,9,"div",5),r()()),p&2&&(m("ngStyle",B(7,pe,i.backgroundStyle))("ngClass",B(9,de,!i.backgroundStyle)),n(4),O("width",i.progress+"%"),m("ngClass",B(11,ce,i.loading||i.restoreUploading)),M("aria-valuenow",i.progress),n(),T(i.step==="welcome"?5:i.step==="create-account"?6:i.step==="restore-backup"?7:L(13,me).includes(i.step)?8:i.step==="setup-complete"?9:-1))},dependencies:[H,R,Y,A,G,j,D,X,Z,J,Q,N,te],styles:["body{overflow:scroll!important} body.dark-mode .setup-card{background-color:#2b2b2b;color:#fff}.setup-container[_ngcontent-%COMP%]{z-index:-1;padding-top:2em;padding-bottom:2em;min-height:100%;background-size:300% 300%}.anim[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_gradient 20s ease infinite;-moz-animation:gradient 20s ease infinite;-o-animation:gradient 20s ease infinite;animation:_ngcontent-%COMP%_gradient 20s ease infinite}@keyframes _ngcontent-%COMP%_gradient{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.setup-card[_ngcontent-%COMP%]{max-width:550px;border-radius:1rem;padding-right:25px;padding-left:25px;background-color:#ffffffe6}.setup-card[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{background-color:inherit!important}@media screen and (max-width: 575px){.setup-card[_ngcontent-%COMP%]{margin-left:1em;margin-right:1em}}.homebridge-logo[_ngcontent-%COMP%]{margin-bottom:10px}.progress[_ngcontent-%COMP%]{background-color:#ddd}#output[_ngcontent-%COMP%]{height:200px;overflow-y:scroll;white-space:pre-wrap}"]})}return t})();export{He as SetupWizardComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as u,g as n}from"./chunk-
|
|
1
|
+
import{d as u,g as n}from"./chunk-6HJHVJPI.js";import{k as l,n as d}from"./chunk-2ZM2CO7S.js";import{a as f}from"./chunk-FYDO54CR.js";import"./chunk-KLQ6BEKS.js";import{ga as p,h as m,ha as i,la as o,nb as s,w as c}from"./chunk-645YHJEQ.js";var a=(()=>{class r{$api=o(d);$router=o(u);$toastr=o(l);$translate=o(f);resolve(){return m(this,null,function*(){try{return yield c(this.$api.get("/users"))}catch(t){console.error(t),this.$toastr.error(t.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(e){return new(e||r)};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})();var h=[{path:"",loadComponent:()=>import("./chunk-73PB5ERF.js").then(r=>r.UsersComponent),resolve:{homebridgeUsers:a}}],v=(()=>{class r{static \u0275fac=function(e){return new(e||r)};static \u0275mod=s({type:r});static \u0275inj=i({imports:[n.forChild(h),n]})}return r})();var T=(()=>{class r{static \u0275fac=function(e){return new(e||r)};static \u0275mod=s({type:r});static \u0275inj=i({providers:[a],imports:[v]})}return r})();export{T as UsersModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as ft,n as gt}from"./chunk-KLQ6BEKS.js";import{Gb as M,Hb as E,Ob as l,Pb as h,Qb as p,Rb as F,Vb as Y,Wa as ht,Wb as K,Xa as q,_b as Q,a as u,ab as r,ac as mt,b as T,bc as j,db as dt,dc as c,e as It,ga as C,gb as y,ha as lt,ja as ct,ka as w,la as _,ld as J,ma as ut,mb as G,n as g,nb as pt,nc as A,pc as m,qc as f,ra as V,sa as z,sb as S,sc as b,ua as N,va as Z,vb as U,za as O}from"./chunk-645YHJEQ.js";var Tt=It((De,Ut)=>{Ut.exports={name:"homebridge-config-ui-x",displayName:"Homebridge UI",version:"5.4.0",description:"A web based management, configuration and control platform for Homebridge.",author:"oznu <dev@oz.nu>",license:"MIT",funding:[{type:"github",url:"https://github.com/sponsors/oznu"},{type:"paypal",url:"https://paypal.me/oznu"}],repository:{type:"git",url:"git+https://github.com/homebridge/homebridge-config-ui-x.git"},bugs:{url:"https://github.com/homebridge/homebridge-config-ui-x/issues"},keywords:["homebridge-plugin","ui","gui","web","homebridge","homebridge-config-ui-x","ui-x","config-ui-x","homebridge-x","homebridge server","homebridge ui","homebridge-ui","homebridge gui","homebridge-gui","web interface","config ui","management","config editor","linux","macOS","osx","windows","raspberry pi","accessory control","smart home","hb-service"],main:"./dist/index.js",bin:{"hb-service":"dist/bin/hb-service.js"},engines:{node:"^20.19.0 || ^22.12.0 || ^24.0.0",homebridge:"^1.8.0 || ^2.0.0-beta.0"},scripts:{build:"npm run build:server && npm run build:ui","build:server":"rimraf dist && tsc -p tsconfig.build.json","build:ui":"npm run build --prefix ui",check:"npm run check:server && npm run check:ui","check:server":"npm install && npm outdated","check:ui":"npm install --prefix ui && npm outdated --prefix ui","lang-sync":"ts-node scripts/lang-sync.ts",lint:"eslint . --max-warnings=0","lint:fix":"npm run lint -- --fix",prepublishOnly:"npm i --package-lock-only && npm run lint && npm run build",start:"ts-node -r tsconfig-paths/register src/main.ts",test:"vitest run","test-coverage":"npm run test -- --coverage","upgrade-install":"./scripts/upgrade-install.sh",watch:'concurrently "npm run watch:ui" "npm run watch:server"',"watch:server":"nodemon","watch:ui":"npm run start --prefix ui"},dependencies:{"@fastify/helmet":"13.0.1","@fastify/multipart":"9.0.3","@fastify/static":"8.2.0","@homebridge/hap-client":"3.1.1","@homebridge/node-pty-prebuilt-multiarch":"0.13.1","@nestjs/axios":"4.0.1","@nestjs/common":"11.1.5","@nestjs/core":"11.1.5","@nestjs/jwt":"11.0.0","@nestjs/passport":"11.0.5","@nestjs/platform-fastify":"11.1.5","@nestjs/platform-socket.io":"11.1.5","@nestjs/swagger":"11.2.0","@nestjs/websockets":"11.1.5",axios:"1.11.0","bash-color":"0.0.4","class-transformer":"0.5.1","class-validator":"0.14.2",commander:"14.0.0",dayjs:"1.11.13",fastify:"5.4.0","fs-extra":"11.3.0",jsonwebtoken:"9.0.2",lodash:"4.17.21","node-cache":"5.1.2","node-schedule":"2.1.1",ora:"8.2.0",otplib:"12.0.1","p-limit":"6.2.0",passport:"0.7.0","passport-jwt":"4.0.1","reflect-metadata":"0.2.2",rxjs:"7.8.2",semver:"7.7.2",systeminformation:"5.27.7",tail:"2.2.6",tar:"7.4.3","tcp-port-used":"1.0.2",unzipper:"0.12.3"},devDependencies:{"@antfu/eslint-config":"^5.1.0","@nestjs/testing":"^11.1.5","@prettier/plugin-xml":"^3.4.2","@types/fs-extra":"^11.0.4","@types/lodash":"^4.17.20","@types/node":"^24.1.0","@types/node-schedule":"^2.1.8","@types/passport-jwt":"^4.0.1","@types/semver":"^7.7.0","@types/tail":"^2.2.3","@types/tcp-port-used":"^1.0.4","@types/unzipper":"^0.10.11","@vitest/coverage-v8":"^3.2.4",concurrently:"^9.2.0","eslint-plugin-format":"^1.0.1","form-data":"^4.0.4",nodemon:"^3.1.10",rimraf:"^6.0.1","ts-loader":"^9.5.2","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0",typescript:"^5.9.2","unplugin-swc":"^1.5.5",vitest:"^3.2.4"},maintainers:[{email:"bwp91@icloud.com",name:"bwp91"},{email:"dev@oz.nu",name:"oznu"},{email:"northern.man1@gmail.com",name:"northernman"},{email:"mail@anderl-bauer.de",name:"supereg"},{email:"khaos.tian@gmail.com",name:"khaost"},{email:"erik.baauw@xs4all.nl",name:"ebaauw"},{email:"donavan.becker@icloud.com",name:"donavanbecker"},{email:"dustin.greif@gmail.com",name:"dustin.greif"},{email:"nfarina@gmail.com",name:"nfarina"}],scarfSettings:{enabled:!1}}});var v=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(v||{}),xt="*";function tt(i,s){return{type:v.Trigger,name:i,definitions:s,options:{}}}function P(i,s=null){return{type:v.Animate,styles:s,timings:i}}function Yt(i,s=null){return{type:v.Sequence,steps:i,options:s}}function R(i){return{type:v.Style,styles:i,offset:null}}function H(i,s,t){return{type:v.State,name:i,styles:s,options:t}}function B(i,s,t=null){return{type:v.Transition,expr:i,animation:s,options:t}}var W=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(s=0,t=0){this.totalTime=s+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(s=>s()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(s){this._position=this.totalTime?s*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(s){let t=s=="start"?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}},X=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(s){this.players=s;let t=0,e=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==o&&this._onFinish()}),a.onDestroy(()=>{++e==o&&this._onDestroy()}),a.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,d)=>Math.max(a,d.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this.players.forEach(s=>s.init())}onStart(s){this._onStartFns.push(s)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(s=>s()),this._onStartFns=[])}onDone(s){this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(s=>s.play())}pause(){this.players.forEach(s=>s.pause())}restart(){this.players.forEach(s=>s.restart())}finish(){this._onFinish(),this.players.forEach(s=>s.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(s=>s.destroy()),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this.players.forEach(s=>s.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(s){let t=s*this.totalTime;this.players.forEach(e=>{let n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let s=this.players.reduce((t,e)=>t===null||e.totalTime>t.totalTime?e:t,null);return s!=null?s.getPosition():0}beforeDestroy(){this.players.forEach(s=>{s.beforeDestroy&&s.beforeDestroy()})}triggerCallback(s){let t=s=="start"?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}},Ot="!";var _t=["toast-component",""];function Et(i,s){if(i&1){let t=Q();h(0,"button",5),j("click",function(){V(t);let n=c();return z(n.remove())}),h(1,"span",6),f(2,"\xD7"),p()()}}function Ft(i,s){if(i&1&&(Y(0),f(1),K()),i&2){let t=c(2);r(),b("[",t.duplicatesCount+1,"]")}}function jt(i,s){if(i&1&&(h(0,"div"),f(1),S(2,Ft,2,1,"ng-container",4),p()),i&2){let t=c();m(t.options.titleClass),E("aria-label",t.title),r(),b(" ",t.title," "),r(),l("ngIf",t.duplicatesCount)}}function At(i,s){if(i&1&&F(0,"div",7),i&2){let t=c();m(t.options.messageClass),l("innerHTML",t.message,q)}}function Rt(i,s){if(i&1&&(h(0,"div",8),f(1),p()),i&2){let t=c();m(t.options.messageClass),E("aria-label",t.message),r(),b(" ",t.message," ")}}function Ht(i,s){if(i&1&&(h(0,"div"),F(1,"div",9),p()),i&2){let t=c();r(),A("width",t.width()+"%")}}function kt(i,s){if(i&1){let t=Q();h(0,"button",5),j("click",function(){V(t);let n=c();return z(n.remove())}),h(1,"span",6),f(2,"\xD7"),p()()}}function Nt(i,s){if(i&1&&(Y(0),f(1),K()),i&2){let t=c(2);r(),b("[",t.duplicatesCount+1,"]")}}function Mt(i,s){if(i&1&&(h(0,"div"),f(1),S(2,Nt,2,1,"ng-container",4),p()),i&2){let t=c();m(t.options.titleClass),E("aria-label",t.title),r(),b(" ",t.title," "),r(),l("ngIf",t.duplicatesCount)}}function Pt(i,s){if(i&1&&F(0,"div",7),i&2){let t=c();m(t.options.messageClass),l("innerHTML",t.message,q)}}function Bt(i,s){if(i&1&&(h(0,"div",8),f(1),p()),i&2){let t=c();m(t.options.messageClass),E("aria-label",t.message),r(),b(" ",t.message," ")}}function $t(i,s){if(i&1&&(h(0,"div"),F(1,"div",9),p()),i&2){let t=c();r(),A("width",t.width()+"%")}}var et=class{_attachedHost;component;viewContainerRef;injector;constructor(s,t){this.component=s,this.injector=t}attach(s,t){return this._attachedHost=s,s.attach(this,t)}detach(){let s=this._attachedHost;if(s)return this._attachedHost=void 0,s.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(s){this._attachedHost=s}},it=class{_attachedPortal;_disposeFn;attach(s,t){return this._attachedPortal=s,this.attachComponentPortal(s,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(s){this._disposeFn=s}},st=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new g;_activate=new g;_manualClose=new g;_resetTimeout=new g;_countDuplicate=new g;constructor(s){this._overlayRef=s}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(s,t){s&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},D=class{toastId;config;message;title;toastType;toastRef;_onTap=new g;_onAction=new g;constructor(s,t,e,n,o,a){this.toastId=s,this.config=t,this.message=e,this.title=n,this.toastType=o,this.toastRef=a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(s){this._onAction.next(s)}onAction(){return this._onAction.asObservable()}},vt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},yt=new ct("ToastConfig"),nt=class extends it{_hostDomElement;_componentFactoryResolver;_appRef;constructor(s,t,e){super(),this._hostDomElement=s,this._componentFactoryResolver=t,this._appRef=e}attachComponentPortal(s,t){let e=this._componentFactoryResolver.resolveComponentFactory(s.component),n;return n=e.create(s.injector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(n),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(n)),n}_getComponentRootNode(s){return s.hostView.rootNodes[0]}},Lt=(()=>{class i{_document=_(Z);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(e){return new(e||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),ot=class{_portalHost;constructor(s){this._portalHost=s}attach(s,t=!0){return this._portalHost.attach(s,t)}detach(){return this._portalHost.detach()}},Vt=(()=>{class i{_overlayContainer=_(Lt);_componentFactoryResolver=_(dt);_appRef=_(M);_document=_(Z);_paneElements=new Map;create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){let n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new nt(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new ot(this._createPortalHost(t))}static \u0275fac=function(e){return new(e||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),bt=(()=>{class i{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,e,n,o,a){this.overlay=e,this._injector=n,this.sanitizer=o,this.ngZone=a,this.toastrConfig=u(u({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=u(u({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},o=""){return this._preBuildNotification(o,t,e,this.applyConfig(n))}success(t,e,n={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}error(t,e,n={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}info(t,e,n={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}warning(t,e,n={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}clear(t){for(let e of this.toasts)if(t!==void 0){if(e.toastId===t){e.toastRef.manualClose();return}}else e.toastRef.manualClose()}remove(t){let e=this._findToast(t);if(!e||(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let n=this.toasts[this.currentlyActive].toastRef;n.isInactive()||(this.currentlyActive=this.currentlyActive+1,n.activate())}return!0}findDuplicate(t="",e="",n,o){let{includeTitleDuplicates:a}=this.toastrConfig;for(let d of this.toasts){let k=a&&d.title===t;if((!a||k)&&d.message===e)return d.toastRef.onDuplicate(n,o),d}return null}applyConfig(t={}){return u(u({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,n,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,n,o)):this._buildNotification(t,e,n,o)}_buildNotification(t,e,n,o){if(!o.toastComponent)throw new Error("toastComponent required");let a=this.findDuplicate(n,e,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||e)&&this.toastrConfig.preventDuplicates&&a!==null)return a;this.previousToastMessage=e;let d=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(d=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let k=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let rt=e;e&&o.enableHtml&&(rt=this.sanitizer.sanitize(ht.HTML,e));let x=new st(k),$=new D(this.index,o,rt,n,t,x),Ct=[{provide:D,useValue:$}],wt=N.create({providers:Ct,parent:this._injector}),Dt=new et(o.toastComponent,wt),at=k.attach(Dt,o.newestOnTop);x.componentInstance=at.instance;let L={toastId:this.index,title:n||"",message:e||"",toastRef:x,onShown:x.afterActivate(),onHidden:x.afterClosed(),onTap:$.onTap(),onAction:$.onAction(),portal:at};return d||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{L.toastRef.activate()})),this.toasts.push(L),L}static \u0275fac=function(e){return new(e||i)(w(yt),w(Vt),w(N),w(gt),w(U))};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),zt=(()=>{class i{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=O(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=O({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>T(u({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(n=>100-n),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>T(u({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>T(u({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(e){return new(e||i)(y(bt),y(D),y(U))};static \u0275cmp=G({type:i,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,n){e&1&&j("click",function(){return n.tapToast()})("mouseenter",function(){return n.stickAround()})("mouseleave",function(){return n.delayedHideToast()}),e&2&&(mt("@flyInOut",n._state),m(n.toastClasses),A("display",n.displayStyle))},attrs:_t,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,n){e&1&&S(0,Et,3,0,"button",0)(1,jt,3,5,"div",1)(2,At,1,3,"div",2)(3,Rt,2,4,"div",3)(4,Ht,2,2,"div",4),e&2&&(l("ngIf",n.options.closeButton),r(),l("ngIf",n.title),r(),l("ngIf",n.message&&n.options.enableHtml),r(),l("ngIf",n.message&&!n.options.enableHtml),r(),l("ngIf",n.options.progressBar))},dependencies:[J],encapsulation:2,data:{animation:[tt("flyInOut",[H("inactive",R({opacity:0})),H("active",R({opacity:1})),H("removed",R({opacity:0})),B("inactive => active",P("{{ easeTime }}ms {{ easing }}")),B("active => removed",P("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return i})(),Zt=T(u({},vt),{toastComponent:zt}),qt=(i={})=>ut([{provide:yt,useValue:{default:Zt,config:i}}]),be=(()=>{class i{static forRoot(t={}){return{ngModule:i,providers:[qt(t)]}}static \u0275fac=function(e){return new(e||i)};static \u0275mod=pt({type:i});static \u0275inj=lt({})}return i})();var Gt=(()=>{class i{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=O(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=O("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.appRef=n,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(n=>100-n),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(e){return new(e||i)(y(bt),y(D),y(M))};static \u0275cmp=G({type:i,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,n){e&1&&j("click",function(){return n.tapToast()})("mouseenter",function(){return n.stickAround()})("mouseleave",function(){return n.delayedHideToast()}),e&2&&(m(n.toastClasses),A("display",n.displayStyle))},attrs:_t,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,n){e&1&&S(0,kt,3,0,"button",0)(1,Mt,3,5,"div",1)(2,Pt,1,3,"div",2)(3,Bt,2,4,"div",3)(4,$t,2,2,"div",4),e&2&&(l("ngIf",n.options.closeButton),r(),l("ngIf",n.title),r(),l("ngIf",n.message&&n.options.enableHtml),r(),l("ngIf",n.message&&!n.options.enableHtml),r(),l("ngIf",n.options.progressBar))},dependencies:[J],encapsulation:2,changeDetection:0})}return i})(),Te=T(u({},vt),{toastComponent:Gt});var I={serverTarget:Tt().version,production:!0,socket:"",api:{base:"/api",socket:`${window.location.protocol==="http:"?"ws://":"wss://"}${window.location.host}`,origin:window.location.origin},jwt:{tokenKey:"access_token",allowedDomains:[document.location.host],disallowedRoutes:[`${window.location.protocol}//${document.location.host}/api/auth/login`]},apiHttpOptions:{},owm:{appid:"fec67b55f7f74deaa28df89ba6a60821"}};var Fe=(()=>{class i{$http=_(ft);get(t,e){return this.$http.get(`${I.api.base}${t}`,e)}post(t,e,n){return this.$http.post(`${I.api.base}${t}`,e,n)}put(t,e,n){return this.$http.put(`${I.api.base}${t}`,e,n)}patch(t,e,n){return this.$http.patch(`${I.api.base}${t}`,e,n)}delete(t,e){return this.$http.delete(`${I.api.base}${t}`,e)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();export{v as a,xt as b,tt as c,P as d,Yt as e,R as f,B as g,W as h,X as i,Ot as j,bt as k,be as l,I as m,Fe as n};
|