import{a as u,b as y}from"./chunk-NAAA46YX.js";import{q as T}from"./chunk-3WWEFG5Z.js";import{n as s,o as k,p as n}from"./chunk-OWZ5YAMH.js";import{k as e,la as c}from"./chunk-ISMRT7VU.js";var a,i=class o{static{a=this}static trinityCashboxId(t){return t.tokens}static trinityTokens(t){return t.tokens}static trinityAccessToken(t){return t.tokens.accessToken}static trinityAccessTokenExpiration(t){return new Date(t.tokens.accessTokenExpiration)}static isTrinityAuthenticated(t){return t.tokens.accessToken!==""&&t.tokens.refreshToken!==""}setTrinityTokens(t,r){t.setState({tokens:r.tokens})}trinityLogout(t){t.dispatch(new T(a))}static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac})}};e([s(u)],i.prototype,"setTrinityTokens",null);e([s(y)],i.prototype,"trinityLogout",null);e([n()],i,"trinityCashboxId",null);e([n()],i,"trinityTokens",null);e([n()],i,"trinityAccessToken",null);e([n()],i,"trinityAccessTokenExpiration",null);e([n()],i,"isTrinityAuthenticated",null);i=a=e([k({name:"trinityAuth",defaults:{tokens:{cashboxId:"",accessToken:"",refreshToken:"",accessTokenExpiration:""}}})],i);export{i as a};
//# sourceMappingURL=chunk-SKMHJBZP.js.map
