1import{Ae as I,Ec as h,M as d,Ud as v,Yd as g,aa as u,db as f,gh as j,jb as p,ka as c,kd as m,la as l,na as n,oa as a,zf as y}from"./chunk-LXN2K7IZ.js";var w=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=c({token:t,factory:function(e){let r=null;return e?r=new(e||t):r=n(v),r},providedIn:"root"});let o=t;return o})(),M="smartEdit",P=(()=>{let t=class t{get cmsTicketId(){return this._cmsTicketId}constructor(i,e,r){this.config=i,this.location=e,this.scriptLoader=r,this.featureModulesService=a(j)}load(){this.isLaunchedInSmartEdit()&&(this.featureModulesService.resolveFeature(M).subscribe(),this.scriptLoader?.embedScript({src:"assets/webApplicationInjector.js",params:void 0,attributes:{id:"text/smartedit-injector","data-smartedit-allow-origin":this.config.smartEdit?.allowOrigin}}))}isLaunchedInSmartEdit(){let i=this.location.path().split("?")[0],r=this.location.path().split("?")[1]?.split("&").find(s=>s.startsWith("cmsTicketId="));return this._cmsTicketId=r?.split("=")[1],i.split("/").pop()===this.config.smartEdit?.storefrontPreviewRoute&&!!this._cmsTicketId}};t.\u0275fac=function(e){return new(e||t)(n(w),n(h),n(y))},t.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),T={smartEdit:{storefrontPreviewRoute:"cx-preview",allowOrigin:"localhost:9002"}},E=(()=>{let t=class t{constructor(i){this.service=i,this.routingService=a(I)}intercept(i,e){let r=this.service.cmsTicketId;return r?i.url.includes("/productList")?this.setRequestForProductListPage(i,e,r):((i.url.includes("/cms/")||i.url.includes("/products/"))&&(i=i.clone({setParams:{cmsTicketId:r}})),e.handle(i)):e.handle(i)}setRequestForProductListPage(i,e,r){return this.routingService.getPageContext().pipe(d(1),u(s=>(i=i.clone(s.id?{setParams:{cmsTicketId:r,categoryCode:s.id}}:{setParams:{cmsTicketId:r}}),e.handle(i))))}};t.\u0275fac=function(e){return new(e||t)(n(P))},t.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),F=[{provide:m,useExisting:E,multi:!0}];function k(o){return()=>{o.load()}}var x=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=f({type:t}),t.\u0275inj=l({providers:[...F,g(T),{provide:p,useFactory:k,deps:[P],multi:!0}]});let o=t;return o})();export{w as a,M as b,x as c};
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.