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