homebridge-config-ui-x 4.75.1-beta.1 → 4.75.1-beta.2
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 +11 -2
- package/package.json +5 -5
- package/public/assets/plugin-ui-utils/ui.js +3 -0
- package/public/assets/plugin-ui-utils/ui.js.map +1 -1
- package/public/{chunk-LQG2MZNM.js → chunk-2KZLICGS.js} +1 -1
- package/public/chunk-2PGR64P5.js +1 -0
- package/public/chunk-2RNJSFS7.js +1 -0
- package/public/chunk-3GULJZHP.js +1 -0
- package/public/{chunk-CUKPSGYS.js → chunk-3VIG5M5R.js} +3 -3
- package/public/chunk-4NDOCFGG.js +1 -0
- package/public/{chunk-G5LGUOIC.js → chunk-4XCUHCZU.js} +1 -1
- package/public/chunk-53MG7QXV.js +1 -0
- package/public/{chunk-KERT6UGZ.js → chunk-6NWL7CB3.js} +1 -1
- package/public/chunk-7S2SCSTB.js +5 -0
- package/public/chunk-7SJGSEPE.js +1 -0
- package/public/chunk-ASBFWS7L.js +2 -0
- package/public/{chunk-2LNJIYOM.js → chunk-AX4XM5D6.js} +1 -1
- package/public/chunk-B55KOX6X.js +1 -0
- package/public/{chunk-T5R74XVP.js → chunk-B7GLOYT7.js} +1 -1
- package/public/{chunk-KPW2P5T4.js → chunk-CHQVUHUA.js} +2 -2
- package/public/chunk-CJE5DDBP.js +1 -0
- package/public/{chunk-ZCRUIBP2.js → chunk-D356JN6H.js} +1 -1
- package/public/chunk-DJH66SYI.js +1 -0
- package/public/{chunk-FETTFNJ2.js → chunk-DJKI5XBW.js} +1 -1
- package/public/{chunk-DPRPAYPR.js → chunk-EGGX5SGW.js} +1 -1
- package/public/chunk-EPTOZSA7.js +1 -0
- package/public/chunk-F35OBQXB.js +1 -0
- package/public/{chunk-DCSCX4JC.js → chunk-FBR4HHZM.js} +1 -1
- package/public/{chunk-AFY7IWPI.js → chunk-FHMZVMZK.js} +2 -2
- package/public/chunk-FNFPXZX4.js +1 -0
- package/public/chunk-GNNIKKPO.js +1 -0
- package/public/chunk-GOBFGQBD.js +1 -0
- package/public/chunk-GSIVCSHF.js +1 -0
- package/public/{chunk-SDWHICZH.js → chunk-GV7Q453O.js} +1 -1
- package/public/{chunk-257ETYMI.js → chunk-HE5M3EM4.js} +1 -1
- package/public/{chunk-XSJLH4J4.js → chunk-HHNFJRKH.js} +1 -1
- package/public/chunk-HLSZVFAU.js +1 -0
- package/public/{chunk-5JABRELT.js → chunk-HM7UOZT2.js} +1 -1
- package/public/{chunk-B5U6NU6O.js → chunk-I43RBOES.js} +1 -1
- package/public/chunk-JLKEMUT4.js +1 -0
- package/public/{chunk-ZIXTTJ4W.js → chunk-JMCN2SQV.js} +1 -1
- package/public/{chunk-NOEHFZ26.js → chunk-JWU6IVTI.js} +1 -1
- package/public/chunk-K3HG3U3G.js +1 -0
- package/public/chunk-K6DFEHMG.js +1 -0
- package/public/chunk-KO5P6YA2.js +23 -0
- package/public/{chunk-XSS6G7LC.js → chunk-LTDUXFUG.js} +1 -1
- package/public/chunk-LVF2KE6Q.js +1 -0
- package/public/chunk-M35EINNZ.js +1 -0
- package/public/chunk-MCKPRFP5.js +1 -0
- package/public/chunk-NC6GKPI3.js +1 -0
- package/public/{chunk-ILBLYA26.js → chunk-OIOAEYOL.js} +1 -1
- package/public/chunk-OTIJ6UCA.js +1 -0
- package/public/{chunk-QAW7DVOA.js → chunk-PPRBUR7T.js} +1 -1
- package/public/chunk-PSHNG66A.js +1 -0
- package/public/chunk-Q24LUFZD.js +1 -0
- package/public/chunk-Q5OTW6S6.js +20 -0
- package/public/{chunk-3NAAMMFZ.js → chunk-Q7VA22QV.js} +1 -1
- package/public/chunk-QR7L4UUP.js +1 -0
- package/public/chunk-RI7DCDJD.js +32 -0
- package/public/chunk-SQAPWTDH.js +1 -0
- package/public/chunk-SQFRAUFL.js +1 -0
- package/public/chunk-SSDIHLPQ.js +1 -0
- package/public/chunk-SZEMJJPT.js +1 -0
- package/public/chunk-T37NITXH.js +1 -0
- package/public/chunk-TCMMHINS.js +1 -0
- package/public/chunk-TLI3C4PG.js +8 -0
- package/public/chunk-TZLUGJNM.js +1 -0
- package/public/chunk-U4V4ICSI.js +7 -0
- package/public/{chunk-3WZ7I7D2.js → chunk-UDM5XWBO.js} +1 -1
- package/public/chunk-UH63AXBP.js +1 -0
- package/public/{chunk-D33FRRVF.js → chunk-UR24V3JB.js} +1 -1
- package/public/{chunk-3DHL3DV5.js → chunk-UV3HFKCM.js} +2 -2
- package/public/{chunk-WCDCQZXT.js → chunk-VEAJQAIK.js} +1 -1
- package/public/chunk-VFV3NRSA.js +1 -0
- package/public/chunk-VISPEG4X.js +1 -0
- package/public/chunk-W53FO25Q.js +1 -0
- package/public/{chunk-QCVDY2FW.js → chunk-WM3ZC7RY.js} +1 -1
- package/public/{chunk-JZTTXI7J.js → chunk-WWIFLV45.js} +1 -1
- package/public/chunk-XM5KQQOD.js +1 -0
- package/public/{chunk-I6OD3CV4.js → chunk-XZR7OZ6I.js} +1 -1
- package/public/chunk-Y6BMKDRD.js +1 -0
- package/public/chunk-YC7T54ZI.js +1 -0
- package/public/{chunk-HZYDK6X5.js → chunk-YJULXWER.js} +1 -1
- package/public/chunk-YLVYOIDF.js +1 -0
- package/public/chunk-YXEV6KOV.js +7 -0
- package/public/chunk-Z6QDMWSL.js +1 -0
- package/public/chunk-ZDF5ST5S.js +6 -0
- package/public/index.html +2 -2
- package/public/main-C4GUNBUS.js +1 -0
- package/public/polyfills-4F4B5XMZ.js +2 -0
- package/public/styles-PGYQLREL.css +1 -0
- package/public/chunk-3FN4C22H.js +0 -1
- package/public/chunk-3RLNXFR7.js +0 -6
- package/public/chunk-44K5XVZH.js +0 -7
- package/public/chunk-4UVD743J.js +0 -1
- package/public/chunk-5F4VLFTN.js +0 -1
- package/public/chunk-5GWFM72Q.js +0 -1
- package/public/chunk-5HUYO2DR.js +0 -1
- package/public/chunk-5ORYPCEU.js +0 -1
- package/public/chunk-5QDD2DB7.js +0 -20
- package/public/chunk-6OMIETCH.js +0 -1
- package/public/chunk-6QAO3KAD.js +0 -1
- package/public/chunk-6ZN4TBLM.js +0 -7
- package/public/chunk-AQ2BGXJS.js +0 -1
- package/public/chunk-BC4ZZQWV.js +0 -1
- package/public/chunk-COLGKW4E.js +0 -1
- package/public/chunk-DBUCH6BG.js +0 -1
- package/public/chunk-DFOKNEHO.js +0 -1
- package/public/chunk-DQGH4ZQS.js +0 -32
- package/public/chunk-F2RWUAVO.js +0 -1
- package/public/chunk-FEYWIHT2.js +0 -1
- package/public/chunk-FP5A5IOH.js +0 -1
- package/public/chunk-FZTW3XJF.js +0 -1
- package/public/chunk-G4YADEBO.js +0 -1
- package/public/chunk-GDFC3M3E.js +0 -2
- package/public/chunk-I275JECR.js +0 -1
- package/public/chunk-IHAXSVLL.js +0 -1
- package/public/chunk-J2EKGONB.js +0 -1
- package/public/chunk-J3D6QREL.js +0 -1
- package/public/chunk-J6O6SHGX.js +0 -1
- package/public/chunk-L3LMIZ4T.js +0 -1
- package/public/chunk-LANZB72I.js +0 -1
- package/public/chunk-LCEXPZSQ.js +0 -1
- package/public/chunk-LGYUYNPL.js +0 -1
- package/public/chunk-LY5JX6HN.js +0 -1
- package/public/chunk-MJ2POKCB.js +0 -1
- package/public/chunk-O4HMFK6W.js +0 -1
- package/public/chunk-OWRK7HTL.js +0 -1
- package/public/chunk-OXOBBTSH.js +0 -1
- package/public/chunk-PAPC63GN.js +0 -1
- package/public/chunk-PME35EH3.js +0 -1
- package/public/chunk-SFNLLB3T.js +0 -1
- package/public/chunk-SVMMCH6E.js +0 -1
- package/public/chunk-T37UQ724.js +0 -1
- package/public/chunk-TEFE7EK6.js +0 -1
- package/public/chunk-UN6Z3IIR.js +0 -1
- package/public/chunk-VWKJPQAD.js +0 -1
- package/public/chunk-W2INV3O5.js +0 -5
- package/public/chunk-WTRXS7NG.js +0 -1
- package/public/chunk-WYBTQTK2.js +0 -1
- package/public/chunk-YJ5IY7FU.js +0 -23
- package/public/chunk-ZLTYYELQ.js +0 -1
- package/public/chunk-ZRIMNRS2.js +0 -1
- package/public/main-JTI3H3YO.js +0 -1
- package/public/polyfills-JFMQVUE2.js +0 -2
- package/public/styles-SGJCHKTF.css +0 -1
package/public/chunk-F2RWUAVO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as we}from"./chunk-5ORYPCEU.js";import{a as ke}from"./chunk-G4YADEBO.js";import{v as ye}from"./chunk-DQGH4ZQS.js";import{g as J,m as N,n as he}from"./chunk-W2INV3O5.js";import{b as G,c as oe,e as W,f as le,g as Z,j as D,k as se,l as q,m as de,n as pe,o as ce,p as me,q as _e,r as ue,s as ge,t as ve,u as be,v as xe,y as K,z as fe}from"./chunk-4UVD743J.js";import{d as P,e as Ce}from"./chunk-DBUCH6BG.js";import{b as Se}from"./chunk-DPRPAYPR.js";import{h as V,k as R}from"./chunk-B5U6NU6O.js";import{a as F,b as $}from"./chunk-FETTFNJ2.js";import{$c as O,Ac as L,Cc as o,Dc as l,Ec as Y,Jb as x,Kb as g,M as Q,Pb as v,Rb as A,Sb as T,Tb as M,Ub as i,Vb as a,Wb as m,_b as k,bc as b,cb as X,cc as u,ed as j,gb as t,h as y,ma as w,mc as r,nc as p,oc as _,tb as B,tc as ne,ua as C,uc as ae,va as S,vc as re,w as E,yc as H,zb as h,zc as I}from"./chunk-6ZN4TBLM.js";function Me(n,c){n&1&&(i(0,"div",12),m(1,"i",13),a(),i(2,"p",14),r(3),o(4,"translate"),a()),n&2&&(t(3),p(l(4,1,"reset.no_accessories")))}function Ne(n,c){n&1&&(i(0,"div",12),m(1,"i",15),a(),i(2,"ul",16)(3,"li"),r(4),o(5,"translate"),a(),i(6,"li"),r(7),o(8,"translate"),a(),i(9,"li"),r(10),o(11,"translate"),a()(),i(12,"ngb-alert",17)(13,"p",18),r(14),o(15,"translate"),a()()),n&2&&(t(4),p(l(5,5,"reset.accessory_all.list_1")),t(3),p(l(8,7,"reset.accessory_all.list_2")),t(3),p(l(11,9,"reset.accessory_all.list_3")),t(2),g("dismissible",!1),t(2),p(l(15,11,"reset.action_is_irreversible")))}function Fe(n,c){if(n&1){let e=k();i(0,"button",19),o(1,"translate"),b("click",function(){C(e);let d=u();return S(d.$activeModal.dismiss("Dismiss"))}),r(2),o(3,"translate"),a()}if(n&2){let e=u();g("disabled",e.clicked),x("aria-label",l(1,3,"form.button_close")),t(2),_(" ",l(3,5,"form.button_close")," ")}}function Ve(n,c){if(n&1){let e=k();i(0,"button",20),o(1,"translate"),b("click",function(){C(e);let d=u();return S(d.$activeModal.dismiss("Dismiss"))}),r(2),o(3,"translate"),a()}n&2&&(x("aria-label",l(1,2,"form.button_close")),t(2),_(" ",l(3,4,"form.button_close")," "))}function Re(n,c){n&1&&(r(0),o(1,"translate")),n&2&&_(" ",l(1,1,"form.button_remove")," ")}function De(n,c){n&1&&m(0,"i",22)}function Pe(n,c){if(n&1){let e=k();i(0,"button",21),b("click",function(){C(e);let d=u();return S(d.onResetCachedAccessoriesClick())}),h(1,Re,2,3)(2,De,1,0,"i",22),a()}if(n&2){let e=u();g("disabled",e.clicked),t(),v(e.clicked?-1:1),t(),v(e.clicked?2:-1)}}var Ee=(()=>{class n{$activeModal=w(N);$api=w(R);$router=w(P);$toastr=w(V);$translate=w(F);clicked=!1;cachedAccessories=[];constructor(){}ngOnInit(){this.loadCachedAccessories()}loadCachedAccessories(){return y(this,null,function*(){try{this.cachedAccessories=yield E(this.$api.get("/server/cached-accessories"))}catch(e){console.error(e),this.$toastr.error(this.$translate.instant("reset.error_message"),this.$translate.instant("toast.title_error")),this.$activeModal.close()}})}onResetCachedAccessoriesClick(){return this.clicked=!0,this.$api.put("/server/reset-cached-accessories",{}).subscribe({next:()=>{this.$toastr.success(this.$translate.instant("reset.delete_success"),this.$translate.instant("toast.title_success")),this.$activeModal.close(),this.$router.navigate(["/restart"],{queryParams:{restarting:!0}})},error:e=>{this.clicked=!1,console.error(e),this.$toastr.error(this.$translate.instant("reset.failed_to_reset"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(s){return new(s||n)};static \u0275cmp=B({type:n,selectors:[["ng-component"]],decls:17,vars:12,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"disabled"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"disabled"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-circle-check","primary-text",2,"font-size","75px"],[1,"mb-0","text-center"],[1,"fas","fa-fw","fa-network-wired","primary-text",2,"font-size","75px"],[1,"mb-3"],["type","error",1,"mb-0",3,"dismissible"],[1,"text-center","mb-0"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"]],template:function(s,d){s&1&&(i(0,"div",0)(1,"div",1)(2,"h5",2),r(3),o(4,"translate"),a(),i(5,"button",3),o(6,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),a()(),i(7,"div",4),h(8,Me,5,3)(9,Ne,16,13),a(),i(10,"div",5)(11,"div",6),h(12,Fe,4,7,"button",7),a(),i(13,"div",8),h(14,Ve,4,6,"button",9),a(),i(15,"div",10),h(16,Pe,3,3,"button",11),a()()()),s&2&&(t(3),p(l(4,8,"reset.accessory_all.title")),t(2),g("disabled",d.clicked),x("aria-label",l(6,10,"form.button_close")),t(3),v(d.cachedAccessories.length===0?8:-1),t(),v(d.cachedAccessories.length>0?9:-1),t(3),v(d.cachedAccessories.length>0?12:-1),t(2),v(d.cachedAccessories.length===0?14:-1),t(2),v(d.cachedAccessories.length>0?16:-1))},dependencies:[J,$],encapsulation:2})}return n})();var He=(n,c)=>({"green-text":n,"grey-text":c}),Le=(n,c)=>({"btn-danger":n,"btn-elegant":c}),Oe=(n,c,e)=>({"fa-broom":n,"fa-undo":c,"fa-spinner fa-pulse":e});function Ue(n,c){n&1&&(i(0,"div",12),m(1,"i",13),a(),i(2,"p",14),r(3),o(4,"translate"),a()),n&2&&(t(3),p(l(4,1,"reset.bridge_accessories.empty")))}function ze(n,c){if(n&1){let e=k();i(0,"li",18)(1,"span"),r(2),m(3,"br"),i(4,"small",19),m(5,"i",20),r(6),o(7,"translate"),i(8,"span",21),r(9),a()()(),i(10,"button",22),o(11,"translate"),b("click",function(){let d=C(e).$implicit,f=u(2);return S(f.toggleList(d._id))}),m(12,"i",23),a()()}if(n&2){let e=c.$implicit,s=u(2);t(2),_(" ",e.name," "),t(3),g("ngClass",I(12,He,e._isPaired,!e._isPaired)),t(),_(" ",l(7,8,e._isPaired?"status.widget.qr_paired":"status.widget.qr_unpaired")," \xB7 "),t(3),p(e._username),t(),g("disabled",s.clicked)("ngClass",I(15,Le,!s.toDelete.includes(e._id),s.toDelete.includes(e._id))),x("aria-label",l(11,10,"form.button_delete")),t(2),g("ngClass",L(18,Oe,!s.toDelete.includes(e._id),s.toDelete.includes(e._id)&&!s.clicked,s.toDelete.includes(e._id)&&s.clicked))}}function je(n,c){if(n&1&&(i(0,"div",12),m(1,"i",15),a(),i(2,"ul",16)(3,"li"),r(4),o(5,"translate"),a(),i(6,"li"),r(7),o(8,"translate"),a(),i(9,"li"),r(10),o(11,"translate"),a()(),i(12,"ul",17),T(13,ze,13,22,"li",18,A),a()),n&2){let e=u();t(4),p(l(5,3,"reset.bridge_accessories.list_1")),t(3),p(l(8,5,"reset.clear_cache_single.list_3")),t(3),p(l(11,7,"reset.bridge_accessories.list_2")),t(3),M(e.pairings)}}function Ge(n,c){if(n&1){let e=k();i(0,"button",24),b("click",function(){C(e);let d=u();return S(d.$activeModal.dismiss("Dismiss"))}),r(1),o(2,"translate"),a()}if(n&2){let e=u();g("disabled",e.clicked),t(),_(" ",l(2,2,"form.button_close")," ")}}function We(n,c){if(n&1){let e=k();i(0,"button",25),b("click",function(){C(e);let d=u();return S(d.$activeModal.dismiss("Dismiss"))}),r(1),o(2,"translate"),a()}n&2&&(t(),_(" ",l(2,1,"form.button_close")," "))}function qe(n,c){if(n&1&&r(0),n&2){let e=u(3);_(" (",e.toDelete.length,") ")}}function Ke(n,c){if(n&1&&(r(0),o(1,"translate"),h(2,qe,1,1)),n&2){let e=u(2);_(" ",l(1,2,"form.button_remove")," "),t(2),v(e.toDelete.length>0?2:-1)}}function Je(n,c){n&1&&m(0,"i",27)}function Qe(n,c){if(n&1){let e=k();i(0,"button",26),b("click",function(){C(e);let d=u();return S(d.cleanBridges())}),h(1,Ke,3,4)(2,Je,1,0,"i",27),a()}if(n&2){let e=u();g("disabled",!e.toDelete.length||e.clicked),t(),v(e.clicked?-1:1),t(),v(e.clicked?2:-1)}}var Be=(()=>{class n{$activeModal=w(N);$api=w(R);$router=w(P);$toastr=w(V);$translate=w(F);clicked=!1;pairings=[];toDelete=[];constructor(){}ngOnInit(){this.loadPairings()}loadPairings(){return y(this,null,function*(){try{this.pairings=(yield E(this.$api.get("/server/pairings"))).filter(e=>e._category==="bridge"&&!e._main).sort((e,s)=>e.name.localeCompare(s.name))}catch(e){console.error(e),this.$toastr.error(this.$translate.instant("settings.unpair_bridge.load_error"),this.$translate.instant("toast.title_error")),this.$activeModal.close()}})}toggleList(e){this.toDelete.includes(e)?this.toDelete=this.toDelete.filter(s=>s!==e):this.toDelete.push(e)}cleanBridges(){return this.clicked=!0,this.$api.delete("/server/pairings/accessories",{body:this.toDelete.map(e=>({id:e}))}).subscribe({next:()=>{this.$toastr.success(this.$translate.instant("reset.accessory_ind.done"),this.$translate.instant("toast.title_success")),this.$activeModal.close(),this.$router.navigate(["/restart"],{queryParams:{restarting:!0}})},error:e=>{this.clicked=!1,console.error(e),this.$toastr.error(this.$translate.instant("reset.accessory_ind.fail"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(s){return new(s||n)};static \u0275cmp=B({type:n,selectors:[["ng-component"]],decls:17,vars:12,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"disabled"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"disabled"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-circle-check","primary-text",2,"font-size","75px"],[1,"mb-0","text-center"],[1,"fas","fa-fw","fa-broom","primary-text",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"grey-text"],[1,"fas","fa-fw","fa-link",3,"ngClass"],[1,"font-monospace"],[1,"btn","btn-danger","m-0","ms-3",3,"click","disabled","ngClass"],[1,"fas","fa-fw",3,"ngClass"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"]],template:function(s,d){s&1&&(i(0,"div",0)(1,"div",1)(2,"h5",2),r(3),o(4,"translate"),a(),i(5,"button",3),o(6,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),a()(),i(7,"div",4),h(8,Ue,5,3)(9,je,15,9),a(),i(10,"div",5)(11,"div",6),h(12,Ge,3,4,"button",7),a(),i(13,"div",8),h(14,We,3,3,"button",9),a(),i(15,"div",10),h(16,Qe,3,3,"button",11),a()()()),s&2&&(t(3),p(l(4,8,"reset.bridge_accessories.title")),t(2),g("disabled",d.clicked),x("aria-label",l(6,10,"form.button_close")),t(3),v(d.pairings.length===0?8:-1),t(),v(d.pairings.length>0?9:-1),t(3),v(d.pairings.length>0?12:-1),t(2),v(d.pairings.length===0?14:-1),t(2),v(d.pairings.length>0?16:-1))},dependencies:[O,$],encapsulation:2})}return n})();function Xe(n,c){n&1&&(r(0),o(1,"translate")),n&2&&_(" ",l(1,1,"form.button_reset")," ")}function Ye(n,c){n&1&&m(0,"i",16)}var Ie=(()=>{class n{$activeModal=w(N);$api=w(R);$route=w(P);$toastr=w(V);$translate=w(F);clicked;constructor(){}onResetHomebridgeAccessoryClick(){return this.clicked=!0,this.$api.put("/server/reset-homebridge-accessory",{}).subscribe({next:()=>{this.$toastr.success(this.$translate.instant("reset.accessory_reset"),this.$translate.instant("toast.title_success")),this.$activeModal.close(),this.$route.navigate(["/restart"])},error:e=>{console.error(e),this.$toastr.error(this.$translate.instant("reset.failed_to_reset"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(s){return new(s||n)};static \u0275cmp=B({type:n,selectors:[["ng-component"]],decls:38,vars:33,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-bridge","primary-text",2,"font-size","75px"],[1,"mb-3"],["type","error",1,"mb-0",3,"dismissible"],[1,"text-center","mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"]],template:function(s,d){s&1&&(i(0,"div",0)(1,"div",1)(2,"h5",2),r(3),o(4,"translate"),a(),i(5,"button",3),o(6,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),a()(),i(7,"div",4)(8,"div",5),m(9,"i",6),a(),i(10,"ul",7)(11,"li"),r(12),o(13,"translate"),a(),i(14,"li"),r(15),o(16,"translate"),a(),i(17,"li"),r(18),o(19,"translate"),a(),i(20,"li"),r(21),o(22,"translate"),a()(),i(23,"ngb-alert",8)(24,"p",9),r(25),o(26,"translate"),a()()(),i(27,"div",10)(28,"div",11)(29,"button",12),o(30,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),r(31),o(32,"translate"),a()(),m(33,"div",13),i(34,"div",14)(35,"button",15),b("click",function(){return d.onResetHomebridgeAccessoryClick()}),h(36,Xe,2,3)(37,Ye,1,0,"i",16),a()()()()),s&2&&(t(3),p(l(4,15,"reset.bridge_all.title")),t(2),g("disabled",d.clicked),x("aria-label",l(6,17,"form.button_close")),t(7),p(l(13,19,"reset.bridge_all.list_1")),t(3),p(l(16,21,"reset.bridge_all.list_2")),t(3),p(l(19,23,"reset.bridge_all.list_3")),t(3),p(l(22,25,"reset.bridge_all.list_4")),t(2),g("dismissible",!1),t(2),p(l(26,27,"reset.action_is_irreversible")),t(4),g("disabled",d.clicked),x("aria-label",l(30,29,"form.button_close")),t(2),_(" ",l(32,31,"form.button_close")," "),t(4),g("disabled",d.clicked),t(),v(d.clicked?-1:36),t(),v(d.clicked?37:-1))},dependencies:[J,$],encapsulation:2})}return n})();var ee=(n,c)=>({"green-text":n,"grey-text":c}),te=(n,c)=>({"btn-danger":n,"btn-elegant":c}),$e=(n,c,e)=>({"fa-refresh":n,"fa-undo":c,"fa-spinner fa-pulse":e}),Ze=(n,c,e)=>({"fa-trash":n,"fa-undo":c,"fa-spinner fa-pulse":e});function et(n,c){n&1&&(i(0,"div",12),m(1,"i",13),a(),i(2,"p",14),r(3),o(4,"translate"),a()),n&2&&(t(3),p(l(4,1,"reset.bridges.empty")))}function tt(n,c){if(n&1){let e=k();i(0,"li",20)(1,"span"),r(2),m(3,"br"),i(4,"small",21),m(5,"i",22),r(6),o(7,"translate"),i(8,"span",23),r(9),a(),r(10),o(11,"titlecase"),a()(),i(12,"button",24),o(13,"translate"),b("click",function(){let d=C(e).$implicit,f=u(3);return S(f.toggleList(d._id,!1))}),m(14,"i",25),a()()}if(n&2){let e=c.$implicit,s=u(3);t(2),_(" ",e.name," "),t(3),g("ngClass",I(15,ee,e._isPaired,!e._isPaired)),t(),_(" ",l(7,9,e._isPaired?"status.widget.qr_paired":"status.widget.qr_unpaired")," \xB7 "),t(3),p(e._username),t(),_(" \xB7 ",e._main?"Homebridge":l(11,11,e._category)," "),t(2),g("disabled",s.clicked)("ngClass",I(18,te,!s.isInList(e._id),s.isInList(e._id))),x("aria-label",l(13,13,"form.button_unpair")),t(2),g("ngClass",L(21,$e,!s.isInList(e._id),s.isInList(e._id)&&!s.clicked,s.isInList(e._id)&&s.clicked))}}function it(n,c){if(n&1&&(i(0,"ul",16)(1,"li",17)(2,"h6",18),r(3),o(4,"translate"),a(),i(5,"p",19),r(6),o(7,"translate"),a()(),T(8,tt,15,25,"li",20,A),a()),n&2){let e=u(2);t(3),p(l(4,2,"reset.bridge_ind.head_non_child")),t(3),p(l(7,4,"reset.bridge_ind.desc_non_child")),t(2),M(e.pairingsNonChild)}}function nt(n,c){if(n&1){let e=k();i(0,"li",20)(1,"span"),r(2),m(3,"br"),i(4,"small",21),m(5,"i",22),r(6),o(7,"translate"),i(8,"span",23),r(9),a()()(),i(10,"button",24),o(11,"translate"),b("click",function(){let d=C(e).$implicit,f=u(3);return S(f.toggleList(d._id,!0))}),m(12,"i",25),a()()}if(n&2){let e=c.$implicit,s=u(3);t(2),_(" ",e.name," "),t(3),g("ngClass",I(12,ee,e._isPaired,!e._isPaired)),t(),_(" ",l(7,8,e._isPaired?"status.widget.qr_paired":"status.widget.qr_unpaired")," \xB7 "),t(3),p(e._username),t(),g("disabled",s.clicked)("ngClass",I(15,te,!s.isInList(e._id),s.isInList(e._id))),x("aria-label",l(11,10,"form.button_unpair")),t(2),g("ngClass",L(18,$e,!s.isInList(e._id),s.isInList(e._id)&&!s.clicked,s.isInList(e._id)&&s.clicked))}}function at(n,c){if(n&1&&(i(0,"ul",16)(1,"li",17)(2,"h6",18),r(3),o(4,"translate"),a(),i(5,"p",19),r(6),o(7,"translate"),a()(),T(8,nt,13,22,"li",20,A),a()),n&2){let e=u(2);t(3),p(l(4,2,"reset.bridge_ind.head_child_active")),t(3),p(l(7,4,"reset.bridge_ind.desc_child_active")),t(2),M(e.pairingsChildActive)}}function rt(n,c){if(n&1){let e=k();i(0,"li",20)(1,"span"),r(2),m(3,"br"),i(4,"small",21),m(5,"i",22),r(6),o(7,"translate"),i(8,"span",23),r(9),a()()(),i(10,"button",24),o(11,"translate"),b("click",function(){let d=C(e).$implicit,f=u(3);return S(f.toggleList(d._id,!1))}),m(12,"i",25),a()()}if(n&2){let e=c.$implicit,s=u(3);t(2),_(" ",e.name," "),t(3),g("ngClass",I(12,ee,e._isPaired,!e._isPaired)),t(),_(" ",l(7,8,e._isPaired?"status.widget.qr_paired":"status.widget.qr_unpaired")," \xB7 "),t(3),p(e._username),t(),g("disabled",s.clicked)("ngClass",I(15,te,!s.isInList(e._id),s.isInList(e._id))),x("aria-label",l(11,10,"form.button_unpair")),t(2),g("ngClass",L(18,Ze,!s.isInList(e._id),s.isInList(e._id)&&!s.clicked,s.isInList(e._id)&&s.clicked))}}function ot(n,c){if(n&1&&(i(0,"ul",16)(1,"li",17)(2,"h6",18),r(3),o(4,"translate"),a(),i(5,"p",19),r(6),o(7,"translate"),a()(),T(8,rt,13,22,"li",20,A),a()),n&2){let e=u(2);t(3),p(l(4,2,"reset.bridge_ind.head_child_stale")),t(3),p(l(7,4,"reset.bridge_ind.desc_child_stale")),t(2),M(e.pairingsChildStale)}}function lt(n,c){if(n&1&&(i(0,"div",12),m(1,"i",15),a(),h(2,it,10,6,"ul",16)(3,at,10,6,"ul",16)(4,ot,10,6,"ul",16)),n&2){let e=u();t(2),v(e.pairingsNonChild.length>0?2:-1),t(),v(e.pairingsChildActive.length>0?3:-1),t(),v(e.pairingsChildStale.length>0?4:-1)}}function st(n,c){if(n&1){let e=k();i(0,"button",26),b("click",function(){C(e);let d=u();return S(d.$activeModal.dismiss("Dismiss"))}),r(1),o(2,"translate"),a()}if(n&2){let e=u();g("disabled",e.clicked),t(),_(" ",l(2,2,"form.button_close")," ")}}function dt(n,c){if(n&1){let e=k();i(0,"button",27),b("click",function(){C(e);let d=u();return S(d.$activeModal.dismiss("Dismiss"))}),r(1),o(2,"translate"),a()}n&2&&(t(),_(" ",l(2,1,"form.button_close")," "))}function pt(n,c){if(n&1&&r(0),n&2){let e=u(3);_(" (",e.toDelete.length,") ")}}function ct(n,c){if(n&1&&(r(0),o(1,"translate"),h(2,pt,1,1)),n&2){let e=u(2);_(" ",l(1,2,"form.button_reset")," "),t(2),v(e.toDelete.length>0?2:-1)}}function mt(n,c){n&1&&m(0,"i",29)}function _t(n,c){if(n&1){let e=k();i(0,"button",28),b("click",function(){C(e);let d=u();return S(d.removeBridges())}),h(1,ct,3,4)(2,mt,1,0,"i",29),a()}if(n&2){let e=u();g("disabled",!e.toDelete.length||e.clicked),t(),v(e.clicked?-1:1),t(),v(e.clicked?2:-1)}}var Ae=(()=>{class n{$activeModal=w(N);$api=w(R);$router=w(P);$toastr=w(V);$translate=w(F);clicked=!1;pairingsNonChild=[];pairingsChildActive=[];pairingsChildStale=[];toDelete=[];constructor(){}ngOnInit(){this.loadPairings()}loadPairings(){return y(this,null,function*(){try{let e=(yield E(this.$api.get("/server/pairings"))).filter(s=>!s._main).sort((s,d)=>s.name.localeCompare(d.name));this.pairingsChildActive=e.filter(s=>s._category==="bridge"&&!s._couldBeStale),this.pairingsNonChild=e.filter(s=>s._category!=="bridge"),this.pairingsChildStale=e.filter(s=>s._category==="bridge"&&s._couldBeStale)}catch(e){console.error(e),this.$toastr.error(this.$translate.instant("settings.unpair_bridge.load_error"),this.$translate.instant("toast.title_error")),this.$activeModal.close()}})}toggleList(e,s=!1){this.toDelete.some(d=>d.id===e)?this.toDelete=this.toDelete.filter(d=>d.id!==e):this.toDelete.push({id:e,resetPairingInfo:s})}isInList(e){return this.toDelete.some(s=>s.id===e)}removeBridges(){return this.clicked=!0,this.$api.delete("/server/pairings",{body:this.toDelete}).subscribe({next:()=>{this.$toastr.success(this.$translate.instant("reset.bridge_ind.done"),this.$translate.instant("toast.title_success")),this.$activeModal.close(),this.$router.navigate(["/restart"],{queryParams:{restarting:!0}})},error:e=>{this.clicked=!1,console.error(e),this.$toastr.error(this.$translate.instant("reset.bridge_ind.fail"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(s){return new(s||n)};static \u0275cmp=B({type:n,selectors:[["ng-component"]],decls:17,vars:12,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"disabled"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"disabled"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-circle-check","primary-text",2,"font-size","75px"],[1,"text-center","mb-0"],[1,"fas","fa-fw","fa-bridge","primary-text",2,"font-size","75px"],[1,"list-group","list-group-box","mt-3","mb-0"],[1,"list-group-item"],[1,"mb-1","text-center"],[1,"mb-0","small","grey-text","text-center"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"grey-text"],[1,"fas","fa-fw","fa-link",3,"ngClass"],[1,"font-monospace"],[1,"btn","btn-danger","m-0","ms-3",3,"click","disabled","ngClass"],[1,"fas","fa-fw",3,"ngClass"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"]],template:function(s,d){s&1&&(i(0,"div",0)(1,"div",1)(2,"h5",2),r(3),o(4,"translate"),a(),i(5,"button",3),o(6,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),a()(),i(7,"div",4),h(8,et,5,3)(9,lt,5,3),a(),i(10,"div",5)(11,"div",6),h(12,st,3,4,"button",7),a(),i(13,"div",8),h(14,dt,3,3,"button",9),a(),i(15,"div",10),h(16,_t,3,3,"button",11),a()()()),s&2&&(t(3),p(l(4,8,"reset.bridge_ind.title")),t(2),g("disabled",d.clicked),x("aria-label",l(6,10,"form.button_close")),t(3),v(d.pairingsChildActive.length===0&&d.pairingsChildStale.length===0&&d.pairingsNonChild.length===0?8:-1),t(),v(d.pairingsChildActive.length>0||d.pairingsChildStale.length>0||d.pairingsNonChild.length>0?9:-1),t(3),v(d.pairingsChildActive.length>0||d.pairingsChildStale.length>0||d.pairingsNonChild.length>0?12:-1),t(2),v(d.pairingsChildActive.length===0&&d.pairingsChildStale.length===0&&d.pairingsNonChild.length===0?14:-1),t(2),v(d.pairingsChildActive.length>0||d.pairingsChildStale.length>0||d.pairingsNonChild.length>0?16:-1))},dependencies:[O,j,$],encapsulation:2})}return n})();function gt(n,c){if(n&1){let e=k();i(0,"li",10)(1,"span")(2,"label",17)(3,"input",18),re("ngModelChange",function(d){let f=C(e).$implicit;return ae(f.selected,d)||(f.selected=d),S(d)}),a(),i(4,"span"),r(5),a(),m(6,"span",19),a()(),i(7,"span",20),r(8),a()()}if(n&2){let e=c.$implicit;t(2),g("for","adapter"+e.iface),t(),g("id","adapter"+e.iface),ne("ngModel",e.selected),t(2),p(e.iface),t(3),p(e.ip4||e.ip6)}}var Te=(()=>{class n{$activeModal=w(N);availableNetworkAdapters=[];bridgeNetworkAdapters=[];constructor(){}submit(){this.$activeModal.close(this.availableNetworkAdapters.filter(e=>e.selected).map(e=>e.iface))}static \u0275fac=function(s){return new(s||n)};static \u0275cmp=B({type:n,selectors:[["ng-component"]],inputs:{availableNetworkAdapters:"availableNetworkAdapters",bridgeNetworkAdapters:"bridgeNetworkAdapters"},decls:35,vars:24,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-ethernet","primary-text",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box"],[1,"list-group-item","d-flex","flex-row","justify-content-between"],[1,"list-group-item","d-flex","flex-row","flex-wrap","justify-content-between"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click"],[1,"hb-uix-switch","d-inline","pe-3",3,"for"],["type","checkbox",3,"ngModelChange","id","ngModel"],[1,"hb-uix-slider","hb-uix-round"],[1,"font-monospace"]],template:function(s,d){s&1&&(i(0,"div",0)(1,"div",1)(2,"h5",2),r(3),o(4,"translate"),a(),i(5,"button",3),o(6,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),a()(),i(7,"div",4)(8,"div",5),m(9,"i",6),a(),i(10,"ul",7)(11,"li"),r(12),o(13,"translate"),a()(),i(14,"ul",8)(15,"li",9)(16,"strong"),r(17),o(18,"translate"),a(),i(19,"strong"),r(20),o(21,"translate"),a()(),T(22,gt,9,5,"li",10,A),a()(),i(24,"div",11)(25,"div",12)(26,"button",13),o(27,"translate"),b("click",function(){return d.$activeModal.dismiss("Dismiss")}),r(28),o(29,"translate"),a()(),m(30,"div",14),i(31,"div",15)(32,"button",16),b("click",function(){return d.submit()}),r(33),o(34,"translate"),a()()()()),s&2&&(t(3),p(l(4,8,"settings.network.title_network_interfaces")),t(2),x("aria-label",l(6,10,"form.button_close")),t(7),p(l(13,12,"settings.network.message_network_interface")),t(5),p(l(18,14,"settings.network.label_interface_name")),t(3),p(l(21,16,"settings.network.label_ip_address")),t(2),M(d.availableNetworkAdapters),t(4),x("aria-label",l(27,18,"form.button_close")),t(2),_(" ",l(29,20,"form.button_close")," "),t(5),_(" ",l(34,22,"form.button_save")," "))},dependencies:[K,G,W,q,$],encapsulation:2})}return n})();var ie=n=>({"is-invalid":n}),vt=n=>({file:n}),bt=n=>({link:n}),xt=n=>({"fa-pulse":n}),ft=(n,c)=>({"badge-danger":n,"badge-info":c});function ht(n,c){n&1&&(i(0,"li",20)(1,"small",21),r(2),o(3,"translate"),a(),i(4,"button",22),o(5,"translate"),r(6),o(7,"translate"),a()()),n&2&&(t(2),p(l(3,3,"settings.changes.saved")),t(2),x("aria-label",l(5,5,"menu.tooltip_restart")),t(2),_(" ",l(7,7,"menu.tooltip_restart")," "))}function Ct(n,c){if(n&1){let e=k();i(0,"ul",5)(1,"li",12)(2,"span"),r(3," Homebridge Name "),a(),i(4,"div",13),m(5,"input",14),o(6,"translate"),a()(),i(7,"li",15)(8,"span",16),r(9),o(10,"translate"),a(),i(11,"button",17),o(12,"translate"),b("click",function(){C(e);let d=u();return S(d.openUiSettings())}),m(13,"i",18),a()(),i(14,"li",15)(15,"span",16),r(16),o(17,"translate"),a(),i(18,"button",17),o(19,"translate"),b("click",function(){C(e);let d=u();return S(d.openBackupModal())}),m(20,"i",18),a()(),i(21,"li",15)(22,"span",16),r(23),o(24,"translate"),a(),i(25,"a",19),o(26,"translate"),m(27,"i",18),a()(),h(28,ht,8,9,"li",20),a()}if(n&2){let e=u();t(5),g("formControl",e.hbNameFormControl)("ngClass",H(24,ie,e.isInvalidHbName)),x("aria-label",l(6,10,"settings.network.port_ui")),t(4),_(" ",l(10,12,"menu.label_settings_advanced")," "),t(2),x("aria-label",l(12,14,"menu.label_settings_advanced")),t(5),_(" ",l(17,16,"backup.title_backup")," "),t(2),x("aria-label",l(19,18,"backup.title_backup")),t(5),_(" ",l(24,20,"menu.tooltip_user_accounts")," "),t(2),x("aria-label",l(26,22,"menu.tooltip_user_accounts")),t(3),v(e.hasChangedHbName&&!e.isInvalidHbName?28:-1)}}function St(n,c){n&1&&(i(0,"li",20)(1,"small",21),r(2),o(3,"translate"),a(),i(4,"button",22),o(5,"translate"),r(6),o(7,"translate"),a()()),n&2&&(t(2),p(l(3,3,"settings.changes.saved")),t(2),x("aria-label",l(5,5,"menu.tooltip_restart")),t(2),_(" ",l(7,7,"menu.tooltip_restart")," "))}function wt(n,c){if(n&1){let e=k();i(0,"ul",6)(1,"li",12),r(2),o(3,"translate"),i(4,"div",23)(5,"select",24),b("ngModelChange",function(d){C(e);let f=u();return S(f.saveUiSettingChange("lang",d))}),i(6,"option",25),r(7),o(8,"translate"),a(),i(9,"option",26),r(10,"Bulgarian (bg)"),a(),i(11,"option",27),r(12,"Catalan (ca)"),a(),i(13,"option",28),r(14,"Chinese - Simplified (zh-CN)"),a(),i(15,"option",29),r(16,"Chinese - Traditional (zh-TW)"),a(),i(17,"option",30),r(18,"Czech (cs)"),a(),i(19,"option",31),r(20,"Dutch (nl)"),a(),i(21,"option",32),r(22,"English (en)"),a(),i(23,"option",33),r(24,"Finnish (fi)"),a(),i(25,"option",34),r(26,"French (fr)"),a(),i(27,"option",35),r(28,"German (de)"),a(),i(29,"option",36),r(30,"Hebrew (he)"),a(),i(31,"option",37),r(32,"Hungarian (hu)"),a(),i(33,"option",38),r(34,"Indonesian (id)"),a(),i(35,"option",39),r(36,"Italian (it)"),a(),i(37,"option",40),r(38,"Japanese (ja)"),a(),i(39,"option",41),r(40,"Korean (ko)"),a(),i(41,"option",42),r(42,"Macedonian (mk)"),a(),i(43,"option",43),r(44,"Norwegian (no)"),a(),i(45,"option",44),r(46,"Polish (pl)"),a(),i(47,"option",45),r(48,"Portuguese (Brazil)"),a(),i(49,"option",46),r(50,"Portuguese (Portugal)"),a(),i(51,"option",47),r(52,"Russian (ru)"),a(),i(53,"option",48),r(54,"Slovenian (sl)"),a(),i(55,"option",49),r(56,"Spanish (es)"),a(),i(57,"option",50),r(58,"Swedish (sv)"),a(),i(59,"option",51),r(60,"Thai (th)"),a(),i(61,"option",52),r(62,"Turkish (tr)"),a(),i(63,"option",53),r(64,"Ukrainian (uk)"),a()()()(),i(65,"li",12),r(66),o(67,"translate"),i(68,"div",23)(69,"select",24),b("ngModelChange",function(d){C(e);let f=u();return S(f.saveUiSettingChange("theme",d))}),i(70,"option",54),r(71),o(72,"translate"),a(),i(73,"option",55),r(74),o(75,"translate"),a(),i(76,"option",56),r(77),o(78,"translate"),a(),i(79,"option",57),r(80),o(81,"translate"),a(),i(82,"option",58),r(83),o(84,"translate"),a(),i(85,"option",59),r(86),o(87,"translate"),a(),i(88,"option",60),r(89),o(90,"translate"),a(),i(91,"option",61),r(92),o(93,"translate"),a(),i(94,"option",62),r(95),o(96,"translate"),a(),i(97,"option",63),r(98),o(99,"translate"),a(),i(100,"option",64),r(101),o(102,"translate"),a(),i(103,"option",65),r(104),o(105,"translate"),a(),i(106,"option",66),r(107),o(108,"translate"),a()()()(),i(109,"li",12),r(110),o(111,"translate"),i(112,"div",23)(113,"select",24),b("ngModelChange",function(d){C(e);let f=u();return S(f.saveUiSettingChange("lightingMode",d))}),i(114,"option",25),r(115),o(116,"translate"),a(),i(117,"option",67),r(118),o(119,"translate"),a(),i(120,"option",68),r(121),o(122,"translate"),a()()()(),i(123,"li",12),r(124),o(125,"translate"),i(126,"div",23)(127,"select",24),b("ngModelChange",function(d){C(e);let f=u();return S(f.saveUiSettingChange("menuMode",d))}),i(128,"option",69),r(129),o(130,"translate"),a(),i(131,"option",70),r(132),o(133,"translate"),a()()()(),i(134,"li",12)(135,"span"),r(136),o(137,"translate"),m(138,"br")(139,"small",71),o(140,"translate"),a(),i(141,"div",23)(142,"input",72),b("ngModelChange",function(d){C(e);let f=u();return S(f.saveUiSettingChange("loginWallpaper",d))}),a()()(),i(143,"li",12),r(144),o(145,"translate"),i(146,"div",23)(147,"select",24),b("ngModelChange",function(d){C(e);let f=u();return S(f.saveUiSettingChange("tempUnits",d))}),i(148,"option",73),r(149),o(150,"translate"),a(),i(151,"option",74),r(152),o(153,"translate"),a()()()(),h(154,St,8,9,"li",20),a()}if(n&2){let e=u();t(2),_(" ",l(3,35,"settings.display.lang")," "),t(3),g("ngModel",e.$settings.env.lang),t(2),p(l(8,37,"form.select.auto")),t(59),_(" ",l(67,39,"settings.display.theme")," "),t(3),g("ngModel",e.$settings.theme),t(2),p(l(72,41,"settings.display.orange")),t(3),p(l(75,43,"settings.display.red")),t(3),p(l(78,45,"settings.display.pink")),t(3),p(l(81,47,"settings.display.purple")),t(3),p(l(84,49,"settings.display.deep_purple")),t(3),p(l(87,51,"settings.display.indigo")),t(3),p(l(90,53,"settings.display.blue")),t(3),p(l(93,55,"settings.display.bluegrey")),t(3),p(l(96,57,"settings.display.cyan")),t(3),p(l(99,59,"settings.display.green")),t(3),p(l(102,61,"settings.display.teal")),t(3),p(l(105,63,"settings.display.grey")),t(3),p(l(108,65,"settings.display.brown")),t(3),_(" ",l(111,67,"settings.display.lighting_mode")," "),t(3),g("ngModel",e.$settings.lightingMode),t(2),p(l(116,69,"form.select.auto")),t(3),p(l(119,71,"settings.display.light")),t(3),p(l(122,73,"settings.display.dark")),t(3),_(" ",l(125,75,"settings.display.menu_mode")," "),t(3),g("ngModel",e.$settings.menuMode),t(2),p(l(130,77,"settings.display.menu_default")),t(3),p(l(133,79,"settings.display.menu_freeze")),t(4),_(" ",l(137,81,"settings.display.login_wallpaper"),""),t(3),g("innerHTML",Y(140,83,"settings.display.login_wallpaper_desc",H(92,vt,e.file)),X),t(3),g("ngModel",e.$settings.loginWallpaper),t(2),_(" ",l(145,86,"settings.display.temp_units")," "),t(3),g("ngModel",e.$settings.env.temperatureUnits),t(2),p(l(150,88,"settings.display.temp_units.c")),t(3),p(l(153,90,"settings.display.temp_units.f")),t(2),v(e.hasChangedLoginWallpaper?154:-1)}}function kt(n,c){if(n&1&&(i(0,"li",15)(1,"span"),r(2),o(3,"translate"),i(4,"code"),r(5,"-D"),a(),m(6,"br"),i(7,"small",76),r(8),o(9,"translate"),a()(),m(10,"input",77),o(11,"translate"),m(12,"label",78),a()),n&2){let e=u(3);t(2),_(" ",l(3,3,"settings.startup.debug")," "),t(6),_(" ",l(9,5,e.isHbV2?"settings.startup.debug_desc_v2":"settings.startup.debug_desc_v1")," "),t(2),x("aria-label",l(11,7,"settings.startup.debug"))}}function yt(n,c){n&1&&(i(0,"li",15)(1,"span"),r(2),o(3,"translate"),i(4,"code"),r(5,"-I"),a(),m(6,"br"),i(7,"small",76),r(8),o(9,"translate"),a()(),m(10,"input",79),o(11,"translate"),m(12,"label",80),a()),n&2&&(t(2),_(" ",l(3,3,"settings.startup.insecure")," "),t(6),p(l(9,5,"settings.startup.insecure_desc")),t(2),x("aria-label",l(11,7,"settings.startup.insecure")))}function Et(n,c){n&1&&(i(0,"li",15)(1,"span"),r(2),o(3,"translate"),i(4,"code"),r(5,"-K"),a(),m(6,"br"),i(7,"small",76),r(8),o(9,"translate"),a()(),m(10,"input",81),o(11,"translate"),m(12,"label",82),a()),n&2&&(t(2),_(" ",l(3,3,"settings.startup.keep_accessories")," "),t(6),p(l(9,5,"settings.startup.keep_accessories_desc")),t(2),x("aria-label",l(11,7,"settings.startup.keep_accessories")))}function Bt(n,c){if(n&1&&(i(0,"li",12)(1,"span")(2,"span",83),r(3,"DEBUG"),a(),m(4,"br")(5,"small",71),o(6,"translate"),a(),i(7,"div",23),m(8,"input",84),a()()),n&2){let e=u(3);t(5),g("innerHTML",Y(6,1,"settings.service.debug_tooltip",H(4,bt,e.linkDebug)),X)}}function It(n,c){n&1&&(i(0,"li",12)(1,"span")(2,"span",83),r(3,"NODE_OPTIONS"),a(),m(4,"br"),i(5,"small",76),r(6),o(7,"translate"),a()(),i(8,"div",23),m(9,"input",85),a()()),n&2&&(t(6),p(l(7,1,"settings.service.node_tooltip")))}function $t(n,c){n&1&&(i(0,"li",15)(1,"span"),r(2),o(3,"translate"),m(4,"br"),i(5,"small",76),r(6),o(7,"translate"),a()(),i(8,"a",86),o(9,"translate"),m(10,"i",18),a()()),n&2&&(t(2),_(" ",l(3,3,"menu.docker.startup_script"),""),t(4),p(l(7,5,"platform.docker.script_help")),t(2),x("aria-label",l(9,7,"menu.docker.startup_script")))}function At(n,c){n&1&&(i(0,"li",20)(1,"small",21),r(2),o(3,"translate"),a(),i(4,"button",22),o(5,"translate"),r(6),o(7,"translate"),a()()),n&2&&(t(2),p(l(3,3,"settings.changes.saved")),t(2),x("aria-label",l(5,5,"menu.tooltip_restart")),t(2),_(" ",l(7,7,"menu.tooltip_restart")," "))}function Tt(n,c){if(n&1&&(i(0,"ul",75),h(1,kt,13,9,"li",15)(2,yt,13,9,"li",15)(3,Et,13,9,"li",15)(4,Bt,9,6,"li",12)(5,It,10,3,"li",12)(6,$t,11,9,"li",15)(7,At,8,9,"li",20),a()),n&2){let e=u(2);t(),v(e.$settings.env.serviceMode?1:-1),t(),v(e.$settings.env.serviceMode?2:-1),t(),v(e.$settings.env.serviceMode?3:-1),t(),v(e.$settings.env.serviceMode?4:-1),t(),v(e.$settings.env.serviceMode?5:-1),t(),v(e.$settings.env.runningInDocker?6:-1),t(),v(e.hasChangedService?7:-1)}}function Mt(n,c){if(n&1){let e=k();i(0,"form",7)(1,"div",2),b("click",function(){C(e);let d=u();return S(d.toggleSection("startup"))}),i(2,"h5",3),m(3,"i",4),r(4),o(5,"translate"),a()(),h(6,Tt,8,7,"ul",75),a()}if(n&2){let e=u();g("formGroup",e.serviceForm),t(),x("aria-expanded",e.showFields.startup?"true":"false")("aria-controls","fieldsStartup"),t(2),g("ngClass",e.showFields.startup?"fa-chevron-down":"fa-chevron-right"),t(),_(" ",l(5,6,"settings.title_startup_options")," "),t(2),v(e.showFields.startup?6:-1)}}function Nt(n,c){n&1&&m(0,"i",98)}function Ft(n,c){if(n&1&&(i(0,"span",88),h(1,Nt,1,0,"i",98),r(2),i(3,"span",99),r(4),o(5,"translate"),a()()),n&2){let e=c.$implicit;g("ngClass",I(6,ft,e.missing,!e.missing)),t(),v(e.missing?1:-1),t(),_(" ",e.iface,": "),t(2),p(e.missing?l(5,4,"settings.mdns_advertiser_not_connected"):e.ip4||e.ip6)}}function Vt(n,c){n&1&&(i(0,"option",92),r(1),o(2,"translate"),a()),n&2&&(t(),_("Avahi (",l(2,1,"settings.mdns_advertiser_rec"),")"))}function Rt(n,c){n&1&&(i(0,"option",95),r(1),o(2,"translate"),a()),n&2&&(t(),_("systemd-resolved (",l(2,1,"settings.mdns_advertiser_exp"),")"))}function Dt(n,c){n&1&&(i(0,"li",20)(1,"small",21),r(2),o(3,"translate"),a(),i(4,"button",22),o(5,"translate"),r(6),o(7,"translate"),a()()),n&2&&(t(2),p(l(3,3,"settings.changes.saved")),t(2),x("aria-label",l(5,5,"menu.tooltip_restart")),t(2),_(" ",l(7,7,"menu.tooltip_restart")," "))}function Pt(n,c){if(n&1){let e=k();i(0,"ul",8)(1,"li",15)(2,"span",16),r(3),o(4,"translate"),m(5,"br"),i(6,"div",87),r(7),o(8,"translate"),a(),T(9,Ft,6,9,"span",88,A),a(),i(11,"button",89),o(12,"translate"),b("click",function(){C(e);let d=u();return S(d.selectNetworkInterfaces())}),m(13,"i",90),a()(),i(14,"li",12)(15,"span"),r(16),o(17,"translate"),m(18,"br"),i(19,"small",76),r(20),o(21,"translate"),a()(),i(22,"div",23)(23,"select",91),o(24,"translate"),h(25,Vt,3,3,"option",92),i(26,"option",93),r(27),o(28,"translate"),a(),i(29,"option",94),r(30,"Bonjour HAP"),a(),h(31,Rt,3,3,"option",95),a()()(),i(32,"li",12)(33,"span"),r(34),o(35,"translate"),m(36,"br"),i(37,"small",76),r(38),o(39,"translate"),a()(),i(40,"div",23),m(41,"input",96),o(42,"translate"),a()(),i(43,"li",12)(44,"span"),r(45),o(46,"translate"),m(47,"br"),i(48,"small",76),r(49),o(50,"translate"),a()(),i(51,"div",23),m(52,"input",97),o(53,"translate"),a()(),h(54,Dt,8,9,"li",20),a()}if(n&2){let e=u();t(3),_(" ",l(4,22,"settings.network.title_network_interfaces"),""),t(4),p(l(8,24,"settings.network.message_network_interface")),t(2),M(e.bridgeNetworkAdapters),t(2),g("disabled",!e.availableNetworkAdapters.length),x("aria-label",l(12,26,"settings.network.title_network_interfaces")),t(2),g("ngClass",H(48,xt,!e.availableNetworkAdapters.length)),t(3),_(" ",l(17,28,"settings.mdns_advertiser"),""),t(4),p(l(21,30,"settings.mdns_advertiser_help")),t(3),g("formControl",e.legacyMdnsFormControl),x("aria-label",l(24,32,"settings.mdns_advertiser")),t(2),v(e.showAvahiMdnsOption?25:-1),t(2),_(" Ciao ",e.showAvahiMdnsOption?"":"("+l(28,34,"settings.mdns_advertiser_rec")+")"," "),t(4),v(e.showResolvedMdnsOption?31:-1),t(3),_(" ",l(35,36,"settings.network.port_hb"),""),t(4),p(l(39,38,"settings.network.port_hb_desc")),t(3),g("formControl",e.hbPortFormControl)("ngClass",H(50,ie,e.isInvalidHbPort)),x("aria-label",l(42,40,"settings.network.port_ui")),t(4),_(" ",l(46,42,"settings.network.port_ui"),""),t(4),p(l(50,44,"settings.network.port_ui_desc")),t(3),g("ngClass",H(52,ie,e.isInvalidHbUiPort)),x("aria-label",l(53,46,"settings.network.port_ui")),t(2),v(e.hasChangedHbPort&&!e.isInvalidHbPort||e.hasChangedUiSettings||e.hasChangedMdns||e.hasChangedBridgeNetworkAdapters?54:-1)}}function Ht(n,c){n&1&&(i(0,"p",9),r(1),o(2,"translate"),a()),n&2&&(t(),p(l(2,1,"settings.cache.desc")))}function Lt(n,c){if(n&1){let e=k();i(0,"ul",100)(1,"li",15)(2,"span",16),r(3),o(4,"translate"),m(5,"br"),i(6,"small",76),r(7),o(8,"translate"),a()(),i(9,"button",17),o(10,"translate"),b("click",function(){C(e);let d=u(2);return S(d.removeSingleCachedAccessories())}),m(11,"i",18),a()(),i(12,"li",15)(13,"span",16),r(14),o(15,"translate"),m(16,"br"),i(17,"small",76),r(18),o(19,"translate"),a()(),i(20,"button",17),o(21,"translate"),b("click",function(){C(e);let d=u(2);return S(d.removeBridgeAccessories())}),m(22,"i",18),a()(),i(23,"li",15)(24,"span",16),r(25),o(26,"translate"),m(27,"br"),i(28,"small",76),r(29),o(30,"translate"),a()(),i(31,"button",17),o(32,"translate"),b("click",function(){C(e);let d=u(2);return S(d.removeAllCachedAccessories())}),m(33,"i",18),a()()()}n&2&&(t(3),_(" ",l(4,9,"reset.accessory_ind.title"),""),t(4),p(l(8,11,"reset.accessory_ind.desc")),t(2),x("aria-label",l(10,13,"reset.accessory_ind.title")),t(5),_(" ",l(15,15,"reset.bridge_accessories.title"),""),t(4),p(l(19,17,"reset.bridge_accessories.desc")),t(2),x("aria-label",l(21,19,"reset.accessory_all.title")),t(5),_(" ",l(26,21,"reset.accessory_all.title"),""),t(4),p(l(30,23,"reset.accessory_all.desc")),t(2),x("aria-label",l(32,25,"reset.accessory_all.title")))}function Ot(n,c){if(n&1){let e=k();i(0,"div",1)(1,"div",2),b("click",function(){C(e);let d=u();return S(d.toggleSection("cache"))}),i(2,"h5",3),m(3,"i",4),r(4),o(5,"translate"),a()(),h(6,Ht,3,3,"p",9)(7,Lt,34,27,"ul",100),a()}if(n&2){let e=u();t(),x("aria-expanded",e.showFields.cache?"true":"false")("aria-controls","fieldsCache"),t(2),g("ngClass",e.showFields.cache?"fa-chevron-down":"fa-chevron-right"),t(),_(" ",l(5,6,"settings.cache.title")," "),t(2),v(e.showFields.cache?6:-1),t(),v(e.showFields.cache?7:-1)}}function Ut(n,c){n&1&&(i(0,"p",9),r(1),o(2,"translate"),a()),n&2&&(t(),p(l(2,1,"reset.bridges.desc")))}function zt(n,c){if(n&1){let e=k();i(0,"li",15)(1,"span",16),r(2),o(3,"translate"),m(4,"br"),i(5,"small",76),r(6),o(7,"translate"),a()(),i(8,"button",17),o(9,"translate"),b("click",function(){C(e);let d=u(2);return S(d.unpairAccessory())}),m(10,"i",18),a()()}n&2&&(t(2),_(" ",l(3,3,"reset.bridge_ind.title"),""),t(4),p(l(7,5,"reset.bridge_ind.desc")),t(2),x("aria-label",l(9,7,"reset.bridge_ind.title")))}function jt(n,c){if(n&1){let e=k();i(0,"ul",10),h(1,zt,11,9,"li",15),i(2,"li",15)(3,"span",16),r(4),o(5,"translate"),o(6,"titlecase"),m(7,"br"),i(8,"small",76),r(9),o(10,"translate"),a()(),i(11,"button",17),o(12,"translate"),b("click",function(){C(e);let d=u();return S(d.resetHomebridgeState())}),m(13,"i",18),a()()()}if(n&2){let e=u();t(),v(e.$settings.env.serviceMode?1:-1),t(3),_(" ",l(6,6,l(5,4,"reset.bridge_all.title")),""),t(5),p(l(10,8,"reset.bridge_all.desc")),t(2),x("aria-label",l(12,10,"reset.bridge_all.title"))}}var rn=(()=>{class n{$api=w(R);$modal=w(he);$plugin=w(ye);$settings=w(Se);$toastr=w(V);$translate=w(F);originalServiceForm={HOMEBRIDGE_DEBUG:!1,HOMEBRIDGE_KEEP_ORPHANS:!1,HOMEBRIDGE_INSECURE:!0,ENV_DEBUG:"",ENV_NODE_OPTIONS:""};originalUiSettingsForm={port:0};originalLoginWallpaper="";originalMdnsSetting="";originalBridgeNetworkAdapters=[];originalHbPort=0;originalHbName="";hasChangedService=!1;hasChangedUiSettings=!1;hasChangedMdns=!1;hasChangedBridgeNetworkAdapters=!1;hasChangedHbPort=!1;hasChangedHbName=!1;hasChangedLoginWallpaper=!1;isInvalidHbPort=!1;isInvalidHbName=!1;isInvalidHbUiPort=!1;serviceForm=new Z({HOMEBRIDGE_DEBUG:new D(!1),HOMEBRIDGE_KEEP_ORPHANS:new D(!1),HOMEBRIDGE_INSECURE:new D(!0),ENV_DEBUG:new D(""),ENV_NODE_OPTIONS:new D("")});uiSettingsForm=new Z({port:new D(0)});loginWallpaper="";legacyMdnsFormControl=new se(!1);showAvahiMdnsOption=!1;showResolvedMdnsOption=!1;availableNetworkAdapters=[];bridgeNetworkAdapters=[];hbPortFormControl=new D(0);hbNameFormControl=new D("");isHbV2=!1;showFields={general:!0,display:!0,startup:!0,network:!0,reset:!0,cache:!0};file='<span class="font-monospace">ui-wallpaper.jpg</span>';linkDebug='<a href="https://github.com/homebridge/homebridge-config-ui-x/wiki/Debug-Common-Values" target="_blank"><i class="fa fa-fw fa-external-link-alt primary-text"></i></a>';constructor(){}ngOnInit(){this.isHbV2=this.$settings.env.homebridgeVersion.startsWith("2"),this.hbNameFormControl.patchValue(this.$settings.env.homebridgeInstanceName),this.hbNameFormControl.valueChanges.subscribe(e=>this.setHomebridgeName(e)),this.originalHbName=this.$settings.env.homebridgeInstanceName,this.initUiSettingsForm(),this.initDisplaySettingsForm(),this.initNetworkingOptions(),this.$settings.env.serviceMode&&this.initServiceModeForm()}initUiSettingsForm(){this.originalUiSettingsForm={port:this.$settings.env.port},this.uiSettingsForm.patchValue({port:this.$settings.env.port}),this.uiSettingsForm.valueChanges.pipe(Q(500)).subscribe(e=>{let s=!1;Object.keys(e).forEach(d=>{this.originalUiSettingsForm[d]!==e[d]&&(this.saveUiSettingChange(d,e[d]),s=!0)}),this.hasChangedUiSettings=s})}initServiceModeForm(){this.$api.get("/platform-tools/hb-service/homebridge-startup-settings").subscribe({next:e=>{Object.keys(e).forEach(s=>{this.originalServiceForm[s]=e[s]}),this.serviceForm.patchValue(e),this.serviceForm.valueChanges.pipe(Q(500)).subscribe(this.saveServiceModeSettings.bind(this))},error:e=>{console.error(e),this.$toastr.error(e.message,this.$translate.instant("toast.title_error"))}})}initDisplaySettingsForm(){this.originalLoginWallpaper=this.$settings.loginWallpaper,this.loginWallpaper=this.$settings.loginWallpaper}saveUiSettingChange(e,s){switch(e){case"lang":this.$settings.setLang(s);break;case"lightingMode":this.$settings.setLightingMode(s,"user");break;case"menuMode":this.$settings.setMenuMode(s),window.location.reload();break;case"theme":this.$settings.setTheme(s);break;case"tempUnits":this.$settings.setEnvItem("temperatureUnits",s);break;case"loginWallpaper":this.$settings.setEnvItem("loginWallpaper",s),this.hasChangedLoginWallpaper=s!==this.originalLoginWallpaper;break;case"port":if(!s||typeof s!="number"||s<1025||s>65533||Number.isInteger(s)===!1||s===this.hbPortFormControl.value){this.isInvalidHbUiPort=!0;return}this.$settings.setEnvItem("port",s),this.isInvalidHbUiPort=!1;break}E(this.$api.put("/config-editor/ui",{key:e,value:s})).catch(d=>{console.error(d),this.$toastr.error(d.message,this.$translate.instant("toast.title_error"))})}openUiSettings(){this.$plugin.settings({name:"homebridge-config-ui-x",displayName:"Homebridge UI",settingsSchema:!0,links:{}})}openBackupModal(){this.$modal.open(we,{size:"lg",backdrop:"static"})}saveServiceModeSettings(e=this.serviceForm.value){this.$api.put("/platform-tools/hb-service/homebridge-startup-settings",e).subscribe({next:()=>{this.hasChangedService=JSON.stringify(e)!==JSON.stringify(this.originalServiceForm)},error:s=>{console.error(s),this.$toastr.error(s.message,this.$translate.instant("toast.title_error"))}})}resetHomebridgeState(){this.$modal.open(Ie,{size:"lg",backdrop:"static"})}unpairAccessory(){this.$modal.open(Ae,{size:"lg",backdrop:"static"})}removeAllCachedAccessories(){this.$modal.open(Ee,{size:"lg",backdrop:"static"})}removeSingleCachedAccessories(){this.$modal.open(ke,{size:"lg",backdrop:"static"})}removeBridgeAccessories(){this.$modal.open(Be,{size:"lg",backdrop:"static"})}initNetworkingOptions(){return y(this,null,function*(){try{this.getNetworkSettings(),(this.$settings.env.runningInLinux||this.$settings.env.runningInDocker||this.$settings.env.runningInSynologyPackage||this.$settings.env.runningInPackageMode)&&(this.showAvahiMdnsOption=!0,this.showResolvedMdnsOption=!0)}catch{}})}getNetworkSettings(){return y(this,null,function*(){return Promise.all([E(this.$api.get("/server/network-interfaces/system")),E(this.$api.get("/server/network-interfaces/bridge")),E(this.$api.get("/server/mdns-advertiser")),E(this.$api.get("/server/port"))]).then(([e,s,d,f])=>{this.availableNetworkAdapters=e,this.buildBridgeNetworkAdapterList(s),this.legacyMdnsFormControl.patchValue(d.advertiser),this.originalMdnsSetting=d.advertiser,this.originalBridgeNetworkAdapters=this.bridgeNetworkAdapters.map(U=>U.iface),this.legacyMdnsFormControl.valueChanges.subscribe(U=>{this.setHomebridgeMdnsSetting(U)}),this.hbPortFormControl.patchValue(f.port),this.hbPortFormControl.valueChanges.subscribe(U=>this.setHomebridgePort(U)),this.originalHbPort=f.port})})}setHomebridgeMdnsSetting(e){return y(this,null,function*(){this.$api.put("/server/mdns-advertiser",{advertiser:e}).subscribe({next:()=>{this.hasChangedMdns=e!==this.originalMdnsSetting},error:s=>{console.error(s),this.$toastr.error(s.message,this.$translate.instant("toast.title_error"))}})})}setNetworkInterfaces(e){return y(this,null,function*(){this.$api.put("/server/network-interfaces/bridge",{adapters:e}).subscribe({next:()=>{this.hasChangedBridgeNetworkAdapters=this.originalBridgeNetworkAdapters.join(",")!==e.join(",")},error:s=>{console.error(s),this.$toastr.error(s.message,this.$translate.instant("toast.title_error"))}})})}setHomebridgeName(e){return y(this,null,function*(){if(!e||!/^[\p{L}\p{N}][\p{L}\p{N} ']*[\p{L}\p{N}]$/u.test(e)){this.isInvalidHbName=!0;return}this.$api.put("/server/name",{name:e}).subscribe({next:()=>{this.hasChangedHbName=this.originalHbName!==e,this.$settings.setEnvItem("homebridgeInstanceName",e),this.isInvalidHbName=!1},error:()=>{this.isInvalidHbName=!0}})})}setHomebridgePort(e){return y(this,null,function*(){if(e===this.uiSettingsForm.get("port").value){this.isInvalidHbPort=!0;return}this.$api.put("/server/port",{port:e}).subscribe({next:()=>{this.hasChangedHbPort=this.originalHbPort!==e,this.isInvalidHbPort=!1},error:()=>{this.isInvalidHbPort=!0}})})}buildBridgeNetworkAdapterList(e){if(!e.length){this.bridgeNetworkAdapters=[];return}this.bridgeNetworkAdapters=e.map(s=>{let d=this.availableNetworkAdapters.find(f=>f.iface===s);return d?(d.selected=!0,d.missing=!1,d):{iface:s,missing:!0}})}selectNetworkInterfaces(){let e=this.$modal.open(Te,{size:"lg",backdrop:"static"});e.componentInstance.availableNetworkAdapters=this.availableNetworkAdapters,e.componentInstance.bridgeNetworkAdapters=this.bridgeNetworkAdapters,e.result.then(s=>{this.buildBridgeNetworkAdapterList(s),this.setNetworkInterfaces(s)}).catch(()=>{})}toggleSection(e){this.showFields[e]=!this.showFields[e]}static \u0275fac=function(s){return new(s||n)};static \u0275cmp=B({type:n,selectors:[["ng-component"]],decls:35,vars:35,consts:[[1,"primary-text","m-0"],[1,"my-4"],["role","button","tabindex","0",1,"mt-3","hover-pointer",3,"click"],[1,"primary-text"],[1,"fa","fa-fw",3,"ngClass"],["id","fieldsGeneral",1,"list-group","list-group-box","mt-2","mx-0"],["id","fieldsDisplay",1,"list-group","list-group-box","mt-2","mx-0"],["novalidate","",1,"my-4",3,"formGroup"],["id","fieldsNetwork",1,"list-group","list-group-box","mt-2","mx-0"],[1,"small","grey-text","mb-2","mx-0"],["id","fieldsReset",1,"list-group","list-group-box","mt-2","mx-0"],[1,"pb-3"],[1,"list-group-item","d-block","d-md-flex","justify-content-between","align-items-center"],[1,"my-3","my-md-0","pl-0","pl-md-5","w-auto"],["type","text",1,"form-control","custom-input","resp-input",3,"formControl","ngClass"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"pe-2"],[1,"btn","btn-primary","waves-effect","m-0","ms-3",2,"min-width","50px",3,"click"],[1,"fas","fa-fw","fa-arrow-right"],["routerLink","/users",1,"btn","btn-primary","waves-effect","m-0","ms-3",2,"min-width","50px"],[1,"list-group-item","d-flex","flex-column","align-items-center"],[1,"grey-text","my-2"],["routerLink","/restart",1,"btn","btn-primary","waves-effect","my-2"],[1,"my-3","my-md-0","ps-0","ps-md-5","w-auto"],[1,"custom-select","resp-select",3,"ngModelChange","ngModel"],["value","auto"],["value","bg"],["value","ca"],["value","zh-CN"],["value","zh-TW"],["value","cs"],["value","nl"],["value","en"],["value","fi"],["value","fr"],["value","de"],["value","he"],["value","hu"],["value","id"],["value","it"],["value","ja"],["value","ko"],["value","mk"],["value","no"],["value","pl"],["value","pt-BR"],["value","pt"],["value","ru"],["value","sl"],["value","es"],["value","sv"],["value","th"],["value","tr"],["value","uk"],["value","orange"],["value","red"],["value","pink"],["value","purple"],["value","deep-purple"],["value","indigo"],["value","blue"],["value","blue-grey"],["value","cyan"],["value","green"],["value","teal"],["value","grey"],["value","brown"],["value","light"],["value","dark"],["value","default"],["value","freeze"],[1,"grey-text","pe-2",3,"innerHTML"],["name","search_wallpaper","autocomplete","off","type","text","placeholder","/path-to/image.png",1,"form-control","custom-input","resp-input",3,"ngModelChange","ngModel"],["value","c"],["value","f"],["id","fieldsStartup",1,"list-group","list-group-box","mb-4","mx-0"],[1,"grey-text","pe-2"],["type","checkbox","id","homebridgeDebugMode","formControlName","HOMEBRIDGE_DEBUG",1,"rendux-input"],["for","homebridgeDebugMode",1,"rendux-label","ms-3",2,"min-width","50px"],["type","checkbox","id","homebridgeInsecureMode","formControlName","HOMEBRIDGE_INSECURE",1,"rendux-input"],["for","homebridgeInsecureMode",1,"rendux-label","ms-3",2,"min-width","50px"],["type","checkbox","id","homebridgeKeepOrphans","formControlName","HOMEBRIDGE_KEEP_ORPHANS",1,"rendux-input"],["for","homebridgeKeepOrphans",1,"rendux-label","ms-3",2,"min-width","50px"],[1,"font-monospace"],["formControlName","ENV_DEBUG","type","text","placeholder","HAP-NodeJS:Advertiser,HAP-NodeJS:Service",1,"form-control","custom-input","resp-input"],["formControlName","ENV_NODE_OPTIONS","type","text","placeholder","--max-old-space-size=512 --max-http-header-size=8192",1,"form-control","custom-input","resp-input"],["routerLink","/platform-tools/docker/startup-script",1,"btn","btn-primary","waves-effect","m-0","ms-3",2,"min-width","50px"],[1,"small","grey-text","pe-2"],[1,"badge","badge-primary","me-1",3,"ngClass"],[1,"btn","btn-primary","waves-effect","m-0","ms-3",2,"min-width","50px",3,"click","disabled"],[1,"fas","fa-fw","fa-arrow-right",3,"ngClass"],[1,"custom-select","resp-select",3,"formControl"],["value","avahi"],["value","ciao"],["value","bonjour-hap"],["value","resolved"],["type","number","min","1025","max","65533",1,"form-control","custom-input","resp-input",3,"formControl","ngClass"],["type","number","min","1025","max","65533","placeholder","8581","formControlName","port",1,"form-control","custom-input","resp-input",3,"ngClass"],[1,"fas","fa-fw","fa-exclamation-triangle"],[1,"fw-normal"],["id","fieldsCache",1,"list-group","list-group-box","mb-4","mx-0"]],template:function(s,d){s&1&&(i(0,"h3",0),r(1),o(2,"translate"),a(),i(3,"div",1)(4,"div",2),b("click",function(){return d.toggleSection("general")}),i(5,"h5",3),m(6,"i",4),r(7),o(8,"translate"),a()(),h(9,Ct,29,26,"ul",5),a(),i(10,"div",1)(11,"div",2),b("click",function(){return d.toggleSection("display")}),i(12,"h5",3),m(13,"i",4),r(14),o(15,"translate"),a()(),h(16,wt,155,94,"ul",6),a(),h(17,Mt,7,8,"form",7),i(18,"form",7)(19,"div",2),b("click",function(){return d.toggleSection("network")}),i(20,"h5",3),m(21,"i",4),r(22),o(23,"translate"),a()(),h(24,Pt,55,54,"ul",8),a(),h(25,Ot,8,8,"div",1),i(26,"div",1)(27,"div",2),b("click",function(){return d.toggleSection("reset")}),i(28,"h5",3),m(29,"i",4),r(30),o(31,"translate"),a()(),h(32,Ut,3,3,"p",9)(33,jt,14,12,"ul",10),a(),m(34,"div",11)),s&2&&(t(),p(l(2,25,"menu.settings.title")),t(3),x("aria-expanded",d.showFields.general?"true":"false")("aria-controls","fieldsGeneral"),t(2),g("ngClass",d.showFields.general?"fa-chevron-down":"fa-chevron-right"),t(),_(" ",l(8,27,"settings.general.title_general")," "),t(2),v(d.showFields.general?9:-1),t(2),x("aria-expanded",d.showFields.display?"true":"false")("aria-controls","fieldsDisplay"),t(2),g("ngClass",d.showFields.display?"fa-chevron-down":"fa-chevron-right"),t(),_(" ",l(15,29,"settings.general.title_display")," "),t(2),v(d.showFields.display?16:-1),t(),v(d.$settings.env.serviceMode||d.$settings.env.runningInDocker?17:-1),t(),g("formGroup",d.uiSettingsForm),t(),x("aria-expanded",d.showFields.network?"true":"false")("aria-controls","fieldsNetwork"),t(2),g("ngClass",d.showFields.network?"fa-chevron-down":"fa-chevron-right"),t(),_(" ",l(23,31,"settings.network.title_network")," "),t(2),v(d.showFields.network?24:-1),t(),v(d.$settings.env.serviceMode?25:-1),t(2),x("aria-expanded",d.showFields.reset?"true":"false")("aria-controls","fieldsReset"),t(2),g("ngClass",d.showFields.reset?"fa-chevron-down":"fa-chevron-right"),t(),_(" ",l(31,33,"reset.bridges.title")," "),t(2),v(d.showFields.reset?32:-1),t(),v(d.showFields.reset?33:-1))},dependencies:[O,Ce,K,de,ge,ve,oe,pe,G,ue,W,le,xe,be,q,fe,ce,me,_e,j,$],encapsulation:2})}return n})();export{Ee as a,Ie as b,Te as c,rn as d};
|
package/public/chunk-FEYWIHT2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as a}from"./chunk-PAPC63GN.js";import"./chunk-AFY7IWPI.js";import"./chunk-W2INV3O5.js";import"./chunk-4UVD743J.js";import"./chunk-DBUCH6BG.js";import"./chunk-XSJLH4J4.js";import"./chunk-DPRPAYPR.js";import"./chunk-B5U6NU6O.js";import"./chunk-GDFC3M3E.js";import"./chunk-FETTFNJ2.js";import"./chunk-6ZN4TBLM.js";export{a as UsersComponent};
|
package/public/chunk-FP5A5IOH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as l,b as u,c as a,d as g}from"./chunk-F2RWUAVO.js";import{a as f}from"./chunk-QAW7DVOA.js";import"./chunk-5ORYPCEU.js";import{a as c}from"./chunk-G4YADEBO.js";import"./chunk-DQGH4ZQS.js";import"./chunk-SDWHICZH.js";import"./chunk-KPW2P5T4.js";import"./chunk-CUKPSGYS.js";import"./chunk-I6OD3CV4.js";import"./chunk-DCSCX4JC.js";import"./chunk-3NAAMMFZ.js";import"./chunk-AFY7IWPI.js";import"./chunk-ZIXTTJ4W.js";import"./chunk-44K5XVZH.js";import"./chunk-XSS6G7LC.js";import"./chunk-TEFE7EK6.js";import{q as s}from"./chunk-W2INV3O5.js";import{y as n,z as p}from"./chunk-4UVD743J.js";import"./chunk-257ETYMI.js";import{g as i}from"./chunk-DBUCH6BG.js";import"./chunk-XSJLH4J4.js";import"./chunk-DPRPAYPR.js";import"./chunk-B5U6NU6O.js";import"./chunk-GDFC3M3E.js";import{c as d}from"./chunk-FETTFNJ2.js";import{ha as t,id as m,ub as e}from"./chunk-6ZN4TBLM.js";var v=[{path:"",loadComponent:()=>import("./chunk-FZTW3XJF.js").then(o=>o.SettingsComponent),canActivate:[f]}],C=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[i.forChild(v),i]})}return o})();var K=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[m,n,p,d,s,C,g,u,l,c,a]})}return o})();export{K as SettingsModule};
|
package/public/chunk-FZTW3XJF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as a}from"./chunk-F2RWUAVO.js";import"./chunk-5ORYPCEU.js";import"./chunk-G4YADEBO.js";import"./chunk-DQGH4ZQS.js";import"./chunk-SDWHICZH.js";import"./chunk-KPW2P5T4.js";import"./chunk-CUKPSGYS.js";import"./chunk-I6OD3CV4.js";import"./chunk-DCSCX4JC.js";import"./chunk-3NAAMMFZ.js";import"./chunk-AFY7IWPI.js";import"./chunk-ZIXTTJ4W.js";import"./chunk-44K5XVZH.js";import"./chunk-XSS6G7LC.js";import"./chunk-TEFE7EK6.js";import"./chunk-W2INV3O5.js";import"./chunk-4UVD743J.js";import"./chunk-257ETYMI.js";import"./chunk-DBUCH6BG.js";import"./chunk-XSJLH4J4.js";import"./chunk-DPRPAYPR.js";import"./chunk-B5U6NU6O.js";import"./chunk-GDFC3M3E.js";import"./chunk-FETTFNJ2.js";import"./chunk-6ZN4TBLM.js";export{a as SettingsComponent};
|
package/public/chunk-G4YADEBO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{m as X}from"./chunk-W2INV3O5.js";import{e as q,l as G,r as H,s as J,t as K,y as Q}from"./chunk-4UVD743J.js";import{d as te}from"./chunk-DBUCH6BG.js";import{h as ee,k as ie}from"./chunk-B5U6NU6O.js";import{a as Y,b as Z}from"./chunk-FETTFNJ2.js";import{$c as z,Ac as W,Cc as d,Dc as m,Jb as $,Kb as b,Pb as u,Rb as k,Sb as E,Tb as T,Ub as a,Vb as o,Wb as B,_b as S,a as M,b as V,bc as h,cc as c,gb as s,h as F,ma as w,mc as l,nc as g,oc as I,pc as L,tb as U,tc as N,ua as f,uc as P,va as C,vc as j,w as A,zb as x,zc as O}from"./chunk-6ZN4TBLM.js";var se=(t,r)=>({"btn-danger":t,"btn-elegant":r}),ae=(t,r,e)=>({"fa-trash":t,"fa-undo":r,"fa-spinner fa-pulse":e});function oe(t,r){t&1&&(a(0,"div",12),B(1,"i",13),o(),a(2,"p",14),l(3),d(4,"translate"),o()),t&2&&(s(3),g(m(4,1,"reset.no_accessories")))}function re(t,r){if(t&1&&(a(0,"option",24),l(1),o()),t&2){let e=r.$implicit;b("value",e._id),s(),L("",e.name," (",e._username,")")}}function le(t,r){if(t&1){let e=S();a(0,"li",20),l(1),d(2,"translate"),o(),a(3,"li",18)(4,"label",21),l(5),d(6,"translate"),o(),a(7,"div",22)(8,"select",23),j("ngModelChange",function(i){f(e);let _=c(2);return P(_.selectedBridge,i)||(_.selectedBridge=i),C(i)}),h("change",function(i){f(e);let _=c(2);return C(_.onBridgeChange(i.target.value))}),E(9,re,2,3,"option",24,k),o()()()}if(t&2){let e=c(2);s(),g(m(2,3,"form.label.changes_kept")),s(4),g(m(6,5,"reset.accessory_ind.bridge")),s(3),N("ngModel",e.selectedBridge),s(),T(e.pairings)}}function ce(t,r){if(t&1&&(a(0,"li",18)(1,"label",25),l(2),d(3,"translate"),o(),a(4,"div",26),l(5),o()()),t&2){let e=c(2);s(2),g(m(3,2,"reset.accessory_ind.bridge")),s(3),I(" ",e.getCurrentlySelectedBridge()," ")}}function de(t,r){if(t&1){let e=S();a(0,"li",19)(1,"span"),l(2),B(3,"br"),a(4,"small")(5,"span",27),l(6),o()()(),a(7,"button",28),d(8,"translate"),h("click",function(){let i=f(e).$implicit,_=c(2);return C(_.toggleList(i.UUID,i.$cacheFile))}),B(9,"i",29),o()()}if(t&2){let e=r.$implicit,n=c(2);s(2),I(" ",e.displayName,""),s(4),g(e.UUID),s(),b("disabled",n.clicked)("ngClass",O(8,se,!n.isInList(e.UUID,e.$cacheFile),n.isInList(e.UUID,e.$cacheFile))),$("aria-label",m(8,6,"form.button_delete")),s(2),b("ngClass",W(11,ae,!n.isInList(e.UUID,e.$cacheFile),n.isInList(e.UUID,e.$cacheFile)&&!n.clicked,n.isInList(e.UUID,e.$cacheFile)&&n.clicked))}}function me(t,r){if(t&1&&(a(0,"div",12),B(1,"i",15),o(),a(2,"ul",16)(3,"li"),l(4),d(5,"translate"),o(),a(6,"li"),l(7),d(8,"translate"),o(),a(9,"li"),l(10),d(11,"translate"),o()(),a(12,"ul",17),x(13,le,11,7)(14,ce,6,4,"li",18),E(15,de,10,15,"li",19,k),o()),t&2){let e=c();s(4),g(m(5,5,"reset.accessory_ind.list_1")),s(3),g(m(8,7,"reset.accessory_ind.list_2")),s(3),g(m(11,9,"reset.accessory_ind.list_3")),s(3),u(e.pairings.length>1?13:-1),s(),u(e.pairings.length===1?14:-1),s(),T(e.selectedBridgeAccessories)}}function pe(t,r){if(t&1){let e=S();a(0,"button",30),h("click",function(){f(e);let i=c();return C(i.$activeModal.dismiss("Dismiss"))}),l(1),d(2,"translate"),o()}if(t&2){let e=c();b("disabled",e.clicked),s(),I(" ",m(2,2,"form.button_close")," ")}}function _e(t,r){if(t&1){let e=S();a(0,"button",31),h("click",function(){f(e);let i=c();return C(i.$activeModal.dismiss("Dismiss"))}),l(1),d(2,"translate"),o()}t&2&&(s(),I(" ",m(2,1,"form.button_close")," "))}function ue(t,r){if(t&1&&l(0),t&2){let e=c(3);I(" (",e.toDelete.length,") ")}}function ge(t,r){if(t&1&&(l(0),d(1,"translate"),x(2,ue,1,1)),t&2){let e=c(2);I(" ",m(1,2,"form.button_remove")," "),s(2),u(e.toDelete.length>0?2:-1)}}function xe(t,r){t&1&&B(0,"i",33)}function ve(t,r){if(t&1){let e=S();a(0,"button",32),h("click",function(){f(e);let i=c();return C(i.removeAccessories())}),x(1,ge,3,4)(2,xe,1,0,"i",33),o()}if(t&2){let e=c();b("disabled",!e.toDelete.length||e.clicked),s(),u(e.clicked?-1:1),s(),u(e.clicked?2:-1)}}var Te=(()=>{class t{$activeModal=w(X);$api=w(ie);$router=w(te);$toastr=w(ee);$translate=w(Y);pairings=[];selectedBridge="";clicked=!1;selectedBridgeAccessories=[];accessoriesExist=!1;toDelete=[];constructor(){}ngOnInit(){this.loadCachedAccessories()}loadCachedAccessories(){return F(this,null,function*(){var e;try{let[n,i]=yield Promise.all([A(this.$api.get("/server/cached-accessories")),A(this.$api.get("/server/pairings"))]),_=new Map(i.map(p=>[p._id,V(M({},p),{accessories:[]})]));n.sort((p,v)=>p.displayName.localeCompare(v.displayName)).forEach(p=>{var D,R;let v=i.find(ne=>ne._main),y=((R=(D=p.$cacheFile)==null?void 0:D.split("."))==null?void 0:R[1])||v._id;(!this.selectedBridge||this.selectedBridge===y)&&(_.has(y)||_.set(y,{_id:y,_username:y.match(/.{1,2}/g).join(":"),name:this.$translate.instant("reset.accessory_ind.unknown"),accessories:[]}),_.get(y).accessories.push(p))}),this.pairings=Array.from(_.values()).filter(p=>p.accessories.length>0).sort((p,v)=>p._main&&!v._main?-1:!p._main&&v._main?1:p.name.localeCompare(v.name)),this.selectedBridge=this.selectedBridge||((e=this.pairings[0])==null?void 0:e._id),this.selectedBridge&&(this.accessoriesExist=!0,this.selectedBridgeAccessories=this.pairings[0].accessories)}catch(n){console.error(n),this.$toastr.error(this.$translate.instant("reset.error_message"),this.$translate.instant("toast.title_error")),this.$activeModal.close()}})}onBridgeChange(e){var n;this.selectedBridge=e,this.selectedBridgeAccessories=(n=this.pairings.find(i=>i._id===this.selectedBridge))==null?void 0:n.accessories}getCurrentlySelectedBridge(){let e=this.pairings.find(n=>n._id===this.selectedBridge);return`${e.name} - ${e._username}`}toggleList(e,n){this.toDelete.some(i=>i.uuid===e&&i.cacheFile===n)?this.toDelete=this.toDelete.filter(i=>i.uuid!==e||i.cacheFile!==n):this.toDelete.push({cacheFile:n,uuid:e})}isInList(e,n){return this.toDelete.some(i=>i.uuid===e&&i.cacheFile===n)}removeAccessories(){return this.clicked=!0,this.$api.delete("/server/cached-accessories",{body:this.toDelete}).subscribe({next:()=>{this.$toastr.success(this.$translate.instant("reset.accessory_ind.done"),this.$translate.instant("toast.title_success")),this.$activeModal.close(),this.$router.navigate(["/restart"],{queryParams:{restarting:!0}})},error:e=>{this.clicked=!1,console.error(e),this.$toastr.error(this.$translate.instant("reset.accessory_ind.fail"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=U({type:t,selectors:[["ng-component"]],inputs:{selectedBridge:"selectedBridge"},decls:17,vars:12,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"disabled"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"disabled"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-circle-check","primary-text",2,"font-size","75px"],[1,"mb-0","text-center"],[1,"fas","fa-fw","fa-network-wired","primary-text",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","flex-column","flex-md-row","align-items-center"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"list-group-item","text-center","grey-text","small"],["for","bridgeSelect",1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50"],["id","bridgeSelect",1,"custom-select",3,"ngModelChange","change","ngModel"],[3,"value"],[1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50","grey-text","font-monospace"],[1,"font-monospace","grey-text"],[1,"btn","btn-danger","m-0","ms-3",3,"click","disabled","ngClass"],[1,"fas","fa-fw",3,"ngClass"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"div",1)(2,"h5",2),l(3),d(4,"translate"),o(),a(5,"button",3),d(6,"translate"),h("click",function(){return i.$activeModal.dismiss("Dismiss")}),o()(),a(7,"div",4),x(8,oe,5,3)(9,me,17,11),o(),a(10,"div",5)(11,"div",6),x(12,pe,3,4,"button",7),o(),a(13,"div",8),x(14,_e,3,3,"button",9),o(),a(15,"div",10),x(16,ve,3,3,"button",11),o()()()),n&2&&(s(3),g(m(4,8,"reset.accessory_ind.title")),s(2),b("disabled",i.clicked),$("aria-label",m(6,10,"form.button_close")),s(3),u(i.accessoriesExist?-1:8),s(),u(i.accessoriesExist?9:-1),s(3),u(i.accessoriesExist?12:-1),s(2),u(i.accessoriesExist?-1:14),s(2),u(i.accessoriesExist?16:-1))},dependencies:[z,Z,Q,J,K,H,q,G],encapsulation:2})}return t})();export{Te as a};
|
package/public/chunk-GDFC3M3E.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$ as ze,$a as Qe,Ba as ye,Bb as nt,Cb as K,Da as S,Db as Q,Ea as ge,Eb as Te,H as Fe,Ja as Xe,Jc as rt,Ka as Ee,Kc as st,L as Be,La as Ge,Ma as F,Oa as ve,Pa as Je,Qc as v,Rc as k,S as pe,Sc as ot,Ta as B,Tc as it,Ua as N,Va as C,Wa as Ye,Xa as qe,Ya as Ze,Za as We,_a as Ke,a as P,ab as et,b as xe,bb as O,da as p,ea as _,ga as m,ha as Z,hb as z,id as at,ja as g,jd as ee,k as je,kb as tt,kd as ct,la as u,ma as R,md as we,na as me,nd as te,pa as Ve,q as Ue,qa as He,r as fe,ra as $e,ub as W,x as U}from"./chunk-6ZN4TBLM.js";var x=class{},V=class{},A=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
2
|
-
`).forEach(e=>{let n=e.indexOf(":");if(n>0){let s=e.slice(0,n),o=e.slice(n+1).trim();this.addHeaderEntry(s,o)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new r;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,e);let s=(t.op==="a"?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":let o=t.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let i=this.headers.get(e);if(!i)return;i=i.filter(c=>o.indexOf(c)===-1),i.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}break}}addHeaderEntry(t,e){let n=t.toLowerCase();this.maybeSetNormalizedName(t,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(t,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),s=t.toLowerCase();this.headers.set(s,n),this.maybeSetNormalizedName(t,s)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var re=class{encodeKey(t){return dt(t)}encodeValue(t){return dt(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Lt(r,t){let e=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let o=s.indexOf("="),[i,c]=o==-1?[t.decodeKey(s),""]:[t.decodeKey(s.slice(0,o)),t.decodeValue(s.slice(o+1))],a=e.get(i)||[];a.push(c),e.set(i,a)}),e}var xt=/%(\d[a-f0-9])/gi,jt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function dt(r){return encodeURIComponent(r).replace(xt,(t,e)=>{var n;return(n=jt[e])!=null?n:t})}function ne(r){return`${r}`}var D=class r{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new re,t.fromString){if(t.fromObject)throw new p(2805,!1);this.map=Lt(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let n=t.fromObject[e],s=Array.isArray(n)?n.map(ne):[ne(n)];this.map.set(e,s)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(n=>{let s=t[n];Array.isArray(s)?s.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:s,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new r({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(ne(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],s=n.indexOf(ne(t.value));s!==-1&&n.splice(s,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var se=class{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Ut(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function lt(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function ut(r){return typeof Blob<"u"&&r instanceof Blob}function ht(r){return typeof FormData<"u"&&r instanceof FormData}function Ft(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var ft="Content-Type",pt="Accept",yt="X-Request-URL",gt="text/plain",Et="application/json",Bt=`${Et}, ${gt}, */*`,L=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,e,n,s){var i,c;this.url=e,this.method=t.toUpperCase();let o;if(Ut(this.method)||s?(this.body=n!==void 0?n:null,o=s):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),(i=this.headers)!=null||(this.headers=new A),(c=this.context)!=null||(this.context=new se),!this.params)this.params=new D,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let l=e.indexOf("?"),h=l===-1?"?":l<e.length-1?"&":"";this.urlWithParams=e+h+a}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||lt(this.body)||ut(this.body)||ht(this.body)||Ft(this.body)?this.body:this.body instanceof D?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||ht(this.body)?null:ut(this.body)?this.body.type||null:lt(this.body)?null:typeof this.body=="string"?gt:this.body instanceof D?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Et:null}clone(t={}){var T,b,M,d;let e=t.method||this.method,n=t.url||this.url,s=t.responseType||this.responseType,o=(T=t.transferCache)!=null?T:this.transferCache,i=t.body!==void 0?t.body:this.body,c=(b=t.withCredentials)!=null?b:this.withCredentials,a=(M=t.reportProgress)!=null?M:this.reportProgress,l=t.headers||this.headers,h=t.params||this.params,y=(d=t.context)!=null?d:this.context;return t.setHeaders!==void 0&&(l=Object.keys(t.setHeaders).reduce((f,w)=>f.set(w,t.setHeaders[w]),l)),t.setParams&&(h=Object.keys(t.setParams).reduce((f,w)=>f.set(w,t.setParams[w]),h)),new r(e,n,i,{params:h,headers:l,context:y,reportProgress:a,responseType:s,withCredentials:c,transferCache:o})}},I=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(I||{}),j=class{headers;status;statusText;url;ok;type;constructor(t,e=200,n="OK"){this.headers=t.headers||new A,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},oe=class r extends j{constructor(t={}){super(t)}type=I.ResponseHeader;clone(t={}){return new r({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},H=class r extends j{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=I.Response;clone(t={}){return new r({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},$=class extends j{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},zt=200,Vt=204;function Re(r,t){return{body:t,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var vt=(()=>{class r{handler;constructor(e){this.handler=e}request(e,n,s={}){let o;if(e instanceof L)o=e;else{let a;s.headers instanceof A?a=s.headers:a=new A(s.headers);let l;s.params&&(s.params instanceof D?l=s.params:l=new D({fromObject:s.params})),o=new L(e,n,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:l,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let i=fe(o).pipe(Be(a=>this.handler.handle(a)));if(e instanceof L||s.observe==="events")return i;let c=i.pipe(Fe(a=>a instanceof H));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(U(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new p(2806,!1);return a.body}));case"blob":return c.pipe(U(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new p(2807,!1);return a.body}));case"text":return c.pipe(U(a=>{if(a.body!==null&&typeof a.body!="string")throw new p(2808,!1);return a.body}));case"json":default:return c.pipe(U(a=>a.body))}case"response":return c;default:throw new p(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new D().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,s={}){return this.request("PATCH",e,Re(s,n))}post(e,n,s={}){return this.request("POST",e,Re(s,n))}put(e,n,s={}){return this.request("PUT",e,Re(s,n))}static \u0275fac=function(n){return new(n||r)(u(x))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();var Ht=new g("");function Tt(r,t){return t(r)}function $t(r,t){return(e,n)=>t.intercept(e,{handle:s=>r(s,n)})}function Xt(r,t,e){return(n,s)=>$e(e,()=>t(n,o=>r(o,s)))}var wt=new g(""),_e=new g(""),Rt=new g(""),De=new g("",{providedIn:"root",factory:()=>!0});function Gt(){let r=null;return(t,e)=>{var o;r===null&&(r=((o=R(wt,{optional:!0}))!=null?o:[]).reduceRight($t,Tt));let n=R(ye);if(R(De)){let i=n.add();return r(t,e).pipe(pe(()=>n.remove(i)))}else return r(t,e)}}var ie=(()=>{class r extends x{backend;injector;chain=null;pendingTasks=R(ye);contributeToStability=R(De);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(_e),...this.injector.get(Rt,[])]));this.chain=n.reduceRight((s,o)=>Xt(s,o,this.injector),Tt)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,s=>this.backend.handle(s)).pipe(pe(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||r)(u(V),u(He))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();var Jt=/^\)\]\}',?\n/,Yt=RegExp(`^${yt}:`,"m");function qt(r){return"responseURL"in r&&r.responseURL?r.responseURL:Yt.test(r.getAllResponseHeaders())?r.getResponseHeader(yt):null}var Me=(()=>{class r{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new p(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?Ue(n.\u0275loadImpl()):fe(null)).pipe(ze(()=>new je(o=>{let i=n.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((d,f)=>i.setRequestHeader(d,f.join(","))),e.headers.has(pt)||i.setRequestHeader(pt,Bt),!e.headers.has(ft)){let d=e.detectContentTypeHeader();d!==null&&i.setRequestHeader(ft,d)}if(e.responseType){let d=e.responseType.toLowerCase();i.responseType=d!=="json"?d:"text"}let c=e.serializeBody(),a=null,l=()=>{if(a!==null)return a;let d=i.statusText||"OK",f=new A(i.getAllResponseHeaders()),w=qt(i)||e.url;return a=new oe({headers:f,status:i.status,statusText:d,url:w}),a},h=()=>{let{headers:d,status:f,statusText:w,url:Le}=l(),E=null;f!==Vt&&(E=typeof i.response>"u"?i.responseText:i.response),f===0&&(f=E?zt:0);let he=f>=200&&f<300;if(e.responseType==="json"&&typeof E=="string"){let Ct=E;E=E.replace(Jt,"");try{E=E!==""?JSON.parse(E):null}catch(kt){E=Ct,he&&(he=!1,E={error:kt,text:E})}}he?(o.next(new H({body:E,headers:d,status:f,statusText:w,url:Le||void 0})),o.complete()):o.error(new $({error:E,headers:d,status:f,statusText:w,url:Le||void 0}))},y=d=>{let{url:f}=l(),w=new $({error:d,status:i.status||0,statusText:i.statusText||"Unknown Error",url:f||void 0});o.error(w)},T=!1,b=d=>{T||(o.next(l()),T=!0);let f={type:I.DownloadProgress,loaded:d.loaded};d.lengthComputable&&(f.total=d.total),e.responseType==="text"&&i.responseText&&(f.partialText=i.responseText),o.next(f)},M=d=>{let f={type:I.UploadProgress,loaded:d.loaded};d.lengthComputable&&(f.total=d.total),o.next(f)};return i.addEventListener("load",h),i.addEventListener("error",y),i.addEventListener("timeout",y),i.addEventListener("abort",y),e.reportProgress&&(i.addEventListener("progress",b),c!==null&&i.upload&&i.upload.addEventListener("progress",M)),i.send(c),o.next({type:I.Sent}),()=>{i.removeEventListener("error",y),i.removeEventListener("abort",y),i.removeEventListener("load",h),i.removeEventListener("timeout",y),e.reportProgress&&(i.removeEventListener("progress",b),c!==null&&i.upload&&i.upload.removeEventListener("progress",M)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(n){return new(n||r)(u(te))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Mt=new g(""),Zt="XSRF-TOKEN",Wt=new g("",{providedIn:"root",factory:()=>Zt}),Kt="X-XSRF-TOKEN",Qt=new g("",{providedIn:"root",factory:()=>Kt}),X=class{},en=(()=>{class r{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ee(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||r)(u(v),u(Wt))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();function tn(r,t){let e=r.url.toLowerCase();if(!R(Mt)||r.method==="GET"||r.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return t(r);let n=R(X).getToken(),s=R(Qt);return n!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,n)})),t(r)}var Se=function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r}(Se||{});function nn(r,t){return{\u0275kind:r,\u0275providers:t}}function rn(...r){let t=[vt,Me,ie,{provide:x,useExisting:ie},{provide:V,useFactory:()=>{var e;return(e=R(Ht,{optional:!0}))!=null?e:R(Me)}},{provide:_e,useValue:tn,multi:!0},{provide:Mt,useValue:!0},{provide:X,useClass:en}];for(let e of r)t.push(...e.\u0275providers);return me(t)}var mt=new g("");function sn(){return nn(Se.LegacyInterceptors,[{provide:mt,useFactory:Gt},{provide:_e,useExisting:mt,multi:!0}])}var de=new g(""),Pe=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(s=>{s.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,s,o){return this._findPluginFor(n).addEventListener(e,n,s,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new p(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||r)(u(de),u(S))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),G=class{_doc;constructor(t){this._doc=t}manager},ae="ng-app-id";function bt(r){for(let t of r)t.remove()}function _t(r,t){let e=t.createElement("style");return e.textContent=r,e}function on(r,t,e,n){var o;let s=(o=r.head)==null?void 0:o.querySelectorAll(`style[${ae}="${t}"],link[${ae}="${t}"]`);if(s)for(let i of s)i.removeAttribute(ae),i instanceof HTMLLinkElement?n.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&e.set(i.textContent,{usage:0,elements:[i]})}function Oe(r,t){let e=t.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var Ne=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,s,o={}){this.doc=e,this.appId=n,this.nonce=s,this.isServer=we(o),on(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let s of e)this.addUsage(s,this.inline,_t);n==null||n.forEach(s=>this.addUsage(s,this.external,Oe))}removeStyles(e,n){for(let s of e)this.removeUsage(s,this.inline);n==null||n.forEach(s=>this.removeUsage(s,this.external))}addUsage(e,n,s){let o=n.get(e);o?o.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,s(e,this.doc)))})}removeUsage(e,n){let s=n.get(e);s&&(s.usage--,s.usage<=0&&(bt(s.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])bt(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:s}]of this.inline)s.push(this.addElement(e,_t(n,this.doc)));for(let[n,{elements:s}]of this.external)s.push(this.addElement(e,Oe(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(ae,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||r)(u(v),u(Ee),u(ve,8),u(F))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Ae={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ce=/%COMP%/g;var St="%COMP%",an=`_nghost-${St}`,cn=`_ngcontent-${St}`,dn=!0,ln=new g("",{providedIn:"root",factory:()=>dn});function un(r){return cn.replace(Ce,r)}function hn(r){return an.replace(Ce,r)}function At(r,t){return t.map(e=>e.replace(Ce,r))}var ke=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,s,o,i,c,a,l=null,h=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=i,this.platformId=c,this.ngZone=a,this.nonce=l,this.tracingService=h,this.platformIsServer=we(c),this.defaultRenderer=new J(e,i,a,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===B.ShadowDom&&(n=xe(P({},n),{encapsulation:B.Emulated}));let s=this.getOrCreateRenderer(e,n);return s instanceof ce?s.applyToHost(e):s instanceof Y&&s.applyStyles(),s}getOrCreateRenderer(e,n){let s=this.rendererByCompId,o=s.get(n.id);if(!o){let i=this.doc,c=this.ngZone,a=this.eventManager,l=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,y=this.platformIsServer,T=this.tracingService;switch(n.encapsulation){case B.Emulated:o=new ce(a,l,n,this.appId,h,i,c,y,T);break;case B.ShadowDom:return new Ie(a,l,e,n,i,c,this.nonce,y,T);default:o=new Y(a,l,n,h,i,c,y,T);break}s.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||r)(u(Pe),u(Ne),u(Ee),u(ln),u(v),u(F),u(S),u(ve),u(Je,8))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),J=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,n,s,o){this.eventManager=t,this.doc=e,this.ngZone=n,this.platformIsServer=s,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(Ae[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(Dt(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(Dt(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){e.remove()}selectRootElement(t,e){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new p(-5104,!1);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,s){if(s){e=s+":"+e;let o=Ae[s];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){let s=Ae[n];s?t.removeAttributeNS(s,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,s){s&(z.DashCase|z.Important)?t.style.setProperty(e,n,s&z.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&z.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t!=null&&(t[e]=n)}setValue(t,e){t.nodeValue=e}listen(t,e,n,s){var i;if(typeof t=="string"&&(t=k().getGlobalEventTarget(this.doc,t),!t))throw new p(5102,!1);let o=this.decoratePreventDefault(n);return(i=this.tracingService)!=null&&i.wrapEventListener&&(o=this.tracingService.wrapEventListener(t,e,o)),this.eventManager.addEventListener(t,e,o,s)}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function Dt(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var Ie=class extends J{sharedStylesHost;hostEl;shadowRoot;constructor(t,e,n,s,o,i,c,a,l){var b;super(t,o,i,a,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let h=s.styles;h=At(s.id,h);for(let M of h){let d=document.createElement("style");c&&d.setAttribute("nonce",c),d.textContent=M,this.shadowRoot.appendChild(d)}let y=(b=s.getExternalStyles)==null?void 0:b.call(s);if(y)for(let M of y){let d=Oe(M,o);c&&d.setAttribute("nonce",c),this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Y=class extends J{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,n,s,o,i,c,a,l){var T;super(t,o,i,c,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=s;let h=n.styles;this.styles=l?At(l,h):h,this.styleUrls=(T=n.getExternalStyles)==null?void 0:T.call(n,l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ce=class extends Y{contentAttr;hostAttr;constructor(t,e,n,s,o,i,c,a,l){let h=s+"-"+n.id;super(t,e,n,o,i,c,a,l,h),this.contentAttr=un(h),this.hostAttr=hn(h)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}};var le=class r extends it{supportsDOMEvents=!0;static makeCurrent(){ot(new r)}onAndCancel(t,e,n,s){return t.addEventListener(e,n,s),()=>{t.removeEventListener(e,n,s)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.remove()}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=fn();return e==null?null:pn(e)}resetBaseElement(){q=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ee(document.cookie,t)}},q=null;function fn(){return q=q||document.head.querySelector("base"),q?q.getAttribute("href"):null}function pn(r){return new URL(r,document.baseURI).pathname}var ue=class{addToWindow(t){_.getAngularTestability=(n,s=!0)=>{let o=t.findTestabilityInTree(n,s);if(o==null)throw new p(5103,!1);return o},_.getAllAngularTestabilities=()=>t.getAllTestabilities(),_.getAllAngularRootElements=()=>t.getAllRootElements();let e=n=>{let s=_.getAllAngularTestabilities(),o=s.length,i=function(){o--,o==0&&n()};s.forEach(c=>{c.whenStable(i)})};_.frameworkStabilizers||(_.frameworkStabilizers=[]),_.frameworkStabilizers.push(e)}findTestabilityInTree(t,e,n){if(e==null)return null;let s=t.getTestability(e);return s!=null?s:n?k().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}},mn=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||r)};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),It=(()=>{class r extends G{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,s,o){return e.addEventListener(n,s,o),()=>this.removeEventListener(e,n,s,o)}removeEventListener(e,n,s,o){return e.removeEventListener(n,s,o)}static \u0275fac=function(n){return new(n||r)(u(v))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Ot=["alt","control","meta","shift"],yn={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},gn={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},Pt=(()=>{class r extends G{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,n,s,o){let i=r.parseEventName(n),c=r.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>k().onAndCancel(e,i.domEventName,c,o))}static parseEventName(e){let n=e.toLowerCase().split("."),s=n.shift();if(n.length===0||!(s==="keydown"||s==="keyup"))return null;let o=r._normalizeKey(n.pop()),i="",c=n.indexOf("code");if(c>-1&&(n.splice(c,1),i="code."),Ot.forEach(l=>{let h=n.indexOf(l);h>-1&&(n.splice(h,1),i+=l+".")}),i+=o,n.length!=0||o.length===0)return null;let a={};return a.domEventName=s,a.fullKey=i,a}static matchEventFullKeyCode(e,n){let s=yn[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(s=e.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Ot.forEach(i=>{if(i!==s){let c=gn[i];c(e)&&(o+=i+".")}}),o+=s,o===n)}static eventCallback(e,n,s){return o=>{r.matchEventFullKeyCode(o,e)&&s.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||r)(u(v))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();function En(r,t){return st(P({rootComponent:r},vn(t)))}function vn(r){var t;return{appProviders:[...Nt,...(t=r==null?void 0:r.providers)!=null?t:[]],platformProviders:Mn}}function Tn(){le.makeCurrent()}function wn(){return new ge}function Rn(){return Xe(document),document}var Mn=[{provide:F,useValue:ct},{provide:Ge,useValue:Tn,multi:!0},{provide:v,useFactory:Rn}];var bn=[{provide:K,useClass:ue},{provide:nt,useClass:Q,deps:[S,Te,K]},{provide:Q,useClass:Q,deps:[S,Te,K]}],Nt=[{provide:Ve,useValue:"root"},{provide:ge,useFactory:wn},{provide:de,useClass:It,multi:!0,deps:[v]},{provide:de,useClass:Pt,multi:!0,deps:[v]},ke,Ne,Pe,{provide:tt,useExisting:ke},{provide:te,useClass:mn},[]],_n=(()=>{class r{constructor(){}static \u0275fac=function(n){return new(n||r)};static \u0275mod=W({type:r});static \u0275inj=Z({providers:[...Nt,...bn],imports:[at,rt]})}return r})();var qr=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||r)(u(v))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Sn=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275prov=m({token:r,factory:function(n){let s=null;return n?s=new(n||r):s=u(An),s},providedIn:"root"})}return r})(),An=(()=>{class r extends Sn{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case O.NONE:return n;case O.HTML:return C(n,"HTML")?N(n):et(this._doc,String(n)).toString();case O.STYLE:return C(n,"Style")?N(n):n;case O.SCRIPT:if(C(n,"Script"))return N(n);throw new p(5200,!1);case O.URL:return C(n,"URL")?N(n):Qe(String(n));case O.RESOURCE_URL:if(C(n,"ResourceURL"))return N(n);throw new p(5201,!1);default:throw new p(5202,!1)}}bypassSecurityTrustHtml(e){return Ye(e)}bypassSecurityTrustStyle(e){return qe(e)}bypassSecurityTrustScript(e){return Ze(e)}bypassSecurityTrustUrl(e){return We(e)}bypassSecurityTrustResourceUrl(e){return Ke(e)}static \u0275fac=function(n){return new(n||r)(u(v))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{V as a,D as b,I as c,H as d,vt as e,wt as f,rn as g,sn as h,ke as i,En as j,_n as k,qr as l,Sn as m};
|
package/public/chunk-I275JECR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-6OMIETCH.js";import{q as n}from"./chunk-W2INV3O5.js";import{z as p}from"./chunk-4UVD743J.js";import{g as i}from"./chunk-DBUCH6BG.js";import"./chunk-GDFC3M3E.js";import{c as u}from"./chunk-FETTFNJ2.js";import{ha as t,id as m,ub as r}from"./chunk-6ZN4TBLM.js";var l=[{path:"",loadComponent:()=>import("./chunk-OXOBBTSH.js").then(o=>o.SupportComponent)}],d=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i.forChild(l),i]})}return o})();var R=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[m,d,n,p,u]})}return o})();export{R as SupportModule};
|
package/public/chunk-IHAXSVLL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-ILBLYA26.js";import"./chunk-257ETYMI.js";import"./chunk-DBUCH6BG.js";import"./chunk-XSJLH4J4.js";import"./chunk-DPRPAYPR.js";import"./chunk-B5U6NU6O.js";import"./chunk-GDFC3M3E.js";import"./chunk-FETTFNJ2.js";import"./chunk-6ZN4TBLM.js";export{a as RestartLinuxComponent};
|
package/public/chunk-J2EKGONB.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as X}from"./chunk-D33FRRVF.js";import{a as H}from"./chunk-BC4ZZQWV.js";import{a as Z}from"./chunk-XSS6G7LC.js";import{a as R}from"./chunk-TEFE7EK6.js";import{n as L}from"./chunk-W2INV3O5.js";import"./chunk-4UVD743J.js";import{a as j}from"./chunk-257ETYMI.js";import{a as W,c as q,d as V,e as N,f as D}from"./chunk-DBUCH6BG.js";import{c as B}from"./chunk-XSJLH4J4.js";import{b as $}from"./chunk-DPRPAYPR.js";import{j as T}from"./chunk-B5U6NU6O.js";import"./chunk-GDFC3M3E.js";import{a as M,b as U}from"./chunk-FETTFNJ2.js";import{$c as E,Cc as d,Dc as l,Jb as u,Kb as c,Pb as C,Ub as n,Vb as a,Wb as p,_b as y,bc as _,cc as w,g as Y,gb as o,h as z,lb as F,ma as m,mc as f,nc as g,qd as K,tb as P,ua as h,va as b,w as A,xc as v,yc as k,zb as O}from"./chunk-6ZN4TBLM.js";var Q=Y(Z(),1);function G(){var i;return typeof window<"u"&&((window==null?void 0:window.matchMedia("(display-mode: standalone)").matches)||((i=window.navigator)===null||i===void 0?void 0:i.standalone)||document.referrer.startsWith("android-app://")||(window==null?void 0:window.Windows)||/trident.+(msapphost|webview)\//i.test(navigator.userAgent)||document.referrer.startsWith("app-info://platform/microsoft-store"))}var I=()=>["/"],te=i=>({"hamburger-icon-cross":i}),ne=i=>({expanded:i}),ie=()=>({exact:!0}),oe=()=>["/accessories"],re=()=>["/support"],ae=()=>["/power-options"],se=()=>["/plugins"],de=()=>["/logs"],le=()=>["/platform-tools/terminal"],pe=()=>["/config"],ce=()=>["/settings"];function me(i,S){if(i&1){let e=y();n(0,"div",10)(1,"div",19),d(2,"translate"),d(3,"translate"),_("click",function(){h(e);let t=w();return b(t.openUnderVoltageModal())})("keydown",function(t){h(e);let r=w();return b(r.handleKeydown(t))}),n(4,"div",12),p(5,"i",20),a(),n(6,"div",14),f(7),d(8,"translate"),a()()()}i&2&&(o(),u("aria-label",l(2,2,"rpi.throttled.undervoltage_title")+" - "+l(3,4,"rpi.throttled.undervoltage_description")),o(6),g(l(8,6,"rpi.throttled.undervoltage_title")))}function ue(i,S){if(i&1){let e=y();n(0,"div",10)(1,"div",15),d(2,"translate"),_("keydown",function(t){h(e);let r=w();return b(r.handleKeydown(t))}),n(3,"div",12),p(4,"i",21),a(),n(5,"div",14),f(6),d(7,"translate"),a()()()}i&2&&(o(),c("routerLink",v(8,se))("routerLinkActive","active"),u("aria-label",l(2,4,"menu.label_plugins")),o(5),g(l(7,6,"menu.label_plugins")))}function _e(i,S){if(i&1){let e=y();n(0,"div",10)(1,"div",15),d(2,"translate"),_("keydown",function(t){h(e);let r=w();return b(r.handleKeydown(t))}),n(3,"div",12),p(4,"i",22),a(),n(5,"div",14),f(6),d(7,"translate"),a()()()}i&2&&(o(),c("routerLink",v(8,de))("routerLinkActive","active"),u("aria-label",l(2,4,"menu.linux.label_logs")),o(5),g(l(7,6,"menu.linux.label_logs")))}function fe(i,S){if(i&1){let e=y();n(0,"div",10)(1,"div",15),d(2,"translate"),_("keydown",function(t){h(e);let r=w();return b(r.handleKeydown(t))}),n(3,"div",12),p(4,"i",23),a(),n(5,"div",14),f(6),d(7,"translate"),a()()()}i&2&&(o(),c("routerLink",v(8,le))("routerLinkActive","active"),u("aria-label",l(2,4,"menu.linux.label_terminal")),o(5),g(l(7,6,"menu.linux.label_terminal")))}function ge(i,S){if(i&1){let e=y();n(0,"div",10)(1,"div",15),d(2,"translate"),_("keydown",function(t){h(e);let r=w();return b(r.handleKeydown(t))}),n(3,"div",12),p(4,"i",24),a(),n(5,"div",14),f(6),d(7,"translate"),a()()()}i&2&&(o(),c("routerLink",v(8,pe))("routerLinkActive","active"),u("aria-label",l(2,4,"menu.config_json_editor")),o(5),g(l(7,6,"menu.config_json_editor")))}function ve(i,S){if(i&1){let e=y();n(0,"div",10)(1,"div",15),d(2,"translate"),_("keydown",function(t){h(e);let r=w();return b(r.handleKeydown(t))}),n(3,"div",12),p(4,"i",25),a(),n(5,"div",14),f(6),d(7,"translate"),a()()()}i&2&&(o(),c("routerLink",v(8,ce))("routerLinkActive","active"),u("aria-label",l(2,4,"menu.label_settings")),o(5),g(l(7,6,"menu.label_settings")))}function he(i,S){if(i&1){let e=y();n(0,"div",10)(1,"div",19),d(2,"translate"),_("click",function(){h(e);let t=w();return b(t.reloadPage())})("keydown",function(t){h(e);let r=w();return b(r.handleKeydown(t))}),n(3,"div",12),p(4,"i",26),a(),n(5,"div",14),f(6),d(7,"translate"),a()()()}i&2&&(o(),u("aria-label",l(2,2,"menu.reload")),o(5),g(l(7,4,"menu.reload")))}function be(i,S){if(i&1){let e=y();n(0,"div",10)(1,"div",19),d(2,"translate"),_("click",function(){h(e);let t=w();return b(t.$auth.logout())})("keydown",function(t){h(e);let r=w();return b(r.handleKeydown(t))}),n(3,"div",12),p(4,"i",27),a(),n(5,"div",14),f(6),d(7,"translate"),a()()()}i&2&&(o(),u("aria-label",l(2,2,"menu.tooltip_logout")),o(5),g(l(7,4,"menu.tooltip_logout")))}var J=(()=>{class i{router=m(V);translate=m(M);$auth=m(B);$settings=m($);$modal=m(L);$notification=m(X);$translate=m(M);renderer=m(F);isExpanded=!1;rPiCurrentlyUnderVoltage=!1;rPiWasUnderVoltage=!1;isMobile=!1;freezeMenu=!1;isPwa=G();constructor(){let e=this.router;this.isMobile=window.innerWidth<768;let s;window.addEventListener("resize",()=>{clearTimeout(s),s=setTimeout(()=>{this.updateListeners()},500)}),e.events.subscribe(t=>{t instanceof W&&(this.closeSidebar(),this.freezeMenu=!0,setTimeout(()=>{this.freezeMenu=!1},750))})}ngOnInit(){this.$notification.raspberryPiThrottled.subscribe(r=>{r["Under Voltage"]&&(this.rPiCurrentlyUnderVoltage=!0),r["Under-voltage has occurred"]&&(this.rPiWasUnderVoltage=!0)});let e=document.querySelector(".sidebar"),s=document.querySelector(".m-header"),t=document.querySelector(".content");this.isMobile?document.addEventListener("touchstart",r=>{if(t.contains(r.target)&&this.isExpanded){r.preventDefault(),this.toggleSidebar();return}!e.contains(r.target)&&!s.contains(r.target)&&this.isExpanded&&(r.preventDefault(),this.closeSidebar())},{passive:!1}):(this.updateListeners(),s.addEventListener("mouseenter",()=>this.openSidebar(),{passive:!1}),s.addEventListener("mouseleave",()=>this.closeSidebar(),{passive:!1}),document.addEventListener("click",r=>{e.contains(r.target)&&r.clientX>60&&this.closeSidebar()},{passive:!1})),this.updateContentStyles()}openSidebar(){this.freezeMenu||(this.isExpanded=!0,this.updateContentStyles())}closeSidebar(){this.freezeMenu||(this.isExpanded=!1,this.updateContentStyles())}toggleSidebar(){this.freezeMenu||(this.isExpanded=!this.isExpanded,this.updateContentStyles())}updateContentStyles(){let e=document.querySelector(".content");this.isExpanded?(this.renderer.setStyle(e,"opacity","20%"),this.renderer.setStyle(e,"pointer-events","none"),this.renderer.setStyle(e,"overflow","hidden")):(this.renderer.removeStyle(e,"opacity"),this.renderer.removeStyle(e,"pointer-events"),this.renderer.removeStyle(e,"overflow"))}openUnderVoltageModal(){let e=this.$modal.open(H,{size:"lg",backdrop:"static"});e.componentInstance.title=this.$translate.instant("rpi.throttled.undervoltage_title"),e.componentInstance.message=this.$translate.instant(this.rPiCurrentlyUnderVoltage?"rpi.throttled.currently_message":"rpi.throttled.previously_message"),e.componentInstance.ctaButtonLabel=this.$translate.instant("form.button_more_info"),e.componentInstance.faIconClass="fas fa-fw fa-bolt yellow-text",e.componentInstance.ctaButtonLink="https://pimylifeup.com/raspberry-pi-low-voltage-warning"}handleKeydown(e){if(e.key==="Enter"){let s=e.target;["menuitem","button"].includes(s.getAttribute("role"))&&s.click()}}reloadPage(){window.location.reload()}updateListeners(){this.isMobile=window.innerWidth<768;let e=document.querySelector(".sidebar");e.removeAllListeners(),(this.isMobile||!this.isMobile&&this.$settings.menuMode!=="freeze")&&(e.addEventListener("mouseenter",()=>this.openSidebar(),{passive:!1}),e.addEventListener("mouseleave",()=>this.closeSidebar(),{passive:!1}))}ngOnDestroy(){document.removeEventListener("touchstart",()=>{}),document.removeEventListener("click",()=>{})}static \u0275fac=function(s){return new(s||i)};static \u0275cmp=P({type:i,selectors:[["app-sidebar"]],inputs:{isExpanded:"isExpanded"},decls:61,vars:67,consts:[["tabindex","0","role","button",1,"m-header","text-end",3,"click","keydown"],[1,"me-2","d-block","d-lg-none",2,"font-size","0.9rem","color","#dddddd"],[3,"routerLink"],["ngSrc","../../../../assets/homebridge-logo.svg","alt","HB Logo","height","35","width","35",2,"height","35px","width","35px"],[1,"hb-logo-text-mobile"],[1,"hamburger-icon",3,"ngClass"],["role","navigation","id","sidebar",1,"sidebar",3,"ngClass"],["tabindex","0","role","button",1,"header",3,"click","keydown"],[1,"hb-logo-text"],[1,"link-wrapper"],[1,"link"],["role","menuitem","tabindex","0",1,"link-row",3,"keydown","routerLink","routerLinkActive","routerLinkActiveOptions"],[1,"icon"],[1,"fa","fa-fw","fa-house"],[1,"title"],["role","menuitem","tabindex","0",1,"link-row",3,"keydown","routerLink","routerLinkActive"],[1,"fa","fa-fw","fa-lightbulb"],[1,"fa","fa-fw","fa-question-circle-o"],[1,"fa","fa-fw","fa-power-off"],["role","menuitem","tabindex","0",1,"link-row",3,"click","keydown"],[1,"fas","fa-fw","fa-bolt","fa-beat","yellow-text",2,"--fa-beat-scale","1.5"],[1,"fa","fa-fw","fa-plug"],[1,"fa","fa-fw","fa-wave-square"],[1,"fa","fa-fw","fa-terminal"],[1,"fa","fa-fw","fa-code"],[1,"fa","fa-fw","fa-cog"],[1,"fa","fa-fw","fa-refresh"],[1,"fa","fa-fw","fa-right-from-bracket"]],template:function(s,t){s&1&&(n(0,"div",0),d(1,"translate"),_("click",function(){return t.toggleSidebar()})("keydown",function(x){return t.handleKeydown(x)}),p(2,"span",1),n(3,"a",2),d(4,"translate"),p(5,"img",3),n(6,"div",4),f(7,"Homebridge"),a()(),n(8,"div",5),p(9,"span")(10,"span")(11,"span")(12,"span"),a()(),n(13,"div",6)(14,"div",7),_("click",function(){return t.toggleSidebar()})("keydown",function(x){return t.handleKeydown(x)}),n(15,"a",2),d(16,"translate"),p(17,"img",3),n(18,"div",8),f(19,"Homebridge"),a()()(),n(20,"div",9)(21,"div",10)(22,"div",11),d(23,"translate"),_("keydown",function(x){return t.handleKeydown(x)}),n(24,"div",12),p(25,"i",13),a(),n(26,"div",14),f(27),d(28,"translate"),a()()(),O(29,me,9,8,"div",10)(30,ue,8,9,"div",10),n(31,"div",10)(32,"div",15),d(33,"translate"),_("keydown",function(x){return t.handleKeydown(x)}),n(34,"div",12),p(35,"i",16),a(),n(36,"div",14),f(37),d(38,"translate"),a()()(),O(39,_e,8,9,"div",10)(40,fe,8,9,"div",10)(41,ge,8,9,"div",10)(42,ve,8,9,"div",10),n(43,"div",10)(44,"div",15),d(45,"translate"),_("keydown",function(x){return t.handleKeydown(x)}),n(46,"div",12),p(47,"i",17),a(),n(48,"div",14),f(49),d(50,"translate"),a()()(),n(51,"div",10)(52,"div",15),d(53,"translate"),_("keydown",function(x){return t.handleKeydown(x)}),n(54,"div",12),p(55,"i",18),a(),n(56,"div",14),f(57),d(58,"translate"),a()()(),O(59,he,8,6,"div",10)(60,be,8,6,"div",10),a()()),s&2&&(u("aria-expanded",t.isExpanded?"true":"false")("aria-controls","sidebar")("aria-label",l(1,34,"menu.sidebar.aria_menu")),o(3),c("routerLink",v(56,I)),u("aria-label",l(4,36,"menu.label_status")),o(5),c("ngClass",k(57,te,t.isExpanded)),o(5),c("ngClass",k(59,ne,t.isExpanded)),o(2),c("routerLink",v(61,I)),u("aria-label",l(16,38,"menu.label_status")),o(7),c("routerLink",v(62,I))("routerLinkActive","active")("routerLinkActiveOptions",v(63,ie)),u("aria-label",l(23,40,"menu.label_status")),o(5),g(l(28,42,"menu.label_status")),o(2),C(t.rPiWasUnderVoltage||t.rPiCurrentlyUnderVoltage?29:-1),o(),C(t.$auth.user.admin?30:-1),o(2),c("routerLink",v(64,oe))("routerLinkActive","active"),u("aria-label",l(33,44,"menu.label_accessories")),o(5),g(l(38,46,"menu.label_accessories")),o(2),C(t.$auth.user.admin?39:-1),o(),C(t.$settings.env.enableTerminalAccess&&t.$auth.user.admin?40:-1),o(),C(t.$auth.user.admin?41:-1),o(),C(t.$auth.user.admin?42:-1),o(2),c("routerLink",v(65,re))("routerLinkActive","active"),u("aria-label",l(45,48,"support.title")),o(5),g(l(50,50,"support.title")),o(3),c("routerLink",v(66,ae))("routerLinkActive","active"),u("aria-label",l(53,52,"menu.restart.title")),o(5),g(l(58,54,"menu.restart.title")),o(2),C(t.isPwa?59:-1),o(),C(t.$settings.formAuth?60:-1))},dependencies:[N,K,E,D,U],styles:[".m-header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:65px;z-index:510;display:flex;align-items:center;padding-left:3px;padding-right:3px}.m-header[_ngcontent-%COMP%]:hover{cursor:pointer}@media (min-width: 768px){.m-header[_ngcontent-%COMP%]{display:none}}.sidebar[_ngcontent-%COMP%]{position:fixed;left:0;top:0;height:100vh;transition:.3s;width:60px;z-index:500}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;padding:15px 10px 15px 11px;font-size:.85rem}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]:hover{cursor:pointer}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{overflow-y:auto;max-height:calc(100vh - 80px)!important}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%]{display:flex;align-items:center;padding:15px 10px;cursor:pointer;transition:.2s;font-size:17px}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{flex:0 0 38px;display:flex;align-items:center;justify-content:center}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;transition:.3s;max-width:0;overflow:hidden;white-space:nowrap}@media (max-width: 767px){.sidebar[_ngcontent-%COMP%]{width:0}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{display:none}}.sidebar.expanded[_ngcontent-%COMP%]{width:210px}@media (max-width: 767px){.sidebar.expanded[_ngcontent-%COMP%]{width:210px}.sidebar.expanded[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{display:block}}.sidebar.expanded[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{max-width:150px;padding-left:10px}.hamburger-icon[_ngcontent-%COMP%]{margin:-7px 0 0 25px}@media (min-width: 768px){.hb-logo-text[_ngcontent-%COMP%]{color:#fff;position:absolute;top:17px;font-size:22px;padding-left:3px}.sidebar.expanded[_ngcontent-%COMP%] .hb-logo-text[_ngcontent-%COMP%]{opacity:1;left:55px;transition:.3s}.sidebar[_ngcontent-%COMP%]:not(.expanded) .hb-logo-text[_ngcontent-%COMP%]{opacity:0;left:40px;transition:.3s}.hb-logo-text-mobile[_ngcontent-%COMP%], .hamburger-icon[_ngcontent-%COMP%]{display:none!important}}@media (max-width: 767px){.hb-logo-text[_ngcontent-%COMP%]{display:none!important}.hb-logo-text-mobile[_ngcontent-%COMP%]{color:#fff;position:absolute;top:17px;font-size:22px;padding-left:3px;opacity:1;left:55px}.hamburger-icon[_ngcontent-%COMP%]{position:absolute;right:10px;top:28px;width:30px;-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0);-webkit-transition:.5s ease-in-out;-moz-transition:.5s ease-in-out;-o-transition:.5s ease-in-out;transition:.5s ease-in-out;cursor:pointer}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;position:absolute;height:2px;width:100%;background-color:#fff;border-radius:9px;opacity:1;left:0;-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0);-webkit-transition:.25s ease-in-out;-moz-transition:.25s ease-in-out;-o-transition:.25s ease-in-out;transition:.25s ease-in-out}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){top:0}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2), .hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){top:10px}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){top:20px}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){top:10px;width:0;left:50%}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){top:10px;width:0;left:50%}}"]})}return i})();var we=i=>({sidebarExpanded:i}),Xe=(()=>{class i{$auth=m(B);$modal=m(L);$router=m(V);$settings=m($);$translate=m(M);$ws=m(j);sidebarExpanded=!1;io;constructor(){}ngOnInit(){this.io=this.$ws.connectToNamespace("app"),this.io.socket.on("reconnect",()=>{this.$auth.checkToken()}),this.compareServerUiVersion()}compareServerUiVersion(){return z(this,null,function*(){if(this.$settings.settingsLoaded||(yield A(this.$settings.onSettingsLoaded)),this.$router.url!=="/restart"&&(0,Q.lt)(this.$settings.uiVersion,T.serverTarget)){console.log(`Server restart required. UI Version: ${T.serverTarget} - Server Version: ${this.$settings.uiVersion} `);let e=this.$modal.open(R,{size:"lg",backdrop:"static"});e.componentInstance.title=this.$translate.instant("platform.version.service_restart_required"),e.componentInstance.message=this.$translate.instant("platform.version.restart_required",{serverVersion:this.$settings.uiVersion,uiVersion:T.serverTarget}),e.componentInstance.confirmButtonLabel=this.$translate.instant("menu.tooltip_restart"),e.componentInstance.faIconClass="fas fa-power-off orange-text",e.result.then(()=>this.$router.navigate(["/restart"])).catch(()=>{})}})}static \u0275fac=function(s){return new(s||i)};static \u0275cmp=P({type:i,selectors:[["app-layout"]],decls:3,vars:4,consts:[[3,"isExpanded"],[1,"content","px-3","p-md-4",3,"ngClass"]],template:function(s,t){s&1&&(p(0,"app-sidebar",0),n(1,"div",1),p(2,"router-outlet"),a()),s&2&&(c("isExpanded",t.sidebarExpanded),o(),c("ngClass",k(2,we,t.sidebarExpanded)))},dependencies:[J,E,q],styles:[".content[_ngcontent-%COMP%]{margin-left:60px;transition:.3s;height:100%}@media (max-width: 767px){.content[_ngcontent-%COMP%]{margin-left:0;padding-top:85px!important}}@media (min-width: 768px){.content[_ngcontent-%COMP%]{height:100%}}a[_ngcontent-%COMP%]:hover{text-decoration:none!important}"]})}return i})();export{Xe as LayoutComponent};
|
package/public/chunk-J3D6QREL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-WYBTQTK2.js";import"./chunk-5ORYPCEU.js";import"./chunk-ZIXTTJ4W.js";import"./chunk-44K5XVZH.js";import"./chunk-W2INV3O5.js";import"./chunk-4UVD743J.js";import"./chunk-257ETYMI.js";import"./chunk-DBUCH6BG.js";import"./chunk-XSJLH4J4.js";import"./chunk-DPRPAYPR.js";import"./chunk-B5U6NU6O.js";import"./chunk-GDFC3M3E.js";import"./chunk-FETTFNJ2.js";import"./chunk-6ZN4TBLM.js";export{a as SetupWizardComponent};
|
package/public/chunk-J6O6SHGX.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-HZYDK6X5.js";import"./chunk-W2INV3O5.js";import"./chunk-4UVD743J.js";import"./chunk-DBUCH6BG.js";import"./chunk-DPRPAYPR.js";import"./chunk-B5U6NU6O.js";import"./chunk-GDFC3M3E.js";import"./chunk-FETTFNJ2.js";import"./chunk-6ZN4TBLM.js";export{a as PowerOptionsComponent};
|
package/public/chunk-L3LMIZ4T.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as T,m as C}from"./chunk-W2INV3O5.js";import{b as h}from"./chunk-FETTFNJ2.js";import{$c as P,Cc as a,Dc as r,Ec as x,Jb as u,Kb as f,Pb as D,Rb as I,Sb as w,Tb as B,Ub as i,Vb as n,Wb as m,bc as c,cc as M,db as S,gb as e,ma as _,mc as o,nc as p,oc as g,tb as v,yc as y,zb as E}from"./chunk-6ZN4TBLM.js";var $=t=>({pluginName:t});function O(t,k){t&1&&(i(0,"ul",7)(1,"li"),o(2),a(3,"translate"),n(),i(4,"li"),o(5),a(6,"translate"),n()()),t&2&&(e(2),p(r(3,2,"plugins.manage.confirm_disable_accessory_1")),e(3),p(r(6,4,"plugins.manage.confirm_disable_accessory_2")))}function j(t,k){t&1&&(i(0,"ul",7)(1,"li"),o(2),a(3,"translate"),n(),i(4,"li"),o(5),a(6,"translate"),n()()),t&2&&(e(2),p(r(3,2,"plugins.manage.confirm_disable_platform_1")),e(3),p(r(6,4,"plugins.manage.confirm_disable_platform_2")))}var H=(()=>{class t{$activeModal=_(C);pluginName;isConfigured=!1;isConfiguredDynamicPlatform=!1;constructor(){}static \u0275fac=function(d){return new(d||t)};static \u0275cmp=v({type:t,selectors:[["ng-component"]],inputs:{pluginName:"pluginName",isConfigured:"isConfigured",isConfiguredDynamicPlatform:"isConfiguredDynamicPlatform"},decls:26,vars:22,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3","text-center"],[1,"fas","fa-fw","fa-circle-pause","primary-text",2,"font-size","75px"],[1,"mb-3"],["type","warning",1,"mb-0",3,"dismissible"],[1,"w-100","text-center","mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click"]],template:function(d,s){d&1&&(i(0,"div",0)(1,"div",1)(2,"h5",2),o(3),n(),i(4,"button",3),a(5,"translate"),c("click",function(){return s.$activeModal.dismiss("Dismiss")}),n()(),i(6,"div",4)(7,"div",5),m(8,"i",6),n(),E(9,O,7,6,"ul",7)(10,j,7,6,"ul",7),i(11,"ngb-alert",8)(12,"p",9),o(13),a(14,"translate"),n()()(),i(15,"div",10)(16,"div",11)(17,"button",12),a(18,"translate"),c("click",function(){return s.$activeModal.dismiss("Dismiss")}),o(19),a(20,"translate"),n()(),m(21,"div",13),i(22,"div",14)(23,"button",15),c("click",function(){return s.$activeModal.close()}),o(24),a(25,"translate"),n()()()()),d&2&&(e(3),p(s.pluginName),e(),u("aria-label",r(5,9,"form.button_close")),e(5),D(s.isConfigured&&!s.isConfiguredDynamicPlatform?9:-1),e(),D(s.isConfigured&&s.isConfiguredDynamicPlatform?10:-1),e(),f("dismissible",!1),e(2),p(x(14,11,"plugins.manage.confirm_disable",y(20,$,s.pluginName))),e(4),u("aria-label",r(18,14,"form.button_close")),e(2),g(" ",r(20,16,"form.button_close")," "),e(5),g(" ",r(25,18,"plugins.manage.disable")," "))},dependencies:[T,h],encapsulation:2})}return t})();var A=t=>({author:t});function F(t,k){if(t&1&&(i(0,"li",9),m(1,"i",15),i(2,"a",16),o(3),n()()),t&2){let l=k.$implicit,d=M();e(),f("ngClass",d.getIconClass(l.type)),e(),f("href",l.url,S),e(),p(l.url)}}var Y=(()=>{class t{$activeModal=_(C);plugin;fundingOptions;constructor(){}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(l=>{if(typeof l=="string")return{type:"other",url:l};if(typeof l=="object")return{type:l.type||"other",url:l.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(l){switch(l.toLowerCase()){case"paypal":return"fab fa-fw fa-paypal";case"github":return"fab fa-fw fa-github";case"patreon":return"fab fa-fw fa-patreon";case"kofi":case"ko-fi":return"fas fa-fw fa-coffee";default:return"fas fa-fw fa-link"}}static \u0275fac=function(d){return new(d||t)};static \u0275cmp=v({type:t,selectors:[["ng-component"]],inputs:{plugin:"plugin"},decls:28,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","pink-text","mb-3"],[1,"fas","fa-fw","fa-heart",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box"],[1,"list-group-item"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"],[1,"me-2","primary-text","fa-fw","fa-xl",3,"ngClass"],["target","_blank","rel","noopener noreferrer",1,"text-break-all",3,"href"]],template:function(d,s){d&1&&(i(0,"div",0)(1,"div",1)(2,"h5",2),o(3),a(4,"translate"),n(),i(5,"button",3),a(6,"translate"),c("click",function(){return s.$activeModal.dismiss("Dismiss")}),n()(),i(7,"div",4)(8,"div",5),m(9,"i",6),n(),i(10,"ul",7)(11,"li"),o(12),a(13,"translate"),n(),i(14,"li"),o(15),a(16,"translate"),n()(),i(17,"ul",8),w(18,F,4,3,"li",9,I),n()(),i(20,"div",10),m(21,"div",11),i(22,"div",12)(23,"button",13),a(24,"translate"),c("click",function(){return s.$activeModal.dismiss("Dismiss")}),o(25),a(26,"translate"),n()(),m(27,"div",14),n()()),d&2&&(e(3),p(x(4,6,"plugins.donate.tile_donate_to",y(19,A,"@"+s.plugin.author))),e(2),u("aria-label",r(6,9,"form.button_close")),e(7),p(r(13,11,"plugins.donate.message_1")),e(3),p(r(16,13,"plugins.donate.message_2")),e(3),B(s.fundingOptions),e(5),u("aria-label",r(24,15,"form.button_close")),e(2),g(" ",r(26,17,"form.button_close")," "))},dependencies:[P,h],styles:[".text-break-all[_ngcontent-%COMP%]{word-break:break-all}"]})}return t})();export{H as a,Y as b};
|
package/public/chunk-LANZB72I.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-3DHL3DV5.js";import"./chunk-KPW2P5T4.js";import"./chunk-I6OD3CV4.js";import"./chunk-4UVD743J.js";import"./chunk-DBUCH6BG.js";import"./chunk-DPRPAYPR.js";import"./chunk-B5U6NU6O.js";import"./chunk-GDFC3M3E.js";import"./chunk-FETTFNJ2.js";import"./chunk-6ZN4TBLM.js";export{a as StartupScriptComponent};
|
package/public/chunk-LCEXPZSQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as f,b as u}from"./chunk-COLGKW4E.js";import{a as d}from"./chunk-T5R74XVP.js";import{c as p}from"./chunk-OWRK7HTL.js";import"./chunk-G4YADEBO.js";import"./chunk-CUKPSGYS.js";import"./chunk-I6OD3CV4.js";import{q as n}from"./chunk-W2INV3O5.js";import{y as s}from"./chunk-4UVD743J.js";import"./chunk-257ETYMI.js";import{g as i}from"./chunk-DBUCH6BG.js";import"./chunk-XSJLH4J4.js";import"./chunk-DPRPAYPR.js";import"./chunk-B5U6NU6O.js";import"./chunk-GDFC3M3E.js";import{c}from"./chunk-FETTFNJ2.js";import{ha as r,id as m,ub as e}from"./chunk-6ZN4TBLM.js";var C=[{path:"",loadComponent:()=>import("./chunk-ZRIMNRS2.js").then(o=>o.AccessoriesComponent)}],l=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=e({type:o});static \u0275inj=r({imports:[i.forChild(C),i]})}return o})();var S=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=e({type:o});static \u0275inj=r({imports:[m,s,n,p,c.forChild(),d,l,u,f]})}return o})();export{S as AccessoriesModule};
|
package/public/chunk-LGYUYNPL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as a}from"./chunk-3RLNXFR7.js";import"./chunk-5JABRELT.js";import"./chunk-OWRK7HTL.js";import"./chunk-G4YADEBO.js";import"./chunk-D33FRRVF.js";import"./chunk-G5LGUOIC.js";import"./chunk-DQGH4ZQS.js";import"./chunk-SDWHICZH.js";import"./chunk-KPW2P5T4.js";import"./chunk-CUKPSGYS.js";import"./chunk-I6OD3CV4.js";import"./chunk-DCSCX4JC.js";import"./chunk-3NAAMMFZ.js";import"./chunk-AFY7IWPI.js";import"./chunk-ZIXTTJ4W.js";import"./chunk-44K5XVZH.js";import"./chunk-BC4ZZQWV.js";import"./chunk-XSS6G7LC.js";import"./chunk-TEFE7EK6.js";import"./chunk-W2INV3O5.js";import"./chunk-4UVD743J.js";import"./chunk-257ETYMI.js";import"./chunk-DBUCH6BG.js";import"./chunk-XSJLH4J4.js";import"./chunk-DPRPAYPR.js";import"./chunk-B5U6NU6O.js";import"./chunk-GDFC3M3E.js";import"./chunk-FETTFNJ2.js";import"./chunk-6ZN4TBLM.js";export{a as StatusComponent};
|
package/public/chunk-LY5JX6HN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as h}from"./chunk-5JABRELT.js";import{b}from"./chunk-FETTFNJ2.js";import{Cc as y,Dc as T,Ub as r,Vb as o,Wb as u,bc as p,fb as l,gb as s,jc as f,kc as v,ma as a,mc as g,n as m,nc as w,pb as d,tb as c}from"./chunk-6ZN4TBLM.js";var C=["terminaloutput"],k=(()=>{class t{$terminal=a(h);termTarget=d("terminaloutput");resizeEvent=new m;constructor(){}onWindowResize(){this.resizeEvent.next(void 0)}ngOnInit(){window.document.querySelector("body").classList.add("bg-black"),this.$terminal.startTerminal(this.termTarget(),{},this.resizeEvent),this.$terminal.term.focus()}ngOnDestroy(){window.document.querySelector("body").classList.remove("bg-black"),this.$terminal.destroyTerminal()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=c({type:t,selectors:[["ng-component"]],viewQuery:function(e,n){e&1&&f(n.termTarget,C,5),e&2&&v()},hostBindings:function(e,n){e&1&&p("resize",function(x){return n.onWindowResize(x)},!1,l)},decls:8,vars:3,consts:[["terminaloutput",""],[1,"row","mb-3"],[1,"col-12"],[1,"primary-text","m-0"],[1,"flex-column","d-flex","align-items-stretch","adjust-for-mobile"],["id","docker-terminal",1,"align-self-end","w-100","h-100","mb-1"]],template:function(e,n){e&1&&(r(0,"div",1)(1,"div",2)(2,"h3",3),g(3),y(4,"translate"),o()()(),r(5,"div",4),u(6,"div",5,0),o()),e&2&&(s(3),w(T(4,1,"menu.linux.label_terminal")))},dependencies:[b],encapsulation:2})}return t})();export{k as a};
|
package/public/chunk-MJ2POKCB.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-3WZ7I7D2.js";import{a as f}from"./chunk-WYBTQTK2.js";import"./chunk-5ORYPCEU.js";import"./chunk-ZIXTTJ4W.js";import"./chunk-44K5XVZH.js";import{q as u}from"./chunk-W2INV3O5.js";import{y as n,z as p}from"./chunk-4UVD743J.js";import"./chunk-257ETYMI.js";import{g as i}from"./chunk-DBUCH6BG.js";import"./chunk-XSJLH4J4.js";import"./chunk-DPRPAYPR.js";import"./chunk-B5U6NU6O.js";import"./chunk-GDFC3M3E.js";import{c as d}from"./chunk-FETTFNJ2.js";import{ha as t,id as m,ub as r}from"./chunk-6ZN4TBLM.js";var M=[{path:"",loadComponent:()=>import("./chunk-J3D6QREL.js").then(o=>o.SetupWizardComponent)}],l=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i.forChild(M),i]})}return o})();var R=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({providers:[a],imports:[m,n,p,d,u,l,f]})}return o})();export{R as SetupWizardModule};
|
package/public/chunk-O4HMFK6W.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-HZYDK6X5.js";import{q as p}from"./chunk-W2INV3O5.js";import{z as m}from"./chunk-4UVD743J.js";import{g as i}from"./chunk-DBUCH6BG.js";import"./chunk-DPRPAYPR.js";import"./chunk-B5U6NU6O.js";import"./chunk-GDFC3M3E.js";import{c as s}from"./chunk-FETTFNJ2.js";import{ha as t,id as n,ub as r}from"./chunk-6ZN4TBLM.js";var a=[{path:"",loadComponent:()=>import("./chunk-J6O6SHGX.js").then(o=>o.PowerOptionsComponent)}],u=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i.forChild(a),i]})}return o})();var j=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n,u,p,m,s]})}return o})();export{j as PowerOptionsModule};
|