1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[976],{1856(e,t,n){n.d(t,{A:()=>G});var o=n(1986),i=n(1468),r=n(4895),a=n(4383),l=n(1125),c=n(7704),d=n(5996),s=n(9037),p=n(467),m=n(4671),h=n(2101),u=n(3431),f=n(1078),g=n(3601),y=n(5026),v=n(7457);function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,l=[],c=!0,d=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){d=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var b=l.Ay.div.withConfig({displayName:"FavoriteShops__Wrapper",componentId:"sc-bovd7r-0"})(["display:flex;flex-direction:column;max-width:900px;width:100%;padding:20px 20px;font-size:14px;line-height:20px;background-color:#fff;box-sizing:border-box;@media (min-width:","){padding:30px 50px;height:756px;}"],c.TA.lg),A=l.Ay.h2.withConfig({displayName:"FavoriteShops__Title",componentId:"sc-bovd7r-1"})(["text-align:center;margin-bottom:10px;font-size:20px;@media (min-width:","){margin-bottom:30px;font-size:28px;}"],c.TA.lg),S=l.Ay.div.withConfig({displayName:"FavoriteShops__SelectedShopWrap",componentId:"sc-bovd7r-2"})(["position:relative;display:",";padding:10px 20px;justify-content:center;background-color:#d6d6d6;border-color:#c5c5c5;border-radius:5px;margin-bottom:20px;@media (min-width:","){margin-bottom:30px;}"],function(e){return e.show?"flex":"none"},c.TA.lg),k=l.Ay.button.withConfig({displayName:"FavoriteShops__SelectedShopRemoveButton",componentId:"sc-bovd7r-3"})(["position:absolute;width:20px;height:20px;right:20px;z-index:10;cursor:pointer;"]),_=(0,l.Ay)(s.A).withConfig({displayName:"FavoriteShops__SelectedShopRemove",componentId:"sc-bovd7r-4"})(["width:20px;height:20px;"]),C=l.Ay.div.withConfig({displayName:"FavoriteShops__Legend",componentId:"sc-bovd7r-5"})(["display:flex;justify-content:center;margin:0 auto;margin-bottom:20px;"]),E=l.Ay.div.withConfig({displayName:"FavoriteShops__LegendLabel",componentId:"sc-bovd7r-6"})(["display:flex;align-items:center;margin:",";@media (max-width:","){margin:0 5px 0 0;","}"],function(e){return e.list?"0":"0 12px"},c.TA.lg,function(e){return e.list&&(0,l.AH)(["position:absolute;top:0;right:0;align-items:center;justify-content:flex-end;margin:0;min-width:170px;"])}),I=(0,l.Ay)(s.A).withConfig({displayName:"FavoriteShops__LegendIcon",componentId:"sc-bovd7r-7"})(["width:11px;height:14px;margin-right:5px;@media (min-width:","){","}"],c.TA.lg,function(e){return e.large&&(0,l.AH)(["width:13px;"])}),T=l.Ay.span.withConfig({displayName:"FavoriteShops__LegendName",componentId:"sc-bovd7r-8"})(["font-size:12px;@media (max-width:","){","}@media (min-width:","){font-size:14px;}"],c.TA.sm,function(e){return e.limit&&(0,l.AH)(["width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"])},c.TA.lg),N=l.Ay.div.withConfig({displayName:"FavoriteShops__List",componentId:"sc-bovd7r-9"})(["display:flex;flex-direction:column;"]),L=l.Ay.ul.withConfig({displayName:"FavoriteShops__ListItems",componentId:"sc-bovd7r-10"})(["list-style:none;overflow:auto;margin-bottom:25px;border-top:1px solid ",";"],function(e){return e.theme.colors.border}),D=(0,l.Ay)(v.U).withConfig({displayName:"FavoriteShops__StyledInputRadio",componentId:"sc-bovd7r-11"})(["height:fit-content;"]),F=l.Ay.div.withConfig({displayName:"FavoriteShops__ListItemWrap",componentId:"sc-bovd7r-12"})(["padding:10px;border:1px solid ",";border-top:none;"," @media (min-width:","){padding:15px;}"],function(e){return e.theme.colors.border},function(e){return e.selected&&(0,l.AH)(["border:1px solid #3e3e3e;"])},c.TA.lg),O=l.Ay.li.withConfig({displayName:"FavoriteShops__ListItem",componentId:"sc-bovd7r-13"})(["display:flex;flex-direction:row;justify-content:space-between;"]),j=l.Ay.div.withConfig({displayName:"FavoriteShops__ItemLeft",componentId:"sc-bovd7r-14"})(["max-width:65%;@media (min-width:","){max-width:none;}"],c.TA.lg),H=l.Ay.div.withConfig({displayName:"FavoriteShops__ItemRight",componentId:"sc-bovd7r-15"})(["display:flex;flex-direction:column;flex-shrink:0;align-items:flex-end;position:relative;@media (max-width:","){justify-content:flex-end;}"],c.TA.lg),z=l.Ay.div.withConfig({displayName:"FavoriteShops__ItemCity",componentId:"sc-bovd7r-16"})(["font-weight:bold;font-size:15px;text-transform:uppercase;margin-right:10px;display:inline-block;@media (min-width:","){font-size:18px;}"],c.TA.lg),B=l.Ay.div.withConfig({displayName:"FavoriteShops__ItemAddress",componentId:"sc-bovd7r-17"})(["font-size:14px;display:flex;flex-direction:column;line-height:22px;@media (min-width:","){display:inline-block;}"],c.TA.lg),M=l.Ay.a.withConfig({displayName:"FavoriteShops__ItemMap",componentId:"sc-bovd7r-18"})(["line-height:26px;margin-right:15px;text-decoration:underline;@media (min-width:","){margin-right:25px;}"],c.TA.lg),W=l.Ay.div.withConfig({displayName:"FavoriteShops__LinksWrap",componentId:"sc-bovd7r-19"})(["display:flex;flex-wrap:wrap;align-items:center;margin-top:5px;"]),P=(0,l.Ay)(d.A).withConfig({displayName:"FavoriteShops__ChooseButton",componentId:"sc-bovd7r-20"})(["margin-bottom:5px;@media (min-width:","){margin-bottom:0px;margin-top:5px;line-height:30px;height:30px;padding:0 25px;}"],c.TA.lg),R=l.Ay.div.withConfig({displayName:"FavoriteShops__OpeningHoursWrap",componentId:"sc-bovd7r-21"})([""]),Y=l.Ay.div.withConfig({displayName:"FavoriteShops__OpeningHours",componentId:"sc-bovd7r-22"})(["margin-top:5px;"]),U={clearModalContent:r.Ap};const G=(0,i.Ng)(null,U)((0,a.Ay)(function(e){var t=e.variantId,n=e.productName,i=e.productBrand,r=e.productCategories,a=e.setPhysicalShopStock,l=e.intl.formatMessage,c=e.useDaellsSkin,d=e.addToBasket,s=e.basket,v=e.selectedPhysicalShopId,w=e.useCollect,U=e.totalLines,G=e.openClickAndCollectWarning,V=e.chooseClickAndCollectShop,K=e.clearModalContent,$=x((0,o.useState)([]),2),Q=$[0],q=$[1],J=x((0,o.useState)([]),2),X=J[0],Z=J[1],ee=
1x((0,o.useState)({}),2),te=ee[0],ne=ee[1];(0,o.useEffect)(function(){s?(0,m.nu)(p.A.listPhysicalShopStocksForBasket).then(function(e){e.ok&&e.json().then(function(e){q(e.physicalShopStocks),Z(e.stockStatusLegend)})}):(0,m.nu)("".concat(p.A.listPhysicalShopStocks,"?variantid=").concat(t)).then(function(e){e.ok&&e.json().then(function(e){var t;q(e.physicalShopStocks),Z(e.stockStatusLegend),(t=e.physicalShopStocks.find(function(e){return e.isFavoriteShop}))&&ne(t)})})},[c,t,s]);var oe=function(e){var t=null;switch(e){case"Green":default:t=u.A;break;case"Yellow":t=f.A;break;case"Red":t=g.A}return t};return o.createElement(b,null,o.createElement(A,null,l({id:w?"shared_chooseDelivery_collect":"productDetails_favoriteShopTitle"})),!w&&o.createElement(S,{show:!!te.name},l({id:"productDetails_favoriteSelected"},{0:te.name}),o.createElement(k,{onClick:function(){(0,m.L4)("".concat(p.A.deleteFavoriteShop,"?variantId=").concat(t)).then(function(e){return e.ok&&ne({}),e.json()}).then(function(e){a(e)})}},o.createElement(_,{icon:y.A}))),o.createElement(C,null,X.map(function(e){return o.createElement(E,{key:e.shopStockColor},e.shopStockColor&&o.createElement(I,{icon:oe(e.shopStockColor)}),o.createElement(T,{limit:!0},e.shopStockText))})),o.createElement(N,null,o.createElement(L,null,Q.map(function(e){return o.createElement(F,{key:e.name,selected:v===e.id},o.createElement(O,null,o.createElement(j,null,o.createElement("div",null,o.createElement(z,null,e.name),o.createElement(B,null,e.address.address," ",o.createElement("span",null,e.address.zipCode," ",e.address.city))),o.createElement(W,null,o.createElement(M,{"aria-label":l({id:"ariaLabels_favoriteShopRoute"},{city:e.address.city}),href:e.destinationLink,target:"_blank",rel:"noopener noreferrer"},l({id:"productDetails_favoriteShopRoute"})),!s&&o.createElement(D,{checked:te.id===e.id,name:"favoriteshop",label:l({id:"productDetails_favoriteShopSelect"}),onChange:function(){return o=e,void(0,m.L4)("".concat(p.A.setFavoriteShop,"?shopid=").concat(o.id,"&variantId=").concat(t)).then(function(e){return e.ok&&(ne(o),(0,h.Mc)({storeName:o.name,itemListId:h.QS.ProductPage,itemName:n||"",itemBrand:i||"",categories:r||[],itemListName:h.iC.StockInfo})),e.json()}).then(function(e){a(e)});var o}}))),o.createElement(H,null,o.createElement(E,{list:!0},s?o.createElement(o.Fragment,null,o.createElement(I,{large:!0,icon:oe(0===e.numberOfProductsInBasketInStock?"Red":e.numberOfProductsInBasketInStock<U?"Yellow":"Green")}),o.createElement(T,null,e.numberOfProductsInBasketInStock," ud af ",U)):o.createElement(o.Fragment,null,e.shopStockText&&o.createElement(o.Fragment,null,o.createElement(I,{large:!0,icon:oe(e.shopStockColor)}),o.createElement(T,null,e.shopStockText&&e.shopStockText)))),w&&v!==e.id&&0!==e.numberOfProductsInBasketInStock&&o.createElement(P,{small:!0,onClick:function(){return n=e,void(s?n.numberOfProductsInBasketInStock<U?G(n.id):(K(),V(n.id)):(0,m.L4)("".concat(p.A.setClickAndCollectShopAndFavorite).concat(n.id,"&variantId=").concat(t)).then(function(e){if(!e.ok)throw new Error(e.status);return e.json()}).then(function(e){a(e),d(),K()}).catch(function(e){console.error(e)}));var n}},l({id:"shared_chooseDelivery_choose"})))),o.createElement(R,null,function(e){var t;if(!(null===(t=null==e?void 0:e.openingHours)||void 0===t?void 0:t.MONDAY))return"";var n=e.openingHours.MONDAY,i=e.openingHours.HOLIDAY,r="";n&&(r="".concat(l({id:"productDetails_favoriteShopWeekdayOpeningHours"}),": ").concat(n.fromHour," - ").concat(n.toHour));var a="";i&&(a="".concat(l({id:"productDetails_favoriteShopWeekendAndHolidayOpeningHours"}),": ").concat(i.fromHour," - ").concat(i.toHour));var d="".concat(l({id:"productDetails_favoriteShopOpeningHoursException"}));return o.createElement(Y,null,r,o.createElement("br",null),a,!c&&o.createElement("span",null,o.createElement("br",null),"(",d,")"))}(e)))}))))}))},6009(e,t,n){n.d(t,{A:()=>H});var o,i,r=n(1986),a=n(1468),l=n(4383),c=n(1125),d=n(7704),s=n(467),p=n(4671),m=n(5996),h=n(4895),u=n(9037),f=n(3431),g=n(1078),y=n(3601);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},v.apply(null,arguments)}const x=function(e){return r.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none",viewBox:"0 0 40 40"},e),o||(o=r.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m27.5 15.668-15-8.65M35 26.666V13.333a3.33 3.33 0 0 0-1.667-2.884L21.667 3.783a3.33 3.33 0 0 0-3.334 0L6.667 10.449A3.33 3.33 0 0 0 5 13.332v13.334a3.33 3.33 0 0 0 1.667 2.883l11.666 6.667a3.33 3.33 0 0 0 3.334 0l11.666-6.667A3.33 3.33 0 0 0 35 26.666"})),i||(i=r.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.45 11.6 20 20.016 34.55 11.6M20 36.8V20"})))};var w,b;function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},A.apply(null,arguments)}const S=function(e){return r.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none",viewBox:"0 0 40 40"},e),w||(w=r.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M35 16.666c0 11.667-15 21.667-15 21.667s-15-10-15-21.667a15 15 0 0 1 30 0"})),b||(b=r.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 21.666a5 5 0 1 0 0-10 5 5 0 0 0 0 10"})))};function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var _=c.Ay.div.withConfig({displayName:"ChooseDeliveryType__Wrap",componentId:"sc-1xsnrye-0"})(["color:",";@media (min-width:","){display:flex;padding:0 60px 10px;}"],function(e){return e.theme.colors.darkGrey},d.TA.md),C=c.Ay.div.withConfig({displayName:"ChooseDeliveryType__Delivery",componentId:"sc-1xsnrye-1"})(["padding:30px 20px;text-align:center;border:1px solid ",";font-size:14px;line-height:20px;@media (min-width:","){width:50%;padding:30px;&:first-of-type{border-right:none;}}@media (min-width:","){padding:40px;font-size:16px;line-height:22px;}"],function(e){return e.theme.colors.border},d.TA.md,d.TA.lg),E=c.Ay.div.withConfig({displayName:"ChooseDeliveryType__Headline",componentId:"sc-1xsnrye-2"})(["color:",";font-family:",";font-size:20px;line-height:26px;font-weight:600;margin-bottom:20px;text-align:center;@media (min-width:","){font-size:26px;line-height:38px;margin-bottom:25px;}"],function(e){return e.theme.colors.black},function(e){return e.theme.roboto},d.TA.lg),I=(0,c.Ay)(m.A).withConfig({displayName:"ChooseDeliveryType__StyledBtn",componentId:"sc-1xsnrye-3"})(["width:100%;margin-top:24px;margin-bottom:12px;@media (min-width:","){margin-top:70px;margin-bottom:20px;}span{margin:0 auto;}"],d.TA.lg),T=c.Ay.div.withConfig({displayName:"ChooseDeliveryType__Name",componentId:"sc-1xsnrye-4"})(["font-family:",";color:",";font-weight:700;font-size:15px;line-height:25px;@media (min-width:","){font-size:20px;margin-bottom:5px;}"],function(e){return e.theme.roboto},function(e){return e.theme.colors.black},d.TA.lg),N=c.Ay.div.withConfig({displayName:"ChooseDeliveryType__StockWrap",componentId:"sc-1xsnrye-5"})(["display:inline-block;padding-left:23px;position:relative;font-weight:bold;font-size:14px;line-height:19px;@media (min-width:","){font-size:15px;}"],d.TA.lg),L=c.Ay.div.withConfig({displayName:"ChooseDeliveryType__IconWrap",componentId:"sc-1xsnrye-6"})(["background:",";width:60px;height:60px;border-radius:60px;display:flex;justify-content:center;align-items:center;margin:0 auto 12px;@media (min-width:","){width:90px;height:90px;border-radius:90px;margin:0 auto 20px;}"],function(e){return e.theme.colors.yellow},d.TA.lg),D=(0,c.Ay)(u.A).withConfig({displayName:"ChooseDeliveryType__Icon",componentId:"sc-1xsnrye-7"}
1)(["height:26px;width:26px;@media (min-width:","){height:40px;width:40px;}"],d.TA.lg),F=(0,c.Ay)(u.A).withConfig({displayName:"ChooseDeliveryType__Checkmark",componentId:"sc-1xsnrye-8"})(["height:15px;width:15px;margin-right:5px;position:absolute;top:2px;left:0;"]),O=c.Ay.div.withConfig({displayName:"ChooseDeliveryType__DeliveryTime",componentId:"sc-1xsnrye-9"})(["min-height:22px;"]),j={clearModalContent:h.Ap};const H=(0,a.Ng)(null,j)((0,l.Ay)(function(e){var t,n,o,i,a=e.intl.formatMessage,l=e.clearModalContent,c=e.addToBasket,d=e.openFavoriteshopModal,m=e.basket,h=e.selectedVariant,u=e.useDaellsSkin,v=(o=r.useState(null),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,l=[],c=!0,d=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){d=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}(o,i)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=v[0],b=v[1];r.useEffect(function(){var e=s.A.getPhysicalShopInfo;(0,p.nu)(e).then(function(e){if(e.status>=400)throw new Error("Bad response from server");return e.json()}).then(function(e){b(e.activeShopCount)}).catch(function(e){console.error(e)})},[]);var A=function(e){var t=null;switch(e){case"Green":t=f.A;break;case"Yellow":t=g.A;break;case"Red":t=y.A}return t};return r.createElement(r.Fragment,null,r.createElement(E,null,a({id:"shared_chooseDelivery_headline"})),r.createElement(_,null,r.createElement(C,null,r.createElement(L,null,r.createElement(D,{"aria-hidden":"true",icon:x})),r.createElement(T,null,a({id:"shared_chooseDelivery_delivery"})),r.createElement(O,null,null==h?void 0:h.deliveryTime),r.createElement(I,{onClick:function(){(0,p.L4)(s.A.disableClickAndCollect).then(function(e){e.ok&&(m?window.location.reload():(c(),l()))})}},a({id:"shared_chooseDelivery_choose"})),(null===(t=null==h?void 0:h.stock)||void 0===t?void 0:t.webshopStockColor)&&r.createElement(N,null,r.createElement(F,{icon:A(h.stock.webshopStockColor)}),r.createElement("b",null,h.stock.webshopStockText))),r.createElement(C,null,r.createElement(L,null,r.createElement(D,{"aria-hidden":"true",icon:S})),r.createElement(T,null,a({id:"shared_chooseDelivery_collect"})),r.createElement("div",null,w&&!u?a({id:"clickAndCollect_modalShopsCountDynamic"},{0:w}):a({id:"clickAndCollect_modalShopsCount"})),r.createElement(I,{onClick:function(){l(),d(!0)}},a({id:"shared_chooseDelivery_findShop"})),(null===(n=null==h?void 0:h.stock)||void 0===n?void 0:n.shopStockColor)&&r.createElement(N,null,r.createElement(F,{icon:A(h.stock.shopStockColor)}),r.createElement("b",null,h.stock.shopStockText)))))}))}}]);
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.