homebridge-config-ui-x 5.6.1-beta.4 → 5.6.1-beta.6
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/dist/core/auth/auth.controller.d.ts +3 -0
- package/dist/core/auth/auth.controller.js +13 -0
- package/dist/core/auth/auth.controller.js.map +1 -1
- package/dist/core/auth/auth.service.d.ts +1 -0
- package/dist/core/auth/auth.service.js +24 -0
- package/dist/core/auth/auth.service.js.map +1 -1
- package/dist/core/config/config.interfaces.d.ts +1 -0
- package/dist/core/config/config.service.d.ts +2 -0
- package/dist/core/config/config.service.js +1 -0
- package/dist/core/config/config.service.js.map +1 -1
- package/package.json +1 -1
- package/public/{chunk-5ABKLK23.js → chunk-235LBM3B.js} +1 -1
- package/public/{chunk-ZJ6JWAV3.js → chunk-27NU6WQZ.js} +1 -1
- package/public/{chunk-CSJPBH2U.js → chunk-2HMOGNBL.js} +1 -1
- package/public/{chunk-3KBYBOSS.js → chunk-42H367SU.js} +1 -1
- package/public/chunk-4QRFLJI6.js +1 -0
- package/public/{chunk-UHQ5C7FQ.js → chunk-54LXMJYQ.js} +1 -1
- package/public/{chunk-YXE55BS4.js → chunk-5ZXQQ2HG.js} +1 -1
- package/public/chunk-7GNZ42WB.js +49 -0
- package/public/{chunk-GCCPFB5S.js → chunk-B3NSHXWE.js} +1 -1
- package/public/{chunk-S2SUDMYZ.js → chunk-BIYOA7OQ.js} +1 -1
- package/public/{chunk-H66OU3QC.js → chunk-BPPINQNJ.js} +1 -1
- package/public/{chunk-L5B7DNIL.js → chunk-CZM7QSUH.js} +1 -1
- package/public/{chunk-5FEQCEOZ.js → chunk-CZYE3NFW.js} +1 -1
- package/public/{chunk-CWEP2364.js → chunk-DNXAWIBO.js} +1 -1
- package/public/{chunk-WNJ32WSG.js → chunk-DOJIPKW5.js} +1 -1
- package/public/chunk-EYGXMMT2.js +1 -0
- package/public/{chunk-AOCL3TPK.js → chunk-FF3HWIXD.js} +1 -1
- package/public/{chunk-VIL3Z4DA.js → chunk-FRYYEQEO.js} +1 -1
- package/public/{chunk-GD2GQKWL.js → chunk-GLG2WJ6A.js} +1 -1
- package/public/{chunk-C3XPMUCT.js → chunk-GQKT4BAY.js} +1 -1
- package/public/{chunk-HO7HBWGJ.js → chunk-HW5L75QW.js} +1 -1
- package/public/{chunk-ZVHE3OME.js → chunk-IBRYVIGR.js} +1 -1
- package/public/{chunk-75SQCWEQ.js → chunk-ILBO3ZH4.js} +1 -1
- package/public/{chunk-ABF4CLOV.js → chunk-ITW3RNSC.js} +1 -1
- package/public/{chunk-NQM6DTJH.js → chunk-KMJKKA5K.js} +1 -1
- package/public/{chunk-SU4YCRCR.js → chunk-KUCY2W3L.js} +1 -1
- package/public/{chunk-QFZFMOBL.js → chunk-LPHO4KG2.js} +1 -1
- package/public/{chunk-HRJSCNXY.js → chunk-NJYCNYHB.js} +1 -1
- package/public/{chunk-EGQWTHST.js → chunk-NU7DMSMY.js} +1 -1
- package/public/{chunk-TRARPISY.js → chunk-OFQRAAIZ.js} +1 -1
- package/public/{chunk-EHCKZPFZ.js → chunk-OW4CFDUZ.js} +1 -1
- package/public/{chunk-V7H52YDU.js → chunk-Q4BU7FBH.js} +1 -1
- package/public/{chunk-QOOMMOLJ.js → chunk-QEMWAUXO.js} +1 -1
- package/public/{chunk-EASMKAMJ.js → chunk-QJBJX4NQ.js} +1 -1
- package/public/{chunk-HZLLOD5D.js → chunk-R4FP4XPM.js} +1 -1
- package/public/{chunk-IJZEHWKP.js → chunk-R4NDI4SC.js} +1 -1
- package/public/{chunk-XRKQ557C.js → chunk-RLL7PNLX.js} +1 -1
- package/public/{chunk-MOWVNR5E.js → chunk-RMWFZLUJ.js} +1 -1
- package/public/{chunk-OB2XOPJ6.js → chunk-RPLBA6LK.js} +1 -1
- package/public/chunk-SYGNRG6Y.js +1 -0
- package/public/{chunk-PJOQPCTQ.js → chunk-U2UDP4LE.js} +1 -1
- package/public/{chunk-ZH66BV3Q.js → chunk-UKEUEM4U.js} +1 -1
- package/public/{chunk-DCWPXGAK.js → chunk-UNG43GXD.js} +1 -1
- package/public/{chunk-NOWAKAJW.js → chunk-VCILGHJN.js} +1 -1
- package/public/{chunk-TU4XEKPD.js → chunk-VPOXA7DC.js} +1 -1
- package/public/{chunk-JCWLZ26O.js → chunk-VRCQGRQN.js} +1 -1
- package/public/chunk-VZDFTSCE.js +1 -0
- package/public/{chunk-US3B5NHP.js → chunk-WSDF7BFP.js} +1 -1
- package/public/{chunk-X24UNTWP.js → chunk-XKLSHSQT.js} +1 -1
- package/public/{chunk-2RM6HWEF.js → chunk-YM3EAA45.js} +1 -1
- package/public/{chunk-UTZYS5QA.js → chunk-Z2KJ3XJA.js} +2 -2
- package/public/{chunk-NULDBRZK.js → chunk-ZNUEUVZ3.js} +1 -1
- package/public/index.html +1 -1
- package/public/main-TSKDNL7I.js +1 -0
- package/public/chunk-FJ7VLDPQ.js +0 -49
- package/public/chunk-JPL4J2KJ.js +0 -1
- package/public/chunk-Q4YSKDRL.js +0 -1
- package/public/chunk-SZRMYWGQ.js +0 -1
- package/public/chunk-W3RNAH6J.js +0 -1
- package/public/main-B36Y6WMZ.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
|
|
|
12
12
|
- prevent url-based settings from being changed from a pwa
|
|
13
13
|
- added config option to advertise the ui over mdns
|
|
14
14
|
- add node 24 info to node modal + prevent node 24 upgrades on 32-bit systems
|
|
15
|
+
- added config option to for inactivity-based session timeout
|
|
15
16
|
|
|
16
17
|
### Other Changes
|
|
17
18
|
|
|
@@ -25,6 +25,7 @@ export declare class AuthController {
|
|
|
25
25
|
};
|
|
26
26
|
formAuth: boolean;
|
|
27
27
|
sessionTimeout: number;
|
|
28
|
+
sessionTimeoutInactivityBased: boolean;
|
|
28
29
|
lightingMode: "auto" | "light" | "dark";
|
|
29
30
|
serverTimestamp: string;
|
|
30
31
|
theme: string;
|
|
@@ -96,6 +97,7 @@ export declare class AuthController {
|
|
|
96
97
|
keepOrphans: any;
|
|
97
98
|
formAuth: boolean;
|
|
98
99
|
sessionTimeout: number;
|
|
100
|
+
sessionTimeoutInactivityBased: boolean;
|
|
99
101
|
lightingMode: "auto" | "light" | "dark";
|
|
100
102
|
serverTimestamp: string;
|
|
101
103
|
theme: string;
|
|
@@ -109,4 +111,5 @@ export declare class AuthController {
|
|
|
109
111
|
checkAuth(): {
|
|
110
112
|
status: string;
|
|
111
113
|
};
|
|
114
|
+
refreshToken(req: any): Promise<any>;
|
|
112
115
|
}
|
|
@@ -40,6 +40,9 @@ let AuthController = class AuthController {
|
|
|
40
40
|
checkAuth() {
|
|
41
41
|
return { status: 'OK' };
|
|
42
42
|
}
|
|
43
|
+
refreshToken(req) {
|
|
44
|
+
return this.authService.refreshToken(req.user);
|
|
45
|
+
}
|
|
43
46
|
};
|
|
44
47
|
exports.AuthController = AuthController;
|
|
45
48
|
__decorate([
|
|
@@ -84,6 +87,16 @@ __decorate([
|
|
|
84
87
|
__metadata("design:paramtypes", []),
|
|
85
88
|
__metadata("design:returntype", void 0)
|
|
86
89
|
], AuthController.prototype, "checkAuth", null);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, swagger_1.ApiBearerAuth)(),
|
|
92
|
+
(0, swagger_1.ApiOperation)({ summary: 'Refresh the authentication token to extend the session.' }),
|
|
93
|
+
(0, common_1.UseGuards)((0, passport_1.AuthGuard)()),
|
|
94
|
+
(0, common_1.Post)('/refresh'),
|
|
95
|
+
__param(0, (0, common_1.Request)()),
|
|
96
|
+
__metadata("design:type", Function),
|
|
97
|
+
__metadata("design:paramtypes", [Object]),
|
|
98
|
+
__metadata("design:returntype", void 0)
|
|
99
|
+
], AuthController.prototype, "refreshToken", null);
|
|
87
100
|
exports.AuthController = AuthController = __decorate([
|
|
88
101
|
(0, swagger_1.ApiTags)('Authentication'),
|
|
89
102
|
(0, common_1.Controller)('auth'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../src/core/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQuB;AACvB,+CAA4C;AAC5C,6CAA0F;AAE1F,6DAAwD;AACxD,yCAAoC;AACpC,iDAA4C;AAC5C,wDAAmD;AAI5C,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YACmB,WAAwB,EACxB,aAA4B;QAD5B,gBAAW,GAAX,WAAW,CAAa;QACxB,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IAIJ,MAAM,CAAS,IAAa;QAC1B,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;IACxE,CAAC;IAKD,WAAW,CAAY,GAAQ;QAC7B,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAChD,CAAC;IAMD,kBAAkB;QAChB,OAAO,IAAI,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAA;IACnD,CAAC;IAID,QAAQ;QACN,OAAO,IAAI,CAAC,WAAW,CAAC,mBAAmB,EAAE,CAAA;IAC/C,CAAC;IAMD,SAAS;QACP,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;IACzB,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../src/core/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQuB;AACvB,+CAA4C;AAC5C,6CAA0F;AAE1F,6DAAwD;AACxD,yCAAoC;AACpC,iDAA4C;AAC5C,wDAAmD;AAI5C,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YACmB,WAAwB,EACxB,aAA4B;QAD5B,gBAAW,GAAX,WAAW,CAAa;QACxB,kBAAa,GA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AAID;IAFC,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,+FAA+F,EAAE,CAAC;IAC1H,IAAA,aAAI,EAAC,SAAS,CAAC;;;;8CAGf;AAMD;IAJC,IAAA,uBAAa,GAAE;IACf,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,yDAAyD,EAAE,CAAC;IACpF,IAAA,kBAAS,EAAC,IAAA,oBAAS,GAAE,CAAC;IACtB,IAAA,YAAG,EAAC,QAAQ,CAAC;;;;+CAGb;AAMD;IAJC,IAAA,uBAAa,GAAE;IACf,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,yDAAyD,EAAE,CAAC;IACpF,IAAA,kBAAS,EAAC,IAAA,oBAAS,GAAE,CAAC;IACtB,IAAA,aAAI,EAAC,UAAU,CAAC;IACH,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;kDAEtB;yBA/CU,cAAc;IAF1B,IAAA,iBAAO,EAAC,gBAAgB,CAAC;IACzB,IAAA,mBAAU,EAAC,MAAM,CAAC;qCAGe,0BAAW;QACT,8BAAa;GAHpC,cAAc,CAgD1B"}
|
|
@@ -106,6 +106,30 @@ let AuthService = class AuthService {
|
|
|
106
106
|
expires_in: this.configService.ui.sessionTimeout,
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
+
async refreshToken(user) {
|
|
110
|
+
const currentUser = await this.findByUsername(user.username);
|
|
111
|
+
if (!currentUser) {
|
|
112
|
+
throw new common_1.UnauthorizedException('User no longer exists');
|
|
113
|
+
}
|
|
114
|
+
this.logger.log(`Request received to refresh token for ${user.username}.`);
|
|
115
|
+
if (currentUser.admin !== user.admin) {
|
|
116
|
+
throw new common_1.UnauthorizedException('User permissions have changed, please log in again');
|
|
117
|
+
}
|
|
118
|
+
if (user.instanceId !== this.configService.instanceId) {
|
|
119
|
+
throw new common_1.UnauthorizedException('Token is not valid for this instance');
|
|
120
|
+
}
|
|
121
|
+
const token = this.jwtService.sign({
|
|
122
|
+
username: user.username,
|
|
123
|
+
name: user.name,
|
|
124
|
+
admin: user.admin,
|
|
125
|
+
instanceId: user.instanceId,
|
|
126
|
+
});
|
|
127
|
+
return {
|
|
128
|
+
access_token: token,
|
|
129
|
+
token_type: 'Bearer',
|
|
130
|
+
expires_in: this.configService.ui.sessionTimeout,
|
|
131
|
+
};
|
|
132
|
+
}
|
|
109
133
|
async validateUser(payload) {
|
|
110
134
|
return payload;
|
|
111
135
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../src/core/auth/auth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAoC;AACpC,6CAAkE;AAElE,2CAQuB;AACvB,qCAAwC;AACxC,uCAA0D;AAC1D,4DAAkC;AAClC,mCAAsC;AAGtC,6DAAwD;AACxD,6DAAiD;AAG1C,IAAM,WAAW,GAAjB,MAAM,WAAW;IAGtB,YACmB,UAAsB,EACtB,aAA4B,EAC5B,MAAc;QAFd,eAAU,GAAV,UAAU,CAAY;QACtB,kBAAa,GAAb,aAAa,CAAe;QAC5B,WAAM,GAAN,MAAM,CAAQ;QALzB,kBAAa,GAAG,IAAI,oBAAS,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAA;QAOnD,IAAI,CAAC,aAAa,EAAE,CAAA;QAGpB,sBAAa,CAAC,OAAO,GAAG;YACtB,MAAM,EAAE,CAAC;SACV,CAAA;IACH,CAAC;IAQD,KAAK,CAAC,YAAY,CAAC,QAAgB,EAAE,QAAgB,EAAE,GAAY;QACjE,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAA;YAEhD,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,MAAM,IAAI,2BAAkB,EAAE,CAAA;YAChC,CAAC;YAED,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;YAExC,IAAI,IAAI,CAAC,SAAS,IAA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AAA;QACb,CAAC;QAED,OAAO,KAAK,CAAA;IACd,CAAC;CACF,CAAA;AAhhBY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAKoB,gBAAU;QACP,8BAAa;QACpB,uBAAM;GANtB,WAAW,CAghBvB"}
|
|
@@ -61,6 +61,7 @@ export declare class ConfigService {
|
|
|
61
61
|
};
|
|
62
62
|
formAuth: boolean;
|
|
63
63
|
sessionTimeout: number;
|
|
64
|
+
sessionTimeoutInactivityBased: boolean;
|
|
64
65
|
lightingMode: "auto" | "light" | "dark";
|
|
65
66
|
serverTimestamp: string;
|
|
66
67
|
theme: string;
|
|
@@ -132,6 +133,7 @@ export declare class ConfigService {
|
|
|
132
133
|
keepOrphans: any;
|
|
133
134
|
formAuth: boolean;
|
|
134
135
|
sessionTimeout: number;
|
|
136
|
+
sessionTimeoutInactivityBased: boolean;
|
|
135
137
|
lightingMode: "auto" | "light" | "dark";
|
|
136
138
|
serverTimestamp: string;
|
|
137
139
|
theme: string;
|
|
@@ -113,6 +113,7 @@ let ConfigService = class ConfigService {
|
|
|
113
113
|
},
|
|
114
114
|
formAuth: Boolean(this.ui.auth !== 'none'),
|
|
115
115
|
sessionTimeout: this.ui.sessionTimeout || 28800,
|
|
116
|
+
sessionTimeoutInactivityBased: Boolean(this.ui.sessionTimeoutInactivityBased),
|
|
116
117
|
lightingMode: this.ui.lightingMode || 'auto',
|
|
117
118
|
serverTimestamp: new Date().toISOString(),
|
|
118
119
|
theme: this.ui.theme || 'deep-purple',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.service.js","sourceRoot":"","sources":["../../../src/core/config/config.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAIA,6CAAqD;AACrD,qCAAqD;AACrD,yCAAmC;AACnC,gEAAkC;AAElC,2CAA2C;AAC3C,uCASiB;AACjB,mCAAgC;AAChC,mCAAkC;AAG3B,IAAM,aAAa,GAAnB,MAAM,aAAa;IAyExB;QAxEO,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SAAS,GAAG,QAAQ,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;gBACvF,IAAI,CAAC,mBAAmB,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAA;YACxD,CAAC;QACH,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;QAEb,CAAC;IACH,CAAC;IAEM,oBAAoB;QACzB,IAAI,CAAC,mBAAmB,GAAG,SAAS,CAAA;IACtC,CAAC;IAKM,qBAAqB;QAC1B,OAAO,IAAA,2BAAgB,EAAC,IAAA,mBAAO,EAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAA;IACvE,CAAC;IAKO,KAAK,CAAC,2BAA2B;QACvC,IAAI,CAAC;YACH,IAAI,CAAC,oBAAoB,GAAG,MAAM,IAAA,qBAAU,EAAC,mBAAmB,CAAC,IAAI,MAAM,IAAA,qBAAU,EAAC,uBAAuB,CAAC,CAAA;QAChH,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAA;QACnC,CAAC;IACH,CAAC;CACF,CAAA;AA1XY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;;GACA,aAAa,CA0XzB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-config-ui-x",
|
|
3
3
|
"displayName": "Homebridge UI",
|
|
4
|
-
"version": "5.6.1-beta.
|
|
4
|
+
"version": "5.6.1-beta.6",
|
|
5
5
|
"description": "A web based management, configuration and control platform for Homebridge.",
|
|
6
6
|
"author": "oznu <dev@oz.nu>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as P}from"./chunk-YRDGMK4T.js";import{a as z}from"./chunk-V4K2YYFC.js";import{B as $,c as E,e as y,l as k}from"./chunk-D2RHA7X2.js";import{b as D}from"./chunk-LV5TYHZ7.js";import{b as O}from"./chunk-
|
|
1
|
+
import{a as P}from"./chunk-YRDGMK4T.js";import{a as z}from"./chunk-V4K2YYFC.js";import{B as $,c as E,e as y,l as k}from"./chunk-D2RHA7X2.js";import{b as D}from"./chunk-LV5TYHZ7.js";import{b as O}from"./chunk-EYGXMMT2.js";import{k as T,n as I,q as H}from"./chunk-NJYCNYHB.js";import{Db as g,Gb as _,Ib as a,La as p,Vb as v,Wa as x,ac as b,bc as M,cc as V,h as S,ja as r,lb as m,mb as u,oa as l,pa as c,rb as f,sb as d,tb as s,ub as w,w as C}from"./chunk-ZHRPBG7M.js";function A(i,h){i&1&&w(0,"i",6)}function L(i,h){i&1&&w(0,"i",7)}function F(i,h){if(i&1){let t=g();d(0,"ngx-monaco-editor",10),_("onInit",function(e){l(t);let o=a();return c(o.onEditorInit(e))})("keydown.control.s",function(e){l(t);let o=a();return e.preventDefault(),c(o.onSave())})("keydown.meta.s",function(e){l(t);let o=a();return e.preventDefault(),c(o.onSave())}),s()}if(i&2){let t=a();f("options",t.editorOptions)("model",t.monacoEditorModel)}}function W(i,h){if(i&1){let t=g();d(0,"textarea",11),V("ngModelChange",function(e){l(t);let o=a();return M(o.startupScript,e)||(o.startupScript=e),c(e)}),v(1," "),s()}if(i&2){let t=a();b("ngModel",t.startupScript)}}var tt=(()=>{class i{$api=r(H);$md=r(z);$route=r(D);$settings=r(O);$toastr=r(I);$translate=r(T);lastHeight;visualViewPortEventCallback;startupScript;saveInProgress;isMobile=!1;options={printMargin:!1};monacoEditor;editorOptions;monacoEditorModel;constructor(){this.isMobile=this.$md.detect.mobile()}ngOnInit(){this.editorOptions={language:"shell",theme:this.$settings.actualLightingMode==="dark"?"vs-dark":"vs-light"},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(t=>{this.startupScript=t.startupScript.script}),this.monacoEditorModel={value:"",language:"shell"}}onEditorInit(t){this.monacoEditor=t,this.monacoEditor.getModel().setValue(this.startupScript)}onSave(){return S(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
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
3
|
|
|
4
4
|
${this.startupScript}`,this.isMobile||this.monacoEditor.getModel().setValue(this.startupScript),this.saveInProgress=!1;return}try{yield C(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(t){console.error(t),this.$toastr.error(t.message,this.$translate.instant("toast.title_error"))}this.saveInProgress=!1}})}ngOnDestroy(){window.visualViewport&&(window.visualViewport.removeEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.enableTouchMove()),this.monacoEditor&&this.monacoEditor.dispose()}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)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=x({type:i,selectors:[["ng-component"]],decls:11,vars:4,consts:[[1,"flex-column","d-flex","align-items-stretch","h-100"],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0","font-monospace"],[1,"col-6","text-end"],[1,"btn","btn-primary","waves-effect","m-0",3,"click","disabled"],[1,"fas","fa-spinner","fa-pulse"],[1,"fas","fa-floppy-disk"],[1,"flex-grow-1","h-100","w-100","my-2",3,"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,"ngModel"],[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(n,e){n&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),v(4,"startup.sh"),s()(),d(5,"div",4)(6,"button",5),_("click",function(){return e.onSave()}),m(7,A,1,0,"i",6)(8,L,1,0,"i",7),s()()(),m(9,F,1,2,"ngx-monaco-editor",8),m(10,W,2,1,"textarea",9),s()),n&2&&(p(6),f("disabled",e.saveInProgress),p(),u(e.saveInProgress?7:8),p(2),u(e.isMobile?-1:9),p(),u(e.isMobile?10:-1))},dependencies:[P,$,E,y,k],encapsulation:2})}return i})();export{tt as StartupScriptComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Vi}from"./chunk-2RM6HWEF.js";import{a as Bi}from"./chunk-OQM4FTFW.js";import{N as Ii,P as X}from"./chunk-FJ7VLDPQ.js";import"./chunk-ZH66BV3Q.js";import{f as j}from"./chunk-PJOQPCTQ.js";import"./chunk-YRDGMK4T.js";import{a as Ti}from"./chunk-V4K2YYFC.js";import"./chunk-SU4YCRCR.js";import"./chunk-MD7IQ7EC.js";import"./chunk-CGPMZGNR.js";import"./chunk-UERLDONE.js";import"./chunk-5N45B6R7.js";import"./chunk-IHGRCBAQ.js";import{a as ki}from"./chunk-US3B5NHP.js";import{g as hi,h as bi,i as xi,j as vi,k as yi,l as Pi,m as A,n as R,t as L}from"./chunk-QHDPBN4J.js";import{B as fi,C as Ci,c as si,e as di,f as pi,g as ci,j as ui,m as mi,q as gi,r as _i}from"./chunk-D2RHA7X2.js";import{a as K}from"./chunk-UHQ5C7FQ.js";import{b as J}from"./chunk-JPL4J2KJ.js";import{a as wi,d as Si}from"./chunk-LV5TYHZ7.js";import{b as Q}from"./chunk-Q4YSKDRL.js";import{k as H,l as k,n as G,q as W}from"./chunk-HRJSCNXY.js";import{Db as y,Ga as V,Gb as f,Ha as M,Ia as ei,Ib as u,Kc as D,La as n,Mb as ti,Nb as ni,Nc as li,Ob as oi,Rc as ri,Ub as Y,Vb as c,Wa as S,Wb as h,Xb as b,dc as Z,gc as $,h as I,hc as B,ic as ai,ja as P,kb as w,lb as m,mb as g,mc as r,nc as s,oa as x,ob as z,oc as E,pa as v,pb as U,qb as q,rb as C,sb as o,tb as a,ub as p,w as N}from"./chunk-ZHRPBG7M.js";var Hi=e=>({pluginName:e}),Oi=(e,d)=>({setting:e,value:d});function ji(e,d){e&1&&(o(0,"li"),c(1),r(2,"translate"),a(),o(3,"li"),c(4),r(5,"translate"),a()),e&2&&(n(),h(s(2,2,"plugins.manage.confirm_disable_platform_1")),n(3),h(s(5,4,"plugins.manage.confirm_disable_platform_2")))}function Fi(e,d){e&1&&(o(0,"li"),c(1),r(2,"translate"),a(),o(3,"li"),c(4),r(5,"translate"),a()),e&2&&(n(),h(s(2,2,"plugins.manage.confirm_disable_accessory_1")),n(3),h(s(5,4,"plugins.manage.confirm_disable_accessory_2")))}function zi(e,d){if(e&1&&(o(0,"ul",15),p(1,"li",16),r(2,"translate"),o(3,"ul",17),m(4,ji,6,6)(5,Fi,6,6),a()()),e&2){let i=u(2);n(),C("innerHtml",E(2,2,"plugins.manage.confirm_disable_setting",B(5,Oi,i.keepOrphansName,i.keepOrphansValue)),V),n(3),g(i.keepOrphans?4:5)}}function Ui(e,d){e&1&&(o(0,"ul",15)(1,"li"),c(2),r(3,"translate"),a(),o(4,"li"),c(5),r(6,"translate"),a()()),e&2&&(n(2),h(s(3,2,"plugins.manage.confirm_disable_accessory_1")),n(3),h(s(6,4,"plugins.manage.confirm_disable_accessory_2")))}function qi(e,d){if(e&1&&m(0,zi,6,8,"ul",15)(1,Ui,7,6,"ul",15),e&2){let i=u();g(i.isConfiguredDynamicPlatform?0:1)}}var Ei=(()=>{class e{$activeModal=P(A);$translate=P(H);pluginName;isConfigured=!1;isConfiguredDynamicPlatform=!1;keepOrphans=!1;keepOrphansName=`<code>${this.$translate.instant("settings.startup.keep_accessories")}</code>`;keepOrphansValue=`<code>${this.keepOrphans}</code>`;dismissModal(){this.$activeModal.dismiss("Dismiss")}closeModal(){this.$activeModal.close()}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=S({type:e,selectors:[["ng-component"]],inputs:{pluginName:"pluginName",isConfigured:"isConfigured",isConfiguredDynamicPlatform:"isConfiguredDynamicPlatform",keepOrphans:"keepOrphans"},decls:25,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3","text-center"],[1,"fas","fa-circle-pause","primary-text",2,"font-size","75px"],["type","warning",1,"mb-0",3,"dismissible"],[1,"w-100","text-center","mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click"],[1,"mb-3"],[3,"innerHtml"],[1,"mb-1"]],template:function(l,t){l&1&&(o(0,"div",0)(1,"div",1)(2,"h5",2),c(3),a(),o(4,"button",3),r(5,"translate"),f("click",function(){return t.dismissModal()}),a()(),o(6,"div",4)(7,"div",5),p(8,"i",6),a(),m(9,qi,2,1),o(10,"ngb-alert",7)(11,"p",8),c(12),r(13,"translate"),a()()(),o(14,"div",9)(15,"div",10)(16,"button",11),r(17,"translate"),f("click",function(){return t.dismissModal()}),c(18),r(19,"translate"),a()(),p(20,"div",12),o(21,"div",13)(22,"button",14),f("click",function(){return t.closeModal()}),c(23),r(24,"translate"),a()()()()),l&2&&(n(3),h(t.pluginName),n(),w("aria-label",s(5,8,"form.button_close")),n(5),g(t.isConfigured?9:-1),n(),C("dismissible",!1),n(2),h(E(13,10,"plugins.manage.confirm_disable",$(19,Hi,t.pluginName))),n(4),w("aria-label",s(17,13,"form.button_close")),n(2),b(" ",s(19,15,"form.button_close")," "),n(5),b(" ",s(24,17,"plugins.manage.disable")," "))},dependencies:[hi,k],encapsulation:2})}return e})();var Ri=e=>({author:e});function Li(e,d){if(e&1&&(o(0,"li",9),p(1,"i",15),o(2,"a",16),c(3),a()()),e&2){let i=d.$implicit,l=u();n(),C("ngClass",l.getIconClass(i.type)),n(),C("href",i.url,M),n(),h(i.url)}}var Mi=(()=>{class e{$activeModal=P(A);plugin;fundingOptions;ngOnInit(){this.plugin.funding||this.$activeModal.close(),this.plugin.name==="homebridge-config-ui-x"&&(this.plugin.author="oznu"),Array.isArray(this.plugin.funding)?this.fundingOptions=this.plugin.funding.map(i=>{if(typeof i=="string")return{type:"other",url:i};if(typeof i=="object")return{type:i.type||"other",url:i.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(i){switch(i.toLowerCase()){case"paypal":return"fab fa-paypal";case"github":return"fab fa-github";case"patreon":return"fab fa-patreon";case"kofi":case"ko-fi":return"fas fa-coffee";default:return"fas fa-link"}}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=S({type:e,selectors:[["ng-component"]],inputs:{plugin:"plugin"},decls:28,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","pink-text","mb-3"],[1,"fas","fa-heart",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box"],[1,"list-group-item"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"],[1,"me-2","primary-text","fa-xl",3,"ngClass"],["target","_blank","rel","noopener noreferrer",1,"text-break-all",3,"href"]],template:function(l,t){l&1&&(o(0,"div",0)(1,"div",1)(2,"h5",2),c(3),r(4,"translate"),a(),o(5,"button",3),r(6,"translate"),f("click",function(){return t.dismissModal()}),a()(),o(7,"div",4)(8,"div",5),p(9,"i",6),a(),o(10,"ul",7)(11,"li"),c(12),r(13,"translate"),a(),o(14,"li"),c(15),r(16,"translate"),a()(),o(17,"ul",8),U(18,Li,4,3,"li",9,z),a()(),o(20,"div",10),p(21,"div",11),o(22,"div",12)(23,"button",13),r(24,"translate"),f("click",function(){return t.dismissModal()}),c(25),r(26,"translate"),a()(),p(27,"div",14),a()()),l&2&&(n(3),h(E(4,6,"plugins.donate.tile_donate_to",$(19,Ri,"@"+t.plugin.author))),n(2),w("aria-label",s(6,9,"form.button_close")),n(7),h(s(13,11,"plugins.donate.message_1")),n(3),h(s(16,13,"plugins.donate.message_2")),n(3),q(t.fundingOptions),n(5),w("aria-label",s(24,15,"form.button_close")),n(2),b(" ",s(26,17,"form.button_close")," "))},dependencies:[D,k],styles:[".text-break-all[_ngcontent-%COMP%]{word-break:break-all}"]})}return e})();var Gi=(e,d)=>({"orange-text":e,"grey-text":d}),ii=e=>({opacity:e}),Wi=(e,d)=>({"green-text":e,"grey-text":d}),Qi=(e,d)=>({"purple-text":e,"grey-text":d}),Ji=(e,d)=>({scopedLink:e,verifiedLink:d});function Ki(e,d){e&1&&(o(0,"h6",18),c(1),r(2,"translate"),a(),o(3,"p",19),c(4),r(5,"translate"),a(),o(6,"p",19),c(7),r(8,"translate"),a()),e&2&&(n(),h(s(2,3,"plugins.manage.scoped_subtitle")),n(3),h(s(5,5,"plugins.manage.scoped_message")),n(3),h(s(8,7,"plugins.manage.verified_message")))}function Xi(e,d){e&1&&(o(0,"h6",18),c(1),r(2,"translate"),a(),o(3,"p",19),c(4),r(5,"translate"),a()),e&2&&(n(),h(s(2,2,"plugins.manage.verified_subtitle")),n(3),h(s(5,4,"plugins.manage.verified_message")))}function Yi(e,d){e&1&&(o(0,"h6",18),c(1),r(2,"translate"),a(),o(3,"p",19),c(4),r(5,"translate"),a()),e&2&&(n(),h(s(2,2,"plugins.manage.unverified_subtitle")),n(3),h(s(5,4,"plugins.manage.unverified_message")))}function Zi(e,d){if(e&1){let i=y();o(0,"button",20),f("click",function(){x(i);let t=u();return v(t.dismissModal())}),c(1),r(2,"translate"),a()}e&2&&(n(),b(" ",s(2,1,"form.button_close")," "))}function ie(e,d){if(e&1){let i=y();o(0,"button",20),f("click",function(){x(i);let t=u();return v(t.dismissModal())}),c(1),r(2,"translate"),a()}e&2&&(n(),b(" ",s(2,1,"form.button_close")," "))}function ee(e,d){if(e&1&&(o(0,"a",17),c(1),r(2,"translate"),p(3,"i",21),a()),e&2){let i=u();C("href",i.plugin.links.homepage||i.plugin.links.npm,M),n(),b(" ",s(2,2,"plugins.button_homepage")," ")}}var $i=(()=>{class e{$activeModal=P(A);plugin;defaultIcon="assets/hb-icon.png";linkScoped='<a href="https://github.com/homebridge/plugins/wiki/Scoped-Plugins" target="_blank"><i class="fas fa-external-link-alt primary-text"></i></a>';linkVerified='<a href="https://github.com/homebridge/plugins/wiki/Verified-Plugins" target="_blank"><i class="fas fa-external-link-alt primary-text"></i></a>';ngOnInit(){this.plugin.icon||(this.plugin.icon=this.defaultIcon)}handleIconError(){this.plugin.icon=this.defaultIcon}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=S({type:e,selectors:[["ng-component"]],inputs:{plugin:"plugin"},decls:32,vars:45,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],["alt","Plugin Icon",1,"mb-3","plugin-icon-card",3,"error","src"],[1,"mb-1"],[1,"grey-text","mb-0","font-monospace"],[1,"grey-text","mb-1","font-monospace"],[1,"mb-3"],[1,"fas","fa-shield-alt","mb-3",2,"font-size","48px",3,"ngClass","ngStyle"],[1,"mb-0","grey-text",3,"innerHTML"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-center"],[1,"text-end"],["target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","text-decoration-none",3,"href"],[1,"mb-2"],[1,"mb-1","grey-text"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"fas","fa-external-link-alt"]],template:function(l,t){l&1&&(o(0,"div",0)(1,"div",1)(2,"h5",2),c(3),r(4,"translate"),a(),o(5,"button",3),r(6,"translate"),f("click",function(){return t.dismissModal()}),a()(),o(7,"div",4)(8,"img",5),f("error",function(){return t.handleIconError()}),a(),o(9,"h4",6),c(10),a(),o(11,"p",7),c(12),a(),o(13,"p",8),c(14),a(),o(15,"p",9),c(16),a(),p(17,"i",10)(18,"i",10)(19,"i",10),m(20,Ki,9,9),m(21,Xi,6,6),m(22,Yi,6,6),p(23,"p",11),r(24,"translate"),a(),o(25,"div",12)(26,"div",13),m(27,Zi,3,3,"button",14),a(),o(28,"div",15),m(29,ie,3,3,"button",14),a(),o(30,"div",16),m(31,ee,4,4,"a",17),a()()()),l&2&&(n(3),h(s(4,20,"plugins.manage.information")),n(2),w("aria-label",s(6,22,"form.button_close")),n(3),C("src",t.plugin.icon,M),n(2),h(t.plugin.displayName),n(2),h(t.plugin.name),n(2),b("@",t.plugin.author),n(2),h(t.plugin.description),n(),C("ngClass",B(27,Gi,!t.plugin.verifiedPlugin&&!t.plugin.verifiedPlusPlugin,t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin))("ngStyle",$(30,ii,!t.plugin.verifiedPlugin&&!t.plugin.verifiedPlusPlugin?1:.25)),n(),C("ngClass",B(32,Wi,!t.plugin.isHbScoped&&(t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin),t.plugin.isHbScoped||!t.plugin.verifiedPlugin&&!t.plugin.verifiedPlusPlugin))("ngStyle",$(35,ii,!t.plugin.isHbScoped&&(t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin)?1:.25)),n(),C("ngClass",B(37,Qi,t.plugin.isHbScoped,!t.plugin.isHbScoped))("ngStyle",$(40,ii,t.plugin.isHbScoped?1:.25)),n(),g(t.plugin.isHbScoped?20:-1),n(),g(!t.plugin.isHbScoped&&(t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin)?21:-1),n(),g(!t.plugin.verifiedPlugin&&!t.plugin.verifiedPlusPlugin?22:-1),n(),C("innerHTML",E(24,24,"plugins.manage.more_info",B(42,Ji,t.linkScoped,t.linkVerified)),V),n(4),g(t.plugin.links.homepage||t.plugin.links.npm?27:-1),n(2),g(!t.plugin.links.homepage&&!t.plugin.links.npm?29:-1),n(2),g(t.plugin.links.homepage||t.plugin.links.npm?31:-1))},dependencies:[D,li,k],styles:[".plugin-icon[_ngcontent-%COMP%]{height:75px;width:75px;border-radius:15px;border:1px solid #222222}"]})}return e})();var te=(e,d,i)=>({"purple-text":e,"green-text":d,"orange-text":i}),ne=(e,d)=>({"fa-bridge-circle-exclamation orange-text":e,"fa-bridge-circle-xmark red-text":d});function oe(e,d){if(e&1){let i=y();o(0,"a",21),r(1,"translate"),r(2,"translate"),f("click",function(){x(i);let t=u(2);return v(t.checkAndUpdatePlugin())}),p(3,"i",22),a()}e&2&&(C("openDelay",150)("ngbTooltip",s(1,3,"plugins.button_update")),w("aria-label",s(2,5,"plugins.button_update")))}function ae(e,d){if(e&1){let i=y();o(0,"a",21),r(1,"translate"),r(2,"translate"),f("click",function(){x(i);let t=u(2);return v(t.switchToScoped())}),p(3,"i",23),a()}e&2&&(C("openDelay",150)("ngbTooltip",s(1,3,"plugins.manage.scoped.switch")),w("aria-label",s(2,5,"plugins.manage.scoped.switch")))}function le(e,d){if(e&1){let i=y();o(0,"a",24),r(1,"translate"),r(2,"translate"),f("click",function(){x(i);let t=u(2);return v(t.openSettings())}),p(3,"i",25),a()}e&2&&(C("ngbTooltip",s(1,3,"plugins.button_set_up"))("openDelay",150),w("aria-label",s(2,5,"plugins.button_set_up")))}function re(e,d){if(e&1){let i=y();o(0,"a",24),r(1,"translate"),r(2,"translate"),f("click",function(){x(i);let t=u(2);return v(t.openBridgeSettings())}),p(3,"i",26),a()}e&2&&(C("ngbTooltip",s(1,3,"child_bridge.setup"))("openDelay",150),w("aria-label",s(2,5,"child_bridge.setup")))}function se(e,d){if(e&1){let i=y();o(0,"a",24),r(1,"translate"),r(2,"translate"),f("click",function(){x(i);let t=u(2);return v(t.openBridgeSettings())}),p(3,"i",27),a()}e&2&&(C("ngbTooltip",s(1,3,"child_bridge.bridge_connect"))("openDelay",150),w("aria-label",s(2,5,"child_bridge.bridge_connect")))}function de(e,d){if(e&1&&p(0,"i",20),e&2){let i=u(2);C("ngClass",B(1,ne,i.childBridgeStatus==="pending",i.childBridgeStatus==="down"))}}function pe(e,d){if(e&1&&(o(0,"div",9),m(1,oe,4,7,"a",17),m(2,ae,4,7,"a",17),m(3,le,4,7,"a",18),m(4,re,4,7,"a",18),m(5,se,4,7,"a",18),p(6,"i",19),m(7,de,1,4,"i",20),a()),e&2){let i=u();n(),g(i.plugin.installedVersion&&i.plugin.updateAvailable&&!i.childBridgeRestartInProgress?1:-1),n(),g(i.plugin.installedVersion&&(i.plugin.newHbScope==null?null:i.plugin.newHbScope.switch)===i.plugin.installedVersion&&!i.childBridgeRestartInProgress?2:-1),n(),g(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&!i.plugin.isConfigured&&!i.childBridgeRestartInProgress&&!i.plugin.disabled?3:-1),n(),g(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&i.plugin.recommendChildBridge&&!i.childBridgeRestartInProgress?4:-1),n(),g(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&!i.childBridgeRestartInProgress&&i.hasUnpairedChildBridges&&i.childBridgeStatus==="ok"&&!i.plugin.disabled?5:-1),n(),C("hidden",!i.childBridgeRestartInProgress),n(),g(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&!i.childBridgeRestartInProgress&&!i.hasUnpairedChildBridges&&i.childBridgeStatus!=="ok"&&!i.plugin.disabled?7:-1)}}function ce(e,d){if(e&1){let i=y();o(0,"a",11),f("click",function(){x(i);let t=u();return v(t.openFundingModal(t.plugin))}),p(1,"i",28),o(2,"span",13),c(3),a()()}if(e&2){let i=u();n(3),b("@",i.plugin.author)}}function ue(e,d){if(e&1&&(o(0,"span",13),p(1,"i",29),c(2),a()),e&2){let i=u();n(2),b("@",i.plugin.author," ")}}function me(e,d){if(e&1&&(o(0,"span"),c(1),r(2,"date"),a()),e&2){let i=u(2);n(),b("(",E(2,1,i.plugin.lastUpdated,"yyyy-MM-dd"),")")}}function ge(e,d){if(e&1&&(o(0,"span"),p(1,"i",30),o(2,"span",13),c(3),m(4,me,3,4,"span"),a()()),e&2){let i=u();n(3),b("v",i.plugin.latestVersion," "),n(),g(i.plugin.lastUpdated?4:-1)}}function _e(e,d){if(e&1&&(p(0,"i",31),c(1)),e&2){let i=u();n(),b("v",i.plugin.installedVersion," ")}}function fe(e,d){if(e&1){let i=y();o(0,"a",21),r(1,"translate"),f("click",function(){x(i);let t=u(2);return v(t.doChildBridgeAction("restart"))}),p(2,"i",35),a()}if(e&2){let i=u(2);C("openDelay",150)("ngbTooltip",s(1,2,i.setChildBridges.length>1?"child_bridge.restart_plural":"child_bridge.restart"))}}function Ce(e,d){if(e&1){let i=y();o(0,"a",36),f("click",function(){x(i);let t=u(2);return v(t.enablePlugin(t.plugin))}),p(1,"i",37),r(2,"translate"),a()}e&2&&(n(),C("ngbTooltip",s(2,2,"plugins.status_disabled"))("openDelay",150))}function he(e,d){if(e&1){let i=y();o(0,"a",38),f("click",function(){x(i);let t=u(2);return v(t.installAlternateVersion())}),p(1,"i",39),a()}}function be(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.viewPluginLog())}),p(1,"i",48),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"plugins.manage.plugin_logs")," "))}function xe(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.installAlternateVersion())}),p(1,"i",49),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"plugins.manage.manage_version")," "))}function ve(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.openJsonEditor())}),p(1,"i",50),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"plugins.manage.json_config")," "))}function ye(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.disablePlugin(t.plugin))}),p(1,"i",51),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"plugins.manage.disable")," "))}function Pe(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.enablePlugin(t.plugin))}),p(1,"i",52),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"plugins.manage.enable")," "))}function we(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.uninstallPlugin())}),p(1,"i",53),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"plugins.button_uninstall")," "))}function Se(e,d){e&1&&p(0,"div",46)}function ke(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(4);return v(t.doChildBridgeAction("restart"))}),p(1,"i",56),c(2),r(3,"translate"),a()}if(e&2){let i=u(4);n(2),b(" ",s(3,1,i.setChildBridges.length>1?"child_bridge.restart_plural":"child_bridge.restart")," ")}}function Be(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(4);return v(t.doChildBridgeAction("stop"))}),p(1,"i",57),c(2),r(3,"translate"),a()}if(e&2){let i=u(4);n(2),b(" ",s(3,1,i.setChildBridges.length>1?"child_bridge.stop_plural":"child_bridge.stop")," ")}}function Te(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(4);return v(t.doChildBridgeAction("start"))}),p(1,"i",58),c(2),r(3,"translate"),a()}if(e&2){let i=u(4);n(2),b(" ",s(3,1,i.setChildBridges.length>1?"child_bridge.start_plural":"child_bridge.start")," ")}}function Ie(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.openBridgeSettings())}),p(1,"i",54),c(2),r(3,"translate"),a(),m(4,ke,4,3,"button",45),m(5,Be,4,3,"button",45),m(6,Te,4,3,"button",45),o(7,"button",43),f("click",function(){x(i);let t=u(3);return v(t.resetChildBridges())}),p(8,"i",55),c(9),r(10,"translate"),a()}if(e&2){let i=u(3);n(2),b(" ",s(3,5,"child_bridge.bridge_settings")," "),n(2),g(i.childBridgeRestartInProgress?-1:4),n(),g(i.allChildBridgesStopped?-1:5),n(),g(i.allChildBridgesStopped?6:-1),n(3),b(" ",s(10,7,"child_bridge.reset_accessories")," ")}}function Ve(e,d){e&1&&p(0,"div",46)}function Ee(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.openBridgeSettings())}),p(1,"i",59),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"child_bridge.setup")," "))}function Me(e,d){e&1&&p(0,"div",46)}function $e(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.openBridgeSettings())}),p(1,"i",59),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"child_bridge.setup")," "))}function De(e,d){e&1&&p(0,"div",46)}function Ae(e,d){if(e&1&&(o(0,"a",47),p(1,"i",60),c(2),r(3,"translate"),a()),e&2){let i=u(3);C("href",i.plugin.links.bugs,M),n(2),b(" ",s(3,2,"support.links.issue")," ")}}function Ne(e,d){if(e&1){let i=y();o(0,"span",34)(1,"a",40),p(2,"i",41),a(),o(3,"div",42)(4,"button",43),f("click",function(){x(i);let t=u(2);return v(t.openSettings())}),p(5,"i",44),c(6),r(7,"translate"),a(),m(8,be,4,3,"button",45),m(9,xe,4,3,"button",45),m(10,ve,4,3,"button",45),m(11,ye,4,3,"button",45),m(12,Pe,4,3,"button",45),m(13,we,4,3,"button",45),m(14,Se,1,0,"div",46),m(15,Ie,11,9),m(16,Ve,1,0,"div",46),m(17,Ee,4,3,"button",45),m(18,Me,1,0,"div",46),m(19,$e,4,3,"button",45),m(20,De,1,0,"div",46),m(21,Ae,4,4,"a",47),a()()}if(e&2){let i=u(2);n(),w("aria-label","Plugin Actions Dropdown"),n(5),b(" ",s(7,16,"plugins.button_settings")," "),n(2),g(i.plugin.isConfigured&&!i.plugin.disabled?8:-1),n(),g(i.plugin.publicPackage?9:-1),n(),g(!i.isMobile&&i.plugin.name!=="homebridge-config-ui-x"?10:-1),n(),g(i.plugin.name!=="homebridge-config-ui-x"&&!i.plugin.disabled?11:-1),n(),g(i.plugin.name!=="homebridge-config-ui-x"&&i.plugin.disabled?12:-1),n(),g(i.plugin.name!=="homebridge-config-ui-x"?13:-1),n(),g(!i.plugin.disabled&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&i.plugin.installedVersion&&i.plugin.name!=="homebridge-config-ui-x"?14:-1),n(),g(i.plugin.hasChildBridges&&!i.plugin.disabled?15:-1),n(),g(i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&!i.plugin.recommendChildBridge?16:-1),n(),g(i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&!i.plugin.recommendChildBridge?17:-1),n(),g(i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&i.plugin.recommendChildBridge&&i.plugin.updateAvailable?18:-1),n(),g(i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&i.plugin.recommendChildBridge&&i.plugin.updateAvailable?19:-1),n(),g(i.plugin.links!=null&&i.plugin.links.bugs?20:-1),n(),g(i.plugin.links!=null&&i.plugin.links.bugs?21:-1)}}function He(e,d){if(e&1&&(o(0,"div",9),m(1,fe,3,4,"a",17),m(2,Ce,3,4,"a",32),m(3,he,2,0,"a",33),m(4,Ne,22,18,"span",34),a()),e&2){let i=u();n(),g(!i.plugin.disabled&&i.plugin.hasChildBridges&&i.childBridgeStatus==="ok"?1:-1),n(),g(i.plugin.installedVersion&&i.plugin.disabled?2:-1),n(),g(i.plugin.publicPackage&&!i.plugin.installedVersion?3:-1),n(),g(i.plugin.installedVersion?4:-1)}}var Di=(()=>{class e{$api=P(W);$auth=P(J);$md=P(Ti);$modal=P(R);$plugin=P(X);$settings=P(Q);$toastr=P(G);$translate=P(H);$ws=P(K);io;plugin;hasChildBridges=!1;hasUnpairedChildBridges=!1;allChildBridgesStopped=!1;childBridgeStatus="pending";childBridgeRestartInProgress=!1;defaultIcon="assets/hb-icon.png";isMobile;setChildBridges=[];hb2Status="unknown";isAdmin=this.$auth.user.admin;set childBridges(i){this.hasChildBridges=i.length>0,this.hasUnpairedChildBridges=i.filter(_=>_.paired===!1).length>0,this.allChildBridgesStopped=i.filter(_=>_.manuallyStopped===!0).length===i.length,this.hasChildBridges&&(i.some(_=>_.status==="down")?this.childBridgeStatus="down":i.some(_=>_.status==="pending")?this.childBridgeStatus="pending":i.some(_=>_.status==="ok")&&(this.childBridgeStatus="ok")),this.setChildBridges=i;let l=this.$settings.env.homebridgeVersion?.split(".")[0],t=this.plugin.engines?.homebridge?.split("||").map(_=>_.trim())||[];this.hb2Status=l==="2"?"hide":t.some(_=>_.startsWith("^2")||_.startsWith(">=2"))?"supported":this.hb2Status}ngOnInit(){this.isMobile=this.$md.detect.mobile(),this.io=this.$ws.getExistingNamespace("child-bridges"),this.isMobile&&this.plugin.displayName.toLowerCase().startsWith("homebridge ")&&(this.plugin.displayName=this.plugin.displayName.replace(/^homebridge /i,"")),this.plugin.icon||(this.plugin.icon=this.defaultIcon)}openFundingModal(i){let l=this.$modal.open(Mi,{size:"lg",backdrop:"static"});l.componentInstance.plugin=i}pluginInfoModal(i){let l=this.$modal.open($i,{size:"lg",backdrop:"static"});l.componentInstance.plugin=i}disablePlugin(i){let l=this.$modal.open(Ei,{size:"lg",backdrop:"static"});l.componentInstance.pluginName=i.displayName,l.componentInstance.isConfigured=i.isConfigured,l.componentInstance.isConfiguredDynamicPlatform=i.isConfiguredDynamicPlatform,l.componentInstance.keepOrphans=this.$settings.keepOrphans,l.result.then(()=>I(this,null,function*(){try{yield N(this.$api.put(`/config-editor/plugin/${encodeURIComponent(i.name)}/disable`,{})),i.disabled=!0,this.hasChildBridges&&this.doChildBridgeAction("stop"),this.$modal.open(j,{size:"lg",backdrop:"static"})}catch(t){console.error(t),this.$toastr.error(this.$translate.instant("plugins.disable.error"),this.$translate.instant("toast.title_error"))}}))}enablePlugin(i){let l=this.$modal.open(ki,{size:"lg",backdrop:"static"});l.componentInstance.title=i.name,l.componentInstance.message=this.$translate.instant("plugins.manage.confirm_enable",{pluginName:i.displayName}),l.componentInstance.confirmButtonLabel=this.$translate.instant("plugins.manage.enable"),l.componentInstance.faIconClass="fa-circle-play primary-text",l.result.then(()=>I(this,null,function*(){try{yield N(this.$api.put(`/config-editor/plugin/${encodeURIComponent(i.name)}/enable`,{})),i.disabled=!1,this.hasChildBridges&&(yield this.doChildBridgeAction("start")),this.$modal.open(j,{size:"lg",backdrop:"static"})}catch(t){console.error(t),this.$toastr.error(this.$translate.instant("plugins.enable.error"),this.$translate.instant("toast.title_error"))}}))}viewPluginLog(){let i=this.$modal.open(Ii,{size:"xl",backdrop:"static"});i.componentInstance.plugin=this.plugin,i.componentInstance.childBridges=this.setChildBridges}doChildBridgeAction(i){return I(this,null,function*(){this.childBridgeRestartInProgress=!0;try{for(let l of this.setChildBridges)yield N(this.io.request(`${i}-child-bridge`,l.username))}catch(l){console.error(l),this.$toastr.error(this.$translate.instant("plugins.bridge.action_error",{action:i}),this.$translate.instant("toast.title_error")),this.childBridgeRestartInProgress=!1}finally{setTimeout(()=>{this.childBridgeRestartInProgress=!1},i==="restart"?12e3:i==="stop"?6e3:1e3)}})}handleIconError(){this.plugin.icon=this.defaultIcon}checkAndUpdatePlugin(){this.$plugin.checkAndUpdatePlugin(this.plugin,this.plugin.latestVersion)}openSettings(){this.$plugin.settings(this.plugin)}openBridgeSettings(){this.$plugin.bridgeSettings(this.plugin)}switchToScoped(){this.$plugin.switchToScoped(this.plugin)}installAlternateVersion(){this.$plugin.installAlternateVersion(this.plugin)}openJsonEditor(){this.$plugin.jsonEditor(this.plugin)}uninstallPlugin(){this.$plugin.uninstallPlugin(this.plugin,this.setChildBridges)}resetChildBridges(){this.$plugin.resetChildBridges(this.setChildBridges)}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=S({type:e,selectors:[["app-plugin-card"]],inputs:{plugin:"plugin",childBridges:"childBridges"},decls:24,vars:14,consts:[[1,"card","card-body","mb-3"],[1,"d-flex","flex-row","justify-content-between"],[1,"d-flex","flex-column","me-3","align-items-center","justify-content-between"],["alt","Plugin Icon",1,"plugin-icon-card","mb-3",3,"error","src"],[1,"d-flex","flex-column","justify-content-between",2,"min-width","calc(100% - 80px)"],[1,"d-flex","flex-row","align-items-end"],[1,"d-flex","flex-column","w-100"],[1,"d-flex","flex-row"],[1,"card-title","mb-2","text-truncate"],[1,"ms-auto"],[1,"card-text","mb-2","text-truncate"],["href","javascript:void(0)",1,"card-link",3,"click"],[1,"fas","fa-shield-alt","fa-lg","me-1",3,"ngClass"],[1,"grey-text"],[1,"card-text","mb-2"],["href","javascript:void(0)",1,"card-link"],[1,"card-text","mb-0","grey-text"],["href","javascript:void(0)","container","body","triggers","hover",1,"card-link",3,"openDelay","ngbTooltip"],["href","javascript:void(0)","container","body","triggers","hover",1,"card-link",3,"ngbTooltip","openDelay"],[1,"fas","fa-spinner","fa-pulse","fa-lg","grey-text","ms-3",3,"hidden"],[1,"fas","fa-lg","ms-3",3,"ngClass"],["href","javascript:void(0)","container","body","triggers","hover",1,"card-link",3,"click","openDelay","ngbTooltip"],[1,"far","fa-arrow-alt-circle-up","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-arrow-right-arrow-left","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],["href","javascript:void(0)","container","body","triggers","hover",1,"card-link",3,"click","ngbTooltip","openDelay"],[1,"fas","fa-sliders","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"icon-button","fas","fa-bridge","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"icon-button","fas","fa-qrcode","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-heart","fa-lg","me-1","pink-text"],[1,"fas","fa-heart","fa-lg","me-1",2,"opacity","0.5"],[1,"far","fa-circle-dot","fa-lg","me-1"],[1,"far","fa-circle-check","fa-lg","me-1"],["href","javascript:void(0)",1,"card-link","red-text"],["href","javascript:void(0)"],["ngbDropdown","","placement","left",1,"d-inline-block","ms-3","mt-auto"],[1,"fas","fa-lg","fa-power-off","ms-3"],["href","javascript:void(0)",1,"card-link","red-text",3,"click"],["container","body","triggers","hover",1,"far","fa-pause-circle","fa-lg",3,"ngbTooltip","openDelay"],["href","javascript:void(0)",3,"click"],[1,"far","fa-arrow-alt-circle-down","fa-lg"],["href","javascript:void(0)","ngbDropdownToggle","",1,"card-link","text-decoration-none","mt-auto",2,"outline","none"],[1,"fa-solid","fa-ellipsis-v","fa-lg"],["ngbDropdownMenu","","aria-labelledby","Plugin Actions Dropdown"],["ngbDropdownItem","",3,"click"],[1,"fas","fa-sliders"],["ngbDropdownItem",""],[1,"dropdown-divider"],["ngbDropdownItem","","rel","noopener noreferrer","target","_blank",3,"href"],[1,"fas","fa-wave-square"],[1,"fas","fa-code-compare"],[1,"fas","fa-code"],[1,"far","fa-circle-pause"],[1,"far","fa-circle-play"],[1,"fas","fa-trash"],[1,"fas","fa-bridge"],[1,"fas","fa-broom"],[1,"icon-button","fas","fa-power-off"],[1,"fas","fa-stop"],[1,"fas","fa-play"],[1,"icon-button","fas","fa-bridge"],[1,"icon-button","fa","fa-question-circle-o"]],template:function(l,t){l&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"img",3),f("error",function(){return t.handleIconError()}),a()(),o(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"h5",8),c(9),a(),m(10,pe,8,7,"div",9),a(),o(11,"p",10)(12,"a",11),f("click",function(){return t.pluginInfoModal(t.plugin)}),p(13,"i",12),o(14,"span",13),c(15),a()()(),o(16,"p",14),m(17,ce,4,1,"a",15),m(18,ue,3,1,"span",13),a(),o(19,"div",7)(20,"p",16),m(21,ge,5,2,"span"),m(22,_e,2,1),a(),m(23,He,5,4,"div",9),a()()()()()()),l&2&&(n(3),C("src",t.plugin.icon,M),n(6),h(t.plugin.displayName),n(),g(t.isAdmin?10:-1),n(3),C("ngClass",ai(10,te,t.plugin.isHbScoped,!t.plugin.isHbScoped&&(t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin),!t.plugin.isHbScoped&&!t.plugin.verifiedPlugin&&!t.plugin.verifiedPlusPlugin)),n(2),h(t.plugin.name),n(2),g((t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin)&&t.plugin.funding?17:-1),n(),g((t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin)&&t.plugin.funding?-1:18),n(3),g(t.plugin.publicPackage&&!t.plugin.installedVersion?21:-1),n(),g(t.plugin.installedVersion?22:-1),n(),g(t.isAdmin?23:-1))},dependencies:[L,D,Pi,yi,vi,xi,bi,ri,k],encapsulation:2})}return e})();var Ai=(()=>{class e{$activeModal=P(A);dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=S({type:e,selectors:[["ng-component"]],decls:28,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fa","fa-question-circle-o","primary-text",2,"font-size","75px"],[1,"mb-0"],[3,"innerHTML"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"]],template:function(l,t){l&1&&(o(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),c(4),r(5,"translate"),a(),o(6,"button",3),r(7,"translate"),f("click",function(){return t.dismissModal()}),a()(),o(8,"div",4)(9,"div",5),p(10,"i",6),a(),o(11,"ul",7),p(12,"li",8),r(13,"translate"),p(14,"li",8),r(15,"translate"),p(16,"li",8),r(17,"translate"),p(18,"li",8),r(19,"translate"),a(),p(20,"app-support-banner"),a(),o(21,"div",9),p(22,"div",10),o(23,"div",11)(24,"button",12),f("click",function(){return t.dismissModal()}),c(25),r(26,"translate"),a()(),p(27,"div",13),a()()()),l&2&&(n(4),h(s(5,7,"support.title")),n(2),w("aria-label",s(7,9,"form.button_close")),n(6),C("innerHTML",s(13,11,"plugins.support.list_1"),V),n(2),C("innerHTML",s(15,13,"plugins.support.list_2"),V),n(2),C("innerHTML",s(17,15,"plugins.support.list_3"),V),n(2),C("innerHTML",s(19,17,"plugins.support.list_4"),V),n(7),b(" ",s(26,19,"form.button_close")," "))},dependencies:[Vi,k],encapsulation:2})}return e})();var Oe=["searchInput"],je=(e,d)=>({"fa-magnifying-glass":e,"fa-exclamation-circle":d});function Fe(e,d){e&1&&p(0,"app-spinner")}function ze(e,d){if(e&1){let i=y();o(0,"button",7),r(1,"translate"),r(2,"translate"),f("click",function(){x(i);let t=u();return v(t.showSearch())}),p(3,"i"),a(),o(4,"button",8),r(5,"translate"),r(6,"translate"),f("click",function(){x(i);let t=u();return v(t.showStats())}),p(7,"i"),a()}if(e&2){let i=u();C("openDelay",150)("ngbTooltip",s(1,13,"plugins.search"))("hidden",!i.installedPlugins.length),w("aria-label",s(2,15,"plugins.search")),n(3),Y(Z("fas",i.showSearchBar?" primary-text":""," fa-search")),n(),C("openDelay",150)("ngbTooltip",s(5,17,"plugins.stats")),w("aria-label",s(6,19,"plugins.stats")),n(3),Y(Z("fas",i.tab==="stats"?" primary-text":""," fa-sliders"))}}function Ue(e,d){if(e&1){let i=y();o(0,"a",15),f("click",function(){x(i);let t=u(3);return v(t.onClearSearch())}),p(1,"i",16),a()}}function qe(e,d){if(e&1){let i=y();o(0,"div",9)(1,"div",11)(2,"form",12),f("ngSubmit",function(){x(i);let t=u(2);return v(t.onSubmit(t.form))}),p(3,"input",13,0),r(5,"translate"),m(6,Ue,2,0,"a",14),a()()()}if(e&2){let i=u(2);n(2),C("formGroup",i.form),n(),C("placeholder",s(5,3,"plugins.placeholder_search_plugin")),n(3),g(i.showExitButton?6:-1)}}function Re(e,d){if(e&1&&(o(0,"div",17),p(1,"app-plugin-card",19),a()),e&2){let i=d.$implicit,l=u(3);n(),C("plugin",i)("childBridges",l.getPluginChildBridges(i))}}function Le(e,d){if(e&1&&(o(0,"div",18),p(1,"i",20),o(2,"p"),c(3),r(4,"translate"),a()()),e&2){let i=u(3);n(),C("ngClass",B(4,je,!i.showExitButton,i.showExitButton)),n(2),h(s(4,2,i.showExitButton?"plugins.placeholder_search_none":"plugins.placeholder_search_first"))}}function Ge(e,d){if(e&1&&(o(0,"div",10),U(1,Re,2,2,"div",17,z),m(3,Le,5,7,"div",18),a()),e&2){let i=u(2);n(),q(i.installedPlugins),n(2),g(i.installedPlugins.length===0&&!i.loading&&!i.mainError?3:-1)}}function We(e,d){if(e&1&&(m(0,qe,7,5,"div",9),m(1,Ge,4,1,"div",10)),e&2){let i=u();g(i.showSearchBar?0:-1),n(),g(i.loading?-1:1)}}function Qe(e,d){e&1&&(o(0,"div",21)(1,"div",22)(2,"code"),c(3,"https://developers.homebridge.io/analytics "),o(4,"a",23),p(5,"i",24),a()()(),o(6,"div",25),c(7),r(8,"translate"),a()(),p(9,"iframe",26)),e&2&&(n(7),h(s(8,1,"plugins.stats_note")))}var pn=(()=>{class e{searchInput;$api=P(W);$auth=P(J);$modal=P(R);$plugin=P(X);$router=P(Si);$settings=P(Q);$toastr=P(G);$translate=P(H);$ws=P(K);isSearchMode=!1;io;navigationSubscription;mainError=!1;loading=!0;tab="main";installedPlugins=[];childBridges=[];showSearchBar=!1;showExitButton=!1;isAdmin=this.$auth.user.admin;form=new ci({query:new ui("")});ngOnInit(){return I(this,null,function*(){this.io=this.$ws.connectToNamespace("child-bridges"),this.io.connected.subscribe(()=>I(this,null,function*(){this.getChildBridgeMetadata(),this.io.socket.emit("monitor-child-bridge-status"),yield this.loadInstalledPlugins(),this.installedPlugins.length||this.showSearch();let{action:i,plugin:l}=this.$router.parseUrl(this.$router.url).queryParams;if(i){let t=this.installedPlugins.find(_=>_.name===l);switch(i){case"just-installed":{t&&(t.isConfigured?this.$modal.open(j,{size:"lg",backdrop:"static"}):this.$plugin.settings(t));break}case"open-manage-version":{t&&this.$plugin.installAlternateVersion(t);break}}this.$router.navigate([],{queryParams:{},replaceUrl:!0,queryParamsHandling:""})}})),this.io.socket.on("child-bridge-status-update",i=>{let l=this.childBridges.find(t=>t.username===i.username);l?Object.assign(l,i):this.childBridges.push(i)}),this.navigationSubscription=this.$router.events.subscribe(i=>{i instanceof wi&&this.loadInstalledPlugins()})})}search(){this.installedPlugins=[],this.loading=!0,this.showExitButton=!0,this.$api.get(`/plugins/search/${encodeURIComponent(this.form.value.query)}`).subscribe({next:i=>{let l=new Set,t=new Map(i.map(_=>[_.name,_]));this.installedPlugins=i.reduce((_,T)=>{if(T.name==="homebridge-config-ui-x"||l.has(T.name))return _;if(T.newHbScope){let O=T.newHbScope.to,Ni=t.has(O);(T.installedVersion||!Ni)&&(l.add(O),_.push(T))}else _.push(T);return _},[]),this.appendMetaInfo(),this.loading=!1},error:i=>{this.loading=!1,this.isSearchMode=!1,console.error(i),this.$toastr.error(i.error?.message||i.message,this.$translate.instant("toast.title_error")),this.loadInstalledPlugins()}})}onClearSearch(){this.loadInstalledPlugins()}onSubmit({value:i}){i.query.length?(this.isSearchMode=!0,this.search()):this.isSearchMode&&(this.isSearchMode=!1,this.loadInstalledPlugins())}showSearch(){this.showSearchBar?(this.showSearchBar=!1,this.isSearchMode&&(this.isSearchMode=!1,this.form.setValue({query:""}),this.loadInstalledPlugins())):(window.document.querySelector("body").classList.remove("bg-black"),this.tab="main",this.showSearchBar=!0,setTimeout(()=>this.searchInput.nativeElement.focus(),0))}showStats(){this.tab==="stats"?(window.document.querySelector("body").classList.remove("bg-black"),this.tab="main"):(window.document.querySelector("body").classList.add("bg-black"),this.tab="stats",this.showSearchBar=!1)}openSupport(){this.$modal.open(Ai,{size:"lg",backdrop:"static"})}ngOnDestroy(){window.document.querySelector("body").classList.remove("bg-black"),this.navigationSubscription&&this.navigationSubscription.unsubscribe(),this.io.end()}getPluginChildBridges(i){return this.childBridges.filter(l=>l.plugin===i.name)}loadInstalledPlugins(){return I(this,null,function*(){this.form.setValue({query:""}),this.showExitButton=!1,this.installedPlugins=[],this.loading=!0,this.mainError=!1;try{let i=yield N(this.$api.get("/plugins"));this.installedPlugins=i.filter(t=>t.name!=="homebridge-config-ui-x"),yield this.appendMetaInfo();let l=this.installedPlugins.sort((t,_)=>{let T=(t.updateAvailable?1e3:0)+(t.newHbScope?100:0)+(t.disabled?-10:0)+(t.isConfigured?-20:0)+(t.hasChildBridgesUnpaired?5:0)+(t.hasChildBridges&&this.$settings.env.recommendChildBridges?-1:0),O=(_.updateAvailable?1e3:0)+(_.newHbScope?100:0)+(_.disabled?-10:0)+(_.isConfigured?-20:0)+(_.hasChildBridgesUnpaired?5:0)+(_.hasChildBridges&&this.$settings.env.recommendChildBridges?-1:0);return T!==O?O-T:t.name.localeCompare(_.name)});return this.loading=!1,l}catch(i){console.error(i),this.loading=!1,this.mainError=!0,this.$toastr.error(this.$translate.instant("plugins.toast_failed_to_load_plugins"),this.$translate.instant("toast.title_error"))}})}appendMetaInfo(){return I(this,null,function*(){this.isAdmin&&(yield Promise.all(this.installedPlugins.filter(i=>i.installedVersion).map(i=>I(this,null,function*(){try{let l=yield N(this.$api.get(`/config-editor/plugin/${encodeURIComponent(i.name)}`));i.isConfigured=l.length>0,i.isConfiguredDynamicPlatform=i.isConfigured&&Object.prototype.hasOwnProperty.call(l[0],"platform"),i.recommendChildBridge=i.isConfigured&&this.$settings.env.recommendChildBridges&&!["homebridge","homebridge-config-ui-x"].includes(i.name),i.hasChildBridges=i.isConfigured&&l.some(_=>_._bridge&&_._bridge.username);let t=this.getPluginChildBridges(i);i.hasChildBridgesUnpaired=t.some(_=>!_.paired),this.$settings.env.plugins?.hideUpdatesFor?.includes(i.name)&&(i.updateAvailable=!1)}catch{i.isConfigured=!0,i.hasChildBridges=!0}}))))})}getChildBridgeMetadata(){this.io.request("get-homebridge-child-bridge-status").subscribe(i=>{this.childBridges=i})}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=S({type:e,selectors:[["ng-component"]],viewQuery:function(l,t){if(l&1&&ti(Oe,5),l&2){let _;ni(_=oi())&&(t.searchInput=_.first)}},decls:13,vars:9,consts:[["searchInput",""],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end"],["type","button",1,"btn","btn-elegant","my-0","me-0",3,"click"],[1,"fa","fa-question-circle-o"],["type","button","container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","openDelay","ngbTooltip","hidden"],["type","button","container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-2","d-none","d-md-inline-block",3,"click","openDelay","ngbTooltip"],[1,"row"],[1,"d-flex","flex-wrap","justify-content-between"],[1,"col-md-12"],["novalidate","",3,"ngSubmit","formGroup"],["type","text","formControlName","query",1,"hb-npm-search",3,"placeholder"],["href","javascript:void(0)",1,"hb-npm-search-clear"],["href","javascript:void(0)",1,"hb-npm-search-clear",3,"click"],[1,"far","fa-times-circle"],[1,"hb-plugin-space-between"],[1,"alert","alert-info","mt-4","text-center","w-100"],[3,"plugin","childBridges"],[1,"fas","primary-text","my-3",2,"font-size","75px",3,"ngClass"],[1,"w-100","py-3","hb-stats-header","text-white","text-center"],[1,"mb-2"],["href","https://developers.homebridge.io/analytics","target","_blank"],[1,"fa","fa-external-link"],[1,"small","grey-text"],["src",ei`https://developers.homebridge.io/analytics/`,"sandbox","allow-scripts allow-same-origin allow-popups","referrerpolicy","no-referrer",1,"hb-stats"]],template:function(l,t){l&1&&(m(0,Fe,1,0,"app-spinner"),o(1,"div",1)(2,"div",2)(3,"h3",3),c(4),r(5,"translate"),a()(),o(6,"div",4),m(7,ze,8,21),o(8,"button",5),r(9,"translate"),f("click",function(){return t.openSupport()}),p(10,"i",6),a()()(),m(11,We,2,2)(12,Qe,10,3)),l&2&&(g(t.loading?0:-1),n(4),h(s(5,5,"menu.label_plugins")),n(3),g(t.isAdmin?7:-1),n(),w("aria-label",s(9,7,"support.title")),n(3),g(t.tab==="main"?11:t.tab==="stats"?12:-1))},dependencies:[Bi,fi,mi,si,di,pi,Ci,gi,_i,Di,D,L,k],styles:[".hb-npm-search[_ngcontent-%COMP%]{outline:none;box-sizing:inherit!important;background-color:inherit;height:50px!important;width:100%;border-width:.5px;padding:10px;margin-bottom:15px}@media (hover: hover){.hb-npm-search[_ngcontent-%COMP%]:hover{border:1px solid #000000}}.hb-npm-search[_ngcontent-%COMP%]:focus{border:1px solid #000000;box-shadow:0 1px #000}.hb-npm-search-clear[_ngcontent-%COMP%]{position:absolute;right:25px;font-size:35px;color:#d0d0d0;line-height:50px;cursor:pointer}.hb-plugin-space-between[_ngcontent-%COMP%]{box-sizing:border-box;width:calc(50% - 6.6666666667px)}@media only screen and (max-width: 991px){.hb-plugin-space-between[_ngcontent-%COMP%]{width:100%}}.hb-stats-header[_ngcontent-%COMP%]{background:#242424;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.hb-stats-header[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{border:1px solid grey;border-radius:5px;padding:5px;font-size:.8rem;color:#d3d3d3}.hb-stats[_ngcontent-%COMP%]{height:calc(100% - 121px);width:100%;overflow:hidden;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}@media (max-width: 767px){.hb-stats[_ngcontent-%COMP%]{height:calc(100% - 60px)}}"]})}return e})();export{pn as PluginsComponent};
|
|
1
|
+
import{a as Vi}from"./chunk-YM3EAA45.js";import{a as Bi}from"./chunk-OQM4FTFW.js";import{N as Ii,P as X}from"./chunk-7GNZ42WB.js";import"./chunk-UKEUEM4U.js";import{f as j}from"./chunk-U2UDP4LE.js";import"./chunk-YRDGMK4T.js";import{a as Ti}from"./chunk-V4K2YYFC.js";import"./chunk-KUCY2W3L.js";import"./chunk-MD7IQ7EC.js";import"./chunk-CGPMZGNR.js";import"./chunk-UERLDONE.js";import"./chunk-5N45B6R7.js";import"./chunk-IHGRCBAQ.js";import{a as ki}from"./chunk-WSDF7BFP.js";import{g as hi,h as bi,i as xi,j as vi,k as yi,l as Pi,m as A,n as R,t as L}from"./chunk-QHDPBN4J.js";import{B as fi,C as Ci,c as si,e as di,f as pi,g as ci,j as ui,m as mi,q as gi,r as _i}from"./chunk-D2RHA7X2.js";import{a as K}from"./chunk-54LXMJYQ.js";import{b as J}from"./chunk-VZDFTSCE.js";import{a as wi,d as Si}from"./chunk-LV5TYHZ7.js";import{b as Q}from"./chunk-EYGXMMT2.js";import{k as H,l as k,n as G,q as W}from"./chunk-NJYCNYHB.js";import{Db as y,Ga as V,Gb as f,Ha as M,Ia as ei,Ib as u,Kc as D,La as n,Mb as ti,Nb as ni,Nc as li,Ob as oi,Rc as ri,Ub as Y,Vb as c,Wa as S,Wb as h,Xb as b,dc as Z,gc as $,h as I,hc as B,ic as ai,ja as P,kb as w,lb as m,mb as g,mc as r,nc as s,oa as x,ob as z,oc as E,pa as v,pb as U,qb as q,rb as C,sb as o,tb as a,ub as p,w as N}from"./chunk-ZHRPBG7M.js";var Hi=e=>({pluginName:e}),Oi=(e,d)=>({setting:e,value:d});function ji(e,d){e&1&&(o(0,"li"),c(1),r(2,"translate"),a(),o(3,"li"),c(4),r(5,"translate"),a()),e&2&&(n(),h(s(2,2,"plugins.manage.confirm_disable_platform_1")),n(3),h(s(5,4,"plugins.manage.confirm_disable_platform_2")))}function Fi(e,d){e&1&&(o(0,"li"),c(1),r(2,"translate"),a(),o(3,"li"),c(4),r(5,"translate"),a()),e&2&&(n(),h(s(2,2,"plugins.manage.confirm_disable_accessory_1")),n(3),h(s(5,4,"plugins.manage.confirm_disable_accessory_2")))}function zi(e,d){if(e&1&&(o(0,"ul",15),p(1,"li",16),r(2,"translate"),o(3,"ul",17),m(4,ji,6,6)(5,Fi,6,6),a()()),e&2){let i=u(2);n(),C("innerHtml",E(2,2,"plugins.manage.confirm_disable_setting",B(5,Oi,i.keepOrphansName,i.keepOrphansValue)),V),n(3),g(i.keepOrphans?4:5)}}function Ui(e,d){e&1&&(o(0,"ul",15)(1,"li"),c(2),r(3,"translate"),a(),o(4,"li"),c(5),r(6,"translate"),a()()),e&2&&(n(2),h(s(3,2,"plugins.manage.confirm_disable_accessory_1")),n(3),h(s(6,4,"plugins.manage.confirm_disable_accessory_2")))}function qi(e,d){if(e&1&&m(0,zi,6,8,"ul",15)(1,Ui,7,6,"ul",15),e&2){let i=u();g(i.isConfiguredDynamicPlatform?0:1)}}var Ei=(()=>{class e{$activeModal=P(A);$translate=P(H);pluginName;isConfigured=!1;isConfiguredDynamicPlatform=!1;keepOrphans=!1;keepOrphansName=`<code>${this.$translate.instant("settings.startup.keep_accessories")}</code>`;keepOrphansValue=`<code>${this.keepOrphans}</code>`;dismissModal(){this.$activeModal.dismiss("Dismiss")}closeModal(){this.$activeModal.close()}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=S({type:e,selectors:[["ng-component"]],inputs:{pluginName:"pluginName",isConfigured:"isConfigured",isConfiguredDynamicPlatform:"isConfiguredDynamicPlatform",keepOrphans:"keepOrphans"},decls:25,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3","text-center"],[1,"fas","fa-circle-pause","primary-text",2,"font-size","75px"],["type","warning",1,"mb-0",3,"dismissible"],[1,"w-100","text-center","mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click"],[1,"mb-3"],[3,"innerHtml"],[1,"mb-1"]],template:function(l,t){l&1&&(o(0,"div",0)(1,"div",1)(2,"h5",2),c(3),a(),o(4,"button",3),r(5,"translate"),f("click",function(){return t.dismissModal()}),a()(),o(6,"div",4)(7,"div",5),p(8,"i",6),a(),m(9,qi,2,1),o(10,"ngb-alert",7)(11,"p",8),c(12),r(13,"translate"),a()()(),o(14,"div",9)(15,"div",10)(16,"button",11),r(17,"translate"),f("click",function(){return t.dismissModal()}),c(18),r(19,"translate"),a()(),p(20,"div",12),o(21,"div",13)(22,"button",14),f("click",function(){return t.closeModal()}),c(23),r(24,"translate"),a()()()()),l&2&&(n(3),h(t.pluginName),n(),w("aria-label",s(5,8,"form.button_close")),n(5),g(t.isConfigured?9:-1),n(),C("dismissible",!1),n(2),h(E(13,10,"plugins.manage.confirm_disable",$(19,Hi,t.pluginName))),n(4),w("aria-label",s(17,13,"form.button_close")),n(2),b(" ",s(19,15,"form.button_close")," "),n(5),b(" ",s(24,17,"plugins.manage.disable")," "))},dependencies:[hi,k],encapsulation:2})}return e})();var Ri=e=>({author:e});function Li(e,d){if(e&1&&(o(0,"li",9),p(1,"i",15),o(2,"a",16),c(3),a()()),e&2){let i=d.$implicit,l=u();n(),C("ngClass",l.getIconClass(i.type)),n(),C("href",i.url,M),n(),h(i.url)}}var Mi=(()=>{class e{$activeModal=P(A);plugin;fundingOptions;ngOnInit(){this.plugin.funding||this.$activeModal.close(),this.plugin.name==="homebridge-config-ui-x"&&(this.plugin.author="oznu"),Array.isArray(this.plugin.funding)?this.fundingOptions=this.plugin.funding.map(i=>{if(typeof i=="string")return{type:"other",url:i};if(typeof i=="object")return{type:i.type||"other",url:i.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(i){switch(i.toLowerCase()){case"paypal":return"fab fa-paypal";case"github":return"fab fa-github";case"patreon":return"fab fa-patreon";case"kofi":case"ko-fi":return"fas fa-coffee";default:return"fas fa-link"}}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=S({type:e,selectors:[["ng-component"]],inputs:{plugin:"plugin"},decls:28,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","pink-text","mb-3"],[1,"fas","fa-heart",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box"],[1,"list-group-item"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"],[1,"me-2","primary-text","fa-xl",3,"ngClass"],["target","_blank","rel","noopener noreferrer",1,"text-break-all",3,"href"]],template:function(l,t){l&1&&(o(0,"div",0)(1,"div",1)(2,"h5",2),c(3),r(4,"translate"),a(),o(5,"button",3),r(6,"translate"),f("click",function(){return t.dismissModal()}),a()(),o(7,"div",4)(8,"div",5),p(9,"i",6),a(),o(10,"ul",7)(11,"li"),c(12),r(13,"translate"),a(),o(14,"li"),c(15),r(16,"translate"),a()(),o(17,"ul",8),U(18,Li,4,3,"li",9,z),a()(),o(20,"div",10),p(21,"div",11),o(22,"div",12)(23,"button",13),r(24,"translate"),f("click",function(){return t.dismissModal()}),c(25),r(26,"translate"),a()(),p(27,"div",14),a()()),l&2&&(n(3),h(E(4,6,"plugins.donate.tile_donate_to",$(19,Ri,"@"+t.plugin.author))),n(2),w("aria-label",s(6,9,"form.button_close")),n(7),h(s(13,11,"plugins.donate.message_1")),n(3),h(s(16,13,"plugins.donate.message_2")),n(3),q(t.fundingOptions),n(5),w("aria-label",s(24,15,"form.button_close")),n(2),b(" ",s(26,17,"form.button_close")," "))},dependencies:[D,k],styles:[".text-break-all[_ngcontent-%COMP%]{word-break:break-all}"]})}return e})();var Gi=(e,d)=>({"orange-text":e,"grey-text":d}),ii=e=>({opacity:e}),Wi=(e,d)=>({"green-text":e,"grey-text":d}),Qi=(e,d)=>({"purple-text":e,"grey-text":d}),Ji=(e,d)=>({scopedLink:e,verifiedLink:d});function Ki(e,d){e&1&&(o(0,"h6",18),c(1),r(2,"translate"),a(),o(3,"p",19),c(4),r(5,"translate"),a(),o(6,"p",19),c(7),r(8,"translate"),a()),e&2&&(n(),h(s(2,3,"plugins.manage.scoped_subtitle")),n(3),h(s(5,5,"plugins.manage.scoped_message")),n(3),h(s(8,7,"plugins.manage.verified_message")))}function Xi(e,d){e&1&&(o(0,"h6",18),c(1),r(2,"translate"),a(),o(3,"p",19),c(4),r(5,"translate"),a()),e&2&&(n(),h(s(2,2,"plugins.manage.verified_subtitle")),n(3),h(s(5,4,"plugins.manage.verified_message")))}function Yi(e,d){e&1&&(o(0,"h6",18),c(1),r(2,"translate"),a(),o(3,"p",19),c(4),r(5,"translate"),a()),e&2&&(n(),h(s(2,2,"plugins.manage.unverified_subtitle")),n(3),h(s(5,4,"plugins.manage.unverified_message")))}function Zi(e,d){if(e&1){let i=y();o(0,"button",20),f("click",function(){x(i);let t=u();return v(t.dismissModal())}),c(1),r(2,"translate"),a()}e&2&&(n(),b(" ",s(2,1,"form.button_close")," "))}function ie(e,d){if(e&1){let i=y();o(0,"button",20),f("click",function(){x(i);let t=u();return v(t.dismissModal())}),c(1),r(2,"translate"),a()}e&2&&(n(),b(" ",s(2,1,"form.button_close")," "))}function ee(e,d){if(e&1&&(o(0,"a",17),c(1),r(2,"translate"),p(3,"i",21),a()),e&2){let i=u();C("href",i.plugin.links.homepage||i.plugin.links.npm,M),n(),b(" ",s(2,2,"plugins.button_homepage")," ")}}var $i=(()=>{class e{$activeModal=P(A);plugin;defaultIcon="assets/hb-icon.png";linkScoped='<a href="https://github.com/homebridge/plugins/wiki/Scoped-Plugins" target="_blank"><i class="fas fa-external-link-alt primary-text"></i></a>';linkVerified='<a href="https://github.com/homebridge/plugins/wiki/Verified-Plugins" target="_blank"><i class="fas fa-external-link-alt primary-text"></i></a>';ngOnInit(){this.plugin.icon||(this.plugin.icon=this.defaultIcon)}handleIconError(){this.plugin.icon=this.defaultIcon}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=S({type:e,selectors:[["ng-component"]],inputs:{plugin:"plugin"},decls:32,vars:45,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],["alt","Plugin Icon",1,"mb-3","plugin-icon-card",3,"error","src"],[1,"mb-1"],[1,"grey-text","mb-0","font-monospace"],[1,"grey-text","mb-1","font-monospace"],[1,"mb-3"],[1,"fas","fa-shield-alt","mb-3",2,"font-size","48px",3,"ngClass","ngStyle"],[1,"mb-0","grey-text",3,"innerHTML"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-center"],[1,"text-end"],["target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","text-decoration-none",3,"href"],[1,"mb-2"],[1,"mb-1","grey-text"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"fas","fa-external-link-alt"]],template:function(l,t){l&1&&(o(0,"div",0)(1,"div",1)(2,"h5",2),c(3),r(4,"translate"),a(),o(5,"button",3),r(6,"translate"),f("click",function(){return t.dismissModal()}),a()(),o(7,"div",4)(8,"img",5),f("error",function(){return t.handleIconError()}),a(),o(9,"h4",6),c(10),a(),o(11,"p",7),c(12),a(),o(13,"p",8),c(14),a(),o(15,"p",9),c(16),a(),p(17,"i",10)(18,"i",10)(19,"i",10),m(20,Ki,9,9),m(21,Xi,6,6),m(22,Yi,6,6),p(23,"p",11),r(24,"translate"),a(),o(25,"div",12)(26,"div",13),m(27,Zi,3,3,"button",14),a(),o(28,"div",15),m(29,ie,3,3,"button",14),a(),o(30,"div",16),m(31,ee,4,4,"a",17),a()()()),l&2&&(n(3),h(s(4,20,"plugins.manage.information")),n(2),w("aria-label",s(6,22,"form.button_close")),n(3),C("src",t.plugin.icon,M),n(2),h(t.plugin.displayName),n(2),h(t.plugin.name),n(2),b("@",t.plugin.author),n(2),h(t.plugin.description),n(),C("ngClass",B(27,Gi,!t.plugin.verifiedPlugin&&!t.plugin.verifiedPlusPlugin,t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin))("ngStyle",$(30,ii,!t.plugin.verifiedPlugin&&!t.plugin.verifiedPlusPlugin?1:.25)),n(),C("ngClass",B(32,Wi,!t.plugin.isHbScoped&&(t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin),t.plugin.isHbScoped||!t.plugin.verifiedPlugin&&!t.plugin.verifiedPlusPlugin))("ngStyle",$(35,ii,!t.plugin.isHbScoped&&(t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin)?1:.25)),n(),C("ngClass",B(37,Qi,t.plugin.isHbScoped,!t.plugin.isHbScoped))("ngStyle",$(40,ii,t.plugin.isHbScoped?1:.25)),n(),g(t.plugin.isHbScoped?20:-1),n(),g(!t.plugin.isHbScoped&&(t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin)?21:-1),n(),g(!t.plugin.verifiedPlugin&&!t.plugin.verifiedPlusPlugin?22:-1),n(),C("innerHTML",E(24,24,"plugins.manage.more_info",B(42,Ji,t.linkScoped,t.linkVerified)),V),n(4),g(t.plugin.links.homepage||t.plugin.links.npm?27:-1),n(2),g(!t.plugin.links.homepage&&!t.plugin.links.npm?29:-1),n(2),g(t.plugin.links.homepage||t.plugin.links.npm?31:-1))},dependencies:[D,li,k],styles:[".plugin-icon[_ngcontent-%COMP%]{height:75px;width:75px;border-radius:15px;border:1px solid #222222}"]})}return e})();var te=(e,d,i)=>({"purple-text":e,"green-text":d,"orange-text":i}),ne=(e,d)=>({"fa-bridge-circle-exclamation orange-text":e,"fa-bridge-circle-xmark red-text":d});function oe(e,d){if(e&1){let i=y();o(0,"a",21),r(1,"translate"),r(2,"translate"),f("click",function(){x(i);let t=u(2);return v(t.checkAndUpdatePlugin())}),p(3,"i",22),a()}e&2&&(C("openDelay",150)("ngbTooltip",s(1,3,"plugins.button_update")),w("aria-label",s(2,5,"plugins.button_update")))}function ae(e,d){if(e&1){let i=y();o(0,"a",21),r(1,"translate"),r(2,"translate"),f("click",function(){x(i);let t=u(2);return v(t.switchToScoped())}),p(3,"i",23),a()}e&2&&(C("openDelay",150)("ngbTooltip",s(1,3,"plugins.manage.scoped.switch")),w("aria-label",s(2,5,"plugins.manage.scoped.switch")))}function le(e,d){if(e&1){let i=y();o(0,"a",24),r(1,"translate"),r(2,"translate"),f("click",function(){x(i);let t=u(2);return v(t.openSettings())}),p(3,"i",25),a()}e&2&&(C("ngbTooltip",s(1,3,"plugins.button_set_up"))("openDelay",150),w("aria-label",s(2,5,"plugins.button_set_up")))}function re(e,d){if(e&1){let i=y();o(0,"a",24),r(1,"translate"),r(2,"translate"),f("click",function(){x(i);let t=u(2);return v(t.openBridgeSettings())}),p(3,"i",26),a()}e&2&&(C("ngbTooltip",s(1,3,"child_bridge.setup"))("openDelay",150),w("aria-label",s(2,5,"child_bridge.setup")))}function se(e,d){if(e&1){let i=y();o(0,"a",24),r(1,"translate"),r(2,"translate"),f("click",function(){x(i);let t=u(2);return v(t.openBridgeSettings())}),p(3,"i",27),a()}e&2&&(C("ngbTooltip",s(1,3,"child_bridge.bridge_connect"))("openDelay",150),w("aria-label",s(2,5,"child_bridge.bridge_connect")))}function de(e,d){if(e&1&&p(0,"i",20),e&2){let i=u(2);C("ngClass",B(1,ne,i.childBridgeStatus==="pending",i.childBridgeStatus==="down"))}}function pe(e,d){if(e&1&&(o(0,"div",9),m(1,oe,4,7,"a",17),m(2,ae,4,7,"a",17),m(3,le,4,7,"a",18),m(4,re,4,7,"a",18),m(5,se,4,7,"a",18),p(6,"i",19),m(7,de,1,4,"i",20),a()),e&2){let i=u();n(),g(i.plugin.installedVersion&&i.plugin.updateAvailable&&!i.childBridgeRestartInProgress?1:-1),n(),g(i.plugin.installedVersion&&(i.plugin.newHbScope==null?null:i.plugin.newHbScope.switch)===i.plugin.installedVersion&&!i.childBridgeRestartInProgress?2:-1),n(),g(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&!i.plugin.isConfigured&&!i.childBridgeRestartInProgress&&!i.plugin.disabled?3:-1),n(),g(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&i.plugin.recommendChildBridge&&!i.childBridgeRestartInProgress?4:-1),n(),g(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&!i.childBridgeRestartInProgress&&i.hasUnpairedChildBridges&&i.childBridgeStatus==="ok"&&!i.plugin.disabled?5:-1),n(),C("hidden",!i.childBridgeRestartInProgress),n(),g(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&!i.childBridgeRestartInProgress&&!i.hasUnpairedChildBridges&&i.childBridgeStatus!=="ok"&&!i.plugin.disabled?7:-1)}}function ce(e,d){if(e&1){let i=y();o(0,"a",11),f("click",function(){x(i);let t=u();return v(t.openFundingModal(t.plugin))}),p(1,"i",28),o(2,"span",13),c(3),a()()}if(e&2){let i=u();n(3),b("@",i.plugin.author)}}function ue(e,d){if(e&1&&(o(0,"span",13),p(1,"i",29),c(2),a()),e&2){let i=u();n(2),b("@",i.plugin.author," ")}}function me(e,d){if(e&1&&(o(0,"span"),c(1),r(2,"date"),a()),e&2){let i=u(2);n(),b("(",E(2,1,i.plugin.lastUpdated,"yyyy-MM-dd"),")")}}function ge(e,d){if(e&1&&(o(0,"span"),p(1,"i",30),o(2,"span",13),c(3),m(4,me,3,4,"span"),a()()),e&2){let i=u();n(3),b("v",i.plugin.latestVersion," "),n(),g(i.plugin.lastUpdated?4:-1)}}function _e(e,d){if(e&1&&(p(0,"i",31),c(1)),e&2){let i=u();n(),b("v",i.plugin.installedVersion," ")}}function fe(e,d){if(e&1){let i=y();o(0,"a",21),r(1,"translate"),f("click",function(){x(i);let t=u(2);return v(t.doChildBridgeAction("restart"))}),p(2,"i",35),a()}if(e&2){let i=u(2);C("openDelay",150)("ngbTooltip",s(1,2,i.setChildBridges.length>1?"child_bridge.restart_plural":"child_bridge.restart"))}}function Ce(e,d){if(e&1){let i=y();o(0,"a",36),f("click",function(){x(i);let t=u(2);return v(t.enablePlugin(t.plugin))}),p(1,"i",37),r(2,"translate"),a()}e&2&&(n(),C("ngbTooltip",s(2,2,"plugins.status_disabled"))("openDelay",150))}function he(e,d){if(e&1){let i=y();o(0,"a",38),f("click",function(){x(i);let t=u(2);return v(t.installAlternateVersion())}),p(1,"i",39),a()}}function be(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.viewPluginLog())}),p(1,"i",48),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"plugins.manage.plugin_logs")," "))}function xe(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.installAlternateVersion())}),p(1,"i",49),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"plugins.manage.manage_version")," "))}function ve(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.openJsonEditor())}),p(1,"i",50),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"plugins.manage.json_config")," "))}function ye(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.disablePlugin(t.plugin))}),p(1,"i",51),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"plugins.manage.disable")," "))}function Pe(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.enablePlugin(t.plugin))}),p(1,"i",52),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"plugins.manage.enable")," "))}function we(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.uninstallPlugin())}),p(1,"i",53),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"plugins.button_uninstall")," "))}function Se(e,d){e&1&&p(0,"div",46)}function ke(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(4);return v(t.doChildBridgeAction("restart"))}),p(1,"i",56),c(2),r(3,"translate"),a()}if(e&2){let i=u(4);n(2),b(" ",s(3,1,i.setChildBridges.length>1?"child_bridge.restart_plural":"child_bridge.restart")," ")}}function Be(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(4);return v(t.doChildBridgeAction("stop"))}),p(1,"i",57),c(2),r(3,"translate"),a()}if(e&2){let i=u(4);n(2),b(" ",s(3,1,i.setChildBridges.length>1?"child_bridge.stop_plural":"child_bridge.stop")," ")}}function Te(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(4);return v(t.doChildBridgeAction("start"))}),p(1,"i",58),c(2),r(3,"translate"),a()}if(e&2){let i=u(4);n(2),b(" ",s(3,1,i.setChildBridges.length>1?"child_bridge.start_plural":"child_bridge.start")," ")}}function Ie(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.openBridgeSettings())}),p(1,"i",54),c(2),r(3,"translate"),a(),m(4,ke,4,3,"button",45),m(5,Be,4,3,"button",45),m(6,Te,4,3,"button",45),o(7,"button",43),f("click",function(){x(i);let t=u(3);return v(t.resetChildBridges())}),p(8,"i",55),c(9),r(10,"translate"),a()}if(e&2){let i=u(3);n(2),b(" ",s(3,5,"child_bridge.bridge_settings")," "),n(2),g(i.childBridgeRestartInProgress?-1:4),n(),g(i.allChildBridgesStopped?-1:5),n(),g(i.allChildBridgesStopped?6:-1),n(3),b(" ",s(10,7,"child_bridge.reset_accessories")," ")}}function Ve(e,d){e&1&&p(0,"div",46)}function Ee(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.openBridgeSettings())}),p(1,"i",59),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"child_bridge.setup")," "))}function Me(e,d){e&1&&p(0,"div",46)}function $e(e,d){if(e&1){let i=y();o(0,"button",43),f("click",function(){x(i);let t=u(3);return v(t.openBridgeSettings())}),p(1,"i",59),c(2),r(3,"translate"),a()}e&2&&(n(2),b(" ",s(3,1,"child_bridge.setup")," "))}function De(e,d){e&1&&p(0,"div",46)}function Ae(e,d){if(e&1&&(o(0,"a",47),p(1,"i",60),c(2),r(3,"translate"),a()),e&2){let i=u(3);C("href",i.plugin.links.bugs,M),n(2),b(" ",s(3,2,"support.links.issue")," ")}}function Ne(e,d){if(e&1){let i=y();o(0,"span",34)(1,"a",40),p(2,"i",41),a(),o(3,"div",42)(4,"button",43),f("click",function(){x(i);let t=u(2);return v(t.openSettings())}),p(5,"i",44),c(6),r(7,"translate"),a(),m(8,be,4,3,"button",45),m(9,xe,4,3,"button",45),m(10,ve,4,3,"button",45),m(11,ye,4,3,"button",45),m(12,Pe,4,3,"button",45),m(13,we,4,3,"button",45),m(14,Se,1,0,"div",46),m(15,Ie,11,9),m(16,Ve,1,0,"div",46),m(17,Ee,4,3,"button",45),m(18,Me,1,0,"div",46),m(19,$e,4,3,"button",45),m(20,De,1,0,"div",46),m(21,Ae,4,4,"a",47),a()()}if(e&2){let i=u(2);n(),w("aria-label","Plugin Actions Dropdown"),n(5),b(" ",s(7,16,"plugins.button_settings")," "),n(2),g(i.plugin.isConfigured&&!i.plugin.disabled?8:-1),n(),g(i.plugin.publicPackage?9:-1),n(),g(!i.isMobile&&i.plugin.name!=="homebridge-config-ui-x"?10:-1),n(),g(i.plugin.name!=="homebridge-config-ui-x"&&!i.plugin.disabled?11:-1),n(),g(i.plugin.name!=="homebridge-config-ui-x"&&i.plugin.disabled?12:-1),n(),g(i.plugin.name!=="homebridge-config-ui-x"?13:-1),n(),g(!i.plugin.disabled&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&i.plugin.installedVersion&&i.plugin.name!=="homebridge-config-ui-x"?14:-1),n(),g(i.plugin.hasChildBridges&&!i.plugin.disabled?15:-1),n(),g(i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&!i.plugin.recommendChildBridge?16:-1),n(),g(i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&!i.plugin.recommendChildBridge?17:-1),n(),g(i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&i.plugin.recommendChildBridge&&i.plugin.updateAvailable?18:-1),n(),g(i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&i.plugin.recommendChildBridge&&i.plugin.updateAvailable?19:-1),n(),g(i.plugin.links!=null&&i.plugin.links.bugs?20:-1),n(),g(i.plugin.links!=null&&i.plugin.links.bugs?21:-1)}}function He(e,d){if(e&1&&(o(0,"div",9),m(1,fe,3,4,"a",17),m(2,Ce,3,4,"a",32),m(3,he,2,0,"a",33),m(4,Ne,22,18,"span",34),a()),e&2){let i=u();n(),g(!i.plugin.disabled&&i.plugin.hasChildBridges&&i.childBridgeStatus==="ok"?1:-1),n(),g(i.plugin.installedVersion&&i.plugin.disabled?2:-1),n(),g(i.plugin.publicPackage&&!i.plugin.installedVersion?3:-1),n(),g(i.plugin.installedVersion?4:-1)}}var Di=(()=>{class e{$api=P(W);$auth=P(J);$md=P(Ti);$modal=P(R);$plugin=P(X);$settings=P(Q);$toastr=P(G);$translate=P(H);$ws=P(K);io;plugin;hasChildBridges=!1;hasUnpairedChildBridges=!1;allChildBridgesStopped=!1;childBridgeStatus="pending";childBridgeRestartInProgress=!1;defaultIcon="assets/hb-icon.png";isMobile;setChildBridges=[];hb2Status="unknown";isAdmin=this.$auth.user.admin;set childBridges(i){this.hasChildBridges=i.length>0,this.hasUnpairedChildBridges=i.filter(_=>_.paired===!1).length>0,this.allChildBridgesStopped=i.filter(_=>_.manuallyStopped===!0).length===i.length,this.hasChildBridges&&(i.some(_=>_.status==="down")?this.childBridgeStatus="down":i.some(_=>_.status==="pending")?this.childBridgeStatus="pending":i.some(_=>_.status==="ok")&&(this.childBridgeStatus="ok")),this.setChildBridges=i;let l=this.$settings.env.homebridgeVersion?.split(".")[0],t=this.plugin.engines?.homebridge?.split("||").map(_=>_.trim())||[];this.hb2Status=l==="2"?"hide":t.some(_=>_.startsWith("^2")||_.startsWith(">=2"))?"supported":this.hb2Status}ngOnInit(){this.isMobile=this.$md.detect.mobile(),this.io=this.$ws.getExistingNamespace("child-bridges"),this.isMobile&&this.plugin.displayName.toLowerCase().startsWith("homebridge ")&&(this.plugin.displayName=this.plugin.displayName.replace(/^homebridge /i,"")),this.plugin.icon||(this.plugin.icon=this.defaultIcon)}openFundingModal(i){let l=this.$modal.open(Mi,{size:"lg",backdrop:"static"});l.componentInstance.plugin=i}pluginInfoModal(i){let l=this.$modal.open($i,{size:"lg",backdrop:"static"});l.componentInstance.plugin=i}disablePlugin(i){let l=this.$modal.open(Ei,{size:"lg",backdrop:"static"});l.componentInstance.pluginName=i.displayName,l.componentInstance.isConfigured=i.isConfigured,l.componentInstance.isConfiguredDynamicPlatform=i.isConfiguredDynamicPlatform,l.componentInstance.keepOrphans=this.$settings.keepOrphans,l.result.then(()=>I(this,null,function*(){try{yield N(this.$api.put(`/config-editor/plugin/${encodeURIComponent(i.name)}/disable`,{})),i.disabled=!0,this.hasChildBridges&&this.doChildBridgeAction("stop"),this.$modal.open(j,{size:"lg",backdrop:"static"})}catch(t){console.error(t),this.$toastr.error(this.$translate.instant("plugins.disable.error"),this.$translate.instant("toast.title_error"))}}))}enablePlugin(i){let l=this.$modal.open(ki,{size:"lg",backdrop:"static"});l.componentInstance.title=i.name,l.componentInstance.message=this.$translate.instant("plugins.manage.confirm_enable",{pluginName:i.displayName}),l.componentInstance.confirmButtonLabel=this.$translate.instant("plugins.manage.enable"),l.componentInstance.faIconClass="fa-circle-play primary-text",l.result.then(()=>I(this,null,function*(){try{yield N(this.$api.put(`/config-editor/plugin/${encodeURIComponent(i.name)}/enable`,{})),i.disabled=!1,this.hasChildBridges&&(yield this.doChildBridgeAction("start")),this.$modal.open(j,{size:"lg",backdrop:"static"})}catch(t){console.error(t),this.$toastr.error(this.$translate.instant("plugins.enable.error"),this.$translate.instant("toast.title_error"))}}))}viewPluginLog(){let i=this.$modal.open(Ii,{size:"xl",backdrop:"static"});i.componentInstance.plugin=this.plugin,i.componentInstance.childBridges=this.setChildBridges}doChildBridgeAction(i){return I(this,null,function*(){this.childBridgeRestartInProgress=!0;try{for(let l of this.setChildBridges)yield N(this.io.request(`${i}-child-bridge`,l.username))}catch(l){console.error(l),this.$toastr.error(this.$translate.instant("plugins.bridge.action_error",{action:i}),this.$translate.instant("toast.title_error")),this.childBridgeRestartInProgress=!1}finally{setTimeout(()=>{this.childBridgeRestartInProgress=!1},i==="restart"?12e3:i==="stop"?6e3:1e3)}})}handleIconError(){this.plugin.icon=this.defaultIcon}checkAndUpdatePlugin(){this.$plugin.checkAndUpdatePlugin(this.plugin,this.plugin.latestVersion)}openSettings(){this.$plugin.settings(this.plugin)}openBridgeSettings(){this.$plugin.bridgeSettings(this.plugin)}switchToScoped(){this.$plugin.switchToScoped(this.plugin)}installAlternateVersion(){this.$plugin.installAlternateVersion(this.plugin)}openJsonEditor(){this.$plugin.jsonEditor(this.plugin)}uninstallPlugin(){this.$plugin.uninstallPlugin(this.plugin,this.setChildBridges)}resetChildBridges(){this.$plugin.resetChildBridges(this.setChildBridges)}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=S({type:e,selectors:[["app-plugin-card"]],inputs:{plugin:"plugin",childBridges:"childBridges"},decls:24,vars:14,consts:[[1,"card","card-body","mb-3"],[1,"d-flex","flex-row","justify-content-between"],[1,"d-flex","flex-column","me-3","align-items-center","justify-content-between"],["alt","Plugin Icon",1,"plugin-icon-card","mb-3",3,"error","src"],[1,"d-flex","flex-column","justify-content-between",2,"min-width","calc(100% - 80px)"],[1,"d-flex","flex-row","align-items-end"],[1,"d-flex","flex-column","w-100"],[1,"d-flex","flex-row"],[1,"card-title","mb-2","text-truncate"],[1,"ms-auto"],[1,"card-text","mb-2","text-truncate"],["href","javascript:void(0)",1,"card-link",3,"click"],[1,"fas","fa-shield-alt","fa-lg","me-1",3,"ngClass"],[1,"grey-text"],[1,"card-text","mb-2"],["href","javascript:void(0)",1,"card-link"],[1,"card-text","mb-0","grey-text"],["href","javascript:void(0)","container","body","triggers","hover",1,"card-link",3,"openDelay","ngbTooltip"],["href","javascript:void(0)","container","body","triggers","hover",1,"card-link",3,"ngbTooltip","openDelay"],[1,"fas","fa-spinner","fa-pulse","fa-lg","grey-text","ms-3",3,"hidden"],[1,"fas","fa-lg","ms-3",3,"ngClass"],["href","javascript:void(0)","container","body","triggers","hover",1,"card-link",3,"click","openDelay","ngbTooltip"],[1,"far","fa-arrow-alt-circle-up","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-arrow-right-arrow-left","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],["href","javascript:void(0)","container","body","triggers","hover",1,"card-link",3,"click","ngbTooltip","openDelay"],[1,"fas","fa-sliders","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"icon-button","fas","fa-bridge","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"icon-button","fas","fa-qrcode","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-heart","fa-lg","me-1","pink-text"],[1,"fas","fa-heart","fa-lg","me-1",2,"opacity","0.5"],[1,"far","fa-circle-dot","fa-lg","me-1"],[1,"far","fa-circle-check","fa-lg","me-1"],["href","javascript:void(0)",1,"card-link","red-text"],["href","javascript:void(0)"],["ngbDropdown","","placement","left",1,"d-inline-block","ms-3","mt-auto"],[1,"fas","fa-lg","fa-power-off","ms-3"],["href","javascript:void(0)",1,"card-link","red-text",3,"click"],["container","body","triggers","hover",1,"far","fa-pause-circle","fa-lg",3,"ngbTooltip","openDelay"],["href","javascript:void(0)",3,"click"],[1,"far","fa-arrow-alt-circle-down","fa-lg"],["href","javascript:void(0)","ngbDropdownToggle","",1,"card-link","text-decoration-none","mt-auto",2,"outline","none"],[1,"fa-solid","fa-ellipsis-v","fa-lg"],["ngbDropdownMenu","","aria-labelledby","Plugin Actions Dropdown"],["ngbDropdownItem","",3,"click"],[1,"fas","fa-sliders"],["ngbDropdownItem",""],[1,"dropdown-divider"],["ngbDropdownItem","","rel","noopener noreferrer","target","_blank",3,"href"],[1,"fas","fa-wave-square"],[1,"fas","fa-code-compare"],[1,"fas","fa-code"],[1,"far","fa-circle-pause"],[1,"far","fa-circle-play"],[1,"fas","fa-trash"],[1,"fas","fa-bridge"],[1,"fas","fa-broom"],[1,"icon-button","fas","fa-power-off"],[1,"fas","fa-stop"],[1,"fas","fa-play"],[1,"icon-button","fas","fa-bridge"],[1,"icon-button","fa","fa-question-circle-o"]],template:function(l,t){l&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"img",3),f("error",function(){return t.handleIconError()}),a()(),o(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"h5",8),c(9),a(),m(10,pe,8,7,"div",9),a(),o(11,"p",10)(12,"a",11),f("click",function(){return t.pluginInfoModal(t.plugin)}),p(13,"i",12),o(14,"span",13),c(15),a()()(),o(16,"p",14),m(17,ce,4,1,"a",15),m(18,ue,3,1,"span",13),a(),o(19,"div",7)(20,"p",16),m(21,ge,5,2,"span"),m(22,_e,2,1),a(),m(23,He,5,4,"div",9),a()()()()()()),l&2&&(n(3),C("src",t.plugin.icon,M),n(6),h(t.plugin.displayName),n(),g(t.isAdmin?10:-1),n(3),C("ngClass",ai(10,te,t.plugin.isHbScoped,!t.plugin.isHbScoped&&(t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin),!t.plugin.isHbScoped&&!t.plugin.verifiedPlugin&&!t.plugin.verifiedPlusPlugin)),n(2),h(t.plugin.name),n(2),g((t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin)&&t.plugin.funding?17:-1),n(),g((t.plugin.verifiedPlugin||t.plugin.verifiedPlusPlugin)&&t.plugin.funding?-1:18),n(3),g(t.plugin.publicPackage&&!t.plugin.installedVersion?21:-1),n(),g(t.plugin.installedVersion?22:-1),n(),g(t.isAdmin?23:-1))},dependencies:[L,D,Pi,yi,vi,xi,bi,ri,k],encapsulation:2})}return e})();var Ai=(()=>{class e{$activeModal=P(A);dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=S({type:e,selectors:[["ng-component"]],decls:28,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fa","fa-question-circle-o","primary-text",2,"font-size","75px"],[1,"mb-0"],[3,"innerHTML"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"]],template:function(l,t){l&1&&(o(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),c(4),r(5,"translate"),a(),o(6,"button",3),r(7,"translate"),f("click",function(){return t.dismissModal()}),a()(),o(8,"div",4)(9,"div",5),p(10,"i",6),a(),o(11,"ul",7),p(12,"li",8),r(13,"translate"),p(14,"li",8),r(15,"translate"),p(16,"li",8),r(17,"translate"),p(18,"li",8),r(19,"translate"),a(),p(20,"app-support-banner"),a(),o(21,"div",9),p(22,"div",10),o(23,"div",11)(24,"button",12),f("click",function(){return t.dismissModal()}),c(25),r(26,"translate"),a()(),p(27,"div",13),a()()()),l&2&&(n(4),h(s(5,7,"support.title")),n(2),w("aria-label",s(7,9,"form.button_close")),n(6),C("innerHTML",s(13,11,"plugins.support.list_1"),V),n(2),C("innerHTML",s(15,13,"plugins.support.list_2"),V),n(2),C("innerHTML",s(17,15,"plugins.support.list_3"),V),n(2),C("innerHTML",s(19,17,"plugins.support.list_4"),V),n(7),b(" ",s(26,19,"form.button_close")," "))},dependencies:[Vi,k],encapsulation:2})}return e})();var Oe=["searchInput"],je=(e,d)=>({"fa-magnifying-glass":e,"fa-exclamation-circle":d});function Fe(e,d){e&1&&p(0,"app-spinner")}function ze(e,d){if(e&1){let i=y();o(0,"button",7),r(1,"translate"),r(2,"translate"),f("click",function(){x(i);let t=u();return v(t.showSearch())}),p(3,"i"),a(),o(4,"button",8),r(5,"translate"),r(6,"translate"),f("click",function(){x(i);let t=u();return v(t.showStats())}),p(7,"i"),a()}if(e&2){let i=u();C("openDelay",150)("ngbTooltip",s(1,13,"plugins.search"))("hidden",!i.installedPlugins.length),w("aria-label",s(2,15,"plugins.search")),n(3),Y(Z("fas",i.showSearchBar?" primary-text":""," fa-search")),n(),C("openDelay",150)("ngbTooltip",s(5,17,"plugins.stats")),w("aria-label",s(6,19,"plugins.stats")),n(3),Y(Z("fas",i.tab==="stats"?" primary-text":""," fa-sliders"))}}function Ue(e,d){if(e&1){let i=y();o(0,"a",15),f("click",function(){x(i);let t=u(3);return v(t.onClearSearch())}),p(1,"i",16),a()}}function qe(e,d){if(e&1){let i=y();o(0,"div",9)(1,"div",11)(2,"form",12),f("ngSubmit",function(){x(i);let t=u(2);return v(t.onSubmit(t.form))}),p(3,"input",13,0),r(5,"translate"),m(6,Ue,2,0,"a",14),a()()()}if(e&2){let i=u(2);n(2),C("formGroup",i.form),n(),C("placeholder",s(5,3,"plugins.placeholder_search_plugin")),n(3),g(i.showExitButton?6:-1)}}function Re(e,d){if(e&1&&(o(0,"div",17),p(1,"app-plugin-card",19),a()),e&2){let i=d.$implicit,l=u(3);n(),C("plugin",i)("childBridges",l.getPluginChildBridges(i))}}function Le(e,d){if(e&1&&(o(0,"div",18),p(1,"i",20),o(2,"p"),c(3),r(4,"translate"),a()()),e&2){let i=u(3);n(),C("ngClass",B(4,je,!i.showExitButton,i.showExitButton)),n(2),h(s(4,2,i.showExitButton?"plugins.placeholder_search_none":"plugins.placeholder_search_first"))}}function Ge(e,d){if(e&1&&(o(0,"div",10),U(1,Re,2,2,"div",17,z),m(3,Le,5,7,"div",18),a()),e&2){let i=u(2);n(),q(i.installedPlugins),n(2),g(i.installedPlugins.length===0&&!i.loading&&!i.mainError?3:-1)}}function We(e,d){if(e&1&&(m(0,qe,7,5,"div",9),m(1,Ge,4,1,"div",10)),e&2){let i=u();g(i.showSearchBar?0:-1),n(),g(i.loading?-1:1)}}function Qe(e,d){e&1&&(o(0,"div",21)(1,"div",22)(2,"code"),c(3,"https://developers.homebridge.io/analytics "),o(4,"a",23),p(5,"i",24),a()()(),o(6,"div",25),c(7),r(8,"translate"),a()(),p(9,"iframe",26)),e&2&&(n(7),h(s(8,1,"plugins.stats_note")))}var pn=(()=>{class e{searchInput;$api=P(W);$auth=P(J);$modal=P(R);$plugin=P(X);$router=P(Si);$settings=P(Q);$toastr=P(G);$translate=P(H);$ws=P(K);isSearchMode=!1;io;navigationSubscription;mainError=!1;loading=!0;tab="main";installedPlugins=[];childBridges=[];showSearchBar=!1;showExitButton=!1;isAdmin=this.$auth.user.admin;form=new ci({query:new ui("")});ngOnInit(){return I(this,null,function*(){this.io=this.$ws.connectToNamespace("child-bridges"),this.io.connected.subscribe(()=>I(this,null,function*(){this.getChildBridgeMetadata(),this.io.socket.emit("monitor-child-bridge-status"),yield this.loadInstalledPlugins(),this.installedPlugins.length||this.showSearch();let{action:i,plugin:l}=this.$router.parseUrl(this.$router.url).queryParams;if(i){let t=this.installedPlugins.find(_=>_.name===l);switch(i){case"just-installed":{t&&(t.isConfigured?this.$modal.open(j,{size:"lg",backdrop:"static"}):this.$plugin.settings(t));break}case"open-manage-version":{t&&this.$plugin.installAlternateVersion(t);break}}this.$router.navigate([],{queryParams:{},replaceUrl:!0,queryParamsHandling:""})}})),this.io.socket.on("child-bridge-status-update",i=>{let l=this.childBridges.find(t=>t.username===i.username);l?Object.assign(l,i):this.childBridges.push(i)}),this.navigationSubscription=this.$router.events.subscribe(i=>{i instanceof wi&&this.loadInstalledPlugins()})})}search(){this.installedPlugins=[],this.loading=!0,this.showExitButton=!0,this.$api.get(`/plugins/search/${encodeURIComponent(this.form.value.query)}`).subscribe({next:i=>{let l=new Set,t=new Map(i.map(_=>[_.name,_]));this.installedPlugins=i.reduce((_,T)=>{if(T.name==="homebridge-config-ui-x"||l.has(T.name))return _;if(T.newHbScope){let O=T.newHbScope.to,Ni=t.has(O);(T.installedVersion||!Ni)&&(l.add(O),_.push(T))}else _.push(T);return _},[]),this.appendMetaInfo(),this.loading=!1},error:i=>{this.loading=!1,this.isSearchMode=!1,console.error(i),this.$toastr.error(i.error?.message||i.message,this.$translate.instant("toast.title_error")),this.loadInstalledPlugins()}})}onClearSearch(){this.loadInstalledPlugins()}onSubmit({value:i}){i.query.length?(this.isSearchMode=!0,this.search()):this.isSearchMode&&(this.isSearchMode=!1,this.loadInstalledPlugins())}showSearch(){this.showSearchBar?(this.showSearchBar=!1,this.isSearchMode&&(this.isSearchMode=!1,this.form.setValue({query:""}),this.loadInstalledPlugins())):(window.document.querySelector("body").classList.remove("bg-black"),this.tab="main",this.showSearchBar=!0,setTimeout(()=>this.searchInput.nativeElement.focus(),0))}showStats(){this.tab==="stats"?(window.document.querySelector("body").classList.remove("bg-black"),this.tab="main"):(window.document.querySelector("body").classList.add("bg-black"),this.tab="stats",this.showSearchBar=!1)}openSupport(){this.$modal.open(Ai,{size:"lg",backdrop:"static"})}ngOnDestroy(){window.document.querySelector("body").classList.remove("bg-black"),this.navigationSubscription&&this.navigationSubscription.unsubscribe(),this.io.end()}getPluginChildBridges(i){return this.childBridges.filter(l=>l.plugin===i.name)}loadInstalledPlugins(){return I(this,null,function*(){this.form.setValue({query:""}),this.showExitButton=!1,this.installedPlugins=[],this.loading=!0,this.mainError=!1;try{let i=yield N(this.$api.get("/plugins"));this.installedPlugins=i.filter(t=>t.name!=="homebridge-config-ui-x"),yield this.appendMetaInfo();let l=this.installedPlugins.sort((t,_)=>{let T=(t.updateAvailable?1e3:0)+(t.newHbScope?100:0)+(t.disabled?-10:0)+(t.isConfigured?-20:0)+(t.hasChildBridgesUnpaired?5:0)+(t.hasChildBridges&&this.$settings.env.recommendChildBridges?-1:0),O=(_.updateAvailable?1e3:0)+(_.newHbScope?100:0)+(_.disabled?-10:0)+(_.isConfigured?-20:0)+(_.hasChildBridgesUnpaired?5:0)+(_.hasChildBridges&&this.$settings.env.recommendChildBridges?-1:0);return T!==O?O-T:t.name.localeCompare(_.name)});return this.loading=!1,l}catch(i){console.error(i),this.loading=!1,this.mainError=!0,this.$toastr.error(this.$translate.instant("plugins.toast_failed_to_load_plugins"),this.$translate.instant("toast.title_error"))}})}appendMetaInfo(){return I(this,null,function*(){this.isAdmin&&(yield Promise.all(this.installedPlugins.filter(i=>i.installedVersion).map(i=>I(this,null,function*(){try{let l=yield N(this.$api.get(`/config-editor/plugin/${encodeURIComponent(i.name)}`));i.isConfigured=l.length>0,i.isConfiguredDynamicPlatform=i.isConfigured&&Object.prototype.hasOwnProperty.call(l[0],"platform"),i.recommendChildBridge=i.isConfigured&&this.$settings.env.recommendChildBridges&&!["homebridge","homebridge-config-ui-x"].includes(i.name),i.hasChildBridges=i.isConfigured&&l.some(_=>_._bridge&&_._bridge.username);let t=this.getPluginChildBridges(i);i.hasChildBridgesUnpaired=t.some(_=>!_.paired),this.$settings.env.plugins?.hideUpdatesFor?.includes(i.name)&&(i.updateAvailable=!1)}catch{i.isConfigured=!0,i.hasChildBridges=!0}}))))})}getChildBridgeMetadata(){this.io.request("get-homebridge-child-bridge-status").subscribe(i=>{this.childBridges=i})}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=S({type:e,selectors:[["ng-component"]],viewQuery:function(l,t){if(l&1&&ti(Oe,5),l&2){let _;ni(_=oi())&&(t.searchInput=_.first)}},decls:13,vars:9,consts:[["searchInput",""],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end"],["type","button",1,"btn","btn-elegant","my-0","me-0",3,"click"],[1,"fa","fa-question-circle-o"],["type","button","container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","openDelay","ngbTooltip","hidden"],["type","button","container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-2","d-none","d-md-inline-block",3,"click","openDelay","ngbTooltip"],[1,"row"],[1,"d-flex","flex-wrap","justify-content-between"],[1,"col-md-12"],["novalidate","",3,"ngSubmit","formGroup"],["type","text","formControlName","query",1,"hb-npm-search",3,"placeholder"],["href","javascript:void(0)",1,"hb-npm-search-clear"],["href","javascript:void(0)",1,"hb-npm-search-clear",3,"click"],[1,"far","fa-times-circle"],[1,"hb-plugin-space-between"],[1,"alert","alert-info","mt-4","text-center","w-100"],[3,"plugin","childBridges"],[1,"fas","primary-text","my-3",2,"font-size","75px",3,"ngClass"],[1,"w-100","py-3","hb-stats-header","text-white","text-center"],[1,"mb-2"],["href","https://developers.homebridge.io/analytics","target","_blank"],[1,"fa","fa-external-link"],[1,"small","grey-text"],["src",ei`https://developers.homebridge.io/analytics/`,"sandbox","allow-scripts allow-same-origin allow-popups","referrerpolicy","no-referrer",1,"hb-stats"]],template:function(l,t){l&1&&(m(0,Fe,1,0,"app-spinner"),o(1,"div",1)(2,"div",2)(3,"h3",3),c(4),r(5,"translate"),a()(),o(6,"div",4),m(7,ze,8,21),o(8,"button",5),r(9,"translate"),f("click",function(){return t.openSupport()}),p(10,"i",6),a()()(),m(11,We,2,2)(12,Qe,10,3)),l&2&&(g(t.loading?0:-1),n(4),h(s(5,5,"menu.label_plugins")),n(3),g(t.isAdmin?7:-1),n(),w("aria-label",s(9,7,"support.title")),n(3),g(t.tab==="main"?11:t.tab==="stats"?12:-1))},dependencies:[Bi,fi,mi,si,di,pi,Ci,gi,_i,Di,D,L,k],styles:[".hb-npm-search[_ngcontent-%COMP%]{outline:none;box-sizing:inherit!important;background-color:inherit;height:50px!important;width:100%;border-width:.5px;padding:10px;margin-bottom:15px}@media (hover: hover){.hb-npm-search[_ngcontent-%COMP%]:hover{border:1px solid #000000}}.hb-npm-search[_ngcontent-%COMP%]:focus{border:1px solid #000000;box-shadow:0 1px #000}.hb-npm-search-clear[_ngcontent-%COMP%]{position:absolute;right:25px;font-size:35px;color:#d0d0d0;line-height:50px;cursor:pointer}.hb-plugin-space-between[_ngcontent-%COMP%]{box-sizing:border-box;width:calc(50% - 6.6666666667px)}@media only screen and (max-width: 991px){.hb-plugin-space-between[_ngcontent-%COMP%]{width:100%}}.hb-stats-header[_ngcontent-%COMP%]{background:#242424;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.hb-stats-header[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{border:1px solid grey;border-radius:5px;padding:5px;font-size:.8rem;color:#d3d3d3}.hb-stats[_ngcontent-%COMP%]{height:calc(100% - 121px);width:100%;overflow:hidden;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}@media (max-width: 767px){.hb-stats[_ngcontent-%COMP%]{height:calc(100% - 60px)}}"]})}return e})();export{pn as PluginsComponent};
|