1"use strict";(self.webpackChunkResponsiveApps=self.webpackChunkResponsiveApps||[]).push([[774],{7613:(F,O,h)=>{h.d(O,{G:()=>D});var y=h(9423);class D{constructor(a,o,p,g,t,l,n,S,J,A,x){this.productSid=a,this.productAlias=o,this.productVariantParentSid=p,this.productVariantParentAlias=g,this.addInformationQueryFilter=t,this.skipProductAddInformationPos=l,this.skipSubstances=n,this.loadExternalProductInformation=S,this.f4mConnectorSid=J,this.requestedDeliveryDate=A,this.xsltAttachmentRowGuid=x}static convert(a){return new D(a.productSid,a.productAlias,a.productVariantParentSid,a.productVariantParentAlias,y.X.convert(a.addInformationQueryFilter),a.skipProductAddInformationPos,a.skipSubstances,a.loadExternalProductInformation)}getJson(){let a={};return a.productSid=this.productSid,a.productAlias=this.productAlias,a.productVariantParentSid=this.productVariantParentSid,a.productVariantParentAlias=this.productVariantParentAlias,a.addInformationQueryFilter=this.addInformationQueryFilter?this.addInformationQueryFilter.getJson():null,a.skipProductAddInformationPos=this.skipProductAddInformationPos,a.skipSubstances=this.skipSubstances,a.loadExternalProductInformation=this.loadExternalProductInformation,a.f4mConnectorSid=this.f4mConnectorSid,a.requestedDeliveryDate=this.requestedDeliveryDate?.getTime(),a.xsltAttachmentRowGuid=this.xsltAttachmentRowGuid,a}}},9423:(F,O,h)=>{h.d(O,{X:()=>D});var y=h(48587);let D=(()=>{class r{constructor(o,p){this.querySid=o,this.placeholder=p}static convert(o){let p=new r(o.querySid,[]);if(o.placeholder)for(let g=0;g<o.placeholder.length;g++){let l=y.O.convert(o.placeholder[g]);p.placeholder.push(l)}return p}getJson(){let o={};o.querySid=this.querySid;let p=[];for(let g=0;g<this.placeholder.length;g++)p.push(this.placeholder[g].getJson());return p.length>0&&(o.placeholder=p),o}resetPlaceholders(){this.placeholder=[]}static{this.HOST_PLACEHOLDER="##hostname##"}addHostPlaceholder(){for(let o of this.placeholder)if(o.name==r.HOST_PLACEHOLDER)return;this.placeholder.push(new y.O(location.hostname,r.HOST_PLACEHOLDER))}}return r})()},16804:(F,O,h)=>{h.d(O,{P:()=>y});class y{constructor(r,a,o,p,g,t,l,n,S,J,A,x,C,w,R=!1,U,W){this.productFilters=r,this.queryFilter=a,this.searchCriteria=o,this.receipeSid=p,this.startIndex=g,this.numDataSets=t,this.loadUserRatingTotals=l,this.filterContainer=n,this.sortContainer=S,this.productSids=J,this.allowAllProducts=A,this.descTextQueryFilter=x,this.requestedDeliveryDate=C,this.tourInstSids=w,this.loadArticleTourUsage=R,this.deliveryDate=U,this.adressSid=W}getJson(){let r={};return this.productFilters&&(r.productFilters=this.productFilters),r.queryFilter=this.queryFilter,r.searchCriteria=this.searchCriteria,r.receipeSid=this.receipeSid,r.startIndex=this.startIndex,r.numDataSets=this.numDataSets,r.loadUserRatingTotals=this.loadUserRatingTotals,this.filterContainer&&(r.filterContainer=this.filterContainer.getJson()),this.sortContainer&&(r.sortContainer=this.sortContainer.getJson()),this.productSids&&(r.productSids=this.productSids.slice(0)),r.allowAllProducts=this.allowAllProducts,this.descTextQueryFilter&&(r.descTextQueryFilter=this.descTextQueryFilter.getJson()),this.requestedDeliveryDate&&(r.requestedDeliveryDate=this.requestedDeliveryDate.getTime()),r.tourInstSids=this.tourInstSids,r.loadArticleTourUsage=this.loadArticleTourUsage,r.deliveryDate=this.deliveryDate,r.adressSid=this.adressSid,r}}},42887:(F,O,h)=>{h.d(O,{Y:()=>r});var y=h(9423);class D{constructor(o,p){this.label=o,this.value=p}static convert(o){return new D(o.label,o.value)}getJson(){let o={};return o.label=this.label,o.value=this.value,o}}class r{constructor(o,p,g){this.queryFilter=o,this.sortItems=g,p&&this.setSelectedSortItemByValue(p.value),o&&o.addHostPlaceholder()}setSelectedSortItemByValue(o){for(let p of this.sortItems)p.value==o&&(this.selectedSortItem=p)}static fromQuerySid(o){return new r(new y.X(o,[]),null,[])}static convert(o){let p=[];for(let g=0;o.sortItems&&g<o.sortItems.length;g++)p.push(D.convert(o.sortItems[g]));return p.sort((g,t)=>g.value-t.value),new r(o.queryFilter?y.X.convert(o.queryFilter):null,o.selectedSortItem?D.convert(o.selectedSortItem):null,p)}getJson(){let o={};o.queryFilter=this.queryFilter?this.queryFilter.getJson():null,o.selectedSortItem=this.selectedSortItem?this.selectedSortItem.getJson():null;let p=[];for(let g=0;g<this.sortItems.length;g++)p.push(this.sortItems[g].getJson());return p.length>0&&(o.sortItems=p),o}}},48587:(F,O,h)=>{h.d(O,{O:()=>y});class y{constructor(r,a){this.value=r,this.name=a}static convert(r){return new y(r.value,r.name)}
1getJson(){let r={};return r.value=this.value,r.name=this.name,r}setArrayValue(r){this.value=r.toString()}equals(r){return this.value==r.value&&this.name==r.name}}},59679:(F,O,h)=>{h.d(O,{m:()=>y});class y{constructor(r,a){this.sid=r,this.name=a}}},71770:(F,O,h)=>{h.d(O,{Z:()=>Y});var y=h(48531),D=h(28588),r=h(96354),a=h(99437),o=h(44668),p=h(24887),g=h(30194),t=h(59679),l=h(16804),n=h(82341),S=h(57786),J=h(84572),A=h(86221),x=h(42887);class C{constructor(d,e,s){this.products=d,this.filterContainer=e,this.sortContainer=s}static convert(d){let e=[];for(let s=0;d.products&&s<d.products.length;s++)e.push(n.Y.convert(d.products[s]));return new C(e,d.filterContainer?A.a.convert(d.filterContainer):null,d.sortContainer?x.Y.convert(d.sortContainer):null)}getJson(){let d={};d.filterContainer=this.filterContainer?this.filterContainer.getJson():null,d.sortContainer=this.sortContainer?this.sortContainer.getJson():null;let e=[];for(let s=0;s<this.products.length;s++)e.push(this.products[s].getJson());return e.length>0&&(d.products=e),d}}var w=h(13875),R=h(62121);class U{constructor(d,e,s){this.articleSid=d,this.latestOrderTime=e,this.nextDeliveryTime=s}static convert(d){let e,s;return d.latestOrdertime&&(e=R.s.create(d.latestOrdertime)),d.nextDeliveryTime&&(s=R.s.create(d.nextDeliveryTime)),new U(d.articleSid,e,s)}}class W{constructor(d){this.results=d}static convert(d){let e=new W([]);return d&&d.results&&d.results.forEach(s=>e.results.push(s)),e}}var Q=h(63132);class q{constructor(d,e){this.articleSid=d,this.siblings=e}static convert(d){return new q(d.articleSid,d.siblings)}getJson(){let d={};return d.articleSid=this.articleSid,d.siblings=this.siblings,d}}class B{constructor(d,e,s){this.requestedDeliveryDate=d,this.tourInstSid=e,this.productSiblingInfos=s}static convert(d){return d?new B(d.requestedDeliveryDate,d.tourInstSid,d.productSiblingInfos?.map(e=>q.convert(e))):null}}var L=h(63298),G=h(2615),H=h(35890),X=h(19209);let Y=(()=>{class N{constructor(e,s){this.dataService=e,this.s_store=s,this.homeUrl="/",this.productDetailCache=new y.W,this.existProductCache=new y.W,(0,S.h)(this.s_store.onLogin,this.s_store.onLogout).subscribe(()=>{this.productDetailCache.clearItems()})}getProductDetail(e){return this.productDetailCache.getObservable(e,this.getProductDetailData(e).pipe((0,r.T)(s=>s)))}getProductDetailData(e){return this.dataService.post("webshop/getproductdetail",JSON.stringify(e.getJson()),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(s=>{let i=D.J.convert(s.json(),u=>L.$.convert(u));return e.loadProductStockAmount||this.initProductsWithProductStockAmounts([i],e.tourInstSids),i}),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}existProduct(e){return this.existProductCache.getObservable(e,this._existProduct(e).pipe((0,r.T)(s=>s)))}_existProduct(e){return this.dataService.post("webshop/existproduct",JSON.stringify(e.getJson()),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(function s(i){return i&&i.json()}.bind(this)),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}getAlternativeProductDetail(e,s,i=null){let u={};return u.productSid=e,u.deliveryPosSid=s,i&&(u.deliveryDate=i.getTime()),this.dataService.post("webshop/getalternativeproductdetail",JSON.stringify(u),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(c=>{let f=D.J.convert(c.json(),m=>L.$.convert(m));return this.initProductsWithProductStockAmounts([f],null),f}),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}getAlternativeProductDetails(e,s,i,u=null,c=null,f=null){let m={};return m.productSid=e,m.deliveryPosSid=s,m.productParentSid=i,m.tourInstSid=u,m.otherSelectedProductSids=c,f&&(m.deliveryDate=f.getTime()),this.dataService.post("webshop/getalternativeproductdetails",JSON.stringify(m),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(v=>{let I=[];return(v=v.json()).forEach(T=>I.push(D.J.convert(T,P=>L.$.convert(P)))),this.initProductsWithProductStockAmounts(v,[u]),I}),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}getProductAdditionalInformation(e){return this.dataService.post("webshop/getproductaddinformation",JSON.stringify(e.getJson()),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(function s(i){return p.D.convert(i.json())}
1.bind(this)),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}getContentDesc(e){return this.dataService.post("webshop/getcontentdesc",JSON.stringify(e.getJson()),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(function s(i){return g.l.convert(i.json(),c=>L.$.convert(c))}.bind(this)),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}getFilterProductGrps(e){let s={};return s.parentProductSid=e,this.dataService.post("webshop/getproductfilters",JSON.stringify(s),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(function i(u){u=u.json();let c=[];for(let f=0;f<u.length;f++){let m=u[f],v=new t.m(m.sid,m.name);c.push(v)}return c}),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}getProductsyByQueryFilter(e,s,i=null,u=null,c=null,f=!1,m=null,v=null,I=!1,T=null,P=!1){let b=new l.P(null,e,null,null,u,c,f,m,v,null,I,T,s,i,P);return m||v?this.getProductsExtendedByRequestObj(b):this.getProductsByRequestObj(b)}getFilteredProducts(e,s,i=null,u=null,c=null,f=!1,m=null,v=null,I=!1,T=null,P=!1){let b=new l.P(e,null,null,null,u,c,f,m,v,null,I,T,s,i,P);return m||v?this.getProductsExtendedByRequestObj(b):this.getProductsByRequestObj(b)}getProductsBySearchCriteria(e,s,i=null,u=null,c=null,f=!1,m=null,v=null,I=!1,T=null,P=!1){let b=new l.P(null,null,e,null,u,c,f,m,v,null,I,T,s,i,P);return m||v?this.getProductsExtendedByRequestObj(b):this.getProductsByRequestObj(b)}getProductsBySIDs(e,s,i,u=null,c=null,f=!1,m=null,v=null,I=!1,T=null,P=!1){let b=new l.P(null,null,null,null,u,c,f,m,v,e,I,T,s,i,P);return m||v?this.getProductsExtendedByRequestObj(b):this.getProductsByRequestObj(b)}getProductsByRequestObj(e){return this.dataService.post("webshop/getproducts",JSON.stringify(e.getJson()),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(s=>{let i=[];if(200==s.status){let u=s.json();for(let c=0;c<u.length;c++){let m=n.Y.convert(u[c]);i.push(m)}}return this.initProductsWithProductStockAmounts(i,e.tourInstSids),this.initProductsWithLatestOrderTime(i,e.tourInstSids,e.deliveryDate,e.adressSid),i}),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}getProductsExtendedByRequestObj(e){return this.dataService.post("webshop/getproductsextended",JSON.stringify(e.getJson()),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(s=>{if(200==s.status){let i=s.json(),u=C.convert(i);return this.initProductsWithProductStockAmounts(u.products,e.tourInstSids),this.initProductsWithLatestOrderTime(u.products,e.tourInstSids,e.deliveryDate,e.adressSid),u}return new C([],null,null)}),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}initProductsWithProductStockAmounts(e,s){let i=[...e];i.forEach(c=>{c.productVariants&&i.push(...c.productVariants)});let u=this.getProductStockAmounts(i.map(c=>c.sid),s).pipe((0,r.T)(c=>{let f=new Map;return c&&c.forEach(m=>f.set(m.productSid,m.productStock)),f}),(0,o.t)(1));i.forEach(c=>{c.o_productStock=u.pipe((0,r.T)(f=>f.get(c.sid)))})}getProductsIncludingVariants(e){let s=[...e];return e.forEach(i=>{i.productVariants?.length&&s.push(...this.getProductsIncludingVariants(i.productVariants))}),s}initProductsWithLatestOrderTime(e,s,i,u){if(!e?.length)return;let c=this.getProductsIncludingVariants(e),f=c.map(I=>I.sid);s?.length||(s=[void 0]);const m=s.map(I=>this.getLatestOrderTime(f,i,I,u).pipe((0,r.T)(T=>{const P=new Map;return T&&T.forEach(b=>P.set(b.articleSid,b)),P}))),v=(0,J.z)(m).pipe((0,r.T)(I=>{const T=new Map;return f.forEach(P=>{const b=I.map(E=>E.get(P)).filter(E=>!!E);if(!b.length)return;const V=b.find(E=>!E.latestOrderTime);if(V)T.set(P,V);else{const E=b.reduce((k,M)=>k.latestOrderTime.isBefore(M.latestOrderTime)?M:k);T.set(P,E)}}),T}),(0,o.t)({bufferSize:1,refCount:!0}));c.forEach(I=>{I.o_latestOrderTime=v.pipe((0,r.T)(T=>{let P=T.get(I.sid);return P?P.latestOrderTime:null}))})}getLatestOrderTime(e,s,i,u){let c=[];e?.length&&(c=e.filter(v=>null!=v));let f={articleSids:c,requestedDeliveryDate:s?.getTime(),tourInstSid:i};return null!=u&&(f.adressSid=u),this.dataService.post("webshop/getlatestordertime",JSON.stringify(f),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(function m(v){return(v=v.json()).map(I=>
1U.convert(I))}),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}getDictionaryResult(e){return this.dataService.post("webshop/getdictionaryresult",e.getJson(),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(function s(i){return i=i.json(),W.convert(i)}),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}getProductStockAmounts(e,s){return this.dataService.post("webshop/getproductstockamounts",JSON.stringify({productSids:e,tourInstSids:s}),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(function u(c){return(c=c.json())&&c.map(f=>({productSid:f.productSid,productStock:w.e.convert(f.productStock)}))}),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}getProductIcons(e,s,i){let u={productIconsQueryFilter:e.getJson(),productSid:s,requestedDeliveryDate:i?.getTime()};return this.dataService.post("webshop/getproducticons",JSON.stringify(u),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(function c(f){return(f=f.json())&&f.map(m=>Q.h.convert(m))}),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}getProductSiblings(e){return this.dataService.post("webshop/getproductsiblings",JSON.stringify(e.getJson()),void 0,this.homeUrl,!1,!0).pipe((0,r.T)(function s(i){return(i=i.json())&&i.map(u=>B.convert(u))}),(0,a.W)(this.dataService.notifyUsererror.bind(this.dataService)))}static{this.\u0275fac=function(s){return new(s||N)(G.KVO(H.u),G.KVO(X.w))}}static{this.\u0275prov=G.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})()},86221:(F,O,h)=>{h.d(O,{a:()=>p});var y=h(9423),D=h(56174);class r{constructor(t,l,n,S,J,A,x,C,w,R){this.showMore=!1,this.label=t,this.selected=l,this.token=n,this.value=S,this.sortNr=J,this.queryIndex=A,this.type=x,this.filterItems=C,this.filterID=w,this.iconRowGuid=R}static convert(t){let l=[];for(let n=0;t.filterItems&&n<t.filterItems.length;n++)l.push(r.convert(t.filterItems[n]));return l.sort((n,S)=>n.sortNr-S.sortNr),new r(t.label,t.selected,t.token,t.value,t.sortNr,t.queryIndex,t.type,l,t.filterID,t.iconRowGuid)}getJson(){let t={};t.label=this.label,t.selected=this.selected,t.token=this.token,t.value=this.value,t.sortNr=this.sortNr,t.queryIndex=this.queryIndex,t.type=this.type,t.filterID=this.filterID,t.iconRowGuid=this.iconRowGuid;let l=[];for(let n=0;n<this.filterItems.length;n++)l.push(this.filterItems[n].getJson());return l.length>0&&(t.filterItems=l),t}isSelected(){return!!this.selected||this.filterItems.some(t=>t.isSelected())}clear(){this.selected=!1,this?.type==D.u.FILTERTYPE_TEXT&&(this.value=null),this.filterItems?.forEach(t=>t.clear())}getIdentifier(){return this.groupLabel+"_"+this.token+"_"+this.value}}class a{constructor(t,l,n,S,J,A){this.showMore=!1,this.label=t,this.sortNr=l,this.filterItems=n,this.filterByOr=S,this.selectionMandatory=J,this.cssClass=A}static convert(t){let l=[];for(let n=0;t.filterItems&&n<t.filterItems.length;n++){const S=r.convert(t.filterItems[n]);S.groupLabel=t.label,l.push(S)}return l.sort((n,S)=>n.sortNr-S.sortNr),new a(t.label,t.sortNr,l,t.filterByOr,t.selectionMandatory,t.cssClass)}getJson(){let t={};t.label=this.label,t.sortNr=this.sortNr,t.filterByOr=this.filterByOr;let l=[];for(let n=0;n<this.filterItems.length;n++)l.push(this.filterItems[n].getJson());return l.length>0&&(t.filterItems=l),t.selectionMandatory=this.selectionMandatory,t.cssClass=this.cssClass,t}checkMandatorySelection(){return!this.selectionMandatory||!this.filterItems||this.filterItems.some(t=>t.isSelected())}}var o=h(74819);class p{get preSelection(){if(this._preSelection&&this._preSelection.length>0)return this._preSelection;{let t=[];return this.filterItemGroups.forEach(l=>{this.appendSelectedFilterItems(l.filterItems,l,t)}),t}}appendSelectedFilterItems(t,l,n){t.forEach(S=>{S.selected&&n.push(l.label+"_"+S.token+"_"+S.value),S.filterItems&&this.appendSelectedFilterItems(S.filterItems,l,n)})}set preSelection(t){this._preSelection=t}constructor(t,l,n=null){this.queryFilter=t,this.filterItemGroups=l,this.preSelection=n,t&&t.addHostPlaceholder()}static fromQuerySid(t){return new p(new y.X(t,[]),[])}static convert(t){let l=[];for(let n=0;t.filterItemGroups&&n<t.filterItemGroups.length;
1n++)l.push(a.convert(t.filterItemGroups[n]));return l.sort((n,S)=>n.sortNr-S.sortNr),new p(t.queryFilter?y.X.convert(t.queryFilter):null,l,0==l.length?t.preSelection:null)}getJson(){let t={};t.queryFilter=this.queryFilter?this.queryFilter.getJson():null;let l=[];for(let n=0;n<this.filterItemGroups.length;n++)l.push(this.filterItemGroups[n].getJson());return t.filterItemGroups=l,t.preSelection=this.preSelection,t}getPreselectionJson(){return{preSelection:this.preSelection,queryFilter:this.queryFilter?this.queryFilter.getJson():null,filterItemGroups:[]}}anyChecked(){for(let t of this.filterItemGroups)for(let l of t.filterItems)if(l.selected)return!0;return!1}setSelectedFilters(t){const l=[],n=o.L.getArrayFromString(t,",");return this.filterItemGroups.map(S=>{S.filterItems.forEach(J=>{J.label&&n.indexOf(J.label)>-1&&(J.selected=!0,l.push(J))})}),l}getSelectedFilters(){const t=[];return this.filterItemGroups.map(l=>{l.filterItems.forEach(n=>{n.selected&&n.label&&-1===t.findIndex(S=>S?.value===n.value)&&t.push(n)})}),t}}}}]);
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.