homebridge-config-ui-x 5.0.0-beta.99 → 5.0.1-beta.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 +122 -5
- package/config.schema.json +1 -1
- package/dist/core/auth/auth.controller.d.ts +4 -0
- package/dist/core/config/config.service.d.ts +8 -0
- package/dist/core/config/config.service.js +2 -0
- package/dist/core/config/config.service.js.map +1 -1
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -1
- package/dist/modules/backup/backup.controller.d.ts +1 -0
- package/dist/modules/backup/backup.controller.js +11 -0
- package/dist/modules/backup/backup.controller.js.map +1 -1
- package/dist/modules/backup/backup.service.d.ts +1 -0
- package/dist/modules/backup/backup.service.js +19 -5
- package/dist/modules/backup/backup.service.js.map +1 -1
- package/dist/modules/child-bridges/child-bridges.service.d.ts +1 -5
- package/dist/modules/child-bridges/child-bridges.service.js +2 -8
- package/dist/modules/child-bridges/child-bridges.service.js.map +1 -1
- package/dist/modules/config-editor/config-editor.service.js +2 -1
- package/dist/modules/config-editor/config-editor.service.js.map +1 -1
- package/dist/modules/platform-tools/docker/docker.service.js +8 -2
- package/dist/modules/platform-tools/docker/docker.service.js.map +1 -1
- package/dist/modules/plugins/plugins.controller.d.ts +2 -0
- package/dist/modules/plugins/plugins.controller.js +1 -1
- package/dist/modules/plugins/plugins.controller.js.map +1 -1
- package/dist/modules/plugins/plugins.service.d.ts +3 -0
- package/dist/modules/plugins/plugins.service.js +81 -47
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/dist/modules/server/server.controller.d.ts +5 -0
- package/dist/modules/server/server.controller.js +25 -0
- package/dist/modules/server/server.controller.js.map +1 -1
- package/dist/modules/server/server.service.d.ts +9 -1
- package/dist/modules/server/server.service.js +97 -21
- package/dist/modules/server/server.service.js.map +1 -1
- package/dist/modules/status/status.gateway.d.ts +6 -0
- package/dist/modules/status/status.gateway.js +14 -0
- package/dist/modules/status/status.gateway.js.map +1 -1
- package/dist/modules/status/status.service.d.ts +26 -0
- package/dist/modules/status/status.service.js +112 -0
- package/dist/modules/status/status.service.js.map +1 -1
- package/package.json +13 -13
- package/public/3rdpartylicenses.txt +214 -187
- package/public/assets/hap-icons/{airpurifier.svg → air-purifier.svg} +11 -11
- package/public/assets/hap-icons/doorbell.svg +17 -0
- package/public/assets/hap-icons/filter-maintenance.svg +26 -0
- package/public/assets/hap-icons/microphone.svg +22 -0
- package/public/assets/hap-icons/security-system-active.svg +103 -0
- package/public/assets/hap-icons/{smokesensor.svg → smoke-sensor.svg} +15 -2
- package/public/assets/hap-icons/speaker.svg +27 -12
- package/public/assets/hap-icons/vacuum-off.svg +34 -0
- package/public/assets/hap-icons/vacuum-on.svg +73 -0
- package/public/chunk-22J4EY4Y.js +1 -0
- package/public/chunk-23Y7BPAN.js +1 -0
- package/public/{chunk-B3LZRDAG.js → chunk-2CKLKY5R.js} +1 -1
- package/public/chunk-2LZEASRE.js +1 -0
- package/public/chunk-2ZIMN6HQ.js +23 -0
- package/public/chunk-3UCLNJIE.js +1 -0
- package/public/chunk-3ZPN5PPV.js +1 -0
- package/public/{chunk-XHI7IAUN.js → chunk-4AJSXM5Z.js} +1 -1
- package/public/chunk-4M5IBLFU.js +1 -0
- package/public/chunk-4QBSVR54.js +1 -0
- package/public/chunk-6VMMFEEB.js +1 -0
- package/public/chunk-6ZV74JJX.js +1 -0
- package/public/chunk-77L2MCKQ.js +8 -0
- package/public/chunk-7HL2NUIE.js +1 -0
- package/public/chunk-7NKVE7MW.js +1 -0
- package/public/chunk-ACNBCUWA.js +1 -0
- package/public/chunk-B3ZMTQUC.js +28 -0
- package/public/{chunk-GMY5QOXR.js → chunk-BG5MCCBU.js} +6 -6
- package/public/chunk-BWV3SD3Z.js +1 -0
- package/public/chunk-C3HWKB2Q.js +5 -0
- package/public/chunk-CHYWVK3W.js +1 -0
- package/public/{chunk-BRW7C4BZ.js → chunk-CXP6VKNZ.js} +1 -1
- package/public/chunk-D5MSFLIQ.js +1 -0
- package/public/chunk-DCXDGRPU.js +1 -0
- package/public/chunk-EI76KND2.js +2 -0
- package/public/chunk-EKGJ3N4Y.js +1 -0
- package/public/chunk-F754W3WB.js +1 -0
- package/public/chunk-FDBWBMB3.js +1 -0
- package/public/{chunk-2G7GNBIF.js → chunk-GEIS2BWE.js} +1 -1
- package/public/chunk-HOWJDZVR.js +1 -0
- package/public/{chunk-IOWBVW62.js → chunk-HUAADM2I.js} +1 -1
- package/public/chunk-HVI3LFAL.js +1 -0
- package/public/chunk-IJVDEEEM.js +1 -0
- package/public/chunk-J2WQQ5XA.js +4 -0
- package/public/{chunk-WAA5KWIN.js → chunk-J7Q5BUJW.js} +1 -1
- package/public/chunk-JO7II7GX.js +1 -0
- package/public/chunk-LM66QCFN.js +1 -0
- package/public/chunk-LYUKIQWV.js +1 -0
- package/public/chunk-ME25VZ4V.js +1 -0
- package/public/chunk-MHB4GJLL.js +1 -0
- package/public/chunk-PQPAXVOA.js +1 -0
- package/public/chunk-PXYSYTXG.js +3 -0
- package/public/chunk-Q4CZ7LVK.js +2 -0
- package/public/{chunk-RNHMRKPJ.js → chunk-QIOCGI3G.js} +5 -5
- package/public/chunk-QTTC6A7P.js +1 -0
- package/public/{chunk-QMB5XE4Y.js → chunk-R3563DDE.js} +1 -1
- package/public/chunk-REKXMGJU.js +5 -0
- package/public/chunk-RSFLPDGU.js +1 -0
- package/public/chunk-RZBLN3JA.js +2 -0
- package/public/chunk-TANPXHFU.js +1 -0
- package/public/chunk-TGV7QZLC.js +1 -0
- package/public/{chunk-UVOJ3BF7.js → chunk-THGDS273.js} +1 -1
- package/public/{chunk-YJXHSHNO.js → chunk-TXNH42IW.js} +1 -1
- package/public/chunk-ULJPS3WS.js +7 -0
- package/public/chunk-VAZOOXJZ.js +20 -0
- package/public/{chunk-UTAVUGTT.js → chunk-WDFAWIMZ.js} +7 -7
- package/public/chunk-WFYBML4S.js +1 -0
- package/public/chunk-WK5S4AAU.js +1 -0
- package/public/chunk-XIPV6S2E.js +1 -0
- package/public/chunk-XSYDRPRP.js +1 -0
- package/public/chunk-XYW3RCJ2.js +1 -0
- package/public/chunk-YJ2Q2RAD.js +1 -0
- package/public/chunk-YKDYWWHU.js +12 -0
- package/public/chunk-YUBK6BVK.js +1 -0
- package/public/chunk-YZBWQAXL.js +4 -0
- package/public/index.html +2 -2
- package/public/main-HHD5K3CT.js +1 -0
- package/public/{styles-PKR3EGHP.css → styles-ZKWHTEN5.css} +1 -1
- package/scripts/upgrade-install-plugin.sh +6 -1
- package/public/chunk-2CDSAOHD.js +0 -1
- package/public/chunk-2OUR67N4.js +0 -1
- package/public/chunk-3CYHPVRJ.js +0 -1
- package/public/chunk-3DF7CHZW.js +0 -1
- package/public/chunk-5F327T7H.js +0 -1
- package/public/chunk-6CNQKPV4.js +0 -1
- package/public/chunk-AF2VUIEE.js +0 -1
- package/public/chunk-ALG7CIS3.js +0 -5
- package/public/chunk-BGDBPFZN.js +0 -1
- package/public/chunk-BIRWL4X3.js +0 -1
- package/public/chunk-BMCQHGMB.js +0 -1
- package/public/chunk-BSGFKU4J.js +0 -4
- package/public/chunk-C6A3CFIK.js +0 -1
- package/public/chunk-C6LXQBT3.js +0 -1
- package/public/chunk-CG7LPZUJ.js +0 -1
- package/public/chunk-CLQDCNVA.js +0 -2
- package/public/chunk-CMO7ESK6.js +0 -8
- package/public/chunk-DDFZVHUO.js +0 -1
- package/public/chunk-DGIKPYZP.js +0 -8
- package/public/chunk-DNW5N3YO.js +0 -1
- package/public/chunk-EGELGD5H.js +0 -1
- package/public/chunk-EJBJOBK4.js +0 -1
- package/public/chunk-F4KGCHEZ.js +0 -1
- package/public/chunk-FATD52DV.js +0 -1
- package/public/chunk-FXS45ML3.js +0 -1
- package/public/chunk-G6KG4MKA.js +0 -1
- package/public/chunk-GTAHH5HN.js +0 -1
- package/public/chunk-HLTIIGIP.js +0 -1
- package/public/chunk-HLTWQSH5.js +0 -1
- package/public/chunk-IORHLUIJ.js +0 -1
- package/public/chunk-JADR4A63.js +0 -1
- package/public/chunk-KAUSPTCQ.js +0 -23
- package/public/chunk-KCQQTZKO.js +0 -5
- package/public/chunk-L3HD45SY.js +0 -6
- package/public/chunk-LDLWF7GI.js +0 -1
- package/public/chunk-LHL5TI6S.js +0 -1
- package/public/chunk-LX47K6J2.js +0 -1
- package/public/chunk-M2H64FFG.js +0 -1
- package/public/chunk-OAQSXFHE.js +0 -1
- package/public/chunk-ODU3K7H7.js +0 -1
- package/public/chunk-P3KVHPZJ.js +0 -1
- package/public/chunk-P64V4GHS.js +0 -29
- package/public/chunk-PI76B7WZ.js +0 -1
- package/public/chunk-PNSPASX3.js +0 -1
- package/public/chunk-PODF4FUD.js +0 -1
- package/public/chunk-PUIKXI6O.js +0 -1
- package/public/chunk-QIH36FRX.js +0 -1
- package/public/chunk-QMAGO5VD.js +0 -20
- package/public/chunk-R3VPSO5X.js +0 -7
- package/public/chunk-RFFIRBUY.js +0 -1
- package/public/chunk-RLGSRK2P.js +0 -1
- package/public/chunk-RN4NDBWE.js +0 -1
- package/public/chunk-U2HZ2JFO.js +0 -1
- package/public/chunk-VA5XNGEK.js +0 -1
- package/public/chunk-VHTQTL2S.js +0 -1
- package/public/chunk-VJEUBTTK.js +0 -1
- package/public/chunk-VLX322GM.js +0 -1
- package/public/chunk-VUYAK52W.js +0 -2
- package/public/chunk-X6PEPNG4.js +0 -1
- package/public/chunk-XP6B4WXR.js +0 -1
- package/public/chunk-XUH357B7.js +0 -1
- package/public/chunk-Y4QFUO3K.js +0 -1
- package/public/chunk-YZCEDH6X.js +0 -1
- package/public/chunk-YZWIZGAQ.js +0 -1
- package/public/chunk-ZF22CBM2.js +0 -1
- package/public/chunk-ZIBK7SYP.js +0 -1
- package/public/chunk-ZLCELPBH.js +0 -1
- package/public/chunk-ZMYR3JWC.js +0 -1
- package/public/main-AS7ULDAC.js +0 -1
- /package/public/assets/hap-icons/{airquality.svg → air-quality-sensor.svg} +0 -0
- /package/public/assets/hap-icons/{co2-sensor.svg → carbon-dioxide-sensor.svg} +0 -0
- /package/public/assets/hap-icons/{co-sensor.svg → carbon-monoxide-sensor.svg} +0 -0
- /package/public/assets/hap-icons/{contactsensor-closed.svg → contact-sensor-closed.svg} +0 -0
- /package/public/assets/hap-icons/{contactsensor-open.svg → contact-sensor-open.svg} +0 -0
- /package/public/assets/hap-icons/{garagedoor.svg → garage-door.svg} +0 -0
- /package/public/assets/hap-icons/{humidity.svg → humidity-sensor.svg} +0 -0
- /package/public/assets/hap-icons/{leaksensor.svg → leak-sensor.svg} +0 -0
- /package/public/assets/hap-icons/{lightbulb.svg → light-bulb.svg} +0 -0
- /package/public/assets/hap-icons/{light.svg → light-sensor.svg} +0 -0
- /package/public/assets/hap-icons/{motionsensor.svg → motion-sensor.svg} +0 -0
- /package/public/assets/hap-icons/{occupancysensor.svg → occupancy-sensor.svg} +0 -0
- /package/public/assets/hap-icons/{securitysystem-off.svg → security-system-off.svg} +0 -0
- /package/public/assets/hap-icons/{securitysystem-active.svg → security-system-triggered.svg} +0 -0
- /package/public/assets/hap-icons/{statelessprogrammableswitch.svg → stateless-programmable-switch.svg} +0 -0
- /package/public/assets/hap-icons/{valve-waterfaucet.svg → valve-faucet.svg} +0 -0
- /package/public/assets/hap-icons/{valve-showerhead.svg → valve-shower-head.svg} +0 -0
- /package/public/assets/hap-icons/{windowcovering-closed.svg → window-covering-closed.svg} +0 -0
- /package/public/assets/hap-icons/{windowcovering-open.svg → window-covering-open.svg} +0 -0
- /package/public/{polyfills-GCAZ7JAV.js → polyfills-WE4HA5DL.js} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
width="32px"
|
|
3
|
+
height="32px"
|
|
4
|
+
viewBox="0 0 32 32"
|
|
5
|
+
version="1.1"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
8
|
+
>
|
|
9
|
+
<g>
|
|
10
|
+
<title>microphone</title>
|
|
11
|
+
<!-- Intercom outer casing -->
|
|
12
|
+
<rect x="6" y="1" width="18" height="30" rx="3" stroke="#7F7F7F" fill="none" stroke-width="2.0" />
|
|
13
|
+
|
|
14
|
+
<!-- Microphone grille lines -->
|
|
15
|
+
<line x1="10" y1="6" x2="20" y2="6" stroke="#7F7F7F" stroke-width="2.0" />
|
|
16
|
+
<line x1="10" y1="10" x2="20" y2="10" stroke="#7F7F7F" stroke-width="2.0" />
|
|
17
|
+
<line x1="10" y1="14" x2="20" y2="14" stroke="#7F7F7F" stroke-width="2.0" />
|
|
18
|
+
|
|
19
|
+
<!-- Microphone button -->
|
|
20
|
+
<circle cx="15" cy="23" r="3" stroke="#7F7F7F" stroke-width="2.0" fill="#1976d2" fill-opacity="0.3" />
|
|
21
|
+
</g>
|
|
22
|
+
</svg>
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg
|
|
4
|
+
version="1.1"
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
7
|
+
preserveAspectRatio="xMidYMid meet"
|
|
8
|
+
viewBox="0 0 485 410"
|
|
9
|
+
width="485"
|
|
10
|
+
height="410"
|
|
11
|
+
>
|
|
12
|
+
<defs>
|
|
13
|
+
<path
|
|
14
|
+
d="M170.94 317.5C157.13 317.5 145.94 328.69 145.94 342.5C145.94 345.83 145.94 362.5 145.94 392.5L467.19 392.5C467.19 362.5 467.19 345.83 467.19 342.5C467.19 328.69 456 317.5 442.19 317.5C433.39 317.5 284.59 317.5 170.94 317.5Z"
|
|
15
|
+
id="d5qI6nbAnR"
|
|
16
|
+
/>
|
|
17
|
+
<path
|
|
18
|
+
d="M287.66 17.5C251.41 17.5 220.35 43.43 213.88 79.09C211.04 94.98 196.86 174.45 171.34 317.5L416.79 317.5C391.27 174.45 377.1 94.98 374.26 79.09C367.78 43.43 336.71 17.5 300.46 17.5C297.9 17.5 288.94 17.5 287.66 17.5Z"
|
|
19
|
+
id="djkaoyeRK"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M330 105C323.1 105 317.5 110.6 317.5 117.5C317.5 124.4 323.1 130 330 130C336.9 130 342.5 124.4 342.5 117.5C342.5 110.6 336.9 105 330 105Z"
|
|
23
|
+
id="djWmFz4iV"
|
|
24
|
+
/>
|
|
25
|
+
<path
|
|
26
|
+
d="M307.07 5.22L310.18 5.5L313.26 5.89L316.31 6.38L319.33 6.98L322.31 7.68L325.25 8.48L328.15 9.38L331.01 10.37L333.83 11.46L336.6 12.65L339.32 13.93L342 15.3L344.62 16.76L347.18 18.3L349.69 19.93L352.14 21.64L354.53 23.44L356.85 25.31L359.11 27.27L361.31 29.29L363.43 31.4L365.48 33.57L367.46 35.82L369.36 38.14L371.19 40.52L372.93 42.97L374.6 45.48L376.18 48.06L377.67 50.7L379.07 53.39L380.39 56.14L381.61 58.95L382.73 61.81L383.76 64.72L384.7 67.68L385.53 70.69L386.25 73.75L386.87 76.85L427.57 305L442.5 305L444.04 305.03L445.57 305.12L447.08 305.28L448.57 305.49L450.05 305.76L451.5 306.09L452.93 306.48L454.34 306.91L455.72 307.41L457.08 307.95L458.41 308.55L459.72 309.19L460.99 309.89L462.24 310.63L463.45 311.41L464.63 312.24L465.78 313.12L466.89 314.04L467.97 315L469 316L470 317.03L470.96 318.11L471.88 319.22L472.76 320.37L473.59 321.55L474.37 322.76L475.11 324.01L475.81 325.28L476.45 326.59L477.05 327.92L477.59 329.28L478.09 330.66L478.52 332.07L478.91 333.5L479.24 334.95L479.51 336.43L479.72 337.92L479.88 339.43L479.97 340.96L480 342.5L480 392.5L479.99 393.02L479.96 393.53L479.91 394.03L479.84 394.53L479.75 395.02L479.64 395.5L479.51 395.98L479.36 396.45L479.2 396.91L479.02 397.37L478.82 397.81L478.6 398.24L478.37 398.67L478.13 399.08L477.86 399.49L477.59 399.88L477.3 400.26L476.99 400.63L476.67 400.99L476.34 401.34L475.99 401.67L475.63 401.99L475.26 402.3L474.88 402.59L474.49 402.86L474.08 403.13L473.67 403.37L473.24 403.6L472.81 403.82L472.37 404.02L471.91 404.2L471.45 404.36L470.98 404.51L470.5 404.64L470.02 404.75L469.53 404.84L469.03 404.91L468.53 404.96L468.02 404.99L467.5 405L17.5 405L16.98 404.99L16.47 404.96L15.97 404.91L15.47 404.84L14.98 404.75L14.5 404.64L14.02 404.51L13.55 404.36L13.09 404.2L12.63 404.02L12.19 403.82L11.76 403.6L11.33 403.37L10.92 403.13L10.51 402.86L10.12 402.59L9.74 402.3L9.37 401.99L9.01 401.67L8.66 401.34L8.33 400.99L8.01 400.63L7.7 400.26L7.41 399.88L7.13 399.49L6.87 399.08L6.63 398.67L6.4 398.24L6.18 397.81L5.98 397.37L5.8 396.91L5.64 396.45L5.49 395.98L5.36 395.5L5.25 395.02L5.16 394.53L5.09 394.03L5.04 393.53L5.01 393.02L5 392.5L5 342.5L5.03 340.96L5.12 339.43L5.28 337.92L5.49 336.43L5.76 334.95L6.09 333.5L6.48 332.07L6.91 330.66L7.41 329.28L7.95 327.92L8.55 326.59L9.19 325.28L9.89 324.01L10.63 322.76L11.41 321.55L12.24 320.37L13.12 319.22L14.04 318.11L15 317.03L16 316L17.03 315L18.11 314.04L19.22 313.12L20.37 312.24L21.55 311.41L22.76 310.63L24.01 309.89L25.28 309.19L26.59 308.55L27.92 307.95L29.28 307.41L30.66 306.91L32.07 306.48L33.5 306.09L34.95 305.76L36.43 305.49L37.92 305.28L39.43 305.12L40.96 305.03L42.5 305L57.43 305L98.13 76.89L98.75 73.79L99.48 70.73L100.31 67.72L101.24 64.75L102.27 61.84L103.39 58.98L104.61 56.17L105.93 53.41L107.33 50.72L108.82 48.08L110.4 45.5L112.07 42.99L113.81 40.53L115.63 38.15L117.54 35.83L119.52 33.58L121.57 31.41L123.69 29.3L125.88 27.27L128.14 25.32L130.47 23.44L132.86 21.65L135.31 19.93L137.82 18.3L140.38 16.76L143 15.3L145.67 13.93L148.39 12.65L151.17 11.47L153.98 10.37L156.84 9.38L159.75 8.48L162.69 7.68L165.67 6.98L168.68 6.38L171.73 5.89L174.82 5.5L177.93 5.22L181.06 5.06L184.23 5L300.78 5L303.94 5.06L307.07 5.22ZM41.99 330.01L41.48 330.04L40.97 330.09L40.48 330.16L39.98 330.25L39.5 330.36L39.02 330.49L38.55 330.64L38.09 330.8L37.64 330.98L37.2 331.18L36.76 331.4L36.34 331.63L35.92 331.88L35.52 332.14L35.12 332.41L34.74 332.71L34.37 333.01L34.01 333.33L33.67 333.67L33.33 334.01L33.01 334.37L32.71 334.74L32.41 335.12L32.14 335.52L31.88 335.92L31.63 336.34L31.4 336.76L31.18 337.2L30.98 337.64L30.8 338.09L30.64 338.55L30.49 339.02L30.36 339.5L30.25 339.98L30.16 340.48L30.09 340.97L30.04 341.48L30.01 341.99L30 342.5L30 380L455 380L455 342.5L454.99 341.99L454.96 341.48L454.91 340.97L454.84 340.48L454.75 339.98L454.64 339.5L454.51 339.02L454.36 338.55L454.2 338.09L454.02 337.64L453.82 337.2L453.6 336.76L453.37 336.34L453.12 335.92L452.86 335.52L452.59 335.12L452.29 334.74L451.99 334.37L451.67 334.01L451.33 333.67L450.99 333.33L450.63 333.01L450.26 332.71L449.88 332.41L449.48 332.14L449.08 331.88L448.66 331.63L448.24 331.4L447.8 331.18L447.36 330.98L446.91 330.8L446.45 330.64L445.98 330.49L445.5 330.36L445.02 330.25L444.52 330.16L444.03 330.09L443.52 330.04L443.01 330.01L442.5 330L42.5 330L41.99 330.01ZM182.71 30.03L181.2 30.13L179.68 30.29L178.17 30.51L176.65 30.8L175.13 31.15L173.61 31.57L172.09 32.05L170.57 32.6L169.05 33.21L167.52 33.88L165.99 34.62L164.47 35.42L162.94 36.29L161.41 37.22L159.88 38.21L158.34 39.27L156.81 40.39L155.27 41.58L153.74 42.83L152.2 44.15L150.66 45.52L149.12 46.97L147.58 48.48L146.04 50.05L144.49 51.68L142.95 53.38L141.4 55.15L139.85 56.98L138.3 58.87L136.75 60.82L135.2 62.84L133.65 64.93L132.09 67.08L130.53 69.29L128.98 71.57L127.42 73.91L125.86 76.32L124.3 78.79L122.74 81.32L82.83 305L402.17 305L362.27 81.28L361.83 79.07L361.31 76.89L360.71 74.74L360.05 72.63L359.32 70.55L358.51 68.51L357.64 66.51L356.7 64.54L355.7 62.62L354.63 60.74L353.5 58.9L352.32 57.11L351.07 55.36L349.77 53.66L348.41 52.01L346.99 50.4L345.53 48.85L344.01 47.35L342.45 45.9L340.83 44.5L339.17 43.17L337.46 41.89L335.71 40.66L333.92 39.5L332.09 38.4L330.22 37.35L328.31 36.38L326.37 35.46L324.39 34.62L322.38 33.84L320.33 33.12L318.26 32.48L316.16 31.91L314.03 31.41L311.87 30.99L309.7 30.63L307.5 30.36L305.27 30.16L303.03 30.04L300.78 30L184.23 30L182.71 30.03Z"
|
|
27
|
+
id="a8tK7qlUXs"
|
|
28
|
+
/>
|
|
29
|
+
<path
|
|
30
|
+
d="M351.96 164.33C350.73 157.53 344.21 153.02 337.43 154.26C330.64 155.5 326.13 162 327.36 168.8C329.2 178.89 343.87 259.64 345.7 269.73C346.94 276.58 353.5 281.03 360.23 279.8C367.03 278.56 371.53 272.06 370.3 265.27C366.63 245.08 353.79 174.42 351.96 164.33Z"
|
|
31
|
+
id="dFkilpBi1"
|
|
32
|
+
/>
|
|
33
|
+
</defs>
|
|
34
|
+
<g>
|
|
35
|
+
<g>
|
|
36
|
+
<g>
|
|
37
|
+
<use xlink:href="#d5qI6nbAnR" opacity="1" fill="#57555c" fill-opacity="1" />
|
|
38
|
+
<g>
|
|
39
|
+
<use
|
|
40
|
+
xlink:href="#d5qI6nbAnR"
|
|
41
|
+
opacity="1"
|
|
42
|
+
fill-opacity="0"
|
|
43
|
+
stroke="#000000"
|
|
44
|
+
stroke-width="1"
|
|
45
|
+
stroke-opacity="0"
|
|
46
|
+
/>
|
|
47
|
+
</g>
|
|
48
|
+
</g>
|
|
49
|
+
<g>
|
|
50
|
+
<use xlink:href="#djkaoyeRK" opacity="1" fill="#ffcf55" fill-opacity="1" />
|
|
51
|
+
<g>
|
|
52
|
+
<use
|
|
53
|
+
xlink:href="#djkaoyeRK"
|
|
54
|
+
opacity="1"
|
|
55
|
+
fill-opacity="0"
|
|
56
|
+
stroke="#000000"
|
|
57
|
+
stroke-width="1"
|
|
58
|
+
stroke-opacity="0"
|
|
59
|
+
/>
|
|
60
|
+
</g>
|
|
61
|
+
</g>
|
|
62
|
+
<g>
|
|
63
|
+
<use xlink:href="#djWmFz4iV" opacity="1" fill="#000000" fill-opacity="1" />
|
|
64
|
+
<g>
|
|
65
|
+
<use
|
|
66
|
+
xlink:href="#djWmFz4iV"
|
|
67
|
+
opacity="1"
|
|
68
|
+
fill-opacity="0"
|
|
69
|
+
stroke="#000000"
|
|
70
|
+
stroke-width="1"
|
|
71
|
+
stroke-opacity="0"
|
|
72
|
+
/>
|
|
73
|
+
</g>
|
|
74
|
+
</g>
|
|
75
|
+
<g>
|
|
76
|
+
<use xlink:href="#a8tK7qlUXs" opacity="1" fill="#000000" fill-opacity="1" />
|
|
77
|
+
<g>
|
|
78
|
+
<use
|
|
79
|
+
xlink:href="#a8tK7qlUXs"
|
|
80
|
+
opacity="1"
|
|
81
|
+
fill-opacity="0"
|
|
82
|
+
stroke="#000000"
|
|
83
|
+
stroke-width="1"
|
|
84
|
+
stroke-opacity="0"
|
|
85
|
+
/>
|
|
86
|
+
</g>
|
|
87
|
+
</g>
|
|
88
|
+
<g>
|
|
89
|
+
<use xlink:href="#dFkilpBi1" opacity="1" fill="#000000" fill-opacity="1" />
|
|
90
|
+
<g>
|
|
91
|
+
<use
|
|
92
|
+
xlink:href="#dFkilpBi1"
|
|
93
|
+
opacity="1"
|
|
94
|
+
fill-opacity="0"
|
|
95
|
+
stroke="#000000"
|
|
96
|
+
stroke-width="1"
|
|
97
|
+
stroke-opacity="0"
|
|
98
|
+
/>
|
|
99
|
+
</g>
|
|
100
|
+
</g>
|
|
101
|
+
</g>
|
|
102
|
+
</g>
|
|
103
|
+
</svg>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
>
|
|
12
12
|
<desc>Created with Fabric.js 4.6.0</desc>
|
|
13
13
|
<defs />
|
|
14
|
-
<g
|
|
14
|
+
<g
|
|
15
15
|
transform="matrix(1 0 0 1 250 125)"
|
|
16
16
|
id="Ly0Zljdh6uDT129kqPq2c"
|
|
17
17
|
opacity="1"
|
|
@@ -27,7 +27,20 @@
|
|
|
27
27
|
stroke-linecap="round"
|
|
28
28
|
/>
|
|
29
29
|
</g>
|
|
30
|
-
<g
|
|
30
|
+
<g transform="matrix(1 0 0 1 250 100)" fill="#ffffff" class="label-text">
|
|
31
|
+
<text
|
|
32
|
+
text-anchor="middle"
|
|
33
|
+
dominant-baseline="middle"
|
|
34
|
+
font-family="Arial"
|
|
35
|
+
font-size="100"
|
|
36
|
+
font-weight="bold"
|
|
37
|
+
x="0"
|
|
38
|
+
y="0"
|
|
39
|
+
>
|
|
40
|
+
SMOKE
|
|
41
|
+
</text>
|
|
42
|
+
</g>
|
|
43
|
+
<g
|
|
31
44
|
transform="matrix(1 0 0 1 249.09 329.19)"
|
|
32
45
|
id="1bkxD90ICefRta9rtUGNo"
|
|
33
46
|
opacity="1"
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
2
1
|
<svg
|
|
3
2
|
width="32px"
|
|
4
3
|
height="32px"
|
|
@@ -6,26 +5,42 @@
|
|
|
6
5
|
version="1.1"
|
|
7
6
|
xmlns="http://www.w3.org/2000/svg"
|
|
8
7
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
9
|
-
xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"
|
|
10
8
|
>
|
|
11
|
-
<!-- Created with Method Draw, but modified - http://github.com/duopixel/Method-Draw/ -->
|
|
12
|
-
<g>
|
|
13
|
-
<title>background</title>
|
|
14
|
-
<rect fill="none" id="canvas_background" height="34" width="34" y="-1" x="-1" />
|
|
15
|
-
<g display="none" overflow="visible" y="0" x="0" height="100%" width="100%" id="canvasGrid">
|
|
16
|
-
<rect fill="url(#gridpattern)" stroke-width="0" y="0" x="0" height="100%" width="100%" />
|
|
17
|
-
</g>
|
|
18
|
-
</g>
|
|
19
9
|
<g>
|
|
20
10
|
<title>speaker</title>
|
|
11
|
+
<!-- Speaker path -->
|
|
21
12
|
<path
|
|
22
13
|
stroke="#7F7F7F"
|
|
23
|
-
id="
|
|
24
|
-
d="m2.63366,10.44981l0,11.04296l6.25803,0l8.3897,7.72829l0,-26.49955l-8.38553,7.7283l-6.26221,
|
|
14
|
+
id="speaker"
|
|
15
|
+
d="m2.63366,10.44981l0,11.04296l6.25803,0l8.3897,7.72829l0,-26.49955l-8.38553,7.7283l-6.26221,0z"
|
|
16
|
+
fill-opacity="null"
|
|
17
|
+
stroke-opacity="null"
|
|
18
|
+
stroke-width="2.0"
|
|
19
|
+
fill="none"
|
|
20
|
+
/>
|
|
21
|
+
|
|
22
|
+
<!-- First wave -->
|
|
23
|
+
<path
|
|
24
|
+
stroke="none"
|
|
25
|
+
id="wave1"
|
|
26
|
+
d="m21.86025,22.54724c1.7013,-1.70615 2.7538,-4.07114 2.75518,-6.67943c0.00138,-2.60829 -1.05806,-4.98158 -2.75796,-6.68786"
|
|
27
|
+
fill-opacity="null"
|
|
28
|
+
stroke-opacity="null"
|
|
29
|
+
stroke-width="2.0"
|
|
30
|
+
fill="none"
|
|
31
|
+
class="wave"
|
|
32
|
+
/>
|
|
33
|
+
|
|
34
|
+
<!-- Second wave -->
|
|
35
|
+
<path
|
|
36
|
+
stroke="none"
|
|
37
|
+
id="wave2"
|
|
38
|
+
d="m25.06092,26.02826c2.51718,-2.53001 4.07787,-6.03471 4.07506,-9.89195c0.00141,-3.86001 -1.55925,-7.3675 -4.08062,-9.8947"
|
|
25
39
|
fill-opacity="null"
|
|
26
40
|
stroke-opacity="null"
|
|
27
41
|
stroke-width="2.0"
|
|
28
42
|
fill="none"
|
|
43
|
+
class="wave"
|
|
29
44
|
/>
|
|
30
45
|
</g>
|
|
31
46
|
</svg>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
width="32px"
|
|
3
|
+
height="32px"
|
|
4
|
+
viewBox="0 0 32 32"
|
|
5
|
+
version="1.1"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
8
|
+
>
|
|
9
|
+
<g transform="translate(0, 5)">
|
|
10
|
+
<title>robot-hoover-3d-full-width</title>
|
|
11
|
+
|
|
12
|
+
<!-- Top ellipse (more circular, wider to fill width) -->
|
|
13
|
+
<ellipse cx="16" cy="10" rx="14" ry="8.4" stroke="#7F7F7F" stroke-width="1.75" fill="none" />
|
|
14
|
+
|
|
15
|
+
<!-- Side walls (shortened, shifted outwards to match wider top) -->
|
|
16
|
+
<line x1="2" y1="10" x2="2" y2="16" stroke="#7F7F7F" stroke-width="1.75" />
|
|
17
|
+
<line x1="30" y1="10" x2="30" y2="16" stroke="#7F7F7F" stroke-width="1.75" />
|
|
18
|
+
|
|
19
|
+
<!-- Bottom arc of base (wider and matching top ellipse width) -->
|
|
20
|
+
<path d="M2,16 A14,6.9 0 0,0 30,16" stroke="#7F7F7F" stroke-width="1.75" fill="none" />
|
|
21
|
+
|
|
22
|
+
<!-- Sensor ring with blue fill -->
|
|
23
|
+
<ellipse cx="16" cy="10" rx="4.2" ry="2.5" stroke="#7F7F7F" stroke-width="1" fill="#1976d2" fill-opacity="0.3" />
|
|
24
|
+
|
|
25
|
+
<!-- Small dot button -->
|
|
26
|
+
<circle cx="16" cy="15" r="0.9" fill="#7F7F7F" />
|
|
27
|
+
|
|
28
|
+
<!-- Smaller whisker brushes -->
|
|
29
|
+
<line x1="2" y1="16" x2="0.5" y2="18.5" stroke="#7F7F7F" stroke-width="1" />
|
|
30
|
+
<line x1="2" y1="16" x2="0.5" y2="14" stroke="#7F7F7F" stroke-width="1" />
|
|
31
|
+
<line x1="30" y1="16" x2="31.5" y2="18.5" stroke="#7F7F7F" stroke-width="1" />
|
|
32
|
+
<line x1="30" y1="16" x2="31.5" y2="14" stroke="#7F7F7F" stroke-width="1" />
|
|
33
|
+
</g>
|
|
34
|
+
</svg>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
width="32px"
|
|
3
|
+
height="32px"
|
|
4
|
+
viewBox="0 0 32 32"
|
|
5
|
+
version="1.1"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
8
|
+
>
|
|
9
|
+
<defs>
|
|
10
|
+
<!-- Clip lines to the top part, above robot back (approx y=5) -->
|
|
11
|
+
<clipPath id="motionClip">
|
|
12
|
+
<rect x="0" y="-0.5" width="32" height="8" />
|
|
13
|
+
</clipPath>
|
|
14
|
+
</defs>
|
|
15
|
+
|
|
16
|
+
<g transform="translate(0, 5)">
|
|
17
|
+
<!-- Robot shape -->
|
|
18
|
+
<ellipse cx="16" cy="10" rx="14" ry="8.4" stroke="#7F7F7F" stroke-width="1.75" fill="none" />
|
|
19
|
+
<line x1="2" y1="10" x2="2" y2="16" stroke="#7F7F7F" stroke-width="1.75" />
|
|
20
|
+
<line x1="30" y1="10" x2="30" y2="16" stroke="#7F7F7F" stroke-width="1.75" />
|
|
21
|
+
<path d="M2,16 A14,6.9 0 0,0 30,16" stroke="#7F7F7F" stroke-width="1.75" fill="none" />
|
|
22
|
+
<ellipse cx="16" cy="10" rx="4.2" ry="2.5" stroke="#7F7F7F" stroke-width="1" fill="#1976d2" fill-opacity="0.3" />
|
|
23
|
+
<circle cx="16" cy="15" r="0.9" fill="#7F7F7F" />
|
|
24
|
+
<line x1="2" y1="16" x2="0.5" y2="18.5" stroke="#7F7F7F" stroke-width="1" />
|
|
25
|
+
<line x1="2" y1="16" x2="0.5" y2="14" stroke="#7F7F7F" stroke-width="1" />
|
|
26
|
+
<line x1="30" y1="16" x2="31.5" y2="18.5" stroke="#7F7F7F" stroke-width="1" />
|
|
27
|
+
<line x1="30" y1="16" x2="31.5" y2="14" stroke="#7F7F7F" stroke-width="1" />
|
|
28
|
+
</g>
|
|
29
|
+
|
|
30
|
+
<g clip-path="url(#motionClip)" stroke="#7F7F7F" stroke-linecap="round">
|
|
31
|
+
<!-- Left middle line -->
|
|
32
|
+
<line x1="12" y1="8" x2="12" y2="14" stroke-width="2.1" opacity="0">
|
|
33
|
+
<animate attributeName="y1" values="8;0" dur="3s" begin="0.3s" repeatCount="indefinite" />
|
|
34
|
+
<animate attributeName="y2" values="14;6" dur="3s" begin="0.3s" repeatCount="indefinite" />
|
|
35
|
+
<animate
|
|
36
|
+
attributeName="opacity"
|
|
37
|
+
values="0;1;1;0"
|
|
38
|
+
keyTimes="0;0.2;0.8;1"
|
|
39
|
+
dur="3s"
|
|
40
|
+
begin="0.3s"
|
|
41
|
+
repeatCount="indefinite"
|
|
42
|
+
/>
|
|
43
|
+
</line>
|
|
44
|
+
|
|
45
|
+
<!-- Middle line -->
|
|
46
|
+
<line x1="16" y1="8" x2="16" y2="14" stroke-width="2.5" opacity="0">
|
|
47
|
+
<animate attributeName="y1" values="8;0" dur="3s" begin="0.6s" repeatCount="indefinite" />
|
|
48
|
+
<animate attributeName="y2" values="14;6" dur="3s" begin="0.6s" repeatCount="indefinite" />
|
|
49
|
+
<animate
|
|
50
|
+
attributeName="opacity"
|
|
51
|
+
values="0;1;1;0"
|
|
52
|
+
keyTimes="0;0.2;0.8;1"
|
|
53
|
+
dur="3s"
|
|
54
|
+
begin="0.6s"
|
|
55
|
+
repeatCount="indefinite"
|
|
56
|
+
/>
|
|
57
|
+
</line>
|
|
58
|
+
|
|
59
|
+
<!-- Right middle line -->
|
|
60
|
+
<line x1="20" y1="8" x2="20" y2="14" stroke-width="2.1" opacity="0">
|
|
61
|
+
<animate attributeName="y1" values="8;0" dur="3s" begin="0.9s" repeatCount="indefinite" />
|
|
62
|
+
<animate attributeName="y2" values="14;6" dur="3s" begin="0.9s" repeatCount="indefinite" />
|
|
63
|
+
<animate
|
|
64
|
+
attributeName="opacity"
|
|
65
|
+
values="0;1;1;0"
|
|
66
|
+
keyTimes="0;0.2;0.8;1"
|
|
67
|
+
dur="3s"
|
|
68
|
+
begin="0.9s"
|
|
69
|
+
repeatCount="indefinite"
|
|
70
|
+
/>
|
|
71
|
+
</line>
|
|
72
|
+
</g>
|
|
73
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-XYW3RCJ2.js";import"./chunk-2CKLKY5R.js";import{g as r}from"./chunk-GEIS2BWE.js";import"./chunk-4AJSXM5Z.js";import"./chunk-IJVDEEEM.js";import"./chunk-R3563DDE.js";import"./chunk-Q4CZ7LVK.js";import{ha as o,nb as e}from"./chunk-ULJPS3WS.js";var c=[{path:"",loadComponent:()=>import("./chunk-TGV7QZLC.js").then(t=>t.SettingsComponent),canActivate:[n]}],m=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=e({type:t});static \u0275inj=o({imports:[r.forChild(c),r]})}return t})();var l=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=e({type:t});static \u0275inj=o({imports:[m]})}return t})();export{l as SettingsModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Ee}from"./chunk-FDBWBMB3.js";import{l as Me,n as Y}from"./chunk-B3ZMTQUC.js";import{a as z}from"./chunk-WDFAWIMZ.js";import"./chunk-HUAADM2I.js";import{a as Ve}from"./chunk-THGDS273.js";import"./chunk-77L2MCKQ.js";import"./chunk-BG5MCCBU.js";import"./chunk-QIOCGI3G.js";import"./chunk-EI76KND2.js";import"./chunk-J7Q5BUJW.js";import{a as Te}from"./chunk-CHYWVK3W.js";import{g as xe,h as we,i as Pe,j as ye,k as Se,l as Be,m as D,n as R,t as G}from"./chunk-C3HWKB2Q.js";import{A as ve,c as ce,e as ue,f as me,g as ge,j as fe,m as _e,p as he,q as Ce,z as be}from"./chunk-WFYBML4S.js";import{a as X}from"./chunk-TXNH42IW.js";import"./chunk-2CKLKY5R.js";import{a as ke,d as Ie}from"./chunk-GEIS2BWE.js";import{b as K}from"./chunk-4AJSXM5Z.js";import{k as Q,n as J}from"./chunk-IJVDEEEM.js";import{a as W,b as B}from"./chunk-R3563DDE.js";import"./chunk-Q4CZ7LVK.js";import{$b as F,Ac as ie,Dc as V,Ec as I,Fc as se,Hb as y,Hc as r,Ib as g,Ic as s,Jb as f,Jc as M,Lb as U,Mb as q,Nb as L,Ob as b,Pb as o,Qb as l,Rb as c,Sb as A,Tb as j,Ub as E,Xa as H,Ya as T,Za as ae,_b as w,ab as n,bc as _,cc as Z,dc as m,h as k,hc as oe,ic as le,id as $,jc as re,la as P,ld as de,mb as S,pc as ee,pd as pe,qc as p,ra as v,rc as h,sa as x,sc as C,w as N}from"./chunk-ULJPS3WS.js";var ze=t=>({pluginName:t});function Oe(t,d){t&1&&(o(0,"ul",7)(1,"li"),p(2),r(3,"translate"),l(),o(4,"li"),p(5),r(6,"translate"),l()()),t&2&&(n(2),h(s(3,2,"plugins.manage.confirm_disable_accessory_1")),n(3),h(s(6,4,"plugins.manage.confirm_disable_accessory_2")))}function Ue(t,d){t&1&&(o(0,"ul",7)(1,"li"),p(2),r(3,"translate"),l(),o(4,"li"),p(5),r(6,"translate"),l()()),t&2&&(n(2),h(s(3,2,"plugins.manage.confirm_disable_platform_1")),n(3),h(s(6,4,"plugins.manage.confirm_disable_platform_2")))}var $e=(()=>{class t{$activeModal=P(D);pluginName;isConfigured=!1;isConfiguredDynamicPlatform=!1;dismissModal(){this.$activeModal.dismiss("Dismiss")}closeModal(){this.$activeModal.close()}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=S({type:t,selectors:[["ng-component"]],inputs:{pluginName:"pluginName",isConfigured:"isConfigured",isConfiguredDynamicPlatform:"isConfiguredDynamicPlatform"},decls:26,vars:22,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3","text-center"],[1,"fas","fa-fw","fa-circle-pause","primary-text",2,"font-size","75px"],[1,"mb-3"],["type","warning",1,"mb-0",3,"dismissible"],[1,"w-100","text-center","mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click"]],template:function(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"h5",2),p(3),l(),o(4,"button",3),r(5,"translate"),_("click",function(){return i.dismissModal()}),l()(),o(6,"div",4)(7,"div",5),c(8,"i",6),l(),g(9,Oe,7,6,"ul",7),g(10,Ue,7,6,"ul",7),o(11,"ngb-alert",8)(12,"p",9),p(13),r(14,"translate"),l()()(),o(15,"div",10)(16,"div",11)(17,"button",12),r(18,"translate"),_("click",function(){return i.dismissModal()}),p(19),r(20,"translate"),l()(),c(21,"div",13),o(22,"div",14)(23,"button",15),_("click",function(){return i.closeModal()}),p(24),r(25,"translate"),l()()()()),a&2&&(n(3),h(i.pluginName),n(),y("aria-label",s(5,9,"form.button_close")),n(5),f(i.isConfigured&&!i.isConfiguredDynamicPlatform?9:-1),n(),f(i.isConfigured&&i.isConfiguredDynamicPlatform?10:-1),n(),b("dismissible",!1),n(2),h(M(14,11,"plugins.manage.confirm_disable",V(20,ze,i.pluginName))),n(4),y("aria-label",s(18,14,"form.button_close")),n(2),C(" ",s(20,16,"form.button_close")," "),n(5),C(" ",s(25,18,"plugins.manage.disable")," "))},dependencies:[xe,B],encapsulation:2})}return t})();var qe=t=>({author:t});function Le(t,d){if(t&1&&(o(0,"li",9),c(1,"i",15),o(2,"a",16),p(3),l()()),t&2){let e=d.$implicit,a=m();n(),b("ngClass",a.getIconClass(e.type)),n(),b("href",e.url,T),n(),h(e.url)}}var De=(()=>{class t{$activeModal=P(D);plugin;fundingOptions;ngOnInit(){this.plugin.funding||this.$activeModal.close(),this.plugin.name==="homebridge-config-ui-x"&&(this.plugin.author="oznu"),Array.isArray(this.plugin.funding)?this.fundingOptions=this.plugin.funding.map(e=>{if(typeof e=="string")return{type:"other",url:e};if(typeof e=="object")return{type:e.type||"other",url:e.url}}):typeof this.plugin.funding=="string"?this.fundingOptions=[{type:"other",url:this.plugin.funding}]:typeof this.plugin.funding=="object"&&(this.fundingOptions=[{type:this.plugin.funding.type||"other",url:this.plugin.funding.url}])}getIconClass(e){switch(e.toLowerCase()){case"paypal":return"fab fa-fw fa-paypal";case"github":return"fab fa-fw fa-github";case"patreon":return"fab fa-fw fa-patreon";case"kofi":case"ko-fi":return"fas fa-fw fa-coffee";default:return"fas fa-fw fa-link"}}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=S({type:t,selectors:[["ng-component"]],inputs:{plugin:"plugin"},decls:28,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","pink-text","mb-3"],[1,"fas","fa-fw","fa-heart",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box"],[1,"list-group-item"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"],[1,"me-2","primary-text","fa-fw","fa-xl",3,"ngClass"],["target","_blank","rel","noopener noreferrer",1,"text-break-all",3,"href"]],template:function(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"h5",2),p(3),r(4,"translate"),l(),o(5,"button",3),r(6,"translate"),_("click",function(){return i.dismissModal()}),l()(),o(7,"div",4)(8,"div",5),c(9,"i",6),l(),o(10,"ul",7)(11,"li"),p(12),r(13,"translate"),l(),o(14,"li"),p(15),r(16,"translate"),l()(),o(17,"ul",8),q(18,Le,4,3,"li",9,U),l()(),o(20,"div",10),c(21,"div",11),o(22,"div",12)(23,"button",13),r(24,"translate"),_("click",function(){return i.dismissModal()}),p(25),r(26,"translate"),l()(),c(27,"div",14),l()()),a&2&&(n(3),h(M(4,6,"plugins.donate.tile_donate_to",V(19,qe,"@"+i.plugin.author))),n(2),y("aria-label",s(6,9,"form.button_close")),n(7),h(s(13,11,"plugins.donate.message_1")),n(3),h(s(16,13,"plugins.donate.message_2")),n(3),L(i.fundingOptions),n(5),y("aria-label",s(24,15,"form.button_close")),n(2),C(" ",s(26,17,"form.button_close")," "))},dependencies:[$,B],styles:[".text-break-all[_ngcontent-%COMP%]{word-break:break-all}"]})}return t})();var Re=(t,d)=>({"orange-text":t,"grey-text":d}),te=t=>({opacity:t}),Ge=(t,d)=>({"green-text":t,"grey-text":d}),We=(t,d)=>({"purple-text":t,"grey-text":d}),Qe=(t,d)=>({scopedLink:t,verifiedLink:d});function Je(t,d){t&1&&(o(0,"h6",18),p(1),r(2,"translate"),l(),o(3,"p",19),p(4),r(5,"translate"),l(),o(6,"p",19),p(7),r(8,"translate"),l()),t&2&&(n(),h(s(2,3,"plugins.manage.scoped_subtitle")),n(3),h(s(5,5,"plugins.manage.scoped_message")),n(3),h(s(8,7,"plugins.manage.verified_message")))}function Ke(t,d){t&1&&(o(0,"h6",18),p(1),r(2,"translate"),l(),o(3,"p",19),p(4),r(5,"translate"),l()),t&2&&(n(),h(s(2,2,"plugins.manage.verified_subtitle")),n(3),h(s(5,4,"plugins.manage.verified_message")))}function Xe(t,d){t&1&&(o(0,"h6",18),p(1),r(2,"translate"),l(),o(3,"p",19),p(4),r(5,"translate"),l()),t&2&&(n(),h(s(2,2,"plugins.manage.unverified_subtitle")),n(3),h(s(5,4,"plugins.manage.unverified_message")))}function Ye(t,d){if(t&1){let e=w();o(0,"button",20),_("click",function(){v(e);let i=m();return x(i.dismissModal())}),p(1),r(2,"translate"),l()}t&2&&(n(),C(" ",s(2,1,"form.button_close")," "))}function Ze(t,d){if(t&1){let e=w();o(0,"button",20),_("click",function(){v(e);let i=m();return x(i.dismissModal())}),p(1),r(2,"translate"),l()}t&2&&(n(),C(" ",s(2,1,"form.button_close")," "))}function ei(t,d){if(t&1&&(o(0,"a",17),p(1),r(2,"translate"),c(3,"i",21),l()),t&2){let e=m();b("href",e.plugin.links.homepage||e.plugin.links.npm,T),n(),C(" ",s(2,2,"plugins.button_homepage")," ")}}var Ne=(()=>{class t{$activeModal=P(D);plugin;defaultIcon="assets/hb-icon.png";linkScoped='<a href="https://github.com/homebridge/plugins/wiki/Scoped-Plugins" target="_blank"><i class="fas fa-fw fa-external-link-alt primary-text"></i></a>';linkVerified='<a href="https://github.com/homebridge/plugins/wiki/Verified-Plugins" target="_blank"><i class="fas fa-fw fa-external-link-alt primary-text"></i></a>';ngOnInit(){this.plugin.icon||(this.plugin.icon=this.defaultIcon)}handleIconError(){this.plugin.icon=this.defaultIcon}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=S({type:t,selectors:[["ng-component"]],inputs:{plugin:"plugin"},decls:32,vars:45,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],["alt","Plugin Icon",1,"mb-3","plugin-icon-card",3,"error","src"],[1,"mb-1"],[1,"grey-text","mb-0","font-monospace"],[1,"grey-text","mb-1","font-monospace"],[1,"mb-3"],[1,"fas","fa-fw","fa-shield-alt","mb-3",2,"font-size","48px",3,"ngClass","ngStyle"],[1,"mb-0","grey-text",3,"innerHTML"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-center"],[1,"text-end"],["target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","text-decoration-none",3,"href"],[1,"mb-2"],[1,"mb-1","grey-text"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"fas","fa-fw","fa-external-link-alt"]],template:function(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"h5",2),p(3),r(4,"translate"),l(),o(5,"button",3),r(6,"translate"),_("click",function(){return i.dismissModal()}),l()(),o(7,"div",4)(8,"img",5),_("error",function(){return i.handleIconError()}),l(),o(9,"h4",6),p(10),l(),o(11,"p",7),p(12),l(),o(13,"p",8),p(14),l(),o(15,"p",9),p(16),l(),c(17,"i",10)(18,"i",10)(19,"i",10),g(20,Je,9,9),g(21,Ke,6,6),g(22,Xe,6,6),c(23,"p",11),r(24,"translate"),l(),o(25,"div",12)(26,"div",13),g(27,Ye,3,3,"button",14),l(),o(28,"div",15),g(29,Ze,3,3,"button",14),l(),o(30,"div",16),g(31,ei,4,4,"a",17),l()()()),a&2&&(n(3),h(s(4,20,"plugins.manage.information")),n(2),y("aria-label",s(6,22,"form.button_close")),n(3),b("src",i.plugin.icon,T),n(2),h(i.plugin.displayName),n(2),h(i.plugin.name),n(2),C("@",i.plugin.author),n(2),h(i.plugin.description),n(),b("ngClass",I(27,Re,!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin,i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin))("ngStyle",V(30,te,!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin?1:.25)),n(),b("ngClass",I(32,Ge,!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin),i.plugin.isHbScoped||!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin))("ngStyle",V(35,te,!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)?1:.25)),n(),b("ngClass",I(37,We,i.plugin.isHbScoped,!i.plugin.isHbScoped))("ngStyle",V(40,te,i.plugin.isHbScoped?1:.25)),n(),f(i.plugin.isHbScoped?20:-1),n(),f(!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)?21:-1),n(),f(!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin?22:-1),n(),b("innerHTML",M(24,24,"plugins.manage.more_info",I(42,Qe,i.linkScoped,i.linkVerified)),H),n(4),f(i.plugin.links.homepage||i.plugin.links.npm?27:-1),n(2),f(!i.plugin.links.homepage&&!i.plugin.links.npm?29:-1),n(2),f(i.plugin.links.homepage||i.plugin.links.npm?31:-1))},dependencies:[$,de,B],styles:[".plugin-icon[_ngcontent-%COMP%]{height:75px;width:75px;border-radius:15px;border:1px solid #222222}"]})}return t})();var ii=(t,d,e)=>({"purple-text":t,"green-text":d,"orange-text":e}),ti=(t,d)=>({"fa-bridge-circle-exclamation orange-text":t,"fa-bridge-circle-xmark red-text":d});function ni(t,d){if(t&1){let e=w();o(0,"a",23),r(1,"translate"),r(2,"translate"),_("click",function(){v(e);let i=m();return x(i.checkAndUpdatePlugin())}),c(3,"i",24),l()}t&2&&(b("ngbTooltip",s(1,2,"plugins.button_update")),y("aria-label",s(2,4,"plugins.button_update")))}function ai(t,d){if(t&1){let e=w();o(0,"a",23),r(1,"translate"),r(2,"translate"),_("click",function(){v(e);let i=m();return x(i.switchToScoped())}),c(3,"i",25),l()}t&2&&(b("ngbTooltip",s(1,2,"plugins.manage.scoped.switch")),y("aria-label",s(2,4,"plugins.manage.scoped.switch")))}function oi(t,d){if(t&1){let e=w();o(0,"a",23),r(1,"translate"),r(2,"translate"),_("click",function(){v(e);let i=m();return x(i.openSettings())}),c(3,"i",26),l()}t&2&&(b("ngbTooltip",s(1,2,"plugins.button_set_up")),y("aria-label",s(2,4,"plugins.button_set_up")))}function li(t,d){if(t&1){let e=w();o(0,"a",23),r(1,"translate"),r(2,"translate"),_("click",function(){v(e);let i=m();return x(i.openBridgeSettings())}),c(3,"i",27),l()}t&2&&(b("ngbTooltip",s(1,2,"child_bridge.setup")),y("aria-label",s(2,4,"child_bridge.setup")))}function ri(t,d){if(t&1){let e=w();o(0,"a",23),r(1,"translate"),r(2,"translate"),_("click",function(){v(e);let i=m();return x(i.openBridgeSettings())}),c(3,"i",28),l()}t&2&&(b("ngbTooltip",s(1,2,"child_bridge.bridge_connect")),y("aria-label",s(2,4,"child_bridge.bridge_connect")))}function si(t,d){if(t&1&&c(0,"i",12),t&2){let e=m();b("ngClass",I(1,ti,e.childBridgeStatus==="pending",e.childBridgeStatus==="down"))}}function di(t,d){if(t&1){let e=w();o(0,"a",14),_("click",function(){v(e);let i=m();return x(i.openFundingModal(i.plugin))}),c(1,"i",29),o(2,"span",16),p(3),l()()}if(t&2){let e=m();n(3),C("@",e.plugin.author)}}function pi(t,d){if(t&1&&(o(0,"span",16),c(1,"i",30),p(2),l()),t&2){let e=m();n(2),C("@",e.plugin.author," ")}}function ci(t,d){if(t&1&&(o(0,"span"),p(1),r(2,"date"),l()),t&2){let e=m(2);n(),C("(",M(2,1,e.plugin.lastUpdated,"yyyy-MM-dd"),")")}}function ui(t,d){if(t&1&&(o(0,"span"),c(1,"i",31),o(2,"span",16),p(3),g(4,ci,3,4,"span"),l()()),t&2){let e=m();n(3),C("v",e.plugin.latestVersion," "),n(),f(e.plugin.lastUpdated?4:-1)}}function mi(t,d){if(t&1&&(c(0,"i",32),p(1)),t&2){let e=m();n(),C("v",e.plugin.installedVersion," ")}}function gi(t,d){if(t&1){let e=w();o(0,"a",23),r(1,"translate"),_("click",function(){v(e);let i=m();return x(i.doChildBridgeAction("restart"))}),c(2,"i",33),l()}if(t&2){let e=m();b("ngbTooltip",s(1,1,e.setChildBridges.length>1?"child_bridge.restart_plural":"child_bridge.restart"))}}function fi(t,d){if(t&1){let e=w();o(0,"a",34),_("click",function(){v(e);let i=m();return x(i.enablePlugin(i.plugin))}),c(1,"i",35),r(2,"translate"),l()}t&2&&(n(),b("ngbTooltip",s(2,1,"plugins.status_disabled")))}function _i(t,d){if(t&1){let e=w();o(0,"a",36),_("click",function(){v(e);let i=m();return x(i.installAlternateVersion())}),c(1,"i",37),l()}}function hi(t,d){if(t&1){let e=w();o(0,"button",41),_("click",function(){v(e);let i=m(2);return x(i.viewPluginLog())}),c(1,"i",46),p(2),r(3,"translate"),l()}t&2&&(n(2),C(" ",s(3,1,"plugins.manage.plugin_logs")," "))}function Ci(t,d){if(t&1){let e=w();o(0,"button",41),_("click",function(){v(e);let i=m(2);return x(i.installAlternateVersion())}),c(1,"i",47),p(2),r(3,"translate"),l()}t&2&&(n(2),C(" ",s(3,1,"plugins.manage.manage_version")," "))}function bi(t,d){if(t&1){let e=w();o(0,"button",41),_("click",function(){v(e);let i=m(2);return x(i.openJsonEditor())}),c(1,"i",48),p(2),r(3,"translate"),l()}t&2&&(n(2),C(" ",s(3,1,"plugins.manage.json_config")," "))}function vi(t,d){if(t&1){let e=w();o(0,"button",41),_("click",function(){v(e);let i=m(2);return x(i.disablePlugin(i.plugin))}),c(1,"i",49),p(2),r(3,"translate"),l()}t&2&&(n(2),C(" ",s(3,1,"plugins.manage.disable")," "))}function xi(t,d){if(t&1){let e=w();o(0,"button",41),_("click",function(){v(e);let i=m(2);return x(i.enablePlugin(i.plugin))}),c(1,"i",50),p(2),r(3,"translate"),l()}t&2&&(n(2),C(" ",s(3,1,"plugins.manage.enable")," "))}function wi(t,d){if(t&1){let e=w();o(0,"button",41),_("click",function(){v(e);let i=m(2);return x(i.uninstallPlugin())}),c(1,"i",51),p(2),r(3,"translate"),l()}t&2&&(n(2),C(" ",s(3,1,"plugins.button_uninstall")," "))}function Pi(t,d){t&1&&c(0,"div",44)}function yi(t,d){if(t&1){let e=w();o(0,"button",41),_("click",function(){v(e);let i=m(3);return x(i.doChildBridgeAction("restart"))}),c(1,"i",54),p(2),r(3,"translate"),l()}if(t&2){let e=m(3);n(2),C(" ",s(3,1,e.setChildBridges.length>1?"child_bridge.restart_plural":"child_bridge.restart")," ")}}function Si(t,d){if(t&1){let e=w();o(0,"button",41),_("click",function(){v(e);let i=m(3);return x(i.doChildBridgeAction("stop"))}),c(1,"i",55),p(2),r(3,"translate"),l()}if(t&2){let e=m(3);n(2),C(" ",s(3,1,e.setChildBridges.length>1?"child_bridge.stop_plural":"child_bridge.stop")," ")}}function Bi(t,d){if(t&1){let e=w();o(0,"button",41),_("click",function(){v(e);let i=m(3);return x(i.doChildBridgeAction("start"))}),c(1,"i",56),p(2),r(3,"translate"),l()}if(t&2){let e=m(3);n(2),C(" ",s(3,1,e.setChildBridges.length>1?"child_bridge.start_plural":"child_bridge.start")," ")}}function ki(t,d){if(t&1){let e=w();o(0,"button",41),_("click",function(){v(e);let i=m(2);return x(i.openBridgeSettings())}),c(1,"i",52),p(2),r(3,"translate"),l(),g(4,yi,4,3,"button",43),g(5,Si,4,3,"button",43),g(6,Bi,4,3,"button",43),o(7,"button",41),_("click",function(){v(e);let i=m(2);return x(i.resetChildBridges())}),c(8,"i",53),p(9),r(10,"translate"),l()}if(t&2){let e=m(2);n(2),C(" ",s(3,5,"child_bridge.bridge_settings")," "),n(2),f(e.childBridgeRestartInProgress?-1:4),n(),f(e.allChildBridgesStopped?-1:5),n(),f(e.allChildBridgesStopped?6:-1),n(3),C(" ",s(10,7,"child_bridge.reset_accessories")," ")}}function Ii(t,d){t&1&&c(0,"div",44)}function Ti(t,d){if(t&1){let e=w();o(0,"button",41),_("click",function(){v(e);let i=m(2);return x(i.openBridgeSettings())}),c(1,"i",57),p(2),r(3,"translate"),l()}t&2&&(n(2),C(" ",s(3,1,"child_bridge.setup")," "))}function Ei(t,d){t&1&&c(0,"div",44)}function Vi(t,d){if(t&1){let e=w();o(0,"button",41),_("click",function(){v(e);let i=m(2);return x(i.openBridgeSettings())}),c(1,"i",57),p(2),r(3,"translate"),l()}t&2&&(n(2),C(" ",s(3,1,"child_bridge.setup")," "))}function Mi(t,d){t&1&&c(0,"div",44)}function $i(t,d){if(t&1&&(o(0,"a",45),c(1,"i",58),p(2),r(3,"translate"),l()),t&2){let e=m(2);b("href",e.plugin.links.bugs,T),n(2),C(" ",s(3,2,"support.links.issue")," ")}}function Di(t,d){if(t&1){let e=w();o(0,"span",22)(1,"a",38),c(2,"i",39),l(),o(3,"div",40)(4,"button",41),_("click",function(){v(e);let i=m();return x(i.openSettings())}),c(5,"i",42),p(6),r(7,"translate"),l(),g(8,hi,4,3,"button",43),g(9,Ci,4,3,"button",43),g(10,bi,4,3,"button",43),g(11,vi,4,3,"button",43),g(12,xi,4,3,"button",43),g(13,wi,4,3,"button",43),g(14,Pi,1,0,"div",44),g(15,ki,11,9),g(16,Ii,1,0,"div",44),g(17,Ti,4,3,"button",43),g(18,Ei,1,0,"div",44),g(19,Vi,4,3,"button",43),g(20,Mi,1,0,"div",44),g(21,$i,4,4,"a",45),l()()}if(t&2){let e=m();n(),y("aria-label","Plugin Actions Dropdown"),n(5),C(" ",s(7,16,"plugins.button_settings")," "),n(2),f(e.plugin.isConfigured&&!e.plugin.disabled?8:-1),n(),f(e.plugin.publicPackage?9:-1),n(),f(!e.isMobile&&e.plugin.name!=="homebridge-config-ui-x"?10:-1),n(),f(e.plugin.name!=="homebridge-config-ui-x"&&!e.plugin.disabled?11:-1),n(),f(e.plugin.name!=="homebridge-config-ui-x"&&e.plugin.disabled?12:-1),n(),f(e.plugin.name!=="homebridge-config-ui-x"?13:-1),n(),f(!e.plugin.disabled&&e.plugin.isConfigured&&e.plugin.hasChildBridges&&e.plugin.installedVersion&&e.plugin.name!=="homebridge-config-ui-x"?14:-1),n(),f(e.plugin.hasChildBridges&&!e.plugin.disabled?15:-1),n(),f(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&!e.plugin.recommendChildBridge?16:-1),n(),f(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&!e.plugin.recommendChildBridge?17:-1),n(),f(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&e.plugin.recommendChildBridge&&e.plugin.updateAvailable?18:-1),n(),f(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&e.plugin.recommendChildBridge&&e.plugin.updateAvailable?19:-1),n(),f(e.plugin.links!=null&&e.plugin.links.bugs?20:-1),n(),f(e.plugin.links!=null&&e.plugin.links.bugs?21:-1)}}var He=(()=>{class t{$api=P(J);$md=P(Ve);$modal=P(R);$plugin=P(Y);$settings=P(K);$toastr=P(Q);$translate=P(W);$ws=P(X);io;plugin;hasChildBridges=!1;hasUnpairedChildBridges=!1;allChildBridgesStopped=!1;childBridgeStatus="pending";childBridgeRestartInProgress=!1;defaultIcon="assets/hb-icon.png";isMobile;setChildBridges=[];hb2Status="unknown";set childBridges(e){this.hasChildBridges=e.length>0,this.hasUnpairedChildBridges=e.filter(u=>u.paired===!1).length>0,this.allChildBridgesStopped=e.filter(u=>u.manuallyStopped===!0).length===e.length,this.hasChildBridges&&(e.some(u=>u.status==="down")?this.childBridgeStatus="down":e.some(u=>u.status==="pending")?this.childBridgeStatus="pending":e.some(u=>u.status==="ok")&&(this.childBridgeStatus="ok")),this.setChildBridges=e;let a=this.$settings.env.homebridgeVersion?.split(".")[0],i=this.plugin.engines?.homebridge?.split("||").map(u=>u.trim())||[];this.hb2Status=a==="2"?"hide":i.some(u=>u.startsWith("^2")||u.startsWith(">=2"))?"supported":this.hb2Status}ngOnInit(){this.isMobile=this.$md.detect.mobile(),this.io=this.$ws.getExistingNamespace("child-bridges"),this.isMobile&&this.plugin.displayName.toLowerCase().startsWith("homebridge ")&&(this.plugin.displayName=this.plugin.displayName.replace(/^homebridge /i,"")),this.plugin.icon||(this.plugin.icon=this.defaultIcon)}openFundingModal(e){let a=this.$modal.open(De,{size:"lg",backdrop:"static"});a.componentInstance.plugin=e}pluginInfoModal(e){let a=this.$modal.open(Ne,{size:"lg",backdrop:"static"});a.componentInstance.plugin=e}disablePlugin(e){let a=this.$modal.open($e,{size:"lg",backdrop:"static"});a.componentInstance.pluginName=e.displayName,a.componentInstance.isConfigured=e.isConfigured,a.componentInstance.isConfiguredDynamicPlatform=e.isConfiguredDynamicPlatform,a.result.then(()=>k(this,null,function*(){try{yield N(this.$api.put(`/config-editor/plugin/${encodeURIComponent(e.name)}/disable`,{})),e.disabled=!0,this.hasChildBridges&&this.doChildBridgeAction("stop"),this.$modal.open(z,{size:"lg",backdrop:"static"})}catch(i){console.error(i),this.$toastr.error(this.$translate.instant("plugins.disable.error"),this.$translate.instant("toast.title_error"))}}))}enablePlugin(e){let a=this.$modal.open(Te,{size:"lg",backdrop:"static"});a.componentInstance.title=e.name,a.componentInstance.message=this.$translate.instant("plugins.manage.confirm_enable",{pluginName:e.displayName}),a.componentInstance.confirmButtonLabel=this.$translate.instant("plugins.manage.enable"),a.componentInstance.faIconClass="fa-circle-play primary-text",a.result.then(()=>k(this,null,function*(){try{yield N(this.$api.put(`/config-editor/plugin/${encodeURIComponent(e.name)}/enable`,{})),e.disabled=!1,this.hasChildBridges&&(yield this.doChildBridgeAction("start")),this.$modal.open(z,{size:"lg",backdrop:"static"})}catch(i){console.error(i),this.$toastr.error(this.$translate.instant("plugins.enable.error"),this.$translate.instant("toast.title_error"))}}))}viewPluginLog(){let e=this.$modal.open(Me,{size:"xl",backdrop:"static"});e.componentInstance.plugin=this.plugin}doChildBridgeAction(e){return k(this,null,function*(){this.childBridgeRestartInProgress=!0;try{for(let a of this.setChildBridges)yield N(this.io.request(`${e}-child-bridge`,a.username))}catch(a){console.error(a),this.$toastr.error(this.$translate.instant("plugins.bridge.action_error",{action:e}),this.$translate.instant("toast.title_error")),this.childBridgeRestartInProgress=!1}finally{setTimeout(()=>{this.childBridgeRestartInProgress=!1},e==="restart"?12e3:e==="stop"?6e3:1e3)}})}handleIconError(){this.plugin.icon=this.defaultIcon}checkAndUpdatePlugin(){this.$plugin.checkAndUpdatePlugin(this.plugin,this.plugin.latestVersion)}openSettings(){this.$plugin.settings(this.plugin)}openBridgeSettings(){this.$plugin.bridgeSettings(this.plugin)}switchToScoped(){this.$plugin.switchToScoped(this.plugin)}installAlternateVersion(){this.$plugin.installAlternateVersion(this.plugin)}openJsonEditor(){this.$plugin.jsonEditor(this.plugin)}uninstallPlugin(){this.$plugin.uninstallPlugin(this.plugin,this.setChildBridges)}resetChildBridges(){this.$plugin.resetChildBridges(this.setChildBridges)}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=S({type:t,selectors:[["app-plugin-card"]],inputs:{plugin:"plugin",childBridges:"childBridges"},decls:35,vars:23,consts:[[1,"card","card-body","mb-3"],[1,"d-flex","flex-row","justify-content-between"],[1,"d-flex","flex-column","me-3","align-items-center","justify-content-between"],["alt","Plugin Icon",1,"plugin-icon-card","mb-3",3,"error","src"],[1,"d-flex","flex-column","justify-content-between",2,"min-width","calc(100% - 80px)"],[1,"d-flex","flex-row","align-items-end"],[1,"d-flex","flex-column","w-100"],[1,"d-flex","flex-row"],[1,"card-title","mb-2","text-truncate"],[1,"ms-auto"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover",1,"card-link",3,"ngbTooltip"],[1,"fas","fa-fw","fa-spinner","fa-pulse","fa-lg","grey-text","ms-3",3,"hidden"],[1,"fas","fa-fw","fa-lg","ms-3",3,"ngClass"],[1,"card-text","mb-2","text-truncate"],["href","javascript:void(0)",1,"card-link",3,"click"],[1,"fas","fa-fw","fa-shield-alt","fa-lg","me-1",3,"ngClass"],[1,"grey-text"],[1,"card-text","mb-2"],["href","javascript:void(0)",1,"card-link"],[1,"card-text","mb-0","grey-text"],["href","javascript:void(0)",1,"card-link","red-text"],["href","javascript:void(0)"],["ngbDropdown","","placement","left",1,"d-inline-block","ms-3","mt-auto"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover",1,"card-link",3,"click","ngbTooltip"],[1,"far","fa-fw","fa-arrow-alt-circle-up","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-fw","fa-arrow-right-arrow-left","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-fw","fa-sliders","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"icon-button","fas","fa-fw","fa-bridge","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"icon-button","fas","fa-fw","fa-qrcode","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-fw","fa-heart","fa-lg","me-1","pink-text"],[1,"fas","fa-fw","fa-heart","fa-lg","me-1",2,"opacity","0.5"],[1,"far","fa-fw","fa-circle-dot","fa-lg","me-1"],[1,"far","fa-fw","fa-circle-check","fa-lg","me-1"],[1,"fas","fa-fw","fa-lg","fa-power-off","ms-3"],["href","javascript:void(0)",1,"card-link","red-text",3,"click"],["container","body","openDelay","150","triggers","hover",1,"far","fa-fw","fa-pause-circle","fa-lg",3,"ngbTooltip"],["href","javascript:void(0)",3,"click"],[1,"far","fa-fw","fa-arrow-alt-circle-down","fa-lg"],["href","javascript:void(0)","ngbDropdownToggle","",1,"card-link","text-decoration-none","mt-auto",2,"outline","none"],[1,"fa-solid","fa-fw","fa-ellipsis-v","fa-lg"],["ngbDropdownMenu","","aria-labelledby","Plugin Actions Dropdown"],["ngbDropdownItem","",3,"click"],[1,"fas","fa-fw","fa-sliders"],["ngbDropdownItem",""],[1,"dropdown-divider"],["ngbDropdownItem","","rel","noopener noreferrer","target","_blank",3,"href"],[1,"fas","fa-fw","fa-wave-square"],[1,"fas","fa-fw","fa-code-compare"],[1,"fas","fa-fw","fa-code"],[1,"far","fa-fw","fa-circle-pause"],[1,"far","fa-fw","fa-circle-play"],[1,"fas","fa-fw","fa-trash"],[1,"fas","fa-fw","fa-bridge"],[1,"fas","fa-fw","fa-broom"],[1,"fa-fw","icon-button","fas","fa-fw","fa-power-off"],[1,"fas","fa-fw","fa-stop"],[1,"fas","fa-fw","fa-play"],[1,"icon-button","fas","fa-fw","fa-bridge"],[1,"icon-button","fa","fa-fw","fa-question-circle-o"]],template:function(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"img",3),_("error",function(){return i.handleIconError()}),l()(),o(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"h5",8),p(9),l(),o(10,"div",9),g(11,ni,4,6,"a",10),g(12,ai,4,6,"a",10),g(13,oi,4,6,"a",10),g(14,li,4,6,"a",10),g(15,ri,4,6,"a",10),c(16,"i",11),g(17,si,1,4,"i",12),l()(),o(18,"p",13)(19,"a",14),_("click",function(){return i.pluginInfoModal(i.plugin)}),c(20,"i",15),o(21,"span",16),p(22),l()()(),o(23,"p",17),g(24,di,4,1,"a",18),g(25,pi,3,1,"span",16),l(),o(26,"div",7)(27,"p",19),g(28,ui,5,2,"span"),g(29,mi,2,1),l(),o(30,"div",9),g(31,gi,3,3,"a",10),g(32,fi,3,3,"a",20),g(33,_i,2,0,"a",21),g(34,Di,22,18,"span",22),l()()()()()()()),a&2&&(n(3),b("src",i.plugin.icon,T),n(6),h(i.plugin.displayName),n(2),f(i.plugin.installedVersion&&i.plugin.updateAvailable&&!i.childBridgeRestartInProgress?11:-1),n(),f(i.plugin.installedVersion&&(i.plugin.newHbScope==null?null:i.plugin.newHbScope.switch)===i.plugin.installedVersion&&!i.childBridgeRestartInProgress?12:-1),n(),f(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&!i.plugin.isConfigured&&!i.childBridgeRestartInProgress&&!i.plugin.disabled?13:-1),n(),f(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&i.plugin.recommendChildBridge&&!i.childBridgeRestartInProgress?14:-1),n(),f(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&!i.childBridgeRestartInProgress&&i.hasUnpairedChildBridges&&i.childBridgeStatus==="ok"&&!i.plugin.disabled?15:-1),n(),b("hidden",!i.childBridgeRestartInProgress),n(),f(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&!i.childBridgeRestartInProgress&&!i.hasUnpairedChildBridges&&i.childBridgeStatus!=="ok"&&!i.plugin.disabled?17:-1),n(3),b("ngClass",se(19,ii,i.plugin.isHbScoped,!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin),!i.plugin.isHbScoped&&!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin)),n(2),h(i.plugin.name),n(2),f((i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)&&i.plugin.funding?24:-1),n(),f((i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)&&i.plugin.funding?-1:25),n(3),f(i.plugin.publicPackage&&!i.plugin.installedVersion?28:-1),n(),f(i.plugin.installedVersion?29:-1),n(2),f(!i.plugin.disabled&&i.plugin.hasChildBridges&&i.childBridgeStatus==="ok"?31:-1),n(),f(i.plugin.installedVersion&&i.plugin.disabled?32:-1),n(),f(i.plugin.publicPackage&&!i.plugin.installedVersion?33:-1),n(),f(i.plugin.installedVersion?34:-1))},dependencies:[G,$,Be,Se,ye,Pe,we,pe,B],encapsulation:2})}return t})();var Ae=(()=>{class t{$activeModal=P(D);dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=S({type:t,selectors:[["ng-component"]],decls:27,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fa","fa-fw","fa-question-circle-o","primary-text",2,"font-size","75px"],[1,"mb-0"],[3,"innerHTML"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"]],template:function(a,i){a&1&&(A(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),p(4),r(5,"translate"),j(),A(6,"button",3),r(7,"translate"),Z("click",function(){return i.dismissModal()}),j()(),A(8,"div",4)(9,"div",5),E(10,"i",6),j(),A(11,"ul",7),E(12,"li",8),r(13,"translate"),E(14,"li",8),r(15,"translate"),E(16,"li",8),r(17,"translate"),E(18,"li",8),r(19,"translate"),j()(),A(20,"div",9),E(21,"div",10),A(22,"div",11)(23,"button",12),Z("click",function(){return i.dismissModal()}),p(24),r(25,"translate"),j()(),E(26,"div",13),j()()()),a&2&&(n(4),h(s(5,7,"support.title")),n(2),y("aria-label",s(7,9,"form.button_close")),n(6),F("innerHTML",s(13,11,"plugins.support.list_1"),H),n(2),F("innerHTML",s(15,13,"plugins.support.list_2"),H),n(2),F("innerHTML",s(17,15,"plugins.support.list_3"),H),n(2),F("innerHTML",s(19,17,"plugins.support.list_4"),H),n(6),C(" ",s(25,19,"form.button_close")," "))},dependencies:[B],encapsulation:2})}return t})();var Ni=["searchInput"],Hi=(t,d)=>({"fa-magnifying-glass":t,"fa-exclamation-circle":d});function Ai(t,d){t&1&&c(0,"app-spinner")}function ji(t,d){if(t&1){let e=w();o(0,"a",15),_("click",function(){v(e);let i=m(3);return x(i.onClearSearch())}),c(1,"i",16),l()}}function Fi(t,d){if(t&1){let e=w();o(0,"div",9)(1,"div",11)(2,"form",12),_("ngSubmit",function(){v(e);let i=m(2);return x(i.onSubmit(i.form))}),c(3,"input",13,0),r(5,"translate"),g(6,ji,2,0,"a",14),l()()()}if(t&2){let e=m(2);n(2),b("formGroup",e.form),n(),b("placeholder",s(5,3,"plugins.placeholder_search_plugin")),n(3),f(e.showExitButton?6:-1)}}function zi(t,d){if(t&1&&(o(0,"div",17),c(1,"app-plugin-card",19),l()),t&2){let e=d.$implicit,a=m(3);n(),b("plugin",e)("childBridges",a.getPluginChildBridges(e))}}function Oi(t,d){if(t&1&&(o(0,"div",18),c(1,"i",20),o(2,"p"),p(3),r(4,"translate"),l()()),t&2){let e=m(3);n(),b("ngClass",I(4,Hi,!e.showExitButton,e.showExitButton)),n(2),h(s(4,2,e.showExitButton?"plugins.placeholder_search_none":"plugins.placeholder_search_first"))}}function Ui(t,d){if(t&1&&(o(0,"div",10),q(1,zi,2,2,"div",17,U),g(3,Oi,5,7,"div",18),l()),t&2){let e=m(2);n(),L(e.installedPlugins),n(2),f(e.installedPlugins.length===0&&!e.loading&&!e.mainError?3:-1)}}function qi(t,d){if(t&1&&(g(0,Fi,7,5,"div",9),g(1,Ui,4,1,"div",10)),t&2){let e=m();f(e.showSearchBar?0:-1),n(),f(e.loading?-1:1)}}function Li(t,d){t&1&&(o(0,"div",21)(1,"div",22)(2,"code"),p(3,"https://developers.homebridge.io/analytics "),o(4,"a",23),c(5,"i",24),l()()(),o(6,"div",25),p(7),r(8,"translate"),l()(),c(9,"iframe",26)),t&2&&(n(7),h(s(8,1,"plugins.stats_note")))}var nn=(()=>{class t{searchInput;$api=P(J);$modal=P(R);$plugin=P(Y);$router=P(Ie);$settings=P(K);$toastr=P(Q);$translate=P(W);$ws=P(X);isSearchMode=!1;io;navigationSubscription;mainError=!1;loading=!0;tab="main";installedPlugins=[];childBridges=[];showSearchBar=!1;showExitButton=!1;form=new ge({query:new fe("")});ngOnInit(){return k(this,null,function*(){this.io=this.$ws.connectToNamespace("child-bridges"),this.io.connected.subscribe(()=>k(this,null,function*(){this.getChildBridgeMetadata(),this.io.socket.emit("monitor-child-bridge-status"),yield this.loadInstalledPlugins(),this.installedPlugins.length||this.showSearch();let{action:e,plugin:a}=this.$router.parseUrl(this.$router.url).queryParams;if(e){let i=this.installedPlugins.find(u=>u.name===a);switch(e){case"just-installed":{i&&(i.isConfigured?this.$modal.open(z,{size:"lg",backdrop:"static"}):this.$plugin.settings(i));break}case"open-manage-version":{i&&this.$plugin.installAlternateVersion(i);break}}this.$router.navigate([],{queryParams:{},replaceUrl:!0,queryParamsHandling:""})}})),this.io.socket.on("child-bridge-status-update",e=>{let a=this.childBridges.find(i=>i.username===e.username);a?Object.assign(a,e):this.childBridges.push(e)}),this.navigationSubscription=this.$router.events.subscribe(e=>{e instanceof ke&&this.loadInstalledPlugins()})})}search(){this.installedPlugins=[],this.loading=!0,this.showExitButton=!0,this.$api.get(`/plugins/search/${encodeURIComponent(this.form.value.query)}`).subscribe({next:e=>{let a=new Set;this.installedPlugins=e.reduce((i,u)=>{if(u.name==="homebridge-config-ui-x"||a.has(u.name))return i;if(u.newHbScope){let ne=u.newHbScope.to,je=e.some(Fe=>Fe.name===ne);(u.installedVersion||!je)&&(a.add(ne),i.push(u))}else i.push(u);return i},[]),this.appendMetaInfo(),this.loading=!1},error:e=>{this.loading=!1,this.isSearchMode=!1,console.error(e),this.$toastr.error(e.error.message||e.message,this.$translate.instant("toast.title_error")),this.loadInstalledPlugins()}})}onClearSearch(){this.loadInstalledPlugins()}onSubmit({value:e}){e.query.length?(this.isSearchMode=!0,this.search()):this.isSearchMode&&(this.isSearchMode=!1,this.loadInstalledPlugins())}showSearch(){this.showSearchBar?(this.showSearchBar=!1,this.isSearchMode&&(this.isSearchMode=!1,this.form.setValue({query:""}),this.loadInstalledPlugins())):(window.document.querySelector("body").classList.remove("bg-black"),this.tab="main",this.showSearchBar=!0,setTimeout(()=>this.searchInput.nativeElement.focus(),0))}showStats(){this.tab==="stats"?(window.document.querySelector("body").classList.remove("bg-black"),this.tab="main"):(window.document.querySelector("body").classList.add("bg-black"),this.tab="stats",this.showSearchBar=!1)}openSupport(){this.$modal.open(Ae,{size:"lg",backdrop:"static"})}ngOnDestroy(){window.document.querySelector("body").classList.remove("bg-black"),this.navigationSubscription&&this.navigationSubscription.unsubscribe(),this.io.end()}getPluginChildBridges(e){return this.childBridges.filter(a=>a.plugin===e.name)}loadInstalledPlugins(){return k(this,null,function*(){this.form.setValue({query:""}),this.showExitButton=!1,this.installedPlugins=[],this.loading=!0,this.mainError=!1;try{let e=yield N(this.$api.get("/plugins"));this.installedPlugins=e.filter(i=>i.name!=="homebridge-config-ui-x"),yield this.appendMetaInfo();let a=this.installedPlugins.sort((i,u)=>i.updateAvailable!==u.updateAvailable?i.updateAvailable?-1:1:i.newHbScope&&!u.newHbScope?-1:i.disabled!==u.disabled?i.disabled?1:-1:i.isConfigured!==u.isConfigured?i.isConfigured?1:-1:i.hasChildBridgesUnpaired!==u.hasChildBridgesUnpaired?i.hasChildBridgesUnpaired?-1:1:i.hasChildBridges!==u.hasChildBridges&&this.$settings.env.recommendChildBridges?i.hasChildBridges?1:-1:i.name.localeCompare(u.name));return this.loading=!1,a}catch(e){console.error(e),this.loading=!1,this.mainError=!0,this.$toastr.error(this.$translate.instant("plugins.toast_failed_to_load_plugins"),this.$translate.instant("toast.title_error"))}})}appendMetaInfo(){return k(this,null,function*(){yield Promise.all(this.installedPlugins.filter(e=>e.installedVersion).map(e=>k(this,null,function*(){try{let a=yield N(this.$api.get(`/config-editor/plugin/${encodeURIComponent(e.name)}`));e.isConfigured=a.length>0,e.isConfiguredDynamicPlatform=e.isConfigured&&Object.prototype.hasOwnProperty.call(a[0],"platform"),e.recommendChildBridge=e.isConfiguredDynamicPlatform&&this.$settings.env.recommendChildBridges&&!["homebridge","homebridge-config-ui-x"].includes(e.name),e.hasChildBridges=e.isConfigured&&a.some(u=>u._bridge&&u._bridge.username);let i=this.getPluginChildBridges(e);e.hasChildBridgesUnpaired=i.some(u=>!u.paired),this.$settings.env.plugins?.hideUpdatesFor?.includes(e.name)&&(e.updateAvailable=!1)}catch{e.isConfigured=!0,e.hasChildBridges=!0}})))})}getChildBridgeMetadata(){this.io.request("get-homebridge-child-bridge-status").subscribe(e=>{this.childBridges=e})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=S({type:t,selectors:[["ng-component"]],viewQuery:function(a,i){if(a&1&&oe(Ni,5),a&2){let u;le(u=re())&&(i.searchInput=u.first)}},decls:20,vars:26,consts:[["searchInput",""],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end"],["type","button","container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","ngbTooltip"],["type","button","container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","my-0","me-2","d-none","d-md-inline-block",3,"click","ngbTooltip"],["type","button",1,"btn","btn-elegant","my-0","me-0",3,"click"],[1,"fa","fa-fw","fa-question-circle-o"],[1,"row"],[1,"d-flex","flex-wrap","justify-content-between"],[1,"col-md-12"],["novalidate","",3,"ngSubmit","formGroup"],["type","text","formControlName","query",1,"hb-npm-search",3,"placeholder"],["href","javascript:void(0)",1,"hb-npm-search-clear"],["href","javascript:void(0)",1,"hb-npm-search-clear",3,"click"],[1,"far","fa-fw","fa-times-circle"],[1,"hb-plugin-space-between"],[1,"alert","alert-info","mt-4","text-center","w-100"],[3,"plugin","childBridges"],[1,"fas","fa-fw","primary-text","my-3",2,"font-size","75px",3,"ngClass"],[1,"w-100","py-3","hb-stats-header","text-white","text-center"],[1,"mb-2"],["href","https://developers.homebridge.io/analytics","target","_blank"],[1,"fa","fa-fw","fa-external-link"],[1,"small","grey-text"],["src",ae`https://developers.homebridge.io/analytics/`,"sandbox","allow-scripts allow-same-origin allow-popups","referrerpolicy","no-referrer",1,"hb-stats"]],template:function(a,i){a&1&&(g(0,Ai,1,0,"app-spinner"),o(1,"div",1)(2,"div",2)(3,"h3",3),p(4),r(5,"translate"),l()(),o(6,"div",4)(7,"button",5),r(8,"translate"),r(9,"translate"),_("click",function(){return i.showSearch()}),c(10,"i"),l(),o(11,"button",6),r(12,"translate"),r(13,"translate"),_("click",function(){return i.showStats()}),c(14,"i"),l(),o(15,"button",7),r(16,"translate"),_("click",function(){return i.openSupport()}),c(17,"i",8),l()()(),g(18,qi,2,2)(19,Li,10,3)),a&2&&(f(i.loading?0:-1),n(4),h(s(5,14,"menu.label_plugins")),n(3),b("ngbTooltip",s(8,16,"plugins.search")),y("aria-label",s(9,18,"plugins.search")),n(3),ee(ie("fas fa-fw",i.showSearchBar?" primary-text":""," fa-search")),n(),b("ngbTooltip",s(12,20,"plugins.stats")),y("aria-label",s(13,22,"plugins.stats")),n(3),ee(ie("fas fa-fw",i.tab==="stats"?" primary-text":""," fa-sliders")),n(),y("aria-label",s(16,24,"support.title")),n(3),f(i.tab==="main"?18:i.tab==="stats"?19:-1))},dependencies:[Ee,be,_e,ce,ue,me,ve,he,Ce,He,$,G,B],styles:[".hb-npm-search[_ngcontent-%COMP%]{outline:none;box-sizing:inherit!important;background-color:inherit;height:50px!important;width:100%;border-width:.5px;padding:10px;margin-bottom:15px}@media (hover: hover){.hb-npm-search[_ngcontent-%COMP%]:hover{border:1px solid #000000}}.hb-npm-search[_ngcontent-%COMP%]:focus{border:1px solid #000000;box-shadow:0 1px #000}.hb-npm-search-clear[_ngcontent-%COMP%]{position:absolute;right:25px;font-size:35px;color:#d0d0d0;line-height:50px;cursor:pointer}.hb-plugin-space-between[_ngcontent-%COMP%]{box-sizing:border-box;width:calc(50% - 6.6666666667px)}@media only screen and (max-width: 991px){.hb-plugin-space-between[_ngcontent-%COMP%]{width:100%}}.hb-stats-header[_ngcontent-%COMP%]{background:#242424;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.hb-stats-header[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{border:1px solid grey;border-radius:5px;padding:5px;font-size:.8rem;color:#d3d3d3}.hb-stats[_ngcontent-%COMP%]{height:calc(100% - 121px);width:100%;overflow:hidden;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}@media (max-width: 767px){.hb-stats[_ngcontent-%COMP%]{height:calc(100% - 60px)}}"]})}return t})();export{nn as PluginsComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as _,b as D}from"./chunk-
|
|
1
|
+
import{a as _,b as D}from"./chunk-4AJSXM5Z.js";import{m as c,n as S}from"./chunk-IJVDEEEM.js";import{f as x}from"./chunk-Q4CZ7LVK.js";import{C as v,g as O,ga as h,h as a,ha as E,ja as y,ka as l,la as f,nb as I,r as p,va as j,w as d,x as T,z as w}from"./chunk-ULJPS3WS.js";var g=new y("JWT_OPTIONS"),m=(()=>{class r{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:{t+="==";break}case 3:{t+="=";break}default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(t)}b64decode(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="";if(e=String(e).replace(/=+$/,""),e.length%4===1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let i=0,s,n,b=0;n=e.charAt(b++);~n&&(s=i%4?s*64+n:n,i++%4)?o+=String.fromCharCode(255&s>>(-2*i&6)):0)n=t.indexOf(n);return o}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._decodeToken(t)):this._decodeToken(e)}_decodeToken(e){if(!e||e==="")return null;let t=e.split(".");if(t.length!==3)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");let o=this.urlBase64Decode(t[1]);if(!o)throw new Error("Cannot decode the token.");return JSON.parse(o)}getTokenExpirationDate(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._getTokenExpirationDate(t)):this._getTokenExpirationDate(e)}_getTokenExpirationDate(e){let t;if(t=this.decodeToken(e),!t||!t.hasOwnProperty("exp"))return null;let o=new Date(0);return o.setUTCSeconds(t.exp),o}isTokenExpired(e=this.tokenGetter(),t){return e instanceof Promise?e.then(o=>this._isTokenExpired(o,t)):this._isTokenExpired(e,t)}_isTokenExpired(e,t){if(!e||e==="")return!0;let o=this.getTokenExpirationDate(e);return t=t||0,o===null?!1:!(o.valueOf()>new Date().valueOf()+t*1e3)}getAuthScheme(e,t){return typeof e=="function"?e(t):e}}return r.\u0275fac=function(e){return new(e||r)(l(g))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),$=r=>r instanceof Promise?v(()=>r):p(r),R=(()=>{class r{constructor(e,t,o){this.jwtHelper=t,this.document=o,this.standardPorts=["80","443"],this.tokenGetter=e.tokenGetter,this.headerName=e.headerName||"Authorization",this.authScheme=e.authScheme||e.authScheme===""?e.authScheme:"Bearer ",this.allowedDomains=e.allowedDomains||[],this.disallowedRoutes=e.disallowedRoutes||[],this.throwNoTokenError=e.throwNoTokenError||!1,this.skipWhenExpired=e.skipWhenExpired}isAllowedDomain(e){let t=new URL(e.url,this.document.location.origin);if(t.host===this.document.location.host)return!0;let o=`${t.hostname}${t.port&&!this.standardPorts.includes(t.port)?":"+t.port:""}`;return this.allowedDomains.findIndex(i=>typeof i=="string"?i===o:i instanceof RegExp?i.test(o):!1)>-1}isDisallowedRoute(e){let t=new URL(e.url,this.document.location.origin);return this.disallowedRoutes.findIndex(o=>{if(typeof o=="string"){let i=new URL(o,this.document.location.origin);return i.hostname===t.hostname&&i.pathname===t.pathname}return o instanceof RegExp?o.test(e.url):!1})>-1}handleInterception(e,t,o){let i=this.jwtHelper.getAuthScheme(this.authScheme,t);if(!e&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let s=p(!1);return this.skipWhenExpired&&(s=e?$(this.jwtHelper.isTokenExpired(e)):p(!0)),e?s.pipe(T(n=>n&&this.skipWhenExpired?t.clone():t.clone({setHeaders:{[this.headerName]:`${i}${e}`}})),w(n=>o.handle(n))):o.handle(t)}intercept(e,t){if(!this.isAllowedDomain(e)||this.isDisallowedRoute(e))return t.handle(e);let o=this.tokenGetter(e);return $(o).pipe(w(i=>this.handleInterception(i,e,t)))}}return r.\u0275fac=function(e){return new(e||r)(l(g),l(m),l(j))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),F=(()=>{class r{constructor(e){if(e)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(e){return{ngModule:r,providers:[{provide:x,useClass:R,multi:!0},e.jwtOptionsProvider||{provide:g,useValue:e.config},m]}}}return r.\u0275fac=function(e){return new(e||r)(l(r,12))},r.\u0275mod=I({type:r}),r.\u0275inj=E({}),r})();var k=O(_(),1);var q=(()=>{class r{$api=f(S);$jwtHelper=f(m);$settings=f(D);token;user={};logoutTimer;constructor(){this.loadToken()}login(e){return a(this,null,function*(){let t=yield d(this.$api.post("/auth/login",e));if(!this.validateToken(t.access_token))throw new Error("Invalid username or password.");window.localStorage.setItem(c.jwt.tokenKey,t.access_token),yield this.$settings.getAppSettings()})}noauth(){return a(this,null,function*(){let e=yield d(this.$api.post("/auth/noauth",{}));if(this.validateToken(e.access_token))window.localStorage.setItem(c.jwt.tokenKey,e.access_token),yield this.$settings.getAppSettings();else throw new Error("Invalid username or password.")})}logout(){this.user=null,this.token=null,window.localStorage.removeItem(c.jwt.tokenKey),window.location.reload()}loadToken(){return a(this,null,function*(){this.$settings.settingsLoaded||(yield d(this.$settings.onSettingsLoaded));let e=window.localStorage.getItem(c.jwt.tokenKey);e&&this.validateToken(e)})}checkToken(){return a(this,null,function*(){try{return yield d(this.$api.get("/auth/check"))}catch(e){e.status===401&&(console.error("Current token is not valid"),this.logout())}})}isLoggedIn(){return this.$settings.env.instanceId!==this.user.instanceId?(console.error("Token does not match instance"),!1):this.user&&this.token&&!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)}validateToken(e){try{return this.$jwtHelper.isTokenExpired(e,this.$settings.serverTimeOffset)&&this.logout(),this.user=this.$jwtHelper.decodeToken(e),this.token=e,this.setLogoutTimer(),!0}catch{return window.localStorage.removeItem(c.jwt.tokenKey),this.token=null,!1}}setLogoutTimer(){if(clearTimeout(this.logoutTimer),!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)){let t=(0,k.default)(this.$jwtHelper.getTokenExpirationDate(this.token)).diff((0,k.default)().add(this.$settings.serverTimeOffset,"s"),"millisecond");t<=2147483647&&(this.logoutTimer=setTimeout(()=>a(this,null,function*(){this.$settings.formAuth===!1?(yield this.noauth(),window.location.reload()):this.logout()}),t))}}static \u0275fac=function(t){return new(t||r)};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})();export{F as a,q as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-HVI3LFAL.js";import{g as i}from"./chunk-GEIS2BWE.js";import"./chunk-4AJSXM5Z.js";import"./chunk-IJVDEEEM.js";import"./chunk-R3563DDE.js";import"./chunk-Q4CZ7LVK.js";import{ha as o,nb as r}from"./chunk-ULJPS3WS.js";var a=[{path:"",loadComponent:()=>import("./chunk-RZBLN3JA.js").then(t=>t.SetupWizardComponent)}],u=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=r({type:t});static \u0275inj=o({imports:[i.forChild(a),i]})}return t})();var l=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=r({type:t});static \u0275inj=o({providers:[n],imports:[u]})}return t})();export{l as SetupWizardModule};
|