import{B as i,E as c,Pb as f,Qb as g,Sb as l,bd as h,h as e,pb as m,y as p}from"./chunk-5ZN6IIP7.js";var u=(()=>{let t=class t{constructor(a){this.payload=a}};t.type="[Tag] Get";let o=t;return o})();var d=(()=>{let t=class t{constructor(a){this.http=a}getTags(a){return this.http.get(`${h.URL}/tag`,{params:a})}};t.\u0275fac=function(y){return new(y||t)(c(m))},t.\u0275prov=i({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var r,n=(r=class{constructor(t){this.tagService=t}static tag(t){return t.tag}getTags(t,s){return this.tagService.getTags(s.payload).pipe(p({next:a=>{t.patchState({tag:{data:a.data,total:a?.total?a?.total:a.data?.length}})},error:a=>{throw new Error(a?.error?.message)}}))}},r.\u0275fac=function(s){return new(s||r)(c(d))},r.\u0275prov=i({token:r,factory:r.\u0275fac}),r);e([f(u)],n.prototype,"getTags",null);e([l()],n,"tag",null);n=e([g({name:"tag",defaults:{tag:{data:[],total:0}}})],n);export{u as a,n as b};
