import{a as p,d as k,e as l}from"./chunk-GPXQ2AOL.js";import{a as m}from"./chunk-IJBPUSMZ.js";import{a as o}from"./chunk-PDYJ5OYY.js";import{d as s,e as u,i as d}from"./chunk-YMOV4UGM.js";import{K as a,ga as h,la as f}from"./chunk-I3FGJX2C.js";import{a as g}from"./chunk-B7YGBANW.js";var R=(()=>{let i=class i{constructor(r){this._http=r}getSellPrintView(r,e){let t=new s().append(o.SkipError,"skipError");e==p.Kaz&&(t=t.append("accept-language","kk-KZ")),e==p.KazRus&&(t=t.append("x-secondary-language","kk-KZ"));let c=new u({fromObject:r});return this._http.get("/api/sell-document/print-view",{headers:t,params:c})}getReturnSellPrintView(r,e){let t=new s().append(o.SkipError,"skipError");e==p.Kaz&&(t=t.append("accept-language","kk-KZ")),e==p.KazRus&&(t=t.append("x-secondary-language","kk-KZ"));let c=new u({fromObject:r});return this._http.get("/api/return-sell-document/print-view",{headers:t,params:c})}getZReport(r,e){let t=new s().append(o.SkipError,"skipError");e==p.Kaz&&(t=t.append("accept-language","kk-KZ")),e==p.KazRus&&(t=t.append("x-secondary-language","kk-KZ"));let c=new u({fromObject:r});return this._http.get("/api/fiscal-shift/print-view",{headers:t,params:c})}getXReport(r,e){let t=new s().append(o.SkipError,"skipError");return e==p.Kaz&&(t=t.append("accept-language","kk-KZ")),e==p.KazRus&&(t=t.append("x-secondary-language","kk-KZ")),this._getXReport(r,t)}getExternalXReport(r,e){let t=new s().append(o.SkipError,"skipError");return e==p.Kaz&&(t=t.append("accept-language","kk-KZ")),e==p.KazRus&&(t=t.append("x-secondary-language","kk-KZ")),this._http.post("/api/fiscal-shift/external-x-report",g({},r),{headers:t})}getBirsanXZReport(r,e){let t=new s().append(o.SkipError,"skipError");return e==p.Kaz&&(t=t.append("accept-language","kk-KZ")),e==p.KazRus&&(t=t.append("x-secondary-language","kk-KZ")),this._getBirsanXZReport(r,t)}_getBirsanXZReport(r,e){let t=new u;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",g({},r),{headers:e})}};i.\u0275fac=function(e){return new(e||i)(f(d))},i.\u0275prov=h({token:i,factory:i.\u0275fac});let n=i;return n})();var b=(()=>{let i=class i{constructor(r,e){this._printViewServiceApi=r,this._offlineModeService=e}getSellPrintView(r,e){return this._printViewServiceApi.getSellPrintView(r,e).pipe(a(1))}getReturnSellPrintView(r,e){return this._printViewServiceApi.getReturnSellPrintView(r,e).pipe(a(1))}getZReport(r,e){return this._printViewServiceApi.getZReport(r,e).pipe(a(1))}getXReport(r,e){return this._printViewServiceApi.getXReport(r,e).pipe(a(1))}getExternalXReport(r,e){return this._printViewServiceApi.getExternalXReport(r,e).pipe(a(1))}getBirsanXZReport(r,e){return this._printViewServiceApi.getBirsanXZReport(r,e).pipe(a(1))}addedClasses(r){return r.forEach(e=>{if(e.type===k.Text){let t=[];e.style&l.Regular&&t.push("regular"),e.style&l.Bold&&t.push("bold"),e.style&l.DoubleHeight&&t.push("doubleHeight"),e.style&l.DoubleWidth&&t.push("doubleWidth"),e.style&l.Italic&&t.push("italic"),e.style&l.Underline&&t.push("underline"),e.className=t.join(" ")}}),r}convertToTimestamp(r){return parseInt(String(new Date(r).getTime()/1e3))}};i.\u0275fac=function(e){return new(e||i)(f(R),f(m))},i.\u0275prov=h({token:i,factory:i.\u0275fac});let n=i;return n})();export{R as a,b};
//# sourceMappingURL=chunk-I4LORXOH.js.map
