import{a as u,b as y}from"./chunk-WNEZ5E7L.js";import{e as T}from"./chunk-5GJ7UEF2.js";import{p as s,q as k,r as o}from"./chunk-GW2OL5S3.js";import{ea as a}from"./chunk-DYUFV4HF.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-4Y27EZPY.js.map
