import{o as u,p as y}from"./chunk-KTPGXLMH.js";import{d as T}from"./chunk-LHOZY24P.js";import{n as s,o as k,p as n}from"./chunk-SOETE4NY.js";import{ea as c}from"./chunk-LEOKSAW2.js";import{d as e,n as l}from"./chunk-HE7HQ6LI.js";l();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};
