import{a as u,b as y}from"./chunk-7QBSJP3M.js";import{q as T}from"./chunk-O5FUBBHI.js";import{q as s,r as k,s as o}from"./chunk-JBWPPKX4.js";import{fa as a}from"./chunk-PVUKHE45.js";import{d as n,n as l}from"./chunk-VD6R3735.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-AWKNEGWF.js.map
