1"use strict";(globalThis["webpackChunkgk_jss_app"]=globalThis["webpackChunkgk_jss_app"]||[]).push([[5298],{98268:(e,t,a)=>{a.r(t),a.d(t,{default:()=>R});a(7588);var n=a(20641),l=a(50953),o=a(10810),i=a(94626),s=a(83868),c=a(43972),r=a(90033),d=a(20188),k=a(34317),u=a(46810),p=a(12016),m=a(30843);const _={class:"content-card__image"},g={class:"content-card__texts"},b=(0,n.pM)({__name:"ContentCard",props:{id:{},title:{},description:{},image:{},link:{},analyticsData:{},enableSingleCardLayout:{type:Boolean,default:!1},trackPromotionView:{type:Function,default:()=>{}},trackPromotionSelect:{type:Function,default:()=>{}}},setup(e){const t=(0,m.B)(),{logContentCardClick:a,logContentCardDisplay:o}=(0,d.b)(),i=e,c=(0,n.rk)("cardRef"),b=(0,n.EW)((()=>i.enableSingleCardLayout?{mobileS:400,mobile:715,tablet:660,desktop:840}:{mobileS:190,mobile:360,tablet:"480c",desktop:840})),{stop:v}=(0,s.BLq)(c,(([e])=>{e?.isIntersecting&&(i.trackPromotionView({...i.analyticsData}),o(i.id),v())})),C=()=>{i.trackPromotionSelect({...i.analyticsData}),a(i.id)};return(a,o)=>((0,n.uX)(),(0,n.CE)("div",{ref_key:"cardRef",ref:c,class:(0,r.C4)(["content-card",{"content-card--single":e.enableSingleCardLayout}])},[(0,n.Lk)("div",_,[(0,n.bF)(k.A,{"desktop-url":e.image.src,"desktop-alt":e.image.alt,"custom-params":b.value,"lazy-loading":"lazy"},null,8,["desktop-url","desktop-alt","custom-params"])]),(0,n.Lk)("div",g,[(0,n.Lk)("h3",null,(0,r.v_)(e.title),1),(0,n.Lk)("p",null,(0,r.v_)(e.description),1),(0,n.bF)(p.A,{field:{value:e.link},classes:"content-card__link link",onClick:C},null,8,["field"]),(0,n.bF)(u.A,{type:"link",variant:"ChefBrewer"===(0,l.R1)(t).brandName?"primary":"secondary",class:"content-card__button",link:e.link,onClick:C},null,8,["variant","link"])])],2))}}),v=b,C=v;var f=a(7e4),y=a(26901);const h={class:"content-cards-block__heading-texts"},L=(0,n.pM)({__name:"ContentCardsBlock",props:{fields:{default:()=>({})},rendering:{},params:{default:()=>({})}},setup(e){const t=(0,d.b)(),{trackPromotionView:a,trackPromotionSelect:r}=(0,f.E)({componentName:"content_cards_block"}),{contentCardsBlockCards:k,feedLastUpdated:u,isStoreSetupFailed:p}=(0,o.bP)(t),m=(0,n.rk)("componentRef"),_=(0,l.KR)(!0),g=(0,l.KR)(!0),b=(0,l.KR)([]),v=(0,n.EW)((()=>({0:{slidesPerView:Math.min(b.value?.length,2.2)},[(0,y.U)(768)??768]:{slidesPerView:Math.min(b.value?.length,3)},[(0,y.U)(1024)??1024]:{slidesPerView:Math.min(b.value?.length,5)}}))),L=()=>{const e=t.contentCardsBlockControlCards;if(!e?.length)return;const n=t.getContentCardsBlockCards(!0),l=()=>{t.logControlCardsDisplay(e),n.forEach((e=>{a(e.analyticsData)}))};if(g.value&&m.value){const{stop:e}=(0,s.BLq)(m,(([t])=>{t?.isIntersecting&&(l(),e())}))}else l()},w=(0,n.wB)([k,u,p],(()=>{if(!_.value)return void w();const e=t.getContentCardsBlockCards(!1);if(e?.length)return b.value=e,_.value=!1,void L();(u.value||p.value)&&(g.value=!1,_.value=!1),L()}),{immediate:!0});return(t,o)=>g.value||t.$isPageEditing?((0,n.uX)(),(0,n.CE)("section",{key:0,ref_key:"componentRef",ref:m,class:"content-cards-block"},[(0,n.bF)(c.A,{items:b.value,"is-loading":_.value,"tracking-component-name":"content_cards_block",breakpoints:v.value},{header:(0,n.k6)((()=>[(0,n.Lk)("div",h,[(0,n.bF)((0,l.R1)(i.E),{tag:"h2",field:e.fields.title},null,8,["field"]),(0,n.bF)((0,l.R1)(i.E),{tag:"p",field:e.fields.description},null,8,["field"])])])),loading:(0,n.k6)((()=>[...o[0]||(o[0]=[(0,n.Lk)("div",{class:"content-card content-card--single","aria-hidden":"true"},[(0,n.Lk)("div",{class:"content-cards-block__skeleton content-card__image"}),(0,n.Lk)("div",{class:"content-card__texts"},[(0,n.Lk)("span",{class:"content-cards-block__skeleton content-cards-block__skeleton--title"}),(0,n.Lk)("span",{class:"content-cards-block__skeleton content-cards-block__skeleton--description"})])],-1)])])),default:(0,n.k6)((({item:e})=>[(0,n.bF)(C,(0,n.v6)(e,{"track-promotion-view":(0,l.R1)(a),"track-promotion-select":(0,l.R1)(r),"enable-single-card-layout":1===b.value.length}),null,16,["track-promotion-view","track-promotion-select","enable-single-card-layout"])])),_:1},8,["items","is-loading","breakpoints"])],512)):(0,n.Q3)("",!0)}}),w=L,R=w}}]); 2//# sourceMappingURL=ContentCardsBlock.ea97c02a.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.