1"use strict";(self.webpackChunkpuratos_react=self.webpackChunkpuratos_react||[]).push([[9954],{34782(e,i,t){t.d(i,{x:()=>p});var r=t(96540),s=t(19115),l=t(60188),n=t(54585),a=t(41953),o=t(74848);const c=(0,a.OY)(),d=e=>{let{className:i,children:t}=e;return c?(0,o.jsx)(r.Fragment,{children:t}):(0,o.jsx)("picture",{className:i,children:t})};var h=t(77450);const u="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",g=(0,a.OY)(),m=e=>{let{image:i,altText:t,hasAltImage:r,position:s="card-image-middle-aligned",className:a,width:c,height:h}=e;if(!i)return null;const m=["lazyload",s,i.cssClass,a,r?"thumbnail__with-packshot":null].filter(e=>e).join(" ");if("string"===typeof i)return(0,o.jsx)(d,{children:(0,o.jsx)("img",{src:(0,n.hZ)(i)||u,alt:t,className:m,width:c,height:h,loading:"lazy",decoding:"async"})});if(g)return(0,o.jsx)("img",{src:(0,n.hZ)((0,l.L6)(i)),alt:t,className:"".concat(m," withFallback"),width:c,height:h});let p=l.iu.filter(e=>i[(e<=l.Ob?"thumbnail":"rendition")+e+"Path"]).map(e=>i[(e<=l.Ob?"thumbnail":"rendition")+e+"Path"]+" "+e+"w");return p.length||(p=Array(1).fill(i.renditionOriginalPath)),(0,o.jsx)("img",{className:m,alt:t,width:c,height:h,src:(0,n.hZ)((0,l.aC)(i)),srcSet:u,"data-sizes":"auto","data-srcset":p,loading:"lazy",decoding:"async"})},p=e=>{let{link:i,image:t,altImage:r,position:a,altText:c,children:g,useAltImage:p,showReferenceImageFirst:f,materialNumbers:b,hideOverlay:v=!1,addEvent:j,productClickData:x,width:y,height:w,listPosition:k=1}=e;const N=(0,l.L6)(t,128),A=(0,l.L6)(r,128),O=(0,s.useSelector)(e=>(0,n.G9)(e));return(0,o.jsxs)("figure",{className:"thumbnail__figure",children:[g,(0,o.jsxs)("a",{href:i,onClick:()=>j(x,k),onMouseDown:e=>1===e.button&&j(x,k),children:[!v&&b&&!A&&(0,o.jsx)(h.W,{id:b,fading:!0}),N&&(0,o.jsx)("div",{className:"thumbnail__packshot bg-lazyload lazyload withFallback".concat(p&&A?"":" no-opacity"," ").concat(f?"thumbnail__reference-image-first":""),style:{backgroundImage:"url('"+(0,n.hZ)(N)+"')"},children:!v&&b&&A&&(0,o.jsx)(h.W,{id:b,fading:!0})}),p&&A&&(0,o.jsx)(m,{image:r,altText:c,hasRendition:!!A,hasAltImage:!!N,position:a,width:y,height:w}),!N&&!A&&(0,o.jsx)(d,{className:"fallback-image",children:(0,o.jsx)("img",{src:(0,n.hZ)(O)||u,alt:c,width:y,height:w,loading:"lazy",decoding:"async"})})]})]})}},4611(e,i,t){t.d(i,{BE:()=>s,Wd:()=>r,cR:()=>l,eG:()=>o,kU:()=>a,uI:()=>n});const r={width:418,height:150},s={width:508,height:200},l={width:245,height:164},n={width:245,height:164},a={width:482,height:219},o={width:508,height:200}},5004(e,i,t){t.r(i),t.d(i,{RecipeSocialProof:()=>g,default:()=>m});var r=t(96540),s=t(19115),l=t(54585),n=t(79393),a=t(64030),o=t(18819),c=t(10310),d=t(93559),h=t(66797),u=t(74848);const g=e=>{var i,t;let{resource:n,resourceLoading:g}=e;const m=(0,s.useSelector)(l.nU),p=(0,s.useSelector)(d.OV),f=(0,h.GO)(),b=(0,s.useDispatch)();return(0,r.useEffect)(()=>{m&&b((0,c._V)())},[b,m]),g||null===n||void 0===n||!n.recipes||(null===n||void 0===n||null===(i=n.recipes)||void 0===i?void 0:i.length)<1?null:(0,u.jsx)("div",{className:"container",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsx)("div",{className:"social-proof container-fluid",children:(0,u.jsxs)("div",{className:"row",children:[(0,u.jsx)("div",{className:"col-md-12",children:(0,u.jsx)("h5",{children:f(null===n||void 0===n?void 0:n.title,null===n||void 0===n?void 0:n.productName)})}),(0,u.jsx)("div",{className:"col-md-12"+(null!==n&&void 0!==n&&n.buttonVisible?"":" p-margin-bottom-sm"),children:(0,u.jsx)("div",{className:"row",children:(0,u.jsx)(a.b,{children:null===n||void 0===n||null===(t=n.recipes)||void 0===t?void 0:t.map(e=>(0,u.jsx)(o.A,{item:e,isCarousel:!0,isFavorite:!(null===p||void 0===p||!p.find(i=>i.recipeId===e.id))},e.id))})})}),(null===n||void 0===n?void 0:n.buttonVisible)&&(0,u.jsx)("div",{className:"social-proof__button col-md-12 p-flex p-justify-center p-margin-top-md p-margin-bottom-md",children:(0,u.jsx)("a",{className:"btn-primary",href:null===n||void 0===n?void 0:n.tagLink,children:f(null===n||void 0===n?void 0:n.buttonText,null===n||void 0===n?void 0:n.productName)})})]})})})})}
1,m=(0,s.connect)((e,i)=>({resource:(0,l.W_)(e,i.model)||{},resourceLoading:(0,n.DG)(e,i.model)}),{})(g)},64030(e,i,t){t.d(i,{b:()=>c});t(96540);var r=t(4589),s=t(17477),l=t(74848);function n(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);i&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function a(e){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?n(Object(t),!0).forEach(function(i){o(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function o(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,i||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==typeof i?i:i+""}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}const c=e=>{let{children:i}=e;const t=(0,s.a)("1200px"),n=null===i||void 0===i?void 0:i.toString().split(",").length,o={dots:!1,infinite:!0,speed:500,slidesToShow:n>2?3:2,slidesToScroll:1,responsive:[{breakpoint:1200,settings:{slidesToScroll:1,slidesToShow:n>2?3:2}},{breakpoint:980,settings:{slidesToScroll:1,slidesToShow:2}},{breakpoint:760,settings:{slidesToShow:1,slidesToScroll:1}}]};return(0,l.jsx)("div",{className:"card-container-slick-wrapper",children:t?(0,l.jsx)(r.A,a(a({},o),{},{className:"card-container-slider",children:i})):i})}},18819(e,i,t){t.d(i,{A:()=>S});var r,s,l,n=t(96540),a=t(5556),o=t.n(a),c=t(82014),d=t(34782),h=t(4611),u=t(26493),g=t(66797),m=t(2458),p=t(8576),f=t(99792),b=t(74337),v=t(19115),j=t(50285),x=t(51701),y=t(74848);class w extends n.Component{render(){const{active:e,toggle:i,redirectToLogin:t,googleData:r}=this.props;return(0,y.jsx)(m.A,{requireEcom:!0,requireFavoriteRecipes:!0,children:(0,y.jsxs)(p.a,{children:[(0,y.jsx)(b.A,{roles:f.gg.loggedOut,onClick:t,children:(0,y.jsx)("span",{className:"btn-fav btn-fav-empty"})}),(0,y.jsx)(b.A,{roles:f.gg.connected,onClick:i,children:(0,y.jsx)("span",{className:"btn-fav btn-fav".concat(e?"":"-empty"),onClick:i=>{i.preventDefault(),e||x.v.recipeLike(r)}})})]})})}}r=w,s="propTypes",l={active:o().bool,toggle:o().func,redirectToLogin:o().func},(s=function(e){var i=function(e,i){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,i||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==typeof i?i:i+""}(s))in r?Object.defineProperty(r,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[s]=l;const k=(0,v.connect)(void 0,{redirectToLogin:j.C8})(w);var N=t(10310),A=t(41953);const O=e=>{let{children:i,color:t,classes:r}=e;const s=["label",t&&"label-"+t,r];return(0,y.jsx)("span",{className:(0,A.zP)(s),children:i})};O.colors={secondary:"default"};var T=t(7790);function P(e){let{item:i,translate:t,isFavorite:r,isCarousel:s}=e;const l=(0,v.useDispatch)(),a=(0,n.useCallback)(()=>l((0,N.pP)({id:i.id,url:i.link})),[i,l]),[o,c]=(0,n.useState)();return(0,n.useEffect)(()=>{const e={recipe_name:i.title,website_section:T.k.allRecipes};c(e)},[i]),(0,y.jsx)(u.A,{className:"finder-card col-xs-12 ".concat(s?"col-sm-12":"col-sm-6 col-md-4 col-lg-3"," p-flex p-flex-column"),children:(0,y.jsxs)("div",{className:"thumbnail thumbnail--recipe",children:[(0,y.jsxs)(d.x,{link:i.link,image:i.image,altText:i.referenceTitle||i.title,position:i.fileReferencePosition,width:h.kU.width,height:h.kU.height,children:[i.hasVideoTag&&(0,y.jsx)(O,{classes:"videoTag",children:t("Video")}),(0,y.jsx)(k,{active:r,googleData:o,toggle:a})]}),(0,y.jsx)("div",{className:"caption card",children:(0,y.jsx)("h3",{className:"p-margin-top-sm p-margin-bottom-sm",children:(0,y.jsx)("a",{href:i.link,className:"p-color-black",children:i.referenceTitle||i.title})})}),(0,y.jsx)("div",{className:"caption p-flex p-flex-align-center p-justify-space-between small finder-link",children:(0,y.jsx)("p",{className:"finder-link__text",children:(0,y.jsx)("a",{href:i.link,className:"finder-link__link",children:t("Read more")})})})]})})}P.propTypes={item:o().shape(c.x),translate:o().func,isFavorite:o().bool,toggleFavoriteRecipe:o().func},P.defaultProps={allowedTags:[]};const S=(0,g.lI)(P)},94671(e,i,t){t.d(i,{Qw:()=>o,b3:()=>n,ch:()=>a});var r=t(5556),s=t.n(r),l=t(60188);const n=Object.assign({id:s().string,title:s().string,referenceTitle:s().string,image:s().shape(l.yj),link:s().string}),a=Object.assign({skuImage:s().shape(l.yj),isObsolete:s().bool,hasPrice:s().bool}
1,n),o={longPromotionText:s().string,promoCode:s().string,shortPromotionText:s().string}},82014(e,i,t){t.d(i,{f:()=>a,x:()=>n});var r=t(94671),s=t(5556),l=t.n(s);const n=Object.assign({hasVideoTag:l().bool},r.b3),a={recipeId:l().string,recipeUrl:l().string}}}]); 2//# sourceMappingURL=recipeSocialProof.975cd0d1.chunk.js.map
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.