homebridge-config-ui-x 5.0.0-beta.101 → 5.0.0-beta.103

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.
Files changed (118) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/package.json +6 -6
  3. package/public/assets/hap-icons/filtermaintenance.svg +26 -0
  4. package/public/assets/hap-icons/securitysystem-active.svg +1 -1
  5. package/public/assets/hap-icons/securitysystem-triggered.svg +103 -0
  6. package/public/chunk-27I3OKX6.js +1 -0
  7. package/public/{chunk-JE732SOT.js → chunk-2NFNHNO6.js} +1 -1
  8. package/public/chunk-32P73GTM.js +1 -0
  9. package/public/{chunk-VHTQTL2S.js → chunk-3AAMPGXX.js} +1 -1
  10. package/public/chunk-3IK7TDXR.js +1 -0
  11. package/public/{chunk-BIRWL4X3.js → chunk-3M3K22OA.js} +1 -1
  12. package/public/chunk-3Y7SY7SQ.js +1 -0
  13. package/public/{chunk-DDFZVHUO.js → chunk-4754Z7OP.js} +1 -1
  14. package/public/{chunk-BRW7C4BZ.js → chunk-4N43YINB.js} +1 -1
  15. package/public/{chunk-VJEUBTTK.js → chunk-4U4VNFNL.js} +1 -1
  16. package/public/chunk-546B5O37.js +1 -0
  17. package/public/{chunk-3KBLYMVM.js → chunk-5KMSO5PV.js} +1 -1
  18. package/public/chunk-5P33HCXD.js +7 -0
  19. package/public/{chunk-EGRPIFYF.js → chunk-5RL6BFXS.js} +1 -1
  20. package/public/{chunk-WCYCETUA.js → chunk-5RZ3NS5Q.js} +1 -1
  21. package/public/chunk-675RKF3H.js +1 -0
  22. package/public/chunk-67LBZB5L.js +1 -0
  23. package/public/{chunk-BMCQHGMB.js → chunk-6OTCM2QG.js} +1 -1
  24. package/public/{chunk-QMB5XE4Y.js → chunk-76VOEY5B.js} +1 -1
  25. package/public/{chunk-IJR4P4CH.js → chunk-7ME3WP6Z.js} +1 -1
  26. package/public/{chunk-QHUIV2B5.js → chunk-A45SWX2W.js} +1 -1
  27. package/public/{chunk-FNHPLIFV.js → chunk-A52D6FAB.js} +1 -1
  28. package/public/chunk-ACTXSWFI.js +1 -0
  29. package/public/{chunk-6YYG3OKR.js → chunk-AGFRFRFJ.js} +1 -1
  30. package/public/{chunk-WD2RKBDO.js → chunk-AT67RR4R.js} +1 -1
  31. package/public/chunk-BG6CGSPD.js +1 -0
  32. package/public/chunk-D463VGNW.js +1 -0
  33. package/public/chunk-DJVDPN67.js +1 -0
  34. package/public/{chunk-3NTCV6WP.js → chunk-DU42DWVP.js} +1 -1
  35. package/public/{chunk-4RGKWQU6.js → chunk-E2MKM4YX.js} +1 -1
  36. package/public/{chunk-WALYNNK5.js → chunk-EFQRELRU.js} +1 -1
  37. package/public/{chunk-CSHEX5NC.js → chunk-EUJTYHY7.js} +1 -1
  38. package/public/{chunk-CG7LPZUJ.js → chunk-F3HFHS2T.js} +1 -1
  39. package/public/{chunk-CNOY6SFC.js → chunk-F5YNRAYP.js} +1 -1
  40. package/public/{chunk-TXSUD3RL.js → chunk-F7ESMOWK.js} +1 -1
  41. package/public/{chunk-MMEFZVFQ.js → chunk-FANPC3GQ.js} +1 -1
  42. package/public/{chunk-E36YMZY4.js → chunk-GGLWYAD2.js} +1 -1
  43. package/public/{chunk-HYNYVUKA.js → chunk-GHGWUGBR.js} +1 -1
  44. package/public/chunk-GQ6WQJZW.js +1 -0
  45. package/public/chunk-GRYSOTIZ.js +1 -0
  46. package/public/{chunk-GMY5QOXR.js → chunk-GTLLKV3H.js} +1 -1
  47. package/public/chunk-HAFSCVQR.js +1 -0
  48. package/public/{chunk-LBTT254H.js → chunk-HQVP27JH.js} +1 -1
  49. package/public/chunk-I4PS7EGK.js +1 -0
  50. package/public/{chunk-XYAWU2ED.js → chunk-IIZYHEOK.js} +1 -1
  51. package/public/{chunk-67FAL7JH.js → chunk-JCR2TIZL.js} +1 -1
  52. package/public/chunk-JLXY6FCU.js +1 -0
  53. package/public/{chunk-RNHMRKPJ.js → chunk-JPQOXPI2.js} +1 -1
  54. package/public/chunk-KOPCLJJG.js +1 -0
  55. package/public/{chunk-PU3TWSJU.js → chunk-KWCBQQVR.js} +1 -1
  56. package/public/{chunk-WAA5KWIN.js → chunk-KZTJTB2H.js} +1 -1
  57. package/public/{chunk-VLX322GM.js → chunk-L5BYKG2R.js} +1 -1
  58. package/public/{chunk-QIH36FRX.js → chunk-MYYIAVZP.js} +1 -1
  59. package/public/{chunk-JHZXVI3K.js → chunk-N5GFR4C7.js} +1 -1
  60. package/public/chunk-NIDSGUG2.js +1 -0
  61. package/public/{chunk-QGDQHACV.js → chunk-OE3ICOZE.js} +1 -1
  62. package/public/{chunk-UTAVUGTT.js → chunk-OHR5OVP7.js} +1 -1
  63. package/public/chunk-OIRABOQZ.js +5 -0
  64. package/public/chunk-PBOEUQSP.js +1 -0
  65. package/public/{chunk-VUYAK52W.js → chunk-PPKCHGS4.js} +2 -2
  66. package/public/chunk-Q4JQBGUQ.js +1 -0
  67. package/public/{chunk-L6JNO3P5.js → chunk-QFF52QYR.js} +1 -1
  68. package/public/chunk-QMZ65FUR.js +1 -0
  69. package/public/{chunk-NANSDWEP.js → chunk-QW2S4TCZ.js} +1 -1
  70. package/public/chunk-QWVQVPNY.js +1 -0
  71. package/public/{chunk-UVOJ3BF7.js → chunk-RH4NWKOD.js} +1 -1
  72. package/public/{chunk-IOWBVW62.js → chunk-RPJLIQDW.js} +1 -1
  73. package/public/{chunk-EHYB64DK.js → chunk-S2WIYRGI.js} +1 -1
  74. package/public/chunk-S6VSQTBH.js +1 -0
  75. package/public/chunk-SDRDUPLC.js +1 -0
  76. package/public/{chunk-KGQXFMUX.js → chunk-SSA4U6JC.js} +1 -1
  77. package/public/{chunk-ZP5ERU6O.js → chunk-SYYAM3C4.js} +1 -1
  78. package/public/chunk-TIYKNWM5.js +8 -0
  79. package/public/{chunk-OR6CUPLP.js → chunk-TVCRU6V5.js} +1 -1
  80. package/public/chunk-TZK7JKDD.js +1 -0
  81. package/public/chunk-V47KQXKI.js +1 -0
  82. package/public/{chunk-PVH3OZPO.js → chunk-WNXHH5TR.js} +1 -1
  83. package/public/chunk-XA7O7ZVO.js +1 -0
  84. package/public/{chunk-2G7GNBIF.js → chunk-XRY6CGOA.js} +1 -1
  85. package/public/{chunk-UWKOQJLO.js → chunk-YPTHBNUH.js} +1 -1
  86. package/public/index.html +1 -1
  87. package/public/{main-ORLCJTBG.js → main-P3YWC4AJ.js} +1 -1
  88. package/public/chunk-4A5UMBFX.js +0 -1
  89. package/public/chunk-4KFFPE3X.js +0 -1
  90. package/public/chunk-5NBW7CCV.js +0 -1
  91. package/public/chunk-A3KWNY4Q.js +0 -1
  92. package/public/chunk-ALG7CIS3.js +0 -5
  93. package/public/chunk-BKR5NA75.js +0 -1
  94. package/public/chunk-C6LXQBT3.js +0 -1
  95. package/public/chunk-EZZ2U6ZO.js +0 -8
  96. package/public/chunk-GYBA35QS.js +0 -1
  97. package/public/chunk-H7HZZEL7.js +0 -1
  98. package/public/chunk-HCJSLSTH.js +0 -1
  99. package/public/chunk-HPVQO6EP.js +0 -1
  100. package/public/chunk-IFJOFLLC.js +0 -1
  101. package/public/chunk-JSTVINGW.js +0 -1
  102. package/public/chunk-K4IBXXRR.js +0 -1
  103. package/public/chunk-NPGQTP6K.js +0 -1
  104. package/public/chunk-NQ4J7SSU.js +0 -1
  105. package/public/chunk-OHPCYLXI.js +0 -1
  106. package/public/chunk-OK54UGUG.js +0 -1
  107. package/public/chunk-PCOFQVCM.js +0 -1
  108. package/public/chunk-PFYSR33C.js +0 -1
  109. package/public/chunk-PODF4FUD.js +0 -1
  110. package/public/chunk-R3VPSO5X.js +0 -7
  111. package/public/chunk-S46K5JOQ.js +0 -1
  112. package/public/chunk-T4TYPDNX.js +0 -1
  113. package/public/chunk-V2ZZMO7J.js +0 -1
  114. package/public/chunk-VEPTLCSB.js +0 -1
  115. package/public/chunk-W3C6RTKX.js +0 -1
  116. package/public/chunk-XAC7NMU3.js +0 -1
  117. package/public/chunk-Z64JVPZ3.js +0 -1
  118. /package/public/{polyfills-GCAZ7JAV.js → polyfills-WE4HA5DL.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -37,6 +37,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
37
37
 
38
38
  ### UI Changes
39
39
 
40
+ - updates to the `th.json` language file (#2472) (@tomzt)
40
41
  - auto restart after version change of hb or ui
41
42
  - redesigned setup wizard page
42
43
  - style HBv2/UIv5 icons on status page based on readiness
@@ -45,6 +46,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
45
46
  - add support for `uiSchema` within plugin configurations
46
47
  - add option to hide update notifications for specific plugins
47
48
  - improve plugin search and result ordering (@justjam2013)
49
+ - add icon and tile for filter maintenance accessory
48
50
 
49
51
  ### Other Changes
50
52
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-config-ui-x",
3
3
  "displayName": "Homebridge UI",
4
- "version": "5.0.0-beta.101",
4
+ "version": "5.0.0-beta.103",
5
5
  "description": "A web based management, configuration and control platform for Homebridge.",
6
6
  "author": "oznu <dev@oz.nu>",
7
7
  "license": "MIT",
@@ -113,19 +113,19 @@
113
113
  "reflect-metadata": "0.2.2",
114
114
  "rxjs": "7.8.2",
115
115
  "semver": "7.7.2",
116
- "systeminformation": "5.27.5",
116
+ "systeminformation": "5.27.7",
117
117
  "tail": "2.2.6",
118
118
  "tar": "7.4.3",
119
119
  "tcp-port-used": "1.0.2",
120
120
  "unzipper": "0.12.3"
121
121
  },
122
122
  "devDependencies": {
123
- "@antfu/eslint-config": "^4.15.0",
123
+ "@antfu/eslint-config": "^4.16.1",
124
124
  "@nestjs/testing": "^11.1.3",
125
125
  "@prettier/plugin-xml": "^3.4.1",
126
126
  "@types/fs-extra": "^11.0.4",
127
- "@types/lodash": "^4.17.18",
128
- "@types/node": "^24.0.3",
127
+ "@types/lodash": "^4.17.19",
128
+ "@types/node": "^24.0.7",
129
129
  "@types/node-schedule": "^2.1.7",
130
130
  "@types/passport-jwt": "^4.0.1",
131
131
  "@types/semver": "^7.7.0",
@@ -133,7 +133,7 @@
133
133
  "@types/tcp-port-used": "^1.0.4",
134
134
  "@types/unzipper": "^0.10.11",
135
135
  "@vitest/coverage-v8": "^3.2.4",
136
- "concurrently": "^9.1.2",
136
+ "concurrently": "^9.2.0",
137
137
  "eslint-plugin-format": "^1.0.1",
138
138
  "form-data": "^4.0.3",
139
139
  "nodemon": "^3.1.10",
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <svg
3
+ width="32"
4
+ height="32"
5
+ viewBox="0 0 100 100"
6
+ version="1.1"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:xlink="http://www.w3.org/1999/xlink"
9
+ preserveAspectRatio="xMidYMid meet"
10
+ >
11
+ <g transform="scale(1, 0.5)">
12
+ <g id="airpurifier">
13
+ <polygon
14
+ id="Path"
15
+ fill="#C7C5CB"
16
+ points="17.2333685 76.7914641 70.0374945 76.7914641 73.9430133 79.2866885 76.8250853 84.9649087 87.1832833 114.139252 87.1832833 140.017181 85.5385126 142.175202 83.1303576 143.984565 5.21741581 143.984565 2.85966936 142.750318 1.09613307 140.017181 1.09613307 114.139252 10.9193128 84.9649087 14.372682 79.2866885"
17
+ />
18
+ <rect id="Rectangle" fill="#454545" x="46" y="84" width="17" height="5" />
19
+ <rect id="Rectangle" fill="#454545" x="46" y="94" width="20" height="5" />
20
+ <rect id="Rectangle" fill="#454545" x="46" y="103" width="22" height="5" />
21
+ <rect id="Rectangle" fill="#454545" x="20" y="103" width="22" height="5" />
22
+ <rect id="Rectangle" fill="#454545" x="22" y="94" width="20" height="5" />
23
+ <rect id="Rectangle" fill="#454545" x="25" y="84" width="17" height="5" />
24
+ </g>
25
+ </g>
26
+ </svg>
@@ -47,7 +47,7 @@
47
47
  </g>
48
48
  </g>
49
49
  <g>
50
- <use xlink:href="#djkaoyeRK" opacity="1" fill="#ed5151" fill-opacity="1" />
50
+ <use xlink:href="#djkaoyeRK" opacity="1" fill="#ffcf55" fill-opacity="1" />
51
51
  <g>
52
52
  <use
53
53
  xlink:href="#djkaoyeRK"
@@ -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="#ed5151" 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>
@@ -0,0 +1 @@
1
+ import{a as Ne}from"./chunk-S2WIYRGI.js";import{a as et}from"./chunk-F3HFHS2T.js";import{a as Ye,b as Ze}from"./chunk-GTLLKV3H.js";import{g as re,m as P,n as G,o as se}from"./chunk-OIRABOQZ.js";import{A as te,b as Y,c as ne,e as Z,j as E,k as we,l as Ee,n as Be,o as ae,r as Te,s as $e,t as Fe,u as Pe,v as Re,x as Ae,z as ee}from"./chunk-L5BYKG2R.js";import{d as O,e as De}from"./chunk-XRY6CGOA.js";import{a as Ve}from"./chunk-F5YNRAYP.js";import{b as j}from"./chunk-QW2S4TCZ.js";import{c as ke,d as de,f as ie,g as ce,k as A,m as Me,n as D}from"./chunk-F7ESMOWK.js";import{c as ye,d as Ie}from"./chunk-PPKCHGS4.js";import{a as R,b as F}from"./chunk-76VOEY5B.js";import{$a as t,Ac as s,Bc as o,Cc as z,Gb as v,Hb as h,Ib as _,Kb as V,Lb as N,M as w,Mb as L,Nb as c,Ob as n,Pb as a,Qb as d,Ub as k,Xa as pe,Xb as f,Ya as _e,Yb as b,ac as ge,bc as be,bd as U,cc as ve,g as le,gd as X,h as S,id as Se,jc as l,kc as u,la as x,lb as $,lc as g,qc as fe,ra as y,rc as Ce,sa as I,sc as xe,w as B,wc as M,xc as T,yc as J}from"./chunk-5P33HCXD.js";var Le=(i,m)=>({"green-text":i,"grey-text":m});function tt(i,m){if(i&1){let e=k();n(0,"li",9)(1,"div",10),l(2),d(3,"br"),n(4,"small",11),d(5,"i",12),s(6,"translate"),l(7," \xB7 "),n(8,"span",13),l(9),a(),l(10),s(11,"titlecase"),a()(),n(12,"div",14)(13,"input",23),s(14,"translate"),f("click",function(){let p=y(e).$implicit,C=b();return I(C.toggleList(p._username))}),a(),d(15,"label",24),a()()}if(i&2){let e=m.$implicit,r=b();t(2),g(" ",e.name," "),t(3),c("ngbTooltip",o(6,10,e._isPaired?"status.widget.qr_paired":"status.widget.qr_unpaired"))("ngClass",T(16,Le,e._isPaired,!e._isPaired)),t(4),u(e._username),t(),g(" \xB7 ",o(11,12,e._category)," "),t(3),c("id","hidePluginUpdates_"+e._username)("checked",!r.isInList(e._username))("disabled",r.clicked),v("aria-label",o(14,14,"form.button_allow")+" "+e.name),t(2),c("for","hidePluginUpdates_"+e._username)}}function it(i,m){i&1&&(l(0),s(1,"translate")),i&2&&g(" ",o(1,1,"form.button_save")," ")}function nt(i,m){i&1&&d(0,"i",22)}var Oe=(()=>{class i{$activeModal=x(P);$api=x(D);$settings=x(j);$toastr=x(A);$translate=x(R);originalBlacklist=[];updatedBlacklist=[];existingBlacklist=[];clicked=!1;mainPairing={};pairings=[];constructor(){}get blacklistHasUpdated(){return this.updatedBlacklist.join(",")!==this.originalBlacklist.join(",")}ngOnInit(){return S(this,null,function*(){this.updatedBlacklist=this.existingBlacklist.map(e=>e.trim().toUpperCase()).sort((e,r)=>e.localeCompare(r)),this.originalBlacklist=[...this.updatedBlacklist];try{let e=yield B(this.$api.get("/server/pairings"));this.mainPairing=e.find(r=>r._main),this.pairings=e.filter(r=>!r._main).sort((r,p)=>r.name.localeCompare(p.name))}catch(e){console.error(e),this.$toastr.error(e.message,this.$translate.instant("toast.title_error")),this.$activeModal.close()}})}toggleList(e){this.updatedBlacklist.includes(e)?this.updatedBlacklist=this.updatedBlacklist.filter(r=>r!==e):(this.updatedBlacklist.push(e),this.updatedBlacklist.sort((r,p)=>r.localeCompare(p)))}isInList(e){return this.updatedBlacklist.includes(e)}updateBlacklist(){return S(this,null,function*(){this.clicked=!0;try{yield B(this.$api.put("/config-editor/ui/accessory-control/instance-blacklist",{body:this.updatedBlacklist})),this.$settings.setEnvItem("accessoryControl.instanceBlacklist",this.updatedBlacklist),this.$activeModal.close()}catch(e){this.clicked=!1,console.error(e),this.$toastr.error(e.message,this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(r){return new(r||i)};static \u0275cmp=$({type:i,selectors:[["ng-component"]],inputs:{existingBlacklist:"existingBlacklist"},decls:45,vars:34,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-list-check","primary-text",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box","mt-3","mb-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center","flex-row","pb-2"],[1,"text-start"],[1,"grey-text"],["container","body","openDelay","150","triggers","hover","placement","left",1,"fas","fa-fw","fa-link",3,"ngbTooltip","ngClass"],[1,"font-monospace"],[1,"text-end","grey-text","d-flex","align-items-center"],["type","checkbox","id","controlMainBridge",1,"rendux-input",3,"click","checked","disabled"],["for","controlMainBridge",1,"rendux-label","ms-3"],[1,"modal-footer","justify-content-between"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],["type","checkbox",1,"rendux-input",3,"click","id","checked","disabled"],[1,"rendux-label","ms-3",3,"for"]],template:function(r,p){r&1&&(n(0,"div",0)(1,"div",1)(2,"h5",2),l(3),s(4,"translate"),a(),n(5,"button",3),s(6,"translate"),f("click",function(){return p.$activeModal.dismiss("Dismiss")}),a()(),n(7,"div",4)(8,"div",5),d(9,"i",6),a(),n(10,"ul",7)(11,"li"),l(12),s(13,"translate"),a(),n(14,"li"),l(15),s(16,"translate"),a()(),n(17,"ul",8)(18,"li",9)(19,"div",10),l(20),d(21,"br"),n(22,"small",11),d(23,"i",12),s(24,"translate"),l(25," \xB7 "),n(26,"span",13),l(27),a(),l(28," \xB7 Homebridge "),a()(),n(29,"div",14)(30,"input",15),s(31,"translate"),f("click",function(){return p.toggleList(p.mainPairing._username)}),a(),d(32,"label",16),a()(),N(33,tt,16,19,"li",9,V),a()(),n(35,"div",17)(36,"div",10)(37,"button",18),f("click",function(){return p.$activeModal.dismiss("Dismiss")}),l(38),s(39,"translate"),a()(),d(40,"div",19),n(41,"div",20)(42,"button",21),f("click",function(){return p.updateBlacklist()}),h(43,it,2,3),h(44,nt,1,0,"i",22),a()()()()),r&2&&(t(3),u(o(4,17,"settings.security.ui_control")),t(2),c("disabled",p.clicked),v("aria-label",o(6,19,"form.button_close")),t(7),u(o(13,21,"settings.security.ui_control_desc")),t(3),u(o(16,23,"settings.security.ui_control_desc_2")),t(5),g(" ",p.mainPairing.name),t(3),c("ngbTooltip",o(24,25,p.mainPairing._isPaired?"status.widget.qr_paired":"status.widget.qr_unpaired"))("ngClass",T(31,Le,p.mainPairing._isPaired,!p.mainPairing._isPaired)),t(4),u(p.mainPairing._username),t(3),c("checked",!p.isInList(p.mainPairing._username))("disabled",p.clicked),v("aria-label",o(31,27,"plugins.manage.hide_updates")),t(3),L(p.pairings),t(4),c("disabled",p.clicked),t(),g(" ",o(39,29,"form.button_close")," "),t(4),c("disabled",!p.blacklistHasUpdated||p.clicked),t(),_(p.clicked?-1:43),t(),_(p.clicked?44:-1))},dependencies:[U,F,ee,X,se],encapsulation:2})}return i})();var me=le(et(),1);var ze=le(Ye(),1),Ue=le(Ze(),1);var at=i=>({maxBackupSizeText:i});function rt(i,m){if(i&1&&d(0,"input",10),i&2){let e=b(2);c("value",e.selectedBackup.fileName)}}function st(i,m){if(i&1){let e=k();n(0,"input",12),f("change",function(p){y(e);let C=b(2);return I(C.handleRestoreFileInput(p.target.files))}),a()}}function ot(i,m){if(i&1&&(n(0,"div",4)(1,"div",7),d(2,"i",8),a(),n(3,"ul",9)(4,"li"),l(5),s(6,"translate"),a(),n(7,"li"),l(8),s(9,"translate"),a(),n(10,"li"),l(11),s(12,"translate"),a(),n(13,"li"),l(14),s(15,"translate"),a()(),h(16,rt,1,1,"input",10),h(17,st,1,0,"input",11),a()),i&2){let e=b();t(5),u(o(6,6,"backup.restore_help_one")),t(3),u(o(9,8,"backup.restore_help_two")),t(3),u(z(12,10,"backup.restore_max_size",M(15,at,e.maxFileSizeText))),t(3),u(o(15,13,"backup.restore_warning")),t(2),_(e.selectedBackup?16:-1),t(),_(e.selectedBackup?-1:17)}}function lt(i,m){if(i&1){let e=k();n(0,"button",18),s(1,"translate"),f("click",function(){y(e);let p=b(2);return I(p.$activeModal.dismiss("Dismiss"))}),l(2),s(3,"translate"),a()}if(i&2){let e=b(2);c("disabled",e.clicked),v("aria-label",o(1,3,"form.button_close")),t(2),g(" ",o(3,5,"form.button_close")," ")}}function pt(i,m){if(i&1){let e=k();n(0,"button",18),s(1,"translate"),f("click",function(){y(e);let p=b(2);return I(p.reopenBackupModal())}),l(2),s(3,"translate"),a()}if(i&2){let e=b(2);c("disabled",e.clicked),v("aria-label",o(1,3,"form.button_back")),t(2),g(" ",o(3,5,"form.button_back")," ")}}function dt(i,m){i&1&&d(0,"i",19)}function ct(i,m){if(i&1&&(n(0,"span"),l(1),a()),i&2){let e=b(3);t(),g("",e.uploadPercent,"% - ")}}function mt(i,m){i&1&&(n(0,"span"),l(1," Extracting Archive"),a())}function ut(i,m){i&1&&(n(0,"span"),l(1),s(2,"translate"),a()),i&2&&(t(),g(" ",o(2,1,"backup.label_uploading")))}function ht(i,m){if(i&1&&(n(0,"span"),h(1,dt,1,0,"i",19),h(2,ct,2,1,"span"),h(3,mt,2,0,"span"),h(4,ut,3,3,"span"),a()),i&2){let e=b(2);t(),_(!e.uploadPercent||e.uploadPercent===100?1:-1),t(),_(e.uploadPercent&&e.uploadPercent!==100?2:-1),t(),_(e.uploadPercent===100?3:-1),t(),_(e.uploadPercent!==100?4:-1)}}function _t(i,m){i&1&&(l(0),s(1,"translate")),i&2&&g(" ",o(1,1,"form.button_restore")," ")}function gt(i,m){if(i&1){let e=k();n(0,"div",6)(1,"div",13),h(2,lt,4,7,"button",14),h(3,pt,4,7,"button",14),a(),d(4,"div",15),n(5,"div",16)(6,"button",17),f("click",function(){y(e);let p=b();return I(p.onRestoreBackupClick())}),h(7,ht,5,4,"span"),h(8,_t,2,3),a()()()}if(i&2){let e=b();t(2),_(e.setupWizardRestore?2:-1),t(),_(e.setupWizardRestore?-1:3),t(3),c("disabled",!e.selectedBackup&&!e.selectedFile||e.clicked),t(),_(e.clicked?7:-1),t(),_(e.clicked?-1:8)}}function bt(i,m){if(i&1){let e=k();n(0,"div",6),d(1,"div",13),n(2,"div",15)(3,"button",20),f("click",function(){y(e);let p=b();return I(p.postBackupRestart())}),l(4),s(5,"translate"),a()(),d(6,"div",16),a()}i&2&&(t(4),g(" ",o(5,1,"menu.hbrestart.title")," "))}var He=(()=>{class i{$activeModal=x(P);$api=x(D);$modal=x(G);$route=x(O);$toastr=x(A);$translate=x(R);$ws=x(Ve);setupWizardRestore=!1;selectedBackup=null;clicked=!1;maxFileSizeText=globalThis.backup.maxBackupSizeText;selectedFile;restoreInProgress=!1;restoreStarted=!1;restoreFailed=!1;restoreArchiveType="homebridge";uploadPercent=0;term=new ze.Terminal;termTarget;fitAddon=new Ue.FitAddon;io;constructor(){}ngOnInit(){return S(this,null,function*(){this.io=this.$ws.connectToNamespace("backup"),this.termTarget=document.getElementById("plugin-log-output"),this.term.open(this.termTarget),this.fitAddon.fit(),this.io.socket.on("stdout",e=>{this.term.write(e)}),this.setupWizardRestore&&(this.restoreStarted=!0,this.restoreInProgress=!0,this.startRestore())})}onRestoreBackupClick(){this.selectedBackup?this.restoreScheduledBackup():this.restoreArchiveType==="homebridge"?this.uploadHomebridgeArchive():this.restoreArchiveType==="hbfx"&&this.uploadHbfxArchive()}uploadHomebridgeArchive(){this.term.reset(),this.clicked=!0;let e=new FormData;e.append("restoreArchive",this.selectedFile,this.selectedFile.name),this.$api.post("/backup/restore",e).subscribe({next:()=>{this.restoreStarted=!0,this.restoreInProgress=!0,setTimeout(()=>{this.startRestore()},500),this.clicked=!1},error:r=>{console.error(r),this.$toastr.error(r.error?.message||this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error")),this.clicked=!1}})}restoreScheduledBackup(){return S(this,null,function*(){this.term.reset(),this.clicked=!0,this.$api.post(`/backup/scheduled-backups/${this.selectedBackup.id}/restore`,{}).subscribe({next:()=>{this.restoreStarted=!0,this.restoreInProgress=!0,setTimeout(()=>{this.startRestore()},500),this.clicked=!1},error:e=>{console.error(e),this.$toastr.error(e.error?.message||this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error")),this.clicked=!1}})})}startRestore(){return S(this,null,function*(){this.io.request("do-restore").subscribe({next:()=>{this.restoreInProgress=!1,this.$toastr.success(this.$translate.instant("backup.backup_restored"),this.$translate.instant("toast.title_success")),this.setupWizardRestore&&this.postBackupRestart()},error:e=>{this.restoreFailed=!0,console.error(e),this.$toastr.error(this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error"))}})})}uploadHbfxArchive(){this.term.reset(),this.clicked=!0;let e=new FormData;e.append("restoreArchive",this.selectedFile,this.selectedFile.name),this.$api.post("/backup/restore/hbfx",e,{reportProgress:!0,observe:"events"}).subscribe({next:r=>{r.type===ye.UploadProgress?this.uploadPercent=Math.round(100*r.loaded/r.total):r instanceof Ie&&(this.restoreStarted=!0,this.restoreInProgress=!0,setTimeout(()=>{this.startHbfxRestore()},500),this.clicked=!1)},error:r=>{this.clicked=!1,console.error(r),this.$toastr.error(r.error?.message||this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error"))}})}startHbfxRestore(){return S(this,null,function*(){this.io.request("do-restore-hbfx").subscribe({next:()=>{this.restoreInProgress=!1,this.$toastr.success(this.$translate.instant("backup.backup_restored"),this.$translate.instant("toast.title_success"))},error:e=>{this.restoreFailed=!0,console.error(e),this.$toastr.error(this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error"))}})})}handleRestoreFileInput(e){e.length?(this.selectedFile=e[0],this.selectedFile.name.endsWith(".hbfx")?this.restoreArchiveType="hbfx":this.restoreArchiveType="homebridge"):delete this.selectedFile}postBackupRestart(){this.$api.put("/backup/restart",{}).subscribe({next:()=>{this.$activeModal.close(!0),this.$route.navigate(["/"])},error:()=>{}})}reopenBackupModal(){this.$activeModal.dismiss(),this.$modal.open(oe,{size:"lg",backdrop:"static"})}ngOnDestroy(){this.io.end()}static \u0275fac=function(r){return new(r||i)};static \u0275cmp=$({type:i,selectors:[["ng-component"]],inputs:{setupWizardRestore:"setupWizardRestore",selectedBackup:"selectedBackup"},decls:11,vars:11,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],["id","plugin-log-output",1,"modal-body",3,"hidden"],[1,"modal-footer","justify-content-between"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-hard-drive","primary-text",2,"font-size","75px"],[1,"mb-3"],["type","text","disabled","",1,"form-control","custom-input",3,"value"],["type","file","id","restoreFileUpload","accept","application/gzip, .gz, .hbfx",1,"form-control"],["type","file","id","restoreFileUpload","accept","application/gzip, .gz, .hbfx",1,"form-control",3,"change"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"disabled"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"fa","fa-fw","fa-circle-notch","fa-spin"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click"]],template:function(r,p){r&1&&(n(0,"div",0)(1,"div",1)(2,"h5",2),l(3),s(4,"translate"),a(),n(5,"button",3),s(6,"translate"),f("click",function(){return p.$activeModal.dismiss("Dismiss")}),a()(),h(7,ot,18,17,"div",4),d(8,"div",5),h(9,gt,9,5,"div",6),h(10,bt,7,3,"div",6),a()),r&2&&(t(3),u(o(4,7,"backup.title_backup")),t(2),c("disabled",p.restoreInProgress),v("aria-label",o(6,9,"form.button_close")),t(2),_(!p.restoreStarted&&!p.setupWizardRestore?7:-1),t(),c("hidden",!p.restoreStarted),t(),_(!p.restoreStarted||p.restoreFailed===!0?9:-1),t(),_(!p.restoreInProgress&&p.restoreStarted?10:-1))},dependencies:[F],encapsulation:2})}return i})();var vt=(i,m)=>({"fa-arrow-right":i,"fa-cog fa-spin":m}),ft=i=>({backupTime:i,dayCount:7}),Ct=(i,m)=>({"fa-trash":i,"fa-cog fa-spin":m}),xt=(i,m)=>({backupSize:i,maxBackupSizeText:m});function St(i,m){if(i&1&&(n(0,"li",23)(1,"label",28),l(2),s(3,"translate"),a(),n(4,"div",29),d(5,"input",30),s(6,"translate"),a()()),i&2){let e=b();t(2),u(o(3,3,"backup.settings_path")),t(3),c("formControl",e.pathFormControl),v("aria-label",o(6,5,"backup.settings_path"))}}function yt(i,m){if(i&1&&(l(0),s(1,"date"),s(2,"translate")),i&2){let e=b(2);g(" ",z(2,4,"backup.scheduled_backup_time",M(7,ft,z(1,1,e.backupTime,"shortTime")))," ")}}function It(i,m){i&1&&(l(0),s(1,"translate")),i&2&&g(" ",o(1,1,"backup.scheduled_backup_disabled")," ")}function kt(i,m){if(i&1&&(n(0,"span",33),s(1,"translate"),d(2,"i",40),l(3),a()),i&2){let e=b().$implicit;c("ngbTooltip",z(1,2,"backup.backup_exceeds_max_size",T(5,xt,e.size+"MB",e.maxBackupSizeText))),t(3),g(" ",e.size,"MB ")}}function wt(i,m){if(i&1&&(n(0,"span"),l(1),a()),i&2){let e=b().$implicit;t(),g(" ",e.size,"MB ")}}function Et(i,m){if(i&1){let e=k();n(0,"li",9)(1,"span")(2,"span",32),l(3),s(4,"date"),a(),d(5,"br"),n(6,"small",10),l(7),s(8,"date"),h(9,kt,4,8,"span",33),h(10,wt,2,1,"span"),a()(),n(11,"span",34)(12,"button",35),s(13,"translate"),s(14,"translate"),f("click",function(){let p=y(e).$implicit,C=b(2);return I(C.restore(p))}),d(15,"i",36),a(),n(16,"button",37),s(17,"translate"),s(18,"translate"),f("click",function(){let p=y(e).$implicit,C=b(2);return I(C.download(p))}),d(19,"i",38),a(),n(20,"button",39),s(21,"translate"),s(22,"translate"),f("click",function(){let p=y(e).$implicit,C=b(2);return I(C.delete(p))}),d(23,"i",12),a()()()}if(i&2){let e=m.$implicit,r=b(2);t(2),c("ngbTooltip",e.fileName),t(),g(" ",z(4,15,e.timestamp,"mediumDate")," "),t(4),g(" ",z(8,18,e.timestamp,"shortTime")," \xB7 "),t(2),_(e.size>e.maxBackupSize?9:-1),t(),_(e.size<=e.maxBackupSize?10:-1),t(2),c("disabled",r.clicked||r.deleting||e.size>e.maxBackupSize)("ngbTooltip",o(13,21,"form.button_restore")),v("aria-label",o(14,23,"form.button_restore")),t(4),c("disabled",r.clicked||r.deleting)("ngbTooltip",o(17,25,"form.button_download")),v("aria-label",o(18,27,"form.button_download")),t(4),c("disabled",r.clicked||r.deleting)("ngbTooltip",o(21,29,"form.button_delete")),v("aria-label",o(22,31,"form.button_delete")),t(3),c("ngClass",T(33,Ct,e.id!==r.deleting,e.id===r.deleting))}}function Bt(i,m){if(i&1&&(n(0,"ul",14)(1,"li",15)(2,"h6",16),l(3),s(4,"translate"),a(),n(5,"p",31),h(6,yt,3,9),h(7,It,2,3),a()(),N(8,Et,24,36,"li",9,V),a()),i&2){let e=b();t(3),u(o(4,3,"backup.files_auto")),t(3),_(e.currentSettingEnabled&&e.backupTime?6:-1),t(),_(!e.currentSettingEnabled||!e.backupTime?7:-1),t(),L(e.scheduledBackups)}}var oe=(()=>{class i{$activeModal=x(P);$api=x(D);$modal=x(G);$router=x(O);$settings=x(j);$toastr=x(A);$translate=x(R);restartToastIsShown=!1;clicked=!1;scheduledBackups=[];backupTime;deleting=null;currentSettingEnabled=!1;currentSettingPath="";enabledFormControl=new E(!1);pathFormControl=new E("");constructor(){}ngOnInit(){this.getScheduledBackups(),this.getNextBackup(),this.currentSettingEnabled=!this.$settings.env.scheduledBackupDisable,this.currentSettingPath=this.$settings.env.scheduledBackupPath,this.enabledFormControl.patchValue(this.currentSettingEnabled),this.pathFormControl.patchValue(this.currentSettingPath),this.enabledFormControl.valueChanges.pipe(w(750)).subscribe(e=>S(this,null,function*(){this.currentSettingEnabled=e,yield this.saveUiSettingChange("scheduledBackupDisable",!this.currentSettingEnabled)})),this.pathFormControl.valueChanges.pipe(w(1500)).subscribe(e=>S(this,null,function*(){this.currentSettingPath=e,yield this.saveUiSettingChange("scheduledBackupPath",this.currentSettingPath)}))}saveUiSettingChange(e,r){return S(this,null,function*(){try{yield B(this.$api.put("/config-editor/ui",{key:e,value:r})),this.showRestartToast()}catch(p){console.error(p),this.$toastr.error(p.message,this.$translate.instant("toast.title_error"))}})}getScheduledBackups(){this.$api.get("/backup/scheduled-backups").subscribe({next:e=>{this.scheduledBackups=e},error:e=>console.error(e)})}getNextBackup(){this.$api.get("/backup/scheduled-backups/next").subscribe({next:e=>{this.backupTime=e.next},error:e=>{console.error(e)}})}download(e){this.$api.get(`/backup/scheduled-backups/${e.id}`,{observe:"response",responseType:"blob"}).subscribe({next:r=>{let p=e.fileName||"homebridge-backup.tar.gz",C=r.body.size;if(C>globalThis.backup.maxBackupSize){let K=this.$translate.instant("backup.backup_exceeds_max_size",{maxBackupSizeText:globalThis.backup.maxBackupSizeText,size:`${(C/1048576).toFixed(1)}MB`});this.$toastr.warning(K,this.$translate.instant("toast.title_warning"))}(0,me.saveAs)(r.body,p)},error:r=>{console.error(r),this.$toastr.error(this.$translate.instant("backup.backup_download_failed"),this.$translate.instant("toast.title_error"))}})}restore(e){this.$activeModal.close();let r=this.$modal.open(He,{size:"lg",backdrop:"static"});r.componentInstance.selectedBackup=e}delete(e){this.deleting=e.id,this.$api.delete(`/backup/scheduled-backups/${e.id}`).subscribe({next:()=>{this.getScheduledBackups(),this.deleting=null},error:r=>{this.deleting=null,console.error(r),this.$toastr.error(this.$translate.instant("backup.backup_delete_failed"),this.$translate.instant("toast.title_error"))}})}onDownloadBackupClick(){return S(this,null,function*(){this.clicked=!0,this.$api.get("/backup/download",{observe:"response",responseType:"blob"}).subscribe({next:e=>{let r=e.headers.get("File-Name")||"homebridge-backup.tar.gz";this.clicked=!1;let p=e.body.size;if(p>globalThis.backup.maxBackupSize){let C=this.$translate.instant("backup.backup_exceeds_max_size",{maxBackupSizeText:globalThis.backup.maxBackupSizeText,size:`${(p/1048576).toFixed(1)}MB`});this.$toastr.warning(C,this.$translate.instant("toast.title_warning"))}(0,me.saveAs)(e.body,r)},error:e=>{this.clicked=!1,console.error(e),this.$toastr.error(this.$translate.instant("backup.backup_download_failed"),this.$translate.instant("toast.title_error"))}})})}showRestartToast(){if(!this.restartToastIsShown){this.restartToastIsShown=!0;let e=this.$toastr.info(this.$translate.instant("settings.changes.saved"),this.$translate.instant("menu.hbrestart.title"),{timeOut:0,tapToDismiss:!0,disableTimeOut:!0,positionClass:"toast-bottom-right",enableHtml:!0});e&&e.onTap&&e.onTap.subscribe(()=>{this.$router.navigate(["/restart"])})}}Date=Date;static \u0275fac=function(r){return new(r||i)};static \u0275cmp=$({type:i,selectors:[["ng-component"]],decls:70,vars:59,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-hard-drive","primary-text",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"grey-text"],[1,"btn","btn-primary","m-0","ms-3",3,"click","disabled"],[1,"fas","fa-fw",3,"ngClass"],[1,"fas","fa-fw","fa-arrow-right"],[1,"list-group","list-group-box","mt-3","mb-0"],[1,"list-group-item"],[1,"mb-1","text-center"],[1,"mb-0","small","grey-text","text-center"],[1,"list-group-item","d-flex","justify-content-between","align-items-center","flex-row","pb-2"],[1,"text-start"],[1,"text-end","grey-text","d-flex","align-items-center"],["type","checkbox","id","disableScheduledBackups",1,"rendux-input",3,"formControl"],["for","disableScheduledBackups",1,"rendux-label"],[1,"list-group-item","d-flex","flex-column","flex-md-row","align-items-center"],[1,"modal-footer","justify-content-between"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-end"],[1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50"],["type","text","placeholder","/home/pi/homebridge-backups",1,"form-control","custom-input",3,"formControl"],[1,"small","grey-text","mb-0","text-center"],["container","modal","openDelay","150","triggers","hover",3,"ngbTooltip"],["container","modal","openDelay","150","triggers","hover",1,"red-text",3,"ngbTooltip"],[2,"display","flex","flex-wrap","nowrap"],["placement","bottom","container","modal","openDelay","150","triggers","hover",1,"btn","btn-primary","m-0","ms-3",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-history"],["placement","bottom","container","modal","openDelay","150","triggers","hover",1,"btn","btn-primary","m-0","ms-2",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-download"],["placement","bottom","container","modal","openDelay","150","triggers","hover",1,"btn","btn-danger","m-0","ms-2",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-exclamation-circle"]],template:function(r,p){r&1&&(n(0,"div",0)(1,"div",1)(2,"h5",2),l(3),s(4,"translate"),a(),n(5,"button",3),s(6,"translate"),f("click",function(){return p.$activeModal.dismiss("Dismiss")}),a()(),n(7,"div",4)(8,"div",5),d(9,"i",6),a(),n(10,"ul",7)(11,"li"),l(12),s(13,"translate"),a(),n(14,"li"),l(15),s(16,"translate"),a(),n(17,"li"),l(18),s(19,"translate"),a()(),n(20,"ul",8)(21,"li",9)(22,"div")(23,"span"),l(24),s(25,"translate"),a(),d(26,"br"),n(27,"small",10),l(28),s(29,"translate"),a()(),n(30,"button",11),s(31,"translate"),f("click",function(){return p.onDownloadBackupClick()}),d(32,"i",12),a()(),n(33,"li",9)(34,"div")(35,"span"),l(36),s(37,"translate"),a(),d(38,"br"),n(39,"small",10),l(40),s(41,"translate"),a()(),n(42,"button",11),s(43,"translate"),f("click",function(){return p.restore(null)}),d(44,"i",13),a()()(),n(45,"ul",14)(46,"li",15)(47,"h6",16),l(48),s(49,"translate"),a(),n(50,"p",17),l(51),s(52,"translate"),a()(),n(53,"li",18)(54,"span",19),l(55),s(56,"translate"),a(),n(57,"div",20),d(58,"input",21),s(59,"translate"),d(60,"label",22),a()(),h(61,St,7,7,"li",23),a(),h(62,Bt,10,5,"ul",14),a(),n(63,"div",24),d(64,"div",19),n(65,"div",25)(66,"button",26),f("click",function(){return p.$activeModal.dismiss("Dismiss")}),l(67),s(68,"translate"),a()(),d(69,"div",27),a()()),r&2&&(t(3),u(o(4,24,"backup.title_backup")),t(2),c("disabled",p.clicked||p.deleting),v("aria-label",o(6,26,"form.button_close")),t(7),u(o(13,28,"backup.backup_help_one")),t(3),u(o(16,30,"backup.backup_help_two")),t(3),u(o(19,32,"backup.backup_warning")),t(6),u(o(25,34,"backup.backup_now")),t(4),u(o(29,36,"backup.backup_now_desc")),t(2),c("disabled",p.clicked),v("aria-label",o(31,38,"backup.backup_now")),t(2),c("ngClass",T(56,vt,!p.clicked,p.clicked)),t(4),u(o(37,40,"backup.restore_now")),t(4),u(o(41,42,"backup.restore_now_desc")),t(2),c("disabled",p.clicked),v("aria-label",o(43,44,"backup.restore_now")),t(6),u(o(49,46,"backup.settings_title")),t(3),u(o(52,48,"form.auto_save")),t(4),u(o(56,50,"backup.settings_enable")),t(3),c("formControl",p.enabledFormControl),v("aria-label",o(59,52,"backup.settings_enable")),t(3),_(p.currentSettingEnabled?61:-1),t(),_(p.scheduledBackups.length?62:-1),t(4),c("disabled",p.clicked||p.deleting),t(),g(" ",o(68,54,"form.button_close")," "))},dependencies:[se,U,Se,F,te,ne,Y,Z,ae],encapsulation:2})}return i})();function Tt(i,m){i&1&&(n(0,"div",12),d(1,"i",13),a(),n(2,"p",14),l(3),s(4,"translate"),a()),i&2&&(t(3),u(o(4,1,"reset.no_accessories")))}function $t(i,m){i&1&&(n(0,"div",12),d(1,"i",15),a(),n(2,"ul",16)(3,"li"),l(4),s(5,"translate"),a(),n(6,"li"),l(7),s(8,"translate"),a(),n(9,"li"),l(10),s(11,"translate"),a()(),n(12,"ngb-alert",17)(13,"p",18),l(14),s(15,"translate"),a()()),i&2&&(t(4),u(o(5,5,"reset.accessory_all.list_1")),t(3),u(o(8,7,"reset.accessory_all.list_2")),t(3),u(o(11,9,"reset.accessory_all.list_3")),t(2),c("dismissible",!1),t(2),u(o(15,11,"reset.action_is_irreversible")))}function Ft(i,m){if(i&1){let e=k();n(0,"button",19),s(1,"translate"),f("click",function(){y(e);let p=b();return I(p.$activeModal.dismiss("Dismiss"))}),l(2),s(3,"translate"),a()}if(i&2){let e=b();c("disabled",e.clicked),v("aria-label",o(1,3,"form.button_close")),t(2),g(" ",o(3,5,"form.button_close")," ")}}function Pt(i,m){if(i&1){let e=k();n(0,"button",20),s(1,"translate"),f("click",function(){y(e);let p=b();return I(p.$activeModal.dismiss("Dismiss"))}),l(2),s(3,"translate"),a()}i&2&&(v("aria-label",o(1,2,"form.button_close")),t(2),g(" ",o(3,4,"form.button_close")," "))}function Rt(i,m){i&1&&(l(0),s(1,"translate")),i&2&&g(" ",o(1,1,"form.button_remove")," ")}function At(i,m){i&1&&d(0,"i",22)}function Dt(i,m){if(i&1){let e=k();n(0,"button",21),f("click",function(){y(e);let p=b();return I(p.onResetCachedAccessoriesClick())}),h(1,Rt,2,3),h(2,At,1,0,"i",22),a()}if(i&2){let e=b();c("disabled",e.clicked),t(),_(e.clicked?-1:1),t(),_(e.clicked?2:-1)}}var Ke=(()=>{class i{$activeModal=x(P);$api=x(D);$router=x(O);$toastr=x(A);$translate=x(R);clicked=!1;cachedAccessories=[];constructor(){}ngOnInit(){this.loadCachedAccessories()}loadCachedAccessories(){return S(this,null,function*(){try{this.cachedAccessories=yield B(this.$api.get("/server/cached-accessories"))}catch(e){console.error(e),this.$toastr.error(this.$translate.instant("reset.error_message"),this.$translate.instant("toast.title_error")),this.$activeModal.close()}})}onResetCachedAccessoriesClick(){return this.clicked=!0,this.$api.put("/server/reset-cached-accessories",{}).subscribe({next:()=>{this.$toastr.success(this.$translate.instant("reset.delete_success"),this.$translate.instant("toast.title_success")),this.$activeModal.close(),this.$router.navigate(["/restart"],{queryParams:{restarting:!0}})},error:e=>{this.clicked=!1,console.error(e),this.$toastr.error(this.$translate.instant("reset.failed_to_reset"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(r){return new(r||i)};static \u0275cmp=$({type:i,selectors:[["ng-component"]],decls:17,vars:12,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"disabled"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"disabled"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-circle-check","primary-text",2,"font-size","75px"],[1,"mb-0","text-center"],[1,"fas","fa-fw","fa-network-wired","primary-text",2,"font-size","75px"],[1,"mb-3"],["type","error",1,"mb-0",3,"dismissible"],[1,"text-center","mb-0"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"]],template:function(r,p){r&1&&(n(0,"div",0)(1,"div",1)(2,"h5",2),l(3),s(4,"translate"),a(),n(5,"button",3),s(6,"translate"),f("click",function(){return p.$activeModal.dismiss("Dismiss")}),a()(),n(7,"div",4),h(8,Tt,5,3),h(9,$t,16,13),a(),n(10,"div",5)(11,"div",6),h(12,Ft,4,7,"button",7),a(),n(13,"div",8),h(14,Pt,4,6,"button",9),a(),n(15,"div",10),h(16,Dt,3,3,"button",11),a()()()),r&2&&(t(3),u(o(4,8,"reset.accessory_all.title")),t(2),c("disabled",p.clicked),v("aria-label",o(6,10,"form.button_close")),t(3),_(p.cachedAccessories.length===0?8:-1),t(),_(p.cachedAccessories.length>0?9:-1),t(3),_(p.cachedAccessories.length>0?12:-1),t(2),_(p.cachedAccessories.length===0?14:-1),t(2),_(p.cachedAccessories.length>0?16:-1))},dependencies:[re,F],encapsulation:2})}return i})();var Mt=(i,m)=>({"green-text":i,"grey-text":m}),Vt=(i,m)=>({"btn-danger":i,"btn-elegant":m}),Nt=(i,m,e)=>({"fa-broom":i,"fa-undo":m,"fa-spinner fa-pulse":e});function Lt(i,m){i&1&&(n(0,"div",12),d(1,"i",13),a(),n(2,"p",14),l(3),s(4,"translate"),a()),i&2&&(t(3),u(o(4,1,"reset.bridge_accessories.empty")))}function Ot(i,m){if(i&1){let e=k();n(0,"li",18)(1,"span"),l(2),d(3,"br"),n(4,"small",19),d(5,"i",20),l(6),s(7,"translate"),n(8,"span",21),l(9),a()()(),n(10,"button",22),s(11,"translate"),f("click",function(){let p=y(e).$implicit,C=b(2);return I(C.toggleList(p._id))}),d(12,"i",23),a()()}if(i&2){let e=m.$implicit,r=b(2);t(2),g(" ",e.name," "),t(3),c("ngClass",T(12,Mt,e._isPaired,!e._isPaired)),t(),g(" ",o(7,8,e._isPaired?"status.widget.qr_paired":"status.widget.qr_unpaired")," \xB7 "),t(3),u(e._username),t(),c("disabled",r.clicked)("ngClass",T(15,Vt,!r.toDelete.includes(e._id),r.toDelete.includes(e._id))),v("aria-label",o(11,10,"form.button_delete")),t(2),c("ngClass",J(18,Nt,!r.toDelete.includes(e._id),r.toDelete.includes(e._id)&&!r.clicked,r.toDelete.includes(e._id)&&r.clicked))}}function zt(i,m){if(i&1&&(n(0,"div",12),d(1,"i",15),a(),n(2,"ul",16)(3,"li"),l(4),s(5,"translate"),a(),n(6,"li"),l(7),s(8,"translate"),a(),n(9,"li"),l(10),s(11,"translate"),a()(),n(12,"ul",17),N(13,Ot,13,22,"li",18,V),a()),i&2){let e=b();t(4),u(o(5,3,"reset.bridge_accessories.list_1")),t(3),u(o(8,5,"reset.clear_cache_single.list_3")),t(3),u(o(11,7,"reset.bridge_accessories.list_2")),t(3),L(e.pairings)}}function Ut(i,m){if(i&1){let e=k();n(0,"button",24),f("click",function(){y(e);let p=b();return I(p.$activeModal.dismiss("Dismiss"))}),l(1),s(2,"translate"),a()}if(i&2){let e=b();c("disabled",e.clicked),t(),g(" ",o(2,2,"form.button_close")," ")}}function Ht(i,m){if(i&1){let e=k();n(0,"button",25),f("click",function(){y(e);let p=b();return I(p.$activeModal.dismiss("Dismiss"))}),l(1),s(2,"translate"),a()}i&2&&(t(),g(" ",o(2,1,"form.button_close")," "))}function Wt(i,m){if(i&1&&l(0),i&2){let e=b(3);g(" (",e.toDelete.length,") ")}}function Kt(i,m){if(i&1&&(l(0),s(1,"translate"),h(2,Wt,1,1)),i&2){let e=b(2);g(" ",o(1,2,"form.button_remove")," "),t(2),_(e.toDelete.length>0?2:-1)}}function Gt(i,m){i&1&&d(0,"i",27)}function jt(i,m){if(i&1){let e=k();n(0,"button",26),f("click",function(){y(e);let p=b();return I(p.cleanBridges())}),h(1,Kt,3,4),h(2,Gt,1,0,"i",27),a()}if(i&2){let e=b();c("disabled",!e.toDelete.length||e.clicked),t(),_(e.clicked?-1:1),t(),_(e.clicked?2:-1)}}var Ge=(()=>{class i{$activeModal=x(P);$api=x(D);$router=x(O);$toastr=x(A);$translate=x(R);clicked=!1;pairings=[];toDelete=[];constructor(){}ngOnInit(){this.loadPairings()}loadPairings(){return S(this,null,function*(){try{this.pairings=(yield B(this.$api.get("/server/pairings"))).filter(e=>e._category==="bridge"&&!e._main).sort((e,r)=>e.name.localeCompare(r.name))}catch(e){console.error(e),this.$toastr.error(this.$translate.instant("settings.unpair_bridge.load_error"),this.$translate.instant("toast.title_error")),this.$activeModal.close()}})}toggleList(e){this.toDelete.includes(e)?this.toDelete=this.toDelete.filter(r=>r!==e):this.toDelete.push(e)}cleanBridges(){return this.clicked=!0,this.$api.delete("/server/pairings/accessories",{body:this.toDelete.map(e=>({id:e}))}).subscribe({next:()=>{this.$toastr.success(this.$translate.instant("reset.accessory_ind.done"),this.$translate.instant("toast.title_success")),this.$activeModal.close(),this.$router.navigate(["/restart"],{queryParams:{restarting:!0}})},error:e=>{this.clicked=!1,console.error(e),this.$toastr.error(this.$translate.instant("reset.accessory_ind.fail"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(r){return new(r||i)};static \u0275cmp=$({type:i,selectors:[["ng-component"]],decls:17,vars:12,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"disabled"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"disabled"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-circle-check","primary-text",2,"font-size","75px"],[1,"mb-0","text-center"],[1,"fas","fa-fw","fa-broom","primary-text",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"grey-text"],[1,"fas","fa-fw","fa-link",3,"ngClass"],[1,"font-monospace"],[1,"btn","btn-danger","m-0","ms-3",3,"click","disabled","ngClass"],[1,"fas","fa-fw",3,"ngClass"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"]],template:function(r,p){r&1&&(n(0,"div",0)(1,"div",1)(2,"h5",2),l(3),s(4,"translate"),a(),n(5,"button",3),s(6,"translate"),f("click",function(){return p.$activeModal.dismiss("Dismiss")}),a()(),n(7,"div",4),h(8,Lt,5,3),h(9,zt,15,9),a(),n(10,"div",5)(11,"div",6),h(12,Ut,3,4,"button",7),a(),n(13,"div",8),h(14,Ht,3,3,"button",9),a(),n(15,"div",10),h(16,jt,3,3,"button",11),a()()()),r&2&&(t(3),u(o(4,8,"reset.bridge_accessories.title")),t(2),c("disabled",p.clicked),v("aria-label",o(6,10,"form.button_close")),t(3),_(p.pairings.length===0?8:-1),t(),_(p.pairings.length>0?9:-1),t(3),_(p.pairings.length>0?12:-1),t(2),_(p.pairings.length===0?14:-1),t(2),_(p.pairings.length>0?16:-1))},dependencies:[U,F],encapsulation:2})}return i})();function qt(i,m){i&1&&(l(0),s(1,"translate")),i&2&&g(" ",o(1,1,"form.button_reset")," ")}function Qt(i,m){i&1&&d(0,"i",16)}var je=(()=>{class i{$activeModal=x(P);$api=x(D);$route=x(O);$toastr=x(A);$translate=x(R);clicked;constructor(){}onResetHomebridgeAccessoryClick(){return this.clicked=!0,this.$api.put("/server/reset-homebridge-accessory",{}).subscribe({next:()=>{this.$toastr.success(this.$translate.instant("reset.accessory_reset"),this.$translate.instant("toast.title_success")),this.$activeModal.close(),this.$route.navigate(["/restart"])},error:e=>{console.error(e),this.$toastr.error(this.$translate.instant("reset.failed_to_reset"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(r){return new(r||i)};static \u0275cmp=$({type:i,selectors:[["ng-component"]],decls:38,vars:33,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-bridge","primary-text",2,"font-size","75px"],[1,"mb-3"],["type","error",1,"mb-0",3,"dismissible"],[1,"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","disabled"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"]],template:function(r,p){r&1&&(n(0,"div",0)(1,"div",1)(2,"h5",2),l(3),s(4,"translate"),a(),n(5,"button",3),s(6,"translate"),f("click",function(){return p.$activeModal.dismiss("Dismiss")}),a()(),n(7,"div",4)(8,"div",5),d(9,"i",6),a(),n(10,"ul",7)(11,"li"),l(12),s(13,"translate"),a(),n(14,"li"),l(15),s(16,"translate"),a(),n(17,"li"),l(18),s(19,"translate"),a(),n(20,"li"),l(21),s(22,"translate"),a()(),n(23,"ngb-alert",8)(24,"p",9),l(25),s(26,"translate"),a()()(),n(27,"div",10)(28,"div",11)(29,"button",12),s(30,"translate"),f("click",function(){return p.$activeModal.dismiss("Dismiss")}),l(31),s(32,"translate"),a()(),d(33,"div",13),n(34,"div",14)(35,"button",15),f("click",function(){return p.onResetHomebridgeAccessoryClick()}),h(36,qt,2,3),h(37,Qt,1,0,"i",16),a()()()()),r&2&&(t(3),u(o(4,15,"reset.bridge_all.title")),t(2),c("disabled",p.clicked),v("aria-label",o(6,17,"form.button_close")),t(7),u(o(13,19,"reset.bridge_all.list_1")),t(3),u(o(16,21,"reset.bridge_all.list_2")),t(3),u(o(19,23,"reset.bridge_all.list_3")),t(3),u(o(22,25,"reset.bridge_all.list_4")),t(2),c("dismissible",!1),t(2),u(o(26,27,"reset.action_is_irreversible")),t(4),c("disabled",p.clicked),v("aria-label",o(30,29,"form.button_close")),t(2),g(" ",o(32,31,"form.button_close")," "),t(4),c("disabled",p.clicked),t(),_(p.clicked?-1:36),t(),_(p.clicked?37:-1))},dependencies:[re,F],encapsulation:2})}return i})();var ue=(i,m)=>({"green-text":i,"grey-text":m}),he=(i,m)=>({"btn-danger":i,"btn-elegant":m}),qe=(i,m,e)=>({"fa-refresh":i,"fa-undo":m,"fa-spinner fa-pulse":e}),Jt=(i,m,e)=>({"fa-trash":i,"fa-undo":m,"fa-spinner fa-pulse":e});function Xt(i,m){i&1&&(n(0,"div",12),d(1,"i",13),a(),n(2,"p",14),l(3),s(4,"translate"),a()),i&2&&(t(3),u(o(4,1,"reset.bridges.empty")))}function Yt(i,m){if(i&1){let e=k();n(0,"li",20)(1,"span"),l(2),d(3,"br"),n(4,"small",21),d(5,"i",22),l(6),s(7,"translate"),n(8,"span",23),l(9),a(),l(10),s(11,"titlecase"),a()(),n(12,"button",24),s(13,"translate"),f("click",function(){let p=y(e).$implicit,C=b(3);return I(C.toggleList(p._id,!1))}),d(14,"i",25),a()()}if(i&2){let e=m.$implicit,r=b(3);t(2),g(" ",e.name," "),t(3),c("ngClass",T(15,ue,e._isPaired,!e._isPaired)),t(),g(" ",o(7,9,e._isPaired?"status.widget.qr_paired":"status.widget.qr_unpaired")," \xB7 "),t(3),u(e._username),t(),g(" \xB7 ",e._main?"Homebridge":o(11,11,e._category)," "),t(2),c("disabled",r.clicked)("ngClass",T(18,he,!r.isInList(e._id),r.isInList(e._id))),v("aria-label",o(13,13,"form.button_unpair")),t(2),c("ngClass",J(21,qe,!r.isInList(e._id),r.isInList(e._id)&&!r.clicked,r.isInList(e._id)&&r.clicked))}}function Zt(i,m){if(i&1&&(n(0,"ul",16)(1,"li",17)(2,"h6",18),l(3),s(4,"translate"),a(),n(5,"p",19),l(6),s(7,"translate"),a()(),N(8,Yt,15,25,"li",20,V),a()),i&2){let e=b(2);t(3),u(o(4,2,"reset.bridge_ind.head_non_child")),t(3),u(o(7,4,"reset.bridge_ind.desc_non_child")),t(2),L(e.pairingsNonChild)}}function ei(i,m){if(i&1){let e=k();n(0,"li",20)(1,"span"),l(2),d(3,"br"),n(4,"small",21),d(5,"i",22),l(6),s(7,"translate"),n(8,"span",23),l(9),a()()(),n(10,"button",24),s(11,"translate"),f("click",function(){let p=y(e).$implicit,C=b(3);return I(C.toggleList(p._id,!0))}),d(12,"i",25),a()()}if(i&2){let e=m.$implicit,r=b(3);t(2),g(" ",e.name," "),t(3),c("ngClass",T(12,ue,e._isPaired,!e._isPaired)),t(),g(" ",o(7,8,e._isPaired?"status.widget.qr_paired":"status.widget.qr_unpaired")," \xB7 "),t(3),u(e._username),t(),c("disabled",r.clicked)("ngClass",T(15,he,!r.isInList(e._id),r.isInList(e._id))),v("aria-label",o(11,10,"form.button_unpair")),t(2),c("ngClass",J(18,qe,!r.isInList(e._id),r.isInList(e._id)&&!r.clicked,r.isInList(e._id)&&r.clicked))}}function ti(i,m){if(i&1&&(n(0,"ul",16)(1,"li",17)(2,"h6",18),l(3),s(4,"translate"),a(),n(5,"p",19),l(6),s(7,"translate"),a()(),N(8,ei,13,22,"li",20,V),a()),i&2){let e=b(2);t(3),u(o(4,2,"reset.bridge_ind.head_child_active")),t(3),u(o(7,4,"reset.bridge_ind.desc_child_active")),t(2),L(e.pairingsChildActive)}}function ii(i,m){if(i&1){let e=k();n(0,"li",20)(1,"span"),l(2),d(3,"br"),n(4,"small",21),d(5,"i",22),l(6),s(7,"translate"),n(8,"span",23),l(9),a()()(),n(10,"button",24),s(11,"translate"),f("click",function(){let p=y(e).$implicit,C=b(3);return I(C.toggleList(p._id,!1))}),d(12,"i",25),a()()}if(i&2){let e=m.$implicit,r=b(3);t(2),g(" ",e.name," "),t(3),c("ngClass",T(12,ue,e._isPaired,!e._isPaired)),t(),g(" ",o(7,8,e._isPaired?"status.widget.qr_paired":"status.widget.qr_unpaired")," \xB7 "),t(3),u(e._username),t(),c("disabled",r.clicked)("ngClass",T(15,he,!r.isInList(e._id),r.isInList(e._id))),v("aria-label",o(11,10,"form.button_unpair")),t(2),c("ngClass",J(18,Jt,!r.isInList(e._id),r.isInList(e._id)&&!r.clicked,r.isInList(e._id)&&r.clicked))}}function ni(i,m){if(i&1&&(n(0,"ul",16)(1,"li",17)(2,"h6",18),l(3),s(4,"translate"),a(),n(5,"p",19),l(6),s(7,"translate"),a()(),N(8,ii,13,22,"li",20,V),a()),i&2){let e=b(2);t(3),u(o(4,2,"reset.bridge_ind.head_child_stale")),t(3),u(o(7,4,"reset.bridge_ind.desc_child_stale")),t(2),L(e.pairingsChildStale)}}function ai(i,m){if(i&1&&(n(0,"div",12),d(1,"i",15),a(),h(2,Zt,10,6,"ul",16),h(3,ti,10,6,"ul",16),h(4,ni,10,6,"ul",16)),i&2){let e=b();t(2),_(e.pairingsNonChild.length>0?2:-1),t(),_(e.pairingsChildActive.length>0?3:-1),t(),_(e.pairingsChildStale.length>0?4:-1)}}function ri(i,m){if(i&1){let e=k();n(0,"button",26),f("click",function(){y(e);let p=b();return I(p.$activeModal.dismiss("Dismiss"))}),l(1),s(2,"translate"),a()}if(i&2){let e=b();c("disabled",e.clicked),t(),g(" ",o(2,2,"form.button_close")," ")}}function si(i,m){if(i&1){let e=k();n(0,"button",27),f("click",function(){y(e);let p=b();return I(p.$activeModal.dismiss("Dismiss"))}),l(1),s(2,"translate"),a()}i&2&&(t(),g(" ",o(2,1,"form.button_close")," "))}function oi(i,m){if(i&1&&l(0),i&2){let e=b(3);g(" (",e.toDelete.length,") ")}}function li(i,m){if(i&1&&(l(0),s(1,"translate"),h(2,oi,1,1)),i&2){let e=b(2);g(" ",o(1,2,"form.button_reset")," "),t(2),_(e.toDelete.length>0?2:-1)}}function pi(i,m){i&1&&d(0,"i",29)}function di(i,m){if(i&1){let e=k();n(0,"button",28),f("click",function(){y(e);let p=b();return I(p.removeBridges())}),h(1,li,3,4),h(2,pi,1,0,"i",29),a()}if(i&2){let e=b();c("disabled",!e.toDelete.length||e.clicked),t(),_(e.clicked?-1:1),t(),_(e.clicked?2:-1)}}var Qe=(()=>{class i{$activeModal=x(P);$api=x(D);$router=x(O);$toastr=x(A);$translate=x(R);clicked=!1;pairingsNonChild=[];pairingsChildActive=[];pairingsChildStale=[];toDelete=[];constructor(){}ngOnInit(){this.loadPairings()}loadPairings(){return S(this,null,function*(){try{let e=(yield B(this.$api.get("/server/pairings"))).filter(r=>!r._main).sort((r,p)=>r.name.localeCompare(p.name));this.pairingsChildActive=e.filter(r=>r._category==="bridge"&&!r._couldBeStale),this.pairingsNonChild=e.filter(r=>r._category!=="bridge"),this.pairingsChildStale=e.filter(r=>r._category==="bridge"&&r._couldBeStale)}catch(e){console.error(e),this.$toastr.error(this.$translate.instant("settings.unpair_bridge.load_error"),this.$translate.instant("toast.title_error")),this.$activeModal.close()}})}toggleList(e,r=!1){this.toDelete.some(p=>p.id===e)?this.toDelete=this.toDelete.filter(p=>p.id!==e):this.toDelete.push({id:e,resetPairingInfo:r})}isInList(e){return this.toDelete.some(r=>r.id===e)}removeBridges(){return this.clicked=!0,this.$api.delete("/server/pairings",{body:this.toDelete}).subscribe({next:()=>{this.$toastr.success(this.$translate.instant("reset.bridge_ind.done"),this.$translate.instant("toast.title_success")),this.$activeModal.close(),this.$router.navigate(["/restart"],{queryParams:{restarting:!0}})},error:e=>{this.clicked=!1,console.error(e),this.$toastr.error(this.$translate.instant("reset.bridge_ind.fail"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(r){return new(r||i)};static \u0275cmp=$({type:i,selectors:[["ng-component"]],decls:17,vars:12,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"disabled"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"disabled"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-circle-check","primary-text",2,"font-size","75px"],[1,"text-center","mb-0"],[1,"fas","fa-fw","fa-bridge","primary-text",2,"font-size","75px"],[1,"list-group","list-group-box","mt-3","mb-0"],[1,"list-group-item"],[1,"mb-1","text-center"],[1,"mb-0","small","grey-text","text-center"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"grey-text"],[1,"fas","fa-fw","fa-link",3,"ngClass"],[1,"font-monospace"],[1,"btn","btn-danger","m-0","ms-3",3,"click","disabled","ngClass"],[1,"fas","fa-fw",3,"ngClass"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"]],template:function(r,p){r&1&&(n(0,"div",0)(1,"div",1)(2,"h5",2),l(3),s(4,"translate"),a(),n(5,"button",3),s(6,"translate"),f("click",function(){return p.$activeModal.dismiss("Dismiss")}),a()(),n(7,"div",4),h(8,Xt,5,3),h(9,ai,5,3),a(),n(10,"div",5)(11,"div",6),h(12,ri,3,4,"button",7),a(),n(13,"div",8),h(14,si,3,3,"button",9),a(),n(15,"div",10),h(16,di,3,3,"button",11),a()()()),r&2&&(t(3),u(o(4,8,"reset.bridge_ind.title")),t(2),c("disabled",p.clicked),v("aria-label",o(6,10,"form.button_close")),t(3),_(p.pairingsChildActive.length===0&&p.pairingsChildStale.length===0&&p.pairingsNonChild.length===0?8:-1),t(),_(p.pairingsChildActive.length>0||p.pairingsChildStale.length>0||p.pairingsNonChild.length>0?9:-1),t(3),_(p.pairingsChildActive.length>0||p.pairingsChildStale.length>0||p.pairingsNonChild.length>0?12:-1),t(2),_(p.pairingsChildActive.length===0&&p.pairingsChildStale.length===0&&p.pairingsNonChild.length===0?14:-1),t(2),_(p.pairingsChildActive.length>0||p.pairingsChildStale.length>0||p.pairingsNonChild.length>0?16:-1))},dependencies:[U,X,F],encapsulation:2})}return i})();function ci(i,m){if(i&1){let e=k();n(0,"li",9)(1,"div")(2,"span",16),l(3),a(),d(4,"br"),n(5,"span",17),l(6),a()(),n(7,"span")(8,"input",18),xe("ngModelChange",function(p){let C=y(e).$implicit;return Ce(C.selected,p)||(C.selected=p),I(p)}),f("ngModelChange",function(){y(e);let p=b();return I(p.onAdapterSelectionChange())}),a(),d(9,"label",19),a()()}if(i&2){let e=m.$implicit;t(3),u(e.ip4||e.ip6),t(3),u(e.iface),t(2),c("id","adapter"+e.iface),fe("ngModel",e.selected),t(),c("for","adapter"+e.iface)}}var Je=(()=>{class i{$activeModal=x(P);adaptersAvailable=[];adaptersOriginal=[];isUnchanged=!0;constructor(){}ngOnInit(){this.adaptersOriginal=this.adaptersAvailable.filter(e=>e.selected).map(e=>e.iface)}onAdapterSelectionChange(){this.isUnchanged=this.adaptersOriginal.length===this.adaptersAvailable.filter(e=>e.selected).length&&this.adaptersOriginal.every(e=>this.adaptersAvailable.some(r=>r.iface===e&&r.selected))}submit(){this.$activeModal.close(this.adaptersAvailable.filter(e=>e.selected).map(e=>e.iface))}static \u0275fac=function(r){return new(r||i)};static \u0275cmp=$({type:i,selectors:[["ng-component"]],inputs:{adaptersAvailable:"adaptersAvailable"},decls:28,vars:19,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,"fas","fa-fw","fa-ethernet","primary-text",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box"],[1,"list-group-item","d-flex","justify-content-between","align-items-center","flex-row","pb-2"],[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-primary",3,"click","disabled"],[1,"font-monospace"],[1,"font-monospace","grey-text"],["type","checkbox",1,"rendux-input",3,"ngModelChange","id","ngModel"],[1,"rendux-label","ms-3",3,"for"]],template:function(r,p){r&1&&(n(0,"div",0)(1,"div",1)(2,"h5",2),l(3),s(4,"translate"),a(),n(5,"button",3),s(6,"translate"),f("click",function(){return p.$activeModal.dismiss("Dismiss")}),a()(),n(7,"div",4)(8,"div",5),d(9,"i",6),a(),n(10,"ul",7)(11,"li"),l(12),s(13,"translate"),a()(),n(14,"ul",8),N(15,ci,10,5,"li",9,V),a()(),n(17,"div",10)(18,"div",11)(19,"button",12),s(20,"translate"),f("click",function(){return p.$activeModal.dismiss("Dismiss")}),l(21),s(22,"translate"),a()(),d(23,"div",13),n(24,"div",14)(25,"button",15),f("click",function(){return p.submit()}),l(26),s(27,"translate"),a()()()()),r&2&&(t(3),u(o(4,7,"settings.network.title_network_interfaces")),t(2),v("aria-label",o(6,9,"form.button_close")),t(7),u(o(13,11,"settings.network.message_network_interface")),t(3),L(p.adaptersAvailable),t(4),v("aria-label",o(20,13,"form.button_close")),t(2),g(" ",o(22,15,"form.button_close")," "),t(4),c("disabled",p.isUnchanged),t(),g(" ",o(27,17,"form.button_save")," "))},dependencies:[ee,Y,Z,Ee,F],encapsulation:2})}return i})();var mi=["wallpaperInput"],ui=i=>({maxFileSizeText:i});function hi(i,m){if(i&1){let e=k();n(0,"div",10),d(1,"img",20),n(2,"button",21),s(3,"translate"),f("click",function(){y(e);let p=b();return I(p.clearWallpaper())}),d(4,"i",22),a()()}if(i&2){let e=b();t(),c("src",e.wallpaperUrl,_e),t(),v("aria-label",o(3,2,"form.button_delete"))}}function _i(i,m){i&1&&d(0,"div",11)}var Xe=(()=>{class i{$activeModal=x(P);$api=x(D);$modal=x(G);$settings=x(j);$toastr=x(A);$translate=x(R);clicked=!1;maxFileSizeText=globalThis.backup.maxBackupSizeText;selectedFile;wallpaperUrl=null;originalWallpaperUrl=null;wallpaperInput;constructor(){}ngOnInit(){this.$settings.env.customWallpaperHash&&(this.wallpaperUrl=`${Me.api.base}/auth/wallpaper/${this.$settings.env.customWallpaperHash}`,this.originalWallpaperUrl=this.wallpaperUrl)}onFileChange(e){if(e.length){this.selectedFile=e[0];let r=new FileReader;r.onload=p=>{this.wallpaperUrl=p.target.result},r.readAsDataURL(this.selectedFile)}else delete this.selectedFile,this.wallpaperUrl=this.originalWallpaperUrl}saveWallpaper(){if(this.clicked=!0,this.selectedFile){let e=new FormData;e.append("wallpaper",this.selectedFile,this.selectedFile.name),this.$api.post("/server/wallpaper",e).subscribe({next:()=>{this.$settings.setItem("wallpaper",`ui-wallpaper.${this.selectedFile.name.split(".").pop()}`),this.$activeModal.close(),this.$toastr.success(this.$translate.instant("settings.display.wallpaper_success"),this.$translate.instant("toast.title_success"))},error:r=>{console.error(r),this.$toastr.error(r.error?.message,this.$translate.instant("toast.title_error")),this.clicked=!1}})}else this.$api.delete("/server/wallpaper").subscribe({next:()=>{this.$activeModal.close()},error:e=>{console.error(e),this.$toastr.error(e.error?.message,this.$translate.instant("toast.title_error")),this.clicked=!1}})}clearWallpaper(){this.selectedFile=null,this.wallpaperUrl=this.wallpaperUrl===this.originalWallpaperUrl?null:this.originalWallpaperUrl,this.wallpaperInput.nativeElement.value=""}cancel(){this.$activeModal.dismiss()}static \u0275fac=function(r){return new(r||i)};static \u0275cmp=$({type:i,selectors:[["ng-component"]],viewQuery:function(r,p){if(r&1&&ge(mi,5),r&2){let C;be(C=ve())&&(p.wallpaperInput=C.first)}},decls:36,vars:28,consts:[["wallpaperInput",""],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-image","primary-text",2,"font-size","75px"],[1,"mb-3"],[1,"mb-3","text-center"],[1,"position-relative","d-inline-block"],[1,"gradient","anim","rounded",2,"height","200px","width","350px","margin","0 auto"],[1,"mb-0"],["type","file","id","wallpaper","accept","image/*",1,"form-control",3,"change"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"],["alt","Current Wallpaper",1,"img-fluid","rounded","mx-auto","d-block",2,"height","200px",3,"src"],[1,"btn","btn-danger","position-absolute",2,"top","10px","right","10px",3,"click"],[1,"fas","fa-fw","fa-trash"]],template:function(r,p){if(r&1){let C=k();n(0,"div",1)(1,"div",2)(2,"h5",3),l(3),s(4,"translate"),a(),n(5,"button",4),s(6,"translate"),f("click",function(){return y(C),I(p.$activeModal.dismiss("Dismiss"))}),a()(),n(7,"div",5)(8,"div",6),d(9,"i",7),a(),n(10,"ul",8)(11,"li"),l(12),s(13,"translate"),a(),n(14,"li"),l(15),s(16,"translate"),a(),n(17,"li"),l(18),s(19,"translate"),a()(),n(20,"div",9),h(21,hi,5,4,"div",10)(22,_i,1,0,"div",11),a(),n(23,"div",12)(24,"input",13,0),f("change",function(H){return y(C),I(p.onFileChange(H.target.files))}),a()()(),n(26,"div",14)(27,"div",15)(28,"button",16),f("click",function(){return y(C),I(p.cancel())}),l(29),s(30,"translate"),a()(),d(31,"div",17),n(32,"div",18)(33,"button",19),f("click",function(){return y(C),I(p.saveWallpaper())}),l(34),s(35,"translate"),a()()()()}r&2&&(t(3),u(o(4,11,"settings.display.wallpaper")),t(2),c("disabled",p.clicked),v("aria-label",o(6,13,"form.button_close")),t(7),u(o(13,15,"settings.display.wallpaper_intro")),t(3),u(z(16,17,"settings.display.wallpaper_rule",M(26,ui,p.maxFileSizeText))),t(3),u(o(19,20,"settings.display.wallpaper_rule2")),t(3),_(p.wallpaperUrl?21:22),t(7),c("disabled",p.clicked),t(),g(" ",o(30,22,"form.button_close")," "),t(4),c("disabled",p.wallpaperUrl===p.originalWallpaperUrl||p.clicked),t(),g(" ",o(35,24,"form.button_save")," "))},dependencies:[te,F],styles:[".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%}}"]})}return i})();var Q=(i,m)=>({"fa-chevron-down":i,"fa-chevron-right":m}),q=i=>({"is-invalid":i}),gi=i=>({link:i}),bi=(i,m)=>({"badge-danger":i,"badge-info":m});function vi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function fi(i,m){if(i&1){let e=k();n(0,"ul",5)(1,"li",14)(2,"span"),l(3),s(4,"translate"),a(),n(5,"div",15),d(6,"input",16),s(7,"translate"),h(8,vi,1,1,"i",17),a()(),n(9,"li",18)(10,"span",19),l(11),s(12,"translate"),a(),n(13,"button",20),s(14,"translate"),f("click",function(){y(e);let p=b();return I(p.openBackupModal())}),d(15,"i",21),a()(),n(16,"li",18)(17,"span",19),l(18),s(19,"translate"),a(),n(20,"a",22),s(21,"translate"),d(22,"i",21),a()()()}if(i&2){let e=b();t(3),u(o(4,9,"settings.name")),t(3),c("formControl",e.hbNameFormControl)("ngClass",M(21,q,e.hbNameIsInvalid)),v("aria-label",o(7,11,"settings.name")),t(2),_(e.hbNameIsSaving?8:-1),t(3),g(" ",o(12,13,"backup.title_backup")," "),t(2),v("aria-label",o(14,15,"backup.title_backup")),t(5),g(" ",o(19,17,"menu.tooltip_user_accounts")," "),t(2),v("aria-label",o(21,19,"menu.tooltip_user_accounts"))}}function Ci(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function xi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Si(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function yi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Ii(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function ki(i,m){if(i&1){let e=k();n(0,"ul",6)(1,"li",14),l(2),s(3,"translate"),n(4,"div",23)(5,"select",24)(6,"option",25),l(7),s(8,"translate"),a(),n(9,"option",26),l(10,"Bulgarian (bg)"),a(),n(11,"option",27),l(12,"Catalan (ca)"),a(),n(13,"option",28),l(14,"Chinese - Simplified (zh-CN)"),a(),n(15,"option",29),l(16,"Chinese - Traditional (zh-TW)"),a(),n(17,"option",30),l(18,"Czech (cs)"),a(),n(19,"option",31),l(20,"Dutch (nl)"),a(),n(21,"option",32),l(22,"English (en)"),a(),n(23,"option",33),l(24,"Finnish (fi)"),a(),n(25,"option",34),l(26,"French (fr)"),a(),n(27,"option",35),l(28,"German (de)"),a(),n(29,"option",36),l(30,"Hebrew (he)"),a(),n(31,"option",37),l(32,"Hungarian (hu)"),a(),n(33,"option",38),l(34,"Indonesian (id)"),a(),n(35,"option",39),l(36,"Italian (it)"),a(),n(37,"option",40),l(38,"Japanese (ja)"),a(),n(39,"option",41),l(40,"Korean (ko)"),a(),n(41,"option",42),l(42,"Macedonian (mk)"),a(),n(43,"option",43),l(44,"Norwegian (no)"),a(),n(45,"option",44),l(46,"Polish (pl)"),a(),n(47,"option",45),l(48,"Portuguese (Brazil)"),a(),n(49,"option",46),l(50,"Portuguese (Portugal)"),a(),n(51,"option",47),l(52,"Russian (ru)"),a(),n(53,"option",48),l(54,"Slovenian (sl)"),a(),n(55,"option",49),l(56,"Spanish (es)"),a(),n(57,"option",50),l(58,"Swedish (sv)"),a(),n(59,"option",51),l(60,"Thai (th)"),a(),n(61,"option",52),l(62,"Turkish (tr)"),a(),n(63,"option",53),l(64,"Ukrainian (uk)"),a()(),h(65,Ci,1,1,"i",17),a()(),n(66,"li",14),l(67),s(68,"translate"),n(69,"div",23)(70,"select",24)(71,"option",54),l(72),s(73,"translate"),a(),n(74,"option",55),l(75),s(76,"translate"),a(),n(77,"option",56),l(78),s(79,"translate"),a(),n(80,"option",57),l(81),s(82,"translate"),a(),n(83,"option",58),l(84),s(85,"translate"),a(),n(86,"option",59),l(87),s(88,"translate"),a(),n(89,"option",60),l(90),s(91,"translate"),a(),n(92,"option",61),l(93),s(94,"translate"),a(),n(95,"option",62),l(96),s(97,"translate"),a(),n(98,"option",63),l(99),s(100,"translate"),a(),n(101,"option",64),l(102),s(103,"translate"),a(),n(104,"option",65),l(105),s(106,"translate"),a(),n(107,"option",66),l(108),s(109,"translate"),a()(),h(110,xi,1,1,"i",17),a()(),n(111,"li",14),l(112),s(113,"translate"),n(114,"div",23)(115,"select",24)(116,"option",25),l(117),s(118,"translate"),a(),n(119,"option",67),l(120),s(121,"translate"),a(),n(122,"option",68),l(123),s(124,"translate"),a()(),h(125,Si,1,1,"i",17),a()(),n(126,"li",14),l(127),s(128,"translate"),n(129,"div",23)(130,"select",24)(131,"option",69),l(132),s(133,"translate"),a(),n(134,"option",70),l(135),s(136,"translate"),a()(),h(137,yi,1,1,"i",17),a()(),n(138,"li",14),l(139),s(140,"translate"),n(141,"div",23)(142,"select",24)(143,"option",71),l(144),s(145,"translate"),a(),n(146,"option",72),l(147),s(148,"translate"),a()(),h(149,Ii,1,1,"i",17),a()(),n(150,"li",18)(151,"span",19),l(152),s(153,"translate"),a(),n(154,"button",20),s(155,"translate"),f("click",function(){y(e);let p=b();return I(p.openWallpaperModal())}),d(156,"i",21),a()()()}if(i&2){let e=b();t(2),g(" ",o(3,38,"settings.display.lang")," "),t(3),c("formControl",e.uiLangFormControl),t(2),u(o(8,40,"form.select.auto")),t(58),_(e.uiLangIsSaving?65:-1),t(2),g(" ",o(68,42,"settings.display.theme")," "),t(3),c("formControl",e.uiThemeFormControl),t(2),u(o(73,44,"settings.display.orange")),t(3),u(o(76,46,"settings.display.red")),t(3),u(o(79,48,"settings.display.pink")),t(3),u(o(82,50,"settings.display.purple")),t(3),u(o(85,52,"settings.display.deep_purple")),t(3),u(o(88,54,"settings.display.indigo")),t(3),u(o(91,56,"settings.display.blue")),t(3),u(o(94,58,"settings.display.bluegrey")),t(3),u(o(97,60,"settings.display.cyan")),t(3),u(o(100,62,"settings.display.green")),t(3),u(o(103,64,"settings.display.teal")),t(3),u(o(106,66,"settings.display.grey")),t(3),u(o(109,68,"settings.display.brown")),t(2),_(e.uiThemeIsSaving?110:-1),t(2),g(" ",o(113,70,"settings.display.lighting_mode")," "),t(3),c("formControl",e.uiLightFormControl),t(2),u(o(118,72,"form.select.auto")),t(3),u(o(121,74,"settings.display.light")),t(3),u(o(124,76,"settings.display.dark")),t(2),_(e.uiLightIsSaving?125:-1),t(2),g(" ",o(128,78,"settings.display.menu_mode")," "),t(3),c("formControl",e.uiMenuFormControl),t(2),u(o(133,80,"settings.display.menu_default")),t(3),u(o(136,82,"settings.display.menu_freeze")),t(2),_(e.uiMenuIsSaving?137:-1),t(2),g(" ",o(140,84,"settings.display.temp_units")," "),t(3),c("formControl",e.uiTempFormControl),t(2),u(o(145,86,"settings.display.temp_units.c")),t(3),u(o(148,88,"settings.display.temp_units.f")),t(2),_(e.uiTempIsSaving?149:-1),t(3),u(o(153,90,"settings.display.wallpaper")),t(2),v("aria-label",o(155,92,"settings.display.wallpaper"))}}function wi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Ei(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Bi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Ti(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function $i(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Fi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Pi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Ri(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Ai(i,m){if(i&1&&(n(0,"li",14)(1,"span"),l(2),s(3,"translate"),d(4,"br"),n(5,"small",73),l(6),s(7,"translate"),a()(),n(8,"div",23),d(9,"input",92),s(10,"translate"),h(11,Ri,1,1,"i",17),a()()),i&2){let e=b(3);t(2),g(" ",o(3,5,"settings.linux.temp")),t(4),u(o(7,7,"settings.linux.temp_desc")),t(3),c("formControl",e.uiTempFileFormControl),v("aria-label",o(10,9,"settings.linux.temp")),t(2),_(e.uiTempFileIsSaving?11:-1)}}function Di(i,m){if(i&1&&(n(0,"li",14)(1,"span"),l(2),s(3,"translate"),d(4,"br"),n(5,"small",73),l(6),s(7,"translate"),a()(),n(8,"div",23),d(9,"input",90),s(10,"translate"),h(11,Fi,1,1,"i",17),a()(),n(12,"li",14)(13,"span"),l(14),s(15,"translate"),d(16,"br"),n(17,"small",73),l(18),s(19,"translate"),a()(),n(20,"div",23),d(21,"input",91),s(22,"translate"),h(23,Pi,1,1,"i",17),a()(),h(24,Ai,12,11,"li",14)),i&2){let e=b(2);t(2),g(" ",o(3,11,"settings.linux.shutdown")),t(4),u(o(7,13,"settings.linux.shutdown_desc")),t(3),c("formControl",e.hbLinuxShutdownFormControl),v("aria-label",o(10,15,"settings.linux.shutdown")),t(2),_(e.hbLinuxShutdownIsSaving?11:-1),t(3),g(" ",o(15,17,"settings.linux.restart")),t(4),u(o(19,19,"settings.linux.restart_desc")),t(3),c("formControl",e.hbLinuxRestartFormControl),v("aria-label",o(22,21,"settings.linux.restart")),t(2),_(e.hbLinuxRestartIsSaving?23:-1),t(),_(e.$settings.env.runningOnRaspberryPi?24:-1)}}function Mi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Vi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Ni(i,m){i&1&&(n(0,"li",18)(1,"span"),l(2),s(3,"translate"),d(4,"br"),n(5,"small",73),l(6),s(7,"translate"),a()(),n(8,"a",93),s(9,"translate"),d(10,"i",21),a()()),i&2&&(t(2),g(" ",o(3,3,"menu.docker.startup_script")),t(4),u(o(7,5,"platform.docker.script_help")),t(2),v("aria-label",o(9,7,"menu.docker.startup_script")))}function Li(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Oi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function zi(i,m){if(i&1&&(n(0,"li",14)(1,"span"),l(2),s(3,"translate"),d(4,"br"),n(5,"small",73),l(6),s(7,"translate"),a()(),n(8,"div",23),d(9,"input",94),s(10,"translate"),h(11,Oi,1,1,"i",17),a()()),i&2){let e=b(2);t(2),g(" ",o(3,6,"settings.startup.log_truncate")),t(4),u(o(7,8,"settings.startup.log_truncate_desc")),t(3),c("formControl",e.hbLogTruncateFormControl)("ngClass",M(12,q,e.hbLogTruncateIsInvalid)),v("aria-label",o(10,10,"settings.startup.log_truncate")),t(2),_(e.hbLogTruncateIsSaving?11:-1)}}function Ui(i,m){if(i&1&&(n(0,"ul",7)(1,"li",18)(2,"span"),l(3),s(4,"translate"),n(5,"code"),l(6,"-D"),a(),d(7,"br"),n(8,"small",73),l(9),s(10,"translate"),a()(),n(11,"div",74)(12,"div",75),d(13,"input",76),s(14,"translate"),d(15,"label",77),a(),h(16,wi,1,1,"i",17),a()(),n(17,"li",18)(18,"span"),l(19),s(20,"translate"),n(21,"code"),l(22,"-I"),a(),d(23,"br"),n(24,"small",73),l(25),s(26,"translate"),a()(),n(27,"div",74)(28,"div",75),d(29,"input",78),s(30,"translate"),d(31,"label",79),a(),h(32,Ei,1,1,"i",17),a()(),n(33,"li",18)(34,"span"),l(35),s(36,"translate"),n(37,"code"),l(38,"-K"),a(),d(39,"br"),n(40,"small",73),l(41),s(42,"translate"),a()(),n(43,"div",74)(44,"div",75),d(45,"input",80),s(46,"translate"),d(47,"label",81),a(),h(48,Bi,1,1,"i",17),a()(),n(49,"li",18)(50,"span"),l(51),s(52,"translate"),d(53,"br"),n(54,"small",73),l(55),s(56,"translate"),a()(),n(57,"div",74)(58,"div",75),d(59,"input",82),s(60,"translate"),d(61,"label",83),a(),h(62,Ti,1,1,"i",17),a()(),n(63,"li",14)(64,"span"),l(65),s(66,"translate"),d(67,"br"),n(68,"small",73),l(69),s(70,"translate"),a()(),n(71,"div",23),d(72,"input",84),s(73,"translate"),h(74,$i,1,1,"i",17),a()(),h(75,Di,25,23),n(76,"li",14)(77,"span")(78,"span",85),l(79,"DEBUG"),a(),d(80,"br")(81,"small",86),s(82,"translate"),a(),n(83,"div",23),d(84,"input",87),h(85,Mi,1,1,"i",17),a()(),n(86,"li",14)(87,"span")(88,"span",85),l(89,"NODE_OPTIONS"),a(),d(90,"br"),n(91,"small",73),l(92),s(93,"translate"),a()(),n(94,"div",23),d(95,"input",88),h(96,Vi,1,1,"i",17),a()(),h(97,Ni,11,9,"li",18),n(98,"li",14)(99,"span"),l(100),s(101,"translate"),d(102,"br"),n(103,"small",73),l(104),s(105,"translate"),a()(),n(106,"div",23),d(107,"input",89),s(108,"translate"),h(109,Li,1,1,"i",17),a()(),h(110,zi,12,14,"li",14),a()),i&2){let e=b();t(3),g(" ",o(4,40,"settings.startup.debug")," "),t(6),g(" ",o(10,42,e.isHbV2?"settings.startup.debug_desc_v2":"settings.startup.debug_desc_v1")," "),t(4),c("formControl",e.hbDebugFormControl),v("aria-label",o(14,44,"settings.startup.debug")),t(3),_(e.hbDebugIsSaving?16:-1),t(3),g(" ",o(20,46,"settings.startup.insecure")," "),t(6),u(o(26,48,"settings.startup.insecure_desc")),t(4),c("formControl",e.hbInsecureFormControl),v("aria-label",o(30,50,"settings.startup.insecure")),t(3),_(e.hbInsecureIsSaving?32:-1),t(3),g(" ",o(36,52,"settings.startup.keep_accessories")," "),t(6),u(o(42,54,"settings.startup.keep_accessories_desc")),t(4),c("formControl",e.hbKeepFormControl),v("aria-label",o(46,56,"settings.startup.keep_accessories")),t(3),_(e.hbKeepIsSaving?48:-1),t(3),g(" ",o(52,58,"settings.startup.metrics")),t(4),u(o(56,60,"settings.startup.metrics_desc")),t(4),c("formControl",e.uiMetricsFormControl),v("aria-label",o(60,62,"settings.startup.metrics")),t(3),_(e.uiMetricsIsSaving?62:-1),t(3),g(" ",o(66,64,"settings.network.hb_package")),t(4),u(o(70,66,"settings.network.hb_package_desc")),t(3),c("formControl",e.hbPackageFormControl),v("aria-label",o(73,68,"settings.network.hb_package")),t(2),_(e.hbPackageIsSaving?74:-1),t(),_(e.$settings.env.platform==="linux"?75:-1),t(6),c("innerHTML",z(82,70,"settings.service.debug_tooltip",M(81,gi,e.linkDebug)),pe),t(3),c("formControl",e.hbEnvDebugFormControl),t(),_(e.hbEnvDebugIsSaving?85:-1),t(7),u(o(93,73,"settings.service.node_tooltip")),t(3),c("formControl",e.hbEnvNodeFormControl),t(),_(e.hbEnvNodeIsSaving?96:-1),t(),_(e.$settings.env.runningInDocker?97:-1),t(3),g(" ",o(101,75,"settings.startup.log_max")),t(4),u(o(105,77,"settings.startup.log_max_desc")),t(3),c("formControl",e.hbLogSizeFormControl)("ngClass",M(83,q,e.hbLogSizeIsInvalid)),v("aria-label",o(108,79,"settings.startup.log_max")),t(2),_(e.hbLogSizeIsSaving?109:-1),t(),_(e.hbLogSizeFormControl.value>0?110:-1)}}function Hi(i,m){i&1&&d(0,"i",107)}function Wi(i,m){if(i&1&&(n(0,"span",96),h(1,Hi,1,0,"i",107),l(2),n(3,"span",108),l(4),s(5,"translate"),a()()),i&2){let e=m.$implicit;c("ngClass",T(6,bi,e.missing,!e.missing)),t(),_(e.missing?1:-1),t(),g(" ",e.iface,": "),t(2),u(e.missing?o(5,4,"settings.mdns_advertiser_not_connected"):e.ip4||e.ip6)}}function Ki(i,m){i&1&&(n(0,"option",98),l(1),s(2,"translate"),a()),i&2&&(t(),g("Avahi (",o(2,1,"settings.mdns_advertiser_rec"),")"))}function Gi(i,m){i&1&&(n(0,"option",101),l(1),s(2,"translate"),a()),i&2&&(t(),g("systemd-resolved (",o(2,1,"settings.mdns_advertiser_exp"),")"))}function ji(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function qi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Qi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Ji(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Xi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Yi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function Zi(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function en(i,m){if(i&1){let e=k();n(0,"ul",8)(1,"li",18)(2,"span",19),l(3),s(4,"translate"),d(5,"br"),n(6,"div",95),l(7),s(8,"translate"),a(),N(9,Wi,6,9,"span",96,V),a(),n(11,"button",97),s(12,"translate"),f("click",function(){y(e);let p=b();return I(p.selectNetworkInterfaces())}),d(13,"i",21),a()(),n(14,"li",14)(15,"span"),l(16),s(17,"translate"),d(18,"br"),n(19,"small",73),l(20),s(21,"translate"),a()(),n(22,"div",23)(23,"select",24),s(24,"translate"),h(25,Ki,3,3,"option",98),n(26,"option",99),l(27),s(28,"translate"),a(),n(29,"option",100),l(30,"Bonjour HAP"),a(),h(31,Gi,3,3,"option",101),a(),h(32,ji,1,1,"i",17),a()(),n(33,"li",14)(34,"span"),l(35),s(36,"translate"),d(37,"br"),n(38,"small",73),l(39),s(40,"translate"),a()(),n(41,"div",23),d(42,"input",102),s(43,"translate"),h(44,qi,1,1,"i",17),a()(),n(45,"li",14)(46,"span"),l(47),s(48,"translate"),d(49,"br"),n(50,"small",73),l(51),s(52,"translate"),a()(),n(53,"div",23),d(54,"input",103),s(55,"translate"),h(56,Qi,1,1,"i",17),a()(),n(57,"li",14)(58,"span"),l(59),s(60,"translate"),d(61,"br"),n(62,"small",73),l(63),s(64,"translate"),a()(),n(65,"div",23),d(66,"input",102),s(67,"translate"),h(68,Ji,1,1,"i",17),a()(),n(69,"li",14)(70,"span"),l(71),s(72,"translate"),d(73,"br"),n(74,"small",73),l(75),s(76,"translate"),a()(),n(77,"div",23),d(78,"input",102),s(79,"translate"),h(80,Xi,1,1,"i",17),a()(),n(81,"li",14)(82,"span"),l(83),s(84,"translate"),d(85,"br")(86,"small",104),s(87,"translate"),a(),n(88,"div",23),d(89,"input",105),s(90,"translate"),h(91,Yi,1,1,"i",17),a()(),n(92,"li",14)(93,"span"),l(94),s(95,"translate"),d(96,"br"),n(97,"small",73),l(98),s(99,"translate"),a()(),n(100,"div",23),d(101,"input",106),s(102,"translate"),h(103,Zi,1,1,"i",17),a()()()}if(i&2){let e=b();t(3),g(" ",o(4,46,"settings.network.title_network_interfaces")),t(4),u(o(8,48,"settings.network.message_network_interface")),t(2),L(e.adaptersSelected),t(2),c("disabled",!e.adaptersAvailable.length),v("aria-label",o(12,50,"settings.network.title_network_interfaces")),t(5),g(" ",o(17,52,"settings.mdns_advertiser")),t(4),u(o(21,54,"settings.mdns_advertiser_help")),t(3),c("formControl",e.hbMDnsFormControl),v("aria-label",o(24,56,"settings.mdns_advertiser")),t(2),_(e.showAvahiMdnsOption?25:-1),t(2),g(" Ciao ",e.showAvahiMdnsOption?"":"("+o(28,58,"settings.mdns_advertiser_rec")+")"," "),t(4),_(e.showResolvedMdnsOption?31:-1),t(),_(e.hbMDnsIsSaving?32:-1),t(3),g(" ",o(36,60,"settings.network.port_hb")),t(4),u(o(40,62,"settings.network.port_hb_desc")),t(3),c("formControl",e.hbPortFormControl)("ngClass",M(96,q,e.hbPortIsInvalid)),v("aria-label",o(43,64,"settings.network.port_hb")),t(2),_(e.hbPortIsSaving?44:-1),t(3),g(" ",o(48,66,"settings.network.port_ui")),t(4),u(o(52,68,"settings.network.port_ui_desc")),t(3),c("formControl",e.uiPortFormControl)("ngClass",M(98,q,e.uiPortIsInvalid)),v("aria-label",o(55,70,"settings.network.port_ui")),t(2),_(e.uiPortIsSaving?56:-1),t(3),g(" ",o(60,72,"settings.network.port_start")),t(4),u(o(64,74,"settings.network.port_start_desc")),t(3),c("formControl",e.hbStartPortFormControl)("ngClass",M(100,q,e.hbStartPortIsInvalid)),v("aria-label",o(67,76,"settings.network.port_start")),t(2),_(e.hbStartPortIsSaving?68:-1),t(3),g(" ",o(72,78,"settings.network.port_end")),t(4),u(o(76,80,"settings.network.port_end_desc")),t(3),c("formControl",e.hbEndPortFormControl)("ngClass",M(102,q,e.hbEndPortIsInvalid)),v("aria-label",o(79,82,"settings.network.port_end")),t(2),_(e.hbEndPortIsSaving?80:-1),t(3),g(" ",o(84,84,"settings.network.host")),t(3),c("innerHtml",o(87,86,"settings.network.host_desc"),pe),t(3),c("formControl",e.uiHostFormControl),v("aria-label",o(90,88,"settings.network.host")),t(2),_(e.uiHostIsSaving?91:-1),t(3),g(" ",o(95,90,"settings.network.proxy")),t(4),u(o(99,92,"settings.network.proxy_desc")),t(3),c("formControl",e.uiProxyHostFormControl),v("aria-label",o(102,94,"settings.network.proxy")),t(2),_(e.uiProxyHostIsSaving?103:-1)}}function tn(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function nn(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function an(i,m){if(i&1&&(n(0,"li",14)(1,"span"),l(2),s(3,"translate"),d(4,"br"),n(5,"small",73),l(6),s(7,"translate"),a()(),n(8,"div",23),d(9,"input",114),s(10,"translate"),h(11,nn,1,1,"i",17),a()()),i&2){let e=b(2);t(2),g(" ",o(3,6,"settings.startup.session")),t(4),u(o(7,8,"settings.startup.session_desc")),t(3),c("formControl",e.uiSessionTimeoutFormControl)("ngClass",M(12,q,e.uiSessionTimeoutIsInvalid)),v("aria-label",o(10,10,"settings.startup.session")),t(2),_(e.uiSessionTimeoutIsSaving?11:-1)}}function rn(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function sn(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function on(i,m){if(i&1&&(n(0,"li",14)(1,"span"),l(2),s(3,"translate"),a(),n(4,"div",23),d(5,"input",115),s(6,"translate"),h(7,rn,1,1,"i",17),a()(),n(8,"li",14)(9,"span"),l(10),s(11,"translate"),a(),n(12,"div",23),d(13,"input",116),s(14,"translate"),h(15,sn,1,1,"i",17),a()()),i&2){let e=b(2);t(2),u(o(3,8,"settings.security.key")),t(3),c("formControl",e.uiSslKeyFormControl),v("aria-label",o(6,10,"settings.security.key")),t(2),_(e.uiSslKeyIsSaving?7:-1),t(3),u(o(11,12,"settings.security.cert")),t(3),c("formControl",e.uiSslCertFormControl),v("aria-label",o(14,14,"settings.security.cert")),t(2),_(e.uiSslCertIsSaving?15:-1)}}function ln(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function pn(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function dn(i,m){if(i&1){let e=k();n(0,"li",14)(1,"span"),l(2),s(3,"translate"),a(),n(4,"div",23),d(5,"input",117),s(6,"translate"),h(7,ln,1,1,"i",17),a()(),n(8,"li",14)(9,"span"),l(10),s(11,"translate"),a(),n(12,"div",23)(13,"input",118),s(14,"translate"),f("focus",function(){y(e);let p=b(2);return I(p.showPfxPassphrase=!0)})("blur",function(){y(e);let p=b(2);return I(p.showPfxPassphrase=!1)}),a(),h(15,pn,1,1,"i",17),a()()}if(i&2){let e=b(2);t(2),u(o(3,9,"settings.security.pfx")),t(3),c("formControl",e.uiSslPfxFormControl),v("aria-label",o(6,11,"settings.security.pfx")),t(2),_(e.uiSslPfxIsSaving?7:-1),t(3),u(o(11,13,"settings.security.pass")),t(3),c("type",e.showPfxPassphrase?"text":"password")("formControl",e.uiSslPassphraseFormControl),v("aria-label",o(14,15,"settings.security.pass")),t(2),_(e.uiSslPassphraseIsSaving?15:-1)}}function cn(i,m){if(i&1){let e=k();n(0,"ul",9)(1,"li",18)(2,"span"),l(3),s(4,"translate"),d(5,"br"),n(6,"small",73),l(7),s(8,"translate"),a()(),n(9,"div",74)(10,"div",75),d(11,"input",109),s(12,"translate"),d(13,"label",110),a(),h(14,tn,1,1,"i",17),a()(),h(15,an,12,14,"li",14),n(16,"li",14)(17,"span"),l(18),s(19,"translate"),d(20,"br"),n(21,"small",73),l(22),s(23,"translate"),a()(),n(24,"div",23)(25,"select",24),s(26,"translate"),n(27,"option",111),l(28),s(29,"translate"),a(),n(30,"option",112),l(31),s(32,"translate"),a(),n(33,"option",113),l(34),s(35,"translate"),a()()()(),h(36,on,16,16),h(37,dn,16,17),n(38,"li",18)(39,"span",19),l(40),s(41,"translate"),d(42,"br"),n(43,"small",73),l(44),s(45,"translate"),a()(),n(46,"button",20),s(47,"translate"),f("click",function(){y(e);let p=b();return I(p.accessoryUiControl())}),d(48,"i",21),a()()()}if(i&2){let e=b();t(3),g(" ",o(4,18,"settings.security.auth")),t(4),g(" ",o(8,20,"settings.security.auth_desc")," "),t(4),c("formControl",e.uiAuthFormControl),v("aria-label",o(12,22,"settings.security.auth")),t(3),_(e.uiAuthIsSaving?14:-1),t(),_(e.uiAuthFormControl.value?15:-1),t(3),g(" ",o(19,24,"settings.security.https")),t(4),u(o(23,26,"settings.security.https_desc")),t(3),c("formControl",e.uiSslTypeFormControl),v("aria-label",o(26,28,"settings.security.https")),t(3),u(o(29,30,"accessories.control.off")),t(3),u(o(32,32,"settings.security.https_keycert")),t(3),u(o(35,34,"settings.security.https_pfx")),t(2),_(e.uiSslTypeFormControl.value==="keycert"?36:-1),t(),_(e.uiSslTypeFormControl.value==="pfx"?37:-1),t(3),g(" ",o(41,36,"settings.security.ui_control")),t(4),u(o(45,38,"settings.security.ui_control_desc")),t(2),v("aria-label",o(47,40,"settings.security.ui_control"))}}function mn(i,m){i&1&&(n(0,"p",10),l(1),s(2,"translate"),a()),i&2&&(t(),u(o(2,1,"settings.cache.desc")))}function un(i,m){i&1&&d(0,"i",17),i&2&&c("@fadeInOut",void 0)}function hn(i,m){if(i&1){let e=k();n(0,"ul",11)(1,"li",18)(2,"span"),l(3),s(4,"translate"),d(5,"br"),n(6,"small",73),l(7),s(8,"translate"),a()(),n(9,"div",74)(10,"div",75),d(11,"input",119),s(12,"translate"),d(13,"label",120),a(),h(14,un,1,1,"i",17),a()(),n(15,"li",18)(16,"span",19),l(17),s(18,"translate"),d(19,"br"),n(20,"small",73),l(21),s(22,"translate"),a()(),n(23,"button",20),s(24,"translate"),f("click",function(){y(e);let p=b();return I(p.removeSingleCachedAccessories())}),d(25,"i",21),a()(),n(26,"li",18)(27,"span",19),l(28),s(29,"translate"),d(30,"br"),n(31,"small",73),l(32),s(33,"translate"),a()(),n(34,"button",20),s(35,"translate"),f("click",function(){y(e);let p=b();return I(p.removeBridgeAccessories())}),d(36,"i",21),a()(),n(37,"li",18)(38,"span",19),l(39),s(40,"translate"),d(41,"br"),n(42,"small",73),l(43),s(44,"translate"),a()(),n(45,"button",20),s(46,"translate"),f("click",function(){y(e);let p=b();return I(p.removeAllCachedAccessories())}),d(47,"i",21),a()()()}if(i&2){let e=b();t(3),g(" ",o(4,14,"settings.accessory.debug")),t(4),u(o(8,16,"settings.accessory.debug_desc")),t(4),c("formControl",e.uiAccDebugFormControl),v("aria-label",o(12,18,"settings.accessory.debug")),t(3),_(e.uiAccDebugIsSaving?14:-1),t(3),g(" ",o(18,20,"reset.accessory_ind.title")),t(4),u(o(22,22,"reset.accessory_ind.desc")),t(2),v("aria-label",o(24,24,"reset.accessory_ind.title")),t(5),g(" ",o(29,26,"reset.bridge_accessories.title")),t(4),u(o(33,28,"reset.bridge_accessories.desc")),t(2),v("aria-label",o(35,30,"reset.accessory_all.title")),t(5),g(" ",o(40,32,"reset.accessory_all.title")),t(4),u(o(44,34,"reset.accessory_all.desc")),t(2),v("aria-label",o(46,36,"reset.accessory_all.title"))}}function _n(i,m){i&1&&(n(0,"p",10),l(1),s(2,"translate"),a()),i&2&&(t(),u(o(2,1,"reset.bridges.desc")))}function gn(i,m){if(i&1){let e=k();n(0,"ul",12)(1,"li",18)(2,"span",19),l(3),s(4,"translate"),d(5,"br"),n(6,"small",73),l(7),s(8,"translate"),a()(),n(9,"button",20),s(10,"translate"),f("click",function(){y(e);let p=b();return I(p.unpairAccessory())}),d(11,"i",21),a()(),n(12,"li",18)(13,"span",19),l(14),s(15,"translate"),s(16,"titlecase"),d(17,"br"),n(18,"small",73),l(19),s(20,"translate"),a()(),n(21,"button",20),s(22,"translate"),f("click",function(){y(e);let p=b();return I(p.resetHomebridgeState())}),d(23,"i",21),a()()()}i&2&&(t(3),g(" ",o(4,6,"reset.bridge_ind.title")),t(4),u(o(8,8,"reset.bridge_ind.desc")),t(2),v("aria-label",o(10,10,"reset.bridge_ind.title")),t(5),g(" ",o(16,14,o(15,12,"reset.bridge_all.title"))),t(5),u(o(20,16,"reset.bridge_all.desc")),t(2),v("aria-label",o(22,18,"reset.bridge_all.title")))}var $r=(()=>{class i{$api=x(D);$modal=x(G);$router=x(O);$settings=x(j);$toastr=x(A);$translate=x(R);restartToastIsShown=!1;showFields={general:!0,display:!0,startup:!0,network:!0,security:!0,reset:!0,cache:!0};isHbV2=!1;showAvahiMdnsOption=!1;showResolvedMdnsOption=!1;adaptersAvailable=[];adaptersSelected=[];showPfxPassphrase=!1;hbNameIsInvalid=!1;hbNameIsSaving=!1;hbNameFormControl=new E("");uiLangIsSaving=!1;uiLangFormControl=new E("");uiThemeIsSaving=!1;uiThemeFormControl=new E("");uiLightIsSaving=!1;uiLightFormControl=new E("");uiMenuIsSaving=!1;uiMenuFormControl=new E("");uiTempIsSaving=!1;uiTempFormControl=new E("");hbDebugIsSaving=!1;hbDebugFormControl=new E(!1);hbInsecureIsSaving=!1;hbInsecureFormControl=new E(!1);hbKeepIsSaving=!1;hbKeepFormControl=new E(!1);hbEnvDebugIsSaving=!1;hbEnvDebugFormControl=new E("");hbEnvNodeIsSaving=!1;hbEnvNodeFormControl=new E("");hbLogSizeIsInvalid=!1;hbLogSizeIsSaving=!1;hbLogSizeFormControl=new E(-1);hbLogTruncateIsInvalid=!1;hbLogTruncateIsSaving=!1;hbLogTruncateFormControl=new E(0);hbMDnsIsSaving=!1;hbMDnsFormControl=new E("");hbPortIsInvalid=!1;hbPortIsSaving=!1;hbPortFormControl=new E(0);hbStartPortIsInvalid=!1;hbStartPortIsSaving=!1;hbStartPortFormControl=new E(0);hbEndPortIsInvalid=!1;hbEndPortIsSaving=!1;hbEndPortFormControl=new E(0);uiPortIsInvalid=!1;uiPortIsSaving=!1;uiPortFormControl=new E(0);uiAuthIsSaving=!1;uiAuthFormControl=new we(!0);uiSessionTimeoutIsInvalid=!1;uiSessionTimeoutIsSaving=!1;uiSessionTimeoutFormControl=new E(0);uiSslTypeFormControl=new E("off");uiSslKeyIsSaving=!1;uiSslKeyFormControl=new E("");uiSslCertIsSaving=!1;uiSslCertFormControl=new E("");uiSslPfxIsSaving=!1;uiSslPfxFormControl=new E("");uiSslPassphraseIsSaving=!1;uiSslPassphraseFormControl=new E("");uiHostIsSaving=!1;uiHostFormControl=new E("");uiProxyHostIsSaving=!1;uiProxyHostFormControl=new E("");hbPackageIsSaving=!1;hbPackageFormControl=new E("");uiMetricsIsSaving=!1;uiMetricsFormControl=new E(!0);uiAccDebugIsSaving=!1;uiAccDebugFormControl=new E(!1);uiTempFileIsSaving=!1;uiTempFileFormControl=new E("");hbLinuxShutdownIsSaving=!1;hbLinuxShutdownFormControl=new E("");hbLinuxRestartIsSaving=!1;hbLinuxRestartFormControl=new E("");linkDebug='<a href="https://github.com/homebridge/homebridge-config-ui-x/wiki/Debug-Common-Values" target="_blank"><i class="fa fa-fw fa-external-link-alt primary-text"></i></a>';constructor(){}ngOnInit(){return S(this,null,function*(){this.isHbV2=this.$settings.env.homebridgeVersion.startsWith("2"),yield this.initNetworkingOptions(),yield this.initStartupSettings(),this.hbNameFormControl.patchValue(this.$settings.env.homebridgeInstanceName),this.hbNameFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.hbNameSave(e)),this.uiLangFormControl.patchValue(this.$settings.env.lang),this.uiLangFormControl.valueChanges.pipe(w(750)).subscribe(e=>this.uiLangSave(e)),this.uiThemeFormControl.patchValue(this.$settings.theme),this.uiThemeFormControl.valueChanges.pipe(w(750)).subscribe(e=>this.uiThemeSave(e)),this.uiLightFormControl.patchValue(this.$settings.lightingMode),this.uiLightFormControl.valueChanges.pipe(w(750)).subscribe(e=>this.uiLightSave(e)),this.uiMenuFormControl.patchValue(this.$settings.menuMode),this.uiMenuFormControl.valueChanges.pipe(w(750)).subscribe(e=>this.uiMenuSave(e)),this.uiTempFormControl.patchValue(this.$settings.env.temperatureUnits),this.uiTempFormControl.valueChanges.pipe(w(750)).subscribe(e=>this.uiTempSave(e)),this.hbLogSizeFormControl.patchValue(this.$settings.env.log?.maxSize),this.hbLogSizeFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.hbLogSizeSave(e)),this.hbLogTruncateFormControl.patchValue(this.$settings.env.log?.truncateSize),this.hbLogTruncateFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.hbLogTruncateSave(e)),this.uiPortFormControl.patchValue(this.$settings.env.port),this.uiPortFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.uiPortSave(e)),this.uiAuthFormControl.patchValue(this.$settings.formAuth),this.uiAuthFormControl.valueChanges.pipe(w(750)).subscribe(e=>this.uiAuthSave(e)),this.uiSessionTimeoutFormControl.patchValue(this.$settings.sessionTimeout),this.uiSessionTimeoutFormControl.valueChanges.pipe(w(750)).subscribe(e=>this.uiSessionTimeoutSave(e)),this.uiSslKeyFormControl.patchValue(this.$settings.env.ssl?.key||""),this.uiSslKeyFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.uiSslKeySave(e)),this.uiSslCertFormControl.patchValue(this.$settings.env.ssl?.cert||""),this.uiSslCertFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.uiSslCertSave(e)),this.uiSslPfxFormControl.patchValue(this.$settings.env.ssl?.pfx||""),this.uiSslPfxFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.uiSslPfxSave(e)),this.uiSslPassphraseFormControl.patchValue(this.$settings.env.ssl?.passphrase||""),this.uiSslPassphraseFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.uiSslPassphraseSave(e)),this.uiSslTypeFormControl.patchValue(this.uiSslKeyFormControl.value||this.uiSslCertFormControl.value?"keycert":this.uiSslPfxFormControl.value||this.uiSslPassphraseFormControl.value?"pfx":"off"),this.uiSslTypeFormControl.valueChanges.pipe(w(750)).subscribe(e=>this.uiSslTypeSave(e)),this.uiHostFormControl.patchValue(this.$settings.env.host||""),this.uiHostFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.uiHostSave(e)),this.uiProxyHostFormControl.patchValue(this.$settings.env.proxyHost||""),this.uiProxyHostFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.uiProxyHostSave(e)),this.hbPackageFormControl.patchValue(this.$settings.env.homebridgePackagePath||""),this.hbPackageFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.hbPackageSave(e)),this.uiMetricsFormControl.patchValue(!this.$settings.env.disableServerMetricsMonitoring),this.uiMetricsFormControl.valueChanges.pipe(w(750)).subscribe(e=>this.uiMetricsSave(e)),this.uiAccDebugFormControl.patchValue(this.$settings.env.accessoryControl?.debug),this.uiAccDebugFormControl.valueChanges.pipe(w(750)).subscribe(e=>this.uiAccDebugSave(e)),this.uiTempFileFormControl.patchValue(this.$settings.env.temp),this.uiTempFileFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.uiTempFileSave(e)),this.hbLinuxShutdownFormControl.patchValue(this.$settings.env.linux?.shutdown),this.hbLinuxShutdownFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.hbLinuxShutdownSave(e)),this.hbLinuxRestartFormControl.patchValue(this.$settings.env.linux?.restart),this.hbLinuxRestartFormControl.valueChanges.pipe(w(1500)).subscribe(e=>this.hbLinuxRestartSave(e))})}initStartupSettings(){return S(this,null,function*(){try{let e=yield B(this.$api.get("/platform-tools/hb-service/homebridge-startup-settings"));this.hbDebugFormControl.patchValue(e.HOMEBRIDGE_DEBUG),this.hbDebugFormControl.valueChanges.pipe(w(750)).subscribe(r=>this.hbDebugSave(r)),this.hbInsecureFormControl.patchValue(e.HOMEBRIDGE_INSECURE),this.hbInsecureFormControl.valueChanges.pipe(w(750)).subscribe(r=>this.hbInsecureSave(r)),this.hbKeepFormControl.patchValue(e.HOMEBRIDGE_KEEP_ORPHANS),this.hbKeepFormControl.valueChanges.pipe(w(750)).subscribe(r=>this.hbKeepSave(r)),this.hbEnvDebugFormControl.patchValue(e.ENV_DEBUG),this.hbEnvDebugFormControl.valueChanges.pipe(w(1500)).subscribe(r=>this.hbEnvDebugSave(r)),this.hbEnvNodeFormControl.patchValue(e.ENV_NODE_OPTIONS),this.hbEnvNodeFormControl.valueChanges.pipe(w(1500)).subscribe(r=>this.hbEnvNodeSave(r))}catch(e){console.error(e),this.$toastr.error(e.message,this.$translate.instant("toast.title_error"))}})}initNetworkingOptions(){return S(this,null,function*(){try{yield this.getNetworkSettings(),(this.$settings.env.runningInLinux||this.$settings.env.runningInDocker||this.$settings.env.runningInSynologyPackage||this.$settings.env.runningInPackageMode)&&(this.showAvahiMdnsOption=!0,this.showResolvedMdnsOption=!0)}catch(e){console.error(e),this.$toastr.error(e.message,this.$translate.instant("toast.title_error"))}})}getNetworkSettings(){return S(this,null,function*(){return Promise.all([B(this.$api.get("/server/network-interfaces/system")),B(this.$api.get("/server/network-interfaces/bridge")),B(this.$api.get("/server/mdns-advertiser")),B(this.$api.get("/server/port")),B(this.$api.get("/server/ports"))]).then(([e,r,p,C,K])=>{this.adaptersAvailable=e,this.buildBridgeNetworkAdapterList(r),this.hbMDnsFormControl.patchValue(p.advertiser),this.hbMDnsFormControl.valueChanges.pipe(w(750)).subscribe(H=>this.hbMDnsSave(H)),this.hbPortFormControl.patchValue(C.port),this.hbPortFormControl.valueChanges.pipe(w(1500)).subscribe(H=>this.hbPortSave(H)),this.hbStartPortFormControl.patchValue(K.start),this.hbStartPortFormControl.valueChanges.pipe(w(1500)).subscribe(H=>this.hbStartPortSave(H)),this.hbEndPortFormControl.patchValue(K.end),this.hbEndPortFormControl.valueChanges.pipe(w(1500)).subscribe(H=>this.hbEndPortSave(H))})})}saveUiSettingChange(e,r){return S(this,null,function*(){try{yield B(this.$api.put("/config-editor/ui",{key:e,value:r}))}catch(p){console.error(p),this.$toastr.error(p.message,this.$translate.instant("toast.title_error"))}})}hbNameSave(e){return S(this,null,function*(){if(!e||!/^[\p{L}\p{N}][\p{L}\p{N} ']*[\p{L}\p{N}]$/u.test(e)){this.hbNameIsInvalid=!0;return}try{this.hbNameIsSaving=!0,yield B(this.$api.put("/server/name",{name:e})),this.$settings.setEnvItem("homebridgeInstanceName",e),this.hbNameIsInvalid=!1,setTimeout(()=>{this.hbNameIsSaving=!1},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbNameIsSaving=!1}})}uiLangSave(e){return S(this,null,function*(){try{this.uiLangIsSaving=!0,this.$settings.setLang(e),yield this.saveUiSettingChange("lang",e),setTimeout(()=>{this.uiLangIsSaving=!1},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiLangIsSaving=!1}})}uiThemeSave(e){return S(this,null,function*(){try{this.uiThemeIsSaving=!0,this.$settings.setTheme(e),yield this.saveUiSettingChange("theme",e),setTimeout(()=>{this.uiThemeIsSaving=!1},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiThemeIsSaving=!1}})}uiLightSave(e){return S(this,null,function*(){try{this.uiLightIsSaving=!0,this.$settings.setLightingMode(e,"user"),yield this.saveUiSettingChange("lightingMode",e),setTimeout(()=>{this.uiLightIsSaving=!1},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiLightIsSaving=!1}})}uiMenuSave(e){return S(this,null,function*(){try{this.uiMenuIsSaving=!0,this.$settings.setMenuMode(e),yield this.saveUiSettingChange("menuMode",e),window.location.reload()}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiMenuIsSaving=!1}})}uiTempSave(e){return S(this,null,function*(){try{this.uiTempIsSaving=!0,this.$settings.setEnvItem("temperatureUnits",e),yield this.saveUiSettingChange("tempUnits",e),setTimeout(()=>{this.uiTempIsSaving=!1},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiTempIsSaving=!1}})}hbDebugSave(e){return S(this,null,function*(){try{this.hbDebugIsSaving=!0,yield B(this.$api.put("/platform-tools/hb-service/homebridge-startup-settings",{HOMEBRIDGE_DEBUG:e,HOMEBRIDGE_KEEP_ORPHANS:this.hbKeepFormControl.value,HOMEBRIDGE_INSECURE:this.hbInsecureFormControl.value,ENV_DEBUG:this.hbEnvDebugFormControl.value,ENV_NODE_OPTIONS:this.hbEnvNodeFormControl.value})),setTimeout(()=>{this.hbDebugIsSaving=!1,this.$api.put("/platform-tools/hb-service/set-full-service-restart-flag",{}).subscribe({next:()=>this.showRestartToast(),error:r=>{console.error(r),this.showRestartToast()}})},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbDebugIsSaving=!1}})}hbInsecureSave(e){return S(this,null,function*(){try{this.hbInsecureIsSaving=!0,yield B(this.$api.put("/platform-tools/hb-service/homebridge-startup-settings",{HOMEBRIDGE_DEBUG:this.hbDebugFormControl.value,HOMEBRIDGE_KEEP_ORPHANS:this.hbKeepFormControl.value,HOMEBRIDGE_INSECURE:e,ENV_DEBUG:this.hbEnvDebugFormControl.value,ENV_NODE_OPTIONS:this.hbEnvNodeFormControl.value})),setTimeout(()=>{this.hbInsecureIsSaving=!1,this.$api.put("/platform-tools/hb-service/set-full-service-restart-flag",{}).subscribe({next:()=>this.showRestartToast(),error:r=>{console.error(r),this.showRestartToast()}})},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbInsecureIsSaving=!1}})}hbKeepSave(e){return S(this,null,function*(){try{this.hbKeepIsSaving=!0,yield B(this.$api.put("/platform-tools/hb-service/homebridge-startup-settings",{HOMEBRIDGE_DEBUG:this.hbDebugFormControl.value,HOMEBRIDGE_KEEP_ORPHANS:e,HOMEBRIDGE_INSECURE:this.hbInsecureFormControl.value,ENV_DEBUG:this.hbEnvDebugFormControl.value,ENV_NODE_OPTIONS:this.hbEnvNodeFormControl.value})),setTimeout(()=>{this.hbKeepIsSaving=!1,this.$api.put("/platform-tools/hb-service/set-full-service-restart-flag",{}).subscribe({next:()=>this.showRestartToast(),error:r=>{console.error(r),this.showRestartToast()}})},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbKeepIsSaving=!1}})}hbEnvDebugSave(e){return S(this,null,function*(){try{this.hbEnvDebugIsSaving=!0,yield B(this.$api.put("/platform-tools/hb-service/homebridge-startup-settings",{HOMEBRIDGE_DEBUG:this.hbDebugFormControl.value,HOMEBRIDGE_KEEP_ORPHANS:this.hbKeepFormControl.value,HOMEBRIDGE_INSECURE:this.hbInsecureFormControl.value,ENV_DEBUG:e,ENV_NODE_OPTIONS:this.hbEnvNodeFormControl.value})),setTimeout(()=>{this.hbEnvDebugIsSaving=!1,this.$api.put("/platform-tools/hb-service/set-full-service-restart-flag",{}).subscribe({next:()=>this.showRestartToast(),error:r=>{console.error(r),this.showRestartToast()}})},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbEnvDebugIsSaving=!1}})}hbEnvNodeSave(e){return S(this,null,function*(){try{this.hbEnvNodeIsSaving=!0,yield B(this.$api.put("/platform-tools/hb-service/homebridge-startup-settings",{HOMEBRIDGE_DEBUG:this.hbDebugFormControl.value,HOMEBRIDGE_KEEP_ORPHANS:this.hbKeepFormControl.value,HOMEBRIDGE_INSECURE:this.hbInsecureFormControl.value,ENV_DEBUG:this.hbEnvDebugFormControl.value,ENV_NODE_OPTIONS:e})),setTimeout(()=>{this.hbEnvNodeIsSaving=!1,this.$api.put("/platform-tools/hb-service/set-full-service-restart-flag",{}).subscribe({next:()=>this.showRestartToast(),error:r=>{console.error(r),this.showRestartToast()}})},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbEnvNodeIsSaving=!1}})}hbLogSizeSave(e){return S(this,null,function*(){if(e&&(typeof e!="number"||e<-1||Number.isInteger(e)===!1)){this.hbLogSizeIsInvalid=!0;return}try{this.hbLogSizeIsSaving=!0,this.$settings.setEnvItem("log.maxSize",e),(!e||e===-1)&&(yield this.saveUiSettingChange("log.truncateSize",null),this.hbLogTruncateIsInvalid=!1),yield this.saveUiSettingChange("log.maxSize",e),this.hbLogSizeIsInvalid=!1,setTimeout(()=>{this.hbLogSizeIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbLogSizeIsSaving=!1}})}hbLogTruncateSave(e){return S(this,null,function*(){if(e&&(typeof e!="number"||e<0||Number.isInteger(e)===!1)){this.hbLogTruncateIsInvalid=!0;return}try{this.hbLogTruncateIsSaving=!0,this.$settings.setEnvItem("log.truncateSize",e),yield this.saveUiSettingChange("log.truncateSize",e),this.hbLogTruncateIsInvalid=!1,setTimeout(()=>{this.hbLogTruncateIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbLogTruncateIsSaving=!1}})}hbMDnsSave(e){return S(this,null,function*(){try{this.hbMDnsIsSaving=!0,yield B(this.$api.put("/server/mdns-advertiser",{advertiser:e})),setTimeout(()=>{this.hbMDnsIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbMDnsIsSaving=!1}})}hbPortSave(e){return S(this,null,function*(){if(e===this.uiPortFormControl.value){this.hbPortIsInvalid=!0;return}try{this.hbPortIsSaving=!0,yield B(this.$api.put("/server/port",{port:e})),this.hbPortIsInvalid=!1,setTimeout(()=>{this.hbPortIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbPortIsSaving=!1}})}hbStartPortSave(e){return S(this,null,function*(){try{this.hbStartPortIsSaving=!0,yield B(this.$api.put("/server/ports",{start:e,end:this.hbEndPortFormControl.value})),this.hbStartPortIsInvalid=!1,setTimeout(()=>{this.hbStartPortIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbStartPortIsSaving=!1}})}hbEndPortSave(e){return S(this,null,function*(){try{this.hbEndPortIsSaving=!0,yield B(this.$api.put("/server/ports",{start:this.hbStartPortFormControl.value,end:e})),this.hbEndPortIsInvalid=!1,setTimeout(()=>{this.hbEndPortIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbEndPortIsSaving=!1}})}uiPortSave(e){return S(this,null,function*(){if(!e||typeof e!="number"||e<1025||e>65533||Number.isInteger(e)===!1||e===this.hbPortFormControl.value){this.uiPortIsInvalid=!0;return}try{this.uiPortIsSaving=!0,this.$settings.setEnvItem("port",e),yield this.saveUiSettingChange("port",e),this.uiPortIsInvalid=!1,setTimeout(()=>{this.uiPortIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiPortIsSaving=!1}})}uiAuthSave(e){return S(this,null,function*(){try{this.uiAuthIsSaving=!0,this.$settings.setItem("formAuth",e),yield this.saveUiSettingChange("auth",e?"form":"none"),setTimeout(()=>{this.uiAuthIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiAuthIsSaving=!1}})}uiSessionTimeoutSave(e){return S(this,null,function*(){if(e&&(typeof e!="number"||e<600||e>864e5||Number.isInteger(e)===!1)){this.uiSessionTimeoutIsInvalid=!0;return}try{this.uiSessionTimeoutIsSaving=!0,this.$settings.setItem("sessionTimeout",e),yield this.saveUiSettingChange("sessionTimeout",e),this.uiSessionTimeoutIsInvalid=!1,setTimeout(()=>{this.uiSessionTimeoutIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiSessionTimeoutIsSaving=!1}})}uiSslKeySave(e){return S(this,null,function*(){try{this.uiSslKeyIsSaving=!0,this.$settings.setEnvItem("ssl.key",e),yield this.saveUiSettingChange("ssl.key",e),setTimeout(()=>{this.uiSslKeyIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiSslKeyIsSaving=!1}})}uiSslCertSave(e){return S(this,null,function*(){try{this.uiSslCertIsSaving=!0,this.$settings.setEnvItem("ssl.cert",e),yield this.saveUiSettingChange("ssl.cert",e),setTimeout(()=>{this.uiSslCertIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiSslCertIsSaving=!1}})}uiSslPfxSave(e){return S(this,null,function*(){try{this.uiSslPfxIsSaving=!0,this.$settings.setEnvItem("ssl.pfx",e),yield this.saveUiSettingChange("ssl.pfx",e),setTimeout(()=>{this.uiSslPfxIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiSslPfxIsSaving=!1}})}uiSslPassphraseSave(e){return S(this,null,function*(){try{this.uiSslPassphraseIsSaving=!0,this.$settings.setEnvItem("ssl.passphrase",e),yield this.saveUiSettingChange("ssl.passphrase",e),setTimeout(()=>{this.uiSslPassphraseIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiSslPassphraseIsSaving=!1}})}uiSslTypeSave(e){return S(this,null,function*(){switch(e){case"keycert":this.uiSslPfxFormControl.patchValue("",{emitEvent:!1}),this.uiSslPassphraseFormControl.patchValue("",{emitEvent:!1}),this.$settings.setEnvItem("ssl.pfx",""),this.$settings.setEnvItem("ssl.passphrase","");break;case"pfx":this.uiSslKeyFormControl.patchValue("",{emitEvent:!1}),this.uiSslCertFormControl.patchValue("",{emitEvent:!1}),this.$settings.setEnvItem("ssl.key",""),this.$settings.setEnvItem("ssl.cert","");break;default:this.uiSslKeyFormControl.patchValue("",{emitEvent:!1}),this.uiSslCertFormControl.patchValue("",{emitEvent:!1}),this.uiSslPfxFormControl.patchValue("",{emitEvent:!1}),this.uiSslPassphraseFormControl.patchValue("",{emitEvent:!1}),this.$settings.setEnvItem("ssl.key",""),this.$settings.setEnvItem("ssl.cert",""),this.$settings.setEnvItem("ssl.pfx",""),this.$settings.setEnvItem("ssl.passphrase",""),yield this.saveUiSettingChange("ssl",""),this.showRestartToast()}})}uiHostSave(e){return S(this,null,function*(){try{this.uiHostIsSaving=!0,this.$settings.setEnvItem("host",e),yield this.saveUiSettingChange("host",e),setTimeout(()=>{this.uiHostIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiHostIsSaving=!1}})}uiProxyHostSave(e){return S(this,null,function*(){try{this.uiProxyHostIsSaving=!0,this.$settings.setEnvItem("proxyHost",e),yield this.saveUiSettingChange("proxyHost",e),setTimeout(()=>{this.uiProxyHostIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiProxyHostIsSaving=!1}})}hbPackageSave(e){return S(this,null,function*(){try{this.hbPackageIsSaving=!0,this.$settings.setEnvItem("homebridgePackagePath",e),yield this.saveUiSettingChange("homebridgePackagePath",e),setTimeout(()=>{this.hbPackageIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbPackageIsSaving=!1}})}uiMetricsSave(e){return S(this,null,function*(){try{this.uiMetricsIsSaving=!0,this.$settings.setEnvItem("disableServerMetricsMonitoring",!e),yield this.saveUiSettingChange("disableServerMetricsMonitoring",!e),setTimeout(()=>{this.uiMetricsIsSaving=!1,this.$api.put("/platform-tools/hb-service/set-full-service-restart-flag",{}).subscribe({next:()=>this.showRestartToast(),error:r=>{console.error(r),this.showRestartToast()}})},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiMetricsIsSaving=!1}})}uiAccDebugSave(e){return S(this,null,function*(){try{this.uiAccDebugIsSaving=!0,this.$settings.setEnvItem("accessoryControl.debug",e),yield this.saveUiSettingChange("accessoryControl.debug",e),setTimeout(()=>{this.uiAccDebugIsSaving=!1,this.showRestartToast()},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiAccDebugIsSaving=!1}})}uiTempFileSave(e){return S(this,null,function*(){try{this.uiTempFileIsSaving=!0,this.$settings.setEnvItem("temp",e),yield this.saveUiSettingChange("temp",e),setTimeout(()=>{this.uiTempFileIsSaving=!1,this.$api.put("/platform-tools/hb-service/set-full-service-restart-flag",{}).subscribe({next:()=>this.showRestartToast(),error:r=>{console.error(r),this.showRestartToast()}})},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.uiTempFileIsSaving=!1}})}hbLinuxShutdownSave(e){return S(this,null,function*(){try{this.hbLinuxShutdownIsSaving=!0,this.$settings.setEnvItem("linux.shutdown",e),yield this.saveUiSettingChange("linux.shutdown",e),setTimeout(()=>{this.hbLinuxShutdownIsSaving=!1,this.$api.put("/platform-tools/hb-service/set-full-service-restart-flag",{}).subscribe({next:()=>this.showRestartToast(),error:r=>{console.error(r),this.showRestartToast()}})},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbLinuxShutdownIsSaving=!1}})}hbLinuxRestartSave(e){return S(this,null,function*(){try{this.hbLinuxRestartIsSaving=!0,this.$settings.setEnvItem("linux.restart",e),yield this.saveUiSettingChange("linux.restart",e),setTimeout(()=>{this.hbLinuxRestartIsSaving=!1,this.$api.put("/platform-tools/hb-service/set-full-service-restart-flag",{}).subscribe({next:()=>this.showRestartToast(),error:r=>{console.error(r),this.showRestartToast()}})},1e3)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.hbLinuxRestartIsSaving=!1}})}openBackupModal(){this.$modal.open(oe,{size:"lg",backdrop:"static"})}openWallpaperModal(){this.$modal.open(Xe,{size:"lg",backdrop:"static"})}resetHomebridgeState(){this.$modal.open(je,{size:"lg",backdrop:"static"})}unpairAccessory(){this.$modal.open(Qe,{size:"lg",backdrop:"static"})}removeAllCachedAccessories(){this.$modal.open(Ke,{size:"lg",backdrop:"static"})}accessoryUiControl(){return S(this,null,function*(){try{let e=this.$modal.open(Oe,{size:"lg",backdrop:"static"});e.componentInstance.existingBlacklist=this.$settings.env.accessoryControl?.instanceBlacklist||[],yield e.result,this.showRestartToast()}catch(e){e!=="Dismiss"&&(console.error(e),this.$toastr.error(e.message,this.$translate.instant("toast.title_error")))}})}removeSingleCachedAccessories(){this.$modal.open(Ne,{size:"lg",backdrop:"static"})}removeBridgeAccessories(){this.$modal.open(Ge,{size:"lg",backdrop:"static"})}selectNetworkInterfaces(){return S(this,null,function*(){let e=this.$modal.open(Je,{size:"lg",backdrop:"static"});e.componentInstance.adaptersAvailable=this.adaptersAvailable;try{let r=yield e.result;this.buildBridgeNetworkAdapterList(r),yield B(this.$api.put("/server/network-interfaces/bridge",{adapters:r})),this.showRestartToast()}catch(r){r!=="Dismiss"&&(console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")))}})}buildBridgeNetworkAdapterList(e){if(!e.length){this.adaptersSelected=[];return}this.adaptersSelected=e.map(r=>{let p=this.adaptersAvailable.find(C=>C.iface===r);return p?{iface:p.iface,selected:!0,missing:!1,ip4:p.ip4,ip6:p.ip6}:{iface:r,selected:!0,missing:!0}})}toggleSection(e){this.showFields[e]=!this.showFields[e]}showRestartToast(){if(!this.restartToastIsShown){this.restartToastIsShown=!0;let e=this.$toastr.info(this.$translate.instant("settings.changes.saved"),this.$translate.instant("menu.hbrestart.title"),{timeOut:0,tapToDismiss:!0,disableTimeOut:!0,positionClass:"toast-bottom-right",enableHtml:!0});e&&e.onTap&&e.onTap.subscribe(()=>{this.$router.navigate(["/restart"])})}}static \u0275fac=function(r){return new(r||i)};static \u0275cmp=$({type:i,selectors:[["ng-component"]],decls:52,vars:75,consts:[[1,"primary-text","m-0"],[1,"my-4"],["role","button","tabindex","0",1,"mt-3","hover-pointer",3,"click"],[1,"primary-text"],[1,"fa","fa-fw",3,"ngClass"],["id","fieldsGeneral",1,"list-group","list-group-box","mt-2","mx-0"],["id","fieldsDisplay",1,"list-group","list-group-box","mt-2","mx-0"],["id","fieldsStartup",1,"list-group","list-group-box","mb-4","mx-0"],["id","fieldsNetwork",1,"list-group","list-group-box","mt-2","mx-0"],["id","fieldsSecurity",1,"list-group","list-group-box","mt-2","mx-0"],[1,"small","grey-text","mb-2","mx-0"],["id","fieldsCache",1,"list-group","list-group-box","mb-4","mx-0"],["id","fieldsReset",1,"list-group","list-group-box","mt-2","mx-0"],[1,"pb-3"],[1,"list-group-item","d-block","d-md-flex","justify-content-between","align-items-center"],[1,"my-3","my-md-0","pl-0","pl-md-5","w-auto","d-flex","align-items-center"],["type","text",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl","ngClass"],[1,"fas","fa-fw","fa-floppy-disk","primary-text","fa-xl","me-0","me-md-2","ms-2","ms-md-0","order-2","order-md-1"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"pe-2"],[1,"btn","btn-primary","waves-effect","m-0","ms-3",2,"min-width","50px",3,"click"],[1,"fas","fa-fw","fa-arrow-right"],["routerLink","/users",1,"btn","btn-primary","waves-effect","m-0","ms-3",2,"min-width","50px"],[1,"my-3","my-md-0","ps-0","ps-md-5","w-auto","d-flex","align-items-center"],[1,"custom-select","resp-select","order-1","order-md-2",3,"formControl"],["value","auto"],["value","bg"],["value","ca"],["value","zh-CN"],["value","zh-TW"],["value","cs"],["value","nl"],["value","en"],["value","fi"],["value","fr"],["value","de"],["value","he"],["value","hu"],["value","id"],["value","it"],["value","ja"],["value","ko"],["value","mk"],["value","no"],["value","pl"],["value","pt-BR"],["value","pt"],["value","ru"],["value","sl"],["value","es"],["value","sv"],["value","th"],["value","tr"],["value","uk"],["value","orange"],["value","red"],["value","pink"],["value","purple"],["value","deep-purple"],["value","indigo"],["value","blue"],["value","blue-grey"],["value","cyan"],["value","green"],["value","teal"],["value","grey"],["value","brown"],["value","light"],["value","dark"],["value","default"],["value","freeze"],["value","c"],["value","f"],[1,"grey-text","pe-2"],[1,"d-flex","align-items-center"],[1,"order-1","order-md-2"],["type","checkbox","id","homebridgeDebugMode",1,"rendux-input",3,"formControl"],["for","homebridgeDebugMode",1,"rendux-label","ms-3",2,"min-width","50px"],["type","checkbox","id","homebridgeInsecureMode",1,"rendux-input",3,"formControl"],["for","homebridgeInsecureMode",1,"rendux-label","ms-3",2,"min-width","50px"],["type","checkbox","id","homebridgeKeepOrphans",1,"rendux-input",3,"formControl"],["for","homebridgeKeepOrphans",1,"rendux-label","ms-3",2,"min-width","50px"],["type","checkbox","id","homebridgeMetrics",1,"rendux-input",3,"formControl"],["for","homebridgeMetrics",1,"rendux-label","ms-3",2,"min-width","50px"],["type","text","placeholder","/usr/local/lib/node_modules/homebridge",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl"],[1,"font-monospace"],[1,"grey-text","pe-2",3,"innerHTML"],["type","text","placeholder","HAP-NodeJS:Advertiser,HAP-NodeJS:Service",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl"],["type","text","placeholder","--max-old-space-size=512 --max-http-header-size=8192",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl"],["type","number","min","-1","placeholder","1000000",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl","ngClass"],["type","text","placeholder","shutdown",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl"],["type","text","placeholder","reboot",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl"],["type","text","placeholder","/sys/class/thermal/thermal_zone0/temp",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl"],["routerLink","/platform-tools/docker/startup-script",1,"btn","btn-primary","waves-effect","m-0","ms-3",2,"min-width","50px"],["type","number","min","0","placeholder","200000",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl","ngClass"],[1,"small","grey-text","pe-2"],[1,"badge","badge-primary","me-1",3,"ngClass"],[1,"btn","btn-primary","waves-effect","m-0","ms-3",2,"min-width","50px",3,"click","disabled"],["value","avahi"],["value","ciao"],["value","bonjour-hap"],["value","resolved"],["type","number","min","1025","max","65533",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl","ngClass"],["type","number","min","1025","max","65533","placeholder","8581",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl","ngClass"],[1,"grey-text","pe-2",3,"innerHtml"],["type","text","pattern","^[^{}/ :\\\\]+(?::\\d+)?$","placeholder","0.0.0.0",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl"],["type","text","pattern","^[^{}/ :\\\\]+(?::\\d+)?$","placeholder","example.com:8443",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl"],[1,"fas","fa-fw","fa-exclamation-triangle"],[1,"fw-normal"],["type","checkbox","id","uiAuthForm",1,"rendux-input",3,"formControl"],["for","uiAuthForm",1,"rendux-label","ms-3",2,"min-width","50px"],["value","off"],["value","keycert"],["value","pfx"],["type","number","min","600","max","86400000","placeholder","28800",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl","ngClass"],["type","text","placeholder","/Users/.../certs/server.key",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl"],["type","text","placeholder","/Users/.../certs/server.crt",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl"],["type","text","placeholder","/Users/.../certs/server.pfx",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"formControl"],["placeholder","mypassphrase",1,"form-control","custom-input","resp-input","order-1","order-md-2",3,"focus","blur","type","formControl"],["type","checkbox","id","accessoryDebug",1,"rendux-input",3,"formControl"],["for","accessoryDebug",1,"rendux-label","ms-3",2,"min-width","50px"]],template:function(r,p){r&1&&(n(0,"h3",0),l(1),s(2,"translate"),a(),n(3,"div",1)(4,"div",2),f("click",function(){return p.toggleSection("general")}),n(5,"h5",3),d(6,"i",4),l(7),s(8,"translate"),a()(),h(9,fi,23,23,"ul",5),a(),n(10,"div",1)(11,"div",2),f("click",function(){return p.toggleSection("display")}),n(12,"h5",3),d(13,"i",4),l(14),s(15,"translate"),a()(),h(16,ki,157,94,"ul",6),a(),n(17,"div",2),f("click",function(){return p.toggleSection("startup")}),n(18,"h5",3),d(19,"i",4),l(20),s(21,"translate"),a()(),h(22,Ui,111,85,"ul",7),n(23,"div",2),f("click",function(){return p.toggleSection("network")}),n(24,"h5",3),d(25,"i",4),l(26),s(27,"translate"),a()(),h(28,en,104,104,"ul",8),n(29,"div",2),f("click",function(){return p.toggleSection("security")}),n(30,"h5",3),d(31,"i",4),l(32),s(33,"translate"),a()(),h(34,cn,49,42,"ul",9),n(35,"div",1)(36,"div",2),f("click",function(){return p.toggleSection("cache")}),n(37,"h5",3),d(38,"i",4),l(39),s(40,"translate"),a()(),h(41,mn,3,3,"p",10),h(42,hn,48,38,"ul",11),a(),n(43,"div",1)(44,"div",2),f("click",function(){return p.toggleSection("reset")}),n(45,"h5",3),d(46,"i",4),l(47),s(48,"translate"),a()(),h(49,_n,3,3,"p",10),h(50,gn,24,20,"ul",12),a(),d(51,"div",13)),r&2&&(t(),u(o(2,38,"menu.settings.title")),t(3),v("aria-expanded",p.showFields.general?"true":"false")("aria-controls","fieldsGeneral"),t(2),c("ngClass",T(54,Q,p.showFields.general,!p.showFields.general)),t(),g(" ",o(8,40,"settings.general.title_general")," "),t(2),_(p.showFields.general?9:-1),t(2),v("aria-expanded",p.showFields.display?"true":"false")("aria-controls","fieldsDisplay"),t(2),c("ngClass",T(57,Q,p.showFields.display,!p.showFields.display)),t(),g(" ",o(15,42,"settings.general.title_display")," "),t(2),_(p.showFields.display?16:-1),t(),v("aria-expanded",p.showFields.startup?"true":"false")("aria-controls","fieldsStartup"),t(2),c("ngClass",T(60,Q,p.showFields.startup,!p.showFields.startup)),t(),g(" ",o(21,44,"settings.title_startup_options")," "),t(2),_(p.showFields.startup?22:-1),t(),v("aria-expanded",p.showFields.network?"true":"false")("aria-controls","fieldsNetwork"),t(2),c("ngClass",T(63,Q,p.showFields.network,!p.showFields.network)),t(),g(" ",o(27,46,"settings.network.title_network")," "),t(2),_(p.showFields.network?28:-1),t(),v("aria-expanded",p.showFields.security?"true":"false")("aria-controls","fieldsSecurity"),t(2),c("ngClass",T(66,Q,p.showFields.security,!p.showFields.security)),t(),g(" ",o(33,48,"settings.network.title_security")," "),t(2),_(p.showFields.security?34:-1),t(2),v("aria-expanded",p.showFields.cache?"true":"false")("aria-controls","fieldsCache"),t(2),c("ngClass",T(69,Q,p.showFields.cache,!p.showFields.cache)),t(),g(" ",o(40,50,"settings.cache.title")," "),t(2),_(p.showFields.cache?41:-1),t(),_(p.showFields.cache?42:-1),t(2),v("aria-expanded",p.showFields.reset?"true":"false")("aria-controls","fieldsReset"),t(2),c("ngClass",T(72,Q,p.showFields.reset,!p.showFields.reset)),t(),g(" ",o(48,52,"reset.bridges.title")," "),t(2),_(p.showFields.reset?49:-1),t(),_(p.showFields.reset?50:-1))},dependencies:[U,De,ee,$e,Fe,ne,Be,Y,Te,Z,Ae,Re,Pe,te,ae,X,F],encapsulation:2,data:{animation:[ke("fadeInOut",[ce(":enter",[ie({opacity:0}),de("750ms",ie({opacity:1}))]),ce(":leave",[de("750ms",ie({opacity:0}))])])]}})}return i})();export{Oe as a,oe as b,Ke as c,je as d,Je as e,Xe as f,$r as g};
@@ -1 +1 @@
1
- import{a as j}from"./chunk-PU3TWSJU.js";import"./chunk-BRW7C4BZ.js";import"./chunk-UTAVUGTT.js";import{c as M}from"./chunk-IOWBVW62.js";import"./chunk-UVOJ3BF7.js";import{q as u}from"./chunk-ALG7CIS3.js";import{A as d,z as l}from"./chunk-VLX322GM.js";import{d as h,g as a}from"./chunk-2G7GNBIF.js";import"./chunk-NANSDWEP.js";import{k as v,n as y}from"./chunk-TXSUD3RL.js";import"./chunk-VUYAK52W.js";import{a as g,c as C}from"./chunk-QMB5XE4Y.js";import{ga as c,h as s,ha as i,kd as p,la as e,mb as n,w as f}from"./chunk-R3VPSO5X.js";var m=(()=>{class o{$api=e(y);$router=e(h);$toastr=e(v);$translate=e(g);constructor(){}resolve(){return s(this,null,function*(){try{let r=yield f(this.$api.get("/config-editor"));return JSON.stringify(r,null,4)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(t){return new(t||o)};static \u0275prov=c({token:o,factory:o.\u0275fac})}return o})();var $=[{path:"",loadComponent:()=>import("./chunk-5NBW7CCV.js").then(o=>o.ConfigEditorComponent),resolve:{config:m}}],R=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=n({type:o});static \u0275inj=i({imports:[a.forChild($),a]})}return o})();var Q=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=n({type:o});static \u0275inj=i({providers:[m],imports:[p,l,d,M,u,C.forChild(),R,j]})}return o})();export{Q as ConfigEditorModule};
1
+ import{a as j}from"./chunk-KWCBQQVR.js";import"./chunk-4N43YINB.js";import"./chunk-OHR5OVP7.js";import{c as M}from"./chunk-RPJLIQDW.js";import"./chunk-RH4NWKOD.js";import{q as u}from"./chunk-OIRABOQZ.js";import{A as d,z as l}from"./chunk-L5BYKG2R.js";import{d as h,g as a}from"./chunk-XRY6CGOA.js";import"./chunk-QW2S4TCZ.js";import{k as v,n as y}from"./chunk-F7ESMOWK.js";import"./chunk-PPKCHGS4.js";import{a as g,c as C}from"./chunk-76VOEY5B.js";import{ga as c,h as s,ha as i,kd as p,la as e,mb as n,w as f}from"./chunk-5P33HCXD.js";var m=(()=>{class o{$api=e(y);$router=e(h);$toastr=e(v);$translate=e(g);constructor(){}resolve(){return s(this,null,function*(){try{let r=yield f(this.$api.get("/config-editor"));return JSON.stringify(r,null,4)}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(t){return new(t||o)};static \u0275prov=c({token:o,factory:o.\u0275fac})}return o})();var $=[{path:"",loadComponent:()=>import("./chunk-S6VSQTBH.js").then(o=>o.ConfigEditorComponent),resolve:{config:m}}],R=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=n({type:o});static \u0275inj=i({imports:[a.forChild($),a]})}return o})();var Q=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=n({type:o});static \u0275inj=i({providers:[m],imports:[p,l,d,M,u,C.forChild(),R,j]})}return o})();export{Q as ConfigEditorModule};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-AGFRFRFJ.js";import"./chunk-OIRABOQZ.js";import"./chunk-L5BYKG2R.js";import"./chunk-XRY6CGOA.js";import"./chunk-QW2S4TCZ.js";import"./chunk-F7ESMOWK.js";import"./chunk-PPKCHGS4.js";import"./chunk-76VOEY5B.js";import"./chunk-5P33HCXD.js";export{a as PowerOptionsComponent};
@@ -1 +1 @@
1
- import{e as I}from"./chunk-R3VPSO5X.js";var j=I((k,m)=>{(function(g,l){typeof k=="object"&&typeof m=="object"?m.exports=l():typeof define=="function"&&define.amd?define([],l):typeof k=="object"?k.WebLinksAddon=l():g.WebLinksAddon=l()})(self,function(){return(()=>{"use strict";var g={6:(a,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.LinkComputer=r.WebLinkProvider=void 0;var s=function(){function o(n,i,e,t){t===void 0&&(t={}),this._terminal=n,this._regex=i,this._handler=e,this._options=t}return o.prototype.provideLinks=function(n,i){var e=p.computeLink(n,this._regex,this._terminal,this._handler);i(this._addCallbacks(e))},o.prototype._addCallbacks=function(n){var i=this;return n.map(function(e){return e.leave=i._options.leave,e.hover=function(t,u){if(i._options.hover){var c=e.range;i._options.hover(t,u,c)}},e})},o}();r.WebLinkProvider=s;var p=function(){function o(){}return o.computeLink=function(n,i,e,t){for(var u,c=new RegExp(i.source,(i.flags||"")+"g"),_=o._translateBufferLineToStringWithWrap(n-1,!1,e),d=_[0],f=_[1],v=-1,w=[];(u=c.exec(d))!==null;){var h=u[1];if(!h){console.log("match found without corresponding matchIndex");break}if(v=d.indexOf(h,v+1),c.lastIndex=v+h.length,v<0)break;for(var b=v+h.length,y=f+1;b>e.cols;)b-=e.cols,y++;for(var L=v+1,P=f+1;L>e.cols;)L-=e.cols,P++;var M={start:{x:L,y:P},end:{x:b,y}};w.push({range:M,text:h,activate:t})}return w},o._translateBufferLineToStringWithWrap=function(n,i,e){var t,u,c="";do{if(!(d=e.buffer.active.getLine(n)))break;d.isWrapped&&n--,u=d.isWrapped}while(u);var _=n;do{var d,f=e.buffer.active.getLine(n+1);if(t=!!f&&f.isWrapped,!(d=e.buffer.active.getLine(n)))break;c+=d.translateToString(!t&&i).substring(0,e.cols),n++}while(t);return[c,_]},o}();r.LinkComputer=p}},l={};function x(a){var r=l[a];if(r!==void 0)return r.exports;var s=l[a]={exports:{}};return g[a](s,s.exports,x),s.exports}var W={};return(()=>{var a=W;Object.defineProperty(a,"__esModule",{value:!0}),a.WebLinksAddon=void 0;var r=x(6),s=new RegExp(`(?:^|[^\\da-z\\.-]+)((https?:\\/\\/)((([\\da-z\\.-]+)\\.([a-z\\.]{2,18}))|((\\d{1,3}\\.){3}\\d{1,3})|(localhost))(:\\d{1,5})?((\\/[\\/\\w\\.\\-%~:+@]*)*([^:"'\\s]))?(\\?[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?(#[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?)($|[^\\/\\w\\.\\-%]+)`);function p(n,i){var e=window.open();if(e){try{e.opener=null}catch{}e.location.href=i}else console.warn("Opening link blocked as opener could not be cleared")}var o=function(){function n(i,e,t){i===void 0&&(i=p),e===void 0&&(e={}),t===void 0&&(t=!1),this._handler=i,this._options=e,this._useLinkProvider=t}return n.prototype.activate=function(i){if(this._terminal=i,this._useLinkProvider&&"registerLinkProvider"in this._terminal){var e=(t=this._options).urlRegex||s;this._linkProvider=this._terminal.registerLinkProvider(new r.WebLinkProvider(this._terminal,e,this._handler,t))}else{var t;(t=this._options).matchIndex=1,this._linkMatcherId=this._terminal.registerLinkMatcher(s,this._handler,t)}},n.prototype.dispose=function(){var i;this._linkMatcherId!==void 0&&this._terminal!==void 0&&this._terminal.deregisterLinkMatcher(this._linkMatcherId),(i=this._linkProvider)===null||i===void 0||i.dispose()},n}();a.WebLinksAddon=o})(),W})()})});export{j as a};
1
+ import{e as I}from"./chunk-5P33HCXD.js";var j=I((k,m)=>{(function(g,l){typeof k=="object"&&typeof m=="object"?m.exports=l():typeof define=="function"&&define.amd?define([],l):typeof k=="object"?k.WebLinksAddon=l():g.WebLinksAddon=l()})(self,function(){return(()=>{"use strict";var g={6:(a,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.LinkComputer=r.WebLinkProvider=void 0;var s=function(){function o(n,i,e,t){t===void 0&&(t={}),this._terminal=n,this._regex=i,this._handler=e,this._options=t}return o.prototype.provideLinks=function(n,i){var e=p.computeLink(n,this._regex,this._terminal,this._handler);i(this._addCallbacks(e))},o.prototype._addCallbacks=function(n){var i=this;return n.map(function(e){return e.leave=i._options.leave,e.hover=function(t,u){if(i._options.hover){var c=e.range;i._options.hover(t,u,c)}},e})},o}();r.WebLinkProvider=s;var p=function(){function o(){}return o.computeLink=function(n,i,e,t){for(var u,c=new RegExp(i.source,(i.flags||"")+"g"),_=o._translateBufferLineToStringWithWrap(n-1,!1,e),d=_[0],f=_[1],v=-1,w=[];(u=c.exec(d))!==null;){var h=u[1];if(!h){console.log("match found without corresponding matchIndex");break}if(v=d.indexOf(h,v+1),c.lastIndex=v+h.length,v<0)break;for(var b=v+h.length,y=f+1;b>e.cols;)b-=e.cols,y++;for(var L=v+1,P=f+1;L>e.cols;)L-=e.cols,P++;var M={start:{x:L,y:P},end:{x:b,y}};w.push({range:M,text:h,activate:t})}return w},o._translateBufferLineToStringWithWrap=function(n,i,e){var t,u,c="";do{if(!(d=e.buffer.active.getLine(n)))break;d.isWrapped&&n--,u=d.isWrapped}while(u);var _=n;do{var d,f=e.buffer.active.getLine(n+1);if(t=!!f&&f.isWrapped,!(d=e.buffer.active.getLine(n)))break;c+=d.translateToString(!t&&i).substring(0,e.cols),n++}while(t);return[c,_]},o}();r.LinkComputer=p}},l={};function x(a){var r=l[a];if(r!==void 0)return r.exports;var s=l[a]={exports:{}};return g[a](s,s.exports,x),s.exports}var W={};return(()=>{var a=W;Object.defineProperty(a,"__esModule",{value:!0}),a.WebLinksAddon=void 0;var r=x(6),s=new RegExp(`(?:^|[^\\da-z\\.-]+)((https?:\\/\\/)((([\\da-z\\.-]+)\\.([a-z\\.]{2,18}))|((\\d{1,3}\\.){3}\\d{1,3})|(localhost))(:\\d{1,5})?((\\/[\\/\\w\\.\\-%~:+@]*)*([^:"'\\s]))?(\\?[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?(#[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?)($|[^\\/\\w\\.\\-%]+)`);function p(n,i){var e=window.open();if(e){try{e.opener=null}catch{}e.location.href=i}else console.warn("Opening link blocked as opener could not be cleared")}var o=function(){function n(i,e,t){i===void 0&&(i=p),e===void 0&&(e={}),t===void 0&&(t=!1),this._handler=i,this._options=e,this._useLinkProvider=t}return n.prototype.activate=function(i){if(this._terminal=i,this._useLinkProvider&&"registerLinkProvider"in this._terminal){var e=(t=this._options).urlRegex||s;this._linkProvider=this._terminal.registerLinkProvider(new r.WebLinkProvider(this._terminal,e,this._handler,t))}else{var t;(t=this._options).matchIndex=1,this._linkMatcherId=this._terminal.registerLinkMatcher(s,this._handler,t)}},n.prototype.dispose=function(){var i;this._linkMatcherId!==void 0&&this._terminal!==void 0&&this._terminal.deregisterLinkMatcher(this._linkMatcherId),(i=this._linkProvider)===null||i===void 0||i.dispose()},n}();a.WebLinksAddon=o})(),W})()})});export{j as a};