import{a as u,b as y}from"./chunk-5HAPCINQ.js";import{d as T}from"./chunk-3UPSUB3J.js";import{p as s,q as k,r as o}from"./chunk-M6NTKB7A.js";import{ga as a}from"./chunk-I3FGJX2C.js";import{d as n,n as l}from"./chunk-INB5GR2I.js";l();var c,e,i=(e=class{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(c))}},c=e,e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=a({token:e,factory:e.\u0275fac}),e);n([s(u)],i.prototype,"setTrinityTokens",null);n([s(y)],i.prototype,"trinityLogout",null);n([o()],i,"trinityCashboxId",null);n([o()],i,"trinityTokens",null);n([o()],i,"trinityAccessToken",null);n([o()],i,"trinityAccessTokenExpiration",null);n([o()],i,"isTrinityAuthenticated",null);i=c=n([k({name:"trinityAuth",defaults:{tokens:{cashboxId:"",accessToken:"",refreshToken:"",accessTokenExpiration:""}}})],i);export{i as a};
//# sourceMappingURL=chunk-HLELRDAO.js.map
