1import{e as g}from"./chunk-OT5BIL5I.js";import{k as u,l as p}from"./chunk-XERX3YYW.js";import{Ca as v,Fd as j,L as s,ca as m,ga as h,gg as y,lf as S,p as n,qa as l,ua as i,v as a}from"./chunk-PMSJWPYZ.js";import{a as f}from"./chunk-NIF3MU5U.js";var q=(()=>{class o{http=i(j);occEndPointService=i(S);languageService=i(y);warehouseContextService=i(g);injector=i(v);warehouse$=this.warehouseContextService.getActive();locale$=this.languageService.getActive();getOffer(t,e=!1){return a([this.locale$,this.warehouse$]).pipe(h(([r,c])=>this.fetchOffer$(r,t,c,e)))}getOffers(){return a([this.locale$,this.warehouse$]).pipe(h(([t,e])=>this.fetchOffers$(t,e)),m({bufferSize:1,refCount:!0}))}fetchOffer$(t,e,r,c=!1){let $=this.http.get(this.occEndPointService.buildUrl("offer",{urlParams:{code:e},queryParams:f({lang:t},r?{pos:r}:{})})).pipe(p({key:`offer:${t}:${e}:${r}`,injector:this.injector}),u({key:`offer:${t}:${e}:${r}`,ttl:36e5,injector:this.injector}));return c?$.pipe(s(w=>n(w))):$}fetchOffers$(t,e){return this.http.get(this.occEndPointService.buildUrl("offers",{queryParams:f({lang:t},e?{pos:e}:{})})).pipe(s(r=>n(r)),p({key:`offers:${t}:${e}`,injector:this.injector}),u({key:`offers:${t}:${e}`,ttl:1e3*60*60,injector:this.injector}))}static \u0275fac=function(e){return new(e||o)};static \u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();export{q as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.