import{a as i,d as g,e as l}from"./chunk-NFVWZZNN.js";import{a as o}from"./chunk-KOXD6BDO.js";import{a as s,b as c,e as d}from"./chunk-EMTGVP7F.js";import{K as a,da as u,ja as f}from"./chunk-A4WWLITB.js";import{a as h}from"./chunk-K4ALXBGI.js";var m=(()=>{class p{constructor(r){this._http=r}getSellPrintView(r,t){let e=new s().append(o.SkipError,"skipError");t==i.Kaz&&(e=e.append("accept-language","kk-KZ")),t==i.KazRus&&(e=e.append("x-secondary-language","kk-KZ"));let n=new c({fromObject:r});return this._http.get("/api/sell-document/print-view",{headers:e,params:n})}getReturnSellPrintView(r,t){let e=new s().append(o.SkipError,"skipError");t==i.Kaz&&(e=e.append("accept-language","kk-KZ")),t==i.KazRus&&(e=e.append("x-secondary-language","kk-KZ"));let n=new c({fromObject:r});return this._http.get("/api/return-sell-document/print-view",{headers:e,params:n})}getZReport(r,t){let e=new s().append(o.SkipError,"skipError");t==i.Kaz&&(e=e.append("accept-language","kk-KZ")),t==i.KazRus&&(e=e.append("x-secondary-language","kk-KZ"));let n=new c({fromObject:r});return this._http.get("/api/fiscal-shift/print-view",{headers:e,params:n})}getXReport(r,t){let e=new s().append(o.SkipError,"skipError");return t==i.Kaz&&(e=e.append("accept-language","kk-KZ")),t==i.KazRus&&(e=e.append("x-secondary-language","kk-KZ")),this._http.post("/api/fiscal-shift/x-report",h({},r),{headers:e})}getExternalXReport(r,t){let e=new s().append(o.SkipError,"skipError");return t==i.Kaz&&(e=e.append("accept-language","kk-KZ")),t==i.KazRus&&(e=e.append("x-secondary-language","kk-KZ")),this._http.post("/api/fiscal-shift/external-x-report",h({},r),{headers:e})}getBirsanXZReport(r,t){let e=new s().append(o.SkipError,"skipError");t==i.Kaz&&(e=e.append("accept-language","kk-KZ")),t==i.KazRus&&(e=e.append("x-secondary-language","kk-KZ"));let n=new c;return r.symbols!==void 0&&r.symbols!==null?(n=n.append("symbols",r.symbols),this._http.get(`/api/shift/${r.shiftId}/x-report`,{headers:e,params:n})):this._http.get(`/api/shift/${r.shiftId}/x-report`,{headers:e})}static{this.\u0275fac=function(t){return new(t||p)(f(d))}}static{this.\u0275prov=u({token:p,factory:p.\u0275fac})}}return p})();var v=(()=>{class p{constructor(r){this._printViewServiceApi=r}getSellPrintView(r,t){return this._printViewServiceApi.getSellPrintView(r,t).pipe(a(1))}getReturnSellPrintView(r,t){return this._printViewServiceApi.getReturnSellPrintView(r,t).pipe(a(1))}getZReport(r,t){return this._printViewServiceApi.getZReport(r,t).pipe(a(1))}getXReport(r,t){return this._printViewServiceApi.getXReport(r,t).pipe(a(1))}getExternalXReport(r,t){return this._printViewServiceApi.getExternalXReport(r,t).pipe(a(1))}getBirsanXZReport(r,t){return this._printViewServiceApi.getBirsanXZReport(r,t).pipe(a(1))}addedClasses(r){return r.forEach(t=>{if(t.type===g.Text){let e=[];t.style&l.Regular&&e.push("regular"),t.style&l.Bold&&e.push("bold"),t.style&l.DoubleHeight&&e.push("doubleHeight"),t.style&l.DoubleWidth&&e.push("doubleWidth"),t.style&l.Italic&&e.push("italic"),t.style&l.Underline&&e.push("underline"),t.className=e.join(" ")}}),r}convertToTimestamp(r){return parseInt(String(new Date(r).getTime()/1e3))}static{this.\u0275fac=function(t){return new(t||p)(f(m))}}static{this.\u0275prov=u({token:p,factory:p.\u0275fac})}}return p})();export{m as a,v as b};
