import{o as u,p as y}from"./chunk-C3XMRR5W.js";import{e as T}from"./chunk-XUSKVTJP.js";import{o as s,p as k,q as o}from"./chunk-DC6G5OHZ.js";import{ia as a}from"./chunk-C2QKZJOP.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-XMUN7QQ4.js.map
