UNPKG

homebridge-config-ui-x

Version:

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

1 lines 1.38 kB
import{Un as g,Vt as U3,v as C}from"./chunk-D96TCRAL.js";import{t as p}from"./chunk-BinBJ-zk2.js";var h=`server-pairings`;var v=(()=>{class e{$api=g(U3);$cache=g(p);get(){return this.$cache.get(h,()=>this.$api.get(`/server/pairings`))}invalidate(){this.$cache.invalidate(h)}static ɵfac=function(c){return new(c||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();var o=`cached-hap-accessories`;var s=`cached-matter-accessories`;var m=(()=>{class e{$api=g(U3);$cache=g(p);getHap(){return this.$cache.get(o,()=>this.$api.get(`/server/cached-accessories`))}getMatter(){return this.$cache.get(s,()=>this.$api.get(`/server/matter-accessories`))}invalidate(){this.$cache.invalidate(o),this.$cache.invalidate(s)}invalidateHap(){this.$cache.invalidate(o)}invalidateMatter(){this.$cache.invalidate(s)}static ɵfac=function(c){return new(c||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();var f=`accessory-overview`;var Y=(()=>{class e{$api=g(U3);$cache=g(p);$accessoryCache=g(m);$pairingsCache=g(v);get(){return this.$cache.get(f,()=>this.$api.get(`/server/accessory-overview`))}invalidate(){this.$cache.invalidate(f),this.$accessoryCache.invalidate(),this.$pairingsCache.invalidate()}static ɵfac=function(c){return new(c||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();export{m as n,v as r,Y as t};