UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge.

2 lines (1 loc) 1.39 kB
import{a as C,b as y,c as $,d as j}from"./chunk-5DAORM2Y.js";import"./chunk-XBIY2EKP.js";import{q as d}from"./chunk-WCXU6QPE.js";import{y as l,z as u}from"./chunk-JKRWJSXD.js";import{d as v,g as n}from"./chunk-ZS7TMHAN.js";import"./chunk-TTVC7HAX.js";import"./chunk-REE7MX3I.js";import{h as g,k as h}from"./chunk-LNTR2LBX.js";import"./chunk-DNCUP6B7.js";import{a as M,c as U}from"./chunk-2WNK6SOS.js";import{ga as f,h as a,ha as i,id as c,ma as e,ub as s,w as p}from"./chunk-NVNBNEFN.js";var m=(()=>{class r{$api=e(h);$router=e(v);$toastr=e(g);$translate=e(M);constructor(){}resolve(){return a(this,null,function*(){try{return yield p(this.$api.get("/users"))}catch(o){console.error(o),this.$toastr.error(o.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})();var F=[{path:"",loadComponent:()=>import("./chunk-CK6OPUEB.js").then(r=>r.UsersComponent),resolve:{homebridgeUsers:m}}],b=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=s({type:r});static \u0275inj=i({imports:[n.forChild(F),n]})}return r})();var Y=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=s({type:r});static \u0275inj=i({providers:[m],imports:[c,l,u,U.forChild(),d,b,$,j,y,C]})}return r})();export{Y as UsersModule};