homebridge-config-ui-x 5.0.0-beta.1 → 5.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/package.json +3 -3
- package/public/3rdpartylicenses.txt +551 -551
- package/public/chunk-2OBHR63W.js +1 -0
- package/public/chunk-3C6WVST7.js +1 -0
- package/public/chunk-3IX3CLER.js +1 -0
- package/public/chunk-5ALXJOLQ.js +1 -0
- package/public/chunk-5LVGHH2N.js +1 -0
- package/public/chunk-6PHMBMFU.js +1 -0
- package/public/chunk-6TCHCTXZ.js +1 -0
- package/public/chunk-7456RB3C.js +1 -0
- package/public/chunk-76S7LYCL.js +1 -0
- package/public/chunk-77A3OZ74.js +1 -0
- package/public/chunk-7EANS226.js +1 -0
- package/public/chunk-7EUQWCP5.js +2 -0
- package/public/chunk-7L7RZCFC.js +8 -0
- package/public/chunk-ASX35H47.js +1 -0
- package/public/chunk-AVJ6EUEE.js +1 -0
- package/public/chunk-AX23H5TL.js +1 -0
- package/public/chunk-AZXQ73I5.js +1 -0
- package/public/chunk-BFDVOBTQ.js +1 -0
- package/public/{chunk-THFLPY67.js → chunk-BKUGARB4.js} +1 -1
- package/public/chunk-BMXAHMY6.js +1 -0
- package/public/chunk-BPMSJ2VF.js +1 -0
- package/public/{chunk-GNQUXZMN.js → chunk-CCUID66K.js} +1 -1
- package/public/chunk-CW7Q7WEJ.js +1 -0
- package/public/chunk-DDXIRKVB.js +1 -0
- package/public/chunk-DNOJWLVY.js +1 -0
- package/public/chunk-DZY2Q3FG.js +1 -0
- package/public/chunk-EA5J2VEJ.js +1 -0
- package/public/chunk-FX4GQIE4.js +32 -0
- package/public/chunk-GVDR7ZRB.js +1 -0
- package/public/chunk-HSJSWZHD.js +1 -0
- package/public/chunk-I7ZKPCIW.js +1 -0
- package/public/chunk-IPZ4P5DE.js +1 -0
- package/public/chunk-IW3EPSTZ.js +23 -0
- package/public/chunk-IWYEH4T6.js +1 -0
- package/public/chunk-JL6S5IIU.js +1 -0
- package/public/chunk-JZZQRLNW.js +1 -0
- package/public/chunk-KIJWUGXX.js +1 -0
- package/public/chunk-KO3WJGGG.js +1 -0
- package/public/chunk-KQJ7ONUG.js +1 -0
- package/public/chunk-KTDJZCFW.js +1 -0
- package/public/chunk-LDPCT3YF.js +5 -0
- package/public/chunk-MHYIZZN4.js +1 -0
- package/public/chunk-MOV2HTCQ.js +1 -0
- package/public/chunk-NF4NIS42.js +1 -0
- package/public/chunk-NW6AFAD7.js +1 -0
- package/public/chunk-NZNNTHFQ.js +1 -0
- package/public/chunk-O75YP3SB.js +1 -0
- package/public/chunk-ODPTCLGS.js +1 -0
- package/public/chunk-ORPWYWCL.js +5 -0
- package/public/chunk-Q5URFHBE.js +1 -0
- package/public/chunk-QE7DO6J3.js +8 -0
- package/public/chunk-QHPDGSZ6.js +1 -0
- package/public/chunk-QLWY5NWN.js +1 -0
- package/public/chunk-QRZNMAFL.js +1 -0
- package/public/chunk-RHB2T3FE.js +1 -0
- package/public/chunk-RMI35HIS.js +1 -0
- package/public/chunk-RO4QXVDE.js +1 -0
- package/public/chunk-RWZRB2OY.js +1 -0
- package/public/chunk-S62KH3FN.js +6 -0
- package/public/chunk-S6EMLS5Q.js +1 -0
- package/public/chunk-SVFFEV36.js +1 -0
- package/public/chunk-T2YVB4SI.js +1 -0
- package/public/chunk-TCSXGQNF.js +1 -0
- package/public/chunk-TXOB7R5K.js +7 -0
- package/public/chunk-U6ORTLYL.js +1 -0
- package/public/chunk-UG5DK2RQ.js +2 -0
- package/public/chunk-UJU3NPS7.js +1 -0
- package/public/chunk-UYZI56PX.js +1 -0
- package/public/chunk-UZU6PLTW.js +1 -0
- package/public/chunk-UZW3DWH4.js +1 -0
- package/public/chunk-VMXGERJT.js +14 -0
- package/public/chunk-VOBHY2IH.js +4 -0
- package/public/chunk-WHJOLAED.js +1 -0
- package/public/chunk-WHJSVGC7.js +1 -0
- package/public/chunk-WMB35VCS.js +1 -0
- package/public/{chunk-6QEO3BTW.js → chunk-WNWWUCCZ.js} +14 -14
- package/public/chunk-WT2GX4NS.js +1 -0
- package/public/chunk-XH6GEPB6.js +1 -0
- package/public/chunk-ZLPCX4R4.js +1 -0
- package/public/chunk-ZT23DWNL.js +1 -0
- package/public/chunk-ZY7HKZ4P.js +20 -0
- package/public/index.html +2 -2
- package/public/main-ILTX7GFO.js +1 -0
- package/public/media/fa-brands-400-6U3GU5Y7.woff2 +0 -0
- package/public/media/{fa-brands-400-CNBICIQT.ttf → fa-brands-400-MVB2B5XM.ttf} +0 -0
- package/public/media/{fa-regular-400-2FI4ICQD.ttf → fa-regular-400-EGQOOADX.ttf} +0 -0
- package/public/media/fa-regular-400-R5EOMW4H.woff2 +0 -0
- package/public/media/fa-solid-900-W65KEJAS.woff2 +0 -0
- package/public/media/{fa-solid-900-XVWCCN5V.ttf → fa-solid-900-ZUDIWQL5.ttf} +0 -0
- package/public/{polyfills-CE2SNIQF.js → polyfills-C6JHVXJJ.js} +2 -2
- package/public/prerendered-routes.json +3 -0
- package/public/styles-GDLSHXGD.css +1 -0
- package/public/chunk-3KSUXL3K.js +0 -20
- package/public/chunk-422JXES4.js +0 -23
- package/public/chunk-4R6MSI5I.js +0 -14
- package/public/chunk-5UYN5OWH.js +0 -1
- package/public/chunk-7564WJJL.js +0 -1
- package/public/chunk-7R6JSPNH.js +0 -1
- package/public/chunk-B6C32ZRK.js +0 -1
- package/public/chunk-B6G7GTDI.js +0 -1
- package/public/chunk-BQLALGZ5.js +0 -4
- package/public/chunk-BROUJ7PT.js +0 -1
- package/public/chunk-C4OONTE3.js +0 -1
- package/public/chunk-DOLYKWZH.js +0 -1
- package/public/chunk-DRWF7R4E.js +0 -1
- package/public/chunk-F22FMU37.js +0 -1
- package/public/chunk-FBP5C7VG.js +0 -1
- package/public/chunk-FPOZAQLC.js +0 -5
- package/public/chunk-IGUSDGD6.js +0 -8
- package/public/chunk-JM7QCDMZ.js +0 -1
- package/public/chunk-K3YXRBTH.js +0 -1
- package/public/chunk-K6TZNXIW.js +0 -1
- package/public/chunk-LS7T2AVU.js +0 -8
- package/public/chunk-NZPTOWFC.js +0 -20
- package/public/chunk-RID7V4NP.js +0 -1
- package/public/chunk-RIWBPQF3.js +0 -1
- package/public/chunk-S4SOWUAW.js +0 -1
- package/public/chunk-SJTXTMYT.js +0 -2
- package/public/chunk-T5QVI4H2.js +0 -1
- package/public/chunk-TBJQ2Y3M.js +0 -1
- package/public/chunk-TS27NWVA.js +0 -20
- package/public/chunk-VROGSJLF.js +0 -1
- package/public/chunk-VVILZWTF.js +0 -1
- package/public/chunk-WCDFKYP6.js +0 -5
- package/public/chunk-WCQIGCXO.js +0 -1
- package/public/chunk-Z47RP4BH.js +0 -1
- package/public/chunk-ZEONO5N6.js +0 -1
- package/public/main-VTRWQ63R.js +0 -6
- package/public/media/fa-brands-400-MDS4TU4L.woff2 +0 -0
- package/public/media/fa-regular-400-N56QV3DR.woff2 +0 -0
- package/public/media/fa-solid-900-Z3HFQTXF.woff2 +0 -0
- package/public/styles-7ETWN6DQ.css +0 -1
package/public/chunk-B6C32ZRK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{W as E,e as c,g as V,h as l}from"./chunk-IGUSDGD6.js";var I=c((L,B)=>{(function(n,P){n(function(){"use strict";var e={};e.mobileDetectRules={phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+|\\b(BBA100|BBB100|BBD100|BBE100|BBF100|STH100)\\b-[0-9]+",Pixel:"; \\bPixel\\b",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 5X|Nexus 6",Dell:"Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052",Samsung:"\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F|SM-G610F|SM-G981B|SM-G892A|SM-A530F",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323|M257)|LM-G710",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533|SOV34|601SO|F8332",Asus:"Asus.*Galaxy|PadFone.*Mobile",Xiaomi:"^(?!.*\\bx11\\b).*xiaomi.*$|POCOPHONE F1|MI 8|Redmi Note 9S|Redmi Note 5A Prime|N2G47H|M2001J2G|M2001J2I|M1805E10A|M2004J11G|M1902F1G|M2002J9G|M2004J19G|M2003J6A1G",NokiaLumia:"Lumia [0-9]{3,4}",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo (3DS|Switch)",Amoi:"Amoi",INQ:"INQ",OnePlus:"ONEPLUS",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",GoogleTablet:"Android.*Pixel C",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-T830|SM-T837V|SM-T720|SM-T510|SM-T387V|SM-P610|SM-T290|SM-T515|SM-T590|SM-T595|SM-T725|SM-T817P|SM-P585N0|SM-T395|SM-T295|SM-T865|SM-P610N|SM-P615|SM-T970|SM-T380|SM-T5950|SM-T905|SM-T231|SM-T500|SM-T860",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome/[0-9.]+ (?!Mobile)",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30|A3-A40",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304X|TB-X304F|TB-X304L|TB-X505F|TB-X505L|TB-X505X|TB-X605F|TB-X605L|TB-8703F|TB-8703X|TB-8703N|TB-8704N|TB-8704F|TB-8704X|TB-8704V|TB-7304F|TB-7304I|TB-7304X|Tab2A7-10F|Tab2A7-20F|TB2-X30L|YT3-X50L|YT3-X50F|YT3-X50M|YT-X705F|YT-X703F|YT-X703L|YT-X705L|YT-X705X|TB2-X30F|TB2-X30L|TB2-X30M|A2107A-F|A2107A-H|TB3-730F|TB3-730M|TB3-730X|TB-7504F|TB-7504X|TB-X704F|TB-X104F|TB3-X70F|TB-X705F|TB-8504F|TB3-X70L|TB3-710F|TB-X704L",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",NokiaLumiaTablet:"Lumia 2520",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|SGP612|SGP712",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*\\b(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))\\b|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-L09|CMR-AL19",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z930|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android [0-9.]+; [a-z-]+; \\bG1\\b",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)|Qualcore 1027",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497|VFD 1400",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9|TECNO DP8D",JXDTablet:"Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",VerizonTablet:"QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+|V10 \\b4G\\b",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",AocTablet:"MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712",MpmanTablet:"MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",KocasoTablet:"\\b(TB-1207)\\b",HisenseTablet:"\\b(F5281|E2371)\\b",Hudl:"Hudl HT7S3|Hudl 2",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Windows Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad|AppleCoreMedia",iPadOS:"CPU OS 13",SailfishOS:"Sailfish",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+$|Coast/[0-9.]+",Skyfire:"Skyfire",Edge:"\\bEdgiOS\\b|Mobile Safari/[.0-9]* Edge",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version((?!\\bEdgiOS\\b).)*Mobile.*Safari|Safari.*Mobile|MobileSafari",WeChat:"\\bMicroMessenger\\b",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger",PaleMoon:"Android.*PaleMoon|Mobile.*PaleMoon"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:["Firefox/[VER]","FxiOS/[VER]"],Fennec:"Fennec/[VER]",Edge:"Edge/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]",UCBrowser:["UCWEB[VER]","UC.*Browser/[VER]"],MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",SamsungBrowser:"SamsungBrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",PaleMoon:"PaleMoon/[VER]",SailfishBrowser:"SailfishBrowser/[VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",Goanna:"Goanna/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",Sailfish:"Sailfish [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|Google-AMPHTML|s~amp-validator|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom|contentkingapp|AspiegelBot",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|Nintendo Switch|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},e.detectMobileBrowsers={fullPattern:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,shortPattern:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,tabletPattern:/android|ipad|playbook|silk/i};var G=Object.prototype.hasOwnProperty,s;e.FALLBACK_PHONE="UnknownPhone",e.FALLBACK_TABLET="UnknownTablet",e.FALLBACK_MOBILE="UnknownMobile",s="isArray"in Array?Array.isArray:function(T){return Object.prototype.toString.call(T)==="[object Array]"};function H(T,S){return T!=null&&S!=null&&T.toLowerCase()===S.toLowerCase()}function C(T,S){var i,o,M=T.length;if(!M||!S)return!1;for(i=S.toLowerCase(),o=0;o<M;++o)if(i===T[o].toLowerCase())return!0;return!1}function t(T){for(var S in T)G.call(T,S)&&(T[S]=new RegExp(T[S],"i"))}function u(T){return(T||"").substr(0,500)}(function(){var S,i,o,M,A,r,a=e.mobileDetectRules;for(S in a.props)if(G.call(a.props,S)){for(i=a.props[S],s(i)||(i=[i]),A=i.length,M=0;M<A;++M)o=i[M],r=o.indexOf("[VER]"),r>=0&&(o=o.substring(0,r)+"([\\w._\\+]+)"+o.substring(r+5)),i[M]=new RegExp(o,"i");a.props[S]=i}t(a.oss),t(a.phones),t(a.tablets),t(a.uas),t(a.utils),a.oss0={WindowsPhoneOS:a.oss.WindowsPhoneOS,WindowsMobileOS:a.oss.WindowsMobileOS}})(),e.findMatch=function(T,S){for(var i in T)if(G.call(T,i)&&T[i].test(S))return i;return null},e.findMatches=function(T,S){var i=[];for(var o in T)G.call(T,o)&&T[o].test(S)&&i.push(o);return i},e.getVersionStr=function(T,S){var i=e.mobileDetectRules.props,o,M,A,r;if(G.call(i,T)){for(o=i[T],A=o.length,M=0;M<A;++M)if(r=o[M].exec(S),r!==null)return r[1]}return null},e.getVersion=function(T,S){var i=e.getVersionStr(T,S);return i?e.prepareVersionNo(i):NaN},e.prepareVersionNo=function(T){var S;return S=T.split(/[a-z._ \/\-]/i),S.length===1&&(T=S[0]),S.length>1&&(T=S[0]+".",S.shift(),T+=S.join("")),Number(T)},e.isMobileFallback=function(T){return e.detectMobileBrowsers.fullPattern.test(T)||e.detectMobileBrowsers.shortPattern.test(T.substr(0,4))},e.isTabletFallback=function(T){return e.detectMobileBrowsers.tabletPattern.test(T)},e.prepareDetectionCache=function(T,S,i){if(T.mobile===P){var o,M,A;if(M=e.findMatch(e.mobileDetectRules.tablets,S),M){T.mobile=T.tablet=M,T.phone=null;return}if(o=e.findMatch(e.mobileDetectRules.phones,S),o){T.mobile=T.phone=o,T.tablet=null;return}e.isMobileFallback(S)?(A=b.isPhoneSized(i),A===P?(T.mobile=e.FALLBACK_MOBILE,T.tablet=T.phone=null):A?(T.mobile=T.phone=e.FALLBACK_PHONE,T.tablet=null):(T.mobile=T.tablet=e.FALLBACK_TABLET,T.phone=null)):e.isTabletFallback(S)?(T.mobile=T.tablet=e.FALLBACK_TABLET,T.phone=null):T.mobile=T.tablet=T.phone=null}},e.mobileGrade=function(T){var S=T.mobile()!==null;return T.os("iOS")&&T.version("iPad")>=4.3||T.os("iOS")&&T.version("iPhone")>=3.1||T.os("iOS")&&T.version("iPod")>=3.1||T.version("Android")>2.1&&T.is("Webkit")||T.version("Windows Phone OS")>=7||T.is("BlackBerry")&&T.version("BlackBerry")>=6||T.match("Playbook.*Tablet")||T.version("webOS")>=1.4&&T.match("Palm|Pre|Pixi")||T.match("hp.*TouchPad")||T.is("Firefox")&&T.version("Firefox")>=12||T.is("Chrome")&&T.is("AndroidOS")&&T.version("Android")>=4||T.is("Skyfire")&&T.version("Skyfire")>=4.1&&T.is("AndroidOS")&&T.version("Android")>=2.3||T.is("Opera")&&T.version("Opera Mobi")>11&&T.is("AndroidOS")||T.is("MeeGoOS")||T.is("Tizen")||T.is("Dolfin")&&T.version("Bada")>=2||(T.is("UC Browser")||T.is("Dolfin"))&&T.version("Android")>=2.3||T.match("Kindle Fire")||T.is("Kindle")&&T.version("Kindle")>=3||T.is("AndroidOS")&&T.is("NookTablet")||T.version("Chrome")>=11&&!S||T.version("Safari")>=5&&!S||T.version("Firefox")>=4&&!S||T.version("MSIE")>=7&&!S||T.version("Opera")>=10&&!S?"A":T.os("iOS")&&T.version("iPad")<4.3||T.os("iOS")&&T.version("iPhone")<3.1||T.os("iOS")&&T.version("iPod")<3.1||T.is("Blackberry")&&T.version("BlackBerry")>=5&&T.version("BlackBerry")<6||T.version("Opera Mini")>=5&&T.version("Opera Mini")<=6.5&&(T.version("Android")>=2.3||T.is("iOS"))||T.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||T.version("Opera Mobi")>=11&&T.is("SymbianOS")?"B":(T.version("BlackBerry")<5||T.match("MSIEMobile|Windows CE.*Mobile")||T.version("Windows Mobile")<=5.2,"C")},e.detectOS=function(T){return e.findMatch(e.mobileDetectRules.oss0,T)||e.findMatch(e.mobileDetectRules.oss,T)},e.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height};function b(T,S){this.ua=u(T),this._cache={},this.maxPhoneWidth=S||600}return b.prototype={constructor:b,mobile:function(){return e.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return e.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return e.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===P&&(this._cache.userAgent=e.findMatch(e.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===P&&(this._cache.userAgents=e.findMatches(e.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===P&&(this._cache.os=e.detectOS(this.ua)),this._cache.os},version:function(T){return e.getVersion(T,this.ua)},versionStr:function(T){return e.getVersionStr(T,this.ua)},is:function(T){return C(this.userAgents(),T)||H(T,this.os())||H(T,this.phone())||H(T,this.tablet())||C(e.findMatches(e.mobileDetectRules.utils,this.ua),T)},match:function(T){return T instanceof RegExp||(T=new RegExp(T,"i")),T.test(this.ua)},isPhoneSized:function(T){return b.isPhoneSized(T||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===P&&(this._cache.grade=e.mobileGrade(this)),this._cache.grade}},typeof window<"u"&&window.screen?b.isPhoneSized=function(T){return T<0?P:e.getDeviceSmallerSide()<=T}:b.isPhoneSized=function(){},b._impl=e,b.version="1.4.5 2021-03-13",b})})(function(n){if(typeof B<"u"&&B.exports)return function(P){B.exports=P()};if(typeof define=="function"&&define.amd)return define;if(typeof window<"u")return function(P){window.MobileDetect=P()};throw new Error("unknown environment")}())});var D=V(I(),1);function d(n){n.preventDefault()}var m=(()=>{let P=class P{constructor(){l(this,"detect");l(this,"isTouchMoveLocked",!1);this.detect=new D.default(window.navigator.userAgent)}disableTouchMove(){this.isTouchMoveLocked||(document.body.addEventListener("touchmove",d,{passive:!1}),this.isTouchMoveLocked=!0)}enableTouchMove(){document.body.removeEventListener("touchmove",d),this.isTouchMoveLocked=!1}};l(P,"\u0275fac",function(s){return new(s||P)}),l(P,"\u0275prov",E({token:P,factory:P.\u0275fac,providedIn:"root"}));let n=P;return n})();export{m as a};
|
package/public/chunk-B6G7GTDI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{O as D,Q as F,z as R}from"./chunk-WCDFKYP6.js";import{c as N,k as O,m as H}from"./chunk-S4SOWUAW.js";import{a as M,b as P,c as B}from"./chunk-F22FMU37.js";import{$ as S,$b as V,Ga as I,La as _,Rb as j,Ua as s,Va as a,Wa as k,X as g,Za as h,aa as x,ab as d,bb as y,h as r,ha as b,ia as w,jb as l,kb as T,lb as f,sc as E,vc as $,wa as o,xa as u,yb as p,zb as c}from"./chunk-IGUSDGD6.js";function J(e,t){if(e&1){let v=h();s(0,"p",5)(1,"button",6),d("click",function(){b(v);let i=y();return w(i.restartServer())}),l(2),p(3,"translate"),a()()}e&2&&(o(2),f(" ",c(3,1,"menu.linux.label_restart_server")," "))}function K(e,t){if(e&1){let v=h();s(0,"p",5)(1,"button",6),d("click",function(){b(v);let i=y();return w(i.shutdownServer())}),l(2),p(3,"translate"),a()()}e&2&&(o(2),f(" ",c(3,1,"menu.linux.label_shutdown_server")," "))}function L(e,t){if(e&1){let v=h();s(0,"p",5)(1,"button",6),d("click",function(){b(v);let i=y();return w(i.dockerRestartContainer())}),l(2),p(3,"translate"),a()()}e&2&&(o(2),f(" ",c(3,1,"menu.docker.restart_container")," "))}var A=(()=>{let t=class t{constructor(n,i,m,C,G){r(this,"$api");r(this,"$router");r(this,"$settings");r(this,"$toastr");r(this,"$translate");this.$api=n,this.$router=i,this.$settings=m,this.$toastr=C,this.$translate=G}restartHomebridge(){this.$router.navigate(["/restart"])}restartHomebridgeService(){this.$api.put("/platform-tools/hb-service/set-full-service-restart-flag",{}).subscribe({next:()=>{this.$router.navigate(["/restart"])},error:n=>{console.error(n),this.$toastr.error(n.message,this.$translate.instant("toast.title_error"))}})}restartServer(){this.$router.navigate(["/platform-tools/linux/restart-server"])}shutdownServer(){this.$router.navigate(["/platform-tools/linux/shutdown-server"])}dockerRestartContainer(){this.$router.navigate(["/platform-tools/docker/restart-container"])}};r(t,"\u0275fac",function(i){return new(i||t)(u(N),u(E),u(H),u(O),u(M))}),r(t,"\u0275cmp",S({type:t,selectors:[["ng-component"]],decls:19,vars:15,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"w-100","text-center","my-5"],["type","button",1,"btn","btn-primary","p-3","my-0",2,"width","85%",3,"click"],["type","button","container","body","openDelay","150","triggers","hover",1,"btn","btn-primary","p-3","my-0",2,"width","85%",3,"click","ngbTooltip"],["class","w-100 text-center my-5",4,"ngIf"]],template:function(i,m){i&1&&(s(0,"div",0)(1,"h3",1),l(2),p(3,"translate"),a()(),s(4,"div",2)(5,"div",3),k(6,"i",4),a(),s(7,"p",5)(8,"button",6),d("click",function(){return m.restartHomebridge()}),l(9),p(10,"translate"),a()(),s(11,"p",5)(12,"button",7),p(13,"translate"),d("click",function(){return m.restartHomebridgeService()}),l(14),p(15,"translate"),a()(),I(16,J,4,3,"p",8)(17,K,4,3,"p",8)(18,L,4,3,"p",8),a()),i&2&&(o(2),T(c(3,7,"menu.restart.title")),o(7),f(" ",c(10,9,"menu.hbrestart.confirm_hb")," "),o(3),_("ngbTooltip",c(13,11,"reset.force_restart_hb_help_text")),o(2),f(" ",c(15,13,"menu.hbrestart.confirm_ui")," "),o(2),_("ngIf",m.$settings.env.canShutdownRestartHost),o(),_("ngIf",m.$settings.env.canShutdownRestartHost),o(),_("ngIf",m.$settings.env.runningInDocker))},dependencies:[j,D,P],encapsulation:2}));let e=t;return e})();var Q=[{path:"",component:A}],q=(()=>{let t=class t{};r(t,"\u0275fac",function(i){return new(i||t)}),r(t,"\u0275mod",x({type:t})),r(t,"\u0275inj",g({imports:[$.forChild(Q),$]}));let e=t;return e})();var vt=(()=>{let t=class t{};r(t,"\u0275fac",function(i){return new(i||t)}),r(t,"\u0275mod",x({type:t})),r(t,"\u0275inj",g({imports:[V,q,F,R,B]}));let e=t;return e})();export{vt as PowerOptionsModule};
|
package/public/chunk-BQLALGZ5.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{f as at}from"./chunk-422JXES4.js";import{a as ot,c as nt}from"./chunk-SJTXTMYT.js";import{a as rt}from"./chunk-B6C32ZRK.js";import{a as et}from"./chunk-7564WJJL.js";import"./chunk-TS27NWVA.js";import"./chunk-7R6JSPNH.js";import"./chunk-JM7QCDMZ.js";import"./chunk-RIWBPQF3.js";import{Q as it,c as Q,e as X,l as Y,y as Z,z as tt}from"./chunk-WCDFKYP6.js";import{c as x,k as S,m as P}from"./chunk-S4SOWUAW.js";import{a as w,b as J,c as K}from"./chunk-F22FMU37.js";import{$ as T,$b as q,Ga as C,La as p,Rb as V,Ua as l,Va as s,W as A,Wa as u,X as k,Z as y,Za as F,aa as E,ab as O,bb as d,h as t,ha as $,i as b,ia as I,jb as f,kb as g,ob as B,pb as W,qb as U,qc as G,sc as j,t as M,ta as L,vc as z,wa as a,xa as c,yb as v,zb as _}from"./chunk-IGUSDGD6.js";function gt(i,e){i&1&&(l(0,"p",11),f(1),v(2,"translate"),s()),i&2&&(a(),g(_(2,1,"restart.please_wait_while_server_restarts")))}function vt(i,e){if(i&1&&(l(0,"div",12),f(1),s()),i&2){let m=d();a(),g(m.error)}}function _t(i,e){i&1&&(l(0,"div",13)(1,"div",14),u(2,"i",15),s()())}function wt(i,e){i&1&&(l(0,"div")(1,"div",16)(2,"p"),f(3),v(4,"translate"),s(),u(5,"p",17),v(6,"translate"),s()()),i&2&&(a(3),g(_(4,2,"platform.docker.server_long_time")),a(2),p("innerHTML",_(6,4,"platform.docker.run_with_restart"),L))}var mt=(()=>{let e=class e{constructor(r,o,n,h,R,N){t(this,"$api");t(this,"$router");t(this,"$settings");t(this,"$toastr");t(this,"$translate");t(this,"$ws");t(this,"checkTimeout");t(this,"checkDelay");t(this,"resp",{});t(this,"timeout",!1);t(this,"error",!1);t(this,"io");this.$api=r,this.$router=o,this.$settings=n,this.$toastr=h,this.$translate=R,this.$ws=N}ngOnInit(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch()}),this.$api.put("/platform-tools/docker/restart-container",{}).subscribe({next:r=>{this.resp=r,this.checkIfServerUp()},error:r=>{this.error=this.$translate.instant("restart.toast_server_restart_error"),console.error(r),this.$toastr.error(this.$translate.instant("restart.toast_server_restart_error"),this.$translate.instant("toast.title_error"))}})}checkIfServerUp(){this.checkDelay=setTimeout(()=>{this.io.socket.on("homebridge-status",r=>{(r.status==="up"||r.status==="pending")&&(this.$toastr.success(this.$translate.instant("platform.docker.container_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})},1e4),this.checkTimeout=setTimeout(()=>{this.$toastr.warning(this.$translate.instant("restart.toast_server_restart_timeout"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout=!0},6e4)}ngOnDestroy(){this.io.end(),clearTimeout(this.checkDelay),clearTimeout(this.checkTimeout)}};t(e,"\u0275fac",function(o){return new(o||e)(c(x),c(j),c(P),c(S),c(w),c(et))}),t(e,"\u0275cmp",T({type:e,selectors:[["ng-component"]],decls:15,vars:10,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fab","fa-fw","fa-docker",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],["class","grey-text",4,"ngIf"],["class","alert alert-error my-4",4,"ngIf"],["class","justify-content-center my-4",4,"ngIf"],[4,"ngIf"],[1,"grey-text"],[1,"alert","alert-error","my-4"],[1,"justify-content-center","my-4"],[1,"restart-progress-box","primary-text"],[1,"fas","fa-fw","fa-spinner","fa-spin"],[1,"alert","alert-warning","my-4"],[1,"grey-text","mb-0",3,"innerHTML"]],template:function(o,n){o&1&&(l(0,"div",0)(1,"h3",1),f(2),v(3,"translate"),s()(),l(4,"div",2)(5,"div",3),u(6,"i",4),s(),l(7,"div",5)(8,"h4",6),f(9),v(10,"translate"),s(),C(11,gt,3,3,"p",7)(12,vt,2,1,"div",8)(13,_t,3,0,"div",9)(14,wt,7,6,"div",10),s()()),o&2&&(a(2),g(_(3,6,"menu.restart.title")),a(7),g(_(10,8,"platform.docker.title_restarting")),a(2),p("ngIf",!n.error),a(),p("ngIf",n.error),a(),p("ngIf",!n.error),a(),p("ngIf",n.timeout))},dependencies:[V,J],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;margin-top:15px}"]}));let i=e;return i})();function xt(i,e){i&1&&u(0,"i",10)}function St(i,e){i&1&&u(0,"i",11)}function yt(i,e){if(i&1){let m=F();l(0,"ngx-monaco-editor",12),O("onInit",function(o){$(m);let n=d();return I(n.onEditorInit(o))})("keydown.control.s",function(o){$(m);let n=d();return o.preventDefault(),I(n.onSave())})("keydown.meta.s",function(o){$(m);let n=d();return o.preventDefault(),I(n.onSave())}),s()}if(i&2){let m=d();p("options",m.editorOptions)("model",m.monacoEditorModel)}}function $t(i,e){if(i&1){let m=F();l(0,"textarea",13),U("ngModelChange",function(o){$(m);let n=d();return W(n.startupScript,o)||(n.startupScript=o),I(o)}),f(1," "),s()}if(i&2){let m=d();B("ngModel",m.startupScript)}}var dt=(()=>{let e=class e{constructor(r,o,n,h,R,N){t(this,"$api");t(this,"$md");t(this,"$route");t(this,"$settings");t(this,"$toastr");t(this,"$translate");t(this,"startupScript");t(this,"saveInProgress");t(this,"isMobile",!1);t(this,"options",{printMargin:!1});t(this,"monacoEditor");t(this,"editorOptions");t(this,"monacoEditorModel");t(this,"lastHeight");t(this,"visualViewPortEventCallback");this.$api=r,this.$md=o,this.$route=n,this.$settings=h,this.$toastr=R,this.$translate=N,this.isMobile=this.$md.detect.mobile()}ngOnInit(){this.editorOptions={language:"shell",theme:this.$settings.actualLightingMode==="dark"?"vs-dark":"vs-light",automaticLayout:!0},this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.$route.data.subscribe(r=>{this.startupScript=r.startupScript.script}),this.monacoEditorModel={value:"",language:"shell"}}onEditorInit(r){this.monacoEditor=r,this.monacoEditor.getModel().setValue(this.startupScript)}onSave(){return b(this,null,function*(){if(!this.saveInProgress){if(this.saveInProgress=!0,this.isMobile||(yield this.monacoEditor.getAction("editor.action.formatDocument").run(),this.startupScript=this.monacoEditor.getModel().getValue()),!["#!/bin/sh","#!/bin/bash"].includes(this.startupScript.split(`
|
|
2
|
-
`)[0].trim())){this.$toastr.error(this.$translate.instant("platform.docker.must_use_hashbang"),this.$translate.instant("toast.title_error")),this.startupScript=`#!/bin/sh
|
|
3
|
-
|
|
4
|
-
${this.startupScript}`,this.isMobile||this.monacoEditor.getModel().setValue(this.startupScript),this.saveInProgress=!1;return}try{yield M(this.$api.put("/platform-tools/docker/startup-script",{script:this.startupScript})),this.$toastr.success(this.$translate.instant("platform.docker.restart_required"),this.$translate.instant("platform.docker.script_saved"))}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error"))}this.saveInProgress=!1}})}visualViewPortChanged(){this.lastHeight<window.visualViewport.height&&document.activeElement.blur(),window.visualViewport.height<window.innerHeight?(this.$md.enableTouchMove(),this.lastHeight=window.visualViewport.height):window.visualViewport.height===window.innerHeight&&(this.$md.disableTouchMove(),this.lastHeight=window.visualViewport.height)}ngOnDestroy(){window.visualViewport&&(window.visualViewport.removeEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.enableTouchMove()),this.monacoEditor&&this.monacoEditor.dispose()}};t(e,"\u0275fac",function(o){return new(o||e)(c(x),c(rt),c(G),c(P),c(S),c(w))}),t(e,"\u0275cmp",T({type:e,selectors:[["ng-component"]],decls:11,vars:5,consts:[[1,"flex-column","d-flex","align-items-stretch","h-100"],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0","text-monospace"],[1,"col-6","text-right"],[1,"btn","btn-primary","waves-effect","m-0",3,"click","disabled"],["class","fas fa-fw fa-floppy-disk",4,"ngIf"],["class","fas fa-fw fa-spinner fa-pulse",4,"ngIf"],["class","flex-grow-1 h-100 w-100 my-2",3,"options","model","onInit","keydown.control.s","keydown.meta.s",4,"ngIf"],["wrap","off","class","hb-plain-text-editor align-self-end h-100 w-100 my-2","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",3,"ngModel","ngModelChange",4,"ngIf"],[1,"fas","fa-fw","fa-floppy-disk"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],[1,"flex-grow-1","h-100","w-100","my-2",3,"onInit","keydown.control.s","keydown.meta.s","options","model"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-2",3,"ngModelChange","ngModel"]],template:function(o,n){o&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),f(4,"startup.sh"),s()(),l(5,"div",4)(6,"button",5),O("click",function(){return n.onSave()}),C(7,xt,1,0,"i",6)(8,St,1,0,"i",7),s()()(),C(9,yt,1,2,"ngx-monaco-editor",8)(10,$t,2,1,"textarea",9),s()),o&2&&(a(6),p("disabled",n.saveInProgress),a(),p("ngIf",!n.saveInProgress),a(),p("ngIf",n.saveInProgress),a(),p("ngIf",!n.isMobile),a(),p("ngIf",n.isMobile))},dependencies:[V,Q,X,Y,ot],encapsulation:2}));let i=e;return i})();var H=(()=>{let e=class e{constructor(r,o,n,h){t(this,"$api");t(this,"$router");t(this,"$toastr");t(this,"$translate");this.$api=r,this.$router=o,this.$toastr=n,this.$translate=h}resolve(){return b(this,null,function*(){try{return yield M(this.$api.get("/platform-tools/docker/startup-script"))}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}};t(e,"\u0275fac",function(o){return new(o||e)(y(x),y(j),y(S),y(w))}),t(e,"\u0275prov",A({token:e,factory:e.\u0275fac}));let i=e;return i})();var It=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"startup-script",component:dt,resolve:{startupScript:H}},{path:"restart-container",component:mt}],ft=(()=>{let e=class e{};t(e,"\u0275fac",function(o){return new(o||e)}),t(e,"\u0275mod",E({type:e})),t(e,"\u0275inj",k({imports:[z.forChild(It),z]}));let i=e;return i})();var ee=(()=>{let e=class e{};t(e,"\u0275fac",function(o){return new(o||e)}),t(e,"\u0275mod",E({type:e})),t(e,"\u0275inj",k({providers:[H],imports:[q,Z,tt,nt,it,K.forChild(),at,ft]}));let i=e;return i})();export{ee as DockerModule};
|
package/public/chunk-BROUJ7PT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{W as r,h as e,l as o}from"./chunk-IGUSDGD6.js";var a=new o,s=(()=>{let t=class t{constructor(){e(this,"readyEvent");this.readyEvent=a}};e(t,"\u0275fac",function(c){return new(c||t)}),e(t,"\u0275prov",r({token:t,factory:t.\u0275fac,providedIn:"root"}));let n=t;return n})();function p(){a.next(void 0)}export{s as a,p as b};
|
package/public/chunk-C4OONTE3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as be}from"./chunk-K3YXRBTH.js";import{a as ne}from"./chunk-ZEONO5N6.js";import{d as Pe}from"./chunk-3KSUXL3K.js";import"./chunk-4R6MSI5I.js";import"./chunk-SJTXTMYT.js";import"./chunk-6QEO3BTW.js";import"./chunk-B6C32ZRK.js";import{b as Xe}from"./chunk-LS7T2AVU.js";import"./chunk-GNQUXZMN.js";import"./chunk-THFLPY67.js";import"./chunk-7564WJJL.js";import{d as je}from"./chunk-TS27NWVA.js";import{a as Ve}from"./chunk-7R6JSPNH.js";import"./chunk-JM7QCDMZ.js";import"./chunk-RIWBPQF3.js";import{G as R,M as V,N as G,O as Fe,Q as De,b as ee,c as he,e as te,f as xe,g as se,j as H,k as Se,l as ie,m as ke,n as ye,o as Ce,p as we,q as Ie,r as Be,s as Ee,t as $e,u as Te,v as Me,y as Ae,z as Ne}from"./chunk-WCDFKYP6.js";import{c as F,k as D,m as ve}from"./chunk-S4SOWUAW.js";import{a as N,b as $,c as fe}from"./chunk-F22FMU37.js";import{$ as E,$b as ue,Ab as z,Ga as k,H as ae,Ka as v,La as m,Pb as O,Qb as j,Rb as A,Ua as t,Va as i,Wa as g,X as Y,Xb as J,Za as w,Zb as me,aa as Z,ab as b,bb as h,g as Qe,h as u,ha as y,i as B,ia as C,jb as a,kb as _,lb as f,mb as P,ob as pe,pb as ce,qb as de,sc as ge,t as T,ta as oe,tc as _e,ub as q,vb as M,vc as re,wa as e,xa as S,yb as r,zb as s}from"./chunk-IGUSDGD6.js";var le=Qe(Xe(),1);var Ye=(n,c)=>({"fa-download":n,"fa-cog fa-spin":c}),Ze=n=>({backupTime:n,dayCount:7}),et=(n,c)=>({"fa-trash":n,"fa-cog fa-spin":c}),tt=(n,c)=>({backupSize:n,maxBackupSizeText:c});function it(n,c){if(n&1&&(t(0,"li"),a(1),r(2,"date"),r(3,"translate"),i()),n&2){let p=h();e(),f(" ",z(3,4,"backup.scheduled_backup_time",q(7,Ze,z(2,1,p.backupTime,"shortTime")))," ")}}function nt(n,c){if(n&1&&(t(0,"span",30),r(1,"translate"),g(2,"i",31),a(3),i()),n&2){let p=h().$implicit;m("ngbTooltip",z(1,2,"backup.backup_exceeds_max_size",M(5,tt,p.size+"MB",p.maxBackupSizeText))),e(3),f(" ",p.size,"MB ")}}function at(n,c){if(n&1&&(t(0,"span"),a(1),i()),n&2){let p=h().$implicit;e(),f(" ",p.size,"MB ")}}function rt(n,c){if(n&1){let p=w();t(0,"li",10)(1,"span")(2,"span",25),a(3),r(4,"date"),i(),g(5,"br"),t(6,"small",11),a(7),r(8,"date"),k(9,nt,4,8,"span",26)(10,at,2,1,"span",8),i()(),t(11,"span",12)(12,"button",27),r(13,"translate"),r(14,"translate"),b("click",function(){let o=y(p).$implicit,d=h();return C(d.restore(o))}),g(15,"i",14),i(),t(16,"button",15),r(17,"translate"),r(18,"translate"),b("click",function(){let o=y(p).$implicit,d=h();return C(d.download(o))}),g(19,"i",28),i(),t(20,"button",29),r(21,"translate"),r(22,"translate"),b("click",function(){let o=y(p).$implicit,d=h();return C(d.delete(o))}),g(23,"i",16),i()()()}if(n&2){let p=c.$implicit,l=h();e(2),m("ngbTooltip",p.fileName),e(),f(" ",z(4,15,p.timestamp,"mediumDate")," "),e(4),f(" ",z(8,18,p.timestamp,"shortTime")," \xB7 "),e(2),m("ngIf",p.size>p.maxBackupSize),e(),m("ngIf",p.size<=p.maxBackupSize),e(2),m("disabled",l.clicked||l.deleting||p.size>p.maxBackupSize)("ngbTooltip",s(13,21,"form.button_restore")),v("aria-label",s(14,23,"form.button_restore")),e(4),m("disabled",l.clicked||l.deleting)("ngbTooltip",s(17,25,"form.button_download")),v("aria-label",s(18,27,"form.button_download")),e(4),m("disabled",l.clicked||l.deleting)("ngbTooltip",s(21,29,"form.button_delete")),v("aria-label",s(22,31,"form.button_delete")),e(3),m("ngClass",M(33,et,p.id!==l.deleting,p.id===l.deleting))}}function st(n,c){if(n&1&&(t(0,"div")(1,"div",32)(2,"h4",33),a(3),r(4,"translate"),i(),t(5,"p"),a(6),i()()()),n&2){let p=h();e(3),_(s(4,2,"toast.title_error")),e(3),_(p.errorMessage)}}var Oe=(()=>{let c=class c{constructor(l,o,d,x,I){u(this,"$activeModal");u(this,"$api");u(this,"$modal");u(this,"$toastr");u(this,"$translate");u(this,"clicked",!1);u(this,"scheduledBackups",[]);u(this,"backupTime");u(this,"errorMessage","");u(this,"deleting",null);u(this,"Date",Date);this.$activeModal=l,this.$api=o,this.$modal=d,this.$toastr=x,this.$translate=I}ngOnInit(){this.getScheduledBackups(),this.getNextBackup()}getScheduledBackups(){this.$api.get("/backup/scheduled-backups").subscribe({next:l=>{this.scheduledBackups=l},error:l=>{this.errorMessage=l.error.message||l.message}})}getNextBackup(){this.$api.get("/backup/scheduled-backups/next").subscribe({next:l=>{this.backupTime=l.next},error:l=>{console.error(l)}})}download(l){this.$api.get(`/backup/scheduled-backups/${l.id}`,{observe:"response",responseType:"blob"}).subscribe({next:o=>{let d=l.fileName||"homebridge-backup.tar.gz",x=o.body.size;if(x>globalThis.backup.maxBackupSize){let I=this.$translate.instant("backup.backup_exceeds_max_size",{maxBackupSizeText:globalThis.backup.maxBackupSizeText,size:`${(x/1048576).toFixed(1)}MB`});this.$toastr.warning(I,this.$translate.instant("toast.title_warning"))}(0,le.saveAs)(o.body,d)},error:o=>{console.error(o),this.$toastr.error(this.$translate.instant("backup.backup_download_failed"),this.$translate.instant("toast.title_error"))}})}restore(l){this.$activeModal.close();let o=this.$modal.open(ne,{size:"lg",backdrop:"static"});o.componentInstance.selectedBackup=l}delete(l){this.deleting=l.id,this.$api.delete(`/backup/scheduled-backups/${l.id}`).subscribe({next:()=>{this.getScheduledBackups(),this.deleting=null},error:o=>{this.deleting=null,console.error(o),this.$toastr.error(this.$translate.instant("backup.backup_delete_failed"),this.$translate.instant("toast.title_error"))}})}onDownloadBackupClick(){return B(this,null,function*(){this.clicked=!0,this.$api.get("/backup/download",{observe:"response",responseType:"blob"}).subscribe({next:l=>{let o=l.headers.get("File-Name")||"homebridge-backup.tar.gz";this.clicked=!1;let d=l.body.size;if(d>globalThis.backup.maxBackupSize){let x=this.$translate.instant("backup.backup_exceeds_max_size",{maxBackupSizeText:globalThis.backup.maxBackupSizeText,size:`${(d/1048576).toFixed(1)}MB`});this.$toastr.warning(x,this.$translate.instant("toast.title_warning"))}(0,le.saveAs)(l.body,o)},error:l=>{this.clicked=!1,console.error(l),this.$toastr.error(this.$translate.instant("backup.backup_download_failed"),this.$translate.instant("toast.title_error"))}})})}};u(c,"\u0275fac",function(o){return new(o||c)(S(V),S(F),S(G),S(D),S(N))}),u(c,"\u0275cmp",E({type:c,selectors:[["ng-component"]],decls:54,vars:51,consts:[[1,"modal-content","hb-backup-modal"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click","disabled"],["aria-hidden","true"],[1,"modal-body"],[1,"text-center","mt-2","mb-3"],[1,"fas","fa-fw","fa-hard-drive","primary-text",2,"font-size","75px"],[4,"ngIf"],[1,"list-group","list-group-box","mt-2"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"grey-text"],[2,"display","flex","flex-wrap","nowrap"],["disabled","",1,"btn","btn-primary","ml-3"],[1,"fas","fa-fw","fa-history"],["placement","bottom","container","modal","openDelay","150","triggers","hover",1,"btn","btn-primary","ml-1",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw",3,"ngClass"],["disabled","",1,"btn","btn-danger","ml-1"],[1,"fas","fa-fw","fa-trash"],["class","list-group-item d-flex justify-content-between align-items-center",4,"ngFor","ngForOf"],[1,"modal-footer","justify-content-between"],[1,"text-left"],[1,"text-center"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-right"],["container","modal","openDelay","150","triggers","hover",3,"ngbTooltip"],["container","modal","openDelay","150","triggers","hover","class","red-text",3,"ngbTooltip",4,"ngIf"],["placement","bottom","container","modal","openDelay","150","triggers","hover",1,"btn","btn-primary","ml-3",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-download"],["placement","bottom","container","modal","openDelay","150","triggers","hover",1,"btn","btn-danger","ml-1",3,"click","disabled","ngbTooltip"],["container","modal","openDelay","150","triggers","hover",1,"red-text",3,"ngbTooltip"],[1,"fas","fa-fw","fa-exclamation-circle"],["role","alert",1,"alert","alert-error"],[1,"alert-heading"]],template:function(o,d){o&1&&(t(0,"div",0)(1,"div",1)(2,"h5",2),a(3),r(4,"translate"),i(),t(5,"button",3),r(6,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),t(7,"span",4),a(8,"\xD7"),i()()(),t(9,"div",5)(10,"div",6),g(11,"i",7),i(),t(12,"ul")(13,"li"),a(14),r(15,"translate"),i(),t(16,"li"),a(17),r(18,"translate"),i(),t(19,"li"),a(20),r(21,"translate"),i(),k(22,it,4,9,"li",8),i(),t(23,"ul",9)(24,"li",10)(25,"span")(26,"span"),a(27),r(28,"date"),i(),g(29,"br"),t(30,"small",11),a(31),r(32,"date"),r(33,"translate"),i()(),t(34,"span",12)(35,"button",13),r(36,"translate"),g(37,"i",14),i(),t(38,"button",15),r(39,"translate"),r(40,"translate"),b("click",function(){return d.onDownloadBackupClick()}),g(41,"i",16),i(),t(42,"button",17),r(43,"translate"),g(44,"i",18),i()()(),k(45,rt,24,36,"li",19),i(),k(46,st,7,4,"div",8),i(),t(47,"div",20),g(48,"div",21),t(49,"div",22)(50,"button",23),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),a(51),r(52,"translate"),i()(),g(53,"div",24),i()()),o&2&&(e(3),_(s(4,20,"backup.title_backup")),e(2),m("disabled",d.clicked||d.deleting),v("aria-label",s(6,22,"form.button_close")),e(9),_(s(15,24,"backup.backup_help_one")),e(3),_(s(18,26,"backup.backup_help_two")),e(3),_(s(21,28,"backup.backup_warning")),e(2),m("ngIf",d.backupTime),e(5),f(" ",z(28,30,d.Date.now(),"mediumDate")," "),e(4),P("",z(32,33,d.Date.now(),"shortTime")," \xB7 ",s(33,36,"backup.now"),""),e(4),v("aria-label",s(36,38,"form.button_restore")),e(3),m("disabled",d.clicked)("ngbTooltip",s(39,40,"form.button_download")),v("aria-label",s(40,42,"form.button_download")),e(3),m("ngClass",M(48,Ye,!d.clicked,d.clicked)),e(),v("aria-label",s(43,44,"form.button_delete")),e(3),m("ngForOf",d.scheduledBackups),e(),m("ngIf",d.errorMessage),e(4),m("disabled",d.clicked||d.deleting),e(),f(" ",s(52,46,"form.button_close")," "))},dependencies:[O,j,A,Fe,me,$],encapsulation:2}));let n=c;return n})();function lt(n,c){n&1&&(t(0,"div",11),g(1,"i",15),t(2,"p",16),a(3),r(4,"translate"),i()()),n&2&&(e(3),_(s(4,1,"reset.remove_cached_accessories_single_empty")))}function ot(n,c){n&1&&(t(0,"div")(1,"div",17),g(2,"i",18),i(),t(3,"ngb-alert",19)(4,"p",20),a(5),r(6,"translate"),i(),t(7,"ul",21)(8,"li"),a(9),r(10,"translate"),i(),t(11,"li"),a(12),r(13,"translate"),i(),t(14,"li",16),a(15),r(16,"translate"),i()()()()),n&2&&(e(3),m("dismissible",!1),e(2),_(s(6,5,"reset.action_is_irreversible")),e(4),_(s(10,7,"reset.clear_cache_all.list_1")),e(3),_(s(13,9,"reset.clear_cache_all.list_2")),e(3),_(s(16,11,"reset.clear_cache_all.list_3")))}function pt(n,c){if(n&1){let p=w();t(0,"button",22),r(1,"translate"),b("click",function(){y(p);let o=h();return C(o.$activeModal.dismiss("Dismiss"))}),a(2),r(3,"translate"),i()}if(n&2){let p=h();m("disabled",p.clicked),v("aria-label",s(1,3,"form.button_close")),e(2),f(" ",s(3,5,"form.button_close")," ")}}function ct(n,c){if(n&1){let p=w();t(0,"button",23),r(1,"translate"),b("click",function(){y(p);let o=h();return C(o.$activeModal.dismiss("Dismiss"))}),a(2),r(3,"translate"),i()}n&2&&(v("aria-label",s(1,2,"form.button_close")),e(2),f(" ",s(3,4,"form.button_close")," "))}function dt(n,c){n&1&&(t(0,"span"),a(1),r(2,"translate"),i()),n&2&&(e(),_(s(2,1,"form.button_remove")))}function mt(n,c){n&1&&g(0,"i",26)}function ut(n,c){if(n&1){let p=w();t(0,"button",24),b("click",function(){y(p);let o=h();return C(o.onResetCachedAccessoriesClick())}),k(1,dt,3,3,"span",7)(2,mt,1,0,"i",25),i()}if(n&2){let p=h();m("disabled",p.clicked),e(),m("ngIf",!p.clicked),e(),m("ngIf",p.clicked)}}var Re=(()=>{let c=class c{constructor(l,o,d,x){u(this,"$activeModal");u(this,"$api");u(this,"$toastr");u(this,"$translate");u(this,"clicked");u(this,"cachedAccessories",[]);this.$activeModal=l,this.$api=o,this.$toastr=d,this.$translate=x}ngOnInit(){this.loadCachedAccessories()}loadCachedAccessories(){return B(this,null,function*(){try{this.cachedAccessories=yield T(this.$api.get("/server/cached-accessories"))}catch(l){console.error(l),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()},error:l=>{this.clicked=!1,console.error(l),this.$toastr.error(this.$translate.instant("reset.failed_to_reset"),this.$translate.instant("toast.title_error"))}})}};u(c,"\u0275fac",function(o){return new(o||c)(S(V),S(F),S(D),S(N))}),u(c,"\u0275cmp",E({type:c,selectors:[["ng-component"]],decls:19,vars:12,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click","disabled"],["aria-hidden","true"],[1,"modal-body"],["class","text-center",4,"ngIf"],[4,"ngIf"],[1,"modal-footer","justify-content-between"],[1,"text-left"],["type","button","class","btn btn-elegant","data-dismiss","modal",3,"disabled","click",4,"ngIf"],[1,"text-center"],["type","button","class","btn btn-elegant","data-dismiss","modal",3,"click",4,"ngIf"],[1,"text-right"],["type","button","class","btn btn-danger","data-dismiss","modal",3,"disabled","click",4,"ngIf"],[1,"fas","fa-fw","fa-circle-check","mb-4","primary-text",2,"font-size","75px"],[1,"mb-0"],[1,"text-center","mb-4"],[1,"fas","fa-fw","fa-network-wired","mb-4","primary-text",2,"font-size","75px"],["type","error",2,"margin-bottom","0",3,"dismissible"],[1,"font-weight-bold"],[1,"mb-0","text-left"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click"],["type","button","data-dismiss","modal",1,"btn","btn-danger",3,"click","disabled"],["class","fas fa-fw fa-spinner fa-pulse",4,"ngIf"],[1,"fas","fa-fw","fa-spinner","fa-pulse"]],template:function(o,d){o&1&&(t(0,"div",0)(1,"div",1)(2,"h5",2),a(3),r(4,"translate"),i(),t(5,"button",3),r(6,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),t(7,"span",4),a(8,"\xD7"),i()()(),t(9,"div",5),k(10,lt,5,3,"div",6)(11,ot,17,13,"div",7),i(),t(12,"div",8)(13,"div",9),k(14,pt,4,7,"button",10),i(),t(15,"div",11),k(16,ct,4,6,"button",12),i(),t(17,"div",13),k(18,ut,3,3,"button",14),i()()()),o&2&&(e(3),_(s(4,8,"reset.clear_cache_all.title")),e(2),m("disabled",d.clicked),v("aria-label",s(6,10,"form.button_close")),e(5),m("ngIf",d.cachedAccessories.length===0),e(),m("ngIf",d.cachedAccessories.length>0),e(3),m("ngIf",d.cachedAccessories.length>0),e(2),m("ngIf",d.cachedAccessories.length===0),e(2),m("ngIf",d.cachedAccessories.length>0))},dependencies:[A,R,$],encapsulation:2}));let n=c;return n})();var gt=(n,c)=>({"green-text":n,"red-text":c}),_t=(n,c)=>({"fa-trash":n,"fa-cog fa-spin":c});function ft(n,c){n&1&&(t(0,"div",10),g(1,"i",13),t(2,"p",14),a(3),r(4,"translate"),i()()),n&2&&(e(3),_(s(4,1,"reset.clear_cache_bridge.empty")))}function vt(n,c){if(n&1){let p=w();t(0,"li",21)(1,"span"),a(2),r(3,"titlecase"),g(4,"br"),t(5,"small",22),g(6,"i",23),a(7),r(8,"translate"),i()(),t(9,"button",24),r(10,"translate"),b("click",function(){let o=y(p).$implicit,d=h(2);return C(d.removeAccessories(o._id))}),g(11,"i",25),i()()}if(n&2){let p=c.$implicit,l=h(2);e(2),P(" ",p.displayName," (",p._main?"Homebridge":s(3,8,p._category),") "),e(4),m("ngClass",M(14,gt,p._isPaired,!p._isPaired)),e(),P(" ",s(8,10,p._isPaired?"status.widget.qr_paired":"status.widget.qr_unpaired")," \xB7 ",p._username," "),e(2),m("disabled",l.deleting||l.deleted.includes(p._id)),v("aria-label",s(10,12,"form.button_delete")),e(2),m("ngClass",M(17,_t,p._id!==l.deleting,p._id===l.deleting))}}function bt(n,c){if(n&1&&(t(0,"div")(1,"div",15),g(2,"i",16),i(),t(3,"ngb-alert",17)(4,"ul",18)(5,"li"),a(6),r(7,"translate"),i(),t(8,"li"),a(9),r(10,"translate"),i(),t(11,"li"),a(12),r(13,"translate"),i()()(),t(14,"ul",19),k(15,vt,12,20,"li",20),i()()),n&2){let p=h();e(3),m("dismissible",!1),e(3),_(s(7,5,"reset.clear_cache_bridge.list_1")),e(3),_(s(10,7,"reset.clear_cache_single.list_3")),e(3),_(s(13,9,"reset.clear_cache_bridge.list_2")),e(3),m("ngForOf",p.pairings)}}var Ue=(()=>{let c=class c{constructor(l,o,d,x,I){u(this,"$activeModal");u(this,"$api");u(this,"$modal");u(this,"$toastr");u(this,"$translate");u(this,"pairings",[]);u(this,"deleting",null);u(this,"deleted",[]);this.$activeModal=l,this.$api=o,this.$modal=d,this.$toastr=x,this.$translate=I}ngOnInit(){this.loadPairings()}loadPairings(){return B(this,null,function*(){try{this.pairings=(yield T(this.$api.get("/server/pairings"))).filter(l=>l._category==="bridge"&&!l._main).sort((l,o)=>o._main?1:-1)}catch(l){console.error(l),this.$toastr.error(this.$translate.instant("settings.unpair_bridge.load_error"),this.$translate.instant("toast.title_error")),this.$activeModal.close()}})}removeAccessories(l){this.deleting=l,this.$api.delete(`/server/pairings/${l}/accessories`).subscribe({next:()=>B(this,null,function*(){yield this.loadPairings(),this.deleting=null,this.deleted.push(l),this.$toastr.success("",this.$translate.instant("toast.title_success"))}),error:o=>{this.deleting=null,console.error(o),this.$toastr.error(this.$translate.instant("settings.unpair_bridge.unpair_error"),this.$translate.instant("toast.title_error"))}})}ngOnDestroy(){if(this.deleted.length){let l=this.$modal.open(je,{size:"lg",backdrop:"static"});l.componentInstance.bridges=this.deleted.map(o=>{let{_username:d,displayName:x}=this.pairings.find(I=>I._id===o);return{displayName:x,username:d}})}}};u(c,"\u0275fac",function(o){return new(o||c)(S(V),S(F),S(G),S(D),S(N))}),u(c,"\u0275cmp",E({type:c,selectors:[["ng-component"]],decls:19,vars:13,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click","disabled"],["aria-hidden","true"],[1,"modal-body"],["class","text-center",4,"ngIf"],[4,"ngIf"],[1,"modal-footer","justify-content-between"],[1,"text-left"],[1,"text-center"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-right"],[1,"fas","fa-fw","fa-circle-check","mb-4","primary-text",2,"font-size","75px"],[1,"mb-0"],[1,"text-center","mb-4"],[1,"fas","fa-fw","fa-network-wired","primary-text",2,"font-size","75px"],["type","warning",3,"dismissible"],[1,"mb-0","text-left"],[1,"list-group","list-group-box","mt-2"],["class","list-group-item d-flex justify-content-between align-items-center",4,"ngFor","ngForOf"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"grey-text"],[1,"fas","fa-fw","fa-link",3,"ngClass"],[1,"btn","btn-danger",3,"click","disabled"],[1,"fas","fa-fw",3,"ngClass"]],template:function(o,d){o&1&&(t(0,"div",0)(1,"div",1)(2,"h5",2),a(3),r(4,"translate"),i(),t(5,"button",3),r(6,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),t(7,"span",4),a(8,"\xD7"),i()()(),t(9,"div",5),k(10,ft,5,3,"div",6)(11,bt,16,11,"div",7),i(),t(12,"div",8),g(13,"div",9),t(14,"div",10)(15,"button",11),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),a(16),r(17,"translate"),i()(),g(18,"div",12),i()()),o&2&&(e(3),_(s(4,7,"reset.clear_cache_bridge.title")),e(2),m("disabled",d.deleting),v("aria-label",s(6,9,"form.button_close")),e(5),m("ngIf",d.pairings.length===0),e(),m("ngIf",d.pairings.length>0),e(4),m("disabled",d.deleting),e(),f(" ",s(17,11,"form.button_close")," "))},dependencies:[O,j,A,R,J,$],encapsulation:2}));let n=c;return n})();var ht=(n,c)=>({"fa-trash":n,"fa-cog fa-spin":c});function xt(n,c){n&1&&(t(0,"div",10),g(1,"i",13),t(2,"p",14),a(3),r(4,"translate"),i()()),n&2&&(e(3),_(s(4,1,"reset.remove_cached_accessories_single_empty")))}function St(n,c){if(n&1){let p=w();t(0,"li",21)(1,"span"),a(2),g(3,"br"),t(4,"small",22),a(5),i()(),t(6,"button",23),r(7,"translate"),b("click",function(){let o=y(p).$implicit,d=h(2);return C(d.removeAccessory(o))}),g(8,"i",24),i()()}if(n&2){let p=c.$implicit,l=h(2);e(2),P(" ",p.displayName," (",p.plugin,") "),e(3),_(p.UUID),e(),m("disabled",l.deleting),v("aria-label",s(7,6,"form.button_delete")),e(2),m("ngClass",M(8,ht,p.UUID!==l.deleting,p.UUID===l.deleting))}}function kt(n,c){if(n&1&&(t(0,"div")(1,"div",15),g(2,"i",16),i(),t(3,"ngb-alert",17)(4,"ul",18)(5,"li"),a(6),r(7,"translate"),i(),t(8,"li"),a(9),r(10,"translate"),i(),t(11,"li"),a(12),r(13,"translate"),i(),t(14,"li",14),a(15),r(16,"translate"),i()()(),t(17,"ul",19),k(18,St,9,11,"li",20),i()()),n&2){let p=h();e(3),m("dismissible",!1),e(3),_(s(7,6,"reset.clear_cache_single.list_1")),e(3),_(s(10,8,"reset.clear_cache_single.list_2")),e(3),_(s(13,10,"reset.clear_cache_single.list_3")),e(3),_(s(16,12,"reset.clear_cache_single.list_4")),e(3),m("ngForOf",p.cachedAccessories)}}var ze=(()=>{let c=class c{constructor(l,o,d,x){u(this,"$activeModal");u(this,"$api");u(this,"$toastr");u(this,"$translate");u(this,"cachedAccessories",[]);u(this,"deleting",null);this.$activeModal=l,this.$api=o,this.$toastr=d,this.$translate=x}ngOnInit(){this.loadCachedAccessories()}loadCachedAccessories(){return B(this,null,function*(){try{this.cachedAccessories=yield T(this.$api.get("/server/cached-accessories"))}catch(l){console.error(l),this.$toastr.error(this.$translate.instant("reset.error_message"),this.$translate.instant("toast.title_error")),this.$activeModal.close()}})}removeAccessory(l){this.deleting=l.UUID,this.$toastr.info(this.$translate.instant("reset.removing_cached_accessory_please_wait")),this.$api.delete(`/server/cached-accessories/${l.UUID}`,{params:{cacheFile:l.$cacheFile}}).subscribe({next:()=>B(this,null,function*(){yield this.loadCachedAccessories(),this.deleting=null,this.cachedAccessories.length||this.$activeModal.close(),this.$toastr.success(this.$translate.instant("reset.cached_accessory_removed"),this.$translate.instant("toast.title_success"))}),error:o=>{this.deleting=null,console.error(o),this.$toastr.error(this.$translate.instant("reset.delete_failed"),this.$translate.instant("toast.title_error"))}})}};u(c,"\u0275fac",function(o){return new(o||c)(S(V),S(F),S(D),S(N))}),u(c,"\u0275cmp",E({type:c,selectors:[["ng-component"]],decls:19,vars:13,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click","disabled"],["aria-hidden","true"],[1,"modal-body"],["class","text-center",4,"ngIf"],[4,"ngIf"],[1,"modal-footer","justify-content-between"],[1,"text-left"],[1,"text-center"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-right"],[1,"fas","fa-fw","fa-circle-check","mb-4","primary-text",2,"font-size","75px"],[1,"mb-0"],[1,"text-center","mb-4"],[1,"fas","fa-fw","fa-network-wired","mb-4","primary-text",2,"font-size","75px"],["type","warning",3,"dismissible"],[1,"mb-0","text-left"],[1,"list-group","list-group-box","mt-2"],["class","list-group-item d-flex justify-content-between align-items-center",4,"ngFor","ngForOf"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"grey-text"],[1,"btn","btn-danger","ml-3",3,"click","disabled"],[1,"fas","fa-fw",3,"ngClass"]],template:function(o,d){o&1&&(t(0,"div",0)(1,"div",1)(2,"h5",2),a(3),r(4,"translate"),i(),t(5,"button",3),r(6,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),t(7,"span",4),a(8,"\xD7"),i()()(),t(9,"div",5),k(10,xt,5,3,"div",6)(11,kt,19,14,"div",7),i(),t(12,"div",8),g(13,"div",9),t(14,"div",10)(15,"button",11),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),a(16),r(17,"translate"),i()(),g(18,"div",12),i()()),o&2&&(e(3),_(s(4,7,"reset.clear_cache_single.title")),e(2),m("disabled",d.deleting),v("aria-label",s(6,9,"form.button_close")),e(5),m("ngIf",d.cachedAccessories.length===0),e(),m("ngIf",d.cachedAccessories.length>0),e(4),m("disabled",d.deleting),e(),f(" ",s(17,11,"form.button_close")," "))},dependencies:[O,j,A,R,$],encapsulation:2}));let n=c;return n})();function Ct(n,c){if(n&1){let p=w();t(0,"li",18)(1,"span")(2,"label",19)(3,"input",20),de("ngModelChange",function(o){let d=y(p).$implicit;return ce(d.selected,o)||(d.selected=o),C(o)}),i(),t(4,"span"),a(5),i(),g(6,"span",21),i()(),t(7,"span"),a(8),i()()}if(n&2){let p=c.$implicit;e(2),m("for","adapter"+p.iface),e(),m("id","adapter"+p.iface),pe("ngModel",p.selected),e(2),_(p.iface),e(3),f(" ",p.ip4||p.ip6," ")}}var He=(()=>{let c=class c{constructor(l){u(this,"$activeModal");u(this,"availableNetworkAdapters");u(this,"bridgeNetworkAdapters");this.$activeModal=l}submit(){this.$activeModal.close(this.availableNetworkAdapters.filter(l=>l.selected).map(l=>l.iface))}};u(c,"\u0275fac",function(o){return new(o||c)(S(V))}),u(c,"\u0275cmp",E({type:c,selectors:[["ng-component"]],inputs:{availableNetworkAdapters:"availableNetworkAdapters",bridgeNetworkAdapters:"bridgeNetworkAdapters"},decls:37,vars:25,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"text-center","mb-4"],[1,"fas","fa-fw","fa-ethernet","mb-4","primary-text",2,"font-size","75px"],[1,"alert"],[1,"list-group","list-group-box"],[1,"list-group-item","d-flex","flex-row","justify-content-between"],["class","list-group-item d-flex flex-row flex-wrap justify-content-between",4,"ngFor","ngForOf"],[1,"modal-footer","justify-content-between"],[1,"text-left"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-right"],["type","button","data-dismiss","modal",1,"btn","btn-primary",3,"click"],[1,"list-group-item","d-flex","flex-row","flex-wrap","justify-content-between"],[1,"hb-uix-switch","d-inline","pr-3",3,"for"],["type","checkbox",3,"ngModelChange","id","ngModel"],[1,"hb-uix-slider","hb-uix-round"]],template:function(o,d){o&1&&(t(0,"div",0)(1,"div",1)(2,"h5",2),a(3),r(4,"translate"),i(),t(5,"button",3),r(6,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),t(7,"span",4),a(8,"\xD7"),i()()(),t(9,"div",5)(10,"div",6),g(11,"i",7),i(),t(12,"div",8),a(13),r(14,"translate"),i(),t(15,"ul",9)(16,"li",10)(17,"span")(18,"strong"),a(19),r(20,"translate"),i()(),t(21,"span")(22,"strong"),a(23),r(24,"translate"),i()()(),k(25,Ct,9,5,"li",11),i()(),t(26,"div",12)(27,"div",13)(28,"button",14),r(29,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),a(30),r(31,"translate"),i()(),g(32,"div",15),t(33,"div",16)(34,"button",17),b("click",function(){return d.submit()}),a(35),r(36,"translate"),i()()()()),o&2&&(e(3),_(s(4,9,"settings.network.title_network_interfaces")),e(2),v("aria-label",s(6,11,"form.button_close")),e(8),_(s(14,13,"settings.network.message_network_interface")),e(6),_(s(20,15,"settings.network.label_interface_name")),e(4),_(s(24,17,"settings.network.label_ip_address")),e(2),m("ngForOf",d.availableNetworkAdapters),e(3),v("aria-label",s(29,19,"form.button_close")),e(2),f(" ",s(31,21,"form.button_close")," "),e(5),f(" ",s(36,23,"form.button_save")," "))},dependencies:[j,ee,te,ie,$],encapsulation:2}));let n=c;return n})();function It(n,c){n&1&&(t(0,"span"),a(1),r(2,"translate"),i()),n&2&&(e(),_(s(2,1,"form.button_reset")))}function Bt(n,c){n&1&&g(0,"i",20)}var Ge=(()=>{let c=class c{constructor(l,o,d,x,I){u(this,"$activeModal");u(this,"$api");u(this,"$route");u(this,"$toastr");u(this,"$translate");u(this,"clicked");this.$activeModal=l,this.$api=o,this.$route=d,this.$toastr=x,this.$translate=I}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:l=>{console.error(l),this.$toastr.error(this.$translate.instant("reset.failed_to_reset"),this.$translate.instant("toast.title_error"))}})}};u(c,"\u0275fac",function(o){return new(o||c)(S(V),S(F),S(ge),S(D),S(N))}),u(c,"\u0275cmp",E({type:c,selectors:[["ng-component"]],decls:40,vars:33,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click","disabled"],["aria-hidden","true"],[1,"modal-body"],[1,"text-center","mb-4"],[1,"fas","fa-fw","fa-bridge","primary-text",2,"font-size","75px"],["type","error",2,"margin-bottom","0",3,"dismissible"],[1,"font-weight-bold"],[1,"mb-0","text-left"],[1,"mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-left"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-center"],[1,"text-right"],["type","button","data-dismiss","modal",1,"btn","btn-danger",3,"click","disabled"],[4,"ngIf"],["class","fas fa-fw fa-spinner fa-pulse",4,"ngIf"],[1,"fas","fa-fw","fa-spinner","fa-pulse"]],template:function(o,d){o&1&&(t(0,"div",0)(1,"div",1)(2,"h5",2),a(3),r(4,"translate"),i(),t(5,"button",3),r(6,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),t(7,"span",4),a(8,"\xD7"),i()()(),t(9,"div",5)(10,"div",6),g(11,"i",7),i(),t(12,"ngb-alert",8)(13,"p",9),a(14),r(15,"translate"),i(),t(16,"ul",10)(17,"li"),a(18),r(19,"translate"),i(),t(20,"li"),a(21),r(22,"translate"),i(),t(23,"li"),a(24),r(25,"translate"),i(),t(26,"li",11),a(27),r(28,"translate"),i()()()(),t(29,"div",12)(30,"div",13)(31,"button",14),r(32,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),a(33),r(34,"translate"),i()(),g(35,"div",15),t(36,"div",16)(37,"button",17),b("click",function(){return d.onResetHomebridgeAccessoryClick()}),k(38,It,3,3,"span",18)(39,Bt,1,0,"i",19),i()()()()),o&2&&(e(3),_(s(4,15,"reset.bridges_all.title")),e(2),m("disabled",d.clicked),v("aria-label",s(6,17,"form.button_close")),e(7),m("dismissible",!1),e(2),_(s(15,19,"reset.action_is_irreversible")),e(4),_(s(19,21,"reset.bridges_all.list_1")),e(3),_(s(22,23,"reset.bridges_all.list_2")),e(3),_(s(25,25,"reset.bridges_all.list_3")),e(3),_(s(28,27,"reset.bridges_all.list_4")),e(4),m("disabled",d.clicked),v("aria-label",s(32,29,"form.button_close")),e(2),f(" ",s(34,31,"form.button_close")," "),e(4),m("disabled",d.clicked),e(),m("ngIf",!d.clicked),e(),m("ngIf",d.clicked))},dependencies:[A,R,$],encapsulation:2}));let n=c;return n})();var Et=(n,c)=>({"green-text":n,"red-text":c}),$t=(n,c)=>({"fa-link-slash":n,"fa-cog fa-spin":c});function Tt(n,c){n&1&&(t(0,"div",10),g(1,"i",13),t(2,"p",14),a(3),r(4,"translate"),i()()),n&2&&(e(3),_(s(4,1,"reset.bridges.empty")))}function Mt(n,c){if(n&1){let p=w();t(0,"li",21)(1,"span"),a(2),r(3,"titlecase"),g(4,"br"),t(5,"small",22),g(6,"i",23),a(7),r(8,"translate"),i()(),t(9,"button",24),r(10,"translate"),b("click",function(){let o=y(p).$implicit,d=h(2);return C(d.removeAccessory(o._id))}),g(11,"i",25),i()()}if(n&2){let p=c.$implicit,l=h(2);e(2),P(" ",p.displayName," (",p._main?"Homebridge":s(3,8,p._category),") "),e(4),m("ngClass",M(14,Et,p._isPaired,!p._isPaired)),e(),P(" ",s(8,10,p._isPaired?"status.widget.qr_paired":"status.widget.qr_unpaired")," \xB7 ",p._username," "),e(2),m("disabled",l.deleting),v("aria-label",s(10,12,"form.button_unpair")),e(2),m("ngClass",M(17,$t,p._id!==l.deleting,p._id===l.deleting))}}function At(n,c){if(n&1&&(t(0,"div")(1,"div",15),g(2,"i",16),i(),t(3,"ngb-alert",17)(4,"ul",18)(5,"li"),a(6),r(7,"translate"),i(),t(8,"li"),a(9),r(10,"translate"),i(),t(11,"li",14),a(12),r(13,"translate"),i()()(),t(14,"ul",19),k(15,Mt,12,20,"li",20),i()()),n&2){let p=h();e(3),m("dismissible",!1),e(3),_(s(7,5,"reset.bridges_single.list_1")),e(3),_(s(10,7,"reset.bridges_single.list_2")),e(3),_(s(13,9,"reset.bridges_single.list_3")),e(3),m("ngForOf",p.pairings)}}var Le=(()=>{let c=class c{constructor(l,o,d,x,I){u(this,"$activeModal");u(this,"$api");u(this,"$modal");u(this,"$toastr");u(this,"$translate");u(this,"pairings",[]);u(this,"deleting",null);u(this,"unpaired",!1);this.$activeModal=l,this.$api=o,this.$modal=d,this.$toastr=x,this.$translate=I}ngOnInit(){this.loadPairings()}loadPairings(){return B(this,null,function*(){try{this.pairings=(yield T(this.$api.get("/server/pairings"))).sort((l,o)=>o._main?1:-1)}catch(l){console.error(l),this.$toastr.error(this.$translate.instant("settings.unpair_bridge.load_error"),this.$translate.instant("toast.title_error")),this.$activeModal.close()}})}removeAccessory(l){this.deleting=l,this.$api.delete(`/server/pairings/${l}`).subscribe({next:()=>B(this,null,function*(){yield this.loadPairings(),this.pairings.length||this.$activeModal.close(),this.deleting=null,this.unpaired=!0,this.$toastr.success(this.$translate.instant("plugins.settings.restart_required"),this.$translate.instant("toast.title_success"))}),error:o=>{this.deleting=null,console.error(o),this.$toastr.error(this.$translate.instant("settings.unpair_bridge.unpair_error"),this.$translate.instant("toast.title_error"))}})}ngOnDestroy(){this.unpaired&&this.$modal.open(Ve,{size:"lg",backdrop:"static"})}};u(c,"\u0275fac",function(o){return new(o||c)(S(V),S(F),S(G),S(D),S(N))}),u(c,"\u0275cmp",E({type:c,selectors:[["ng-component"]],decls:19,vars:13,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click","disabled"],["aria-hidden","true"],[1,"modal-body"],["class","text-center",4,"ngIf"],[4,"ngIf"],[1,"modal-footer","justify-content-between"],[1,"text-left"],[1,"text-center"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-right"],[1,"fas","fa-fw","fa-circle-check","mb-4","primary-text",2,"font-size","75px"],[1,"mb-0"],[1,"text-center","mb-4"],[1,"fas","fa-fw","fa-bridge","primary-text",2,"font-size","75px"],["type","warning",3,"dismissible"],[1,"mb-0","text-left"],[1,"list-group","list-group-box","mt-2"],["class","list-group-item d-flex justify-content-between align-items-center",4,"ngFor","ngForOf"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"grey-text"],[1,"fas","fa-fw","fa-link",3,"ngClass"],[1,"btn","btn-danger",3,"click","disabled"],[1,"fas","fa-fw",3,"ngClass"]],template:function(o,d){o&1&&(t(0,"div",0)(1,"div",1)(2,"h5",2),a(3),r(4,"translate"),i(),t(5,"button",3),r(6,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),t(7,"span",4),a(8,"\xD7"),i()()(),t(9,"div",5),k(10,Tt,5,3,"div",6)(11,At,16,11,"div",7),i(),t(12,"div",8),g(13,"div",9),t(14,"div",10)(15,"button",11),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),a(16),r(17,"translate"),i()(),g(18,"div",12),i()()),o&2&&(e(3),_(s(4,7,"reset.bridges_single.title")),e(2),m("disabled",d.deleting),v("aria-label",s(6,9,"form.button_close")),e(5),m("ngIf",d.pairings.length===0),e(),m("ngIf",d.pairings.length>0),e(4),m("disabled",d.deleting),e(),f(" ",s(17,11,"form.button_close")," "))},dependencies:[O,j,A,R,J,$],encapsulation:2}));let n=c;return n})();var Nt=n=>({"fa-pulse":n}),We=n=>({"is-invalid":n}),Ft=(n,c)=>({"badge-danger":n,"badge-info":c});function Dt(n,c){if(n&1){let p=w();t(0,"ul",14)(1,"li",15)(2,"span",16),a(3),r(4,"translate"),i(),t(5,"button",17),r(6,"translate"),b("click",function(){y(p);let o=h();return C(o.openBackupModal())}),g(7,"i",18),i()(),t(8,"li",15)(9,"span",16),a(10),r(11,"translate"),i(),t(12,"button",17),r(13,"translate"),b("click",function(){y(p);let o=h();return C(o.openRestoreModal())}),g(14,"i",18),i()(),t(15,"li",15)(16,"span",16),a(17),r(18,"translate"),i(),t(19,"a",19),r(20,"translate"),g(21,"i",18),i()(),t(22,"li",15)(23,"span",16),a(24),r(25,"translate"),i(),t(26,"button",17),r(27,"translate"),b("click",function(){y(p);let o=h();return C(o.openUiSettings())}),g(28,"i",20),i()()()}n&2&&(e(3),f(" ",s(4,8,"backup.title_backup")," "),e(2),v("aria-label",s(6,10,"backup.title_backup")),e(5),f(" ",s(11,12,"form.button_restore")," "),e(2),v("aria-label",s(13,14,"form.button_restore")),e(5),f(" ",s(18,16,"menu.tooltip_user_accounts")," "),e(2),v("aria-label",s(20,18,"menu.tooltip_user_accounts")),e(5),f(" ",s(25,20,"menu.label_settings_advanced")," "),e(2),v("aria-label",s(27,22,"menu.label_settings_advanced")))}function Vt(n,c){n&1&&(t(0,"li",74)(1,"small",75),a(2),r(3,"translate"),i(),t(4,"button",76),r(5,"translate"),a(6),r(7,"translate"),i()()),n&2&&(e(2),_(s(3,3,"settings.changes.saved")),e(2),v("aria-label",s(5,5,"menu.tooltip_restart")),e(2),f(" ",s(7,7,"menu.tooltip_restart")," "))}function jt(n,c){if(n&1){let p=w();t(0,"ul",21)(1,"li",22)(2,"span"),a(3),r(4,"translate"),i(),t(5,"div",23)(6,"select",24),b("ngModelChange",function(o){y(p);let d=h();return C(d.saveUiSettingChange("lang",o))}),t(7,"option",25),a(8),r(9,"translate"),i(),t(10,"option",26),a(11,"Bulgarian (bg)"),i(),t(12,"option",27),a(13,"Catalan (ca)"),i(),t(14,"option",28),a(15,"Chinese - Simplified (zh-CN)"),i(),t(16,"option",29),a(17,"Chinese - Traditional (zh-TW)"),i(),t(18,"option",30),a(19,"Czech (cs)"),i(),t(20,"option",31),a(21,"Dutch (nl)"),i(),t(22,"option",32),a(23,"English (en)"),i(),t(24,"option",33),a(25,"Finnish (fi)"),i(),t(26,"option",34),a(27,"French (fr)"),i(),t(28,"option",35),a(29,"German (de)"),i(),t(30,"option",36),a(31,"Hebrew (he)"),i(),t(32,"option",37),a(33,"Hungarian (hu)"),i(),t(34,"option",38),a(35,"Indonesian (id)"),i(),t(36,"option",39),a(37,"Italian (it)"),i(),t(38,"option",40),a(39,"Japanese (ja)"),i(),t(40,"option",41),a(41,"Korean (ko)"),i(),t(42,"option",42),a(43,"Macedonian (mk)"),i(),t(44,"option",43),a(45,"Norwegian (no)"),i(),t(46,"option",44),a(47,"Polish (pl)"),i(),t(48,"option",45),a(49,"Portuguese (Brazil)"),i(),t(50,"option",46),a(51,"Portuguese (Portugal)"),i(),t(52,"option",47),a(53,"Russian (ru)"),i(),t(54,"option",48),a(55,"Slovenian (sl)"),i(),t(56,"option",49),a(57,"Spanish (es)"),i(),t(58,"option",50),a(59,"Swedish (sv)"),i(),t(60,"option",51),a(61,"Thai (th)"),i(),t(62,"option",52),a(63,"Turkish (tr)"),i(),t(64,"option",53),a(65,"Ukrainian (uk)"),i()()()(),t(66,"li",22)(67,"span"),a(68),r(69,"translate"),i(),t(70,"div",23)(71,"select",24),b("ngModelChange",function(o){y(p);let d=h();return C(d.saveUiSettingChange("theme",o))}),t(72,"option",54),a(73),r(74,"translate"),i(),t(75,"option",55),a(76),r(77,"translate"),i(),t(78,"option",56),a(79),r(80,"translate"),i(),t(81,"option",57),a(82),r(83,"translate"),i(),t(84,"option",58),a(85),r(86,"translate"),i(),t(87,"option",59),a(88),r(89,"translate"),i(),t(90,"option",60),a(91),r(92,"translate"),i(),t(93,"option",61),a(94),r(95,"translate"),i(),t(96,"option",62),a(97),r(98,"translate"),i(),t(99,"option",63),a(100),r(101,"translate"),i(),t(102,"option",64),a(103),r(104,"translate"),i(),t(105,"option",65),a(106),r(107,"translate"),i(),t(108,"option",66),a(109),r(110,"translate"),i()()()(),t(111,"li",22)(112,"span"),a(113),r(114,"translate"),i(),t(115,"div",23)(116,"select",24),b("ngModelChange",function(o){y(p);let d=h();return C(d.saveUiSettingChange("lightingMode",o))}),t(117,"option",25),a(118),r(119,"translate"),i(),t(120,"option",67),a(121),r(122,"translate"),i(),t(123,"option",68),a(124),r(125,"translate"),i()()()(),t(126,"li",22)(127,"span"),a(128),r(129,"translate"),g(130,"br")(131,"small",69),r(132,"translate"),i(),t(133,"div",23)(134,"input",70),b("ngModelChange",function(o){y(p);let d=h();return C(d.saveUiSettingChange("loginWallpaper",o))}),i()()(),t(135,"li",22)(136,"span"),a(137),r(138,"translate"),i(),t(139,"div",23)(140,"select",24),b("ngModelChange",function(o){y(p);let d=h();return C(d.saveUiSettingChange("tempUnits",o))}),t(141,"option",71),a(142),r(143,"translate"),i(),t(144,"option",72),a(145),r(146,"translate"),i()()()(),k(147,Vt,8,9,"li",73),i()}if(n&2){let p=h();e(3),_(s(4,31,"settings.display.lang")),e(3),m("ngModel",p.$settings.env.lang),e(2),_(s(9,33,"form.select.auto")),e(60),_(s(69,35,"settings.display.theme")),e(3),m("ngModel",p.$settings.theme),e(2),_(s(74,37,"settings.display.orange")),e(3),_(s(77,39,"settings.display.red")),e(3),_(s(80,41,"settings.display.pink")),e(3),_(s(83,43,"settings.display.purple")),e(3),_(s(86,45,"settings.display.deep_purple")),e(3),_(s(89,47,"settings.display.indigo")),e(3),_(s(92,49,"settings.display.blue")),e(3),_(s(95,51,"settings.display.bluegrey")),e(3),_(s(98,53,"settings.display.cyan")),e(3),_(s(101,55,"settings.display.green")),e(3),_(s(104,57,"settings.display.teal")),e(3),_(s(107,59,"settings.display.grey")),e(3),_(s(110,61,"settings.display.brown")),e(4),_(s(114,63,"settings.display.lighting_mode")),e(3),m("ngModel",p.$settings.lightingMode),e(2),_(s(119,65,"form.select.auto")),e(3),_(s(122,67,"settings.display.light")),e(3),_(s(125,69,"settings.display.dark")),e(4),f(" ",s(129,71,"settings.display.login_wallpaper"),""),e(3),m("innerHTML",s(132,73,"settings.display.login_wallpaper_desc"),oe),e(3),m("ngModel",p.$settings.loginWallpaper),e(3),_(s(138,75,"settings.display.temp_units")),e(3),m("ngModel",p.$settings.env.temperatureUnits),e(2),_(s(143,77,"settings.display.temp_units.c")),e(3),_(s(146,79,"settings.display.temp_units.f")),e(2),m("ngIf",p.hasChangedLoginWallpaper)}}function Pt(n,c){if(n&1&&(t(0,"li",15)(1,"span"),a(2),r(3,"translate"),t(4,"code"),a(5,"-D"),i(),g(6,"br"),t(7,"small",81),a(8),r(9,"translate"),i()(),g(10,"input",82),r(11,"translate"),g(12,"label",83),i()),n&2){let p=h(3);e(2),f(" ",s(3,3,"settings.startup.debug")," "),e(6),f(" ",s(9,5,p.isHbV2?"settings.startup.debug_desc_v2":"settings.startup.debug_desc_v1")," "),e(2),v("aria-label",s(11,7,"settings.startup.debug"))}}function Ot(n,c){n&1&&(t(0,"li",15)(1,"span"),a(2),r(3,"translate"),t(4,"code"),a(5,"-I"),i(),g(6,"br"),t(7,"small",81),a(8),r(9,"translate"),i()(),g(10,"input",84),r(11,"translate"),g(12,"label",85),i()),n&2&&(e(2),f(" ",s(3,3,"settings.startup.insecure")," "),e(6),_(s(9,5,"settings.startup.insecure_desc")),e(2),v("aria-label",s(11,7,"settings.startup.insecure")))}function Rt(n,c){n&1&&(t(0,"li",15)(1,"span"),a(2),r(3,"translate"),t(4,"code"),a(5,"-K"),i(),g(6,"br"),t(7,"small",81),a(8),r(9,"translate"),i()(),g(10,"input",86),r(11,"translate"),g(12,"label",87),i()),n&2&&(e(2),f(" ",s(3,3,"settings.startup.keep_accessories")," "),e(6),_(s(9,5,"settings.startup.keep_accessories_desc")),e(2),v("aria-label",s(11,7,"settings.startup.keep_accessories")))}function Ut(n,c){n&1&&(t(0,"li",22)(1,"span")(2,"span",88),a(3,"DEBUG"),i(),g(4,"br"),t(5,"small",81),a(6),r(7,"translate"),t(8,"a",89),a(9),r(10,"translate"),g(11,"i",90),i()()(),t(12,"div",23),g(13,"input",91),i()()),n&2&&(e(6),f(" ",s(7,2,"settings.service.debug_tooltip")," "),e(3),f(" ",s(10,4,"form.button_more_info")," "))}function zt(n,c){n&1&&(t(0,"li",22)(1,"span")(2,"span",88),a(3,"NODE_OPTIONS"),i(),g(4,"br"),t(5,"small",81),a(6),r(7,"translate"),i()(),t(8,"div",23),g(9,"input",92),i()()),n&2&&(e(6),_(s(7,1,"settings.service.node_tooltip")))}function Ht(n,c){n&1&&(t(0,"li",15)(1,"span"),a(2),r(3,"translate"),g(4,"br"),t(5,"small",81),a(6),r(7,"translate"),i()(),t(8,"a",93),r(9,"translate"),g(10,"i",18),i()()),n&2&&(e(2),f(" ",s(3,3,"menu.docker.startup_script"),""),e(4),_(s(7,5,"platform.docker.script_help")),e(2),v("aria-label",s(9,7,"menu.docker.startup_script")))}function Gt(n,c){n&1&&(t(0,"li",74)(1,"small",75),a(2),r(3,"translate"),i(),t(4,"button",76),r(5,"translate"),a(6),r(7,"translate"),i()()),n&2&&(e(2),_(s(3,3,"settings.changes.saved")),e(2),v("aria-label",s(5,5,"menu.tooltip_restart")),e(2),f(" ",s(7,7,"menu.tooltip_restart")," "))}function Lt(n,c){if(n&1&&(t(0,"ul",78),k(1,Pt,13,9,"li",79)(2,Ot,13,9,"li",79)(3,Rt,13,9,"li",79)(4,Ut,14,6,"li",80)(5,zt,10,3,"li",80)(6,Ht,11,9,"li",79)(7,Gt,8,9,"li",73),i()),n&2){let p=h(2);e(),m("ngIf",p.$settings.env.serviceMode),e(),m("ngIf",p.$settings.env.serviceMode),e(),m("ngIf",p.$settings.env.serviceMode),e(),m("ngIf",p.$settings.env.serviceMode),e(),m("ngIf",p.$settings.env.serviceMode),e(),m("ngIf",p.$settings.env.runningInDocker),e(),m("ngIf",p.hasChangedService)}}function Wt(n,c){if(n&1){let p=w();t(0,"form",8)(1,"div",2),b("click",function(){y(p);let o=h();return C(o.toggleSection("startup"))}),t(2,"h5",3),g(3,"i",4),a(4),r(5,"translate"),i()(),k(6,Lt,8,7,"ul",77),i()}if(n&2){let p=h();m("formGroup",p.serviceForm),e(),v("aria-expanded",p.showFields.startup?"true":"false")("aria-controls","fieldsStartup"),e(2),m("ngClass",p.showFields.startup?"fa-chevron-down":"fa-chevron-right"),e(),f(" ",s(5,6,"settings.title_startup_options")," "),e(2),m("ngIf",p.showFields.startup)}}function Kt(n,c){n&1&&g(0,"i",108)}function qt(n,c){if(n&1&&(t(0,"span")(1,"span",105),k(2,Kt,1,0,"i",106),a(3),t(4,"span",107),a(5),r(6,"translate"),i()()()),n&2){let p=c.$implicit;e(),m("ngClass",M(6,Ft,p.missing,!p.missing)),e(),m("ngIf",p.missing),e(),f(" ",p.iface,": "),e(2),_(p.missing?s(6,4,"settings.mdns_advertiser_not_connected"):p.ip4||p.ip6)}}function Jt(n,c){n&1&&(t(0,"option",109),a(1),r(2,"translate"),i()),n&2&&(e(),f(" Avahi (",s(2,1,"settings.mdns_advertiser_rec"),") "))}function Qt(n,c){n&1&&(t(0,"option",110),a(1),r(2,"translate"),i()),n&2&&(e(),f(" systemd-resolved (",s(2,1,"settings.mdns_advertiser_exp"),") "))}function Xt(n,c){n&1&&(t(0,"li",74)(1,"small",75),a(2),r(3,"translate"),i(),t(4,"button",76),r(5,"translate"),a(6),r(7,"translate"),i()()),n&2&&(e(2),_(s(3,3,"settings.changes.saved")),e(2),v("aria-label",s(5,5,"menu.tooltip_restart")),e(2),f(" ",s(7,7,"menu.tooltip_restart")," "))}function Yt(n,c){if(n&1){let p=w();t(0,"ul",94)(1,"li",15)(2,"span",16)(3,"div"),a(4),r(5,"translate"),g(6,"br"),t(7,"small",81),a(8),r(9,"translate"),i()(),k(10,qt,7,9,"span",95),i(),t(11,"button",96),r(12,"translate"),b("click",function(){y(p);let o=h();return C(o.selectNetworkInterfaces())}),g(13,"i",97),i()(),t(14,"li",22)(15,"span"),a(16),r(17,"translate"),g(18,"br"),t(19,"small",81),a(20),r(21,"translate"),i()(),t(22,"div",23)(23,"select",98),r(24,"translate"),k(25,Jt,3,3,"option",99),t(26,"option",100),a(27),r(28,"translate"),i(),t(29,"option",101),a(30,"Bonjour HAP"),i(),k(31,Qt,3,3,"option",102),i()()(),t(32,"li",22)(33,"span"),a(34),r(35,"translate"),g(36,"br"),t(37,"small",81),a(38),r(39,"translate"),i()(),t(40,"div",23),g(41,"input",103),r(42,"translate"),i()(),t(43,"li",22)(44,"span"),a(45),r(46,"translate"),g(47,"br"),t(48,"small",81),a(49),r(50,"translate"),i()(),t(51,"div",23),g(52,"input",104),r(53,"translate"),i()(),k(54,Xt,8,9,"li",73),i()}if(n&2){let p=h();e(4),f(" ",s(5,23,"settings.network.title_network_interfaces"),""),e(4),_(s(9,25,"settings.network.message_network_interface")),e(2),m("ngForOf",p.bridgeNetworkAdapters),e(),m("disabled",!p.availableNetworkAdapters.length),v("aria-label",s(12,27,"settings.network.title_network_interfaces")),e(2),m("ngClass",q(49,Nt,!p.availableNetworkAdapters.length)),e(3),f(" ",s(17,29,"settings.mdns_advertiser"),""),e(4),_(s(21,31,"settings.mdns_advertiser_help")),e(3),m("formControl",p.legacyMdnsFormControl),v("aria-label",s(24,33,"settings.mdns_advertiser")),e(2),m("ngIf",p.showAvahiMdnsOption),e(2),f(" Ciao ",p.showAvahiMdnsOption?"":"("+s(28,35,"settings.mdns_advertiser_rec")+")"," "),e(4),m("ngIf",p.showResolvedMdnsOption),e(3),f(" ",s(35,37,"settings.network.port_hb"),""),e(4),_(s(39,39,"settings.network.port_hb_desc")),e(3),m("formControl",p.hbPortFormControl)("ngClass",q(51,We,p.isInvalidHbPort)),v("aria-label",s(42,41,"settings.network.port_ui")),e(4),f(" ",s(46,43,"settings.network.port_ui"),""),e(4),_(s(50,45,"settings.network.port_ui_desc")),e(3),m("ngClass",q(53,We,p.isInvalidHbUiPort)),v("aria-label",s(53,47,"settings.network.port_ui")),e(2),m("ngIf",p.hasChangedHbPort||p.hasChangedUiSettings||p.hasChangedMdns||p.hasChangedBridgeNetworkAdapters)}}function Zt(n,c){n&1&&(t(0,"p",112),a(1),r(2,"translate"),i()),n&2&&(e(),_(s(2,1,"settings.cache.desc")))}function ei(n,c){if(n&1){let p=w();t(0,"ul",113)(1,"li",15)(2,"span",16),a(3),r(4,"translate"),g(5,"br"),t(6,"small",81),a(7),r(8,"translate"),i()(),t(9,"button",17),r(10,"translate"),b("click",function(){y(p);let o=h(2);return C(o.removeSingleCachedAccessories())}),g(11,"i",18),i()(),t(12,"li",15)(13,"span",16),a(14),r(15,"translate"),g(16,"br"),t(17,"small",81),a(18),r(19,"translate"),i()(),t(20,"button",17),r(21,"translate"),b("click",function(){y(p);let o=h(2);return C(o.removeBridgeAccessories())}),g(22,"i",18),i()(),t(23,"li",15)(24,"span",16),a(25),r(26,"translate"),g(27,"br"),t(28,"small",81),a(29),r(30,"translate"),i()(),t(31,"button",17),r(32,"translate"),b("click",function(){y(p);let o=h(2);return C(o.removeAllCachedAccessories())}),g(33,"i",18),i()()()}n&2&&(e(3),f(" ",s(4,9,"reset.clear_cache_single.title"),""),e(4),_(s(8,11,"reset.clear_cache_single.desc")),e(2),v("aria-label",s(10,13,"reset.clear_cache_single.title")),e(5),f(" ",s(15,15,"reset.clear_cache_bridge.title"),""),e(4),_(s(19,17,"reset.clear_cache_bridge.desc")),e(2),v("aria-label",s(21,19,"reset.clear_cache_all.title")),e(5),f(" ",s(26,21,"reset.clear_cache_all.title"),""),e(4),_(s(30,23,"reset.clear_cache_all.desc")),e(2),v("aria-label",s(32,25,"reset.clear_cache_all.title")))}function ti(n,c){if(n&1){let p=w();t(0,"div",1)(1,"div",2),b("click",function(){y(p);let o=h();return C(o.toggleSection("cache"))}),t(2,"h5",3),g(3,"i",4),a(4),r(5,"translate"),i()(),k(6,Zt,3,3,"p",11)(7,ei,34,27,"ul",111),i()}if(n&2){let p=h();e(),v("aria-expanded",p.showFields.cache?"true":"false")("aria-controls","fieldsCache"),e(2),m("ngClass",p.showFields.cache?"fa-chevron-down":"fa-chevron-right"),e(),f(" ",s(5,6,"settings.cache.title")," "),e(2),m("ngIf",p.showFields.cache),e(),m("ngIf",p.showFields.cache)}}function ii(n,c){n&1&&(t(0,"p",112),a(1),r(2,"translate"),i()),n&2&&(e(),_(s(2,1,"reset.bridges.desc")))}function ni(n,c){if(n&1){let p=w();t(0,"ul",114)(1,"li",15)(2,"span",16),a(3),r(4,"translate"),g(5,"br"),t(6,"small",81),a(7),r(8,"translate"),i()(),t(9,"button",17),r(10,"translate"),b("click",function(){y(p);let o=h();return C(o.unpairAccessory())}),g(11,"i",18),i()(),t(12,"li",15)(13,"span",16),a(14),r(15,"translate"),r(16,"titlecase"),g(17,"br"),t(18,"small",81),a(19),r(20,"translate"),i()(),t(21,"button",17),r(22,"translate"),b("click",function(){y(p);let o=h();return C(o.resetHomebridgeState())}),g(23,"i",18),i()()()}n&2&&(e(3),f(" ",s(4,6,"reset.bridges_single.title"),""),e(4),_(s(8,8,"reset.bridges_single.desc")),e(2),v("aria-label",s(10,10,"reset.bridges_single.title")),e(5),f(" ",s(16,14,s(15,12,"reset.bridges_all.title")),""),e(5),_(s(20,16,"reset.bridges_all.desc")),e(2),v("aria-label",s(22,18,"reset.bridges_all.title")))}var Ke=(()=>{let c=class c{constructor(l,o,d,x,I,Je){u(this,"$api");u(this,"$modal");u(this,"$plugin");u(this,"$settings");u(this,"$toastr");u(this,"$translate");u(this,"originalServiceForm",{HOMEBRIDGE_DEBUG:!1,HOMEBRIDGE_KEEP_ORPHANS:!1,HOMEBRIDGE_INSECURE:!0,ENV_DEBUG:"",ENV_NODE_OPTIONS:""});u(this,"originalUiSettingsForm",{port:0});u(this,"originalLoginWallpaper","");u(this,"originalMdnsSetting","");u(this,"originalBridgeNetworkAdapters",[]);u(this,"originalHbPort",0);u(this,"hasChangedService",!1);u(this,"hasChangedUiSettings",!1);u(this,"hasChangedMdns",!1);u(this,"hasChangedBridgeNetworkAdapters",!1);u(this,"hasChangedHbPort",!1);u(this,"hasChangedLoginWallpaper",!1);u(this,"isInvalidHbPort",!1);u(this,"isInvalidHbUiPort",!1);u(this,"serviceForm",new se({HOMEBRIDGE_DEBUG:new H(!1),HOMEBRIDGE_KEEP_ORPHANS:new H(!1),HOMEBRIDGE_INSECURE:new H(!0),ENV_DEBUG:new H(""),ENV_NODE_OPTIONS:new H("")}));u(this,"uiSettingsForm",new se({port:new H(0)}));u(this,"loginWallpaper","");u(this,"legacyMdnsFormControl",new Se(!1));u(this,"showAvahiMdnsOption",!1);u(this,"showResolvedMdnsOption",!1);u(this,"availableNetworkAdapters",[]);u(this,"bridgeNetworkAdapters",[]);u(this,"hbPortFormControl",new H(0));u(this,"isHbV2",!1);u(this,"showFields",{general:!0,display:!0,startup:!0,network:!0,reset:!0,cache:!0});this.$api=l,this.$modal=o,this.$plugin=d,this.$settings=x,this.$toastr=I,this.$translate=Je}ngOnInit(){this.isHbV2=this.$settings.env.homebridgeVersion.startsWith("2"),this.initUiSettingsForm(),this.initDisplaySettingsForm(),this.initNetworkingOptions(),this.$settings.env.serviceMode&&this.initServiceModeForm()}initUiSettingsForm(){this.originalUiSettingsForm={port:this.$settings.env.port},this.uiSettingsForm.patchValue({port:this.$settings.env.port}),this.uiSettingsForm.valueChanges.pipe(ae(500)).subscribe(l=>{let o=!1;Object.keys(l).forEach(d=>{this.originalUiSettingsForm[d]!==l[d]&&(this.saveUiSettingChange(d,l[d]),o=!0)}),this.hasChangedUiSettings=o})}initServiceModeForm(){this.$api.get("/platform-tools/hb-service/homebridge-startup-settings").subscribe({next:l=>{Object.keys(l).forEach(o=>{this.originalServiceForm[o]=l[o]}),this.serviceForm.patchValue(l),this.serviceForm.valueChanges.pipe(ae(500)).subscribe(this.saveServiceModeSettings.bind(this))},error:l=>{console.error(l),this.$toastr.error(l.message,this.$translate.instant("toast.title_error"))}})}initDisplaySettingsForm(){this.originalLoginWallpaper=this.$settings.loginWallpaper,this.loginWallpaper=this.$settings.loginWallpaper}saveUiSettingChange(l,o){switch(l){case"lang":this.$settings.setLang(o);break;case"lightingMode":this.$settings.setLightingMode(o,"user");break;case"theme":this.$settings.setTheme(o);break;case"tempUnits":this.$settings.setEnvItem("temperatureUnits",o);break;case"loginWallpaper":this.$settings.setEnvItem("loginWallpaper",o),this.hasChangedLoginWallpaper=o!==this.originalLoginWallpaper;break;case"port":if(!o||typeof o!="number"||o<1025||o>65533||Number.isInteger(o)===!1||o===this.hbPortFormControl.value){this.isInvalidHbUiPort=!0;return}this.$settings.setEnvItem("port",o),this.isInvalidHbUiPort=!1;break}T(this.$api.put("/config-editor/ui",{key:l,value:o})).catch(d=>{console.error(d),this.$toastr.error(d.message,this.$translate.instant("toast.title_error"))})}openUiSettings(){this.$plugin.settings({name:"homebridge-config-ui-x",displayName:"Homebridge UI",settingsSchema:!0,links:{}})}openRestoreModal(){this.$modal.open(ne,{size:"lg",backdrop:"static"})}openBackupModal(){this.$modal.open(Oe,{size:"lg",backdrop:"static"})}saveServiceModeSettings(l=this.serviceForm.value){this.$api.put("/platform-tools/hb-service/homebridge-startup-settings",l).subscribe({next:()=>{this.hasChangedService=JSON.stringify(l)!==JSON.stringify(this.originalServiceForm)},error:o=>{console.error(o),this.$toastr.error(o.message,this.$translate.instant("toast.title_error"))}})}resetHomebridgeState(){this.$modal.open(Ge,{size:"lg",backdrop:"static"})}unpairAccessory(){this.$modal.open(Le,{size:"lg",backdrop:"static"})}removeAllCachedAccessories(){this.$modal.open(Re,{size:"lg",backdrop:"static"})}removeSingleCachedAccessories(){this.$modal.open(ze,{size:"lg",backdrop:"static"})}removeBridgeAccessories(){this.$modal.open(Ue,{size:"lg",backdrop:"static"})}initNetworkingOptions(){return B(this,null,function*(){try{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{}})}getNetworkSettings(){return B(this,null,function*(){return Promise.all([T(this.$api.get("/server/network-interfaces/system")),T(this.$api.get("/server/network-interfaces/bridge")),T(this.$api.get("/server/mdns-advertiser")),T(this.$api.get("/server/port"))]).then(([l,o,d,x])=>{this.availableNetworkAdapters=l,this.buildBridgeNetworkAdapterList(o),this.legacyMdnsFormControl.patchValue(d.advertiser),this.originalMdnsSetting=d.advertiser,this.originalBridgeNetworkAdapters=this.bridgeNetworkAdapters.map(I=>I.iface),this.legacyMdnsFormControl.valueChanges.subscribe(I=>{this.setHomebridgeMdnsSetting(I)}),this.hbPortFormControl.patchValue(x.port),this.hbPortFormControl.valueChanges.subscribe(I=>this.setHomebridgePort(I)),this.originalHbPort=x.port})})}setHomebridgeMdnsSetting(l){return B(this,null,function*(){this.$api.put("/server/mdns-advertiser",{advertiser:l}).subscribe({next:()=>{this.hasChangedMdns=l!==this.originalMdnsSetting},error:o=>{console.error(o),this.$toastr.error(o.message,this.$translate.instant("toast.title_error"))}})})}setNetworkInterfaces(l){return B(this,null,function*(){this.$api.put("/server/network-interfaces/bridge",{adapters:l}).subscribe({next:()=>{this.hasChangedBridgeNetworkAdapters=this.originalBridgeNetworkAdapters.join(",")!==l.join(",")},error:o=>{console.error(o),this.$toastr.error(o.message,this.$translate.instant("toast.title_error"))}})})}setHomebridgePort(l){return B(this,null,function*(){if(l===this.uiSettingsForm.get("port").value){this.isInvalidHbPort=!0;return}this.$api.put("/server/port",{port:l}).subscribe({next:()=>{this.hasChangedHbPort=this.originalHbPort!==l,this.isInvalidHbPort=!1},error:()=>{this.isInvalidHbPort=!0}})})}buildBridgeNetworkAdapterList(l){if(!l.length){this.bridgeNetworkAdapters=[];return}this.bridgeNetworkAdapters=l.map(o=>{let d=this.availableNetworkAdapters.find(x=>x.iface===o);return d?(d.selected=!0,d.missing=!1,d):{iface:o,missing:!0}})}selectNetworkInterfaces(){let l=this.$modal.open(He,{size:"lg",backdrop:"static"});l.componentInstance.availableNetworkAdapters=this.availableNetworkAdapters,l.componentInstance.bridgeNetworkAdapters=this.bridgeNetworkAdapters,l.result.then(o=>{this.buildBridgeNetworkAdapterList(o),this.setNetworkInterfaces(o)}).catch(()=>{})}toggleSection(l){this.showFields[l]=!this.showFields[l]}};u(c,"\u0275fac",function(o){return new(o||c)(S(F),S(G),S(Pe),S(ve),S(D),S(N))}),u(c,"\u0275cmp",E({type:c,selectors:[["ng-component"]],decls:35,vars:35,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"],["class","list-group list-group-box mt-2 mx-0","id","fieldsGeneral",4,"ngIf"],["class","list-group list-group-box mt-2 mx-0","id","fieldsDisplay",4,"ngIf"],["class","my-4","novalidate","",3,"formGroup",4,"ngIf"],["novalidate","",1,"my-4",3,"formGroup"],["class","list-group list-group-box mt-2 mx-0","id","fieldsNetwork",4,"ngIf"],["class","my-4",4,"ngIf"],["class","small grey-text mb-2 mx-0",4,"ngIf"],["class","list-group list-group-box mt-2 mx-0","id","fieldsReset",4,"ngIf"],[1,"pb-3"],["id","fieldsGeneral",1,"list-group","list-group-box","mt-2","mx-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"pr-2"],[1,"btn","btn-primary","waves-effect","m-0","ml-3",2,"min-width","50px",3,"click"],[1,"fas","fa-fw","fa-chevron-right"],["routerLink","/users",1,"btn","btn-primary","waves-effect","m-0","ml-3",2,"min-width","50px"],[1,"fas","fa-fw","fa-sliders"],["id","fieldsDisplay",1,"list-group","list-group-box","mt-2","mx-0"],[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"],[1,"custom-select","resp-select",3,"ngModelChange","ngModel"],["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"],[1,"grey-text","pr-2",3,"innerHTML"],["name","search_wallpaper","autocomplete","off","type","text","placeholder","/path-to/image.png",1,"form-control","custom-input","form-control-sm","resp-input",3,"ngModelChange","ngModel"],["value","c"],["value","f"],["class","list-group-item d-flex flex-column align-items-center",4,"ngIf"],[1,"list-group-item","d-flex","flex-column","align-items-center"],[1,"grey-text","my-2"],["routerLink","/restart",1,"btn","btn-primary","waves-effect","my-2"],["class","list-group list-group-box mb-4 mx-0","id","fieldsStartup",4,"ngIf"],["id","fieldsStartup",1,"list-group","list-group-box","mb-4","mx-0"],["class","list-group-item d-flex justify-content-between align-items-center",4,"ngIf"],["class","list-group-item d-block d-md-flex justify-content-between align-items-center",4,"ngIf"],[1,"grey-text","pr-2"],["type","checkbox","id","homebridgeDebugMode","formControlName","HOMEBRIDGE_DEBUG",1,"rendux-input"],["for","homebridgeDebugMode",1,"rendux-label","ml-3",2,"min-width","50px"],["type","checkbox","id","homebridgeInsecureMode","formControlName","HOMEBRIDGE_INSECURE",1,"rendux-input"],["for","homebridgeInsecureMode",1,"rendux-label","ml-3",2,"min-width","50px"],["type","checkbox","id","homebridgeKeepOrphans","formControlName","HOMEBRIDGE_KEEP_ORPHANS",1,"rendux-input"],["for","homebridgeKeepOrphans",1,"rendux-label","ml-3",2,"min-width","50px"],[1,"text-monospace"],["href","https://github.com/homebridge/homebridge-config-ui-x/wiki/Debug-Common-Values","target","_blank"],[1,"fa","fa/fw","fas","fa-fw","fa-external-link-alt"],["formControlName","ENV_DEBUG","type","text","placeholder","HAP-NodeJS:Advertiser,HAP-NodeJS:Service",1,"form-control","custom-input","form-control-sm","resp-input"],["formControlName","ENV_NODE_OPTIONS","type","text","placeholder","--max-old-space-size=512 --max-http-header-size=8192",1,"form-control","custom-input","form-control-sm","resp-input"],["routerLink","/platform-tools/docker/startup-script",1,"btn","btn-primary","waves-effect","m-0","ml-3",2,"min-width","50px"],["id","fieldsNetwork",1,"list-group","list-group-box","mt-2","mx-0"],[4,"ngFor","ngForOf"],[1,"btn","btn-primary","waves-effect","m-0","ml-3",2,"min-width","50px",3,"click","disabled"],[1,"fas","fa-fw","fa-chevron-right",3,"ngClass"],[1,"custom-select","resp-select",3,"formControl"],["value","avahi",4,"ngIf"],["value","ciao"],["value","bonjour-hap"],["value","resolved",4,"ngIf"],["type","number","min","1025","max","65533",1,"form-control","custom-input","form-control-sm","resp-input",3,"formControl","ngClass"],["type","number","min","1025","max","65533","placeholder","8581","formControlName","port",1,"form-control","custom-input","form-control-sm","resp-input",3,"ngClass"],[1,"badge","badge-pill","mr-1",3,"ngClass"],["class","fas fa-fw fa-exclamation-triangle",4,"ngIf"],[1,"font-weight-normal"],[1,"fas","fa-fw","fa-exclamation-triangle"],["value","avahi"],["value","resolved"],["class","list-group list-group-box mb-4 mx-0","id","fieldsCache",4,"ngIf"],[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"]],template:function(o,d){o&1&&(t(0,"h3",0),a(1),r(2,"translate"),i(),t(3,"div",1)(4,"div",2),b("click",function(){return d.toggleSection("general")}),t(5,"h5",3),g(6,"i",4),a(7),r(8,"translate"),i()(),k(9,Dt,29,24,"ul",5),i(),t(10,"div",1)(11,"div",2),b("click",function(){return d.toggleSection("display")}),t(12,"h5",3),g(13,"i",4),a(14),r(15,"translate"),i()(),k(16,jt,148,81,"ul",6),i(),k(17,Wt,7,8,"form",7),t(18,"form",8)(19,"div",2),b("click",function(){return d.toggleSection("network")}),t(20,"h5",3),g(21,"i",4),a(22),r(23,"translate"),i()(),k(24,Yt,55,55,"ul",9),i(),k(25,ti,8,8,"div",10),t(26,"div",1)(27,"div",2),b("click",function(){return d.toggleSection("reset")}),t(28,"h5",3),g(29,"i",4),a(30),r(31,"translate"),i()(),k(32,ii,3,3,"p",11)(33,ni,24,20,"ul",12),i(),g(34,"div",13)),o&2&&(e(),_(s(2,25,"menu.settings.title")),e(3),v("aria-expanded",d.showFields.general?"true":"false")("aria-controls","fieldsGeneral"),e(2),m("ngClass",d.showFields.general?"fa-chevron-down":"fa-chevron-right"),e(),f(" ",s(8,27,"settings.general.title_general")," "),e(2),m("ngIf",d.showFields.general),e(2),v("aria-expanded",d.showFields.display?"true":"false")("aria-controls","fieldsDisplay"),e(2),m("ngClass",d.showFields.display?"fa-chevron-down":"fa-chevron-right"),e(),f(" ",s(15,29,"settings.general.title_display")," "),e(2),m("ngIf",d.showFields.display),e(),m("ngIf",d.$settings.env.serviceMode||d.$settings.env.runningInDocker),e(),m("formGroup",d.uiSettingsForm),e(),v("aria-expanded",d.showFields.network?"true":"false")("aria-controls","fieldsNetwork"),e(2),m("ngClass",d.showFields.network?"fa-chevron-down":"fa-chevron-right"),e(),f(" ",s(23,31,"settings.network.title_network")," "),e(2),m("ngIf",d.showFields.network),e(),m("ngIf",d.$settings.env.serviceMode),e(2),v("aria-expanded",d.showFields.reset?"true":"false")("aria-controls","fieldsReset"),e(2),m("ngClass",d.showFields.reset?"fa-chevron-down":"fa-chevron-right"),e(),f(" ",s(31,33,"reset.bridges.title")," "),e(2),m("ngIf",d.showFields.reset),e(),m("ngIf",d.showFields.reset))},dependencies:[O,j,A,ke,Ee,$e,he,ye,ee,Be,te,xe,Me,Te,ie,Ce,we,Ie,_e,J,$],encapsulation:2}));let n=c;return n})();var ai=[{path:"",component:Ke,canActivate:[be]}],qe=(()=>{let c=class c{};u(c,"\u0275fac",function(o){return new(o||c)}),u(c,"\u0275mod",Z({type:c})),u(c,"\u0275inj",Y({imports:[re.forChild(ai),re]}));let n=c;return n})();var fn=(()=>{let c=class c{};u(c,"\u0275fac",function(o){return new(o||c)}),u(c,"\u0275mod",Z({type:c})),u(c,"\u0275inj",Y({imports:[ue,Ae,Ne,fe,De,qe]}));let n=c;return n})();export{fn as SettingsModule};
|
package/public/chunk-DOLYKWZH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as J,f as T}from"./chunk-422JXES4.js";import{c as V,d as q}from"./chunk-3KSUXL3K.js";import{c as G}from"./chunk-SJTXTMYT.js";import{b as F}from"./chunk-6QEO3BTW.js";import{G as L,M as B,Q as C,y as E,z as N}from"./chunk-WCDFKYP6.js";import{b as w,c as P}from"./chunk-F22FMU37.js";import{$ as x,$b as k,Ab as D,Ga as I,Ka as b,La as u,Pb as H,Qb as R,Rb as U,Ua as n,Va as a,Wa as c,X as _,aa as h,ab as g,bb as A,h as o,jb as m,kb as f,lb as v,mb as z,ua as O,ub as S,wa as i,xa as M,yb as l,zb as s}from"./chunk-IGUSDGD6.js";var K=(()=>{let e=class e{};o(e,"\u0275fac",function(d){return new(d||e)}),o(e,"\u0275mod",h({type:e})),o(e,"\u0275inj",_({providers:[V],imports:[k,C,E,N,P.forChild(),J,F,T]}));let t=e;return t})();var Y=t=>({pluginName:t});function Z(t,e){t&1&&(n(0,"ul",16)(1,"li"),m(2),l(3,"translate"),a(),n(4,"li",17),m(5),l(6,"translate"),a()()),t&2&&(i(2),f(s(3,2,"plugins.manage.confirm_disable_accessory_1")),i(3),f(s(6,4,"plugins.manage.confirm_disable_accessory_2")))}function ee(t,e){t&1&&(n(0,"ul",16)(1,"li"),m(2),l(3,"translate"),a(),n(4,"li",17),m(5),l(6,"translate"),a()()),t&2&&(i(2),f(s(3,2,"plugins.manage.confirm_disable_platform_1")),i(3),f(s(6,4,"plugins.manage.confirm_disable_platform_2")))}var xe=(()=>{let e=class e{constructor(r){o(this,"$activeModal");o(this,"pluginName");o(this,"isConfigured",!1);o(this,"isConfiguredDynamicPlatform",!1);this.$activeModal=r}};o(e,"\u0275fac",function(d){return new(d||e)(M(B))}),o(e,"\u0275cmp",x({type:e,selectors:[["ng-component"]],inputs:{pluginName:"pluginName",isConfigured:"isConfigured",isConfiguredDynamicPlatform:"isConfiguredDynamicPlatform"},decls:28,vars:25,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body","w-100","text-center"],[1,"fas","fa-fw","fa-circle-pause","primary-text","mb-4",2,"font-size","75px"],["type","warning",3,"dismissible"],[1,"w-100","text-center","mb-0"],["class","mb-0 text-left",4,"ngIf"],[1,"modal-footer","justify-content-between"],[1,"text-left"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-right"],["type","button","data-dismiss","modal",1,"btn","btn-danger",3,"click"],[1,"mb-0","text-left"],[1,"mb-0"]],template:function(d,p){d&1&&(n(0,"div",0)(1,"div",1)(2,"h5",2),m(3),l(4,"translate"),a(),n(5,"button",3),l(6,"translate"),g("click",function(){return p.$activeModal.dismiss("Dismiss")}),n(7,"span",4),m(8,"\xD7"),a()()(),n(9,"div",5),c(10,"i",6),n(11,"ngb-alert",7)(12,"p",8),m(13),l(14,"translate"),a()(),I(15,Z,7,6,"ul",9)(16,ee,7,6,"ul",9),a(),n(17,"div",10)(18,"div",11)(19,"button",12),l(20,"translate"),g("click",function(){return p.$activeModal.dismiss("Dismiss")}),m(21),l(22,"translate"),a()(),c(23,"div",13),n(24,"div",14)(25,"button",15),g("click",function(){return p.$activeModal.close()}),m(26),l(27,"translate"),a()()()()),d&2&&(i(3),z("",s(4,10,"plugins.manage.disable"),": ",p.pluginName,""),i(2),b("aria-label",s(6,12,"form.button_close")),i(6),u("dismissible",!1),i(2),f(D(14,14,"plugins.manage.confirm_disable",S(23,Y,p.pluginName))),i(2),u("ngIf",p.isConfigured&&!p.isConfiguredDynamicPlatform),i(),u("ngIf",p.isConfigured&&p.isConfiguredDynamicPlatform),i(3),b("aria-label",s(20,17,"form.button_close")),i(2),v(" ",s(22,19,"form.button_close")," "),i(5),v(" ",s(27,21,"plugins.manage.disable")," "))},dependencies:[U,L,w],encapsulation:2}));let t=e;return t})();var te=t=>({author:t});function ie(t,e){if(t&1&&(n(0,"li",16),c(1,"i",17),n(2,"a",18),m(3),a()()),t&2){let $=e.$implicit,r=A();i(),u("ngClass",r.getIconClass($.type)),i(),u("href",$.url,O),i(),f($.url)}}var Ie=(()=>{let e=class e{constructor(r){o(this,"$activeModal");o(this,"plugin");o(this,"fundingOptions");this.$activeModal=r}ngOnInit(){this.plugin.funding||this.$activeModal.close(),this.plugin.name==="homebridge-config-ui-x"&&(this.plugin.author="oznu"),Array.isArray(this.plugin.funding)?this.fundingOptions=this.plugin.funding.map(r=>{if(typeof r=="string")return{type:"other",url:r};if(typeof r=="object")return{type:r.type||"other",url:r.url}}):typeof this.plugin.funding=="string"?this.fundingOptions=[{type:"other",url:this.plugin.funding}]:typeof this.plugin.funding=="object"&&(this.fundingOptions=[{type:this.plugin.funding.type||"other",url:this.plugin.funding.url}])}getIconClass(r){switch(r.toLowerCase()){case"paypal":return"fab fa-fw fa-paypal";case"github":return"fab fa-fw fa-github";case"patreon":return"fab fa-fw fa-patreon";case"kofi":case"ko-fi":return"fas fa-fw fa-coffee";default:return"fas fa-fw fa-link"}}};o(e,"\u0275fac",function(d){return new(d||e)(M(B))}),o(e,"\u0275cmp",x({type:e,selectors:[["ng-component"]],inputs:{plugin:"plugin"},decls:28,vars:22,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"w-100","text-center","pink-text","mb-4"],[1,"fas","fa-fw","fa-heart",2,"font-size","75px"],[1,"w-100","text-center"],[1,"list-group"],["class","list-group-item",4,"ngFor","ngForOf"],[1,"modal-footer","justify-content-between"],[1,"text-left"],[1,"text-center"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-right"],[1,"list-group-item"],[1,"mr-2","primary-text","fa-fw",3,"ngClass"],["target","_blank","rel","noopener noreferrer",1,"text-break-all","grey-text",3,"href"]],template:function(d,p){d&1&&(n(0,"div",0)(1,"div",1)(2,"h5",2),m(3),l(4,"translate"),a(),n(5,"button",3),l(6,"translate"),g("click",function(){return p.$activeModal.dismiss("Dismiss")}),n(7,"span",4),m(8,"\xD7"),a()()(),n(9,"div",5)(10,"div",6),c(11,"i",7),a(),n(12,"p",8),m(13),l(14,"translate"),a(),n(15,"p",8),m(16),l(17,"translate"),a(),n(18,"ul",9),I(19,ie,4,3,"li",10),a()(),n(20,"div",11),c(21,"div",12),n(22,"div",13)(23,"button",14),l(24,"translate"),g("click",function(){return p.$activeModal.dismiss("Dismiss")}),m(25),l(26,"translate"),a()(),c(27,"div",15),a()()),d&2&&(i(3),v(" ",D(4,7,"plugins.donate.tile_donate_to",S(20,te,p.plugin.author?"@"+p.plugin.author:p.plugin.name))," "),i(2),b("aria-label",s(6,10,"form.button_close")),i(8),f(s(14,12,"plugins.donate.message_1")),i(3),f(s(17,14,"plugins.donate.message_2")),i(3),u("ngForOf",p.fundingOptions),i(4),b("aria-label",s(24,16,"form.button_close")),i(2),v(" ",s(26,18,"form.button_close")," "))},dependencies:[H,R,w],styles:[".text-break-all[_ngcontent-%COMP%]{word-break:break-all}"]}));let t=e;return t})();var st=(()=>{let e=class e{};o(e,"\u0275fac",function(d){return new(d||e)}),o(e,"\u0275mod",h({type:e})),o(e,"\u0275inj",_({providers:[q],imports:[k,E,N,P.forChild(),C,F,G,C,T,K]}));let t=e;return t})();export{xe as a,Ie as b,st as c};
|
package/public/chunk-DRWF7R4E.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as L}from"./chunk-422JXES4.js";import{a as B}from"./chunk-7564WJJL.js";import"./chunk-TS27NWVA.js";import"./chunk-7R6JSPNH.js";import"./chunk-JM7QCDMZ.js";import"./chunk-RIWBPQF3.js";import"./chunk-WCDFKYP6.js";import{c as S,k as T,m as D}from"./chunk-S4SOWUAW.js";import{a as _,b as w,c as M}from"./chunk-F22FMU37.js";import{$ as h,$b as E,Ga as y,La as u,Rb as $,Ua as s,Va as a,Wa as v,X as x,aa as g,bb as I,h as i,jb as l,kb as c,sc as k,vc as j,wa as o,xa as m,yb as f,zb as d}from"./chunk-IGUSDGD6.js";function G(e,t){e&1&&(s(0,"p",11),l(1),f(2,"translate"),a()),e&2&&(o(),c(d(2,1,"restart.please_wait_while_server_restarts")))}function H(e,t){if(e&1&&(s(0,"div",12),l(1),a()),e&2){let C=I();o(),c(C.error)}}function J(e,t){e&1&&(s(0,"div",13)(1,"div",14),v(2,"i",15),a()())}function K(e,t){e&1&&(s(0,"div")(1,"div",16),l(2),f(3,"translate"),a()()),e&2&&(o(2),c(d(3,1,"platform.linux.long_time")))}var N=(()=>{let t=class t{constructor(r,n,p,F,z,A){i(this,"$api");i(this,"$router");i(this,"$settings");i(this,"$toastr");i(this,"$translate");i(this,"$ws");i(this,"checkTimeout");i(this,"checkDelay");i(this,"resp",{});i(this,"timeout",!1);i(this,"error",!1);i(this,"io");this.$api=r,this.$router=n,this.$settings=p,this.$toastr=F,this.$translate=z,this.$ws=A}ngOnInit(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch()}),this.$api.put("/platform-tools/linux/restart-host",{}).subscribe({next:r=>{this.resp=r,this.checkIfServerUp()},error:r=>{console.error(r),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}checkIfServerUp(){this.checkDelay=setTimeout(()=>{this.io.socket.on("homebridge-status",r=>{(r.status==="up"||r.status==="pending")&&(this.$toastr.success(this.$translate.instant("platform.linux.server_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})},3e4),this.checkTimeout=setTimeout(()=>{this.$toastr.warning(this.$translate.instant("platform.linux.server_taking_long_time"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout=!0},12e4)}ngOnDestroy(){this.io.end(),clearTimeout(this.checkDelay),clearTimeout(this.checkTimeout)}};i(t,"\u0275fac",function(n){return new(n||t)(m(S),m(k),m(D),m(T),m(_),m(B))}),i(t,"\u0275cmp",h({type:t,selectors:[["ng-component"]],decls:15,vars:10,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],["class","grey-text",4,"ngIf"],["class","alert alert-error my-4",4,"ngIf"],["class","justify-content-center my-4",4,"ngIf"],[4,"ngIf"],[1,"grey-text"],[1,"alert","alert-error","my-4"],[1,"justify-content-center","my-4"],[1,"restart-progress-box","primary-text"],[1,"fas","fa-fw","fa-spinner","fa-spin"],[1,"alert","alert-warning","my-4"]],template:function(n,p){n&1&&(s(0,"div",0)(1,"h3",1),l(2),f(3,"translate"),a()(),s(4,"div",2)(5,"div",3),v(6,"i",4),a(),s(7,"div",5)(8,"h4",6),l(9),f(10,"translate"),a(),y(11,G,3,3,"p",7)(12,H,2,1,"div",8)(13,J,3,0,"div",9)(14,K,4,3,"div",10),a()()),n&2&&(o(2),c(d(3,6,"menu.restart.title")),o(7),c(d(10,8,"platform.linux.restarting_server")),o(2),u("ngIf",!p.error),o(),u("ngIf",p.error),o(),u("ngIf",!p.error),o(),u("ngIf",p.timeout))},dependencies:[$,w],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;margin-top:15px}"]}));let e=t;return e})();function Q(e,t){e&1&&(s(0,"p",9),l(1),f(2,"translate"),a()),e&2&&(o(),c(d(2,1,"platform.linux.server_will_power_down")))}function V(e,t){if(e&1&&(s(0,"div",10),l(1),a()),e&2){let C=I();o(),c(C.error)}}var R=(()=>{let t=class t{constructor(r,n,p){i(this,"$api");i(this,"$toastr");i(this,"$translate");i(this,"error",!1);this.$api=r,this.$toastr=n,this.$translate=p}ngOnInit(){this.$api.put("/platform-tools/linux/shutdown-host",{}).subscribe({error:r=>{console.error(r),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}};i(t,"\u0275fac",function(n){return new(n||t)(m(S),m(T),m(_))}),i(t,"\u0275cmp",h({type:t,selectors:[["ng-component"]],decls:13,vars:8,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],["class","grey-text",4,"ngIf"],["class","alert alert-error my-4",4,"ngIf"],[1,"grey-text"],[1,"alert","alert-error","my-4"]],template:function(n,p){n&1&&(s(0,"div",0)(1,"h3",1),l(2),f(3,"translate"),a()(),s(4,"div",2)(5,"div",3),v(6,"i",4),a(),s(7,"div",5)(8,"h4",6),l(9),f(10,"translate"),a(),y(11,Q,3,3,"p",7)(12,V,2,1,"div",8),a()()),n&2&&(o(2),c(d(3,4,"menu.restart.title")),o(7),c(d(10,6,"platform.linux.shutting_down_server")),o(2),u("ngIf",!p.error),o(),u("ngIf",p.error))},dependencies:[$,w],encapsulation:2}));let e=t;return e})();var X=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"restart-server",component:N},{path:"shutdown-server",component:R}],O=(()=>{let t=class t{};i(t,"\u0275fac",function(n){return new(n||t)}),i(t,"\u0275mod",g({type:t})),i(t,"\u0275inj",x({imports:[j.forChild(X),j]}));let e=t;return e})();var gt=(()=>{let t=class t{};i(t,"\u0275fac",function(n){return new(n||t)}),i(t,"\u0275mod",g({type:t})),i(t,"\u0275inj",x({imports:[E,M.forChild(),L,O]}));let e=t;return e})();export{gt as LinuxModule};
|
package/public/chunk-F22FMU37.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Fb as Y,G as z,I as m,O as N,Q as K,W as c,X as W,Y as D,Z as u,a as F,aa as Z,ca as Q,h as r,ka as j,na as d,p as b,r as p,u as R,w as P,x as M,xa as x,y as X}from"./chunk-IGUSDGD6.js";var L=class{},k=(()=>{let n=class n extends L{getTranslation(e){return b({})}};r(n,"\u0275fac",(()=>{let e;return function(s){return(e||(e=j(n)))(s||n)}})()),r(n,"\u0275prov",c({token:n,factory:n.\u0275fac}));let i=n;return i})(),w=class{},ee=(()=>{let n=class n{handle(e){return e.key}};r(n,"\u0275fac",function(t){return new(t||n)}),r(n,"\u0275prov",c({token:n,factory:n.\u0275fac}));let i=n;return i})();function I(i,n){if(i===n)return!0;if(i===null||n===null)return!1;if(i!==i&&n!==n)return!0;let l=typeof i,e=typeof n,t,s,a;if(l==e&&l=="object")if(Array.isArray(i)){if(!Array.isArray(n))return!1;if((t=i.length)==n.length){for(s=0;s<t;s++)if(!I(i[s],n[s]))return!1;return!0}}else{if(Array.isArray(n))return!1;a=Object.create(null);for(s in i){if(!I(i[s],n[s]))return!1;a[s]=!0}for(s in n)if(!(s in a)&&typeof n[s]<"u")return!1;return!0}return!1}function f(i){return typeof i<"u"&&i!==null}function y(i){return A(i)&&!q(i)}function A(i){return typeof i=="object"}function q(i){return Array.isArray(i)}function J(i){return typeof i=="string"}function ie(i){return typeof i=="function"}function O(i,n){let l=Object.assign({},i);return A(i)?(A(i)&&A(n)&&Object.keys(n).forEach(e=>{y(n[e])?e in i?l[e]=O(i[e],n[e]):Object.assign(l,{[e]:n[e]}):Object.assign(l,{[e]:n[e]})}),l):O({},n)}function U(i,n){let l=n.split(".");n="";do n+=l.shift(),f(i)&&f(i[n])&&(y(i[n])||q(i[n])||!l.length)?(i=i[n],n=""):l.length?n+=".":i=void 0;while(l.length);return i}function ae(i,n,l){let e=n.split("."),t=i;for(let s=0;s<e.length;s++){let a=e[s];s===e.length-1?t[a]=l:((!t[a]||!y(t[a]))&&(t[a]={}),t=t[a])}}var C=class{},te=(()=>{let n=class n extends C{constructor(){super(...arguments);r(this,"templateMatcher",/{{\s?([^{}\s]*)\s?}}/g)}interpolate(t,s){if(J(t))return this.interpolateString(t,s);if(ie(t))return this.interpolateFunction(t,s)}interpolateFunction(t,s){return t(s)}interpolateString(t,s){return s?t.replace(this.templateMatcher,(a,o)=>{let g=U(s,o);return f(g)?g:a}):t}};r(n,"\u0275fac",(()=>{let t;return function(a){return(t||(t=j(n)))(a||n)}})()),r(n,"\u0275prov",c({token:n,factory:n.\u0275fac}));let i=n;return i})(),v=class{},ne=(()=>{let n=class n extends v{compile(e,t){return e}compileTranslations(e,t){return e}};r(n,"\u0275fac",(()=>{let e;return function(s){return(e||(e=j(n)))(s||n)}})()),r(n,"\u0275prov",c({token:n,factory:n.\u0275fac}));let i=n;return i})(),V=class{constructor(){r(this,"defaultLang");r(this,"currentLang",this.defaultLang);r(this,"translations",{});r(this,"langs",[]);r(this,"onTranslationChange",new d);r(this,"onLangChange",new d);r(this,"onDefaultLangChange",new d)}},_=new D("ISOALTE_TRANSLATE_SERVICE"),B=new D("USE_DEFAULT_LANG"),G=new D("DEFAULT_LANGUAGE"),H=new D("USE_EXTEND"),T=i=>p(i)?i:b(i),$=(()=>{let n=class n{constructor(e,t,s,a,o,g=!0,h=!1,S=!1,E){r(this,"store");r(this,"currentLoader");r(this,"compiler");r(this,"parser");r(this,"missingTranslationHandler");r(this,"useDefaultLang");r(this,"isolate");r(this,"extend");r(this,"loadingTranslations");r(this,"pending",!1);r(this,"_onTranslationChange",new d);r(this,"_onLangChange",new d);r(this,"_onDefaultLangChange",new d);r(this,"_defaultLang");r(this,"_currentLang");r(this,"_langs",[]);r(this,"_translations",{});r(this,"_translationRequests",{});r(this,"lastUseLanguage",null);this.store=e,this.currentLoader=t,this.compiler=s,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=g,this.isolate=h,this.extend=S,E&&this.setDefaultLang(E)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(this.defaultLang==null&&(this.defaultLang=e),t.pipe(m(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return b(this.translations[e]);this.currentLang||(this.currentLang=e);let t=this.retrieveTranslations(e);return p(t)?(t.pipe(m(1)).subscribe(()=>{this.changeLang(e)}),t):(this.changeLang(e),b(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let t=this.currentLoader.getTranslation(e).pipe(N(1),m(1));return this.loadingTranslations=t.pipe(R(s=>this.compiler.compileTranslations(s,e)),N(1),m(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?F(F({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){let a=this.compiler.compileTranslations(t,e);(s||this.extend)&&this.translations[e]?this.translations[e]=O(this.translations[e],a):this.translations[e]=a,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{this.langs.indexOf(t)===-1&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,t,s){let a;if(e&&(a=this.runInterpolation(U(e,t),s)),a===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(a=this.runInterpolation(U(this.translations[this.defaultLang],t),s)),a===void 0){let o={key:t,translateService:this};typeof s<"u"&&(o.interpolateParams=s),a=this.missingTranslationHandler.handle(o)}return a!==void 0?a:t}runInterpolation(e,t){if(q(e))return e.map(s=>this.runInterpolation(s,t));if(y(e)){let s={};for(let a in e)s[a]=this.runInterpolation(e[a],t);return s}else return this.parser.interpolate(e,t)}getParsedResult(e,t,s){if(t instanceof Array){let a={},o=!1;for(let h of t)a[h]=this.getParsedResultForKey(e,h,s),o=o||p(a[h]);if(!o)return a;let g=t.map(h=>T(a[h]));return X(g).pipe(R(h=>{let S={};return h.forEach((E,se)=>{S[t[se]]=E}),S}))}return this.getParsedResultForKey(e,t,s)}get(e,t){if(!f(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(z(s=>T(this.getParsedResult(s,e,t)))):T(this.getParsedResult(this.translations[this.currentLang],e,t))}getStreamOnTranslationChange(e,t){if(!f(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return P(M(()=>this.get(e,t)),this.onTranslationChange.pipe(K(s=>{let a=this.getParsedResult(s.translations,e,t);return T(a)})))}stream(e,t){if(!f(e)||!e.length)throw new Error('Parameter "key" required');return P(M(()=>this.get(e,t)),this.onLangChange.pipe(K(s=>{let a=this.getParsedResult(s.translations,e,t);return T(a)})))}instant(e,t){if(!f(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let s=this.getParsedResult(this.translations[this.currentLang],e,t);return p(s)?Array.isArray(e)?e.reduce((a,o)=>(a[o]=o,a),{}):e:s}set(e,t,s=this.currentLang){ae(this.translations[s],e,J(t)?this.compiler.compile(t,s):this.compiler.compileTranslations(t,s)),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}};r(n,"\u0275fac",function(t){return new(t||n)(u(V),u(L),u(v),u(C),u(w),u(B),u(_),u(H),u(G))}),r(n,"\u0275prov",c({token:n,factory:n.\u0275fac,providedIn:"root"}));let i=n;return i})();var be=(()=>{let n=class n{constructor(e,t){r(this,"translate");r(this,"_ref");r(this,"value","");r(this,"lastKey",null);r(this,"lastParams",[]);r(this,"onTranslationChange");r(this,"onLangChange");r(this,"onDefaultLangChange");this.translate=e,this._ref=t}updateValue(e,t,s){let a=o=>{this.value=o!==void 0?o:e,this.lastKey=e,this._ref.markForCheck()};if(s){let o=this.translate.getParsedResult(s,e,t);p(o)?o.subscribe(a):a(o)}this.translate.get(e,t).subscribe(a)}transform(e,...t){if(!e||!e.length)return e;if(I(e,this.lastKey)&&I(t,this.lastParams))return this.value;let s;if(f(t[0])&&t.length)if(J(t[0])&&t[0].length){let a=t[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{s=JSON.parse(a)}catch(o){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else y(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(a=>{this.lastKey&&a.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,a.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(a=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,a.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}};r(n,"\u0275fac",function(t){return new(t||n)(x($,16),x(Y,16))}),r(n,"\u0275pipe",Q({name:"translate",type:n,pure:!1,standalone:!0})),r(n,"\u0275prov",c({token:n,factory:n.\u0275fac}));let i=n;return i})();var me=(()=>{let n=class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:L,useClass:k},e.compiler||{provide:v,useClass:ne},e.parser||{provide:C,useClass:te},e.missingTranslationHandler||{provide:w,useClass:ee},V,{provide:_,useValue:e.isolate},{provide:B,useValue:e.useDefaultLang},{provide:H,useValue:e.extend},{provide:G,useValue:e.defaultLanguage},$]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:L,useClass:k},e.compiler||{provide:v,useClass:ne},e.parser||{provide:C,useClass:te},e.missingTranslationHandler||{provide:w,useClass:ee},{provide:_,useValue:e.isolate},{provide:B,useValue:e.useDefaultLang},{provide:H,useValue:e.extend},{provide:G,useValue:e.defaultLanguage},$]}}};r(n,"\u0275fac",function(t){return new(t||n)}),r(n,"\u0275mod",Z({type:n})),r(n,"\u0275inj",W({}));let i=n;return i})();export{$ as a,be as b,me as c};
|
package/public/chunk-FBP5C7VG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as re}from"./chunk-5UYN5OWH.js";import{f as ae}from"./chunk-422JXES4.js";import{a as se}from"./chunk-ZEONO5N6.js";import"./chunk-THFLPY67.js";import"./chunk-7564WJJL.js";import"./chunk-TS27NWVA.js";import"./chunk-7R6JSPNH.js";import"./chunk-JM7QCDMZ.js";import{c as L}from"./chunk-RIWBPQF3.js";import{N as ne,Q as oe,c as K,d as C,e as J,f as Q,g as X,j as M,m as Y,p as Z,q as ee,y as te,z as ie}from"./chunk-WCDFKYP6.js";import{b as U,c as H,k as A,m as q}from"./chunk-S4SOWUAW.js";import{a as W,b as G,c as D}from"./chunk-F22FMU37.js";import{$ as B,$b as R,Ga as z,La as m,Pb as V,Rb as O,Ua as o,Va as l,Wa as f,X as k,Za as I,aa as F,ab as b,bb as _,h as s,ha as v,i as y,ia as x,jb as p,kb as u,lb as w,nc as j,t as S,tc as N,ub as P,vb as $,vc as T,wa as n,xa as h,yb as c,zb as d}from"./chunk-IGUSDGD6.js";var E=(e,a)=>({"is-valid":e,"is-invalid":a}),ge=e=>({"button-loading":e});function _e(e,a){if(e&1){let t=I();o(0,"div",3),f(1,"img",4),o(2,"h3",5),p(3),c(4,"translate"),l(),o(5,"button",6),b("click",function(){v(t);let r=_();return x(r.onClickGettingStarted())}),p(6),c(7,"translate"),l(),o(8,"small",7)(9,"a",8),b("click",function(){v(t);let r=_();return x(r.onClickRestoreBackup())}),p(10),c(11,"translate"),l()()()}e&2&&(n(3),u(d(4,3,"setup.welcome_to_homebridge")),n(3),w(" ",d(7,5,"setup.button_get_started")," "),n(4),u(d(11,7,"setup_wizard_message_restore")))}function he(e,a){if(e&1){let t=I();o(0,"div",3),f(1,"img",9),o(2,"h3",5),p(3),c(4,"translate"),l(),o(5,"div",10)(6,"p"),p(7),c(8,"translate"),l(),o(9,"form",11),b("ngSubmit",function(){v(t);let r=_();return x(r.createFirstUser())}),o(10,"div",12),f(11,"i",13)(12,"input",14),o(13,"label",15),p(14),c(15,"translate"),l()(),o(16,"div",12),f(17,"i",16)(18,"input",17),o(19,"label",18),p(20),c(21,"translate"),l()(),o(22,"div",12),f(23,"i",16)(24,"input",19),o(25,"label",20),p(26),c(27,"translate"),l()(),o(28,"div",21)(29,"button",22),p(30),c(31,"translate"),f(32,"i",23),l()()()()()}if(e&2){let t=_();n(3),u(d(4,15,"setup.create_account")),n(4),u(d(8,17,"setup.create_account_reason")),n(2),m("formGroup",t.createUserForm),n(3),m("readonly",t.loading)("ngClass",$(27,E,t.createUserForm.controls.username.dirty&&t.createUserForm.controls.username.valid,t.createUserForm.controls.username.dirty&&t.createUserForm.controls.username.invalid)),n(2),u(d(15,19,"users.label_username")),n(4),m("readonly",t.loading)("ngClass",$(30,E,t.createUserForm.controls.password.dirty&&t.createUserForm.controls.password.valid,t.createUserForm.controls.password.dirty&&t.createUserForm.controls.password.errors)),n(2),u(d(21,21,"users.label_password")),n(4),m("readonly",t.loading)("ngClass",$(33,E,t.createUserForm.controls.passwordConfirm.dirty&&t.createUserForm.controls.passwordConfirm.valid,t.createUserForm.controls.passwordConfirm.dirty&&t.createUserForm.controls.passwordConfirm.errors)),n(2),u(d(27,23,"users.label_confirm_password")),n(3),m("disabled",t.createUserForm.invalid||t.loading)("ngClass",P(36,ge,t.loading)),n(),w(" ",d(31,25,"setup.create_account")," ")}}function ve(e,a){e&1&&(o(0,"span"),f(1,"i",31),p(2),c(3,"translate"),l()),e&2&&(n(2),w(" ",d(3,1,"backup.label_uploading")," "))}function xe(e,a){e&1&&(o(0,"span"),p(1),c(2,"translate"),l()),e&2&&(n(),u(d(2,1,"backup.button_restore_backup")))}function be(e,a){if(e&1){let t=I();o(0,"div",3),f(1,"img",9),o(2,"h3",5),p(3),c(4,"translate"),l(),o(5,"p"),p(6),c(7,"translate"),l(),o(8,"div",24)(9,"input",25),b("change",function(r){v(t);let g=_();return x(g.handleRestoreFileInput(r.target.files))}),l(),o(10,"label",26),p(11),c(12,"translate"),l()(),o(13,"div",27)(14,"button",28),b("click",function(){v(t);let r=_();return x(r.onClickCancelRestore())}),p(15),c(16,"translate"),l(),o(17,"button",29),b("click",function(){v(t);let r=_();return x(r.onRestoreBackupClick())}),z(18,ve,4,3,"span",30)(19,xe,3,3,"span",30),l()()()}if(e&2){let t=_();n(3),u(d(4,8,"form.button_restore")),n(3),u(d(7,10,"backup.restore_help_one")),n(5),w(" ",d(12,12,(t.selectedFile==null?null:t.selectedFile.name)||"backup.label_choose_backup_file_to_restore")," "),n(3),m("disabled",t.restoreUploadStarted),n(),w(" ",d(16,14,"form.button_cancel")," "),n(2),m("disabled",t.restoreUploading||!t.selectedFile),n(),m("ngIf",t.restoreUploading),n(),m("ngIf",!t.restoreUploading)}}function we(e,a){e&1&&(o(0,"div",3),f(1,"img",9),o(2,"h3",5),p(3),c(4,"translate"),l(),o(5,"h1"),f(6,"i",31),l()()),e&2&&(n(3),u(d(4,1,"restart.title_restart")))}function Ce(e,a){e&1&&(o(0,"div",3),f(1,"img",9),o(2,"h3",32),p(3),c(4,"translate"),l(),o(5,"p",33),p(6),c(7,"translate"),l(),o(8,"a",34),p(9),c(10,"translate"),l()()),e&2&&(n(3),u(d(4,3,"setup_wizard_message_complete_title")),n(3),u(d(7,5,"setup_wizard_message_complete_message")),n(3),u(d(10,7,"setup.open_dashboard")))}var pe=(()=>{let a=class a{constructor(i,r,g,de,me,ue,fe){s(this,"$api");s(this,"$auth");s(this,"$modal");s(this,"$settings");s(this,"$title");s(this,"$toastr");s(this,"$translate");s(this,"previousTitle");s(this,"step","welcome");s(this,"createUserForm",new X({username:new M("",[C.required]),password:new M("",[C.compose([C.required,C.minLength(4)])]),passwordConfirm:new M("",[C.required])},this.matchPassword));s(this,"loading",!1);s(this,"selectedFile");s(this,"restoreUploading",!1);this.$api=i,this.$auth=r,this.$modal=g,this.$settings=de,this.$title=me,this.$toastr=ue,this.$translate=fe}ngOnInit(){this.previousTitle=this.$title.getTitle(),this.$title.setTitle("Setup Homebridge")}matchPassword(i){let r=i.get("password").value,g=i.get("passwordConfirm").value;if(r!==g)i.get("passwordConfirm").setErrors({matchPassword:!0});else return null}ngOnDestroy(){this.$title.setTitle(this.previousTitle)}onClickGettingStarted(){this.step="create-account"}onClickRestoreBackup(){this.step="restore-backup"}onClickCancelRestore(){this.selectedFile=null,this.step="welcome"}createFirstUser(){this.loading=!0;let i=this.createUserForm.getRawValue();i.name=i.username,this.$api.post("/setup-wizard/create-first-user",i).subscribe({next:()=>y(this,null,function*(){this.$settings.env.setupWizardComplete=!0,yield this.$auth.login({username:i.username,password:i.password}),this.step="setup-complete"}),error:r=>{this.loading=!1,console.error(r),this.$toastr.error(r.error.message||this.$translate.instant("users.toast_failed_to_add_user"),this.$translate.instant("toast.title_error"))}})}handleRestoreFileInput(i){i.length?this.selectedFile=i[0]:delete this.selectedFile}onRestoreBackupClick(){this.restoreUploading=!0,this.uploadHomebridgeArchive()}uploadHomebridgeArchive(){return y(this,null,function*(){try{let i=yield S(this.$api.get("/setup-wizard/get-setup-wizard-token"));window.localStorage.setItem(U.jwt.tokenKey,i.access_token),this.$auth.token=i.access_token;let r=new FormData;r.append("restoreArchive",this.selectedFile,this.selectedFile.name),yield S(this.$api.post("/backup/restore",r)),this.openRestoreModal(),this.restoreUploading=!1}catch(i){this.restoreUploading=!1,console.error(i),this.$toastr.error(i.error.message||this.$translate.instant("users.toast_failed_to_add_user"),this.$translate.instant("toast.title_error"))}})}openRestoreModal(){let i=this.$modal.open(se,{size:"lg",backdrop:"static"});i.componentInstance.setupWizardRestore=!0,i.result.then(r=>{r===!0&&this.waitForHomebridgeToRestart()})}waitForHomebridgeToRestart(){return y(this,null,function*(){this.step="restarting",window.localStorage.removeItem(U.jwt.tokenKey),this.$auth.token=null,yield new Promise(r=>setTimeout(r,15e3));let i=setInterval(()=>y(this,null,function*(){try{yield S(this.$api.get("/auth/settings")),clearInterval(i),location.reload()}catch{}}),1e3)})}};s(a,"\u0275fac",function(r){return new(r||a)(h(H),h(L),h(ne),h(q),h(j),h(A),h(W))}),s(a,"\u0275cmp",B({type:a,selectors:[["ng-component"]],decls:7,vars:5,consts:[[1,"setup-container","d-flex","align-items-center","justify-content-center"],[1,"w-100","setup-card","d-flex","py-5"],["class","w-100 d-flex flex-column align-items-center",4,"ngIf"],[1,"w-100","d-flex","flex-column","align-items-center"],["src","/assets/homebridge-color-round.svg","alt","hb logo",1,"homebridge-logo","mx-auto"],[1,"pt-4","pb-3","text-center"],["type","button",1,"btn","btn-lg","btn-primary",3,"click"],[1,"mt-3"],["href","javascript:void(0)",1,"grey-text",3,"click"],["src","/assets/homebridge-color-round.svg","alt","hb logo",1,"homebridge-logo","homebridge-logo-small","mx-auto"],[1,"w-100"],["novalidate","",3,"ngSubmit","formGroup"],[1,"md-form"],[1,"fas","fa-fw","fa-user","prefix","grey-text"],["formControlName","username","type","text","id","form-username","autocomplete","username","autocapitalize","none","tabindex","1",1,"form-control","px-0",3,"readonly","ngClass"],["for","form-username"],[1,"fas","fa-fw","fa-lock","prefix","grey-text"],["formControlName","password","type","password","id","form-pass","autocomplete","new-password","tabindex","2",1,"form-control","px-0",3,"readonly","ngClass"],["for","form-pass"],["formControlName","passwordConfirm","type","password","id","form-pass-confirm","autocomplete","new-password","tabindex","2",1,"form-control","px-0",3,"readonly","ngClass"],["for","form-pass-confirm"],[1,"w-100","text-center"],["type","submit",1,"btn","btn-primary",3,"disabled","ngClass"],[1,"button-loading-overlay","fas","fa-fw","fa-spinner","fa-pulse"],[1,"custom-file"],["type","file","id","restoreFileUpload","accept","application/gzip, .gz",1,"custom-file-input",3,"change"],["for","restoreFileUpload",1,"custom-file-label"],[1,"mt-3","w-100","d-flex","justify-content-between"],["type","button",1,"btn","btn-elegant","ml-0",3,"click","disabled"],["type","button",1,"btn","btn-primary","mr-0",3,"click","disabled"],[4,"ngIf"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],[1,"pt-4","pb-3"],[1,"text-center"],["routerLink","/",1,"btn","btn-lg","btn-primary","mt-3"]],template:function(r,g){r&1&&(o(0,"div",0)(1,"div",1),z(2,_e,12,9,"div",2)(3,he,33,38,"div",2)(4,be,20,16,"div",2)(5,we,7,3,"div",2)(6,Ce,11,9,"div",2),l()()),r&2&&(n(2),m("ngIf",g.step==="welcome"),n(),m("ngIf",g.step==="create-account"),n(),m("ngIf",g.step==="restore-backup"),n(),m("ngIf",g.step==="restarting"),n(),m("ngIf",g.step==="setup-complete"))},dependencies:[V,O,Y,K,J,Q,Z,ee,N,G],styles:[".setup-container[_ngcontent-%COMP%]{background-size:cover;z-index:-1;padding-top:1em;padding-bottom:1em}@media screen and (min-height: 500px) and (min-width: 600px){.setup-container[_ngcontent-%COMP%]{padding-top:4em}}.setup-card[_ngcontent-%COMP%]{max-width:600px;border-radius:15px;background-color:#fff;padding-right:25px;padding-left:25px}.setup-card[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{background-color:inherit!important}@media screen and (max-width: 600px){.setup-card[_ngcontent-%COMP%]{margin-left:1em;margin-right:1em}} body.dark-mode .setup-card{background-color:#2b2b2b;color:#fff}.homebridge-logo[_ngcontent-%COMP%]{margin-right:10px;height:200px}@media screen and (max-height: 500px){.homebridge-logo[_ngcontent-%COMP%]{height:100px}}@media screen and (max-width: 600px){.homebridge-logo[_ngcontent-%COMP%]{height:100px}}.homebridge-logo-small[_ngcontent-%COMP%]{height:50px}.button-loading[_ngcontent-%COMP%]{position:relative;color:#0000}.button-loading[_ngcontent-%COMP%] .button-loading-overlay[_ngcontent-%COMP%]{display:block;color:#fff}.button-loading-overlay[_ngcontent-%COMP%]{display:none;position:absolute;top:9px;left:0;right:0}small[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}"]}));let e=a;return e})();var ye=[{path:"",component:pe}],ce=(()=>{let a=class a{};s(a,"\u0275fac",function(r){return new(r||a)}),s(a,"\u0275mod",F({type:a})),s(a,"\u0275inj",k({imports:[T.forChild(ye),T]}));let e=a;return e})();var Ze=(()=>{let a=class a{};s(a,"\u0275fac",function(r){return new(r||a)}),s(a,"\u0275mod",F({type:a})),s(a,"\u0275inj",k({providers:[re],imports:[R,te,ie,D,oe,ae,ce]}));let e=a;return e})();export{Ze as SetupWizardModule};
|
package/public/chunk-FPOZAQLC.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./chunk-GNQUXZMN.js";import{a as b,b as z}from"./chunk-THFLPY67.js";import{a}from"./chunk-7564WJJL.js";import{H as o,W as c,Z as d,g as m,h as t,l as h}from"./chunk-IGUSDGD6.js";var l=m(b(),1),f=m(z(),1),p=m(u(),1);var v=(()=>{let e=class e{constructor(s){t(this,"$ws");t(this,"term");t(this,"io");t(this,"fitAddon");t(this,"webLinksAddon");t(this,"resize");t(this,"elementResize");this.$ws=s}destroyTerminal(){this.io.end(),this.term.dispose(),this.resize.complete(),this.elementResize&&this.elementResize.complete()}startTerminal(s,n={},w){this.elementResize=w,this.io=this.$ws.connectToNamespace("platform-tools/terminal"),this.term=new l.Terminal(n),setTimeout(()=>{this.term.loadAddon(this.fitAddon),this.term.loadAddon(this.webLinksAddon)}),this.fitAddon=new f.FitAddon,this.webLinksAddon=new p.WebLinksAddon,this.resize=new h,this.term.open(s.nativeElement),setTimeout(()=>{this.fitAddon.activate(this.term),this.fitAddon.fit()}),this.io.connected.pipe(o(200)).subscribe(()=>{this.startSession()}),this.io.socket.on("disconnect",()=>{this.term.write(`
|
|
2
|
-
\r
|
|
3
|
-
\rTerminal disconnected. Is the server running?
|
|
4
|
-
\r
|
|
5
|
-
\r`)}),this.io.socket.on("process-exit",()=>{this.io.socket.emit("end"),this.startSession()}),this.resize.pipe(o(500)).subscribe(i=>{this.io.socket.emit("resize",i)}),this.io.socket.on("stdout",i=>{this.term.write(i)}),this.term.onData(i=>{this.io.socket.emit("stdin",i)}),this.term.onResize(i=>{this.resize.next(i)}),this.elementResize&&this.elementResize.pipe(o(100)).subscribe({next:()=>{this.fitAddon.fit()}})}startSession(){this.term.reset(),this.io.socket.emit("start-session",{cols:this.term.cols,rows:this.term.rows}),this.resize.next({cols:this.term.cols,rows:this.term.rows})}};t(e,"\u0275fac",function(n){return new(n||e)(d(a))}),t(e,"\u0275prov",c({token:e,factory:e.\u0275fac,providedIn:"root"}));let r=e;return r})();export{v as a};
|