import{a as u,b as y}from"./chunk-4VQI34SA.js";import{d as T}from"./chunk-3KO7CFNX.js";import{q as s,r as k,s as o}from"./chunk-7WGMNLRJ.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-DLNSKIQJ.js.map
