import{o as u,p as y}from"./chunk-2UYAVX6J.js";import{b as T}from"./chunk-IQMIKDXL.js";import{n as s,o as k,p as n}from"./chunk-A7R3CFJO.js";import{ca as c}from"./chunk-3FIHWXA5.js";import{b as e,i as l}from"./chunk-QOJKCMZT.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};
