1import{c as g,d}from"./chunk-AOZ5VXIC.js";import{N as h,R as a,Ub as c,g as r,id as l,od as n,pd as u,q as o}from"./chunk-IVEOF2IW.js";var U=(()=>{let i=class i{constructor(){r(this,"http",a(c));r(this,"baseUrl",l.baseUrl);r(this,"shippingService",a(d));r(this,"featureFlagsService",a(u));r(this,"carrierServicesService",a(g));r(this,"useRumiApiFF",this.featureFlagsService.IsEnabled(n.RumiApiEnabled));r(this,"useRumiApiFFShippingCarriers",this.featureFlagsService.IsEnabled(n.RumiApiShippingCarriers))}getShippingMethods(e){return this.useRumiApiFF?this.shippingService.getShippingRates(e).pipe(o(t=>t.map(p=>this.mapToShippingResponseModel(p)))):this.http.post(`${this.baseUrl}/Shipping`,e)}getShippingCarrierPreferences(e){return this.http.post(this.baseUrl+"/ShippingCarrier/GetShippingPreferences",e)}getCarrierService(e){return this.useRumiApiFFShippingCarriers?this.carrierServicesService.getByRegion(e).pipe(o(t=>t.map(p=>this.mapToCarrierServiceModel(p)))):this.http.get(`${this.baseUrl}/CarrierService/${e}`)}getDomesticService(){return this.getCarrierService("Domestic")}getInternationalService(){return this.getCarrierService("International")}getAppicationUserByDomain(e){return this.http.get(`${this.baseUrl}/ApplicationUser/FilterByEmail?email=${e}`)}uploadQuote(e){return this.http.post(`${this.baseUrl}/Contact/UploadQuote`,e)}validateAddress(e){return this.http.post(`${this.baseUrl}/Dashboard/AddressBooks/ResolveAddressBook`,e)}mapToShippingResponseModel(e){return{ProviderCode:e.providerCode??"",ShippingMethod:e.shippingMethod??"",Rate:e.rate??0,GuaranteedDelivery:e.guaranteedDelivery??"",Carrier:e.carrier??""}}mapToCarrierServiceModel(e){return{LegacyId:e.id??0,Name:e.name??"",Carrier:e.carrier??""}}};r(i,"\u0275fac",function(t){return new(t||i)}),r(i,"\u0275prov",h({token:i,factory:i.\u0275fac,providedIn:"root"}));let s=i;return s})();export{U 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.