PageSourceSearch

https://www.bonduelle.cz/chunk-HVQWVYE5.js

js bonduelle.cz collected 2026-10-09 00:37:42 UTC 54,226 bytes, 3 lines download raw bytes

1import{a as ae}from"./chunk-LLI2UQVP.js";import{a as lt}from"./chunk-3G5ASSS7.js";import{a as dt,b as mt,d as gt,e as ut}from"./chunk-O2JA5JSC.js";import{a as et}from"./chunk-Q2CWZVAJ.js";import{a as pt}from"./chunk-QRRRS4KA.js";import"./chunk-JZRNJ3LS.js";import"./chunk-UQVWFBEG.js";import"./chunk-CEFEKUDS.js";import"./chunk-BJUC3M5N.js";import"./chunk-QUF6YDDF.js";import"./chunk-32QH2SP5.js";import{a as st}from"./chunk-T4MERHPT.js";import{a as it,b as nt}from"./chunk-B6FZM5VY.js";import{a as $}from"./chunk-OQEX44LA.js";import{a as ot}from"./chunk-XZDUHAR6.js";import{a as q}from"./chunk-KFKPQN3A.js";import{i as We,l as ge,m as Qe}from"./chunk-I3B3BMEX.js";import"./chunk-RWOBT7HU.js";import{a as ue}from"./chunk-3ATCVAOK.js";import{a as ct}from"./chunk-IJ4W3HF3.js";import{a as rt,b as at}from"./chunk-6FVKRUEV.js";import{a as ce}from"./chunk-G7X4EVRE.js";import"./chunk-NNCUQXKK.js";import{b as Ke}from"./chunk-ZQTNUJOC.js";import{a as Ze,b as Je}from"./chunk-GBIN2JLF.js";import"./chunk-DFIFBKEC.js";import{a as tt}from"./chunk-GIG62N6P.js";import{e as Xe}from"./chunk-P4HTJB2O.js";import"./chunk-N6LUYI7A.js";import{a as Ye}from"./chunk-UJ4J3LTJ.js";import{$ as Z,$a as Oe,$b as G,Aa as T,Ba as r,Bb as me,Bc as Le,Ca as a,Cb as Se,Cc as ze,D as xe,Da as c,Ea as l,Eb as P,H as _,Hb as we,Ia as ve,Id as je,J as M,Ja as be,K as v,N as Pe,Na as S,Ob as N,Oc as X,Pa as y,Qc as ee,Ra as s,Rb as ke,Sb as Ee,W as Y,Wb as Ie,Yb as J,Z as A,Zc as Ve,_ as L,_c as Fe,a as Ce,ac as Re,b as fe,bc as Ae,be as re,cb as f,da as n,db as I,dd as Ne,de as Ge,eb as F,gd as Ue,ha as Me,he as qe,i as he,ja as h,m as se,ma as E,mc as K,md as $e,oa as de,p as H,pb as Te,qb as x,qc as Be,rb as D,rd as He,sb as ye,sd as te,ta as j,tc as U,uc as W,ud as ie,va as d,vc as Q,vd as ne,wa as m,wb as u,wd as oe,xa as z,xb as C,ya as V,yb as w,za as O,zc as De}from"./chunk-QN3WJWZU.js";function Rt(t,p){if(t&1){let e=S();a(0,"button",11),y("click",function(){M(e);let o=s();return v(o.slideLeft())}),f(1,"<"),c()}}function At(t,p){if(t&1){let e=S();a(0,"button",12),y("click",function(){M(e);let o=s();return v(o.slideRight())}),f(1,">"),c()}}function Bt(t,p){if(t&1&&(l(0,"app-button",9),u(1,"translate"),u(2,"uppercase")),t&2){let e=s();r("label",C(2,4,C(1,2,"PRODUCT.SLIDER.BUY"))),j("data-widget-ean",e.products()[e.currentIndex].gtin)}}var _t=(()=>{class t{constructor(){this.products=P([]),this.isClicToBuyAllowed=P(!1),this.currentIndex=0}slideLeft(){if(this.products()[this.currentIndex-1]){this.currentIndex=this.currentIndex-1;return}this.currentIndex=this.products().length-1}slideRight(){if(this.products()[this.currentIndex+1]){this.currentIndex=this.currentIndex+1;return}this.currentIndex=0}getProductUrl(){return this.products()[this.currentIndex].url}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-products-associate-slider"]],inputs:{products:[1,"products"],isClicToBuyAllowed:[1,"isClicToBuyAllowed"]},decls:17,vars:15,consts:[[1,"wrapper","som-main-back"],[1,"slider-container"],[1,"arrow","left"],[1,"products"],[1,"product"],["loading","lazy","width","128","height","128","onerror","this.src='/assets/images/placeholder.png';this.onerror='';",3,"src"],[1,"title"],[1,"arrow","right"],[1,"actions"],["buttonClass","secondary","icon","som_location","data-widget-element","",3,"label"],["buttonClass","tertiary-reverse","icon","som_square",3,"link","label"],[1,"arrow","left",3,"click"],[1,"arrow","right",3,"click"]],template:function(i,o){i&1&&(a(0,"div",0)(1,"h3"),f(2),u(3,"translate"),c(),a(4,"div",1),d(5,Rt,2,0,"button",2),a(6,"div",3)(7,"div",4),l(8,"img",5),a(9,"span",6),f(10),c()()(),d(11,At,2,0,"button",7),c(),a(12,"div",8),d(13,Bt,3,6,"app-button",9),l(14,"app-button",10),u(15,"translate"),u(16,"uppercase"),c()()),i&2&&(n(2),I(C(3,9,"RECIPE.PRODUCT_ASSOCIATE")),n(3),m(o.products().length>1?5:-1),n(3),r("src",o.products()[o.currentIndex].productMainPicture.image.uri.original,L),j("alt",o.products()[o.currentIndex].name),n(2),I(o.products()[o.currentIndex].name),n(),m(o.products().length>1?11:-1),n(2),m(o.isClicToBuyAllowed()?13:-1),n(),r("link",o.getProductUrl())("label",C(16,13,C(15,11,"PRODUCT.SLIDER.SHEET"))))},dependencies:[re,Q,J,W],styles:['[_ngcontent-%COMP%]:root{--color-green-dark: #003d21;--color-green-light: #14b072;--color-yellow: #f7cf00}.wrapper[_ngcontent-%COMP%]{padding:1.5rem;border-radius:16px;background-color:#f0f9f4}.wrapper[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#000;text-align:center;font-family:"Bree Serif",sans-serif;font-size:1.25rem}.slider-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;row-gap:1.25rem;margin:1rem 0}.slider-container[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{background:none;border:none;color:#008732;font-size:2rem;cursor:pointer}img[_ngcontent-%COMP%]{max-width:128px;display:block;margin:auto}.products[_ngcontent-%COMP%]{flex:1}.products[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin:.25rem 0;color:#008732;font-family:"Bree Serif",sans-serif;font-weight:600;text-align:center;display:block;font-size:1.5rem}.actions[_ngcontent-%COMP%]{margin:auto;width:70%}app-button[_ngcontent-%COMP%]{display:block;margin:1rem 0}app-button[_ngcontent-%COMP%]:last-child{margin:0}@media screen and (max-width:550px){.actions[_ngcontent-%COMP%]{margin:auto;width:100%}}']})}}return t})();
1var Ct=(()=>{class t{transform(e,i){return i&&(e=e.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+i+")(?![^<>]*>)(?![^&;]+;)","gi"),'<span class="highlight">$1</span>')),e.split(`
2`).join("<br><br>")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=E({name:"toHTML",type:t,pure:!0})}}return t})();var pe=()=>({width:"100%"}),Dt=()=>({height:"55px",width:"100%"}),Lt=()=>({height:"40px",width:"100%",marginTop:"1rem"}),ft=()=>[],zt=()=>({width:"100%",marginTop:"1rem"}),Vt=()=>({width:"48px",height:"48px"}),Ft=()=>({width:"100%",marginBottom:"0"}),Nt=()=>({width:"128px",marginBottom:"1rem"});function Ut(t,p){t&1&&(a(0,"div",11)(1,"div",17),l(2,"ngx-skeleton-loader",18),c(),a(3,"div",19),l(4,"ngx-skeleton-loader",20),c()()),t&2&&(n(2),r("theme",x(2,Vt)),n(2),r("theme",x(3,Ft)))}function $t(t,p){t&1&&(a(0,"div",16),l(1,"ngx-skeleton-loader",9)(2,"ngx-skeleton-loader",6),c()),t&2&&(n(),r("theme",x(2,Nt)),n(),r("theme",x(3,pe)))}var ht=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-recipe-skeleton"]],decls:21,vars:14,consts:[[1,"recipe-skeleton"],[1,"som-bloc","mt-c-xl"],[1,"header"],[1,"image"],["count","1","appearance","line",1,"image",3,"theme"],[1,"text"],["count","3","appearance","line",1,"title",3,"theme"],[1,"mt-c-lg"],["count","6","appearance","line",1,"title",3,"theme"],["count","1","appearance","line",1,"title",3,"theme"],[1,"legend-section","mt-c-md"],[1,"legend"],[1,"content-section","mt-c-xl"],[1,"ingredients-section"],["count","2","appearance","line",1,"title",3,"theme"],[1,"steps-section"],[1,"step","mb-c-lg"],[1,"legend-icon"],["count","1","appearance","circle",3,"theme"],[1,"legend-text"],["count","1","appearance","line",3,"theme"]],template:function(i,o){i&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),l(4,"ngx-skeleton-loader",4),c(),a(5,"div",5),l(6,"ngx-skeleton-loader",6),a(7,"div",7),l(8,"ngx-skeleton-loader",8),c(),a(9,"div",7),l(10,"ngx-skeleton-loader",9),c()()(),a(11,"div",10),O(12,Ut,5,4,"div",11,z),c(),a(14,"div",12)(15,"div",13),l(16,"ngx-skeleton-loader",14)(17,"ngx-skeleton-loader",8),c(),a(18,"div",15),O(19,$t,3,4,"div",16,z),c()()()()),i&2&&(n(4),r("theme",x(6,pe)),n(2),r("theme",x(7,Dt)),n(2),r("theme",x(8,pe)),n(2),r("theme",x(9,Lt)),n(2),T(x(10,ft).constructor(5)),n(4),r("theme",x(11,pe)),n(),r("theme",x(12,zt)),n(2),T(x(13,ft).constructor(6)))},dependencies:[at,rt],styles:["[_ngcontent-%COMP%]:root{--color-green-dark: #003d21;--color-green-light: #14b072;--color-yellow: #f7cf00}.recipe-skeleton[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{display:flex;gap:20px}.recipe-skeleton[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{width:50%}.recipe-skeleton[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]     .skeleton-loader{height:532px}.recipe-skeleton[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{width:50%}.recipe-skeleton[_ngcontent-%COMP%]   .legend-section[_ngcontent-%COMP%]{display:flex;height:72px;justify-content:space-between;gap:1rem}.recipe-skeleton[_ngcontent-%COMP%]   .legend-section[_ngcontent-%COMP%]   .legend[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1}.recipe-skeleton[_ngcontent-%COMP%]   .legend-section[_ngcontent-%COMP%]   .legend-text[_ngcontent-%COMP%]{flex:1}.recipe-skeleton[_ngcontent-%COMP%]   .content-section[_ngcontent-%COMP%]{display:flex;gap:1rem}.recipe-skeleton[_ngcontent-%COMP%]   .content-section[_ngcontent-%COMP%]   .ingredients-section[_ngcontent-%COMP%]{width:25%}.recipe-skeleton[_ngcontent-%COMP%]   .content-section[_ngcontent-%COMP%]   .steps-section[_ngcontent-%COMP%]{flex:1}@media screen and (max-width:550px){.recipe-skeleton[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{flex-direction:column}.recipe-skeleton[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%], .recipe-skeleton[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{width:100%}.recipe-skeleton[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]     .skeleton-loader{height:350px}.recipe-skeleton[_ngcontent-%COMP%]   .content-section[_ngcontent-%COMP%]{flex-direction:column}.recipe-skeleton[_ngcontent-%COMP%]   .content-section[_ngcontent-%COMP%]   .ingredients-section[_ngcontent-%COMP%]{width:100%}.recipe-skeleton[_ngcontent-%COMP%]   .legend-section[_ngcontent-%COMP%]   .legend[_ngcontent-%COMP%]{flex-direction:column}.recipe-skeleton[_ngcontent-%COMP%]   .legend-section[_ngcontent-%COMP%]   .legend[_ngcontent-%COMP%]   .legend-text[_ngcontent-%COMP%]{width:100%}}"]})}}return t})();var Ht=t=>({"som-main-back":t}),jt=(t,p)=>p.source;function Gt(t,p){if(t&1){let e=S();a(0,"span",5),y("click",function(){M(e);let o=s();return v(o.navigate())}),l(1,"img",6),c()}}function qt(t,p){if(t&1&&(a(0,"div",3),l(1,"img",7)(2,"som-ai-disclosure",8),c()),t&2){let e,i,o=s();n(),r("src",(e=o.mediaItems()[o.currentIndex()])==null?null:e.source,L)("alt",(i=o.mediaItems()[o.currentIndex()])==null?null:i.alt),n(),r("entries",o.aiDisclosureEntries())}}function Yt(t,p){if(t&1&&(a(0,"som-agree-consent",4),l(1,"iframe",9),c()),t&2){let e,i=s();r("consentVendor","c:youtube-r6L8RmVK"),n(),r("src",i.getVideoUrl((e=i.mediaItems()[i.currentIndex()])==null?null:e.source),Z),j("title","Video : "+i.recipe().name)}}function Zt(t,p){if(t&1){let e=S();a(0,"div",14),y("click",function(){let o=M(e).$index,g=s(2);return v(g.currentIndex.set(o))}),c()}if(t&2){let e=p.$index,i=s(2);r("ngClass",D(1,Ht,i.currentIndex()===e))}}function Jt(t,p){if(t&1){let e=S();a(0,"button",10),y("click",function(){M(e);let o=s();return v(o.prev())}),f(1," < "),c(),a(2,"button",11),y("click",function(){M(e);let o=s();return v(o.next())}),f(3," > "),c(),a(4,"div",12),O(5,Zt,1,3,"div",13,jt),c()}if(t&2){let e=s();r("disabled",e.currentIndex()===0),n(2),r("disabled",e.currentIndex()===e.mediaItems().length-1),n(3),T(e.mediaItems())}}var xt=(()=>{class t{constructor(){this.sanitizer=_(K),this.platformId=_(Y),this.recipe=P.required(),this.isPinterestVisible=P(!0),this.mediaItems=me(()=>this._buildSlider(this.recipe())),this.aiDisclosureEntries=me(()=>ut(gt,{imageUrlAI:this.recipe().imageUrlAI}).map(e=>({labelKey:e}))),this.currentIndex=Se({source:this.mediaItems,computation:()=>0})}_buildSlider(e){let i=[];return e.recipeMainPicture?.image.uri?.original&&i.push({type:"image",source:e.recipeMainPicture.image.uri.original,alt:e.recipeMainPicture.alt_image}),e.recipeYoutubeCode?.video&&i.push({type:"video",source:this.recipe().recipeYoutubeCode.video}),i}prev(){this.currentIndex()>0&&this.currentIndex.update(e=>e-1)}next(){this.currentIndex()<this.mediaItems().length-1&&this.currentIndex.update(e=>e+1)}getVideoUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(`https://www.youtube.com/embed/${e}`)}navigate(){if(G(this.platformId)){let i=`https://www.pinterest.com/pin/create/button/?url=${window.location.href}&media=${this.recipe().recipeMainPicture.image.uri.original}
2&description=${this.recipe().name}`;window.open(i,"_blank")}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-media-slider"]],inputs:{recipe:[1,"recipe"],isPinterestVisible:[1,"isPinterestVisible"]},decls:6,vars:4,consts:[[1,"slider-container"],[1,"media-wrapper"],["data-pin-do","buttonPin","data-pin-round","true",1,"pinterest"],[1,"media-image-slide"],[1,"agree-consent-container",3,"consentVendor"],["data-pin-do","buttonPin","data-pin-round","true",1,"pinterest",3,"click"],["width","16","height","16","alt","Pinterest","src","//assets.pinterest.com/images/pidgets/pinit_fg_en_round_red_16.png"],["width","512","height","507","fetchpriority","high","decoding","async","onerror","this.src='/assets/images/placeholder.png';this.onerror='';",1,"media-item",3,"src","alt"],["placement","right",3,"entries"],["view","","frameborder","0","allowfullscreen","",1,"media-item",3,"src"],[1,"slide-button","left","som-main-color","som-main-border-color",3,"click","disabled"],[1,"slide-button","right","som-main-color","som-main-border-color",3,"click","disabled"],[1,"bottom-navigation"],[1,"nav-item",3,"ngClass"],[1,"nav-item",3,"click","ngClass"]],template:function(i,o){if(i&1&&(a(0,"div",0)(1,"div",1),d(2,Gt,2,0,"span",2),d(3,qt,3,3,"div",3),d(4,Yt,2,3,"som-agree-consent",4),c(),d(5,Jt,7,2),c()),i&2){let g,R;n(2),m(o.isPinterestVisible()&&o.recipe().name&&o.recipe().link?2:-1),n(),m(((g=o.mediaItems()[o.currentIndex()])==null?null:g.type)==="image"?3:-1),n(),m(((R=o.mediaItems()[o.currentIndex()])==null?null:R.type)==="video"?4:-1),n(),m(o.mediaItems().length>1?5:-1)}},dependencies:[$,mt,N],styles:["[_ngcontent-%COMP%]:root{--color-green-dark: #003d21;--color-green-light: #14b072;--color-yellow: #f7cf00}.slider-container[_ngcontent-%COMP%]{position:relative;margin:auto;text-align:center;height:100%}.media-wrapper[_ngcontent-%COMP%]{display:flex;height:100%;position:relative}.agree-consent-container[_ngcontent-%COMP%]{display:flex;width:100%;overflow:hidden}.media-item[_ngcontent-%COMP%]{max-width:100%;max-height:100%;flex:1;object-fit:cover;aspect-ratio:700/700;border-radius:1rem}.media-image-slide[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-width:0;gap:.5rem}.media-image-slide[_ngcontent-%COMP%] > .media-item[_ngcontent-%COMP%]{flex:0 1 auto;width:100%}.bottom-navigation[_ngcontent-%COMP%]{position:absolute;right:0;left:0;justify-self:center;bottom:1rem;display:flex;gap:1rem;background:#fff;opacity:.75;border-radius:4px;padding:.5rem 1rem}.bottom-navigation[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]{width:.5rem;height:.5rem;border:2px solid;border-radius:100%}.bottom-navigation[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]:not(.active){cursor:pointer}.slide-button[_ngcontent-%COMP%]{position:absolute;top:45%;cursor:pointer;background:#fff;height:2.5rem;width:2.5rem;font-size:2rem;display:flex;align-items:center;justify-content:center;border:none;border-radius:3rem;opacity:.75}.slide-button[_ngcontent-%COMP%]:hover{opacity:1}.slide-button.right[_ngcontent-%COMP%]{right:1rem}.slide-button.left[_ngcontent-%COMP%]{left:1rem}.pinterest[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:1rem;left:1rem}"]})}}return t})();function Kt(t,p){if(t&1&&l(0,"app-tag",0),t&2){let e=s();r("label",`${e.recipeTimingPreparation()} mn`)("type",e.color)("href",e.href())}}var Pt=(()=>{class t{constructor(){this.recipeTimingPreparation=P.required(),this.href=P(void 0)}ngOnInit(){this.color=this.defineBackgroundColor()}defineBackgroundColor(){return this.recipeTimingPreparation()<15?"green":this.recipeTimingPreparation()>=15&&this.recipeTimingPreparation()<45?"orange":"red"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-tag-preparation"]],inputs:{recipeTimingPreparation:[1,"recipeTimingPreparation"],href:[1,"href"]},decls:1,vars:1,consts:[[3,"label","type","href"]],template:function(i,o){i&1&&d(0,Kt,1,3,"app-tag",0),i&2&&m(o.recipeTimingPreparation()?0:-1)},dependencies:[ce],encapsulation:2})}}return t})();var Wt=()=>[],Qt=t=>({filter:t});function Xt(t,p){if(t&1){let e=S();a(0,"a",1)(1,"article",2),y("mouseenter",function(){M(e);let o=s();return v(o.revertCard(o.tile))})("mouseleave",function(){M(e);let o=s();return v(o.revertCard(o.tile))}
2),a(2,"div",3)(3,"h3",4),f(4),c(),l(5,"div",5)(6,"img",6),c(),a(7,"div",7),l(8,"div",8),c()()()}if(t&2){let e=s();Oe("disabled",!(e.tile!=null&&e.tile.url)),r("routerLink",(e.tile==null?null:e.tile.url)||x(10,Wt)),n(),r("ngClass",D(11,Qt,!e.tile.backText))("@cardFlip",e.state),n(3),I(e.tile.name),n(),r("innerHTML",e.title,A),n(),r("src",e.tile.imageUrl,L)("alt",e.tile.alt),n(2),r("innerHTML",e.tile.backText,A)}}var Mt=(()=>{class t{constructor(){this.state="flipped",this.isAnimating=!1,this.tile=P.required()}revertCard(e){return he(this,null,function*(){this.isAnimating||!e.backText||(this.isAnimating=!0,this.state=this.state==="default"?"flipped":"default",clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isAnimating=!1},400))})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=h({type:t,selectors:[["tile"]],inputs:{tile:[1,"tile"]},decls:1,vars:1,consts:[[3,"routerLink","disabled"],[3,"routerLink"],[1,"tile",3,"mouseenter","mouseleave","ngClass"],[1,"face","front"],[1,"tile-title"],[1,"title","som-font-bold",3,"innerHTML"],[3,"src","alt"],[1,"face","back","som-font-regular"],[1,"content",3,"innerHTML"]],template:function(i,o){i&1&&d(0,Xt,9,13,"a",0),i&2&&m(o.tile?0:-1)},dependencies:[ze,N],styles:["[_ngcontent-%COMP%]:root{--color-green-dark: #003d21;--color-green-light: #14b072;--color-yellow: #f7cf00}[_nghost-%COMP%]{display:block}.tile[_ngcontent-%COMP%]{height:100%;width:100%;max-height:260px;transform-style:preserve-3d}a[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.face[_ngcontent-%COMP%]{display:block;position:absolute;width:100%;height:100%;border-radius:inherit;backface-visibility:hidden;background:var(--color-green-dark)}.front[_ngcontent-%COMP%]{transform:rotateY(180deg)}.back[_ngcontent-%COMP%]{display:flex}.content[_ngcontent-%COMP%]{padding:1rem;color:#fff;font-size:1rem;text-shadow:.5px .5px 4px #008732,.5px .5px 4px #008732;margin:auto}.filter[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%]{filter:brightness(.75)}.tile-title[_ngcontent-%COMP%]{position:absolute;z-index:2;bottom:1rem;left:1rem;text-shadow:.5px .5px 4px #008732,.5px .5px 4px #008732;font-family:var(--font-family-bold);color:#fff;font-size:1.25rem}img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;transition:filter .15s ease-in-out}@media screen and (max-width:1024px){.tile-title[_ngcontent-%COMP%]{font-size:1rem}}"],data:{animation:[He("cardFlip",[ne("default",ie({transform:"none"})),ne("flipped",ie({transform:"rotateY(180deg)"})),ne("matched",ie({visibility:"false",transform:"scale(0.05)",opacity:0})),oe("default => flipped",[te("400ms")]),oe("flipped => default",[te("400ms")]),oe("* => matched",[te("400ms")])])]}})}}return t})();var vt=(()=>{class t{constructor(){this.apiUrl=ee.url,this.translateService=_(U),this.recipeService=_(ae)}transform(e){if(!e||!e.type)return null;switch(e.type){case"tile_magazine_article":return se(this._buildMagazineArticleTile(e));case"tile_corporate_article":return se(this._buildCorporateArticleTile(e));case"tile_recipe":return this._buildRecipeTile(e);default:return}}_buildRecipeTile(e){let{currentLang:i}=this.translateService,o=e.recipe;return this.recipeService.fetchRecipe(o).pipe(H(g=>{let R=g.items[o.toLowerCase()]||g.items[o.toUpperCase()];if(R){let B=new q(R,i).adapt();return{color:null,name:B.name,url:B.recipeUrl,imageUrl:B.imageUrl?.image.uri?.original,alt:B.recipeMainPicture?.alt_image,backText:null}}return{color:"",name:"",url:"",imageUrl:"",alt:"",backText:""}}))}_buildMagazineArticleTile(e){let i=`${this.translateService.instant("ROUTES.magazine")}/${this.translateService.instant("ROUTES.article")}`;return{color:e.color,name:e.magazine_article?.title[0]?.value,url:`${i}${e.magazine_article?.path[0]?.alias}/${e.magazine_article?.nid[0]?.value}/${e.magazine_article.duplication_id?.[0]?.value}`,imageUrl:`${this.apiUrl}${e.magazine_article?.cover[0]?.uri?.ratio_416_520}`,alt:e.magazine_article?.title[0].value,backText:e.text}}_buildCorporateArticleTile(e){return{color:e.color,name:e.corporate_article?.title[0]?.value,url:`${e.corporate_article?.path[0]?.alias}/${e.corporate_article?.nid[0]?.value}/${e.corporate_article.duplication_id?.[0]?.value}`,imageUrl:`${this.apiUrl}${e.corporate_article?.cover[0]?.uri?.ratio_416_520}`,alt:e.corporate_article?.title[0].value,backText:e.text}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=E({name:"tileAdapter",type:t,pure:!0})}}return t})();function ei(t,p){if(t&1&&(a(0,"h2",2),f(1),c()),t&2){let e=s(2);n(),I(e.section().title)}}function ti(t,p){if(t&1&&(a(0,"h3",2),f(1),c()),t&2){let e=s(2);n(),I(e.section().title)}}function ii(t,p){if(t&1&&(a(0,"h4",2),f(1),c()),t&2){let e=s(2);n(),I(e.section().title)}}function ni(t,p){if(t&1&&(a(0,"div",2),f(1),c()),t&2){let e=s(2);n(),I(e.section().title)}}function oi(t,p){if(t&1&&(d(0,ei,2,1,"h2",2),d(1,ti,2,1,"h3",2),d(2,ii,2,1,"h4",2),d(3,ni,2,1,"div",2)),t&2){let e=s();m(e.seoTitle()==="H2"?0:-1),n(),m(e.seoTitle()==="H3"?1:-1),n(),m(e.seoTitle()==="H4"?2:-1),n(),m(e.seoTitle()?-1:3)}}function ri(t,p){if(t&1&&(l(0,"tile",1),u(1,"tileAdapter"),u(2,"async")),t&2){let e=p.$implicit;r("tile",C(2,3,C(1,1,e)))}}var bt=(()=>{class t{constructor(){this.section=P.required(),this.seoTitle=P(void 0)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-section-tiles"]],inputs:{section:[1,"section"],seoTitle:[1,"seoTitle"]},decls:4,vars:1,consts:[[1,"tiles"],[3,"tile"],[1,"section-title"]],template:function(i,o){if(i&1&&(d(0,oi,4,4),a(1,"div",0),O(2,ri,3,5,"tile",1,V),c()),i&2){let g;m((g=o.section().title)!=null&&g.length?0:-1),n(2),T(o.section().tiles)}},dependencies:[Mt,Ie,vt],styles:["[_ngcontent-%COMP%]:root{--color-green-dark: #003d21;--color-green-light: #14b072;--color-yellow: #f7cf00}:[_nghost-%COMP%]{display:block}.tiles[_ngcontent-%COMP%]{width:100%;display:grid;grid-auto-rows:260px;grid-template-columns:repeat(3,1fr);gap:1rem}.section-title[_ngcontent-%COMP%]{font-size:2rem;font-family:var(--font-family-bold);color:var(--color-green-dark);font-weight:700;line-height:2rem;margin-bottom:2rem}@media screen and (max-width:1024px){.tiles[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);grid-auto-rows:140px}}"]})}}return t})();var Ot=(()=>{class t{constructor(){this.prediggo=_(Qe)}recipeToTile(e){let i=`${e.recipe}`,o=e;return this.prediggo.itemsInfo([i]).pipe(H(g=>{if(g&&g.items&&g.items[i])return this.prediggo.prediggoItemToRecipePage(g.items[i])})).subscribe(g=>(o.recipePage=g,g)),o}productToTile(e){let i=`${e.product}`,o=e;return this.prediggo.itemsInfo([i]).pipe(H(g=>{if(g&&g.items&&g.items[i])return this.prediggo.prediggoItemToProductItem(g.items[i])})).subscribe(g=>(o.productPage=g,g)),o}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Tt=(()=>{class t{transform(e,i){if(e)return{background:e.cover,smallbackground:null,iconName:i?"play":"",uppertitle:e.tag&&e.tag.name&&e.tag.name[0]&&e.tag.name[0].value?e.tag.name[0].value:e.tag?e.tag.name:"",title:e.title,link:e.link}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=E({name:"bannerPrediggo",type:t,pure:!0})}}return t})();var yt=(()=>{class t{transform(e,i){if(e)return{background:e.background,smallbackground:e.smallbackground,iconName:i?"play":"",uppertitle:e.tag&&e.tag.name&&e.tag.name[0]&&e.tag.name[0].value?e.tag.name[0].value:e.tag?e.tag.name:"",title:e.title,link:e.link}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=E({name:"bannerFaq",type:t,pure:!0})}}return t})();var St=(()=>{class t{constructor(){this.translate=_(U)}transform(e){let i=ee.url,o=["/",this.translate.instant("ROUTES.magazine"),this.translate.instant("ROUTES.article"),e.path?.[0]?.alias,e.nid?.[0]?.value,e.duplication_id?.[0]?.value].join("/");if(e)return{backgroundImage:i+e.cover?.[0]?.uri?.original,upperTitle:e.tag?.name?.[0]?.value||e?.tag?.name||"",title:e.title?.[0]?.value,link:o}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=E({name:"bannerMagazineArticle",type:t,pure:!0})}}return t})();function ai(t,p){if(t&1&&l(0,"sf-banner",3),t&2){let e=s(2);r("banner",e.tile().corporate_article)}}function ci(t,p){if(t&1&&(l(0,"sf-banner",3),u(1,"bannerFaq")),t&2){let e=s(2);r("banner",w(1,1,e.tile().faq,e.tile().show_video_icon))}}function pi(t,p){if(t&1&&(l(0,"sf-banner",3),u(1,"bannerPrediggo")),t&2){let e=s(2);r("banner",w(1,1,e.tile().productPage,e.tile().show_video_icon))}}function li(t,p){if(t&1&&(l(0,"sf-banner",3),u(1,"bannerPrediggo")),t&2){let e=s(2);r("banner",w(1,1,e.tile().recipePage,e.tile().show_video_icon))}}function si(t,p){if(t&1&&l(0,"sf-banner",3),t&2){let e=s(2);r("banner",e.tile().menu_article)}}function di(t,p){if(t&1&&(ve(0,0),de(1,ai,1,1,"sf-banner",1)(2,ci,2,4,"sf-banner",1)(3,pi,2,4,"sf-banner",1)(4,li,2,4,"sf-banner",1),l(5,"app-banner",2),u(6,"bannerMagazineArticle"),de(7,si,1,1,"sf-banner",1),be()),t&2){let e=s();r("ngSwitch",e.tile().type),n(),r("ngSwitchCase","banner_corporate_article"),n(),r("ngSwitchCase","banner_faq"),n(),r("ngSwitchCase","banner_product"),n(),r("ngSwitchCase","banner_recipe"),n(),r("banner",C(6,7,e.tile().magazine_article)),n(2),r("ngSwitchCase","banner_menu_article")}}var wt=(()=>{class t{constructor(){this.tilesService=_(Ot),this.tile=we.required()}ngOnInit(){if(this.tile()&&(this.tile().recipe&&this.tile.set(this.tilesService.recipeToTile(this.tile())),this.tile().product&&this.tile.set(this.tilesService.productToTile(this.tile())),this.tile().generic_page)){let e=new Ne;e.url=this.tile().generic_page.url,this.tile().generic_page.link=e}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=h({type:t,selectors:[["som-banner-tile"]],inputs:{tile:[1,"tile"]},outputs:{tile:"tileChange"},decls:1,vars:1,consts:[[3,"ngSwitch"],["ngSkipHydration","","class","som-tile-banner","seoTitle","H2","showCTA","true",3,"banner",4,"ngSwitchCase"],["seoTitle","H2",3,"banner"],["ngSkipHydration","","seoTitle","H2","showCTA","true",1,"som-tile-banner",3,"banner"]],template:function(i,o){i&1&&d(0,di,8,9,"ng-container",0),i&2&&m(o.tile()?0:-1)},dependencies:[ke,Ee,Fe,lt,Tt,yt,St],styles:["[_ngcontent-%COMP%]:root{--color-green-dark: #003d21;--color-green-light: #14b072;--color-yellow: #f7cf00}.som-tile-banner[_ngcontent-%COMP%]{height:450px}.som-tile-banner[_ngcontent-%COMP%]  .sf-banner-icon{cursor:initial;height:64px;width:64px}@media screen and (max-width:550px){.som-tile-banner[_ngcontent-%COMP%]{height:385px}.som-article-extra-banner[_ngcontent-%COMP%]  sf-banner{height:250px}.som-article-extra-banner[_ngcontent-%COMP%]  .sf-banner-icon{height:34px;width:34px}}"]})}}return t})();function mi(t,p){if(t&1&&l(0,"app-section-tiles",0),t&2){let e=s().$implicit;r("section",e)}}function gi(t,p){if(t&1&&(a(0,"div",1),l(1,"som-banner-tile",3),c()),t&2){let e=s().$implicit;n(),r("tile",e)}
2}function ui(t,p){if(t&1&&(a(0,"div",2),l(1,"sf-section-text",4),c()),t&2){let e=s().$implicit;n(),r("seoTitle","H3")("section",e)}}function _i(t,p){if(t&1&&(a(0,"div",2),l(1,"som-section-image",5),c()),t&2){let e=s().$implicit;n(),r("seoTitle","H3")("section",e)}}function Ci(t,p){if(t&1&&(a(0,"div",2),l(1,"sf-section-slider",6),c()),t&2){let e=s().$implicit,i=s();n(),r("isPinterestVisible",i.isPinterestVisible)("section",e)}}function fi(t,p){if(t&1&&(a(0,"div",2)(1,"som-agree-consent",7),l(2,"sf-section-video",8),c()()),t&2){let e=s().$implicit;n(),r("consentVendor","c:youtube-r6L8RmVK"),n(),r("section",e)("ngClass",e.position?"som-video-"+e.position:"som-video-center")}}function hi(t,p){if(t&1&&d(0,mi,1,1,"app-section-tiles",0)(1,gi,2,1,"div",1)(2,ui,2,2,"div",2)(3,_i,2,2,"div",2)(4,Ci,2,2,"div",2)(5,fi,3,3,"div",2),t&2){let e,i=p.$implicit;m((e=i==null?null:i.sfType)==="SomSectionTiles"?0:e==="SomTile"?1:e==="SfSectionText"?2:e==="SfSectionImage"?3:e==="SfSectionSlider"?4:e==="SfSectionVideo"?5:-1)}}var kt=(()=>{class t{constructor(){this.siteInfo=_(X),this.article=P(void 0),this.isPinterestVisible=!0}ngOnInit(){let{country:e}=this.siteInfo?.lang||null;this.isPinterestVisible=Xe(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-random-article"]],inputs:{article:[1,"article"]},decls:2,vars:0,consts:[["seoTitle","H3",3,"section"],[1,"som-article-extra-banner"],[1,"random-bloc"],[3,"tile"],[1,"random-bloc",3,"seoTitle","section"],["ngSkipHydration","",1,"detail-text",3,"seoTitle","section"],[3,"isPinterestVisible","section"],[3,"consentVendor"],["view","",3,"section","ngClass"]],template:function(i,o){if(i&1&&O(0,hi,6,1,null,null,V),i&2){let g;T((g=o.article())==null?null:g.content)}},dependencies:[bt,wt,$e,it,nt,$,qe,N],styles:["[_ngcontent-%COMP%]:root{--color-green-dark: #003d21;--color-green-light: #14b072;--color-yellow: #f7cf00}.random-bloc[_ngcontent-%COMP%]{margin-bottom:2.5rem}.random-bloc[_ngcontent-%COMP%]   .detail-text[_ngcontent-%COMP%]   .sf-section-text-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#000}"]})}}return t})();var xi=(t,p)=>({title:t,imgSrc:"/assets/images/header/recipe veg salad.jpg",imgAlt:p,extented:!1}),_e=t=>({value:t}),Et=()=>({value:"1"});function Pi(t,p){t&1&&l(0,"app-recipe-skeleton")}function Mi(t,p){if(t&1&&(a(0,"h2",9),f(1),c()),t&2){let e=s(2);n(),F(" ",e.recipe.recipeName||e.recipe.name," ")}}function vi(t,p){if(t&1&&l(0,"app-tag-difficulty",12),t&2){let e=s(2);r("difficulty",e.recipe.recipeDifficulty)}}function bi(t,p){if(t&1&&(l(0,"app-tag",13),u(1,"translate")),t&2){let e=s(2);r("label",w(1,1,"RECIPE.PEOPLE",D(4,_e,e.recipe.recipeDishNumber)))}}function Oi(t,p){if(t&1&&l(0,"app-tag-preparation",14),t&2){let e=s(2);r("recipeTimingPreparation",e.recipe.recipeTimingPreparation)}}function Ti(t,p){t&1&&(l(0,"app-tag",15),u(1,"translate")),t&2&&r("label",C(1,1,"RECIPE.VEGGIE"))}function yi(t,p){t&1&&(l(0,"app-tag",15),u(1,"translate")),t&2&&r("label",C(1,1,"RECIPE.VEGAN"))}function Si(t,p){if(t&1&&(l(0,"li",33),u(1,"toHTML")),t&2){let e=p.$implicit;r("innerHTML",w(1,1,e,"bonduelle"),A)}}function wi(t,p){if(t&1&&(a(0,"ul",23),O(1,Si,2,4,"li",33,z),c()),t&2){let e=s(2);n(),T(e.ingredients)}}function ki(t,p){if(t&1&&(l(0,"li",33),u(1,"toHTML")),t&2){let e=p.$implicit;r("innerHTML",w(1,1,e,"bonduelle"),A)}}function Ei(t,p){if(t&1&&(a(0,"ul",23),O(1,ki,2,4,"li",33,z),c()),t&2){let e=s(2);n(),T(e.ingredients)}}function Ii(t,p){if(t&1&&(a(0,"div",25),l(1,"app-products-associate-slider",34),c()),t&2){let e=s(2);n(),r("products",e.productsAsso)("isClicToBuyAllowed",e.clic2buy)}}function Ri(t,p){if(t&1&&(a(0,"div",36),f(1),c()),t&2){let e=s().$index;n(),F(" ",e+1," ")}}function Ai(t,p){if(t&1&&(a(0,"li",36),d(1,Ri,2,1,"div",36),l(2,"div",37),c()),t&2){let e=p.$implicit;n(),m(e?1:-1),n(),r("innerHTML",e,A)}}function Bi(t,p){if(t&1&&(a(0,"div",35),f(1),u(2,"translate"),c(),a(3,"ol"),O(4,Ai,3,2,"li",36,V),c()),t&2){let e=s(2);n(),F(" ",C(2,1,"RECIPE.STEP")," "),n(3),T(e.recipe.recipeStep)}}function Di(t,p){if(t&1&&(a(0,"div",28),l(1,"sf-headline",38),u(2,"translate"),l(3,"app-recipes-slider",39),c()),t&2){let e=s(2);n(),r("title",C(2,3,"RECIPE.LET_YOURSELF_SURPRISED")),n(2),r("recipes",e.recipesReco)("withFirstCard",!0)}}function Li(t,p){if(t&1&&l(0,"div",41),t&2){let e=s(3);r("innerHTML",e.recipe.recipeCookTipDescription,A)}}function zi(t,p){if(t&1&&l(0,"sf-image",42),t&2){let e=s(3);
2r("image",e.recipe.recipeCookTipPicture)}}function Vi(t,p){if(t&1&&(a(0,"som-agree-consent",43),l(1,"sf-video",44),c()),t&2){let e=s(3);r("consentVendor","c:youtube-r6L8RmVK"),n(),r("video",e.recipe.recipeCookTipVideo)}}function Fi(t,p){if(t&1&&(a(0,"div",29)(1,"h3",40),f(2),u(3,"translate"),c(),d(4,Li,1,1,"div",41),d(5,zi,1,1,"sf-image",42),d(6,Vi,2,2,"som-agree-consent",43),c()),t&2){let e=s(2);n(2),F(" ",e.recipe.recipeCookTipTitle||C(3,4,"RECIPE.COOK_TIP_TITLE")," "),n(2),m(e.recipe.recipeCookTipDescription?4:-1),n(),m(!(e.recipe.recipeCookTipPicture==null||e.recipe.recipeCookTipPicture.image==null||e.recipe.recipeCookTipPicture.image.uri==null)&&e.recipe.recipeCookTipPicture.image.uri.original?5:-1),n(),m(e.recipe.recipeCookTipVideo!=null&&e.recipe.recipeCookTipVideo.video?6:-1)}}function Ni(t,p){if(t&1&&(a(0,"div",30),l(1,"app-random-article",45),c()),t&2){let e=s(2);n(),r("article",e.recipeArticle)}}function Ui(t,p){if(t&1&&(a(0,"div",31),l(1,"sf-headline",38),u(2,"translate"),l(3,"app-products-suggestions",46),c()),t&2){let e=s(2);n(),r("title",C(2,2,"RECIPE.DISCOVER_ALSO")),n(2),r("products",e.products)}}function $i(t,p){if(t&1){let e=S();a(0,"som-modal",47),y("closeModal",function(){M(e);let o=s(2);return v(o.viewPrintModal=!o.viewPrintModal)}),a(1,"div",48),l(2,"iframe",49),c()()}if(t&2){let e=s(2);r("viewModal",e.viewPrintModal),n(2),r("src",e.recipePdf,Z)}}function Hi(t,p){if(t&1){let e=S();a(0,"div",1)(1,"div",2)(2,"div",3),l(3,"list-header",4),u(4,"translate"),u(5,"uppercase"),u(6,"translate"),u(7,"uppercase"),c(),a(8,"div",5)(9,"div",6),l(10,"app-media-slider",7),c(),a(11,"div",8),d(12,Mi,2,1,"h2",9),l(13,"div",10),a(14,"div",11),d(15,vi,1,1,"app-tag-difficulty",12),d(16,bi,2,6,"app-tag",13),d(17,Oi,1,1,"app-tag-preparation",14),d(18,Ti,2,3,"app-tag",15),d(19,yi,2,3,"app-tag",15),c(),a(20,"div",16)(21,"app-button",17),u(22,"translate"),u(23,"translate"),u(24,"uppercase"),y("buttonClick",function(){M(e);let o=s();return v(o.onPrint(o.recipe))}),c()()()(),a(25,"div",18)(26,"div",19)(27,"div",20)(28,"div",21),f(29),u(30,"translate"),c(),a(31,"sf-expansion-panel",22),u(32,"translate"),u(33,"translate"),d(34,wi,3,0,"ul",23),c(),a(35,"sf-expansion-panel",24),u(36,"translate"),u(37,"translate"),d(38,Ei,3,0,"ul",23),c()(),d(39,Ii,2,2,"div",25),c(),a(40,"div",26)(41,"div",27),d(42,Bi,6,3),c()()()()(),d(43,Di,4,5,"div",28),d(44,Fi,7,6,"div",29),d(45,Ni,2,1,"div",30),d(46,Ui,4,4,"div",31),d(47,$i,3,2,"som-modal",32)}if(t&2){let e=s();n(3),r("data",ye(53,xi,C(5,27,C(4,25,"RECIPE.DISCOVER_RECIPE_IDEAS")),C(7,31,C(6,29,"RECIPE.DISCOVER_RECIPE_IDEAS")))),n(7),r("recipe",e.recipe),n(2),m(e.recipe.recipeName||e.recipe.name?12:-1),n(),r("innerHTML",e.recipe.recipeEditorial,A),n(2),m(e.recipe.recipeDifficulty?15:-1),n(),m(e.recipe.recipeDishNumber>0?16:-1),n(),m(e.recipe.recipeTimingPreparation?17:-1),n(),m(e.recipe.recipeVeggie?18:-1),n(),m(e.recipe.recipeVegan?19:-1),n(2),r("label",e.isLoadingPdf?C(22,33,"FORM.LOADING"):C(24,37,C(23,35,"RECIPE.PRINT_RECIPE")))("disabled",e.isLoadingPdf),n(8),F(" ",C(30,39,"MAGAZINE.RECIPE.INGREDIENTS")," "),n(2),r("title",(e.recipe==null?null:e.recipe.recipeDishNumber)>1?w(32,41,"MAGAZINE.RECIPE.INGREDIENTS_LABEL_DESC",D(56,_e,e.recipe.recipeDishNumber)):w(33,44,"MAGAZINE.RECIPE.INGREDIENTS_LABEL_ONE_DESC",x(58,Et)))("alwaysOpen",!0),n(3),m(e.ingredients.length?34:-1),n(),r("title",(e.recipe==null?null:e.recipe.recipeDishNumber)>1?w(36,47,"MAGAZINE.RECIPE.INGREDIENTS_LABEL",D(59,_e,e.recipe.recipeDishNumber)):w(37,50,"MAGAZINE.RECIPE.INGREDIENTS_LABEL_ONE",x(61,Et)))("alwaysOpen",!0),n(3),m(e.ingredients.length?38:-1),n(),m(e.productsAsso.length?39:-1),n(3),m(e.recipe.recipeStep?42:-1),n(),m(e.recipesReco.length?43:-1),n(),m(!(e.recipe.recipeCookTipPicture==null||e.recipe.recipeCookTipPicture.image==null||e.recipe.recipeCookTipPicture.image.uri==null)&&e.recipe.recipeCookTipPicture.image.uri.original||e.recipe.recipeCookTipVideo!=null&&e.recipe.recipeCookTipVideo.video||e.recipe.recipeCookTipDescription?44:-1),n(),m(e.recipeArticle?45:-1),n(),m(e.products!=null&&e.products.length&&(e.siteInfo==null||e.siteInfo.lang==null?null:e.siteInfo.lang.country)!=="pl"?46:-1),n(),m(e.viewPrintModal?47:-1)}}var Xo=(()=>{class t{constructor(){this.siteInfo=_(X),this.somDocument=_(Pe),this.platformId=_(Y),this.id=P.required(),this.ingredients=[],this.products=[],this.productsAsso=[],this.recipesReco=[],this.clic2buy=!1,this.sliderDisplay="item",this.viewPrintModal=!1,this.isLoadingPdf=!1,this.isPinterestVisible=!0,this.scriptId="json-ld-recipe",this.isLegumiz=!1,this.recipeService=_(ae),this.seoService=_(Je),this.breadcrumbService=_(tt),this.translate=_(U),this.tagManager=_(Ye),this.didomiService=_(ot),this.router=_(Le),this.route=_(De),this.renderer=_(Me),this.sanitize=_(K),this.viewportScroller=_(Ae),this.localUrl=_(ue),this.didomiService.generateClick2BuyScript()}_handleRecipeResponse(e,i){let o=e?.items?.[i.toLowerCase()]||e?.items?.[i.toUpperCase()];if(o?.attributeInfo?.length)this.recipe=new q(o,this.translate.currentLang).adapt(),this.ingredients=this._splitIngredients(this.recipe.recipeIngredientsSummary),this._setSeoMeta(this.recipe),this._buildBreadcrumb(this.recipe.recipeTitle),this.clic2buy=this.isClick2BuyAllowed(),Re(this.platformId)&&this._generateJsonLD(this.recipe),G(this.platformId)&&this.detectC2B(),this.getRecommandedBlocks(this.recipe.id),this.getArticleRecipe(this.recipe.id);else{let g=this.localUrl.transform("/"+this.translate.instant("ROUTES.not-found"));this.router.navigateByUrl(g)}}
2getArticleRecipe(e){this.recipeService.fetchRecipeArticle(e).subscribe({next:i=>{this.recipeArticle=i},error:i=>null})}_splitIngredients(e){return(e?.split(`
3`)??[]).map(i=>i.trim()).filter(i=>i.length>0)}getRecommandedBlocks(e){this.recipeService.fetchPrediggoBlocks(e,this.isLegumiz).subscribe({next:i=>{let o=i.blocks.recommendations,g=o.find(k=>k.blockName==="D\xE9couvrez aussi"),R=o.find(k=>k.blockName==="Laissez vous surprendre"),B=o.find(k=>k.blockName==="Ingr\xE9dients"),le=this.translate.currentLang;this.products=g?.slots?.map(k=>new ge(k.item,le).adapt()[0])||[],this.recipesReco=R?.slots?.map(k=>new q(k.item,le).adapt())||[],this.productsAsso=B?.slots?.map(k=>new ge(k.item,le).adapt()[0])||[],this.pushTagManager(this.recipesReco)}})}_setSeoMeta(e){let i=e.recipeSeoTitle||this.translate.instant("SEO.TITLE.RECIPE",{value:e.recipeTitle}),o=e.recipeSeoDescription||We(e.recipeEditorial);this.seoService.setPageTitle(i),this.seoService.setPageDescription(o),this.seoService.setCanonical(e.link.url.toLowerCase())}ngOnInit(){Ke(),this.route.data.subscribe({next:e=>{this.isLegumiz=e.isLegumiz;let i=this.route.snapshot.paramMap.get("id");this._handleRecipeResponse(e.recipe,i),this.viewportScroller.scrollToPosition([0,0])}})}_buildBreadcrumb(e){let i=this.isLegumiz?[{label:this.translate.instant("BREAD.magazine"),url:this.translate.instant("ROUTES.news")},{label:this.translate.instant("BREAD.cook"),url:this.translate.instant("ROUTES.cook")},{label:e}]:[{label:this.translate.instant("BREAD.recipes"),url:this.translate.instant("ROUTES.recipes")},{label:e}];this.breadcrumbService.setBreadcrumb(i)}isClick2BuyAllowed(){let{country:e}=this.siteInfo.lang;return e==="fr"}pushTagManager(e){let i={brandContent:e&&Array.isArray(e)&&e.length};this.tagManager.setContentPage("recipe_page",this.recipe.id,this.recipe.recipeTitle||"",i)}ngOnDestroy(){this.seoService.setCanonical(null),this.didomiService.removeScriptsFromDocument(),this.scriptRecipe&&this._removeJsonLD()}_removeJsonLD(){G(this.platformId)&&this.scriptRecipe&&this.renderer.removeChild(this.somDocument,this.scriptRecipe)}_generateJsonLD(e){if(this._removeJsonLD(),this.scriptRecipe)return;let i=Ze(this.siteInfo.origin),o=fe(Ce({"@context":"http://schema.org/","@type":"Recipe",name:e.recipeTitle,author:"Bonduelle"},i?{url:i+this.siteInfo.path}:{}),{image:e.recipeMainPicture.image.uri.original,description:e.recipeEditorial,prepTime:`PT${e.recipeTimingPreparation}M`,cookTime:`PT${e.recipeTimingCook?e.recipeTimingCook:0}M`,recipeYield:e.recipeDishNumber,recipeIngredient:this.ingredients,recipeInstructions:[...e.recipeStep.map((R,B)=>({"@type":"HowToStep",name:`${this.translate.instant("MAGAZINE.RECIPE.STEP")} ${B+1}`,text:R}))],keywords:e.recipeSeoTitle,recipeCategory:e.recipeDish,video:e.recipeYoutubeCode&&e.recipeYoutubeCode.video?{"@type":"VideoObject",name:e.recipeTitle,description:`${this.translate.instant("RECIPE.RECIPE_VIDEOS")} : ${e.recipeTitle}`,thumbnailUrl:[e.recipeMainPicture.image.uri.original],uploadDate:"2024-12-01T12:00:00Z",embedUrl:`https://www.youtube.com/watch?v=${e.recipeYoutubeCode.video}`}:null}),g=this.renderer.createElement("script");this.renderer.setAttribute(g,"type","application/ld+json"),this.renderer.setAttribute(g,"id",this.scriptId),this.renderer.appendChild(g,this.renderer.createText(JSON.stringify(o))),this.renderer.appendChild(this.somDocument.head,g),this.scriptRecipe=g}onPrint(e){this.isLoadingPdf=!0,this.tagManager.setEvent(this.tagManager.eventID.OUR_RECIPES.PRINT),this.recipeService.getPrintableRecipe(e).subscribe({next:i=>{i&&(this.recipePdf=this.sanitize.bypassSecurityTrustResourceUrl(i),this.viewPrintModal=!0,this.isLoadingPdf=!1)},error:i=>{console.error(i),this.isLoadingPdf=!1}})}detectC2B(){setTimeout(()=>{try{window.c2bWidget.init()}catch(e){this.clic2buy=!1,console.warn("C2B",e)}},700)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=h({type:t,selectors:[["som-recipe"]],inputs:{id:[1,"id"]},features:[Te([ue])],decls:3,vars:1,consts:[[1,"som"],[1,"som-recipe","som-main-color"],[1,"som-recipe-container"],[1,"som-recipe-container-banner"],[3,"data"],[1,"som-recipe-container-header"],[1,"som-recipe-container-header-left"],[3,"re
3cipe"],[1,"som-recipe-container-header-right"],[1,"som-recipe-title"],[1,"som-recipe-text",3,"innerHTML"],[1,"tags"],[3,"difficulty"],["type","grey",3,"label"],[3,"recipeTimingPreparation"],[3,"label"],[1,"som-recipe-container-header-right-button","mt-c-md"],["buttonClass","tertiary-reverse","icon","som_printer",3,"buttonClick","label","disabled"],[1,"som-recipe-container-preparation"],[1,"som-recipe-container-preparation-left"],[1,"som-recipe-container-preparation-list"],[1,"sf-title","som-recipe-container-preparation-list-title","som-dish"],[1,"sf-title","som-recipe-container-preparation-list-title","som-dish",3,"title","alwaysOpen"],["content","",1,"som-recipe-container-preparation-list-ingredient","som-font-regular"],[1,"sf-title","som-recipe-container-preparation-list-title","som-dish-desc",3,"title","alwaysOpen"],[1,"som-recipe-container-preparation-push"],[1,"som-recipe-container-preparation-right"],[1,"som-recipe-container-preparation-step"],["id","suggestions",1,"som-recipe-block-recipe","pb-c-xl","pt-c-xl"],[1,"som-bloc","som-recipe-container-preparation-tips"],[1,"som-bloc","pb-c-xl"],[1,"som-bloc","som-recipe-container-read-also"],[3,"viewModal"],[3,"innerHTML"],[3,"products","isClicToBuyAllowed"],[1,"som-recipe-container-preparation-step-title"],[1,"som-recipe-container-preparation-step-text"],[1,"som-recipe-container-preparation-step-text","som-main-color",3,"innerHTML"],[3,"title"],[3,"recipes","withFirstCard"],[1,"som-recipe-tips-title","som-main-color"],[1,"som-recipe-container-preparation-tips-text","som-main-color",3,"innerHTML"],[1,"som-recipe-tips-image",3,"image"],[3,"consentVendor"],["view","",3,"video"],[3,"article"],[3,"products"],[3,"closeModal","viewModal"],["view","",1,"som-recipe-modal"],[1,"recipe-frame",3,"src"]],template:function(i,o){i&1&&(a(0,"div",0),d(1,Pi,1,0,"app-recipe-skeleton")(2,Hi,48,62),c()),i&2&&(n(),m(o.recipe?2:1))},dependencies:[Be,ht,xt,re,Q,Ge,je,_t,dt,et,ce,ct,Pt,st,pt,kt,Ve,$,Ue,W,J,Ct],styles:['[_ngcontent-%COMP%]:root{--color-green-dark: #003d21;--color-green-light: #14b072;--color-yellow: #f7cf00}.som-dish[_ngcontent-%COMP%]{margin-bottom:0!important}.som-dish-desc[_ngcontent-%COMP%]{display:none}.som-recipe[_ngcontent-%COMP%]{display:flex}.som-recipe[_ngcontent-%COMP%]   .ingredient-picture[_ngcontent-%COMP%]{width:25%;height:auto}.som-recipe-title[_ngcontent-%COMP%], .som-recipe-tips-title[_ngcontent-%COMP%]{font-size:1.875rem;margin-top:.75rem;margin-bottom:1rem;font-family:"Bree Serif",sans-serif;font-weight:600;line-height:1;color:#008732}.som-recipe-text[_ngcontent-%COMP%]{font-size:1.375rem;font-family:"Bree Serif",sans-serif;font-weight:400;flex-grow:1;color:#000}.som-recipe-text[_ngcontent-%COMP%]     a{text-decoration:underline;color:#008732}.som-recipe-container[_ngcontent-%COMP%]{flex:1 0 calc(80% - 20px);max-width:1450px;margin:auto}.som-recipe-container-banner[_ngcontent-%COMP%]{margin-bottom:1.25rem}.som-recipe-container-header[_ngcontent-%COMP%]{display:flex;gap:1.25rem;margin-bottom:1rem}.som-recipe-container-header-left[_ngcontent-%COMP%], .som-recipe-container-header-right[_ngcontent-%COMP%]{width:50%;display:inline-block;vertical-align:top}.som-recipe-container-header-right[_ngcontent-%COMP%]{width:50%;min-height:507px;display:flex;flex-direction:column;justify-content:space-between;position:relative}.som-recipe-container-header-right-button[_ngcontent-%COMP%]{width:50%;margin-top:2rem}.group--see[_ngcontent-%COMP%]   .som-recipe-container-header[_ngcontent-%COMP%]{flex-direction:column}.group--see[_ngcontent-%COMP%]   .som-recipe-container-header-left[_ngcontent-%COMP%], .group--see[_ngcontent-%COMP%]   .som-recipe-container-header-right[_ngcontent-%COMP%]{width:100%}.group--see[_ngcontent-%COMP%]   .som-recipe-container-header-right[_ngcontent-%COMP%]{width:100%;padding-left:0;padding-top:20px;min-height:0}.direction--rtl[_ngcontent-%COMP%]   .group--see[_ngcontent-%COMP%]   .som-recipe-container-header-right[_ngcontent-%COMP%]{padding-right:0}.group--see[_ngcontent-%COMP%]   .som-recipe-container-header-right-button[_ngcontent-%COMP%]{width:auto;padding-top:20px;text-align:right}.group--see[_ngcontent-%COMP%]   .som-recipe-container-header-right-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:auto;padding:.2em 3em}.som-recipe-container-preparation[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1.25rem}.som-recipe-container-preparation-left[_ngcontent-%COMP%], .som-recipe-container-preparation-right[_ngcontent-%COMP%]{width:50%}.som-recipe-container-preparation-list[_ngcontent-%COMP%]{width:92%;padding:2.5rem 1.25rem;border-radius:16px;background-color:#fffad2}.som-recipe-container-preparation-list-title[_ngcontent-%COMP%]{color:#000;font-size:1.5rem;font-weight:700}
3.som-recipe-container-preparation-list-ingredient[_ngcontent-%COMP%]{margin-top:1.5rem;font-size:1rem;font-weight:400;list-style:none;padding:0;margin-bottom:0}.som-recipe-container-preparation-list-ingredient[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{position:relative;padding-left:1.5rem}.som-recipe-container-preparation-list-ingredient[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:last-child){margin-bottom:.75rem}.som-recipe-container-preparation-list-ingredient[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;top:.375rem;width:13px;height:8px;background-image:url(/assets/icons/puce.svg);background-repeat:no-repeat;background-size:contain}.som-recipe-container-preparation-push[_ngcontent-%COMP%]{margin-top:20px}.som-recipe-container-preparation-step-title[_ngcontent-%COMP%]{color:#008732;font-size:1.5rem;margin-bottom:.5rem}.som-recipe-container-preparation-step[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{list-style-type:none;margin-block-start:0;padding-inline-start:0;top:0}.som-recipe-container-preparation-step[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;row-gap:1rem;border:1px solid rgba(149,144,144,.3);border-radius:1rem;margin-bottom:1.5rem}.som-recipe-container-preparation-step[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin:.625rem .75rem;font-family:"Bree Serif",sans-serif;width:80%;color:#000}.som-recipe-container-preparation-step[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(1){font-size:1.5rem;color:#fff;background-color:#008732;border-radius:50%;width:2rem;display:flex;justify-content:center;margin-right:.5rem}.som-recipe-container-preparation-list[_ngcontent-%COMP%], .som-recipe-container-preparation-step[_ngcontent-%COMP%]{display:inline-block;padding-top:20px;vertical-align:top}.som-recipe-container-preparation-tips-text[_ngcontent-%COMP%]{color:#000;font-size:1.25rem;font-weight:500;margin-bottom:20px;font-family:"Bree Serif",sans-serif;line-height:1.5rem}.som-recipe-container-preparation-tips-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline}.som-recipe-container-ingredients[_ngcontent-%COMP%]{margin:20px 0}.som-recipe-container-read-also[_ngcontent-%COMP%]{padding:0 0 20px}.som-recipe-block-recipe[_ngcontent-%COMP%]{max-width:1025px;margin:auto;margin-top:2.5rem}.highlight[_ngcontent-%COMP%]{font-weight:700}.tags[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5rem;flex-wrap:wrap}.icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:36px;height:36px;padding:6px;border-radius:40px;color:#fff}.icon.icon-person[_ngcontent-%COMP%]   .green-default[_ngcontent-%COMP%]{background:var(--color-green-dark)}.icon.icon-person[_ngcontent-%COMP%]   .green-magazine[_ngcontent-%COMP%]{background:var(--magazine-main-color)}.icon.icon-person[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:inherit}.icon.icon-green[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{background:#14b072}.icon.icon-green[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#14b072}.icon.icon-orange[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{background:#f39325}.icon.icon-orange[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#f39325}.icon.icon-red[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{background:#e83d4c}.icon.icon-red[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#e83d4c}#suggestions[_ngcontent-%COMP%]{max-width:1025px;margin-left:auto;margin-right:auto;margin-top:2rem;margin-bottom:1.5rem}.recipe-frame[_ngcontent-%COMP%]{border:none;width:100%;min-height:80vh;overflow:hidden}@media screen and (max-width:1024px){.som-recipe-title[_ngcontent-%COMP%]{font-size:40px}.som-recipe-text[_ngcontent-%COMP%]{font-size:14px}.som-recipe-tips-title[_ngcontent-%COMP%]{font-size:22px}.som-recipe-tips-image[_ngcontent-%COMP%]{height:339px!important}.som-recipe-container[_ngcontent-%COMP%]{flex:1 0 calc(100% - 20px);margin:10px}.som-recipe-container-header-right[_ngcontent-%COMP%]{min-height:363px}.som-recipe-container-header-right-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:1.4vw;
3height:35px}.som-recipe-container-specification[_ngcontent-%COMP%]{height:auto}.som-recipe-container-specification-item[_ngcontent-%COMP%]{height:auto;line-height:normal}.som-recipe-container-specification-item[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:block;margin:auto}.som-recipe-container-specification-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;text-align:center;padding:5px 0;font-size:12px;line-height:normal}.som-recipe-container-preparation-step[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:100%}}@media screen and (max-width:550px){.som-dish[_ngcontent-%COMP%]{display:none}.som-dish-desc[_ngcontent-%COMP%]{display:block}.som-recipe-title[_ngcontent-%COMP%]{font-size:1.875rem;margin-right:1.875rem}.som-recipe-text[_ngcontent-%COMP%]{font-size:1.375rem;margin-right:1.875rem}.som-recipe-tips-image[_ngcontent-%COMP%]{height:215px!important}.som-recipe-product-slider[_ngcontent-%COMP%]   .sf-product-slide[_ngcontent-%COMP%]   .sf-product-slide-content[_ngcontent-%COMP%]   .sf-product-slide-content-title[_ngcontent-%COMP%]{display:inline-grid;width:calc(50% - 30px);margin:46px 30px 0 0;font-size:15px;vertical-align:top;align-items:center;max-height:90px;height:100%}.som-recipe-container-read-also[_ngcontent-%COMP%]{padding:10px 0 0;margin-top:0!important}.som-recipe-container-read-also-display[_ngcontent-%COMP%]{display:none}.som-recipe-container-read-also[_ngcontent-%COMP%]   sf-slider-grid[_ngcontent-%COMP%]{overflow-x:scroll}.som-recipe-container-header[_ngcontent-%COMP%]{display:block}.som-recipe-container-header-left[_ngcontent-%COMP%], .som-recipe-container-header-right[_ngcontent-%COMP%]{width:100%}.som-recipe-container-header-right[_ngcontent-%COMP%]{height:auto;min-height:auto;padding-left:0;margin-top:10px}.som-recipe-container-header-right-button[_ngcontent-%COMP%]{position:relative;width:80%;margin:auto;margin-top:1.5rem}.som-recipe-container-header-right-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:10px;width:60%}.som-recipe-container-preparation[_ngcontent-%COMP%]{flex-direction:column}.som-recipe-container-preparation-right[_ngcontent-%COMP%], .som-recipe-container-preparation-left[_ngcontent-%COMP%]{width:100%}.som-recipe-container-preparation-list[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;font-size:14px!important;padding-top:0;margin-right:0;margin-top:1.5rem}
3.som-recipe-container-preparation-list-ingredient[_ngcontent-%COMP%]{font-size:14px!important}.som-recipe-container-preparation-list-title[_ngcontent-%COMP%]{margin-top:1rem}.som-recipe-container-preparation-push[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:20px}.som-recipe-container-preparation-step[_ngcontent-%COMP%]{width:100%}.som-recipe-container-preparation-step-title[_ngcontent-%COMP%]{font-size:1.875rem}.som-recipe-container-preparation-step[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin-bottom:10px;width:100%}.som-recipe-container-preparation-step[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(1){font-size:22px}.som-recipe-container-preparation-step[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:.75rem}.recipe-frame[_ngcontent-%COMP%]{padding-top:50px}.tags[_ngcontent-%COMP%]{margin:1rem 0 .5rem}}']})}}return t})();export{Xo as RecipeComponent};

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.